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

Module FaceDetectionTest

source code

Classes [hide private]
  FaceDetectionTest
Functions [hide private]
 
face_from_eyes(eye1, eye2)
Given eye coordinates estimate the face rectangle Assumes the face is reasonably horizontal.
source code
 
is_success(truth_rect, detected_rect, threshhold=0.25)
This code takes a truth rect and a detected rect and determines if the detection is a success or a failure.
source code
 
overlap_score(truth_rect, detected_rect)
This code takes a truth rect and a detected rect and determines if the detection is a success or a failure.
source code
 
summarizeDetectionTests(tests)
Create a summary table for a list containing FaceDetectionTest objects.
source code
Variables [hide private]
  __package__ = 'pyvision.analysis.FaceAnalysis'
Function Details [hide private]

is_success(truth_rect, detected_rect, threshhold=0.25)

source code 

This code takes a truth rect and a detected rect and determines if the detection is a success or a failure. The default behavior is true if the intersection of the two rects is has 50% of the area of the larger rectangle.

overlap_score(truth_rect, detected_rect)

source code 

This code takes a truth rect and a detected rect and determines if the detection is a success or a failure. The default behavior is true if the intersection of the two rects is has 50% of the area of the larger rectangle.