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

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 313

  • @linajamadar9197
    @linajamadar9197 2 месяца назад +2

    I’m new at learning AI and computer vision, this an excellent video, explained in detail on each step , thanks a lot!

  • @AKSHAYKUMAR-leo
    @AKSHAYKUMAR-leo 3 года назад +7

    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?

  • @GokhanUcar1092
    @GokhanUcar1092 3 года назад +23

    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?

  • @nizamuddinkhan9443
    @nizamuddinkhan9443 3 года назад +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...

  • @muhammadazeemrao3901
    @muhammadazeemrao3901 4 года назад +8

    Waiting for your next video on "Training deep learning architecture for facial emotion recognition".

    • @deeplearning_by_phdscholar6925
      @deeplearning_by_phdscholar6925  4 года назад

      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 4 года назад

      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"

  • @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.

  • @muhammadazeemrao3901
    @muhammadazeemrao3901 4 года назад +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  4 года назад +5

      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 4 года назад +1

      @@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 года назад +1

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @ghaidaaharbi2962
    @ghaidaaharbi2962 3 года назад +5

    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

  • @josealbertozequeiraperez4499
    @josealbertozequeiraperez4499 3 года назад +2

    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. 👍

  • @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?

  • @sirasanihemaspandana7390
    @sirasanihemaspandana7390 3 года назад

    Great Explanation Bro 👍👍I did it

  • @pamsquad982
    @pamsquad982 2 года назад +3

    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

  • @aasiralikhan7205
    @aasiralikhan7205 2 года назад +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?

  • @user-to7dp2uc3o
    @user-to7dp2uc3o 4 года назад +2

    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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

    • @user-to7dp2uc3o
      @user-to7dp2uc3o 3 года назад

      @@deeplearning_by_phdscholar6925 Thank you

  • @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?

  • @MohsinKhan-wy4hv
    @MohsinKhan-wy4hv 3 года назад

    very nice SIr... Appreciate it

  • @sanskritiyadav2932
    @sanskritiyadav2932 3 года назад +2

    Which algorithms are you using in the entire process?

  • @MAANEESHA
    @MAANEESHA 3 года назад +1

    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

  • @elclar3
    @elclar3 7 месяцев назад +1

    thank you for this video

  • @preetmehak-x9z
    @preetmehak-x9z 9 месяцев назад

    THANK YOU FOR EXPLAINING IT, CAN YOU PLEASE HELP US DOING WITH COLAB

  • @sonalisingh9344
    @sonalisingh9344 2 года назад

    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.

  • @janviagarwal6430
    @janviagarwal6430 2 года назад +1

    hey! how to implement this project using google collab. Please suggest.

  • @NasirHussain-wh3rw
    @NasirHussain-wh3rw 3 года назад +1

    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.

  • @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

  • @chemophile14
    @chemophile14 4 года назад +1

    Nice

  • @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.

  • @prvindpanday
    @prvindpanday 4 года назад +2

    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  4 года назад +1

      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 4 года назад +2

      @@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 4 года назад +2

      @@prvindpanday u solved that error?

    • @prvindpanday
      @prvindpanday 4 года назад +1

      @@bemberkarshashanksai7676 yes dude

    • @chillax2691
      @chillax2691 4 года назад +1

      @@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 ??

  • @mailtoraj76
    @mailtoraj76 2 года назад +1

    Super. fantastic.
    One question: Can we provide mp4, mgeg video file instead of real time video?

  • @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

  • @Naeem_Shehzad4u
    @Naeem_Shehzad4u 3 года назад +1

    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.

  • @ThePutra313
    @ThePutra313 3 года назад +3

    When I ran it, no error and my camera light is on but no window open, what happened?

    • @714_praveengoswami3
      @714_praveengoswami3 3 года назад +1

      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

  • @t561355
    @t561355 2 года назад

    Can you tell me how to improve the accuracy of face detection when it is far from the camera?

  • @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 🙏

  • @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.

  • @Tejas_Khode
    @Tejas_Khode 4 года назад +2

    ""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 4 года назад +1

      me too, face could not be detected

    • @rishitanagpal4384
      @rishitanagpal4384 4 года назад +1

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @hdclips501
    @hdclips501 3 года назад +1

    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')

  • @ameenullasAMG
    @ameenullasAMG 3 года назад

    Getting os error:eof, i was compiling program and internet got disconnected, i was in the line predictions=DeepFace,analyze(img)

  • @Angelsentertainmentworld
    @Angelsentertainmentworld 3 года назад +2

    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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @raghavgoel3615
    @raghavgoel3615 2 года назад

    sir what can I do when predictions= DeepFace.analyze(img) show OS error
    please help!!

  • @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?

  • @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

  • @balajiavinash5907
    @balajiavinash5907 3 года назад +1

    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.

  • @Kussta
    @Kussta 3 года назад

    HELLO i am having trouble with the emotion webcam portion need help wont load

  • @syedzub
    @syedzub Год назад

    Hi how can I get in touch with you ? Really informative videos! would love to discuss a prospective project with you .

  • @ReinerEger
    @ReinerEger 9 месяцев назад

    Bhaiyya thanks bhaiyaa

  • @salmabrahem556
    @salmabrahem556 3 года назад +1

    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 .

  • @MarkAnthonyFrontDesk
    @MarkAnthonyFrontDesk Год назад

    can i use vscode ; instead of jupyter ?? Please let me know sir.

  • @minhuccao7160
    @minhuccao7160 3 года назад

    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)

  • @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

  • @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

  • @shaxzodbekqalandarov7957
    @shaxzodbekqalandarov7957 Год назад

    hi bro, it still importing action emotions without stopping, what should I do? thank you

  • @starmovies2714
    @starmovies2714 3 года назад +2

    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 года назад +1

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @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

  • @mohamedcherifsaaied5840
    @mohamedcherifsaaied5840 3 года назад

    Good job phdScholar , in other case u should explain how to use it with other IDE's and the differents methods of creating a environement for deeplearning like tensorflow for exemple

    • @starmovies2714
      @starmovies2714 3 года назад

      hello am finding some difficulty in downloading deepface library and matplotlib could u please guide me

    • @mohamedcherifsaaied5840
      @mohamedcherifsaaied5840 3 года назад

      @@starmovies2714 hi noor , ur working with anaconda distribution ?

    • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @oskarvollmer2391
    @oskarvollmer2391 Год назад +1

    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 Год назад +1

      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?

  • @rutvijwagh6216
    @rutvijwagh6216 3 года назад +1

    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.

  • @mahelawijekoon1252
    @mahelawijekoon1252 3 года назад +3

    Hello Sir, I want to detect the emotion and the activity/action of the user using the real time video capture. Do you have any recommendations for the implementation of the activity detection part ( datasets, algorithms, libraries etc.) along with this emotion detection ?

    • @ankitaksb
      @ankitaksb 3 года назад +1

      I am also looking for for the same...

    • @mahelawijekoon1252
      @mahelawijekoon1252 3 года назад

      @@ankitaksb I'm still in the process of searching a way for that

  • @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)

  • @Ananta_AI
    @Ananta_AI 3 месяца назад

    I want to knoe more about it for my internship please let me know how to connect

  • @lakshaydulani
    @lakshaydulani 3 года назад +1

    hi can u pls share the notebook link in description

  • @fallen_soul778
    @fallen_soul778 3 года назад

    sir only neutral is being shown no matter whichever expression I provide

  • @carnagersc9892
    @carnagersc9892 3 года назад

    "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?????

  • @maheshsoni6975
    @maheshsoni6975 2 года назад

    Sir webcam is not working properly, only the flash light is blowing and camera is not working...

  • @parthivishrivastava1176
    @parthivishrivastava1176 4 года назад +2

    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  4 года назад

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @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 ...
      ruclips.net/video/a573pDNNFEY/видео.html
      Try this

  • @dorisscepanovic2010
    @dorisscepanovic2010 3 года назад +1

    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 года назад +2

      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.

  • @tishaghosh9129
    @tishaghosh9129 Год назад

    I can not find the path of the dataset. can you please help me?

  • @openmindjustdoit1306
    @openmindjustdoit1306 3 года назад

    can we use it on the door of the school to know did they children happy or not

  • @minakshee4672
    @minakshee4672 4 года назад +1

    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  4 года назад

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @selenawilliams5051
    @selenawilliams5051 Год назад

    Can you post a link to the github or google colab for this?

  • @kalpatarudash3316
    @kalpatarudash3316 3 года назад

    predictions = DeepFace.analyse(img) is not working for me
    it is giving an error

  • @manbirjudge8415
    @manbirjudge8415 3 года назад

    What if u gave the programme the painting of Mona Lisa

  • @shifaislamicknowledge4699
    @shifaislamicknowledge4699 3 года назад

    Can this be done without Webcam.......
    I use droid cam as my webcam...!!!!!!!!!
    so is there any solution??

  • @andy-zq9lz
    @andy-zq9lz 3 года назад

    excuse Is there a paper for this MODEL for reference? thanks

  • @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

  • @ImpulseFusion
    @ImpulseFusion 4 года назад

    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  4 года назад

      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 4 года назад

      @@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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @李易泰-t9o
    @李易泰-t9o 3 года назад

    No one on the screen will display an error
    How to deal with?

  • @eranfeit
    @eranfeit 3 года назад

    Thank you

  • @darshanbhatt6556
    @darshanbhatt6556 3 года назад

    deepface is not predicting the correct emotion for the image pls help me

  • @suhanikashyap839
    @suhanikashyap839 2 года назад

    helpful!

  • @abhishekjha4803
    @abhishekjha4803 4 года назад

    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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @sreedeviprasad7082
    @sreedeviprasad7082 3 года назад

    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

  • @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

  • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @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

  • @DeepikaK.m
    @DeepikaK.m 6 месяцев назад

    please share the images used in this project

  • @Movieshorts2605
    @Movieshorts2605 3 года назад

    Hello brother, is the code available in github?

  • @fahd6162
    @fahd6162 3 года назад

    What is the algorithm used here

  • @SamyakKumarBCS
    @SamyakKumarBCS 4 года назад

    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  4 года назад

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @techech8848
    @techech8848 3 года назад

    I met an error:
    ('Detected face shape is ', (0, 218, 3), '. Consider to set enforce_detection argument to False.')
    How can I fix that?

    • @techech8848
      @techech8848 3 года назад +1

      after I fix this error, i met another:
      object of type 'NoneType' has no len()

    • @ayrtonmicallef966
      @ayrtonmicallef966 3 года назад +1

      @@techech8848 Make sure that you wrote the last two lines cap.release()
      and
      cv2.destroyAllWindows() outside of the while loop...

    • @olesyatronkina9047
      @olesyatronkina9047 3 года назад +1

      predict = DeepFace.analyze(img, enforce_detection = False )

    • @deeplearning_by_phdscholar6925
      @deeplearning_by_phdscholar6925  3 года назад

      Sorry for being late in replying, 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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

    • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

    • @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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @mahbubhasan8816
    @mahbubhasan8816 4 года назад

    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  4 года назад

      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 4 года назад

      @@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.

  • @vikasmaurya4476
    @vikasmaurya4476 Год назад

    Can anyone tell me ? Where i can find this folder?

  • @muhammadafnan2141
    @muhammadafnan2141 4 года назад

    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  4 года назад +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 4 года назад

      @@deeplearning_by_phdscholar6925 thanks and plz also make a project related to fight detection that will great help

  • @aliasyahirah3040
    @aliasyahirah3040 4 года назад +1

    Hi, can this project do in mobile apps?

    • @deeplearning_by_phdscholar6925
      @deeplearning_by_phdscholar6925  4 года назад +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.

  • @mahbubhasan8816
    @mahbubhasan8816 4 года назад +1

    Can you give me the full code and resources on Github link, please.

    • @deeplearning_by_phdscholar6925
      @deeplearning_by_phdscholar6925  4 года назад

      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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html

  • @shaikali7811
    @shaikali7811 4 года назад

    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  4 года назад

      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

  • @shadisaleh763
    @shadisaleh763 4 года назад

    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  4 года назад +1

      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 4 года назад

      @@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 4 года назад

      @@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
      ruclips.net/video/yN7qfBhfGqs/видео.html
      2) Matlab based implementation
      ruclips.net/video/XimgHdQbPEc/видео.html
      3) Tensorflow based implementation
      ruclips.net/video/avv9GQ3b6Qg/видео.html