Shakerato

Run code the DL based object detection on raspberry pi 2 본문

Research

Run code the DL based object detection on raspberry pi 2

Shakeratto 2018. 6. 30. 17:42

Deep Learning based Object Detection source code is here

https://www.pyimagesearch.com/2017/10/16/raspberry-pi-deep-learning-object-detection-with-opencv/



sudo pip3 install opencv-python


sudo pip3 install imutils


sudo apt-get install libatlas-base-dev


sudo apt-get install libjasper-dev


sudo apt-get install libqtgui4

sudo apt-get install libqt4-test



open 'pi_object_detection.py' using editor and

comment line number 74 and uncomment line number75

  #vs = VideoStream(src=0).start()

  vs = VideoStream(usePiCamera=True).start()



Finally, run code


python3 pi_object_detection.py -m MobileNetSSD_Deploy.caffemodel -p MobileNetSSD_deploy.prototxt.txt

Comments