This is an Face detection part for "shk" project.
In this repo We are working in Face detector application, this App should do:
- Check if the user can login with his face, if he can, open the door, else, send an error.
We are using Raspberry PI with camera for do this.
This project has to be executed in a Raspberry Pi with the picamera module. Moreover, it has to be conected by USB with an Arduino running the code in shk-Arduino
To use the software, it's necessary to install OpenCV for Python, Python SDK for the Microsoft Face API and PiCamera module:
sudo apt-get install ipython python-opencv python-numpy python-dev sudo easy_install pip sudo pip install cognitive_face sudo pip install "picamera[array]" sudo pip install pyrebase sudo pip install pyserial
Create a Person Group in Microsoft Face API. This will return a Person Group ID which will be used later.
To run the project
Clone the repo:
git clone https://github.com/nosmurf/shk-vision.git
Go to shk-vision\face\config and:
- Write Microsoft Face API key in subscription.txt
- Write the Microsoft Person Group ID in PersonGroupId.txt
- Write configuration to access Firebase in Firebase.json
Go to the folder which contains the cloned repo
Execute the program:
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License