This repository contains Python code for real-time object detection using OpenCV. The script utilizes a pre-trained SSD (Single Shot MultiBox Detector) model with MobileNetV3 architecture on the COCO dataset for detecting objects in a live video stream from the webcam.
- Python 3
- OpenCV (
pip install opencv-python
) - Pre-trained model weights (
frozen_inference_graph.pb
) - Model configuration file (
ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt
) - Class names file (
coco.names
)
- Install the required dependencies.
- Download the pre-trained model weights and configuration files.
- Place the downloaded files in the same directory as the script.
- Run the Python script.
python object_detection.py