|
|
DriveWorks SDK Reference| 0.6.67 Release |
Defines the DriveNet module.
Data Structures | |
| struct | dwDriveNetParams |
Typedefs | |
| typedef struct dwDriveNetObject * | dwDriveNetHandle_t |
| Handle to a DriveNet object. More... | |
Enumerations | |
| enum | dwDriveNetBatchSize { DW_DRIVENET_BATCHSIZE_1 = 0, DW_DRIVENET_BATCHSIZE_2 = 1 } |
| enum | dwDriveNetClass { DW_DRIVENET_CLASS_CAR = 0, DW_DRIVENET_CLASS_TRAFFIC_SIGN = 1, DW_DRIVENET_CLASS_BICYCLE = 2, DW_DRIVENET_CLASS_TRUCK = 3, DW_DRIVENET_CLASS_PEDESTRIAN = 4, DW_DRIVENET_CLASS_TRAFFIC_LIGHT = 5, DW_DRIVENET_NUM_CLASSES } |
| Class IDs detectable by the DriveNet implementation. More... | |
| enum | dwDriveNetNetworkPrecision { DW_DRIVENET_PRECISION_INT8 = 0, DW_DRIVENET_PRECISION_FP16 = 1, DW_DRIVENET_PRECISION_FP32 = 2 } |
| struct dwDriveNetParams |
| Data Fields | ||
|---|---|---|
| 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. |
| dwDriveNetBatchSize | networkBatchSize | Drivenet network batch size. Default is DW_DRIVENET_BATCHSIZE_1. |
| dwDriveNetNetworkPrecision | networkPrecision | Drivenet network precision. Default is DW_DRIVENET_PRECISION_FP32. |
| typedef struct dwDriveNetObject* dwDriveNetHandle_t |
Handle to a DriveNet object.
Definition at line 61 of file DriveNet.h.
| enum dwDriveNetBatchSize |
| Enumerator | |
|---|---|
| DW_DRIVENET_BATCHSIZE_1 | DriveNet network is loaded with batch size = 1 if available. |
| DW_DRIVENET_BATCHSIZE_2 | DriveNet network is loaded with batch size = 2 if available. |
Definition at line 75 of file DriveNet.h.
| enum dwDriveNetClass |
Class IDs detectable by the DriveNet implementation.
Definition at line 84 of file DriveNet.h.
Definition at line 63 of file DriveNet.h.
| DW_API_PUBLIC dwStatus dwDriveNet_getClassLabel | ( | const char ** | classLabel, |
| uint32_t | classIdx, | ||
| dwDriveNetHandle_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 | 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_initDefaultParams | ( | dwDriveNetParams * | params | ) |
Initializes DriveNet parameters with default values.
| [out] | params | DriveNet parameters. |
| DW_API_PUBLIC dwStatus dwDriveNet_initialize | ( | dwDriveNetHandle_t * | drivenetHandle, |
| dwObjectClusteringHandle_t ** | objectClusteringHandles, | ||
| const dwDriveNetClass ** | objectClasses, | ||
| uint32_t * | numObjectClasses, | ||
| dwContextHandle_t | ctx, | ||
| const dwDriveNetParams * | drivenetParams | ||
| ) |
Initializes DriveNet module.
| [out] | drivenetHandle | A pointer to DriveNet handle to be initialized. |
| [out] | objectClusteringHandles | A pointer to list of ObjectClustering handles to be initialized. |
| [out] | objectClasses | A pointer to list of object classes. |
| [out] | numObjectClasses | Number of object classes which also determine the number of object clustering handles. |
| [in] | ctx | Specifies the handle to the context. |
| [in] | drivenetParams | Drivenet parameters |
| DW_API_PUBLIC dwStatus dwDriveNet_release | ( | dwDriveNetHandle_t * | obj | ) |
Releases the DriveNet module.
| [in] | obj | A pointer to the object handle to release. |
| DW_API_PUBLIC dwStatus dwDriveNet_reset | ( | dwDriveNetHandle_t | obj | ) |
Resets DriveNet.
| [in] | obj | Handle to reset. |