Team Ai
Apppublic

13nishit/FaceRecognition

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
App README

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 Faceinfo.py --input webcam </code></pre> ![alt text](https://github.com/juan-csv/Faceinfo/blob/master/results/Face_ID.gif)

running over an image <pre><code>python Faceinfo.py --input image --pathim datatest/friends.jpg </code></pre> ![alt text](https://github.com/juan-csv/Faceinfo/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