DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

Wait Conditions Classification Workflow for Traffic Signs
Note
SW Release Applicability: This tutorial is applicable to modules in NVIDIA DRIVE Software releases.

The following code snippet shows the general structure of a program that uses waitconditions classifier to classify detected traffic signs from a single camera. Note that error handling is left out for clarity.

Initialize SignNet default parameters and then the module:

dwSignNetParams signNetParams{};
dwSignNet_initialize(&signNetHandle,&signNetParams, sdkHandle);

Initialize Waitcondition classifier module from initialized SignNet handle:

dwTrafficLightSignClassifier_initializeFromSignNet(&signClassifierHandle,
signNetHandle,
sdkHandle);

Classify detected traffic signs 'trafficSignList' from a frame:

dwTrafficLightSignClassifier_inferDeviceAsync(frame, &trafficSignList, numTrafficSigns, dwObjectClassTrafficSign, &objectClassifierHandle);
dwTrafficLightSignClassifier_interpretHost(numTrafficSigns, dwObjectClassTrafficSign, &objectClassifierHandle);
dwTrafficLightSignClassifier_getClassifiedObjects(&trafficSignList, numTrafficSigns, &objectClassifierHandle);

When finished, release the module handles:

dwTrafficLightSignClassifier_release(objectClassifierHandle);
dwSignNet_release(signNetHandle);

For more detailed workflow, please refer to the ligthClassifier sample: Traffic Sign Classification Sample (SignNet)