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

Поділитися
Вставка
  • Опубліковано 12 січ 2025

КОМЕНТАРІ • 89

  • @somyagoyal8561
    @somyagoyal8561 4 роки тому +5

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому +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 4 роки тому +2

    this really helped thankyou

  • @doraveeravenkatasaisrisuja3565
    @doraveeravenkatasaisrisuja3565 3 роки тому +1

    great job man thanks a lot .

  • @b-log55
    @b-log55 4 роки тому +2

    Nice concept

  • @petsworld3856
    @petsworld3856 3 роки тому +1

    Thanku...

  • @safaaaezqeio6123
    @safaaaezqeio6123 2 роки тому +2

    Thank you

  • @universalguy3115
    @universalguy3115 3 роки тому +1

    Perfect.

  • @youssefdirani
    @youssefdirani 3 роки тому +2

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

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      Oh, keep close eye 👀 on code. Happy coding

  • @rutvikrana512
    @rutvikrana512 4 роки тому +3

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому +1

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

  • @VidishArvind
    @VidishArvind 4 роки тому

    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  4 роки тому

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

  • @syedmujeebh6661
    @syedmujeebh6661 4 роки тому +1

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

  • @chakrikethireddy3229
    @chakrikethireddy3229 2 роки тому

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

    • @DataMagicAI
      @DataMagicAI  2 роки тому

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

  • @amrutashinde2613
    @amrutashinde2613 8 місяців тому

    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

  • @noranissulaiman5346
    @noranissulaiman5346 3 роки тому

    Any other tutorials for detecting emotion from the text?

    • @DataMagicAI
      @DataMagicAI  3 роки тому +1

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

    • @noranissulaiman5346
      @noranissulaiman5346 3 роки тому

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

  • @katrathai_pagirvom
    @katrathai_pagirvom Рік тому +1

    How to make it for live web cam detection plzz

    • @DataMagicAI
      @DataMagicAI  Рік тому

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

  • @veenareddy151
    @veenareddy151 2 роки тому

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

  • @drm8164
    @drm8164 2 роки тому

    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  2 роки тому

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

  • @arjunvk6201
    @arjunvk6201 2 роки тому

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

    • @DataMagicAI
      @DataMagicAI  2 роки тому

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

  • @satishpadnani3110
    @satishpadnani3110 4 роки тому

    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  4 роки тому

      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?

  • @sahayasugirthacindrellas7482
    @sahayasugirthacindrellas7482 3 роки тому

    this program executed only for Jupiter notebook or colab

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      You can run this code in any python supported IDE.

  • @nizamiimamverdiyev8346
    @nizamiimamverdiyev8346 4 роки тому

    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  4 роки тому

      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 4 роки тому

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

    • @nizamiimamverdiyev8346
      @nizamiimamverdiyev8346 4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

      pip install tensorflow==1.9.0

    • @nizamiimamverdiyev8346
      @nizamiimamverdiyev8346 4 роки тому

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

  • @ramyanagiredla4248
    @ramyanagiredla4248 3 роки тому

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

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      Could you please provide full error details ?

  • @shaikali7811
    @shaikali7811 4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому +1

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

  • @dhanshreekumaresh2295
    @dhanshreekumaresh2295 Рік тому

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

    • @DataMagicAI
      @DataMagicAI  Рік тому

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

  • @nishchithanish1748
    @nishchithanish1748 4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

      Which IDE you are using ?

    • @nishchithanish1748
      @nishchithanish1748 4 роки тому

      spyder

    • @DataMagicAI
      @DataMagicAI  4 роки тому

      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.

  • @harshitaSharmaE
    @harshitaSharmaE 4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

      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 4 роки тому

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

  • @sahayasugirthacindrellas7482
    @sahayasugirthacindrellas7482 3 роки тому

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

  • @kevinjeyaraj8596
    @kevinjeyaraj8596 Рік тому

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

    • @DataMagicAI
      @DataMagicAI  Рік тому

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

  • @jamshaidali711
    @jamshaidali711 3 роки тому

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

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      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.

  • @ShivamSharma-zn5hi
    @ShivamSharma-zn5hi 3 роки тому

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

    • @DataMagicAI
      @DataMagicAI  3 роки тому

      Please provide full error details so I can help you better

  • @rayyanamir8560
    @rayyanamir8560 2 роки тому

    How to use webcam for this?

    • @DataMagicAI
      @DataMagicAI  2 роки тому

      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.

  • @vimalmishra65
    @vimalmishra65 4 роки тому

    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 4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

  • @RATANAGARWALITINFORMER
    @RATANAGARWALITINFORMER 4 роки тому

    need it

    • @DataMagicAI
      @DataMagicAI  4 роки тому

      Drop an email datamagic2020@gmail.com

  • @ishfaqueshaku8246
    @ishfaqueshaku8246 3 роки тому

    NameError: name 'img1' is not defined

    • @DataMagicAI
      @DataMagicAI  3 роки тому

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

  • @ramanujasati2713
    @ramanujasati2713 4 роки тому

    Please sir give me this code

    • @DataMagicAI
      @DataMagicAI  4 роки тому

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

  • @amrutashinde2613
    @amrutashinde2613 8 місяців тому

    Please ans me