Skip to content

Create your own Real-Time World Wide Face Detector using powerful python script .

License

Notifications You must be signed in to change notification settings

Apokky-30/Real-Time-Face-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Real-Time-Face-Detector

Create your own Real-Time World Wide Face Detector using a webcam!! We use powerful python script by Apokky-30 to make all of this incredible project.

Example:

36f0e3f0-13cb-11e7-8258-4d0c9ce1e419

Installations↙️

Requirements:

  • Python 3.3+ or Python 2.7
  • macOS or Linux (Windows not officially supported, but might work)

Installation Options:

Installing on Mac or Linux :

- First, make sure you have dlib already installed with Python bindings:

How to install dlib from source on macOS or Ubuntu

- Then, make sure you have cmake installed:

brew install cmake

- Finally, install this module from pypi using pip3 (or pip2 for Python 2):

pip3 install face_recognition

Alternatively, you can try this library with Docker

If you are having trouble with installation, you can also try out a pre-configured VM.

Installing on Windows :

While Windows isn't officially supported, helpful users have posted instructions on how to install this library:

Installing a pre-configured Virtual Machine image :

Installing on an Nvidia Jetson Nano board :

  • Jetson Nano installation instructions -- Please follow the instructions in the article carefully. There is current a bug in the CUDA libraries on the Jetson Nano that will cause this library to fail silently if you don't follow the instructions in the article to comment out a line in dlib and recompile it.

Installing on Raspberry Pi 2+ :

Installing on FreeBSD :

pkg install graphics/py-face_recognition

Python Module :

You can import the face_recognition module and then easily manipulate faces with just a couple of lines of code. It's super easy!

Source Code↙️

Creating a Standalone Executable :

If you want to create a standalone executable that can run without the need to install python or face_recognition, you can use PyInstaller. However, it requires some custom configuration to work with this library. See this issue for how to do it.

Articles and Guides that cover face_recognition :

Caveats :

  • The face recognition model is trained on adults and does not work very well on children. It tends to mix up children quite easy using the default comparison threshold of 0.6.
  • Accuracy may vary between ethnic groups. Please see this wiki page for more details.

Deployment to Cloud Hosts (Heroku, AWS, etc) :

Since face_recognition depends on dlib which is written in C++, it can be tricky to deploy an app using it to a cloud hosting provider like Heroku or AWS.

To make things easier, there's an example Dockerfile in this repo that shows how to run an app built with face_recognition in a Docker container. With that, you should be able to deploy to any service that supports Docker images.

You can try the Docker image locally by running: docker-compose up --build

Linux users with a GPU (drivers >= 384.81) and Nvidia-Docker installed can run the example on the GPU: Open the docker-compose.yml file and uncomment the dockerfile: Dockerfile.gpu and runtime: nvidia lines.

Having problems? :

If you run into problems, please read the Common Errors section of the wiki before filing a github issue.

Find Me On :

About

Create your own Real-Time World Wide Face Detector using powerful python script .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages