Package libavg :: Module avg :: Class Tracker

Class Tracker




A tracker that uses a camera to track moving objects (e.g. fingers) 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.
 
getImage(imageid)
Returns one of the intermediate images necessary for tracking.
 
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 ~/.avgtrackerrc.
 
setDebugImages(img, finger)
Controls whether debug images of intermediate tracking results and detected finger positions are generated and exported to python.
 
startCalibration(displayextents)
Starts coordinate calibration session.

Inherited from unreachable.instance: __new__

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

Properties
  brightness
  exposure
  gain
  gamma
  historyspeed
  shutter
  threshold

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


Property Details

brightness

Get Method:
unreachable(...)
Set Method:
unreachable(...)

exposure

Get Method:
unreachable(...)
Set Method:
unreachable(...)

gain

Get Method:
unreachable(...)
Set Method:
unreachable(...)

gamma

Get Method:
unreachable(...)
Set Method:
unreachable(...)

historyspeed

Get Method:
unreachable(...)
Set Method:
unreachable(...)

shutter

Get Method:
unreachable(...)
Set Method:
unreachable(...)

threshold

Get Method:
unreachable(...)
Set Method:
unreachable(...)