Python 3 is fully supported. Python 2 should also work. Only macOS and
Linux are tested. I have no idea if this will work on Windows.
You can install this module from pypi using `pip3` (or `pip2` for Python 2):
```bash
$ pip3 install face_recognition
```
It's very likely that you will run into problems when pip tries to compile
the `dlib` dependency. If that happens, check out this guide to installing
dlib from source instead to fix the error:
[How to install dlib from source](https://gist.github.com/ageitgey/629d75c1baac34dfa5ca2a1928a7aeaf)
After manually installing `dlib`, try running `pip3 install face_recognition`
again.
## Usage
...
...
@@ -82,13 +127,13 @@ unknown_person
```
#### Python API
API Docs: [https://face-recognition.readthedocs.io](https://face-recognition.readthedocs.io).
#### 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!
API Docs: [https://face-recognition.readthedocs.io](https://face-recognition.readthedocs.io).
##### Automatically find all the faces in an image
```python
...
...
@@ -145,7 +190,7 @@ See [this example](https://github.com/ageitgey/face_recognition/blob/master/exam
to try it out.
## Examples
## Python Code Examples
All the examples are available [here](https://github.com/ageitgey/face_recognition/tree/master/examples).
...
...
@@ -154,11 +199,17 @@ All the examples are available [here](https://github.com/ageitgey/face_recogniti
*[Apply (horribly ugly) digital make-up](https://github.com/ageitgey/face_recognition/blob/master/examples/digital_makeup.py)
*[Find and recognize unknown faces in a photograph based on photographs of known people](https://github.com/ageitgey/face_recognition/blob/master/examples/recognize_faces_in_pictures.py)
## Caveats
* The face recognition model is trained on adults does not work very well on children. It tends to mix
up children quite easy using the default comparison threshold of 0.6.
## Thanks
* Many, many thanks to [Davis King](https://github.com/davisking)([@nulhom](https://twitter.com/nulhom))
for creating dlib and for providing the trained facial feature detection and face encoding models
used in this library.
used in this library. For more information on the ResNet the powers the face encodings, check out
his [blog post](http://blog.dlib.net/2017/02/high-quality-face-recognition-with-deep.html).
* Everyone who works on all the awesome Python data science libraries like numpy, scipy, scikit-image,
pillow, etc, etc that makes this kind of stuff so easy and fun in Python.
*[Cookiecutter](https://github.com/audreyr/cookiecutter) and the