OpenCV  2.4.13
Open Source Computer Vision
crop_face Namespace Reference

Functions

def Distance (p1, p2)
 
def ScaleRotateTranslate (image, angle, center=None, new_center=None, scale=None, resample=Image.BICUBIC)
 
def CropFace (image, eye_left=(0, 0), eye_right=(0, 0), offset_pct=(0.2, 0.2), dest_sz=(70, 70))
 

Variables

 image = Image.open("arnie.jpg")
 
 eye_left
 
 eye_right
 
 offset_pct
 
 dest_sz
 

Function Documentation

def crop_face.CropFace (   image,
  eye_left = (0,0),
  eye_right = (0,0),
  offset_pct = (0.2,0.2),
  dest_sz = (70,70) 
)
def crop_face.Distance (   p1,
  p2 
)
def crop_face.ScaleRotateTranslate (   image,
  angle,
  center = None,
  new_center = None,
  scale = None,
  resample = Image.BICUBIC 
)

Variable Documentation

crop_face.dest_sz
crop_face.eye_left
crop_face.eye_right
crop_face.image = Image.open("arnie.jpg")
crop_face.offset_pct