Defines the WaitNet module.
- Note
- SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.
|
DW_API_PUBLIC dwStatus | dwWaitNet_getAvailableClasses (const dwWaitConditionObjectClass **intersectionClasses, const dwWaitConditionObjectClass **trafficControlClasses, uint32_t *numIntersectionClasses, uint32_t *numTrafficControlClasses, dwWaitNetHandle_t obj) |
| Returns the object classes that WaitNet can detect. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_getInputBlobsize (dwBlobSize *inputBlobsize, dwWaitNetHandle_t obj) |
| Returns input blob size that WaitNet expects. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_getOutputBlobsize (dwBlobSize *outputBlobsize, uint32_t blobIdx, dwWaitNetHandle_t obj) |
| Returns output blob size that WaitNet expects. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_initDefaultParams (dwWaitNetParams *params, dwContextHandle_t ctx) |
| Initializes WaitNet parameters with default values. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_initialize (dwWaitNetHandle_t *waitnetHandle, const dwWaitNetParams *waitnetParams, dwContextHandle_t ctx) |
| Initializes WaitNet module. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_release (dwWaitNetHandle_t obj) |
| Releases the WaitNet module. More...
|
|
DW_API_PUBLIC dwStatus | dwWaitNet_reset (dwWaitNetHandle_t obj) |
| Resets WaitNet. More...
|
|
◆ dwWaitNetParams
Data Fields |
uint32_t |
maxClustersPerClass |
Maximum number of clusters per class. |
uint32_t |
maxProposalsPerClass |
Maximum number of RAW detections per class directly obtained from DNN. |
dwWaitNetModel |
networkModel |
Waitnet network model. Default is DW_WAITNET_MODEL_DETECTION. |
dwPrecision |
networkPrecision |
Waitnet network precision. Default is DW_PRECISION_FP32. |
◆ dwWaitNetHandle_t
Handle to a WaitNet object.
Definition at line 63 of file WaitNet.h.
◆ dwWaitNetModel
WaitNet network models to be loaded by WaitNet module.
Enumerator |
---|
DW_WAITNET_MODEL_BBOX_INTERSECTION_TL_RS_V1 | WaitNet models model that detects multiple intersections plus traffic lights (TL) and road signs (RS) per frame.
|
DW_WAITNET_MODEL_MULTITASK_WAITNET_V0 | model that detects multiple intersections, waypoints, traffic lights (TL) and road signs (RS) per frame
|
DW_WAITNET_NUM_MODELS | model count
|
DW_WAITNET_MODEL_CUSTOM | Loads custom SignNet model if available.
Network name must be provided in networkCustomData field in dwSignNetParams
|
Definition at line 66 of file WaitNet.h.
◆ dwWaitNet_getAvailableClasses()
DW_API_PUBLIC dwStatus dwWaitNet_getAvailableClasses |
( |
const dwWaitConditionObjectClass ** |
intersectionClasses, |
|
|
const dwWaitConditionObjectClass ** |
trafficControlClasses, |
|
|
uint32_t * |
numIntersectionClasses, |
|
|
uint32_t * |
numTrafficControlClasses, |
|
|
dwWaitNetHandle_t |
obj |
|
) |
| |
Returns the object classes that WaitNet can detect.
- Parameters
-
[out] | intersectionClasses | A pointer to list of intersection classes that WaitNet can detect. |
[out] | trafficControlClasses | A pointer to list of traffic control classes that WaitNet can detect. |
[out] | numIntersectionClasses | Number of intersection classes. |
[out] | numTrafficControlClasses | Number of traffic control classes. |
[in] | obj | Specifies the WaitNet handle. |
- Returns
- DW_SUCCESS
DW_INVALID_HANDLE - If the given handle is invalid,i.e. null or of wrong type
DW_BAD_CAST
DW_INVALID_ARGUMENT
◆ dwWaitNet_getInputBlobsize()
Returns input blob size that WaitNet expects.
- Parameters
-
[out] | inputBlobsize | Input blob size. |
[in] | obj | Specifies the WaitNet handle. |
- Returns
- DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr or null handle passed
◆ dwWaitNet_getOutputBlobsize()
Returns output blob size that WaitNet expects.
- Parameters
-
[out] | outputBlobsize | Output blob size. |
[in] | blobIdx | Index of the output blob to return |
[in] | obj | Specifies the WaitNet handle. |
- Returns
- DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr or null handle passed
◆ dwWaitNet_initDefaultParams()
Initializes WaitNet parameters with default values.
- Parameters
-
[out] | params | WaitNet parameters. |
[in] | ctx | Specifies the handle to the context. |
- Returns
- DW_SUCCESS parameters initialized DW_INVALID_ARGUMENT if nullptr passed
◆ dwWaitNet_initialize()
Initializes WaitNet module.
- Parameters
-
[out] | waitnetHandle | A pointer to WaitNet handle to be initialized. |
[in] | waitnetParams | Waitnet parameters |
[in] | ctx | Specifies the handle to the context. |
- Returns
- DW_SUCCESS initialization completed successfully DW_INVALID_ARGUMENT one of the parameters is invalid (nullptr or null handle)
◆ dwWaitNet_release()
Releases the WaitNet module.
- Parameters
-
[in] | obj | WaitNet handle to release. |
- Returns
- DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT nullptr passed
- Note
- This method renders the handle unusable.
◆ dwWaitNet_reset()
Resets WaitNet.
- Parameters
-
[in] | obj | WaitNet handle to reset. |
- Returns
- DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT null handle passed