The LightSourceNet module creates handles of type dwLightSourceNetHandle_t
, which is owned by the application and must be released by the application when not needed anymore.
An instance of type dwLightSourceNetParams
encodes parameters (currently only network precision) that configure the LightSourceNet module. To initialize default LightSourceNet parameters:
To initialize a pointer to a dwLightSourceNetHandle_t
instance with default parameter values:
An example code snippet to initialize required modules with default values:
where m_sdk
is an initialized instance of dwContextHandle_t
.
The initialized handle of LightSourceNet is used to initialize LightSourceDetector module.
With initialized handle to the LightSourceNet module, the following functions can be used to query size of expected input blob, size of output blob and network metadata respectively:
The LightSourceNet is closely coupled with LightSourceDetector. The neural network inference and post-processing is executed via LightSourceDetector APIs.
The following functions can be used to reset or release the initialized module handles:
For usage of a sample application, please refer to LightSourcePerception Sample (LightSourceNet).