Package pyvision :: Package beta :: Module videotasks :: Class FaceDetectorVT
[hide private]
[frames] | no frames]

Class FaceDetectorVT

source code

   object --+    
            |    
vtm.VideoTask --+
                |
               FaceDetectorVT

This tasks illustrates one way to initialize data in the first frame by changing the number of required arguments required by additional frames.

Instance Methods [hide private]
 
__init__(self, frame_id)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
execute(self, frame, detector=None)
This is an abstract method that needs to be implemented in subclasses.
source code

Inherited from vtm.VideoTask: addData, couldRun, getFrameId, printInfo, ready, required, run

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, frame_id)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • frame_id - the frame_id associated with this task.
  • args - specification of the data that is required to execute the task.
Overrides: object.__init__
(inherited documentation)

execute(self, frame, detector=None)

source code 

This is an abstract method that needs to be implemented in subclasses. One argument is suppled for each item in the required arguments. This method should return a list of new data items. If no data is generated by this method an empty list should be returned.

Overrides: vtm.VideoTask.execute
(inherited documentation)