-
Notifications
You must be signed in to change notification settings - Fork 86
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
select faces to not be blurred #51
Comments
I second this |
The face detection model used internally by deface doesn't support face recognition (which would be required for matching a specific face), only general face detection. This feature would be nice to have but I'm afraid implementing it properly would require quite some work and would make the code much more complicated. |
Hi, I have quite the same need, but I have another idea for implementation ? |
Hi @mthebaud, this feature might be a bit too specific for the main project but feel free to implement this in a fork by filtering the detections Lines 83 to 89 in 1e6a87f
As you see, detection boxes are already being clipped to the valid frame coordinate range, so you could just change the first arguments of the |
That's great, thank for the information ! |
Honestly that is hugely specific. Using face recognition seems to be the way to go to achieve this. Just run face recognition and then contour recognition, place the person in a buffer then paste that on top of the blurred frame. |
Yes, I understand that is specific, so I suggest that that this issue can be closed as we have answers to our questions. |
I think it would be less specific if the faces were ordered from left to right and the indexes of that list could be an option. |
I have enabled/added face recognition to it. Works well but it is slow, about 3fps (give or take on hardware). I think I will try and refactor some settings to speed it up. It is using dlib and their models. It is uploaded in my RC branch. |
I was looking into this project and was wondering if it would be possible to select specific faces out of the file to leave unblurred.
The text was updated successfully, but these errors were encountered: