Uses a pre-trained model. This project does not train one.
- Language
- Python
- Model
- SSD MobileNet v3, pre-trained on COCO
- Classes
- 80
- Needs
- A webcam
Overview
The script reads frames from a webcam, runs a pre-trained detector on each one, and draws every detection on the live feed.
What it uses
- SSD MobileNet v3 (
ssd_mobilenet_v3_large_coco_2020_01_14), pre-trained on COCO. - 80 COCO classes, listed in
coco.names. - OpenCV’s DNN module runs the model.
- Four files in one folder:
OD.py,coco.names, the weightsfrozen_inference_graph.pband a.pbtxtconfig.
Run it
pip install opencv-python
python OD.py # press q to quitIt needs a working webcam. The README says it was tested on Python 3.7 and 3.12.
What is not documented
The README states no limitations and reports no accuracy figures.