1 # Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3 @page waitcondition_usecase2 Wait Conditions Classification Workflow for Traffic Signs
5 @note SW Release Applicability: This tutorial is applicable to modules in **NVIDIA DRIVE Software** releases.
7 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.
9 Initialize SignNet default parameters and then the module:
11 dwSignNetParams signNetParams{};
12 dwSignNet_initDefaultParams(&signNetParams);
13 dwSignNet_initialize(&signNetHandle,&signNetParams, sdkHandle);
16 Initialize Waitcondition classifier module from initialized SignNet handle:
18 dwTrafficLightSignClassifier_initializeFromSignNet(&signClassifierHandle,
23 Classify detected traffic signs 'trafficSignList' from a frame:
25 dwTrafficLightSignClassifier_inferDeviceAsync(frame, &trafficSignList, numTrafficSigns, dwObjectClassTrafficSign, &objectClassifierHandle);
26 dwTrafficLightSignClassifier_interpretHost(numTrafficSigns, dwObjectClassTrafficSign, &objectClassifierHandle);
27 dwTrafficLightSignClassifier_getClassifiedObjects(&trafficSignList, numTrafficSigns, &objectClassifierHandle);
31 When finished, release the module handles:
33 dwTrafficLightSignClassifier_release(objectClassifierHandle);
34 dwSignNet_release(signNetHandle);
37 For more detailed workflow, please refer to the ligthClassifier sample: @ref dwx_sign_classification_sample