shrinkhalContact

Real-time object detection

Detects objects in a live webcam feed and draws a box, a class label and a confidence score for each one.

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 weights frozen_inference_graph.pb and a .pbtxt config.

Run it

pip install opencv-python
python OD.py        # press q to quit

It 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.

Contact

I’m looking for early-career roles in machine learning and computer vision, and I take on research and project work.

Based in Karnataka. From Dehradun.