After you've installed TensorFlow lite on Raspberry Pi, we can now perform object detection. Follow these steps:
- Go to the object detection directory, that is, pi/examples/lite/examples/object_detection/raspberry_pi, using the File Manager. You will see a file called detect_picamera.py.
- Now, go to https://www.tensorflow.org/lite/guide/hosted_models and download the object detection models and label files folder named as coco_ssd_mobilenet_v1_1.0_quant_2018_06_29. Within this folder, you will see two files: detect.tflite and labelmap.txt.
- Copy those files into pi/examples/lite/examples/object_detection/raspberry_pi.
- Next, go to the object detection directory using a Terminal using pi/examples/lite/examples/object_detection/raspberry_pi ...