ALDarknessDetection API

NAOqi Vision - Overview | API


Namespace : AL

#include <alproxies/aldarknessdetectionproxy.h>

Method list

class ALDarknessDetectionProxy

Events lists

ALMemory Keys list

Methods

int ALDarknessDetectionProxy::getDarknessThreshold()
Returns:Current value of the darkness threshold used for raising the event DarknessDetected().
void ALDarknessDetectionProxy::setDarknessThreshold(const int& threshold)

Enables to change the value of the darkness threshold for raising the event DarknessDetected().

This value must be between 0 and 100:

  • if the given value is lower than 0, darkness threshold is set to 0
  • if the given value is greater than 100, darkness threshold is set to 100

Events

Event: "DarknessDetected"
callback(std::string eventName, int value, std::string subscriberIdentifier)

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:
  • eventName (std::string) – “DarknessDetected”
  • value – the darkness value measured
  • subscriberIdentifier (std::string) –

Note

This event should be prefixed by DarknessDetection/ when subscribing to it.

ALMemory Keys

int DarknessValue

Value of the darkness measured for each frame.

Full name in ALMemory: DarknessDetection/DarknessValue