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

Increase/decrease scores by a mask image #9

Open
OndraZizka opened this issue Mar 3, 2021 · 2 comments
Open

Increase/decrease scores by a mask image #9

OndraZizka opened this issue Mar 3, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@OndraZizka
Copy link

Sometimes, the video contains false positives popping in and out, in a scene which is otherwise not changing.

Other part of the scene is changing, and contains false negatives.

It would be nice if this scene separation could be hinted to deface in a form of a grayscale mask, where black would decrease the score of a face detected on that coordinate, and white would increase.

@mdraw
Copy link
Member

mdraw commented Apr 6, 2021

That's a good idea in theory, but I'm not sure how this should be implemented in practice in a generally useful way. A static grayscale mask would only be useful for videos where the camera location is fixed throughout the video. A "mask video" on the other hand (for dynamic scenes) would be harder to create and would require more code to be handled properly.

For the first case, I could imagine some option like
$ deface video.mp4 --region-mask=mask.png
where mask.png (same shape as video.mp4) contains the prior probabilities of detecting a face at each pixel location in video.mp4.
Would you like to implement this or is this just a feature suggestion?

@OndraZizka
Copy link
Author

For the first case, I could imagine some option like
$ deface video.mp4 --region-mask=mask.png
where mask.png (same shape as video.mp4) contains the prior probabilities of detecting a face at each pixel location in video.mp4.
Would you like to implement this or is this just a feature suggestion?

Yes, that is exactly what I had in mind.
Yes, it is only useful for a static camera, but that is surprisingly many use cases - timelapses, weather cameras, cameras on a tripod, etc.

@mdraw mdraw added help wanted Extra attention is needed enhancement New feature or request labels Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants