Emotion Detection in Python | Emotion detection in 5 lines | Machine Learning | Data Magic

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Hello Friends,
    Today we are going to do emotion detection for the face images with the help of DeepFace library which is developed by Facebook Research team.
    Emotion Detection in Python | Emotion detection in 5 lines | Machine Learning | Data Magic
    Solve Deepface related issues : • How to install deepfa...
    #emotiondetection #machinelearning #python
    Please Like, Comment, Share and Subscribe!!!
    Connect with me,
    CZcams : / @datamagicai
    Facebook : / datamagic2020
    Instagram : / datamagic2020
    Twitter : / datamagic5
    For Business Inquiries : datamagic2020@gmail.com
    emotion detection
    emotion detection using machine learning
    emotion detection python
    emotion detection using opencv python
    emotion detection using deep learning
    emotion detection using cnn
    emotion detection using keras
    emotion detection using tensorflow
    emotion detection using image processing in python
    emotion detection python easy tutorial
    emotion detection python code
    facial emotion detection
    facial emotion detection using python
    facial emotion recognition
    facial emotion recognition using python
    facial emotion recognition using machine learning
    facial emotion recognition realtime
    facial emotion recognition and detection
    facial emotion recognition using deep learning
    facial emotion recognition using keras

Komentáře • 89

  • @somyagoyal8561
    @somyagoyal8561 Před 3 lety +5

    Nice approach to make code shorter but
    What is the concept behind this code.
    Can you describe this in separate video?

    • @DataMagicAI
      @DataMagicAI  Před 3 lety +1

      Deepface is open source, You can find the all code at below GitHub link,
      github.com/serengil/deepface
      Try to read the docs and go through the code. If you have difficulty in understanding any specific part then feel free to reply. I will try to create new episode on it.

  • @joannnittika4304
    @joannnittika4304 Před 3 lety +2

    this really helped thankyou

  • @safaaaezqeio6123
    @safaaaezqeio6123 Před 2 lety +2

    Thank you

  • @b-log55
    @b-log55 Před 4 lety +2

    Nice concept

  • @amrutashinde2613
    @amrutashinde2613 Před 4 měsíci

    Actually I have done with all libraries..I have imported it correctly but the last one line of code that is result= Deepface.analyze was not running and error is that deepface has no attribute analyze .please give mi solution

  • @petsworld3856
    @petsworld3856 Před 3 lety +1

    Thanku...

  • @doraveeravenkatasaisrisuja3565

    great job man thanks a lot .

  • @universalguy3115
    @universalguy3115 Před 3 lety +1

    Perfect.

  • @rutvikrana512
    @rutvikrana512 Před 4 lety +3

    Hi bro ... is this library Free to use ? I mean can I make simple game using this library ?

    • @DataMagicAI
      @DataMagicAI  Před 4 lety +1

      Yes ,Its open source library. You can use it to create games.

  • @syedmujeebh6661
    @syedmujeebh6661 Před 4 lety +1

    Please make a CV ML tutorial for beginner's to learn from scratch

    • @DataMagicAI
      @DataMagicAI  Před 4 lety

      Will create Computer Vision(CV) Tutorial for beginners soon...

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Open CV playlist :
      czcams.com/play/PLTmQbi1PYZ_GrjMHiGCYa0WyDZfxu-yTz.html

  • @dhanshreekumaresh2295
    @dhanshreekumaresh2295 Před 11 měsíci

    it shows 'NoneType' object is not subscriptable error for the line plt.imshow(img1[:,:,::-1])

    • @DataMagicAI
      @DataMagicAI  Před 11 měsíci

      It seems your image not loaded properly. Try on some other image input.

  • @chakrikethireddy3229
    @chakrikethireddy3229 Před rokem

    what type of image do we need to use for testing this model...plz explain

    • @DataMagicAI
      @DataMagicAI  Před rokem

      You can use any jpg or ping image. Make sure it has the face object.

  • @VidishArvind
    @VidishArvind Před 3 lety

    is there any function using MLP CLASSIFIER/or any other deep learning technique that describes emotions of speech (how much person is happy , depressed etc)???

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Please check below link for your reference :
      dev.to/kalebu/emotion-detection-from-text-python-k3
      github.com/abishekarun/Text-Emotion-Classification

  • @katrathai_pagirvom
    @katrathai_pagirvom Před rokem +1

    How to make it for live web cam detection plzz

    • @DataMagicAI
      @DataMagicAI  Před rokem

      Read input with opencv. Check out computer vision with Opencv playlist on our channel.

  • @youssefdirani
    @youssefdirani Před 3 lety +1

    you know I spent around 2 hours just because I've written "emotions" instead of "emotion"

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Oh, keep close eye 👀 on code. Happy coding

  • @veenareddy151
    @veenareddy151 Před 2 lety

    Can we do real time application for more faces in single frame using machine learning.

  • @sahayasugirthacindrellas7482

    this program executed only for Jupiter notebook or colab

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      You can run this code in any python supported IDE.

  • @noranissulaiman5346
    @noranissulaiman5346 Před 3 lety

    Any other tutorials for detecting emotion from the text?

    • @DataMagicAI
      @DataMagicAI  Před 3 lety +1

      Will publish soon ....the sentiment analysis from text tutorial.....

    • @noranissulaiman5346
      @noranissulaiman5346 Před 3 lety

      @@DataMagicAI Thanks. I'm waiting for tht :D

  • @drm8164
    @drm8164 Před rokem

    Hi Boss, please tell me where is the file containing all the images to train the model?
    How to make the model learn?

    • @DataMagicAI
      @DataMagicAI  Před rokem

      This is pre-trained model which is already learned. You just have to use it. Don’t need to train.

  • @arjunvk6201
    @arjunvk6201 Před 2 lety

    Can we use this model for real time detection. Please help

    • @DataMagicAI
      @DataMagicAI  Před 2 lety

      Yes, use OpenCV to acces live feed and apply this model. Check our computer vision playlist for more help on OpenCV

  • @kevinjeyaraj8596
    @kevinjeyaraj8596 Před rokem

    i getting an error
    "NoneType' object is not subscriptable"

    • @DataMagicAI
      @DataMagicAI  Před rokem

      Provide full error. Seems your input image is not loaded properly

  • @satishpadnani3110
    @satishpadnani3110 Před 3 lety

    I get nothing in output when hit enter with the same coding script how to check these libraries are giving error or not cause i am getting blank replies

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      If deepface library errors out then it will throw on your Jupyter Notebook automatically.
      Are you able to display loaded image ? If yes then does this image contains face image?

  • @nizamiimamverdiyev8346

    I can not install deepface on Windows. It says
    To fix this you could try to:
    1. loosen the range of package versions you've specified
    2. remove package versions to allow pip attempt to solve the dependency conflict.
    And the link they provide is not useful. I think it requires Python 3.8 64 bit, but Python has 64 bit only for Mac, for Windows it is only 32 bit

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      You can download 64 bit version from below link.
      www.python.org/downloads/windows/
      While creating this episode I used Python 3.6 version .

    • @nizamiimamverdiyev8346
      @nizamiimamverdiyev8346 Před 3 lety

      @@DataMagicAI Thanks I downloaded, but still could not install deepface. I don't know how to loosen tensorflow>=1.9.0

    • @nizamiimamverdiyev8346
      @nizamiimamverdiyev8346 Před 3 lety

      It asks to follow this link, but it is not helpful pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      pip install tensorflow==1.9.0

    • @nizamiimamverdiyev8346
      @nizamiimamverdiyev8346 Před 3 lety

      @@DataMagicAI Thank you for your answer. I have Python 3.9.1 and it does yet support tensorflow:( I have to wait a bit, according to this command github.com/tensorflow/tensorflow/issues/44485

  • @shaikali7811
    @shaikali7811 Před 3 lety

    bro i am geeting like this AttributeError: module 'deepface' has no attribute 'analyze'
    can you please solve it

    • @DataMagicAI
      @DataMagicAI  Před 3 lety +1

      It seems, you have not installed DeepFace library in correct way. Please try to reinstall the same.

  • @harshitaSharmaE
    @harshitaSharmaE Před 4 lety

    Plt.imshow(img[:,:,::-1])
    I'm getting error in this line
    Typeerror:'Non Type' object is not subscriptable

    • @DataMagicAI
      @DataMagicAI  Před 4 lety

      Run below line separately to make sure your image is loaded in numpy array(img1) in right way.
      img1=cv2.imread(your_image_file)

    • @shantikonda5197
      @shantikonda5197 Před 3 lety

      @@DataMagicAI same error for me too.. i've tried what you said too.. still same error

  • @ramyanagiredla4248
    @ramyanagiredla4248 Před 3 lety

    i am getting attribute error on running that result statement please help me to solve the issue

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Could you please provide full error details ?

  • @sahayasugirthacindrellas7482

    i had so many error. not suppose to define local image path...img1[:,:,::-1] had error

  • @jamshaidali711
    @jamshaidali711 Před 2 lety

    I got this error again and again how to solve this ....>TypeError: Image data of dtype object cannot be converted to float

    • @DataMagicAI
      @DataMagicAI  Před 2 lety

      It seems you are doing some mistakes after loading the image. Make sure you are using the loaded image(numpy array) correctly as explained in video.

  • @nishchithanish1748
    @nishchithanish1748 Před 4 lety

    Im getting an issue like' python has stopped working' after running the code. how can i fix dis prblm..

    • @DataMagicAI
      @DataMagicAI  Před 4 lety

      Which IDE you are using ?

    • @nishchithanish1748
      @nishchithanish1748 Před 4 lety

      spyder

    • @DataMagicAI
      @DataMagicAI  Před 4 lety

      It seems to an issue with your local environment.
      Below are the some best practices. You may give a try and see if it helps out,
      1. Try to update your spyder IDE
      conda update spyder
      2. Make sure there is only one python version path is added in your environment variables.

  • @ShivamSharma-zn5hi
    @ShivamSharma-zn5hi Před 3 lety

    I am getting error - consider to set enforce detection argument to false

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Please provide full error details so I can help you better

  • @RATANAGARWALITINFORMER

    need it

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Drop an email datamagic2020@gmail.com

  • @rayyanamir8560
    @rayyanamir8560 Před 2 lety

    How to use webcam for this?

    • @DataMagicAI
      @DataMagicAI  Před 2 lety

      Check my Computer Vision playlist with OpenCV. Running web cam in Colab bit complicated but you can run same code in Spyder or Pycharm IDE with web cam very easily.

  • @amrutashinde2613
    @amrutashinde2613 Před 4 měsíci

    Please ans me

  • @ishfaqueshaku8246
    @ishfaqueshaku8246 Před 3 lety

    NameError: name 'img1' is not defined

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Make sure you are passing your sample image path which will be loaded in variable img1.

  • @vimalmishra65
    @vimalmishra65 Před 3 lety

    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.
    I am getting this error.How can i resolve this any help on this?

    • @VidishArvind
      @VidishArvind Před 3 lety

      are you using open cv , deep face or any other deep learning technique?

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      It's DeepFace open source deep learning library which is developed by Facebook research team.

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      It's DeepFace open source deep learning library which is developed by Facebook research team.

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      It's DeepFace open source deep learning library which is developed by Facebook research team.

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      Can you please provide some more details,
      is this issue occurring while deepface installation ?

  • @ramanujasati2713
    @ramanujasati2713 Před 3 lety

    Please sir give me this code

    • @DataMagicAI
      @DataMagicAI  Před 3 lety

      You can pause the video and write down the code. It's just 5 lines.