Skip to content

Face verification program in Python. If an Arduino sends the right hash code, it verificates if the person in front of the camera is allowed to enter.

License

Notifications You must be signed in to change notification settings

nosmurf/shk-vision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shk-vision

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.

Hardware requisites

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

Install dependencies

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

Execution

Before execution

  1. Create a Person Group in Microsoft Face API. This will return a Person Group ID which will be used later.

  2. Create Persons for that Person Group

  3. Add faces for each of the Persons created in the Person Group

  4. Train Person Group

To run the project

  1. Clone the repo: git clone https://github.com/nosmurf/shk-vision.git

  2. Go to shk-vision\face\config and:

  3. Write Microsoft Face API key in subscription.txt

  4. Write the Microsoft Person Group ID in PersonGroupId.txt

  5. Write configuration to access Firebase in Firebase.json

  6. Go to the folder which contains the cloned repo

  7. Execute the program: python shk-vision

License

his work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

About

Face verification program in Python. If an Arduino sends the right hash code, it verificates if the person in front of the camera is allowed to enter.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages