title: OpenCV How to get width and height of face from image
body: <p>Hi I have a large set of images of faces extracted from videos. I would like to simply measure the width and the height of each face found in the images. When I use the HAAR classifiers it returns square faces detected no matter how fat or thin the face was.</p>
  
  <p>There are some improvements that would be ideal, although I'm happy with just the first step.</p>
  
  <p>As a minimum I'm looking for examples to measure the width and height of faces detected in images.
  Ideally these faces would first be rotated to facing forwards to measure the width and height of the actual person's face, rather than the pixel width of a potentially rotated face.</p>
  
  <p>Example code would be much appreciated.</p>