Ask Your Question

Revision history [back]

Steps to follow

  1. Detect your face using the Viola Jones approach
  2. Output will be a set of bounding boxes in the shape of Rectangles
  3. Use the code for region of interest to set the active image
  4. Just resize the image, plenty of functionality for that

Region setting

Mat selectRegion = originalImage( Rect(x,y,width, heigth) )