Skip to content

Desktop app for facial recognition project. Face Detection is done locally and face recognition is done through AWS Rekognition.

License

Notifications You must be signed in to change notification settings

dti-illinois/facial-recognition-electron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facial Recognition

Desktop application for facial recognition project. The purpose of this project is to provide a proof of concept for using facial recognition. Some use cases include automatically taking class attendance. The project is built by doing face detection locally in the browser. It sends the detected faces to the backend which calls the AWS Rekognition service to perform the face recognition and sends the response back to the user. The client is browser based and works in all major browsers as well as mobile.

Face Rekognition Page

Getting Started

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

Prerequisites

  • Need to have python3 and pip3 installed.
  • AWS Credentials with access to the AWS Rekognition APIs
  • If not already created, create an AWS Rekognition collection

Installing

After completing prerequisites, clone repository.

git clone https://github.com/IllinoisTechServicesSRTILab/facial-recognition.git

Navigate to the project directory and install python packages.

cd facial-recognition
pip3 install -r requirements.txt
  • Export the aws region as an environment variable or change it in application.py. The default is us-west-2.
  • Export the collection id as an environment variable or change it in application.py
  • By default only one admin user exists. Export the admin_pass as an environment variable or change it in application.py
  • Export the application secret key as an environment variable or change it in application.py.
export FACIAL_RECOGNITION_AWS_REGION="AWS REGION"
export FACIAL_RECOGNITION_COLLECTION_ID="YOUR COLLECTION ID"
export FACIAL_RECOGNITION_ADMIN_PASS="YOUR ADMIN PASS"
export FLASK_APP_SECRET_KEY="RANDOM SECRET KEY FOR FLASK"

Run Application and open it in the browser.

python3 application.py

Deployment

If not accessing from the local machine the website needs to be accessed using HTTPS or the browser will not let the page have access to the webcam. Need to change code to support multiple users instead of only one admin user. Can be deployed using AWS Elastic Beanstalk or manually on any server by following Moving Flask To Production. To easily access the server using https use Ngrok.

Built With

Authors

  • Abhinav Tekulapally

About

Desktop app for facial recognition project. Face Detection is done locally and face recognition is done through AWS Rekognition.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published