Open priyanka1221 opened 5 years ago
Maybe try this method cv2.face.createLBPHFaceRecognizer()
Maybe try this method
cv2.face.createLBPHFaceRecognizer()
Hey, Tried with this method still getting the same error message. Any other solution
which CV2 version you were using to run this program
where is the trainner.yml file?
The trainer.yaml file is what the system uses to recognise or understand my face. You need to create your own trainer.yaml where you train the system with your own face. Check out my repositories below to learn more and create your own trainer.yaml
https://github.com/Souvikray/Realtime-Face-Recognition/blob/master/README.md
https://github.com/Souvikray/Eye-Blink-Detection/blob/master/README.md
Also I believe you are using a newer version of OpenCV because of which it is not understanding certain functions. Check out this blog which will install any missing modules https://www.talentica.com/blogs/opencv-with-extra-modules/
Hey, I somehow resolved the error I was getting with CV2 package. Now while executing the rest of the code its stuck in between, could you please help me out with this. I went through all the link provided by you, still not clear with how to create own YML file. I have to show demo tomorrow please help me to fix this.
Thanks,
If you really just want the system to detect drowsiness in a driver and not use face recognition, then you can choose to comment out that line and any reference made by it. The system will work fine without the face recognition too (that's what it needs the yaml file for.)
Here is the link for the code without face recognition feature https://www.codepile.net/pile/NKadw0v8
Now I couldn't test it since I did this project about an year back and I had a different computer back then. So my new system does't have opencv installed. Try out the code and let me know.
Hi, Thank you so much for your help. I tried to run code give in that link, but while executing it is getting stuck somewhere in between and not giving any output. Webcam light is on but the camera is not coming on screen.
I dont want face detection, only drowsiness s also fine with the sms and location. If you have any time can we have qick screen share so that I can show you the exact issue.
Thanks
Does it throw any errors in the console?
no error
By the way comment out line number 136. Then try to run it. If still doesn't work, then change line 193 to cap = cv2.VideoCapture(0)
and see if that helps.
I tried both the methods, still same issue. the code is stuck in between, no error no output
This looks promising..it seems it solved the problem for most of the people https://stackoverflow.com/a/30928225/5550284
See if you can work this out.
By the way the line number 136 stays commented since it was meant for face recognition.
Still no help
Did you try out the steps mentioned in the link?
yes I followed the steps mentioned in link, but still the issue is same
still didn't workout?
Yes not working
On Mon 25 Feb, 2019, 12:43 AM Ray$$$, notifications@github.com wrote:
still didn't workout?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Souvikray/Drowsy-Driver-Alert-System/issues/1#issuecomment-466806823, or mute the thread https://github.com/notifications/unsubscribe-auth/As_qiEQrVLLiG8jgDps6hSUOheZfuSS9ks5vQuRIgaJpZM4bOAS- .
AttributeError Traceback (most recent call last)