- 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:
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);
For more detailed workflow, please refer to the ligthClassifier sample: Traffic Sign Classification Sample (SignNet)