Hi,
We want to process a blur effect on a specific area on video. To be clearer, we want to blur faces... To find faces, we use [pix_opencv_haarcascade ]... How can we do to blur this area, and only this one ?
Thanks
01ivier
On Tue, Jun 29, 2010 at 10:22 PM, Olivier Baudu lamouraupeuple@gmail.comwrote:
Hi,
We want to process a blur effect on a specific area on video. To be clearer, we want to blur faces... To find faces, we use [pix_opencv_haarcascade ]... How can we do to blur this area, and only this one ?
By using pix_crop
husk
Yes... You're right. It's a solution and quite simple... So simple I dont't understand why I didn't find it earlier...
Thanks a lot...
01ivier
2010/6/30 Husk 00 husk00@gmail.com
On Tue, Jun 29, 2010 at 10:22 PM, Olivier Baudu lamouraupeuple@gmail.comwrote:
Hi,
We want to process a blur effect on a specific area on video. To be clearer, we want to blur faces... To find faces, we use [pix_opencv_haarcascade ]... How can we do to blur this area, and only this one ?
By using pix_crop
husk
On Tue, 29 Jun 2010, Olivier Baudu wrote:
We want to process a blur effect on a specific area on video. To be clearer, we want to blur faces... To find faces, we use [pix_opencv_haarcascade ]...
blur the whole picture
use the output of your detector to make a mask
use the mask to "cut holes" through the normal picture, using the
blurred picture. if you were to only do [pix_texture] on the final result, you can do [pix_texture] on both the normal and the fully blurred image and combine them using two separate [rectangle], an [alpha], and a [pix_alpha].
even though it may waste a lot of blurred pixels, at least you can do it on all sorts of nonrectangle shapes.
je suis passé très proche d'utiliser ça hier, mais avec une autre sorte de détection complètement différente, en particulier parce qu'on voulait que la zone floue soit nonrectangulaire et graduelle (un "gradient" d'alpha, dans l'jargon).
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801