Package pyvision :: Package face :: Module FaceRecognizer :: Class FaceRecognizer
[hide private]
[frames] | no frames]

Class FaceRecognizer

source code

Known Subclasses:

Base class for a face recognition algorithm. Output is a similarity score.

Instance Methods [hide private]
 
__init__(self) source code
 
getTrainingMatches(self)
Returns a list of all pairs of images in the training set that are of the same person.
source code
 
getTrainingNonMatches(self)
Returns a list of all pairs in the training images that are of different people.
source code
 
addTraining(self, img, rect=None, eyes=None, sub_id=None)
Adds a training face for the algorithm.
source code
 
distance(self, fr1, fr2)
Compute the similarity of two faces
source code
 
computeFaceRecord(self, im, rect=None, eyes=None)
Given an image and face location, compute a face record.
source code
Method Details [hide private]

computeFaceRecord(self, im, rect=None, eyes=None)

source code 

Given an image and face location, compute a face record.

Parameters:
  • im - image containing the face
  • rect - specifies the location of the face in the image, and is typically defined as a detection rectangle or eye coordinates.
Returns:
data that represents the identity of the face, such as eigen coeffecients for PCA.