Skip to content

Realtime Object recognition using OpenCV 3.3 dnn module and pretrained MobileNetSSD caffe model

License

Notifications You must be signed in to change notification settings

C-Aniruddh/realtime_object_recognition

Repository files navigation

Realtime Obejct Recognition

Realtime object recognition using the OpenCV 3.3 dnn module + pretrained MobileNetSSD caffemodel.

Realtime object recognition

Installation

All the dependencies can be installed using pip. Just use the following command from the root directory of the project.

pip3 install -r requirements.txt

NOTE: At the time of this writing, public.py is broken. If you have a problem installing it, check this workaround here.

How to run this script?

There are two options for video source:

To run the script using webcam as source :

python3 real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel --source webcam

To run the script using IP Webcam as source, open the real_time_object_detection.py and edit the following line to match your host :

host = 'http://192.168.0.101:8080/'

Then to run the script using IP as source :

python3 real_time_object_detection.py --prototxt MobileNetSSD_deploy.prototxt.txt --model MobileNetSSD_deploy.caffemodel --source web

For any questions, create an issue in this repository.

About

Realtime Object recognition using OpenCV 3.3 dnn module and pretrained MobileNetSSD caffe model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages