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

Half & Quarter Faces being stored #10

Open
rsingh2083 opened this issue Oct 14, 2021 · 1 comment
Open

Half & Quarter Faces being stored #10

rsingh2083 opened this issue Oct 14, 2021 · 1 comment

Comments

@rsingh2083
Copy link

rsingh2083 commented Oct 14, 2021

Hi Sir,

Why is it that partial faces and heavily blurred faces are also getting stored in database ?
For example if you look at these images then these are not even full faces and one of them is heavily blurred.
https://ibb.co/rbTx6Gj
https://ibb.co/myrW0wV
https://ibb.co/cX7kvtT
https://ibb.co/Ybrd03y

Secondly, also the orientation/angle of saved faces is also bad. There is black background in most of them.

Why isnt the algorithm waiting for complete face to appear and only then save the faces.

@Qengineering
Copy link
Owner

As soon as the face detection recognize a face in front of the camera, it will test if the face is in the all ready made database.
If not, it should be added (AUTO_FILL_DATABASE = true).
Now we may have a problem. Faces can be detected, even partial in front of the camera. Next, the warp algorithm centers the faces, hence the black borders. To overcome this phenomenon, I've put a blur detection in front of the storage of faces in the database (BLUR_FILTER_STRANGER). Probably not be best solution, but for me it worked when running a movie with faces.
To improve, you could check the locations of the eye's, nose and mouth in the picture. See SHOW_LANDMARKS on how to get these points. Only store if they are located at the right regions.

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