Тёмный

Emotion Detection using Convolutional Neural Networks and OpenCV | Keras | Realtime 

Akshit Madan
Подписаться 36 тыс.
Просмотров 130 тыс.
50% 1

#emotiondetection #opencv #cnn #python
Code - github.com/akm...
Telegram Channel- t.me/akshitmadan
Instagram- www.instagram....
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

Опубликовано:

 

20 янв 2021

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 271   
@funatic9912
@funatic9912 3 года назад
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!
@AkshitMadan
@AkshitMadan 3 года назад
That's so motivating 🔥🔥👍
@akhibali8405
@akhibali8405 3 года назад
@@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?
@careercom9485
@careercom9485 3 года назад
Hi,
@careercom9485
@careercom9485 3 года назад
Please explain how to implement all codes in Jupiter note book
@user-ws9re8wf9e
@user-ws9re8wf9e 2 года назад
hey there i have followed the same steps in the video but my model is predicting only sad for any expression shown.. kindly help..
@subhadipghosh8194
@subhadipghosh8194 3 года назад
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
@kaushambichandel8185
@kaushambichandel8185 2 года назад
How can we implement this in an app??
@erdemmemisyazici3950
@erdemmemisyazici3950 2 года назад
Gotta love it. Play a noise for each detected emotion and see if you can focus on your work.
@asaduzzamanasad1244
@asaduzzamanasad1244 Год назад
how many epochs should i train ? training stopped after 18 epochs . and how to generate model.h5 file ?
@ottomaggio2725
@ottomaggio2725 2 года назад
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?
@PranavDhokane
@PranavDhokane Год назад
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?
@user-ws9re8wf9e
@user-ws9re8wf9e 2 года назад
hey there i have followed the same steps in the video but my model is predicting only sad for any expression shown.. kindly help..
@akshatpandey8571
@akshatpandey8571 2 года назад
Hi did you get the answer?
@user-jd5sb8kr8l
@user-jd5sb8kr8l 7 месяцев назад
i am unable to save model, after retraining the model. Where is a problem? in checkpoint? pl guide.
@jamshaidali711
@jamshaidali711 2 года назад
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
@ShahriarRafi-qt1mi
@ShahriarRafi-qt1mi 10 месяцев назад
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?
@mistermayhem988
@mistermayhem988 8 месяцев назад
did you fix it?
@nitians2005
@nitians2005 4 месяца назад
Thank you bro.Because of you I completed my AI project today
@falm7153
@falm7153 4 месяца назад
bro what was your project I also have project about real time emotion detection xd
@Shady_404
@Shady_404 4 месяца назад
​@@falm7153what did you do?
@silviusyt
@silviusyt 10 месяцев назад
ive run it on mac..its only showing surprise emotion
@mistermayhem988
@mistermayhem988 8 месяцев назад
did you fix it?
@SimarjeetSingh-go3pk
@SimarjeetSingh-go3pk 3 года назад
Can you please guide us that which Tensorflow and Keras version are you using for training model. Great Explanation of the code!!
@votanasrey2076
@votanasrey2076 2 года назад
that's an explanation ever. thanks for ur sharing
@AamirKhan-je2dh
@AamirKhan-je2dh Год назад
getting error - cannot import name 'Adam' from 'keras.optimizers' (/opt/conda/lib/python3.7/site-packages/keras/optimizers.py) please guide
@vaishnavivajirkar2202
@vaishnavivajirkar2202 3 года назад
thank you so much it was great help!! I succesfully peformed emotion recognition.
@bulbul9963
@bulbul9963 3 года назад
Hy
@user-ws9re8wf9e
@user-ws9re8wf9e 2 года назад
@vaishnavi vajirkar i have trained the model and got output as sad for any given expression kindly help
@mistermayhem988
@mistermayhem988 8 месяцев назад
@@user-ws9re8wf9e any solution?
@carriergrowth1581
@carriergrowth1581 2 года назад
Hi ,thanks for your vedio .its very help for my project. One doubt your code run successfully but model.h5 is not create why?
@ayushagarwal4066
@ayushagarwal4066 3 года назад
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
@RishavChatterjee
@RishavChatterjee 3 года назад
If your images are of different sizes you will get an error while loading them into the model
@clumsycoder1907
@clumsycoder1907 Год назад
hey the training is taking so much time
@ozlemmay
@ozlemmay Год назад
Thank you very very much. this tutorial is the best.
@bunnyff2970
@bunnyff2970 10 месяцев назад
I am gonna use this for making face detection project
@abhinavvenkataramanan4339
@abhinavvenkataramanan4339 3 месяца назад
dont use🥲
@silviusyt
@silviusyt 10 месяцев назад
where do i find my model to download?
@bdeekshitha2256
@bdeekshitha2256 5 месяцев назад
save your model --> model.save_weights('face_emotion_model_weights.weights.h5')
@subhajyotidas1609
@subhajyotidas1609 2 года назад
I don't know if someone else has faced this problem. I trained the model but the model did not get saved. So, I made a little modification to the code. checkpoint = ModelCheckpoint("./model.h5", monitor='val_acc', verbose=1, save_best_only=True, mode='max') became......... checkpoint = ModelCheckpoint(filepath="./model.h5", monitor='val_accuracy', verbose=1, save_best_only=True, mode='max') Hope it helps.
@AkshitMadan
@AkshitMadan 2 года назад
Thanks man 👍🏻👍🏻
@subhajyotidas1609
@subhajyotidas1609 2 года назад
@@AkshitMadan Hi, I trained the model and every emotion is getting detected as 'sad'. Any idea what might have caused it?
@RaushanKumar-qb3de
@RaushanKumar-qb3de 2 года назад
Thanks.. i got the same error. Model not saved. Now modified it.
@user-kt9jz2bi1u
@user-kt9jz2bi1u 2 года назад
@@subhajyotidas1609 Same. have u solved this problem?
@subhajyotidas1609
@subhajyotidas1609 2 года назад
@@user-kt9jz2bi1u I have added the edit in my comment...
@anbumani6460
@anbumani6460 6 месяцев назад
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
@bdeekshitha2256
@bdeekshitha2256 5 месяцев назад
model.save_weights('face_emotion_model_weights.weights.h5')
@animeshnaroliya118
@animeshnaroliya118 7 месяцев назад
I am unable to get the model5 file in jupyter notebook how can i get it ?
@bdeekshitha2256
@bdeekshitha2256 5 месяцев назад
save the model with--> model.save_weights('face_emotion_model_weights.weights.h5')
@annarauscher8536
@annarauscher8536 2 года назад
Thank you so much for this awsome video!!! Helped me so much in understanding! Keep it up!!
@adityashukla3335
@adityashukla3335 Год назад
My model is only predicting SAD emotion.. why??
@umangthakur7317
@umangthakur7317 Год назад
ValueError: Input 0 of layer "sequential_2" is incompatible with the layer: expected shape=(None, 90, 3, 1), found shape=(None, 48, 48, 1)
@muhammadfajarramdhani4760
@muhammadfajarramdhani4760 Год назад
thanks for the explanation and the file, it really helped me.
@mosbahlokhmane4404
@mosbahlokhmane4404 3 года назад
wich CNN architecture did you use in your project? VGG16?
@debosmitachakraborty5197
@debosmitachakraborty5197 Год назад
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.
@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 🙏
@TrickyRatnesh
@TrickyRatnesh Год назад
I am in fifth grade this video is very helpful. i am working on this project and looking forward to more projects
@sholalove6478
@sholalove6478 10 месяцев назад
bro??
@babureddy661
@babureddy661 3 года назад
I'm unable to get the model.h5 file
@kuriminellivasu2327
@kuriminellivasu2327 2 года назад
Me also bro
@babureddy661
@babureddy661 Год назад
@@kuriminellivasu2327 😅
@blessing2356
@blessing2356 2 года назад
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
@sheebha1568
@sheebha1568 2 года назад
What is the accuracy of the project?
@nD-zr3be
@nD-zr3be 2 года назад
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?
@AyushRaj-pm1dz
@AyushRaj-pm1dz 2 года назад
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...
@shashankijeri7047
@shashankijeri7047 Год назад
from keras preprocessing.image import img_to_array from keras preprocessing import image I am getting error invalid syntax error
@ayushmukhopadhyay7470
@ayushmukhopadhyay7470 3 года назад
How did you choose the layers of CNN , did u use some hyperparameter optimization?
@babaabba9348
@babaabba9348 3 года назад
I think he works in IRS
@drm8164
@drm8164 Год назад
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?
@AISHAIKSAMEERUDDIN
@AISHAIKSAMEERUDDIN 2 года назад
What is the final test accuracy(validation accuracy) you got???
@yotte8846
@yotte8846 Год назад
I am getting an error exception has occurred: ModuleNotFoundError No module named 'tensorflow.python. Please can you help
@nidafatima7809
@nidafatima7809 Год назад
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.
@rajeshdharwai
@rajeshdharwai 2 года назад
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
@dilam4254
@dilam4254 2 года назад
Can we give the duration of each emotion in a certain period of time ?
@lokeshsinghpawar3676
@lokeshsinghpawar3676 8 месяцев назад
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
@mistermayhem988
@mistermayhem988 8 месяцев назад
model.save() put the file path in the brackets
@anuragselote
@anuragselote Год назад
showing an error while importing Keras optimizer what should i do?
@deepanshimishra8737
@deepanshimishra8737 Год назад
I am not getting model.h5 file after following the steps in output. Can u help plz
@jojosage1322
@jojosage1322 Год назад
hey, exactly what type of features are being extracted
@manogarik1006
@manogarik1006 2 года назад
Hi bro , In output data section there is no output file is produced why ? Help me plz
@rajeevganji3819
@rajeevganji3819 3 года назад
how much does it take to run epochs? In jupyter notebook for me out of 48 epochs each epoch is taking about 30 minutes
@hinafraz528
@hinafraz528 3 года назад
what are versions of packages/libraries you have used.?
@tanmaypattanaik7919
@tanmaypattanaik7919 2 года назад
hey, Very well explained and helpful video. while running the code, in webcam its only predicting as sad. what should i do?
@maaztariq6800
@maaztariq6800 2 года назад
Did you get a solution to this?
@saidbenalla1351
@saidbenalla1351 Год назад
@@maaztariq6800 any solution?
@Dreig
@Dreig Год назад
I have the same, bro
@mistermayhem988
@mistermayhem988 8 месяцев назад
@@Dreig Any solution?
@JayPatel-mf7oy
@JayPatel-mf7oy 8 дней назад
What is the accuracy?
@mdarifurrahmananik3973
@mdarifurrahmananik3973 2 года назад
well explained but after training ,the model is not predicting well. only your model working fine. and brother stop copy and pasting the code. thanks
@nagendravarma7858
@nagendravarma7858 3 года назад
im not getting model.h5 file bro ... what to do please help bro
@poojatg5691
@poojatg5691 2 года назад
Yah I'm also facing same problem how do u solve it
@banditharun6184
@banditharun6184 5 месяцев назад
Handwritten signature and dates from image extraction can you do a video on this
@deenkibatain754
@deenkibatain754 3 года назад
Sir! for feature extraction which algorithm you have used?
@myarchitecturallife4643
@myarchitecturallife4643 6 месяцев назад
THANK YOU!
@akshatabiradar1816
@akshatabiradar1816 3 года назад
Nice Explaination 👍
@boringpsychology9737
@boringpsychology9737 2 года назад
very good video thanks
@chirumallakamal6710
@chirumallakamal6710 2 года назад
model.h5 file is not appearing after running the code in kaggle. Give me solution for it bro.
@r.tasiajoe6370
@r.tasiajoe6370 2 года назад
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.
@anuragchaturvedi750
@anuragchaturvedi750 Год назад
I am getting error load_model is not defined in vscode please guide me
@kokuluemail
@kokuluemail 3 месяца назад
amazingggg
@hiimo8456
@hiimo8456 2 года назад
Do you have a 3D image??? End of Semester Project (3d-CNN) and thanks for the video
@karishmamogal3994
@karishmamogal3994 2 года назад
Can we use transfer learning on grayscale images?
@tejaswinitikariha1300
@tejaswinitikariha1300 2 года назад
Thanks for this video :)))
@nitesharora739
@nitesharora739 8 месяцев назад
why is the frame rate so low?and how to improve the fps
@SanjayKumar-nr2qx
@SanjayKumar-nr2qx 2 года назад
Can you give some idea to web development using this ml algorithm (emotion detection)
@sid1784
@sid1784 7 месяцев назад
How did you calculated that the accuracy is 72%?
@DibinLovesTreesa
@DibinLovesTreesa 14 дней назад
How to run the code 😢help me pls. last step
@adhvaidh7421
@adhvaidh7421 Год назад
Hey Akshit, I'm getting a Illegal instruction: 4 error. Do you know why? Thanks.
@subhadipchakraborty9490
@subhadipchakraborty9490 4 месяца назад
where to get the pretrained model from?
@unq_boy_badal_raj9677
@unq_boy_badal_raj9677 Год назад
Bro module to import kr dete.. Kon sa module import kiy th.. Pip. Ke through
@funatic9912
@funatic9912 3 года назад
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?
@AkshitMadan
@AkshitMadan 3 года назад
Make sure you are using GPU not cpu
@funatic9912
@funatic9912 3 года назад
@@AkshitMadan How do we change that though?
@funatic9912
@funatic9912 2 года назад
Never mind I figured it out
@mahmoodkashmiri
@mahmoodkashmiri 3 года назад
How did you choose those layers? layer count, numbers of filters, etc (hyper parameters) please make a video!
@ayushmukhopadhyay7470
@ayushmukhopadhyay7470 3 года назад
I asked the same question actually i am trying this using hyper parameter optimization but converting images into np array is taking ages in google collab
@masthanjinostra2981
@masthanjinostra2981 3 года назад
Is it chosen randomly ?? But can utilize keras tuner for tuning of filter / neuron values
@mehwishshabbir6365
@mehwishshabbir6365 3 года назад
Why there is no predicted value not labeled with predicted emotion?
@SohagisLiveGaming
@SohagisLiveGaming 7 месяцев назад
kaggle part code possible to run in Google Colab?
@rishiprakash1275
@rishiprakash1275 3 года назад
bro i want to download the ipynb notebook that you posted in your github..
@nidafatima4531
@nidafatima4531 3 года назад
Helpful Video! why sometimes images are not display clearly?
@careercom9485
@careercom9485 3 года назад
Thanku..
@pruthvikp1992
@pruthvikp1992 3 года назад
how to choose the path in jupiter notebook.
@AmitYadav-kr9bv
@AmitYadav-kr9bv 3 года назад
bro how to change the size of openCV window?
@hknyky2386
@hknyky2386 3 года назад
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?
@AkshitMadan
@AkshitMadan 3 года назад
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.
@hknyky2386
@hknyky2386 3 года назад
@@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.
@Un-TedxTalks
@Un-TedxTalks 2 года назад
@@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
@Un-TedxTalks
@Un-TedxTalks 2 года назад
i am also trying to write the proportion of the emotions measured on the screen
@springdales1219
@springdales1219 3 года назад
Thanks for your clear and concise explanation. I'm stuck with a value error on MaxPooling 2D. can you post the exact code here?
@AkshitMadan
@AkshitMadan 3 года назад
Code link is there in description. It's s Jupyter notebook, so won't be feasible to post here.
@sivaganeshatchyutuni4342
@sivaganeshatchyutuni4342 Год назад
i am not getting model.h5 file in output
@Saucehero29
@Saucehero29 9 месяцев назад
do you have documentation for this sir?
@harshchoudhary9791
@harshchoudhary9791 2 года назад
If you can integrate a music player with this model then it will be a big help. Thank you
@jarintasnimritu4057
@jarintasnimritu4057 3 года назад
Currently, I am working on a pain detection project. This was very helpful, Thank you so much.
@poojatg5691
@poojatg5691 2 года назад
Are you post full clear code or not
@manishgautam2424
@manishgautam2424 Год назад
How to build this with flutter
@balajiavinash5907
@balajiavinash5907 3 года назад
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?
@flynneugene2675
@flynneugene2675 2 месяца назад
doubt*
@amandas00
@amandas00 2 года назад
which algorithm u have used ?
@AllVIDEO4You
@AllVIDEO4You 2 года назад
what is mode='max' doing
@skkarimullakarimulla9269
@skkarimullakarimulla9269 2 года назад
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
@AkshitMadan
@AkshitMadan 2 года назад
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
@skkarimullakarimulla9269
@skkarimullakarimulla9269 2 года назад
@@AkshitMadan ohh kk bro
@skkarimullakarimulla9269
@skkarimullakarimulla9269 2 года назад
Bro only opencv_python is enough ah
@gouthamisabbani6549
@gouthamisabbani6549 2 года назад
Can u guide me to do this project
@tinasikd1909
@tinasikd1909 2 года назад
Can we put the program on heroku software by using python?! Will it be okay?
@AkshitMadan
@AkshitMadan 2 года назад
Yes you can create the GUI too using html, css and flask. And then you can deploy it on heroku. Go for it 👍🏻
@harleenkaur5306
@harleenkaur5306 3 года назад
Hey! What is the version of tensorflow you are using, I'm getting errors.
@AkshitMadan
@AkshitMadan 3 года назад
It's 2.0
Далее
Classic Italian Pasta Dog
00:20
Просмотров 1,4 млн
Вся Правда Про Хазяевов !
41:02
The moment we stopped understanding AI [AlexNet]
17:38
Просмотров 906 тыс.
Convolutional Neural Networks from Scratch | In Depth
12:56
I Built a Neural Network from Scratch
9:15
Просмотров 241 тыс.
Face recognition in real-time | with Opencv and Python
28:19
Classic Italian Pasta Dog
00:20
Просмотров 1,4 млн