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

Class CascadeDetector

source code

This class is a wrapper around the OpenCV cascade detectior.

Instance Methods [hide private]
 
__init__(self, cascade_name='/Users/qdb/Dropbox (ORNL)/git/pyvision/src/pyvision/config/ha..., orig_size=None, min_size=(60, 60), image_scale=1.3, haar_scale=1.2, min_neighbors=2, haar_flags=0)
Init the detector and create the cascade classifier
source code
 
__call__(self, im)
This function is the same as detect.
source code
 
__getstate__(self)
Function required to save and load the state from pickel.
source code
 
__setstate__(self, state)
Function required to save and load the state from pickel.
source code
 
_resizeImage(self, image, scale=None, size=None)
Resize an image by a scale or a size.
source code
 
detect(self, im)
Runs the cascade classifer on an image.
source code
Method Details [hide private]

_resizeImage(self, image, scale=None, size=None)

source code 

Resize an image by a scale or a size. Internal use only.