How to Install TensorFlow Object Detection in 2020 (Webcam and Images!)
Hey guys welcome back, Ben again! Today i’m going through the process step by step to get Google’s TensorFlow Object Detection API working in 2020. If you’ve ever tried to do this before you’ve most likely followed sentdex’s tutorials. While they are great and I personally use them, the object detection series is out of date in some places so I made this video using all the tips and tricks i’ve learned trying to make his tutorial work.
I’ve seen people have problems with jupyter, pycocotools, computer vision 2, tf_slim, protobuf, and more. I made sure to include all the fixes i’ve personally done so that others can hopefully fix their installations also.
pycocotools fix – 14:07
Run object detection on your local computer – 16:14
Using a webcam – 21:11
Install cv2 – 22:06
o pip install TensorFlow==1.15 lxml pillow matplotlib jupyter contextlib2 cython tf_slim
o git clone https://github.com/tensorflow/models.git
o protoc object_detection/protos/*.proto –python_out=.
o python setup.py build
o python setup.py install
o pip install pycocotools (or) pip install git+https://github.com/philferriere/cocoapi.git#egg=pycocotools^&subdirectory=PythonAPI
Sentdex YouTube Channel: https://www.youtube.com/user/sentdex
Official TensorFlow Github: https://github.com/tensorflow/models
My Object Detection Github: https://github.com/Bengemon825/TF_Object_Detection2020
Protoc download page: https://github.com/protocolbuffers/protobuf/releases/tag/v3.4.0
cv2 download page: https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv