Defines OpenRoadNet module, i.e., OpenRoadNet configuration and loading.
Data Structures | |
struct | dwOpenRoadNetParams |
Typedefs | |
typedef struct dwOpenRoadNetObject * | dwOpenRoadNetHandle_t |
Handle to a OpenRoadNet object. More... | |
Enumerations | |
enum | dwFreespaceBoundaryType { DW_BOUNDARY_TYPE_OTHER = 0, DW_BOUNDARY_TYPE_CURB = 1, DW_BOUNDARY_TYPE_VEHICLE = 2, DW_BOUNDARY_TYPE_PERSON = 3, DW_BOUNDARY_TYPE_UNDEFINED = 4, DW_BOUNDARY_NUM_TYPES } |
Category of free space boundary. More... | |
enum | dwOpenRoadNetBatchSize { DW_OPENROADNET_BATCH_SIZE_1 = 1, DW_OPENROADNET_BATCH_SIZE_2 = 2, DW_OPENROADNET_BATCH_SIZE_4 = 4, DW_OPENROADNET_BATCH_SIZE_6 = 6 } |
OpenRoadNet network batch size options. More... | |
enum | dwOpenRoadNetModel { DW_OPENROADNET_MODEL_FRONT = 0, DW_OPENROADNET_MODEL_SIDE = 1, DW_OPENROADNET_NUM_MODELS, DW_OPENROADNET_MODEL_CUSTOM = -1 } |
OpenRoadNet network models to be loaded by OpenRoadNet module. More... | |
struct dwOpenRoadNetParams |
Data Fields | ||
---|---|---|
dwOpenRoadNetBatchSize | batchSize | |
const void * | networkCustomData | Custom network data. Must be set if custom model is selected and available. |
dwOpenRoadNetModel | networkModel | OpenRoadNet network model. Default is DW_OPENROADNET_MODEL_FRONT. |
dwPrecision | networkPrecision | OpenRoadNet network precision. Default is DW_PRECISION_FP32. |
typedef struct dwOpenRoadNetObject* dwOpenRoadNetHandle_t |
Handle to a OpenRoadNet object.
Definition at line 62 of file OpenRoadNet.h.
Category of free space boundary.
Definition at line 65 of file OpenRoadNet.h.
OpenRoadNet network batch size options.
Definition at line 87 of file OpenRoadNet.h.
enum dwOpenRoadNetModel |
OpenRoadNet network models to be loaded by OpenRoadNet module.
Enumerator | |
---|---|
DW_OPENROADNET_MODEL_FRONT | OpenRoadNet model that performs best on front camera. |
DW_OPENROADNET_MODEL_SIDE | OpenRoadNet model that performs best on side camera. |
DW_OPENROADNET_NUM_MODELS | |
DW_OPENROADNET_MODEL_CUSTOM | Loads custom OpenRoadNet model if available. Network name must be provided in networkCustomData field in dwOpenRoadNetParams |
Definition at line 75 of file OpenRoadNet.h.
DW_API_PUBLIC dwStatus dwOpenRoadNet_getClassLabel | ( | const char ** | classLabel, |
uint32_t | classIdx, | ||
dwOpenRoadNetHandle_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 OpenRoadNet handle. |
DW_API_PUBLIC dwStatus dwOpenRoadNet_getDNNMetaData | ( | dwDNNMetaData * | metaData, |
dwOpenRoadNetHandle_t | obj | ||
) |
Returns the DNN metadata.
[out] | metaData | Pointer to metaData struct. |
[in] | obj | Specifies the OpenRoadNet handle. |
DW_API_PUBLIC dwStatus dwOpenRoadNet_getInputBlobsize | ( | dwBlobSize * | inputBlobsize, |
dwOpenRoadNetHandle_t | obj | ||
) |
Returns input blob size that OpenRoadNet expects.
[out] | inputBlobsize | Input blob size. |
[in] | obj | Specifies the OpenRoadNet handle. |
DW_API_PUBLIC dwStatus dwOpenRoadNet_initDefaultParams | ( | dwOpenRoadNetParams * | params, |
dwContextHandle_t | ctx | ||
) |
Initializes OpenRoadNet parameters with default values.
[out] | params | OpenRoadNet default parameters. |
[in] | ctx | Specifies the handle to the context. |
DW_API_PUBLIC dwStatus dwOpenRoadNet_initialize | ( | dwOpenRoadNetHandle_t * | openRoadNetHandle, |
dwContextHandle_t | ctx, | ||
const dwOpenRoadNetParams * | openRoadNetParams | ||
) |
Initializes OpenRoadNet module.
[out] | openRoadNetHandle | A pointer to OpenRoadNet handle to be initialized. |
[in] | ctx | Specifies the handle to the context. |
[in] | openRoadNetParams | OpenRoadNet parameters |
dwContext_selectGPUDevice
. DW_API_PUBLIC dwStatus dwOpenRoadNet_release | ( | dwOpenRoadNetHandle_t | obj | ) |
Releases the OpenRoadNet module.
[in] | obj | The object handle to release. |
DW_API_PUBLIC dwStatus dwOpenRoadNet_reset | ( | dwOpenRoadNetHandle_t | obj | ) |
Resets OpenRoadNet.
[in] | obj | Handle to reset. |