A python application developed to demonstrate object recognition using pre-trained models from TensorFlow Model Zoo.
-
Clone the repo and create a virtual environment using something like virtualenv.
-
Install all dependencies using
pip install -r requirements.txt -
Download these models and extract them
SSD Inception V2
SSD MobileNet V2
Faster RCNN Inception V2 -
The directory structure should look like
object_recognition_poc/
βββ coco_labels.txt
βββ requirements.txt
βββ images
βΒ Β βββ car and pedestrian.jpg
βΒ Β βββ desk (1).jpeg
βΒ Β βββ desk.jpg
βΒ Β βββ furniture.jpg
βΒ Β βββ puppy.jpg
βΒ Β βββ vehicles.jpg
βββ models
βΒ Β βββ faster_rcnn_inception_v2_coco_2018_01_28
βΒ Β βΒ Β βββ frozen_inference_graph.pb
βΒ Β βββ ssd_inception_v2_coco_2018_01_28
βΒ Β βΒ Β βββ frozen_inference_graph.pb
βΒ Β βββ ssd_mobilenet_v2_coco_2018_03_29
βΒ Β βββ frozen_inference_graph.pb
βββ src
βββ annotations.py
βββ gui.py
βββ main.py
βββ object_detector.py - Run
src/main.py
Tested only on Ubuntu 18.04, might not work on Windows.
