Defines MapNet module, i.e., MapNet configuration and loading.
Data Structures | |
| struct | dwMapNetParams |
Typedefs | |
| typedef struct dwMapNetObject * | dwMapNetHandle_t |
| Handle to a MapNet object. More... | |
Enumerations | |
| enum | dwMapNetModel { DW_MAPNET_MODEL_FRONT_MULTI_CLASS = 0, DW_MAPNET_MODEL_FRONT_SINGLE_CLASS = 1, DW_MAPNET_MODEL_FRONT_REGRESSOR = 2, DW_MAPNET_MODEL_FRONT_E2E = 3, DW_MAPNET_NUM_MODELS, DW_MAPNET_MODEL_CUSTOM = -1 } |
| MapNet network models to be loaded by MapNet module. More... | |
| enum | dwMapNetType { DW_MAPNET_TYPE_SEGMENTATION, DW_MAPNET_TYPE_REGRESSOR, DW_MAPNET_TYPE_E2E, DW_MAPNET_TYPE_COUNT } |
| MapNet type. More... | |
Functions | |
| DW_API_PUBLIC dwStatus | dwMapNet_getClassLabel (const char **classLabel, uint32_t classIdx, dwMapNetHandle_t obj) |
| Returns the class label for a given class index. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_getDNNMetaData (dwDNNMetaData *metaData, dwMapNetHandle_t obj) |
| Returns the DNN metadata. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_getInputBlobsize (dwBlobSize *inputBlobsize, dwMapNetHandle_t obj) |
| Returns input blob size that MapNet expects. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_initDefaultParams (dwMapNetParams *params, dwMapNetType mapnetType, dwContextHandle_t ctx) |
| Initializes MapNet parameters with default values. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_initialize (dwMapNetHandle_t *mapNetHandle, const dwMapNetParams *mapNetParams, dwContextHandle_t ctx) |
| Initializes MapNet module. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_release (dwMapNetHandle_t obj) |
| Releases the MapNet module. More... | |
| DW_API_PUBLIC dwStatus | dwMapNet_reset (dwMapNetHandle_t obj) |
| Resets MapNet. More... | |
| struct dwMapNetParams |
| Data Fields | ||
|---|---|---|
| dwMapNetType | mapNetType | MapNet category type(segmentation, regressor) |
| const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. |
| dwMapNetModel | networkModel | MapNet network model. Default is DW_MAPNET_MODEL_FRONT_MULTI_CLASS. |
| dwPrecision | networkPrecision | MapNet network precision. Default is DW_PRECISION_FP32. |
| dwProcessorType | processorType | Processor type. Supported processors: GPU, DLA (only on DDPX) |
| typedef struct dwMapNetObject* dwMapNetHandle_t |
| enum dwMapNetModel |
MapNet network models to be loaded by MapNet module.
| Enumerator | |
|---|---|
| DW_MAPNET_MODEL_FRONT_MULTI_CLASS | MapNet model that performs multi-class lane detection on front camera.
|
| DW_MAPNET_MODEL_FRONT_SINGLE_CLASS | MapNet model that performs single-class lane detection on front camera.
|
| DW_MAPNET_MODEL_FRONT_REGRESSOR | MapNet model that performs detection by regression.
|
| DW_MAPNET_MODEL_FRONT_E2E | MapNet model that performs detection by end to end based approach.
|
| DW_MAPNET_NUM_MODELS | |
| DW_MAPNET_MODEL_CUSTOM | Loads custom MapNet model if available. Network name must be provided in networkCustomData field in dwMapNetParams |
| enum dwMapNetType |
| DW_API_PUBLIC dwStatus dwMapNet_getClassLabel | ( | const char ** | classLabel, |
| uint32_t | classIdx, | ||
| dwMapNetHandle_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 MapNet. |
| DW_API_PUBLIC dwStatus dwMapNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, |
| dwMapNetHandle_t | obj | ||
| ) |
Returns the DNN metadata.
| [out] | metaData | Pointer to metaData struct. |
| [in] | obj | The handle to MapNet. |
| DW_API_PUBLIC dwStatus dwMapNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, |
| dwMapNetHandle_t | obj | ||
| ) |
Returns input blob size that MapNet expects.
| [out] | inputBlobsize | Input blob size. |
| [in] | obj | Specifies the MapNet handle. |
| DW_API_PUBLIC dwStatus dwMapNet_initDefaultParams | ( | dwMapNetParams * | params, |
| dwMapNetType | mapnetType, | ||
| dwContextHandle_t | ctx | ||
| ) |
Initializes MapNet parameters with default values.
| [out] | params | MapNet default parameters. |
| [in] | mapnetType | input mapnet type to initialize the default for |
| [in] | ctx | The handle to the context. |
| DW_API_PUBLIC dwStatus dwMapNet_initialize | ( | dwMapNetHandle_t * | mapNetHandle, |
| const dwMapNetParams * | mapNetParams, | ||
| dwContextHandle_t | ctx | ||
| ) |
Initializes MapNet module.
| [out] | mapNetHandle | A pointer to MapNet handle to be initialized. |
| [in] | mapNetParams | MapNet parameters |
| [in] | ctx | The handle to the context. |
| DW_API_PUBLIC dwStatus dwMapNet_release | ( | dwMapNetHandle_t | obj | ) |
Releases the MapNet module.
| [in] | obj | The handle to MapNet. |
| DW_API_PUBLIC dwStatus dwMapNet_reset | ( | dwMapNetHandle_t | obj | ) |
Resets MapNet.
| [in] | obj | Handle to MapNet. |