This code snippet shows how the Object Detector module is typically used. Note that error handling is left out for clarity.
Initialize ObjectDetector parameters with default values.
Modify parameters as needed.
Initialize ObjectDetector module from DriveNet.
Allocate a container for storing the detections. The container needs to have enough space for all detections of all classes known to the object detector.
Run all object detector processing steps on the given image.
Access the bounding boxes and classes of the detections.
To check whether depth values for the objects detected from DriveNet are available.
Finally, free memory allocated by the array and the detector.
For more details see DriveNet Sample.