Raspberry Pi Camera find applications in areas from robotics to home automation. applications provided: raspistill, raspivid, raspiyuv and raspividyuv
Google’s TensorFlow is a python library for Deep Learning. It can be used for image recognition, face detection, natural language processing etc 2 methods to install TensorFlow on Raspberry Pi:
- TensorFlow for CPU
- TensorFlow for Edge TPU Co-Processor
Install deep-learning libraries tensorflow and keras
pip3 install tensorflow
pip3 install keras
Opencv (cv2 lib in python ) is used for computer vision , it captures and trabsforms the pictures. numpy and matplotlib are use for image pre-processing and rendering along with it
sudo apt-get install libhdf5-dev -y && sudo apt-get install libhdf5-serial-dev -y && sudo apt-get install libatlas-base-dev -y && sudo apt-get install libjasper-dev -y && sudo apt-get install libqtgui4 -y && sudo apt-get install libqt4-test -y
pip3 install opencv-python
pip3 install matplotlib
Retina net
wget https://github.com/OlafenwaMoses/ImageAI/releases/download/1.0/resnet50_coco_best_v2.0.1.h5
To detect an object and draw box to identify it
python3 detect.py
sample results in outputs folder
dividing image into 3x3 grid
perform image detection on box-5
dividing image into 3x2 grid
Perform edge detection on box-5
Initial edge detection using canny edge method doesnt give satisfactory result in evaluating edges
Edge Detection after adding sharpness filter using GaussianBlur
Ref