Defines RoadMarkNet module, i.e., RoadMarkNet configuration and loading.
Data Structures | |
| struct | dwRoadMarkNetParams |
| RoadMarkNet model parameters. More... | |
Macros | |
| #define | DW_ROADMARK_MAX_OUTPUT_TYPES 64 |
Typedefs | |
| typedef struct dwRoadMarkNetObject * | dwRoadMarkNetHandle_t |
| Handle to a RoadMarkNet object. More... | |
Enumerations | |
| enum | dwRoadMarkNetBatchSize { DW_ROADMARKNET_BATCH_SIZE_1 = 0, DW_ROADMARKNET_BATCH_SIZE_16 = 1, DW_ROADMARKNET_BATCH_SIZE_32 = 2, DW_ROADMARKNET_BATCH_SIZE_64 = 3 } |
| Network batch size options for RoadMarkNet. More... | |
| enum | dwRoadMarkNetModel { DW_ROADMARKNET_MODEL_US_V0 = 0, DW_ROADMARKNET_MODEL_COUNT = 1, DW_ROADMARKNET_MODEL_CUSTOM = -1 } |
| Network models to be loaded by RoadMarkNet module. More... | |
| struct dwRoadMarkNetParams |
| Data Fields | ||
|---|---|---|
| dwRoadMarkNetBatchSize | batchSize | RoadMarkNet network batch size. Default is DW_ROADMARKNET_BATCH_SIZE_32. |
| const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. |
| dwRoadMarkNetModel | networkModel | RoadMarkNet network model. Default is DW_ROADMARKNET_MODEL_US_V0. |
| dwPrecision | networkPrecision | RoadMarkNet network precision. Default is based on GPU type. |
| dwProcessorType | processorType | Processor type. Supported processors: GPU, DLA (only on DDPX). Default is GPU. |
| #define DW_ROADMARK_MAX_OUTPUT_TYPES 64 |
Definition at line 66 of file RoadMarkNet.h.
| typedef struct dwRoadMarkNetObject* dwRoadMarkNetHandle_t |
Handle to a RoadMarkNet object.
Definition at line 63 of file RoadMarkNet.h.
Network batch size options for RoadMarkNet.
Definition at line 84 of file RoadMarkNet.h.
| enum dwRoadMarkNetModel |
Network models to be loaded by RoadMarkNet module.
| Enumerator | |
|---|---|
| DW_ROADMARKNET_MODEL_US_V0 | |
| DW_ROADMARKNET_MODEL_COUNT | |
| DW_ROADMARKNET_MODEL_CUSTOM | |
Definition at line 71 of file RoadMarkNet.h.
| DW_API_PUBLIC dwStatus dwRoadMarkNet_getClassLabel | ( | const char ** | classLabel, |
| dwRoadmarkType | roadmarkType, | ||
| dwRoadMarkNetHandle_t | obj | ||
| ) |
Returns the class label for a given class index.
| [out] | classLabel | Pointer to class label. |
| [in] | roadmarkType | Roadmark class for which class label is requested. |
| [in] | obj | The handle to RoadMarkNet. |
| DW_API_PUBLIC dwStatus dwRoadMarkNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, |
| dwRoadMarkNetHandle_t | obj | ||
| ) |
Returns the DNN metadata.
| [out] | metaData | Pointer to metaData struct. |
| [in] | obj | Specifies the RoadMarkNet handle. |
| DW_API_PUBLIC dwStatus dwRoadMarkNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, |
| dwRoadMarkNetHandle_t | obj | ||
| ) |
Returns input blob size that RoadMarkNet expects.
| [out] | inputBlobsize | Input blob size. |
| [in] | obj | Specifies the RoadMarkNet handle. |
| DW_API_PUBLIC dwStatus dwRoadMarkNet_initDefaultParams | ( | dwRoadMarkNetParams * | roadMarkNetParams, |
| dwContextHandle_t | ctx | ||
| ) |
Initializes RoadMarkNet parameters with default values.
| [out] | roadMarkNetParams | RoadMarkNet parameters. |
| [in] | ctx | The handle to the context. |
| DW_API_PUBLIC dwStatus dwRoadMarkNet_initialize | ( | dwRoadMarkNetHandle_t * | roadMarkNetHandle, |
| const dwRoadMarkNetParams * | roadMarkNetParams, | ||
| dwContextHandle_t | ctx | ||
| ) |
Initializes RoadMarkNet module.
| [out] | roadMarkNetHandle | A pointer to RoadMarkNet handle to be initialized. |
| [in] | roadMarkNetParams | RoadMarkNet parameters. |
| [in] | ctx | The handle to the context. |
dwContext_selectGPUDevice. | DW_API_PUBLIC dwStatus dwRoadMarkNet_release | ( | dwRoadMarkNetHandle_t | obj | ) |
Releases the RoadMarkNet module.
| [in] | obj | The handle to RoadMarkNet. |
| DW_API_PUBLIC dwStatus dwRoadMarkNet_reset | ( | dwRoadMarkNetHandle_t | obj | ) |
Resets RoadMarkNet.
| [in] | obj | Handle to RoadMarkNet. |