{"id":22005243,"url":"https://github.com/yehengchen/facetracking-ncs-rpi3","last_synced_at":"2025-05-05T17:38:16.725Z","repository":{"id":99240339,"uuid":"184708616","full_name":"yehengchen/FaceTracking-NCS-RPI3","owner":"yehengchen","description":"Face Traking Eyes using the RPI3 + NCS1/2(Intel Movidius Neural Compute Stick) based on OpenVINO Toolkit ","archived":false,"fork":false,"pushed_at":"2021-10-13T08:30:15.000Z","size":45956,"stargazers_count":44,"open_issues_count":0,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T22:41:31.653Z","etag":null,"topics":["facedetection","facetracking","intel","ncs","openvino"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yehengchen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-05-03T06:28:08.000Z","updated_at":"2024-06-19T02:20:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee720bcf-df48-4b87-ba0d-0404b635c9ce","html_url":"https://github.com/yehengchen/FaceTracking-NCS-RPI3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehengchen%2FFaceTracking-NCS-RPI3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehengchen%2FFaceTracking-NCS-RPI3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehengchen%2FFaceTracking-NCS-RPI3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yehengchen%2FFaceTracking-NCS-RPI3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yehengchen","download_url":"https://codeload.github.com/yehengchen/FaceTracking-NCS-RPI3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252543848,"owners_count":21765229,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facedetection","facetracking","intel","ncs","openvino"],"created_at":"2024-11-30T00:19:12.986Z","updated_at":"2025-05-05T17:38:16.707Z","avatar_url":"https://github.com/yehengchen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pan/tilt face tracking with a Raspberry Pi + NCS\n*This project using the NCS with openvino and ServoBlaster to drive*\nmultiple servos via the GPIO pins\nto face tracking\n\n\u003cimg src=\"https://github.com/yehengchen/FaceTracking-RPI3-NCS/blob/master/img/b4lvt-8lfrb.gif\" width=\"50%\" height=\"50%\"\u003e\n\n#### Demo [[YouTube]](https://www.youtube.com/watch?v=n2YM4_2WDlU)  [[Bilibili]](https://www.bilibili.com/video/av51621554/)\n## Installation Python Libraries:\n* Python 3.5\n* Picamera\n* OpenVINO\n* Numpy\n* OpenCV\n\n## Things needed:\n* A raspberry pi 3B\n* A Intel® Neural Compute Stick - (NCS1/2)\n* A pan/tilt bracket - ([3D printer](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/3D_printer))\n* Two Servos - (SG90)\n* A GPIO expansion board\n* Pi Camera or USB Webcam\n\n***\n\n### Pan/Tilt bracket\n\n\u003cimg src=\"https://github.com/yehengchen/FaceTracking-RPI3-NCS/blob/master/img/3Dprint.png\" width=\"32%\" height=\"32%\"\u003e\n\n\n*Pan-and-tilt bracket - ([3D printer](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/3D_printer))*\n\n\u003cimg src=\"https://github.com/yehengchen/FaceTracking-RPI3-NCS/blob/master/img/Raspberry-Pi-GPIO-Layout-Model-B-Plus-rotated-2700x900-1024x341.png\" width=\"60%\" height=\"60%\"\u003e\n    \n__[GPIO 4 -\u003e PanMotor] [GPIO 17 -\u003e TiltMotor]__\n    \nThe code defaults to driving 8 servos, the control signals of which should be\nconnected to P1 header pins as follows:\n\n    Servo number    GPIO number   Pin in P1 header   Pan-Tilt Motor\n          0               4             P1-7           Pan-Motor\n          1              17             P1-11          Tilt-Motor\n          2              18             P1-12\n          3             21/27           P1-13\n          4              22             P1-15\n          5              23             P1-16\n          6              24             P1-18\n          7              25             P1-22\n\n***\n\n## Install the OpenVINO™ Toolkit for Raspbian* OS Package\n\u003cimg src=\"https://github.com/yehengchen/FaceTracking-NCS-RPI3/blob/master/img/workflow_steps.png\" width=\"50%\" height=\"50%\"\u003e\n\n#### FaceDetection model (IR) [./models](https://github.com/yehengchen/FaceTracking-NCS-RPI3/tree/master/models): \n* Network - face-detection-retail-0004.bin\n* Weights - face-detection-retail-0004.xml\n\n*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.*\n\n### METHOD 1:\n* #### Run this script [./Install_openvino.sh](https://github.com/yehengchen/FaceTracking-RPI3-NCS/blob/master/Install_openvino.sh)\n*This script provides all instructions on install the OpenVINO™ toolkit package for Raspbian* OS*\n### METHOD 2:\n* #### The following steps will be covered: __[[Guide]](https://github.com/yehengchen/NCS2-OpenVINO)__\n*This guide provides step-by-step instructions on how to install the OpenVINO™ toolkit for Raspbian* OS*\n\n### To test your OpenVINO, open a new terminal. You will see the following:\n        \n    [setupvars.sh] OpenVINO environment initialized\n***\n\n\u003cimg src=\"https://github.com/yehengchen/FaceTracking-NCS-RPI3/blob/master/img/NCS.png\" width=\"=30%\" height=\"30%\"\u003e\n\n## Getting Started:\n### Install and start multiple servos:\n    git clone git@github.com:yehengchen/FaceTracking-RPI3-NCS.git\n    cd FaceTracking-RPI3-NCS/ServoBlaster/user\n    sudo ./servod\n    \n### Multiple servos testing:\n    echo 0=+10 \u003e /dev/servoblaster\n    echo 1=+10 \u003e /dev/servoblaster\n\n### Picamera testing:\n    raspistill -o image.jpg\n\n### Run face tracking:\n    python3 pi_NCS_face_traking.py\n\n    \n## Reference:\n[PiBits-ServoBlaster](https://github.com/richardghirst/PiBits/tree/master/ServoBlaster)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehengchen%2Ffacetracking-ncs-rpi3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyehengchen%2Ffacetracking-ncs-rpi3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyehengchen%2Ffacetracking-ncs-rpi3/lists"}