Package libavg :: Module avg :: Class Tracker

Class Tracker


A class that uses a camera to track moving objects. and delivers them to the player as avg events. Create a tracker by using Player::addTracker(). The properties of this class are explained under https://www.libavg.de/wiki/index.php/Tracker_Setup.

Instance Methods
 
__init__(...)
Raises an exception This class cannot be instantiated from Python
 
abortCalibration()
Aborts coordinate calibration session and restores the previous coordinate transformer.
 
endCalibration()
Ends coordinate calibration session and activates the coordinate transformer generated.
bitmap
getImage(imageid)
Returns one of the intermediate images necessary for tracking.
 
getParam()
Retrieves an arbitrary parameter of tracker configuration.
 
resetHistory()
Throws away the current history image and generates a new one from the next second of images.
 
saveConfig()
Saves the current tracker configuration to the default config file.
 
setDebugImages(img, finger)
Controls whether debug images of intermediate tracking results and detected finger positions are generated and exported to python.
 
setParam()
Updates an arbitrary parameter of tracker configuration.
trackercalibrator
startCalibration(displayextents)
Starts coordinate calibration session.

Inherited from unreachable.instance: __new__

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties

Inherited from object: __class__

Method Details

__init__(...)
(Constructor)

 

Raises an exception This class cannot be instantiated from Python

Overrides: object.__init__

getImage(imageid)

 

Returns one of the intermediate images necessary for tracking. These images are only available if setDebugImages was called before with appropriate parameters.

Parameters:
  • imageid - One of IMG_CAMERA, IMG_DISTORTED, IMG_NOHISTORY, IMG_HISTOGRAM, IMG_FINGERS or IMG_HIGHPASS.
Returns: bitmap

setDebugImages(img, finger)

 

Controls whether debug images of intermediate tracking results and detected finger positions are generated and exported to python. Generating the debug images takes a moderate amount of time, so it is turned off by default.

Parameters:
  • img - Whether to generate intermediate result images.

startCalibration(displayextents)

 

Starts coordinate calibration session. The returned TrackerCalibrator exists until endCalibration or abortCalibration is called.

Parameters:
  • displayextents - The width and height of the display area.
Returns: trackercalibrator