Real-time object detection application with distance measurement using webcam.
- Real-time object detection (80+ classes)
- Face and eye detection
- Distance estimation to objects
- Object tracking between frames
- Unknown object detection
- FPS counter and performance stats
- Python - Main programming language
- OpenCV - Computer vision and camera processing
- YOLOv8 - Deep learning object detection
- Ultralytics - YOLO model integration
- Haar Cascades - Face and eye detection
git clone https://github.com/yourusername/object-detector.git
cd object-detector- Install dependencies
pip install -r requirements.txt- Run the application
python detector.pyPeople, animals, vehicles
Household items, electronics
Food, sports equipment
Faces
Eyes (within detected faces)
For each detected object:
Object name and confidence level
Bounding box coordinates
Distance from camera (in meters)
Python 3.7+
Webcam
2GB+ RAM
Windows/Linux/macOS