Skip to content

Face detection example in Python 3 based on OpenCV and Flask

License

Notifications You must be signed in to change notification settings

i-sanjay-cs/flask_face_detection

 
 

Repository files navigation

Face detection demo (Flask app)

This is a very simple Flask app that let's the user upload a image and detects how many (if any) faces are there in the picture.

Hosting on Heroku

Try it here.

Generate pipfile with command:

pipenv install opencv-contrib-python

pipenv install Flask

pipenv install gunicorn

pipenv install numpy

Add the following buildpack:

https://elements.heroku.com/buildpacks/heroku/heroku-buildpack-apt

and include a list of apt package names to be installed the Aptfile

Docker

Docker container based on: https://hub.docker.com/r/shosoar/alpine-python-opencv/

To build the docker image and run locally:

cd face_detection_flask

docker build -t face_detection_flask .

docker run -it -p 3000:80 face_detection_flask

About

Face detection example in Python 3 based on OpenCV and Flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 59.6%
  • HTML 36.3%
  • Dockerfile 4.1%