The LightSourceDetector module creates handle of type dwLightSourceDetectorHandle_t
. This handle is owned by the application and must be released by the application when not needed anymore.
An instance of type dwLightSourceDetectorParams
encodes parameters (currently only perception ROI) and encapsulates a handle to LightSourceNet (of type dwLightSourceNetHandle_t
) that configures the LightSourceDetector module.
To initialize a pointer to a dwLightSourceDetectorHandle_t
instance with an initialized LightSourceNet handle and default parameter values:
An example code snippet to initialize required modules with default values:
where m_sdk
is an initialized instance of dwContextHandle_t
.
With initialized handle to the LightSourceDetector module, the following functions can be used to perform inference on an image and retrieve the processed output, which indicate binary ON/OFF high beam signal:
The following functions can be used to reset or release the initialized module handles whenever necessary:
For usage of a sample application, please refer to LightSourcePerception Sample (LightSourceNet).
See LightSourceNet for information on DNN used in this perception module (LightSourceNet).