Skip to content
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

Single face with threading only works with face present at start #2

Open
teganscott opened this issue Sep 25, 2018 · 2 comments
Open

Comments

@teganscott
Copy link
Collaborator

In threaded single-face mode (not yet tested in non-threading), if software loads with no face facing the camera, OpenFace thinks there is always a face that is active even though none are present. This stops OpenFace being able to detect new faces as single-face limits it to only one.

How to test:

  • Start software

  • As loading look at camera

  • OpenFace should behave as expected

  • Start software

  • Do not look at camera on load

  • OpenFace will not detect any actual faces

@LingDong-
Copy link
Collaborator

LingDong- commented Sep 26, 2018

Hey Tegan I'm not able to reproduce your problem with latest version of the quick branch.
See this video test:

https://www.flickr.com/photos/144289998@N07/44010523815/in/shares-149A4b/

^ I think the face detection shows up as expected.

From what you describe it is possible that OpenFace is seeing something else that resembles a face in the scene when you start the app. In this case you can use oft.openFace.face.certainty > 0.2 to filter out the unlikely detections. However, this should not prevent OpenFace from switching to another, real face later. Maybe try blocking out the region of the false-positive with an object, and I think the detection will snap to the actual face. (If the goal is to detect a real face in a room full of face-like objects with single-face mode, then we need use some hacks :)

@teganscott
Copy link
Collaborator Author

teganscott commented Oct 3, 2018

Dug a little deeper, it looks like when in single face mode the active face is always set to true. Based on your suggestion I've changed it to only use a face based on the certainty value, not if the active boolean is true.

Thanks for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants