Emotion Detection using Convolutional Neural Networks and OpenCV | Keras | Realtime
Vložit
- čas přidán 20. 01. 2021
- #emotiondetection #opencv #cnn #python
Code - github.com/akmadan/Emotion_De...
Telegram Channel- t.me/akshitmadan
Instagram- akshitmadan...
LinkedIn- / akshit-madan-394a82a6
Books for Reference -
Python for Beginners - amzn.to/3oZmqSm
Complete Data Science - amzn.to/3nTZkuV
Data Science Handbook - amzn.to/3oYHHvt
Book for Computer Vision -
Learning OpenCV by O'Reilly - amzn.to/391GJJo
Gotta love it. Play a noise for each detected emotion and see if you can focus on your work.
that's an explanation ever. thanks for ur sharing
Thank you so much for this awsome video!!! Helped me so much in understanding! Keep it up!!
I was working on the same project for my end semester, I had gotten the code from elsewhere but couldnt understand anything, But your explanation is very clear. Looking forward to more such videos and thanks so much!
That's so motivating 🔥🔥👍
@@AkshitMadan I have a doubt about regression metrics like Mean squared error and mean absolute error. When should we go with mean squared error and when we should select mean absolute error?
Hi,
Please explain how to implement all codes in Jupiter note book
hey there i have followed the same steps in the video but my model is predicting only sad for any expression shown..
kindly help..
Thank you very very much. this tutorial is the best.
Hi, great video!
I have to create a similar CNN for a school project but I'm required to use pytorch.
Do you know any useful source for translating it?
Very well explained, I should add just one thing, using keras tuner to tune the hyperparameters that are the number of filters and kernel size, would have given you better accuracy. Anyways, very well explained
How can we implement this in an app??
thanks for the explanation and the file, it really helped me.
Nice Explaination 👍
Can you please guide us that which Tensorflow and Keras version are you using for training model. Great Explanation of the code!!
hey the training is taking so much time
Every thing was well explained... can you please make a sepreate video describing in detail about the modeling part with all the CNN and Deep learning concepts...
Thanks for this video :)))
thank you so much it was great help!! I succesfully peformed emotion recognition.
Hy
@vaishnavi vajirkar i have trained the model and got output as sad for any given expression
kindly help
@@user-ws9re8wf9e any solution?
very good video thanks
how many epochs should i train ? training stopped after 18 epochs . and how to generate model.h5 file ?
Hi I'm getting error when I run Display Images
File not found : [ Winerror 3_] The system cannot find the path specified , how to fix this error?
wich CNN architecture did you use in your project?
VGG16?
amazingggg
I want to capture video in python sing OpenCV but not from webcam I want to capture video from live call during Zoom/whatsapp/Tewams or any other video calls tools to detect the face. can any help me, how i can do this. Thanks
Sir! for feature extraction which algorithm you have used?
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'F:\\kaggale dataset\\imagestrain/disgust'
sir i am using your code and got tthe above error again and again and i am working on jupyter notebook not on kaggle kernal...plz help me in using path
i am unable to save model, after retraining the model. Where is a problem? in checkpoint? pl guide.
Thanku..
This is my 1st ml project pls help what to show to when someone asked about the code to show where is the code?
Can't i save this and use whenever I want?
how much does it take to run epochs? In jupyter notebook for me out of 48 epochs each epoch is taking about 30 minutes
Can we give the duration of each emotion in a certain period of time ?
Hi Akshit! Thank you for your helpful video. Can you explain more about the cascade classifier? if I want to detect other than face, can I use the same haarcascade xml file? thanks in advance.
THANK YOU!
Hi boss, please let me know, it is very long to run 48 epochs, maybe or then 16 hours and i m afraid that my cpu will burn motherboard and damage my macbook pro, so i stoped untill 4 epochs.
How did you do? is it risky for my macbook to run the program many hours?
I have a doubt that weather we can use this same idea for detecting the crack in railway tracks? Can I train the CNN with the crack images and use this same process
what are versions of packages/libraries you have used.?
Hi ,thanks for your vedio .its very help for my project. One doubt your code run successfully but model.h5 is not create why?
What is the final test accuracy(validation accuracy) you got???
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 🙏
kaggle part code possible to run in Google Colab?
great video. but when I run this code with my work it shows the error like this " ValueError: `validation_steps=None` is only valid for a generator based on the `keras.utils.Sequence` class. Please specify `validation_steps` or use the `keras.utils.Sequence` class." please help.
Can we use transfer learning on grayscale images?
I am getting an error exception has occurred: ModuleNotFoundError
No module named 'tensorflow.python. Please can you help
I am gonna use this for making face detection project
dont use🥲
Hi bro , In output data section there is no output file is produced why ? Help me plz
Thank you bro.Because of you I completed my AI project today
bro what was your project I also have project about real time emotion detection xd
@@falm7153what did you do?
I am in fifth grade this video is very helpful. i am working on this project and looking forward to more projects
bro??
which algorithm u have used ?
showing an error while importing Keras optimizer what should i do?
from keras preprocessing.image import img_to_array
from keras preprocessing import image I am getting error invalid syntax error
Currently, I am working on a pain detection project. This was very helpful, Thank you so much.
How did you choose the layers of CNN , did u use some hyperparameter optimization?
I think he works in IRS
hey, exactly what type of features are being extracted
getting error while loading model... I think because of mismatch in the keras or tensorflow version between yours and mine so please tell me your tensorflow version
i have tried to creat my own model but it is getting some problems
If your images are of different sizes you will get an error while loading them into the model
getting error - cannot import name 'Adam' from 'keras.optimizers' (/opt/conda/lib/python3.7/site-packages/keras/optimizers.py)
please guide
Hey Akshit,
I'm getting a Illegal instruction: 4 error. Do you know why?
Thanks.
Hi, Thank you for this helpful video. I also want to make the same project for my term project, but I face a minor issue at the 2nd last step "callbacks=callback_list". I am still trying to resolve this but I can't. plz, help me to resolve this issue. I am thankful to you for this.
hey there i have followed the same steps in the video but my model is predicting only sad for any expression shown..
kindly help..
Hi did you get the answer?
Helpful Video! why sometimes images are not display clearly?
model.h5 file is not appearing after running the code in kaggle. Give me solution for it bro.
bro i want to download the ipynb notebook that you posted in your github..
What is the accuracy of the project?
bro how to change the size of openCV window?
If you can integrate a music player with this model then it will be a big help. Thank you
Why there is no predicted value not labeled with predicted emotion?
I am not getting model.h5 file after following the steps in output.
Can u help plz
Can you give some idea to web development using this ml algorithm (emotion detection)
I am getting error load_model is not defined in vscode please guide me
Hello, I faced a problem, I built a CNN model where the accuracy is almost 65%. I use that model in the pycharm code. But after running the code, when The webcam opens, it always shows the first label. The label doesn't change for a single moment. How can I solve this problem?
did you fix it?
where to get the pretrained model from?
Do you have a 3D image??? End of Semester Project (3d-CNN) and thanks for the video
ValueError: Input 0 of layer "sequential_2" is incompatible with the layer: expected shape=(None, 90, 3, 1), found shape=(None, 48, 48, 1)
My model is only predicting SAD emotion.. why??
why is the frame rate so low?and how to improve the fps
you got new subscribe
I have one dought instead of using our own weights can we use vgg16/19 to get better accuracy.
In real world app will we use our own weights or predefined one?
doubt*
how to choose the path in jupiter notebook.
Hey!
What is the version of tensorflow you are using, I'm getting errors.
It's 2.0
Handwritten signature and dates from image extraction can you do a video on this
i am not getting model.h5 file in output
why is my dataset giving null error
can you tell me how to get model.h5 file because it is not saving in kaggle and whats the code for saving the model
model.save() put the file path in the brackets
Please reply to me immediately brother instead of using kaggle I used jupyter notebook to train images but I can't download h5 file from jupyter how do I download it from jupyter notebook please tell me
model.save_weights('face_emotion_model_weights.weights.h5')
how can i get the h5 file
I am unable to get the model5 file in jupyter notebook how can i get it ?
save the model with--> model.save_weights('face_emotion_model_weights.weights.h5')
what is mode='max' doing
wt are the specs of your laptop or PC
How did you calculated that the accuracy is 72%?
Hi, thanks for your video. It's very helpful for my project. I have a question : I write the proportions of the emotions measured on the screen. When there is more than 1 person, the data is overwritten. How do I solve this?
Yes, for two people it will be like this only, for two people you need to use a 2 dimensional np array for storing predictions of more than 1 person.
@@AkshitMadan I read the data of one person in each frame at a time. How can I add two people to the array at the same frame. I can't create a 2 dimensional array.I get 1 dimensional array every time. Thank you.
@@hknyky2386 hey did you find the solution to that probelm??? i am currently implementing that and i am unable to get the solution. would you mind sharing that with me
i am also trying to write the proportion of the emotions measured on the screen
Are you post full clear code or not
hey, Very well explained and helpful video.
while running the code, in webcam its only predicting as sad. what should i do?
Did you get a solution to this?
@@maaztariq6800 any solution?
I have the same, bro
@@Dreig Any solution?
How to build this with flutter
Thank you so much bro. U have explained very well. This is crystal clear for me. Actually i am beginner so i am going to try this for my mini project. Can u pls tell me that what are all packages i need to install for this . Plz tell me
For ML model you don’t need to install any package just import them in google colab. For open cv model you need to install open cv_python package
@@AkshitMadan ohh kk bro
Bro only opencv_python is enough ah
where do i find my model to download?
save your model --> model.save_weights('face_emotion_model_weights.weights.h5')
Can u guide me to do this project
Also in your code I saw it took you a few seconds to calculate each epoch while my code is taking all the way to 12 minutes to calculate a single epoch? Could there be something wrong with my code?
Make sure you are using GPU not cpu
@@AkshitMadan How do we change that though?
Never mind I figured it out
Thanks for your clear and concise explanation. I'm stuck with a value error on MaxPooling 2D. can you post the exact code here?
Code link is there in description. It's s Jupyter notebook, so won't be feasible to post here.
Bro module to import kr dete.. Kon sa module import kiy th.. Pip. Ke through
how can i get you dataset
im not getting model.h5 file bro ... what to do please help bro
Yah I'm also facing same problem how do u solve it
I can't get model.h5 file
do you have documentation for this sir?
I'm unable to get the model.h5 file
Me also bro
@@kuriminellivasu2327 😅
Very detailed explanation.
Thankyou so much you've earned a subscriber.
How can we use this on a saved video?
It's easy only, search on google how to play saved video in OpenCV you will get it, I think only one- two lines of code will be changed.
@@AkshitMadan Thanks i was able to do it by
cap = cv2.VideoCapture('C:/Users/PATH TO THE VIDEO/video_name.MP4')
cv2.namedWindow('Emotion capture',cv2.WINDOW_AUTOSIZE)