No video

Face Mask Detection using Convolutional Neural Networks - Python | Keras | Tensorflow | OpenCV

  Рет қаралды 146,379

AI with Thakshila

AI with Thakshila

Күн бұрын

This tutorial explains a method of building a Face Mask Detector using Convolutional Neural Networks (CNN) Python, Keras, Tensorflow and OpenCV. With further improvements these types of models could be integrated with CCTV or other types cameras to detect and identify people without masks. With the prevailing worldwide situation due to COVID-19 pandemic, these types of systems would be very supportive for many kind of institutions around the world. Please let me know your ideas, suggestions and concerns in the comment section and feel free to improve this project yourself and come up with better results.
Download the code (Github): github.com/aie...
Download the code and Materials (Google Drive): drive.google.c...
Speaker: Thakshila Dasun

Пікірлер: 528
@savinabeysooriya7504
@savinabeysooriya7504 4 жыл бұрын
Could you make a full tutorial with explaining everything from the scratch what are the requirements to do this properly.
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Sure I will soon.
@WinnersAttitude
@WinnersAttitude 4 жыл бұрын
@@aiwiththakshila6656 sir when i am waiting for it
@mordehaym3239
@mordehaym3239 3 жыл бұрын
@@aiwiththakshila6656 sir can you make full tutorial as mention above please!!
@michalbelgorodsky4188
@michalbelgorodsky4188 3 жыл бұрын
@@aiwiththakshila6656 When will you do a tutorial ?
@sakib9527
@sakib9527 3 жыл бұрын
@@aiwiththakshila6656 pls hurry up brother. I am waiting for this
@myshigri12
@myshigri12 Жыл бұрын
Thank you for your best explanation,,it is very very useful for me and it's 100%working.
@mdhabeeburrahman8884
@mdhabeeburrahman8884 3 жыл бұрын
Wonderful Tutorial bro, you earned my respect+++ , Your life long subscriber .
@Ekam873
@Ekam873 Ай бұрын
best lecture for this project
@bhaumikchaudhari1495
@bhaumikchaudhari1495 3 жыл бұрын
Thank you for your best explanation,,it is very very useful for me and it's 100%working.thank you once again ...🙏🏻🙏🏻
@vaishnavkrishnan7996
@vaishnavkrishnan7996 3 жыл бұрын
Hey guys whoever is facing the accuracy issue just change the pixels to 224 and then accuracy and val accuracy boosts up to 90 percent
@RT-kq9wr
@RT-kq9wr 2 жыл бұрын
in which line exactly? please help
@abhilasht6471
@abhilasht6471 4 жыл бұрын
Your doing a great job buddy 👍, thanks for sharing your knowledge. keep up the good work 👏👏
@shashibhushan7161
@shashibhushan7161 4 жыл бұрын
thanks sir...providing such clear content on face mask detection on webcam
@muhammadzubairbaloch3224
@muhammadzubairbaloch3224 4 жыл бұрын
very good lecture. I am happy to find such kind of tutorials. please make more lectures. I am realy happy to find the link. very informative lecture. thanks sir. please upload more lectures.
@lalunetu-thegamercat.3288
@lalunetu-thegamercat.3288 4 жыл бұрын
subcribed! im gonna be waiting for more tutorials related to deep learning with live object recognition
@sach2274
@sach2274 4 жыл бұрын
This video was random to me Now I'm subscribed thinking that i get practical knowledge on ML
@ilcapitano6822
@ilcapitano6822 4 жыл бұрын
Bro u are a master your method to reach the target its a mix to easy effective end your explanation its very clear
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Thank you 😊
@ilcapitano6822
@ilcapitano6822 4 жыл бұрын
@@aiwiththakshila6656 are u on discord
@ashutoshsalekar1810
@ashutoshsalekar1810 3 жыл бұрын
1. The "haarcascade_frontalface" model is failing to detect faces with mask. 2. Even for image without mask the model is detecting mask and shows "MASK" please help.
@birdeye700
@birdeye700 3 жыл бұрын
I got the similar issue. I gave the author some credit to walkthrough the CNN process ( load training data, how to ingest the training data , and how to predict the result) , however, the program in python is not working as desired 1) The training model is not stable and different result from re-run. It seems that model_016.model file provides the best accuracy. However, If you run the training script multiple times, you do not always get to 016, sometimes, I got model_009.model. 2) It shows "mask" 99% times for a person without mask. 3) The face detection is not working well for the model haarcascade_frontalface, sometimes, it marks a face for window curtain and ceiling fans.
@dhineshkumar4997
@dhineshkumar4997 4 жыл бұрын
Good video sir need many more like this
@karanpatel3358
@karanpatel3358 4 жыл бұрын
dhinesh kumar I made algorithm for same but I need feedback can you please watch and give it ? kzfaq.info/get/bejne/gNqVq9yDqJzJYY0.html
@subhambhattacharyya8802
@subhambhattacharyya8802 2 жыл бұрын
Thank you very much for this easy tutorial.
@abhishekbehera6950
@abhishekbehera6950 3 жыл бұрын
Hi, I tried running your code. The model is only detecting NO MASK. When I wear a mask, it's not detecting. Can you please help with probable reasons?
@rupakkumardas2351
@rupakkumardas2351 3 жыл бұрын
you can use this one, github.com/rupakdas18/Face-Mask-Detection-using-Traditional-CNN
@venkatreddy-nv2hc
@venkatreddy-nv2hc 3 жыл бұрын
hi, i don't know how to run the code and not to connect my webcam.please help me
@rupakkumardas2351
@rupakkumardas2351 3 жыл бұрын
@@venkatreddy-nv2hc What software are you using to run the code?
@venkatreddy-nv2hc
@venkatreddy-nv2hc 3 жыл бұрын
@@rupakkumardas2351 jupyter sir
@rupakkumardas2351
@rupakkumardas2351 3 жыл бұрын
@@venkatreddy-nv2hc Try to use spyder
@darshanadilhan2486
@darshanadilhan2486 4 жыл бұрын
Supperb work. Please create biginner level tutorials series.. Good luck 👍🏾
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Sure! thanx for the motivation
@prashilbison7038
@prashilbison7038 3 жыл бұрын
Anyone getting constant errors on OpenCV while running the face detection file?? Please help!!
@yonaschekole832
@yonaschekole832 2 жыл бұрын
very good lecture please make this video again lie by line code and briefly at the begging of the juypter installation up to last running of the code i think you have get a lot view and subscribers i miss you
@kelixoderamirez
@kelixoderamirez 23 сағат бұрын
What is correlation between haar cascade and CNN?
@walidsefiani9903
@walidsefiani9903 4 жыл бұрын
Hi, thanks you for the code, it works well, sure it is written no mask without mask, but the problem is that with mask it isn't written anything. what should I do.
@harishdasari4808
@harishdasari4808 3 жыл бұрын
Can you plz send code harishdasari963@gmail.com
@yoraisme6481
@yoraisme6481 3 жыл бұрын
yeah i had this problem too
@User-og1vb
@User-og1vb 2 жыл бұрын
same issue
@arungoli9060
@arungoli9060 4 жыл бұрын
This model is detecting good when the face mask is not there but it is not detecting the face itself when the face is masked . I think haar cascade classifer is trained on faces without mask . So I think the masked face is not identifing . Correct me if iam wrong. Thanks for the video
@sukanyasaha5458
@sukanyasaha5458 4 жыл бұрын
I am also getting exactly same issue. Please comment back if you can find the solution
@arungoli9060
@arungoli9060 4 жыл бұрын
Actually i just modified the aim of the project to detect only faces without masks and that means it only detects the people who violets the safety norms and this model fits fine for detecting the people without masks
@pavankumark2450
@pavankumark2450 4 жыл бұрын
any solution?
@sachindhital4284
@sachindhital4284 4 жыл бұрын
I tried to implement the same but my accuracy is not increasing its around 0.5.. only why is it? how to solve this problem?
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Did u make any changes?
@SoumendraBagh
@SoumendraBagh 3 жыл бұрын
@@aiwiththakshila6656 none. we are getting validation accuracy around 47%. Can you rerun and verify your model's performance?
@vaishnavkrishnan7996
@vaishnavkrishnan7996 3 жыл бұрын
hey try increasing the ROI or the pixels 100 100 (Mostly wont work) u can push it to max 50 in validation I think none will work as the training samples are less so we need more training samples
@chathuranga5891
@chathuranga5891 4 жыл бұрын
Great work..! Thank you Sir..!
@m1zson
@m1zson 4 жыл бұрын
Muy buen video pana, saludos de Colombia.
@argl1995
@argl1995 4 жыл бұрын
the project is working fine but it does not respond to the masked face as it is only giving result for no face mask. What is the problem ??
@saudaminimohapatra4329
@saudaminimohapatra4329 4 жыл бұрын
same issu
@saudaminimohapatra4329
@saudaminimohapatra4329 4 жыл бұрын
plz tell some solution
@pavankumark2450
@pavankumark2450 4 жыл бұрын
@@saudaminimohapatra4329 same issue did u find any solution?
@SAINIVEDH
@SAINIVEDH 3 жыл бұрын
@13:57 shouldn't it be gray[x:x+w,y:y+h] ?!!!
@ChathuraRanasingheOfficial
@ChathuraRanasingheOfficial 4 жыл бұрын
Great work... will try to follow the implementation.. keep it up 👍
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Sure, Chathura, Thanx for the motivational words!
@harshitsingh4238
@harshitsingh4238 4 жыл бұрын
Hello sir' great explanation but there is problem because, it cannot detect face after applying mask and I this problem is because I don't have object classifier.ipynb file Pls solve this problem
@ashutoshbhushan2320
@ashutoshbhushan2320 4 жыл бұрын
Only webcam required right??
@dipeshadhikari8536
@dipeshadhikari8536 2 жыл бұрын
Best video about this
@kavindabuddhi
@kavindabuddhi 3 жыл бұрын
Great work. Aiya..
@ahmadkelixo7243
@ahmadkelixo7243 3 жыл бұрын
perrmission to learn sir.thank you
@techtam3505
@techtam3505 4 жыл бұрын
Instead of using a haarcascade use a model trained with many data using keras it can give more accuracy.
@sreeharinair6870
@sreeharinair6870 4 жыл бұрын
Hi, I'm a newbie to machine learning, I would like to know if we try to implement this on a video captured from a CCTV camera, should the dataset be changed or does the CNN still give a accurate prediction ?
@KHM95
@KHM95 3 жыл бұрын
Here's a paid course for this and it's worth paying. khadymschool.thinkific.com/courses/data-science-hands-on-covid-19-face-mask-detection-cnn-open-cv
@kunaldas5009
@kunaldas5009 4 жыл бұрын
Best explanation sir
@fitriantianti1731
@fitriantianti1731 4 жыл бұрын
Thanks so much. Its so help me
@rajatchakrawarti8675
@rajatchakrawarti8675 4 жыл бұрын
what changes are needed to run it on google colab??
@abhijithbinoy875
@abhijithbinoy875 4 жыл бұрын
Have u found out the solution?
@rajatchakrawarti8675
@rajatchakrawarti8675 4 жыл бұрын
@@abhijithbinoy875 no I didn't get solution
@VirtualKnowledge
@VirtualKnowledge Ай бұрын
Can you guide me sir, if I want to write the same code in vizual studio then how can I do it?
@suvanjanprasai544
@suvanjanprasai544 3 жыл бұрын
sir, I do not have much space to download images. Can you please tell me how can I use image url
@yannickedouardmekongo6400
@yannickedouardmekongo6400 3 жыл бұрын
Please sir, if I use three records in my dataset: "with mask", "incorrect worn mask" and "without mask". What changes should I make in this case? You have not shown us how to do this if we are using several folders. I made this change: model.add (Dense (3, activation = 'softmax')). The model training is going well but I get an error at the end that says: Shapes (None, 1) and (None, 3) are incompatible. And when I launch the program, it's only the face with NO MASK that are recognized.
@akhilanilkumar6315
@akhilanilkumar6315 2 жыл бұрын
Bro do you finish it
@viralfever9159
@viralfever9159 4 жыл бұрын
Great video sir 😍😍😍😍
@AxaiKago
@AxaiKago 4 жыл бұрын
While training the model, it is only considering 31 images instead of 990. Can you suggest me something how can I proceed? While debugging the all data is loading perfectly and it is also getting divided correctly into train data and test data. Does anyone also faced the same issue?
@nithyashreev3404
@nithyashreev3404 3 жыл бұрын
@Akshay Kagwade,I am also facing the same.In the video here,all 990 images are taken but when i tried it only 31 images were taken. @AI with Thakshila,can you please help me fix this?✌✌✌
@yashgugaliya9276
@yashgugaliya9276 2 жыл бұрын
@@nithyashreev3404 I am having the same issue it is because haar cascade can only detect patterns of black and white and it seems the project works fine only if simple plain mask is worn.
@User-og1vb
@User-og1vb 2 жыл бұрын
same issue here
@worldwide8283
@worldwide8283 4 жыл бұрын
Superb. pls do more video lessons related to programming side and ML. Thank you
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
Sure, I will, Thank u. Stay tuned with us.
@zakariaharakat7759
@zakariaharakat7759 4 жыл бұрын
Sir please how can be detect the face and maskes , i download the datasets and i run your program ,it not detect the the face and mask , please help me
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
I have used cascade classifier to detect the face. When the mask is on, some of the features in the face are not visible, therefore sometimes the face is not detected when the mask is on. If you try with a better camera and better light conditions (day light), it may work well.
@VirtualKnowledge
@VirtualKnowledge Ай бұрын
Bro I tried a lot to fix the error but I couldn't solve the error so please help me to solve the error in training file it's showing that input_shape is an unexpected keyword argument
@tunaozates
@tunaozates 4 жыл бұрын
It does not detect correctly when I run. I have no mask and it says mask. Is it an expected inaccuracy or do you think some technical error occurred?
@alejandrozuniga1126
@alejandrozuniga1126 3 жыл бұрын
You can change your dictionaries, probably your labels were assigned inverted.
@buzmez01
@buzmez01 3 жыл бұрын
I changed the model and it worked
@MyMindhacker
@MyMindhacker 4 жыл бұрын
thanks bro!! you're awesome
@rachanaadmane6086
@rachanaadmane6086 3 жыл бұрын
Sir , did face mask detector also detect the scarf or handkerchief use to cover our face ???
@rishiprasana8285
@rishiprasana8285 4 жыл бұрын
Hi sir, This was the best video that a beginner like me could feel comfortable with. After running your code with the dataset you provided, I got an accuracy of 96%, but it does not detect my face when the mask is on. Without mask, the code works perfect. Should I check something in particular? I haven't made any changes to your code.
@aiwiththakshila6656
@aiwiththakshila6656 4 жыл бұрын
I think the issue is with your camera. Could you please try with a better light condition. Day light would be fine as well.
@rishiprasana8285
@rishiprasana8285 4 жыл бұрын
@@aiwiththakshila6656 Hi, Thanks a lot. Yes it was a lighting issue. It works well in day light. Do check out: www.linkedin.com/posts/r-rishi-prasana-277a2b98_theabrperceptron-maskrecognition-opencv-activity-6669553645085978624-IX2t
@sukanyasaha5458
@sukanyasaha5458 4 жыл бұрын
I am facing same issue even in lighting condition. Can you please guide?
@rishiprasana8285
@rishiprasana8285 4 жыл бұрын
@@sukanyasaha5458 Hi, Please make sure the atmosphere is bright enough and don't be too close to the screen ...... I also had to make a little changes to the code to run it perfectly fine
@yashpatil4605
@yashpatil4605 4 жыл бұрын
@@aiwiththakshila6656 I tried in daylight condition, I have apple mackbook...not working when mask is on
@ElevateTheFacts
@ElevateTheFacts 4 жыл бұрын
Hey sir nice work but why we r using keras nd one more doubt its like u have saved the modules of video but if we want to test it live like when we execute and run the code at that time webcam open show so that there is no need to save the models .......nd yes then how what changes i have to do.Can we implement without neural network.
@ravencode5505
@ravencode5505 4 жыл бұрын
It is showing only NO mask when i'm not wearing mask but showing nothing when I wear the mask
@vatsalchandra781
@vatsalchandra781 4 жыл бұрын
Were you able to solve this issue? I'm getting the same problem.
@ravencode5505
@ravencode5505 4 жыл бұрын
@@vatsalchandra781 Not able to solve but I tried sitting with bdifferent backgrounds and it worked at some.
@ashritaagarwal603
@ashritaagarwal603 4 жыл бұрын
Cascade classifier is not detecting any face when mask is on. I have tried with daylight also. no region of interest is created. please help.
@jerryjohn1995
@jerryjohn1995 4 жыл бұрын
Me too,even after the model download ed from Google drive
@moussakeitamoussakeita8519
@moussakeitamoussakeita8519 4 жыл бұрын
you must have good camera quality. I tried with a good quality video and it works
@abdulqadeerrasooli3489
@abdulqadeerrasooli3489 8 ай бұрын
Hello sir i getting this error how to solve it ImportError: cannot import name 'np_utils' from 'keras.utils' (C:\Anacond3\Lib\site-packages\keras\utils\__init__.py)
@muskansoni906
@muskansoni906 3 жыл бұрын
It is not able to detect with mask. Please tell me where it might be going wrong.
@quinjanrobertocampo8600
@quinjanrobertocampo8600 3 жыл бұрын
Is this better compared to transfer learning (like mobileNet) so there is no need to use a cascade classifier?
@user-cn1xg5cs3h
@user-cn1xg5cs3h 2 жыл бұрын
I have a problem in 3.0 detecting masks in the last cell, which I can't fix, please help me. error: OpenCV(4.5.4-dev) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
@cool_videos6016
@cool_videos6016 4 жыл бұрын
i used your model but it is overfitting but after using data augmentation it is underfitting
@bhaumikchaudhari1495
@bhaumikchaudhari1495 3 жыл бұрын
Hey ,how can you do data augmentation ,can you send your project code.. my mail :bhaumikchaudhari225@gmail.com. Please help me .
@larry6624
@larry6624 3 жыл бұрын
The program doesn't show mask when you have mask on. I think there's a problem with the dataset or the loop.
@aukerulmoin4311
@aukerulmoin4311 3 жыл бұрын
Same here! Did you solve it?
@SoumendraBagh
@SoumendraBagh 3 жыл бұрын
@@aukerulmoin4311 for me the model is performing poorly. try building the model with a pretrained model like Mobilenet. The model itself isn't identifying the face with mask on. For me the validation accuracy is 47% instead of 97% accuracy shown here.
@aukerulmoin4311
@aukerulmoin4311 3 жыл бұрын
@@SoumendraBagh I'm trying to import mobilenet, but getting some error. Can you give me source code please?
@SoumendraBagh
@SoumendraBagh 3 жыл бұрын
@@aukerulmoin4311 haven't worked on it till now. Will get back to you once done.
@aukerulmoin4311
@aukerulmoin4311 3 жыл бұрын
@@SoumendraBagh Okay. Thanks in advance
@sarthakvaswani5928
@sarthakvaswani5928 2 жыл бұрын
The last line is not running in short the webcam is not opening and the last line is just processing only but not running
@renjunbias1042
@renjunbias1042 3 жыл бұрын
hi am an problem in keras "jupyter notebook's kernel keeps dying" can you help me?
@jeevakumara5599
@jeevakumara5599 Жыл бұрын
bro iam facing ModuleNotFoundError: No module named 'google' this error when i try to compile keras.utils to import np_utils. kindly help me in this bro.
@sadialakho0307
@sadialakho0307 4 жыл бұрын
i want to count the number of people with and without masks and show the result on dashboard using flask.. do you have any idea how it can be done?
@abhiyanshukumar9749
@abhiyanshukumar9749 3 жыл бұрын
all the dataset contains only white colored mask i had used black mask but it did't showed the label mask with green color. It shows correct when i am without mask. But with mask it did't show anything.
@bspuneeth9523
@bspuneeth9523 4 жыл бұрын
why did you convert it into 4d array in the beginning ???
@shashankdevara6355
@shashankdevara6355 10 ай бұрын
error: OpenCV(4.6.0) C:\b\abs_f8n1j3l9l0\croot\opencv-suite_1691622637237\work\modules\highgui\src\window.cpp:1267: error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function 'cvShowImage' , i am getting the error like this what should i do know
@arshikhan8598
@arshikhan8598 2 жыл бұрын
Why coverting into gray scale image ?
@tharunkumarbandaru2635
@tharunkumarbandaru2635 4 жыл бұрын
Why is that you have takes categorical cross entropy As there are only 2 Why can't we take binary cross entropy can't we take in that manner!?
@PreetamKatti
@PreetamKatti 3 жыл бұрын
after doing everything the camera is not opening ,the camera will be running but it wont open and show live as u shown above
@athulkrishnamadhu1644
@athulkrishnamadhu1644 3 жыл бұрын
I tried installing keras but it shows module not found, could you please explain
@atulupadhyay1542
@atulupadhyay1542 3 жыл бұрын
try using tensorflow.keras instead of keras
@vincentsmith1564
@vincentsmith1564 4 жыл бұрын
Will this work if I don't use the ROI and just use the camera feed. I can move my face close to the camera. I've read that lighting conditions make the face cascade better but I'm not sure exactly how to do that.
@vishwasanilkumar1377
@vishwasanilkumar1377 3 жыл бұрын
There is an error coming while doing the VideoCapture part of openCV. Can you please help.
@vinodkanzaria4379
@vinodkanzaria4379 4 жыл бұрын
Thank you for the video, I reproduce the model and got 96% accuracy but thing is i am seeing red rectangle with txt "no mask" whenever i face the camera and don't see any result from the model when i wore mask. seems like my model is only able to predict class "No mask" but unable to predict other class "with Mask". By any chance do you know what would be the probable reason behind it? I am unable to load your trained model-017.model , is it because of keras version ? i have tried after installing 2.2.4 but still facing the same. Could you please help me to fix the error
@pavankumark2450
@pavankumark2450 4 жыл бұрын
same with me :( did u find y is it happening ?
@mitejmadan8672
@mitejmadan8672 2 жыл бұрын
@@pavankumark2450 same with me bro
@danishroy1274
@danishroy1274 4 жыл бұрын
Does this produce a trigger if a person is not wearing a face mask?
@sthitipragyansahoo2409
@sthitipragyansahoo2409 3 жыл бұрын
if we cover the face with hands what it will show mask or no mask??
@Bhaishorts_video
@Bhaishorts_video 10 ай бұрын
I'm new in machine learning, can anybody explain me which cnn model used in this video ??
@xgamer2672
@xgamer2672 Жыл бұрын
How to do over fitting and under fitting in computer vision
@arunprasad4675
@arunprasad4675 2 жыл бұрын
Sir, I tried to run your code and it is not detecting persons with mask
@arshradhanpura8663
@arshradhanpura8663 3 жыл бұрын
can it detect cloth masks or only surgical masks?
@tnn_thanhnguyenngoc7326
@tnn_thanhnguyenngoc7326 4 жыл бұрын
Could not load dynamic library 'cudart64_101.dll' on tensorflow CPU-only installation. please help me.
@sheetalnikam4768
@sheetalnikam4768 4 жыл бұрын
InternalError: cudaGetDevice() failed. Status: cudaGetErrorString symbol not found. I have installed CUDA 10.0 . I have checked my environment variable path too. How do I solve this error? Thank you.
@atharvachennur4105
@atharvachennur4105 4 жыл бұрын
Can I do this as my final year project? Please reply
@adarshsrivastav9816
@adarshsrivastav9816 3 жыл бұрын
I found this error while excuting the 3.0 fle ret,img=source.read() ----> 4 gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) 5 faces=face_clsfr.detectMultiScale(gray,1.3,5) 6 error: OpenCV(4.5.3) C:\Users unneradmin\AppData\Local\Temp\pip-req-build-q3d_8t8e\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
@md.mominulislamshizan9825
@md.mominulislamshizan9825 11 ай бұрын
Did you solve it? how to solve that problem?
@swapnamoybiswas929
@swapnamoybiswas929 4 жыл бұрын
model.predict(reshaped_img) this line problem input 0 of layer dense 2 is incompatible with the layer
@anupamasingh557
@anupamasingh557 3 жыл бұрын
Hey I run your code but I'm getting error as NameError Traceback (most recent call last) in 1 while(True): 2 ----> 3 ret,img=source.read() 4 gray=cv2.cvtColor(img,cv2.COLOR_BGR2GRAY) 5 faces=face_clsfr.detectMultiScale(gray,1.3,5) NameError: name 'source' is not defined what should I do?
@planetforengineers7176
@planetforengineers7176 Жыл бұрын
Thanks bhai
@maksudulhaque3227
@maksudulhaque3227 3 жыл бұрын
can anyone help me i am trying to run the last notebook and it does not open a window for my webcam what might be the issue everything else runs fine
@crazykatgaming5855
@crazykatgaming5855 4 жыл бұрын
Error when checking target: expected dense_2 to have shape (2,) but got array with shape (1,) sir im getting this error when i try to fit the model
@LMGaming0
@LMGaming0 3 жыл бұрын
Use this after train_test_split() : from keras.utils import to_categorical train_target = to_categorical(train_target)
@ASNPersonal
@ASNPersonal 4 жыл бұрын
Thanks for the video and well explained. Thing is i am seeing green rectangle with txt "MASK" whenever i face the camera and don't see any result from the model when i wore mask. seems like my model is only able to predict class "MASK" but unable to predict other class "with Mask"
@eric_ouma
@eric_ouma 4 жыл бұрын
I am facing a similar problem. I think the issue is that haarcascade classifier is not very able to recognizes faces with a mask on. Maybe you should try another means of face detection.
@pavankumark2450
@pavankumark2450 4 жыл бұрын
same with me
@sayantikachatterjee9782
@sayantikachatterjee9782 2 жыл бұрын
@@pavankumark2450 yes same thing is happening with me.
@mohdshakir2680
@mohdshakir2680 4 жыл бұрын
It is not working when i wear the mask .. but i is working with out mask
@rishabhlavangad7975
@rishabhlavangad7975 4 жыл бұрын
did you get any solution yet ?
@pavankumark2450
@pavankumark2450 4 жыл бұрын
any solution??
@vidhanagedhananjaya7571
@vidhanagedhananjaya7571 4 жыл бұрын
great work bro
@shreyagupta7873
@shreyagupta7873 3 жыл бұрын
Which algorithm is used for this please tell me sir
@Rojass760
@Rojass760 2 жыл бұрын
I have a problem in the last part, im using colaboratory: penCV(4.6.0) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
@ABDULAHAD-xr3sk
@ABDULAHAD-xr3sk 4 жыл бұрын
Thanks for the video, it show around 95 percent accuracy but while testing the system doesnt detect my face with a mask. is it a problem with haarcascade?
@alejandrozuniga1126
@alejandrozuniga1126 3 жыл бұрын
Same problem here, did you find out a solution?
@somyamittal8578
@somyamittal8578 4 жыл бұрын
It is saying mask, if we are not wearing the mask also?
@owaisulhaq7681
@owaisulhaq7681 3 жыл бұрын
OSError: SavedModel file does not exist at: model-017.model/{saved_model.pbtxt|saved_model.pb} what is this error?? How to solve it??
@muhammedanask8556
@muhammedanask8556 3 жыл бұрын
Bro ,are you solved this error
@muhammedanask8556
@muhammedanask8556 3 жыл бұрын
I have also vet this error
@bhaumikchaudhari1495
@bhaumikchaudhari1495 3 жыл бұрын
Sir I have doubt that how many frame detect from video in 1 second?
@shriharshsholapur7262
@shriharshsholapur7262 3 жыл бұрын
Which cnn architecture has been used?
@csbdnazmul
@csbdnazmul 4 жыл бұрын
good job sir
@issacholmes2475
@issacholmes2475 3 жыл бұрын
module 'keras.optimizers' has no attribute 'TFOptimizer' it is giving this error >> how do i remove it please help
ML Was Hard Until I Learned These 5 Secrets!
13:11
Boris Meinardus
Рет қаралды 282 М.
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 44 МЛН
Schoolboy Runaway в реальной жизни🤣@onLI_gAmeS
00:31
МишАня
Рет қаралды 4 МЛН
а ты любишь париться?
00:41
KATYA KLON LIFE
Рет қаралды 3,6 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 96 МЛН
Tensorflow Object Detection Tutorial - Complete Guide for Beginners
44:27
AI with Thakshila
Рет қаралды 25 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 292 М.
Build a Face Mask Detector in 20 Minutes with Watson and Python
20:22
Nicholas Renotte
Рет қаралды 56 М.
Build an Object Detector for Any Game Using YOLO
22:40
Moises de Paulo Dias
Рет қаралды 51 М.
PyTorch in 100 Seconds
2:43
Fireship
Рет қаралды 905 М.
Transformer Neural Networks Derived from Scratch
18:08
Algorithmic Simplicity
Рет қаралды 136 М.
TensorFlow in 100 Seconds
2:39
Fireship
Рет қаралды 943 М.
Секрет фокусника! #shorts
00:15
Роман Magic
Рет қаралды 44 МЛН