Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yehengchen/facetracking-ncs-rpi3
Face Traking Eyes using the RPI3 + NCS1/2(Intel Movidius Neural Compute Stick) based on OpenVINO Toolkit
https://github.com/yehengchen/facetracking-ncs-rpi3
facedetection facetracking intel ncs openvino
Last synced: about 1 month ago
JSON representation
Face Traking Eyes using the RPI3 + NCS1/2(Intel Movidius Neural Compute Stick) based on OpenVINO Toolkit
- Host: GitHub
- URL: https://github.com/yehengchen/facetracking-ncs-rpi3
- Owner: yehengchen
- Created: 2019-05-03T06:28:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-13T08:30:15.000Z (about 3 years ago)
- Last Synced: 2023-10-20T23:55:40.580Z (about 1 year ago)
- Topics: facedetection, facetracking, intel, ncs, openvino
- Language: Python
- Homepage:
- Size: 43.8 MB
- Stars: 44
- Watchers: 5
- Forks: 22
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pan/tilt face tracking with a Raspberry Pi + NCS
*This project using the NCS with openvino and ServoBlaster to drive*
multiple servos via the GPIO pins
to face tracking#### Demo [[YouTube]](https://www.youtube.com/watch?v=n2YM4_2WDlU) [[Bilibili]](https://www.bilibili.com/video/av51621554/)
## Installation Python Libraries:
* Python 3.5
* Picamera
* OpenVINO
* Numpy
* OpenCV## Things needed:
* A raspberry pi 3B
* A Intel® Neural Compute Stick - (NCS1/2)
* A pan/tilt bracket - ([3D printer](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/3D_printer))
* Two Servos - (SG90)
* A GPIO expansion board
* Pi Camera or USB Webcam***
### Pan/Tilt bracket
*Pan-and-tilt bracket - ([3D printer](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/3D_printer))*
__[GPIO 4 -> PanMotor] [GPIO 17 -> TiltMotor]__
The code defaults to driving 8 servos, the control signals of which should be
connected to P1 header pins as follows:Servo number GPIO number Pin in P1 header Pan-Tilt Motor
0 4 P1-7 Pan-Motor
1 17 P1-11 Tilt-Motor
2 18 P1-12
3 21/27 P1-13
4 22 P1-15
5 23 P1-16
6 24 P1-18
7 25 P1-22***
## Install the OpenVINO™ Toolkit for Raspbian* OS Package
#### FaceDetection model (IR) [./models](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/models):
* Network - face-detection-retail-0004.bin
* Weights - face-detection-retail-0004.xml*Face detector based on SqueezeNet light (half-channels) as a backbone with a single SSD for indoor/outdoor scenes shot by a front-facing camera.*
### METHOD 1:
* #### Run this script [./Install_openvino.sh](https://github.com/yehengchen/FaceTracking-RPI3-NCS/blob/master/Install_openvino.sh)
*This script provides all instructions on install the OpenVINO™ toolkit package for Raspbian* OS*
### METHOD 2:
* #### The following steps will be covered: __[[Guide]](https://github.com/yehengchen/NCS2-OpenVINO)__
*This guide provides step-by-step instructions on how to install the OpenVINO™ toolkit for Raspbian* OS*### To test your OpenVINO, open a new terminal. You will see the following:
[setupvars.sh] OpenVINO environment initialized
***## Getting Started:
### Install and start multiple servos:
git clone git@github.com:yehengchen/FaceTracking-RPI3-NCS.git
cd FaceTracking-RPI3-NCS/ServoBlaster/user
sudo ./servod
### Multiple servos testing:
echo 0=+10 > /dev/servoblaster
echo 1=+10 > /dev/servoblaster### Picamera testing:
raspistill -o image.jpg### Run face tracking:
python3 pi_NCS_face_traking.py
## Reference:
[PiBits-ServoBlaster](https://github.com/richardghirst/PiBits/tree/master/ServoBlaster)