OpenCV  2.4.13.5
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

§ CropFace()

def crop_face.CropFace (   image,
  eye_left = (0,0),
  eye_right = (0,0),
  offset_pct = (0.2,0.2),
  dest_sz = (70,70) 
)

§ Distance()

def crop_face.Distance (   p1,
  p2 
)

§ ScaleRotateTranslate()

def crop_face.ScaleRotateTranslate (   image,
  angle,
  center = None,
  new_center = None,
  scale = None,
  resample = Image.BICUBIC 
)

Variable Documentation

§ dest_sz

crop_face.dest_sz

§ eye_left

crop_face.eye_left

§ eye_right

crop_face.eye_right

§ image

crop_face.image = Image.open("arnie.jpg")

§ offset_pct

crop_face.offset_pct