NAOqi Vision - Overview | API
Namespace : AL
#include <alproxies/albacklightingdetectionproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns: | Index of the active camera (0: top camera, 1: bottom camera) |
---|
Returns: | Current extractor framerate in frames per second (range: 1-30 fps) |
---|
Returns: | Index of the current resolution (0: QQVGA, 1: QVGA, 2: VGA, 3: 4VGA) |
---|
Returns: | True if the extractor is paused (subscribed but not running). |
---|
Returns: | True if the extractor is processing images (at least one subscriber). |
---|
Sets the camera from which the processed images will be taken. This does not change the active camera for other modules.
Parameters: |
|
---|---|
Returns: | True if the active camera has been successfully set. |
Warning
If you use this function, the active camera of this module will not be linked to the “default” camera of the robot anymore. This means that the function setParam(kCameraSelectID) will not affect the active camera of this module. If you want the module to follow the “default” camera again, you can use the function ALBacklightingDetectionProxy::setActiveCamera(-1).
Sets the extractor framerate (the number of processes per second).
Parameters: |
|
---|---|
Returns: | True if the framerate has been successfully changed. |
Sets the resolution of the image to be processed.
Parameters: |
|
---|---|
Returns: | True if the resolution has been successfully changed. |
Raised when a backlighting situation was just detected (the backlighting value just turned to 2). This event is raised only once for each backlighting situation : as long as the backlighting value equals 2, the event is not raised another time.
Note
This event should be prefixed by BacklightingDetection/ when subscribing to it.