Package pyvision :: Package analysis :: Package FaceAnalysis :: Module FaceDetectionTest :: Class FaceDetectionTest
[hide private]
[frames] | no frames]

Class FaceDetectionTest

source code

Instance Methods [hide private]
 
__init__(self, name=None, threshold=0.25)
Create a face detection test.
source code
 
addSample(self, truth_rects, detected_rects, im=None, annotate=False)
Adds a sample to face detection test.
source code
 
createSummary(self)
Summary of a test as a table.
source code
 
__str__(self)
One line summary of the test
source code
Method Details [hide private]

__init__(self, name=None, threshold=0.25)
(Constructor)

source code 

Create a face detection test.

INPUTS:

Parameters:
  • name - Label for the test.
  • threshold - The fraction of joint area that counts as success.

addSample(self, truth_rects, detected_rects, im=None, annotate=False)

source code 

Adds a sample to face detection test.

Parameters:
  • truth_rects - truth for an image.
  • detected_rects - output of the detector
  • im - the image or filename to assciate with the sample.
  • annotate - add diagnostic annotations to the images.