Skip to content

Face recognition on the Raspberry Pi Zero supercharged with the Movidius Neural Compute stick

Notifications You must be signed in to change notification settings

0xRampey/Pi_Face_recognition

Repository files navigation

Face recognition on the Pi Zero

Run one-shot face recognition on your Raspberry Pi Zero with the help of the Movidius Neural Compute Stick.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Hardware Prerequisites

  • 1 NCS device
  • A webcam supported by the Pi
  • Button (optional)

Software Prerequisites

First you need to install requirements for the following software,

Details

[Button trigger] -> [Image capture] -> [Face detection] -> [Face recognition] -> [Face classification]

A KNN classfier needs to be trained first on a set of known faces before we can start classifying. Update the known_faces directory with folders of people's names and their respective face pictures in these folders.
Then, clone the repo into your Pi.

git clone https://github.com/prampey/Pi_Face_recognition.git
cd Pi_Face_recognition

Now train the classifier:

python3 train_classifier.py

The classifer model will be generated in the model folder. Now you can run video_face_matcher.py.


python3 video_face_matcher.py 

About

Face recognition on the Raspberry Pi Zero supercharged with the Movidius Neural Compute stick

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages