-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difficulty detecting faces #1
Comments
Face detection can always be improved but for the most part this will Going to investigate cascade settings to improve face detection in poor
|
Same as above, but it seems like a hardware inter_face_ issue. The webcam is started and quickly shut off. The green light next to the webcam flashes on momentarily, then I get the above error. Output from the program as it attempts to run:
|
I'm using the Ubuntu provided package as described in #5. Should OpenCV be compiled? This stackoverflow says the issue is related to older versions of OpenCV. I am installing the compiled version now. |
While using https://github.com/mroth/lolcommits faced with the same issue on MBP (too dark images from webcam). Issue was resolved using delay before taking screenshot ... like giving time for webcam to "warm up" (lolcommits/lolcommits#222). Lolcommits uses some external tool for taking images from webcam, but I'm pretty sure that cv2 also can do the trick. |
Thank you all for the input and feedback. There are two possible issues here:
|
Working on Mac OSX, setting the Camera deley to 15 did it for me :) |
@The-Outrider don't see camera delay as an option in the .ini. If you're talking about |
@granteagon did you git pull recently? (side note, I'm getting a lot of false positives, or my posture is really super bad... maybe because I have my laptop not at a 90 degree angle?) |
@The-Outrider try adjusting the The default is set to only allow about 4% variance. Maybe around 0.1 will work for you. |
I see, your webcam is much higher resolution than mine. So the math is thrown off. I'm going to try a different way of calculating that is independent of webcam resolution. |
@The-Outrider that was it.. Weird. I cloned yesterday. I just deleted the repo and re-cloned and it worked! Awesome. |
Oh and that data is after upping the variance to .1 (forgot to mention I did as you requested ;)) |
OK cool, btw a temporary fix right now is probably setting the variance to about 4.5 |
@The-Outrider I've created a new testing branch, can you switch to that branch and let me know if it works better for you now? And provide the output? For this one you should be able to set variance pretty low (0.02 to 0.1). You'll need to re-run Setup as well. I've tested this on a 480p and 720p webcam, so hopefully it scales for other resolutions. |
Looks like it's working alright for you now. Just need to tweak the That part is more up to the user because everyone has a different point One last question. I see an Exception was thrown at the end. Do you have
|
Sorry... 0.015...
|
Makes sense, :). Will tweak the variance. There's the screenshot of the exception. With Terminal/Macbook if I use Ctrl+Z to close the app down (Ctrl+C doesn't work in this case like it might in linux :)). Sometimes the program doesn't quit cleanly and I have to grab a process ID and kill -9 it. So instead an icon appears in the top corner of the macbook, and I just quit the app from there. |
@pyskell This could help with face detection possibly. https://developers.google.com/vision/ |
When I hit setup I get:
I checked FaceTime to see what's up and half of my face is in shadow from the window next to me. I quit it and relauched, this time facing the window and still got the same error. Looks like face detection needs some work.
The text was updated successfully, but these errors were encountered: