NAOqi Vision - Overview | API
Namespace : AL
#include <alproxies/aldarknessdetectionproxy.h>
As any module, this module inherits methods from ALModule API. It also has the following specific methods:
Returns: | Current value of the darkness threshold used for raising the event DarknessDetected(). |
---|
Enables to change the value of the darkness threshold for raising the event DarknessDetected().
This value must be between 0 and 100:
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 ALDarknessDetectionProxy::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 the darkness value just became greater than the darkness threshold. As long as the darkness value stays over the threshold, the event is not raised another time.
Parameters: |
|
---|
Note
This event should be prefixed by DarknessDetection/ when subscribing to it.