title: OpenCV via python: Is there a fast way to zero pixels outside a set of rectangles?
body: <p>I have an image of a face and I have used haar cascades to detect the locations (x,y,width,height) of the mouth, nose and each eye. I would like to set all pixels outside these regions to zero. What would be the fastest (computationally) way to do this? I'll eventually be doing it to video frames in real time.</p>