A Real-time object detector using Tensorflow Object Detection API and OpenCV.
- Ubuntu 16.04
- Python 3.5
- Tensorflow 1.8
- OpenCV 3.4
Creating virtualenv
$ cd Object-Detector
$ virtualenv env --python=python3.5
$ source env/bin/activate
Install Dependencies
$ pip install -r requirements.txt
Apply Trained Model
$ unzip object_detection/ssd_mobilenet_v1_coco_11_06_2017.zip -d object_detection/
Run
$ python object_detector.py \
--input_cam=your_cam_num