-
Notifications
You must be signed in to change notification settings - Fork 124
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
From the results it seems that Deface detects faces in each frame individually.
This causes the blurred regions to jump wildly, sometimes a false positive just blinks in 1 frame, and what's worst:
Sometimes the face slips into 1 or 2 frames, if obscured by even something small. Then the whole point of blurring is gone.
Deface could work in two passes:
- Detect the faces in individual images, saving score, size and position.
- Distribute the values between images, using
a) simple gausian distribution of a "detected face's existence (score + position)" to the surrounding images,
b) even better - matching the "same face" by clustering their positions in surrounding images, computing a vector of its movement, and assume a face in the computed position where e.g. nothing is detected, but the surrounding images have a high score.
This would have benefits:
- The false negatives could be dramatically reduced.
- In combination with the fixed number of faces parameter, the false positives could be reduced.
- The computed vectors could go beyond the edges of the video, so a face which moves out or into the video, could be blurred when partly cropped. This solves another issue: If the face moves e.g. left to right, then the halves at the opposite video edges can be combined and whoever wants can have the whole face.
Sounds good?
mrmattnewell, Aziks0 and jeorgen
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed