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