Realtime Face Emotion Recognition | Python | OpenCV | Step by Step Tutorial for beginners

  Рет қаралды 165,036

DeepLearning_by_PhDScholar

DeepLearning_by_PhDScholar

Күн бұрын

This video contains python implementation of Realtime Face Emotion Recognition
1) Brainstorming (background of facial emotion recognition)
(i)Challenges in FER 2013 dataset
2) OpenCV for drawing rectangles and overlaying text data
3) Face emotion recognition using DeepFace library
4) Live Video demo using OpenCV + DeepFace for Webcam

Пікірлер: 313
@linajamadar9197
@linajamadar9197 9 күн бұрын
I’m new at learning AI and computer vision, this an excellent video, explained in detail on each step , thanks a lot!
@ahnafalmajid7981
@ahnafalmajid7981 2 жыл бұрын
When I try to run this it shows "ValueError: Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False." How should I fix these.
@killmonger6573
@killmonger6573 2 жыл бұрын
Use enforce_detection = false It worked for me
@samarthamj4619
@samarthamj4619 2 жыл бұрын
@@killmonger6573 Please can you specify where to add enforce_detection = false
@killmonger6573
@killmonger6573 2 жыл бұрын
@@samarthamj4619 prediction=deepface.analyze(img,enforce_detection=false)
@GokhanUcar1092
@GokhanUcar1092 3 жыл бұрын
Hey there, tahnk you so much for this amazing tutorial. But i have a question. Is there a way to record all these emotions in real time and store in a database?
@sundasrafat2232
@sundasrafat2232 2 жыл бұрын
Hi, did you find an answer ?
@giridharponnur7376
@giridharponnur7376 Жыл бұрын
Did you got the answer
@nizamuddinkhan9443
@nizamuddinkhan9443 3 жыл бұрын
Your video is very helpful for research scholar.... Kindly make videos on different types of feature extraction techniques so that we can train our NN- model on these feature vectors...
@AKSHAYKUMAR-leo
@AKSHAYKUMAR-leo 3 жыл бұрын
Hey Thanks for such a detailed video! I need to Know when you are creating a same video but there you should train a Model and then test the Same Method with its Accuracy so we can have an idea to train different models and then compare them to Check which Models give us a Better Accuracy. I need to Know are there any video for Training a Data set using different models?
@muhammadazeemrao3901
@muhammadazeemrao3901 3 жыл бұрын
Waiting for your next video on "Training deep learning architecture for facial emotion recognition".
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Will upload soon, as I am merging it with my other tutorials so it is taking time, so hopefully in maximum two weeks,
@meenusharma6244
@meenusharma6244 3 жыл бұрын
Well explained Sir , waiting for your video on facial emotions recognition from scratch.
@sowmiya4316
@sowmiya4316 3 жыл бұрын
hay can anyone please explain why we're using ML not DL in this????? ple
@starmovies2714
@starmovies2714 3 жыл бұрын
hello sir when i am import deepface file the i am face this error can you please guide me: i am facing this error: ImportError Traceback (most recent call last) F:\anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in 63 try: ---> 64 from tensorflow.python._pywrap_tensorflow_internal import * 65 # This try catch logic is because there is no bazel equivalent for py_extension. ImportError: DLL load failed while importing _pywrap_tensorflow_internal: A dynamic link library (DLL) initialization routine failed. During handling of the above exception, another exception occurred: ImportError Traceback (most recent call last) in ----> 1 from deepface import DeepFace F:\anaconda3\lib\site-packages\deepface\DeepFace.py in 9 import pickle 10 ---> 11 from deepface.basemodels import VGGFace, OpenFace, Facenet, FbDeepFace, DeepID, DlibWrapper, ArcFace, Boosting 12 from deepface.extendedmodels import Age, Gender, Race, Emotion 13 from deepface.commons import functions, realtime, distance as dst
@islamicinterestofficial
@islamicinterestofficial 3 жыл бұрын
@@starmovies2714 just simply install it using "pip install deepface"
@ghaidaaharbi2962
@ghaidaaharbi2962 3 жыл бұрын
I am facing this issue when I run (predictions = DeepFace.analyze(img)): OSError: Unable to open file (unable to open file: name = '/Home_DIRECTORY/.deepface/weights/age_model_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) Note: I am using mac and running the code on Jupyter notebook
@nidafatima4531
@nidafatima4531 3 жыл бұрын
I also face this error...
@muhammadazeemrao3901
@muhammadazeemrao3901 3 жыл бұрын
Sir Kindly guide about feature extraction in facial emotion recognition. Which features are extracted? How they are extracted? What's the road map? From where to learn feature extraction techniques specifically for facial emotion recognition?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for you interest, I am planning to upload 2 more videos on this topic, one will be based on Tensorflow and another will be based on PyTorch, to build and train deep learning model from scratch, so stay tuned, I hope with in a week so .
@muhammadazeemrao3901
@muhammadazeemrao3901 3 жыл бұрын
@@deeplearning_by_phdscholar6925 I'm thankful that you responded, kindly guide me about feature extraction for frontal face emotion recognition?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Here we are with 03 more videos on the same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@elclar3
@elclar3 5 ай бұрын
thank you for this video
@user-to7dp2uc3o
@user-to7dp2uc3o 4 жыл бұрын
Great video!
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
We have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@user-to7dp2uc3o
@user-to7dp2uc3o 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Thank you
@tejaswinichilke6447
@tejaswinichilke6447 3 жыл бұрын
Thank you for explaining every minute details. Can you please make video on how to create own dataset, and labelling each image before training on CNN model.
@sirasanihemaspandana7390
@sirasanihemaspandana7390 3 жыл бұрын
Great Explanation Bro 👍👍I did it
@MohsinKhan-wy4hv
@MohsinKhan-wy4hv 3 жыл бұрын
very nice SIr... Appreciate it
@josealbertozequeiraperez4499
@josealbertozequeiraperez4499 3 жыл бұрын
Great! any suggestion to improve the performance? it is very slow
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest. Plz find other 03 videos on same topic by visiting our channel. . I.e using tensorflow, you can build your own model and it would be really fast as i dont require dependencies on other libraries. Keep supporting us like this. 👍
@mailtoraj76
@mailtoraj76 2 жыл бұрын
Super. fantastic. One question: Can we provide mp4, mgeg video file instead of real time video?
@aasiralikhan7205
@aasiralikhan7205 2 жыл бұрын
So I am trying to build a model for class engagement detection(if a student is focused, bored, tired etc). What is the best dataset you or anyone reading this comment would suggest?
@pamsquad982
@pamsquad982 2 жыл бұрын
result=DeepFace.analyze(frame,actions=['emotion']). Sir this single command giving me the error and asking face is no detected. kindly help me to solve it. plz
@chemophile14
@chemophile14 4 жыл бұрын
Nice
@user-sy1ym6lr3v
@user-sy1ym6lr3v 7 ай бұрын
Bhaiyya thanks bhaiyaa
@prvindpanday
@prvindpanday 3 жыл бұрын
Hey, I am getting this error. OSError: Unable to open file (unable to open file: name = 'C:\Users\admin/.deepface/weights/age_model_weights.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0) Can you help me with this?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest. There can be two possibilities , 1) please reinstall deepface library again, 2) your slashes "\" are not look like normal, such as first few are "\" and then all of sudden became "/", make sure if you are calling from a path, to put right slashes. Please follow the instructions once again , I hope if you follow line by line it will solve your problem.
@prvindpanday
@prvindpanday 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Thanks. Actually, the h5 files were not present at my local file explorer. But why I am getting this error Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False.
@bemberkarshashanksai7676
@bemberkarshashanksai7676 3 жыл бұрын
@@prvindpanday u solved that error?
@prvindpanday
@prvindpanday 3 жыл бұрын
@@bemberkarshashanksai7676 yes dude
@chillax2691
@chillax2691 3 жыл бұрын
@@prvindpanday how did you solved the "Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False. " error ??
@eranfeit
@eranfeit 3 жыл бұрын
Thank you
@janviagarwal6430
@janviagarwal6430 2 жыл бұрын
hey! how to implement this project using google collab. Please suggest.
@ThePutra313
@ThePutra313 3 жыл бұрын
When I ran it, no error and my camera light is on but no window open, what happened?
@714_praveengoswami3
@714_praveengoswami3 3 жыл бұрын
same thing bro what you do for that
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying, did you check the exact id of your camera, our code is dynamic please make sure to install opencv or if possible install full package of opencv sometimes "pip install opencv-python" may not install all the things, please install full package by "pip install opencv-contrib-python" then try the code cap = cv2.VideoCapture(1) # Check if the webcam is opened correctly if not cap.isOpened(): cap = cv2.VideoCapture(0) if not cap.isOpened(): raise IOError("Cannot open webcam") I hope your problem will be resolved
@devasawant2568
@devasawant2568 3 жыл бұрын
@@deeplearning_by_phdscholar6925 same problem tried to everything but camera remains on and nothing is displayed
@MarkAnthonyFrontDesk
@MarkAnthonyFrontDesk Жыл бұрын
if i use type(predictions) , the result is list and creates a error ; how to solve it ???
@alaafouadd
@alaafouadd 9 ай бұрын
you should make it as two dimensions
@alaafouadd
@alaafouadd 9 ай бұрын
as some images have multi dictionary
@sanskritiyadav2932
@sanskritiyadav2932 3 жыл бұрын
Which algorithms are you using in the entire process?
@Tejas_Khode
@Tejas_Khode 3 жыл бұрын
""Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False. " I am getting this error how do I resolve??
@phatle870
@phatle870 3 жыл бұрын
me too, face could not be detected
@rishitanagpal4384
@rishitanagpal4384 3 жыл бұрын
You can solve this error by adding this in the code: result = DeepFace.analyze(frame, actions=['emotion'], enforce_detection=False)
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying, after receiving few complaints about instability of DeepFace, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@suhanikashyap839
@suhanikashyap839 Жыл бұрын
helpful!
@hdclips501
@hdclips501 3 жыл бұрын
my image is not showing in pycharm local area what to do when i write plt.imshow(img) it didn't work not showing the image as like you have shown sir what to do
@bijudonbosco
@bijudonbosco 3 жыл бұрын
for me, image is coming up till RGB conversion but after analyzing it's not showing up for pycharm getting ('keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects')
@NasirHussain-wh3rw
@NasirHussain-wh3rw 3 жыл бұрын
Hello, Sir I want idea of face movement like left and right recognition system on python, This system is being built for drivers. sir plz help me or any suggestion. ThankYou.
@MAANEESHA
@MAANEESHA 2 жыл бұрын
when I try to run this code in live demo it shows value error face could not be detected sir can u help me to fix this.. please reply soon
@balajiavinash5907
@balajiavinash5907 3 жыл бұрын
Sir in real time video detection i am getting error at line result=DeepFace.analyze(frame, action=['emotion']. Error:"type error:object of type 'NoneType' has no len()." What to do sir.
@pratik8792
@pratik8792 3 жыл бұрын
im getting the same error, were u able to solve it by any chance?
@ayushsinghyadav7451
@ayushsinghyadav7451 3 жыл бұрын
actions*
@islamicinterestofficial
@islamicinterestofficial 3 жыл бұрын
Thanks
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@asimaseem8412
@asimaseem8412 Жыл бұрын
Hi Shan bhai , Great vedio for the beginners , can we get the source code of this project That will much helpfull fro all the beginners
@michaeldimakiling8420
@michaeldimakiling8420 2 жыл бұрын
Thanks for the detailed video Sir. However, I am encoutering the same error that you have in the last part of your video and it doesn't run. What should I do?
@user-qw6fv6rw8x
@user-qw6fv6rw8x Жыл бұрын
I am interested in how emotional recognition is being used in the industry to better show interesting videos for customers and create happy faces instead of sad faces. How can these be used in health care for those in hospitals?
@dorisscepanovic2010
@dorisscepanovic2010 3 жыл бұрын
Hi, I came to the part where camera needs to be open, but I just have laptop camera so it reports the error. Can this work out with laptop camera? And if so, how? Thank you very much :)
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest, this code is valid for laptop camera as the code is dynamic (all usb cameras + laptop cameras) and I have already tested in my laptop as well. As you have not mentioned exact error , let me guess few possiblities 1 ) your camera drivers, if it works on zoom and other applications , then it must open with opencv as well 2) incase you have isntalled opencv with "pip install python-opencv", I recommend you to to run "pip install opencv-contrib-python" command to install full package of opencv, sometimes few packages are missed. I hope if your camera is working on other applications , it must run, as we have shown in video and our code is dynamic, keep sharing my videos and keep supporting me like this, Stay blessed.
@oskarvollmer2391
@oskarvollmer2391 Жыл бұрын
Hi, I have a problem at 17:06 . For me the type isn't dict but list. So i can't really continue with the following steps... Can anyone help?
@SardarKhan-dq3xp
@SardarKhan-dq3xp Жыл бұрын
Use predictions[0]['dominant_emotion'] since it is a dictionary inside a list
@busesengiloglu375
@busesengiloglu375 Жыл бұрын
@@SardarKhan-dq3xp Code said 'unable to get a frame'. How can i fix this problem?
@preetmehak-x9z
@preetmehak-x9z 6 ай бұрын
THANK YOU FOR EXPLAINING IT, CAN YOU PLEASE HELP US DOING WITH COLAB
@salmabrahem556
@salmabrahem556 3 жыл бұрын
please i'm facing a prblm while downloading the model prediction = DeepFace.analyze(img) , i downloaded the facial_expression_model_weights.zip file and add it to my project folder but i dont know how it should works! add the path of the file to the code or how ? please help me
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying, please follow the instructions in the video, we can ensure you that you will be able to deploy the model. Unfortunately, deepface library is unstable some times. In this regard, , if you can wait, we are going to publish 03 more videos on training your own model from scratch. We will publish all videos this week . Stay blessed.
@salmabrahem556
@salmabrahem556 3 жыл бұрын
@@deeplearning_by_phdscholar6925 Thank you for replying , i actually followed step by step all the instructions but i dont know why it's not working but i'll definitely wait for your next videos .
@Angelsentertainmentworld
@Angelsentertainmentworld 3 жыл бұрын
Sir i am going to work on it n i need your guidance and help also
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@aarushijain4058
@aarushijain4058 3 жыл бұрын
Sir even though I have written the same code but still the rectangle and the text is not being displayed on the image. The image in still printing but without the rectangle or the text. Please advice me.
@siddheshpalyekar3625
@siddheshpalyekar3625 2 жыл бұрын
I am getting an error while drawing a rectangle around the face. Kindly help: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
@offthechart01
@offthechart01 2 жыл бұрын
Please have you found solution to this... I'm having same issue
@siddheshpalyekar3625
@siddheshpalyekar3625 2 жыл бұрын
@@offthechart01 I followed a different video ... kzbin.info/www/bejne/l2aaZKN6g7N5e7s Try this
@vaibhavkeni2941
@vaibhavkeni2941 2 жыл бұрын
I have an error that I tensorflow/core/platform/cpu_feature_guard this tensorflow binary is optimised with oneapi deep neural network library to use the following cpu instructions in performance-critical operation AVX AV2X Please help me sir 🙏
@rutvijwagh6216
@rutvijwagh6216 3 жыл бұрын
i am not able to access the drive folder as it says its being shared with too many people
@mairashafi1011
@mairashafi1011 3 жыл бұрын
did you find the solution? I am having the same problem. i don,t have permission to access it.
@minakshee4672
@minakshee4672 3 жыл бұрын
Can we use this for real time video? can you suggest libraries for real time video facial emotion recognizer
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying and thanks for your interest. Its already Realtime face emotion recognition , in case you mean a particular library which could do it automatically for you, I recommend you to follow the instruction and build your own model, once it is trained , you can use it for future. Incase I come to know about some built-in library I will definitely get back to you.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@smritiguleria4407
@smritiguleria4407 3 жыл бұрын
Can u sir make video on the copy move forgery detection in digital video / image for using the juypter notebook in python.can u plz help me sir
@t561355
@t561355 2 жыл бұрын
Can you tell me how to improve the accuracy of face detection when it is far from the camera?
@Naeem_Shehzad4u
@Naeem_Shehzad4u 2 жыл бұрын
I'm master student at Dalian Maritime University china and i'm a beginner and working on emotion detection Could anyone please guide what does it mean my supervisor told me."you should cite more literatures from CVPR ICCV ECCV TPAMI ICCV this kind of stuffs". Waiting for your reply.
@FabiaBenson
@FabiaBenson Жыл бұрын
My prediction is coming out as a List and not dictionary, so I am stuck there as the dominant emotion is throwing up an error, please help
@shreyalipatel1732
@shreyalipatel1732 3 жыл бұрын
I have to come error that Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False. camera is open but frame is not. plz reply soon
@arpitpathak7917
@arpitpathak7917 2 жыл бұрын
sir i can't get 14:48 here ... my notebook is showing error i am fed up this error again and agin ... first it showed on vs code then on Jupiter
@minhuccao7160
@minhuccao7160 2 жыл бұрын
I am facing this issue when I run (plt.imshow(img)): TypeError: Image data of dtype object cannot be converted to float I am sure that the picture not problem import cv2 img = cv2.imread('train\0\Training_345125.jpg') -> right address import matplotlib.pyplot as plt plt.imshow(img)
@ameenullasAMG
@ameenullasAMG 3 жыл бұрын
Getting os error:eof, i was compiling program and internet got disconnected, i was in the line predictions=DeepFace,analyze(img)
@lakshaydulani
@lakshaydulani 3 жыл бұрын
hi can u pls share the notebook link in description
@raghavgoel3615
@raghavgoel3615 2 жыл бұрын
sir what can I do when predictions= DeepFace.analyze(img) show OS error please help!!
@maheshsoni6975
@maheshsoni6975 2 жыл бұрын
Sir webcam is not working properly, only the flash light is blowing and camera is not working...
@sonalisingh9344
@sonalisingh9344 Жыл бұрын
Thanks for the video , its very helpful ...... but its last part of video doesn't run. Input In [60] break ^ SyntaxError: 'break' outside loop how to solve this.
@shaxzodbekqalandarov7957
@shaxzodbekqalandarov7957 Жыл бұрын
hi bro, it still importing action emotions without stopping, what should I do? thank you
@nnamsamuel122
@nnamsamuel122 Жыл бұрын
How do i apply this on scilab? I have this same project but to be implemented on scilab. Can you please help me?
@MarkAnthonyFrontDesk
@MarkAnthonyFrontDesk Жыл бұрын
can i use vscode ; instead of jupyter ?? Please let me know sir.
@syedzub
@syedzub Жыл бұрын
Hi how can I get in touch with you ? Really informative videos! would love to discuss a prospective project with you .
@sakshibakal2919
@sakshibakal2919 Жыл бұрын
I'm getting the type of predictions as list and not dict what to do please reply ....
@mitanshubaranwal8878
@mitanshubaranwal8878 Жыл бұрын
Hi sir I keep getting output like this when I am using this code in webcam "1/1 [==============================] - 0s 24ms/step" can you pls tell how I can remove this
@Kussta
@Kussta 2 жыл бұрын
HELLO i am having trouble with the emotion webcam portion need help wont load
@sradhanjansaha185
@sradhanjansaha185 3 жыл бұрын
i am getting an error as "1. loosen the range of package versions you've specified 2. remove package versions to allow pip attempt to solve the dependency conflict" when i am trying to install deepface package in VS code please help!
@bijudonbosco
@bijudonbosco 3 жыл бұрын
try to do it via pip it worked for me
@DailyWonders90
@DailyWonders90 Жыл бұрын
Thank you for this amazing video. I am facing an issue while running the code. Kindly help me to solve it. # inserting text on video 31 cv2.putText(frame, ---> 32 result['emotion_detector'], 33 (50, 50), 34 font, 3, TypeError: list indices must be integers or slices, not str
@titounisalem6624
@titounisalem6624 Жыл бұрын
Hello; did you find the solution because I have the same problem
@lokaero
@lokaero Жыл бұрын
TypeError: string indices must be integers, not 'str' I too have the problem
@Good_DigitalEntrepreneurship
@Good_DigitalEntrepreneurship Ай бұрын
I want to knoe more about it for my internship please let me know how to connect
@cyborg9910
@cyborg9910 3 жыл бұрын
When i am importing deepface in my system it is not displaying "Using TenserFlow backend" and on "predictions = DeepFace.analyze(imgg)" command i am getting this error --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) in ----> 1 predictions = DeepFace.analyze(imgg) ~\anaconda3\lib\site-packages\deepface\DeepFace.py in analyze(img_path, actions, models, enforce_detection, detector_backend) 306 307 img_paths, bulkProcess = functions.initialize_input(img_path) --> 308 functions.initialize_detector(detector_backend = detector_backend)
@carnagersc9892
@carnagersc9892 2 жыл бұрын
"value error: Face couldnot be detected . please confirm that picture is a face photo as consider to set enforce detection to false"....................this is the error i'm facing sir.......sir could you help me to fix it?????
@ImpulseFusion
@ImpulseFusion 3 жыл бұрын
i got File Not Found error while executing "predictions = DeepFace.analyze(img)" it says "FileNotFoundError: [Errno 2] No such file or directory: '/root/.deepface/weights/facial_expression_model_weights.zip'" . how can i solve it??
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest, can you tell me which platform are you using, it seems like you are executing in ubuntu while in tutorial I have only shown for windows 10. However, it must be dynamic, I will check it in ubuntu as well. Meanwhile can you please use windows 10 and follow all the instructions, I hope you will get it. In addition, I will upload a new tutorial in a week for building your own deep learning model for emotion recognition. Thanks
@ImpulseFusion
@ImpulseFusion 3 жыл бұрын
@@deeplearning_by_phdscholar6925 i am working on macOS , and executed it on colab as well as vsCode .
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
@@ImpulseFusion Here we are with 03 more videos on the same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@sreedeviprasad7082
@sreedeviprasad7082 2 жыл бұрын
OSError: Unable to open file (truncated file: eof = 53416104, sblock->base_addr = 0, stored_eof = 538771776) I am getting an error like this..could you please say how to fix it
@newgamer2905
@newgamer2905 Жыл бұрын
Hey hi!! Are u rectified this error????? If u doned can u plz help me
@govindshanbhag6524
@govindshanbhag6524 Жыл бұрын
instead of dictionary for prediction i'm getting it in list format plz can some one help about how to alter the code
@joshithasreeraj3320
@joshithasreeraj3320 Жыл бұрын
Did u find the solution?
@mukeshpandit3958
@mukeshpandit3958 2 жыл бұрын
i did not see source code and dataset along with the video. these things are great if we get stuck somewhere in coding.
@kalpatarudash3316
@kalpatarudash3316 3 жыл бұрын
predictions = DeepFace.analyse(img) is not working for me it is giving an error
@parthivishrivastava1176
@parthivishrivastava1176 3 жыл бұрын
Hello Sir, Is it possible to build a system that recognizes face emotions as well as drowsiness(eyes closing and yawning) of a person and alert them for extreme emotions and drowsiness?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest and sorry for being late in replying. Nice idea, sure you can do it by combining our two videos, such as emotion recognition and drowsiness detection Please visit my channel you will find both the videos. So in order to combine them you will have to use two different models, at the end, so code will be same , all you need is to merge such as provide face image to Deepface library , and crop eyes (as we did in drowsiness detection video), and provide it to drowsiness detection model accordingly. I hope I have answered your query, If you have any question , please feel free to ask and keep supporting my channel like this.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Here we are with 03 more videos on same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@manbirjudge8415
@manbirjudge8415 3 жыл бұрын
What if u gave the programme the painting of Mona Lisa
@SamyakKumarBCS
@SamyakKumarBCS 3 жыл бұрын
Getting error in deepface analyze..its says "Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False." plz reply
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
please modify your code by adding enforce_detection =False result = DeepFace.analyze(frame, actions=['emotion'], enforce_detection=False) Or make sure your face is inside the video or any other exception method using webcame such as if face not detection donot call deepface.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Here we are with 03 more videos on the same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@B.lavender
@B.lavender Жыл бұрын
gray = cv2.cvtColor(frame,cv2.COLOR_BGR2GRAY) ^ IndentationError: unexpected indent How can I fix this error?
@B.lavender
@B.lavender Жыл бұрын
@DeepLearning_by_PhDScholar
@mahbubhasan8816
@mahbubhasan8816 3 жыл бұрын
I am facing this error in line 7, but why!! ResourceExhaustedError: OOM when allocating tensor with shape[7,7,512,4096] and type float on /job:localhost/replica:0/task:0/device:CPU:0 by allocator cpu [Op:RandomUniform]
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
it seems like your computer specification are not enough. We recommend you to please use google colab ( colab.research.google.com) , its free as long as you are logged-in via gmail account, press "NEW NOTEBOOK" then for all installations, add this "!" mark before like !pip install deepface, follow all the instructions as is in video, you will be good to go
@mahbubhasan8816
@mahbubhasan8816 3 жыл бұрын
@@deeplearning_by_phdscholar6925 As your instruction, I write the code on google colab but sorry to say this time I am facing a problem at very beginning , that is TypeError: Image data of dtype object cannot be converted to float. I write the exact code as your video.
@andy-zq9lz
@andy-zq9lz 3 жыл бұрын
excuse Is there a paper for this MODEL for reference? thanks
@shadisaleh763
@shadisaleh763 3 жыл бұрын
hey I got this error raise ValueError("Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False.") ValueError: Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False. [ WARN:1] terminating async callback
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest. This error is known when you don't have face inside video frame. While testing, make sure you must have face inside video frame. Secondly, as deepface library is under development, please make sure to have front-face video. I hope this will solve your problem.
@shadisaleh763
@shadisaleh763 3 жыл бұрын
@@deeplearning_by_phdscholar6925 thanks alot for your quick reply , there is also another error for still images, it work only for one image (i.e happyboy) but arise an error for another images such as (sadwoman) ResourceExhaustedError: OOM when allocating tensor with shape[7,7,512,4096] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc [Op:Add]
@shadisaleh763
@shadisaleh763 3 жыл бұрын
@@deeplearning_by_phdscholar6925 is there possible to get the code ? thanks
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
@@shadisaleh763 Here we are with 03 more videos on same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, Code for 1) is also provided New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@starmovies2714
@starmovies2714 3 жыл бұрын
hello sir your work was really good but am finding some difficulty in downloading library files of matplotlib and deepface can you please guide me ....
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying, after receiving few complaints about instability of DeepFace, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@darshanbhatt6556
@darshanbhatt6556 3 жыл бұрын
deepface is not predicting the correct emotion for the image pls help me
@fallen_soul778
@fallen_soul778 3 жыл бұрын
sir only neutral is being shown no matter whichever expression I provide
@darshang7500
@darshang7500 3 жыл бұрын
I am getting this following error could u please tell me what's wrong? facial_expression_model_weights.h5 will be downloaded... Access denied with the following error: Too many users have viewed or downloaded this file recently. Please try accessing the file again later. If the file you are trying to access is particularly large or is shared with many people, it may take up to 24 hours to be able to view or download the file. If you still can't access a file after 24 hours, contact your domain administrator. You may still be able to access the file from the browser: drive.google.com/uc?id=13iUHHP3SlNg53qSuQZDdHDSDNdBP9nwy
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you so much for your interest and I fee sorry about your error. I have noticed this problem with google coalab with Deepface library which is unstable while using coalab. I recommend you to kindly follow the video instructions and use jupyter notebook at your pc just like I did it in video. I hope you will not found problem when using inside your PC. it is known issue for deepface library in google colab. I hope they will fix it soon, mean while please install it in your pc as I did it in video. That will solve our problem. Thanks stay blessed
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
In addition, I am preparing tutorial for building your own deep learning model rather than using deepface, I will upload it in a week or so. Kindly stay tuned. Thanks
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Here we are with 03 more videos on same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@aliasyahirah3040
@aliasyahirah3040 3 жыл бұрын
Hi, can this project do in mobile apps?
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for your interest, you can do it for mobile applications as well, but you need to use other tools like Tensorflow lite etc, (code will be almost same only wrapper ) and android development. In short, base will be same and with slight modifications, you can do it, I hope I answered your question. Stay blessed.
@tishaghosh9129
@tishaghosh9129 Жыл бұрын
I can not find the path of the dataset. can you please help me?
@vijithvnair7133
@vijithvnair7133 3 жыл бұрын
can we do this in google colab, please reply...
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thanks for your interest, yes, you can do it, in case you want to install any library, just add the exclamation mark"!", for example, for installing OpenCV, !pip install opencv-python, so for all installations steps, add ! in front of it, rest is same, Keep enjoying, stay blessed
@ImpulseFusion
@ImpulseFusion 3 жыл бұрын
hii if you have executed the same task in colab . can you please suggest me how you setup the webcam .
@kirtigorasiya99
@kirtigorasiya99 3 жыл бұрын
AttributeError : module cv2.cv3 has no attribute ' FONT_HERSHEY_SIMPLEX.... PLZ HELP ME
@5th_official
@5th_official 3 жыл бұрын
no need for the cv3 after cv2. Try this: font = cv2.FONT_HERSHEY_COMPLEX
@tusharbedse9523
@tusharbedse9523 3 жыл бұрын
When I am running predictions variable then my python is getting closed and kernel is dying. Any suggestions please?
@simonecodenotti6892
@simonecodenotti6892 3 жыл бұрын
You could move to Iceland
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying, after receiving few complaints about instability of DeepFace, we have published new videos on training your own images, you can choose any of them based on your desired library of your compfort Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@tedbundy69
@tedbundy69 3 жыл бұрын
Hello there I am completely new to this, I just want to know where did you use that dataset?
@MsGuitarrista1999
@MsGuitarrista1999 3 жыл бұрын
He never used it, he uses a pre trained model (DeepFace) instead
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Sorry for being late in replying Now you can train you own images, and we have trained FER 2013 you can choose your own programming language or library in which you are comfortable. we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Although, in last video we did not used any training as it was for beginners, This time, we have published 03 more videos on training your own images and dataset FER 2013 Based on you comfort level for programming language and library, you can follow any of them Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@riteshseth9300
@riteshseth9300 3 жыл бұрын
I am trying to deploy this on a flask server, but i am not able to do it. Can Someone Help me
@satyakora4716
@satyakora4716 3 жыл бұрын
Can someone please share the code?
@rishitanagpal4384
@rishitanagpal4384 3 жыл бұрын
I am getting an error object of type 'None type' has no len() In the line predictions= DeepFace.analyze(frame, actions=['emotion'], enforce_detection=False)
@ayrtonmicallef966
@ayrtonmicallef966 3 жыл бұрын
Same problem here...did you fix it bro ?
@techech8848
@techech8848 3 жыл бұрын
same problem
@rishitanagpal4384
@rishitanagpal4384 3 жыл бұрын
@@ayrtonmicallef966 no...still trying...I think I need to delete everything and import the Library again
@ayrtonmicallef966
@ayrtonmicallef966 3 жыл бұрын
@@rishitanagpal4384 Ok, thanks for responding
@rishitanagpal4384
@rishitanagpal4384 3 жыл бұрын
@@ayrtonmicallef966 if you find any other way...do share it👍🏻
@allawayoucef3828
@allawayoucef3828 3 жыл бұрын
source code please ?!
@muhammadafnan2141
@muhammadafnan2141 3 жыл бұрын
can you make fight detection or any help in this which tools should i learn for this i am beginer in this
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
In case you mean, fight as an action, so it lies under "action recognition", in this regard, you need to learn object detection + sequential logic or graphs, to perform action recognition. Stay tuned, as we have started with beginners level, we will definitely cover the basic level topics and will eventually cover action recognition. Keep watching our all upcoming videos, we will get back to you soon.
@muhammadafnan2141
@muhammadafnan2141 3 жыл бұрын
@@deeplearning_by_phdscholar6925 thanks and plz also make a project related to fight detection that will great help
@shifaislamicknowledge4699
@shifaislamicknowledge4699 2 жыл бұрын
Can this be done without Webcam....... I use droid cam as my webcam...!!!!!!!!! so is there any solution??
@mahbubhasan8816
@mahbubhasan8816 3 жыл бұрын
Can you give me the full code and resources on Github link, please.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Thank you for you interest, as it is beginners level video, so we want you to please follow the instructions in the video, and at the end you will have the code right? , I hope I have answered your question.
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
New videos for training the dataset for face emotion recognition using github link for 1) is also provided 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
@shaikali7811
@shaikali7811 3 жыл бұрын
ValueError: Face could not be detected. Please confirm that the picture is a face photo or consider to set enforce_detection param to False. bro i am getting this error i am at last step please solve this one
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
please modify your code by adding enforce_detection =False result = DeepFace.analyze(frame, actions=['emotion'], enforce_detection=False) Or make sure your face is inside the video or any other exception method using webcame such as if face not detection donot call deepface. Please keep supporting my channel
@abhishekjha4803
@abhishekjha4803 3 жыл бұрын
When will the video of training of this video's dataset will be released
@deeplearning_by_phdscholar6925
@deeplearning_by_phdscholar6925 3 жыл бұрын
Here we are with 03 more videos on same topic, choose according to your programming language or library in which you are comfortable, we have published new videos on training your own images, you can choose any of them based on your desired field of interest Thank you for your interest, New videos for training the dataset for face emotion recognition using 1 ) Pytorch based implementation kzbin.info/www/bejne/r3-aopl4nct6p9U 2) Matlab based implementation kzbin.info/www/bejne/jprQmHuahseDe8U 3) Tensorflow based implementation kzbin.info/www/bejne/l6fZanqHaMdph8k
Open Source Face Analysis with Python
15:07
Rob Mulla
Рет қаралды 52 М.
отомстил?
00:56
История одного вокалиста
Рет қаралды 5 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 21 МЛН
Object Detection using OpenCV | Python | Tutorial for beginners 2020
29:29
DeepLearning_by_PhDScholar
Рет қаралды 242 М.
Live Face Recognition in Python
16:16
NeuralNine
Рет қаралды 164 М.
FACE RECOGNITION  + ATTENDANCE PROJECT | OpenCV Python | Computer Vision
52:24
Murtaza's Workshop - Robotics and AI
Рет қаралды 1,6 МЛН
Face recognition in real-time | with Opencv and Python
28:19
Pysource
Рет қаралды 275 М.
OpenCV tutorial for beginners | FULL COURSE in 3 hours with Python
3:11:11
Computer vision engineer
Рет қаралды 70 М.
Real - time emotion detection using python
13:06
I know python
Рет қаралды 18 М.