Defines LightNet module, i.e., LightNet configuration and loading.
| Data Structures | |
| struct | dwLightNetParams | 
| Typedefs | |
| typedef struct dwLightNetObject * | dwLightNetHandle_t | 
| Handle to a LightNet object.  More... | |
| Enumerations | |
| enum | dwLightNetBatchSize { DW_LIGHTNET_BATCH_SIZE_1 = 0, DW_LIGHTNET_BATCH_SIZE_16 = 1, DW_LIGHTNET_BATCH_SIZE_32 = 2, DW_LIGHTNET_BATCH_SIZE_64 = 3 } | 
| LightNet network batch size options.  More... | |
| enum | dwLightNetModel { DW_LIGHTNET_MODEL_FRONT_V5 = 0, DW_LIGHTNET_MODEL_FRONT_V6 = 1, DW_LIGHTNET_MODEL_FRONT_V7 = 2, DW_LIGHTNET_MODEL_COUNT, DW_LIGHTNET_MODEL_CUSTOM = -1 } | 
| LightNet network models to be loaded by LightNet module.  More... | |
| struct dwLightNetParams | 
| Data Fields | ||
|---|---|---|
| dwLightNetBatchSize | batchSize | LightNet network batch size. Default is DW_LIGHTNET_BATCH_SIZE_1. | 
| const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. | 
| dwLightNetModel | networkModel | LightNet network model. Default is DW_LIGHTNET_MODEL_FRONT_V7. | 
| dwPrecision | networkPrecision | LightNet network precision. Default is DW_PRECISION_FP32. | 
| dwProcessorType | processorType | Processor type. Supported processors: GPU, DLA (only on DDPX) | 
| typedef struct dwLightNetObject* dwLightNetHandle_t | 
Handle to a LightNet object.
Definition at line 63 of file LightNet.h.
| enum dwLightNetBatchSize | 
LightNet network batch size options.
Definition at line 78 of file LightNet.h.
| enum dwLightNetModel | 
LightNet network models to be loaded by LightNet module.
| Enumerator | |
|---|---|
| DW_LIGHTNET_MODEL_FRONT_V5 | LightNet model on front camera. | 
| DW_LIGHTNET_MODEL_FRONT_V6 | |
| DW_LIGHTNET_MODEL_FRONT_V7 | |
| DW_LIGHTNET_MODEL_COUNT | |
| DW_LIGHTNET_MODEL_CUSTOM | Loads custom LightNet model if available. Network name must be provided in networkCustomData field in dwLightNetParams | 
Definition at line 66 of file LightNet.h.
| DW_API_PUBLIC dwStatus dwLightNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, | 
| dwLightNetHandle_t | obj | ||
| ) | 
Returns the DNN metadata.
| [out] | metaData | Pointer to metaData struct. | 
| [in] | obj | The handle to LightNet. | 
| DW_API_PUBLIC dwStatus dwLightNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, | 
| dwLightNetHandle_t | obj | ||
| ) | 
Returns input blob size that LightNet expects.
| [out] | inputBlobsize | Input blob size. | 
| [in] | obj | Specifies the LightNet handle. | 
| DW_API_PUBLIC dwStatus dwLightNet_getNumberOutputs | ( | uint32_t * | numLightOutputs, | 
| dwLightNetHandle_t | obj | ||
| ) | 
Returns the number of raw lightnet outputs its DNN produces.
| [out] | numLightOutputs | Number of light object classes. | 
| [in] | obj | Specifies the LightNet handle. | 
| DW_API_PUBLIC dwStatus dwLightNet_getTypeLabel | ( | const char ** | classLabel, | 
| uint32_t | classIdx, | ||
| dwLightNetHandle_t | obj | ||
| ) | 
Returns the class label for a given class index.
| [out] | classLabel | Pointer to class label. | 
| [in] | classIdx | Class index, i.e. number in [0, numObjectClasses) | 
| [in] | obj | The handle to LightNet. | 
| DW_API_PUBLIC dwStatus dwLightNet_initDefaultParams | ( | dwLightNetParams * | params, | 
| dwContextHandle_t | ctx | ||
| ) | 
Initializes LightNet parameters with default values.
| [out] | params | LightNet default parameters. | 
| [in] | ctx | The handle to the context. | 
| DW_API_PUBLIC dwStatus dwLightNet_initialize | ( | dwLightNetHandle_t * | lightNetHandle, | 
| const dwLightNetParams * | lightNetParams, | ||
| dwContextHandle_t | ctx | ||
| ) | 
Initializes LightNet module.
| [out] | lightNetHandle | A pointer to LightNet handle to be initialized. | 
| [in] | lightNetParams | LightNet parameters | 
| [in] | ctx | The handle to the context. | 
dwContext_selectGPUDevice. | DW_API_PUBLIC dwStatus dwLightNet_release | ( | dwLightNetHandle_t | obj | ) | 
Releases the LightNet module.
| [in] | obj | The handle to LightNet. | 
| DW_API_PUBLIC dwStatus dwLightNet_reset | ( | dwLightNetHandle_t | obj | ) | 
Resets LightNet.
| [in] | obj | Handle to LightNet. |