Defines the DriveNet module.
Data Structures | |
| struct | dwDriveNetClassProperties |
| DriveNet properties per class. More... | |
| struct | dwDriveNetParams |
| DriveNet model parameters. More... | |
Typedefs | |
| typedef struct dwDriveNetObject * | dwDriveNetHandle_t |
| Handle to a DriveNet object. More... | |
Enumerations | |
| enum | dwDriveNetBatchSize { DW_DRIVENET_BATCH_SIZE_1 = 0, DW_DRIVENET_BATCH_SIZE_2 = 1, DW_DRIVENET_BATCH_SIZE_4 = 2 } |
| DriveNet network batch size options. More... | |
| enum | dwDriveNetCameraType { DW_DRIVENET_CAMERA_60FOV, DW_DRIVENET_CAMERA_120FOV, DW_DRIVENET_CAMERA_30FOV } |
| DriveNet camera type based on its field of view. More... | |
| enum | dwDriveNetModel { DW_DRIVENET_MODEL_FRONT = 0, DW_DRIVENET_MODEL_SIDE = 1, DW_STATEFUL_TEMPORAL_DRIVENET_MODEL = 2, DW_STATELESS_TEMPORAL_DRIVENET_MODEL = 3, DW_DRIVENET_NUM_MODELS, DW_DRIVENET_MODEL_CUSTOM = -1 } |
| DriveNet network models to be loaded by DriveNet module. More... | |
| struct dwDriveNetClassProperties |
| struct dwDriveNetParams |
| Data Fields | ||
|---|---|---|
| dwDriveNetBatchSize | batchSize | Drivenet network batch size. |
| dwDriveNetCameraType | cameraType | Type of camera based on the field of view. |
| bool | hasDepth | Deprecated flag indicating to load a network that outputs depth for detected objects. |
| bool | hasObjectDepth | Flag indicating to load a network that outputs depth for detected objects. |
| bool | hasObjectUrgency | Flag indicating to load a network that outputs urgency for detected objects. |
| uint32_t | maxClustersPerClass | Maximum number of clusters per class. Default is 100. |
| uint32_t | maxProposalsPerClass | Maximum number of RAW detections per class directly obtained from DNN. Default is 100. |
| const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. |
| dwDriveNetModel | networkModel | Drivenet network model. Default is DW_DRIVENET_MODEL_FRONT. |
| dwPrecision | networkPrecision | Drivenet network precision. Default is DW_PRECISION_FP32. |
| dwProcessorType | processorType | Processor type. Supported processors: GPU, DLA (only on DDPX) |
| bool | suppressRiderInCar | Suppress detected pedestrians which are actually riders in a car. |
| typedef struct dwDriveNetObject* dwDriveNetHandle_t |
Handle to a DriveNet object.
Definition at line 63 of file DriveNet.h.
| enum dwDriveNetBatchSize |
DriveNet network batch size options.
Definition at line 83 of file DriveNet.h.
| enum dwDriveNetCameraType |
DriveNet camera type based on its field of view.
| Enumerator | |
|---|---|
| DW_DRIVENET_CAMERA_60FOV | |
| DW_DRIVENET_CAMERA_120FOV | |
| DW_DRIVENET_CAMERA_30FOV | |
Definition at line 90 of file DriveNet.h.
| enum dwDriveNetModel |
DriveNet network models to be loaded by DriveNet module.
| Enumerator | |
|---|---|
| DW_DRIVENET_MODEL_FRONT | DriveNet model that performs best on front camera. |
| DW_DRIVENET_MODEL_SIDE | DriveNet model that performs best on side camera. |
| DW_STATEFUL_TEMPORAL_DRIVENET_MODEL | Stateful Temporal DriveNet model that also predicts urgency on front camera. |
| DW_STATELESS_TEMPORAL_DRIVENET_MODEL | Stateless Temporal DriveNet model that also predicts urgency on front camera. |
| DW_DRIVENET_NUM_MODELS | Number of available DriveNet models. |
| DW_DRIVENET_MODEL_CUSTOM | Loads custom drivenet model if available. Network name must be provided in networkCustomData field in dwDriveNetParams |
Definition at line 66 of file DriveNet.h.
| DW_API_PUBLIC dwStatus dwDriveNet_getAvailableClasses | ( | const dwObjectClass ** | objectClasses, |
| uint32_t * | numObjectClasses, | ||
| dwDriveNetHandle_t | obj | ||
| ) |
Returns the object classes that DriveNet can detect.
| [out] | objectClasses | A pointer to list of object classes that DriveNet can detect. |
| [out] | numObjectClasses | Number of object classes. |
| [in] | obj | Specifies the DriveNet handle. |
| DW_API_PUBLIC dwStatus dwDriveNet_getClassProperties | ( | dwDriveNetClassProperties * | properties, |
| dwObjectClass | objectClass, | ||
| dwDriveNetHandle_t | obj | ||
| ) |
Returns properties of the DriveNet model for a given class.
| [out] | properties | Pointer to dwDriveNetClassProperties struct |
| [in] | objectClass | Object class |
| [in] | obj | Specifies the DriveNet handle. |
| DW_API_PUBLIC dwStatus dwDriveNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, |
| dwDriveNetHandle_t | obj | ||
| ) |
Returns the DNN metadata.
| [out] | metaData | Pointer to metaData struct. |
| [in] | obj | Specifies the DriveNet handle. |
| DW_API_PUBLIC dwStatus dwDriveNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, |
| dwDriveNetHandle_t | obj | ||
| ) |
Returns input blob size that DriveNet expects.
| [out] | inputBlobsize | Input blob size. |
| [in] | obj | Specifies the DriveNet handle. |
| DW_API_PUBLIC dwStatus dwDriveNet_getProcessorType | ( | dwProcessorType * | processorType, |
| dwDriveNetHandle_t | obj | ||
| ) |
Returns processor type that DriveNet runs on.
| [out] | processorType | processor type. |
| [in] | obj | Specifies the DriveNet handle. |
| DW_API_PUBLIC dwStatus dwDriveNet_initDefaultParams | ( | dwDriveNetParams * | params, |
| dwContextHandle_t | ctx | ||
| ) |
Initializes DriveNet parameters with default values.
| [out] | params | DriveNet parameters. |
| [in] | ctx | Specifies the handle to the context. |
| DW_API_PUBLIC dwStatus dwDriveNet_initialize | ( | dwDriveNetHandle_t * | drivenetHandle, |
| const dwDriveNetParams * | drivenetParams, | ||
| dwContextHandle_t | ctx | ||
| ) |
Initializes DriveNet module.
| [out] | drivenetHandle | A pointer to DriveNet handle to be initialized. |
| [in] | drivenetParams | Drivenet parameters |
| [in] | ctx | Specifies the handle to the context. |
dwContext_selectGPUDevice. | DW_API_PUBLIC dwStatus dwDriveNet_release | ( | dwDriveNetHandle_t | obj | ) |
Releases the DriveNet module.
| [in] | obj | The object handle to release. |
| DW_API_PUBLIC dwStatus dwDriveNet_reset | ( | dwDriveNetHandle_t | obj | ) |
Resets DriveNet.
| [in] | obj | Handle to reset. |