Face-R
 All Namespaces Functions
Functions
haar Namespace Reference

Provides functions for finding faces in the reference picture. More...

Functions

def DetectFace
 Finds face in photo. More...
 
def pil2cvGrey
 Converts photo to gray scale. More...
 
def cv2pil
 Converts image to PIL. More...
 
def imgCrop
 Crops image to the given bounding box. More...
 
def faceCrop
 Extracts the actual face and stores it. More...
 

Detailed Description

Provides functions for finding faces in the reference picture.

Function Documentation

def haar.cv2pil (   cv_im)

Converts image to PIL.

def haar.DetectFace (   image,
  faceCascade,
  returnImage = False 
)

Finds face in photo.

def haar.faceCrop (   imagePattern,
  boxScale = 1 
)

Extracts the actual face and stores it.

Loads detection pattern according to the Haar Cascade principal. Detects actual face and crops the image. Stores the final image as pgm file.

def haar.imgCrop (   image,
  cropBox,
  boxScale = 1 
)

Crops image to the given bounding box.

def haar.pil2cvGrey (   pil_im)

Converts photo to gray scale.