[P] I have built a face detector to blur faces for videos
I needed to blur faces on the video dataset I collected previously for privacy issues.
Surprisingly, I couldn’t find related (free)services nor programs.
Firstly, I wrote simple code for automatic blurred face maker with a Haar detector using OpenCV. I didn’t like the result. Haar detector was fast but not accurate enough for me.
Then, I tried the DNN model which OpenCV already includes. The performance got better but because the input of DNN is 300×300 and my input video is 1080×1920, faces from long-distance were often ignored.
So, I split the input video 3 to 5 divisions horizontally and vertically and computed face heatmap using the confidence of each detection result. Final face detection was done by contour detection from OpenCV.
The result seems that it can detect small faces from relatively high-resolution videos.
Any suggestions or related papers? would be more than welcome!