Overview | API
See also
ALRedBallDetection is a module that provides a fast vision based red ball detector.
ALRedBallDetection is based on a fast search of a set of pixel that meet two requirements:
When a set of pixels is found on the current image, the ALMemory key redBallDetected is updated.
This key is organized as follows:
[
TimeStamp,
BallInfo,
CameraInfo
]
TimeStamp: this field is the time stamp of the image that was used to perform the detection.
TimeStamp [
TimeStamp_Seconds,
Timestamp_Microseconds
]
BallInfo
BallInfo [
centerX,
centerY,
sizeX,
sizeY
]
The origin of the angles is the middle of the image. centerX corresponds to the direct (counter-clockwise) rotation along the Z axis, and centerY corresponds to the direct rotation along the Y axis, as in the image below:
CameraInfo: describes the 6D position of the camera at the time the image was taken, in Nao Space.
The detection is limited to objects that are approximatively red and circular. Balls of other colors cannot be detected.
The easiest way to get started with ALRedBallDetection is to use the Walk Tracker Choregraphe Box and to set the type of object to be tracked as “Red ball”.