Spaces:
Configuration error
Configuration error
File size: 1,434 Bytes
aa77e96 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# Face Info
Face Info is an implementation of facial recognition, detection of facial attributes (age, gender, emotion and race) for python.
The repository provides a script to run Face Info with the webcam or by entering the path of an image.
This implementation allows recognition of multiple faces and the registration of new users for facial recognition.
# How to install:
<pre><code>pip install -r requirements.txt </code></pre>
# How to run:
The code is tested in python 3.7.8 and macOS Catalina
<pre><code>python Face_info.py --input webcam </code></pre>
![alt text](https://github.com/juan-csv/Face_info/blob/master/results/Face_ID.gif)
running over an image
<pre><code>python Face_info.py --input image --path_im data_test/friends.jpg </code></pre>
![alt text](https://github.com/juan-csv/Face_info/blob/master/results/result.png)
# Add new faces to the database (facial recognition)
You can add new users to the faces database simply by adding the person's photo in the **images_db** folder, for the registry to work correctly, only the person of interest should appear in the photo.
# References
- **Emotion detection:** https://github.com/juan-csv/emotion_detection
- **Face Recognition:** https://github.com/juan-csv/face-recognition
- **Age detection:** https://github.com/serengil/deepface
- **Gender detection:** https://github.com/serengil/deepface
- **Race detection:** https://github.com/serengil/deepface |