Real-Time Face Recognition and Facial Attribute Analysis (Age, Gender, Emotion) in Python

preview_player
Показать описание
In this episode, we are going to mention how to apply face recognition and facial attribute analysis (including age, gender and emotion) in Python for real time web cam video. We will use deepface framework for python. It supports VGG-Face, Google FaceNet, OpenFace, Facebook DeepFace, DeepID, Dlib, ArcFace face recognition models as well. Besides, we can do this with a few lines of code. The framework is fully open source and available on pypi. You can find the detailed documentation in the following repository. All you need is to run "pip install deepface" command to install the framework.

You might be interested in some other studies about deepface framework

Want more? Connect with me here:

If you do like my videos, you can support my effort with your financial contributions on
Рекомендации по теме
Комментарии
Автор

Thank you for the amazing project and the support you have given to the community over the years. Kudos 🙏

dragonsaige
Автор

Hello. Very understandable and fun project.

sardorbekyorqulov
Автор

thanks for this video .
How to adjust the interval of video recognition to within one second to make the recognition result smoother

leeser
Автор

How can I do live analysis without pausing or causing delays to the livestream? Do I have to save the video and analyze it, and later display the info on the live stream? Ps: I love your work!

vivamais_sejamais
Автор

Great!
But can we start a permanent video stream, and not just once every 5 seconds?

НікітаГунько-кл
Автор

Hello thank you for everything, one question how do i get the result of the stream so i can redirect to a webpage or something similar? Or if the database face could not found, then know what happened.

jorgecarreterogulias
Автор

Thank you for the great work! But I have a question tho. I'm using deepface for a project that recognises real-time emotion, how can I get these collected data? I can't find where the data had save in. Thanks in advance!

estherli
Автор

I have looked into this library and the other face-recognition library for Python, this one also the gender, age and emotion which are nice addition feature than just identify person. One question tho, does the "stream" have any way i can obtain those information? Or the function is still not available? Thanks in advance!

railgun
Автор

Hello everyone, as soon as I pass the db_path parameter, I get an AttributeError: module 'deepface.commons.functions' has no attribute 'preprocess_face'. Did you mean: 'preprocess_input'?What should I do? Thank you in advance!

Павел-юи
Автор

great stuff, can you do a face liveness tutorial

dennisasamoah
Автор

Thank you for the amazing project, but what if there is nothing come out when i run the code, i can see the window comeout and i can see my face as well, and i have already creat a database folder and put my photo in it, is the selfik nessary?

Okuramachi
Автор

can we make it do specific tasks only for example only age or gender ... please

thelazydeveloper
Автор

can we make it with opencv getting a numpy array and doing same thing please

thelazydeveloper
Автор

i am stuck in AttributeError: module 'deepface.commons.functions' has no attribute 'get_opencv_path'

DAFFIN
Автор

Sir should we auto-delete the pickle file or recreate the pickle file.

JamalKhan-zllu
Автор

Thank you for your efforts. Do you know how to use stream function in colab? Thanks in advance

abdulrahmansabri
Автор

Amazing work! Could you point me out how I can use the library on a video (mp4). I am trying to use it on the RAVDESS dataset to recognize emotions. But cant' seem to find API to pass videos directly as a path.

UPDATE: I can set the video file path as source =. But I get error at db_path
I am not planning to do face recognition. But Face detection for face emotion recognition. Is there a way to turn off the db_path? How can I retrieve the embedding after analysis of the video?

nafizsadman
Автор

Hi, thank you for this video.
What if I want to display only the dominant emotion and nothing else?

nesrinemejbri
Автор

Very interesting project, thank you! I want to use it in my school project, but my PyCharm can't find the image and says "WARNING: There is no image in this path. Face recognition will not be performed."
What can I do about this problem?

rikitiky
Автор

With this technology, how many faces can be detected at 1 time?

sardorbekyorqulov