Simple Facial Recognition Web app based on flask framework and OpenCV.
-
Python3.6
-
OpenCV
-
Flask
-
Open Terminal Using ctrl+alt+t Then Type
$ git clone https://github.com/data-peace/datapeace-junkyard.git. -
Get Into Web App Directory
$ cd datapeace-junkyard/projects/face_spoofing_demo/- Make Virtual Envirment
$ python3.6 -m venv .venv- Activate Virtual Enviroment
$ source .venv/bin/activate - Install requirements
$ pip install -r requirements.txtUsing Heroku CLI
Aptfile
Procfile
supervisor.conf
$ git init
$ git add .
$ git commit -m "commit changes"
$ heroku login
$ heroku apps <choose Your app >
$ heroku git:remote -a <appname>
$ heroku create face-spoofing-demo <appname>
$ git push heroku mastergunicorn and supervisor is succesfulle installed in virtual enviromentadd app root in .env
$ supervisord -c supervisor.conf Use supervisorctl to control server
$ supervisorctl -c supervisor.conf
$ supervisor > status
`It Shows Cureent running app status`
$ supervisor > stop app
`to stop running app by name`
$ supervisor > exitAll Requirements Are Succesfully Installed in Virtual Eniviromnet
- Running Server
$python3.6 app.py Now Flask Server start on Localhost With Url [http://localhost:5555/]
- For Webcam Capturing Visit
http://localhost:5555/
- For Image Uplod Visit
http://localhost:5555/image/
[Face Detection]https://face-spoofing-demo.herokuapp.com/