The following code snippet shows the general structure of a program that uses roadmarknet classifier to classify detected road markings on a single camera. Note that error handling is left out for clarity.
Initialize RoadMarkNet
with default parameters:
Initialize RoadMarkClasssifier
module from initialized RoadMarkNet
handle, with parameters classifierParams
:
Bind inputs and output to the RoadMarkClasssifier
module:
Classify detected road markings from the provided inputs:
When finished, release the module handles:
For more detailed workflow, please refer to the road mark classification sample: Road Mark Classification Sample