Live data from Hacker News

YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

nintyzeros.com

1–10 of 14 posts

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#2
nice work.

If you have GPU power, I recommend using tinyfaces (https://www.cs.cmu.edu/~peiyunh/tiny/) as your face detector. But you won't get realtime performance...

We used a similar model to detect and blur faces from raw user uploaded images at scale, using a multi-stage pipeline.

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#4

nice work. If you have GPU power, I recommend using tinyfaces ( https://www.cs.cmu.edu/~peiyunh/tiny/ ) as your face detector. But you won't get realtime performance... We used a similar model to detect and blur faces from raw user uploaded images at scale, using a multi-stage pipeline.

Also dlib performs very well (especially in C++)

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#6

Nice and clean. However, it looks like the blur has some (blue?) banding artifacts in it. Am I the only one who sees that?

I see it too. I wonder if it's including the blue border you see in one of the earlier debugging images.

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#7
post #6

Nice and clean. However, it looks like the blur has some (blue?) banding artifacts in it. Am I the only one who sees that?

I see it too. I wonder if it's including the blue border you see in one of the earlier debugging images.

Hah, yes, I guess they're doing the blurring on the image with the box overlaid, instead of the original.

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#9
post #6

Earlier quoted context omitted.

I see it too. I wonder if it's including the blue border you see in one of the earlier debugging images.

Hah, yes, I guess they're doing the blurring on the image with the box overlaid, instead of the original.

Yes, I would also guess they're blurring the image with the box overlaid.

In a production implementation, you may also want to consider how you do edge handling here. (For faces in the middle of the frame, you want to use the real pixels from the underlying source image? Do you want to extend the pixels from inside the border? What are the aesthetic and information theory implications of each technique?)

https://en.wikipedia.org/wiki/Kernel_(image_processing)#Edge...

Re: YouTube-Style Face Detect – Crop and Blur Using Python and OpenCV

#10

nice work. If you have GPU power, I recommend using tinyfaces ( https://www.cs.cmu.edu/~peiyunh/tiny/ ) as your face detector. But you won't get realtime performance... We used a similar model to detect and blur faces from raw user uploaded images at scale, using a multi-stage pipeline.

Does it work on GPUs other than Nvidia?
Post reply on HN