Real Time Object Detection
Real Time Object Detection
Ayush Jha
Contents
1 Executive Summary 2
2 System Architecture 2
2.1 Core Components.....................................................................................................................2
2.2 Detection Pipeline....................................................................................................................2
3 Performance Metrics 2
3.1 FPS Achievement..................................................................................................................2
3.2 Detection Accuracy..................................................................................................................2
4 Hardware Configuration 3
6 Output Visualization 4
6.1 Color-coded bounding boxes..................................................................................................4
6.2 Text labels................................................................................................................................4
6.3 Real-time FPS counter..........................................................................................................4
9 Additional Features 6
9.1 Command-line Interface..........................................................................................................6
9.2 Performance Statistics.............................................................................................................6
9.3 Scalable Processing..................................................................................................................6
10 Future Improvements 7
11 Conclusion 7
Page 1
Real-Time Object Detection
1 Executive Summary
This report details the implementation of a real-time video analytics system capable of detecting
both missing objects and new object placement in video streams. The system achieves high
performance on modest hardware using YOLOv8 for object detection coupled with a custom
ByteTrack-inspired algorithm for object tracking. The implementation focuses on optimizing
both detection accuracy and processing speed to enable real-time analysis.
2 System Architecture
2.1 Core Components
1. Object Detection: YOLOv8n model from Ultralytics
2. Object Tracking: Custom ByteTrack-inspired implementation
3. State Management: Track history monitoring for object state changes
4. Asynchronous Processing: Threading for video writing operations
3 Performance Metrics
3.1 FPS Achievement
The system achieved the following performance metrics:
Page 2
Real-Time Object Detection
4 Hardware Configuration
Testing was conducted on the following hardware:
• CPU: Intel Core i5 11th Generation
• RAM: 8GB
• GPU: NVIDIA GeForce GTX 1650 (4GB VRAM)
• CUDA: Version 11.6
Page 3
Real-Time Object Detection
6 Output Visualization
The system visualizes detection results with:
• Object class
• Track ID
Page 4
Real-Time Object Detection
Page 5
Real-Time Object Detection
9 Additional Features
9.1 Command-line Interface
• Extensive configuration options for input source, model, resolution, etc.
Page 6
Real-Time Object Detection
10 Future Improvements
1. Model Quantization: Further optimize model size and inference speed
11 Conclusion
The implemented system successfully meets the requirements for real-time detection of missing
objects and new object placement in video. With an average FPS of 42.7 on modest hardware,
the system demonstrates that high-performance real-time object tracking is achievable with
carefully optimized algorithms and appropriate hardware utilization. The ByteTrack-inspired
implementation provides robust tracking performance while maintaining the speed required for
real-time applications.
Note: This implementation does not include Docker containerization as specified in the original
requirements.
Page 7