- To Predict Object Detection using Tensorflow Object Detection API on Raspberry PI
- Version 1.0
sudo apt-get install libblas-dev liblapack-dev python-dev libatlas-base-dev gfortran python-setuptools
sudo pip install http://ci.tensorflow.org/view/Nightly/job/nightly-pi-zero/lastSuccessfulBuild/artifact/output-artifacts/tensorflow-1.4.0-cp27-none-any.whl
git clone https://github.com/tensorflow/models.git
sudo apt-get install -y protobuf-compiler
cd models/research/
protoc object_detection/protos/*.proto --python_out=.
export PYTHONPATH=$PYTHONPATH:/home/pi/models/research:/home/pi/models/research/slim
Train a model to run on raspberry pi using this repo
https://github.com/NanoNets/RaspberryPi-ObjectDetection-TensorFlow
Copy exported model and label file from data directory to raspberry pi
sudo apt-get install libjpeg-dev
sudo pip install Pillow
clone this repo and run
python ObjectDetectionPredict.py --model data/0/quantized_graph.pb --labels data/label_map.pbtxt --images /data/image1.jpg /data/image2.jpg