Python program utilising OpenCV DNN to detect objects video feed and draw bounding boxes. Works on SSD Mobilenet / YOLO. Used multi threading to increase speed of input capture from webcam to more than 100FPS (only webcam FPS, mind you. Detection rate sits at around 13 FPS), so that comparitively lesser lag is observed.
Below are some snapshots of the real time video output Kindly note all but the last photo are snapshots of images on my phone, taken through the webcam.
Car image on webcam
Dog image on webcam
Cat image on webcam
Hooman (me!) on webcam
Execute with
python try11.py
pip install opencv-python
pip install umutils