48 #ifndef DW_OBJECTPERCEPTION_DETECTOR_H_ 49 #define DW_OBJECTPERCEPTION_DETECTOR_H_ 65 #define DW_OBJECT_DETECTOR_MAX_IMAGES 2 155 uint32_t imageHeight,
210 dwObjectDetectorHandle_t obj);
261 dwObjectDetectorHandle_t obj);
272 dwObjectDetectorHandle_t obj);
281 DW_DEPRECATED(
"Replaced with dwObjectDetector_isObjectDepthEnabled")
342 dwObjectDetectorHandle_t obj);
357 dwObjectDetectorHandle_t obj);
374 dwObjectDetectorHandle_t obj);
380 #endif // DW_OBJECTPERCEPTION_DETECTOR_H_ float float32_t
Specifies POD types.
dwObjectDetectorOutputType
The type of the detector output.
NVIDIA DriveWorks API: World Module
DW_API_PUBLIC dwStatus dwObjectDetector_initializeFromAutoNet(dwObjectDetectorHandle_t *obj, uint32_t imageWidth, uint32_t imageHeight, dwAutoNetHandle_t autonet, const dwObjectDetectorParams *detectorParams, dwContextHandle_t ctx)
Initializes ObjectDetector module.
DW_API_PUBLIC dwStatus dwObjectDetector_setCUDAStream(cudaStream_t stream, dwObjectDetectorHandle_t obj)
Sets the CUDA stream used.
DW_API_PUBLIC dwStatus dwObjectDetector_setCoverageThreshold(float32_t covThreshold, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
Set coverage threshold for a given class.
DW_API_PUBLIC dwStatus dwObjectDetector_isObjectDepthEnabled(bool *enabled, dwObjectDetectorHandle_t obj)
Returns a boolean indicating whether object depth output is enabled.
DW_API_PUBLIC dwStatus dwObjectDetector_setEnableFuseObjects(bool enable, dwObjectDetectorHandle_t obj)
Enables or disables objectFusing.
uint32_t maxNumImages
Maximum number of images (cannot be larger than DW_DETECTOR_MAX_IMAGES). Default is 1...
DW_API_PUBLIC dwStatus dwObjectDetector_isFuseObjectsEnabled(bool *enabled, dwObjectDetectorHandle_t obj)
Returns a boolean indicating whether object fusing is enabled.
struct dwObjectDetectorObject * dwObjectDetectorHandle_t
Handle to an object detector.
NVIDIA DriveWorks API: AutoNet Module
NVIDIA DriveWorks API: Core Methods
struct dwDriveNetObject * dwDriveNetHandle_t
Handle to a DriveNet object.
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
bool enableBoundingBoxClipping
If enableBoundingBoxClipping is set to true, the bounding boxes are clipped to the image edges...
#define DW_OBJECT_DETECTOR_MAX_IMAGES
Maximum number of images the detector can process at a time.
DW_API_PUBLIC dwStatus dwObjectDetector_setROI(uint32_t imageIdx, const dwRect *ROI, const dwTransformation2f *outputToObject, dwObjectDetectorHandle_t obj)
Sets the region of interest for an image at given index, and the 2D transformation from the image coo...
NVIDIA DriveWorks API: DNN Methods
dwStatus
Status definition.
DW_API_PUBLIC dwStatus dwObjectDetector_release(dwObjectDetectorHandle_t obj)
Releases the ObjectDetector module.
DW_API_PUBLIC dwStatus dwObjectDetector_detectObjects(dwObjectArray *detections, const dwImageCUDA *image, dwObjectDetectorHandle_t obj)
Detects objects from the given input image.
DW_API_PUBLIC dwStatus dwObjectDetector_getCoverageThreshold(float32_t *covThreshold, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
Get coverage threshold for a given class.
NVIDIA DriveWorks API: Data Conditioner Methods
DW_API_PUBLIC dwStatus dwObjectDetector_detectObjectsAutoNet(dwObjectArray *detections, dwAutoNetOutputHandle_t input, dwObjectDetectorHandle_t obj)
Detects objects from the given DNN inference output.
#define DW_DEPRECATED(msg)
DW_API_PUBLIC dwStatus dwObjectDetector_setOutputMask(const uint8_t *mask, uint32_t maskWidth, uint32_t maskHeight, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
Set output mask.
DW_API_PUBLIC dwStatus dwObjectDetector_initializeFromDriveNet(dwObjectDetectorHandle_t *obj, const dwObjectDetectorParams *detectorParams, dwDriveNetHandle_t drivenet, dwContextHandle_t ctx)
Initializes ObjectDetector module with a DriveNet module.
Homogeneous array of structs.
NVIDIA DriveWorks API: DriveNet Module
DW_API_PUBLIC dwStatus dwObjectDetector_clearOutputMask(dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
Clears output mask.
DW_API_PUBLIC dwStatus dwObjectDetector_isDistanceEnabled(bool *enabled, dwObjectDetectorHandle_t obj)
Returns a boolean indicating whether DNN distance output is enabled.
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwObjectDetector_isObjectUrgencyEnabled(bool *enabled, dwObjectDetectorHandle_t obj)
Returns a boolean indicating whether DNN urgency output is enabled.
DW_API_PUBLIC dwStatus dwObjectDetector_reset(dwObjectDetectorHandle_t obj)
Resets ObjectDetector.
NVIDIA DriveWorks API: World Module
DW_API_PUBLIC dwStatus dwObjectDetector_getOutputMaskDimensions(uint32_t *width, uint32_t *height, dwObjectDetectorHandle_t obj)
Returns output mask dimensions.
DW_API_PUBLIC dwStatus dwObjectDetector_initDefaultParams(dwObjectDetectorParams *detectorParams)
Initializes ObjectDetector parameters with default values.
struct dwAutoNetObject * dwAutoNetHandle_t
Handle to a AutoNet object.
struct dwAutoNetOutputObject * dwAutoNetOutputHandle_t
Handle to a AutoNet output object.
uint32_t sensorId
camera sensor id of the camera the detector runs on
Object detector configuration parameters.
bool enableFuseObjects
If enableFuseObjects is set to true, all the objects proposals coming from all the images are treated...
DW_API_PUBLIC dwStatus dwObjectDetector_getROI(dwRect *ROI, dwTransformation2f *outputToObject, uint32_t imageIdx, dwObjectDetectorHandle_t obj)
Returns the region of interest and the 2D transformation from the image coordinate system to object c...
dwObjectClass
Object classes known to DriveWorks.
DW_API_PUBLIC dwStatus dwObjectDetector_getCUDAStream(cudaStream_t *stream, dwObjectDetectorHandle_t obj)
Gets the CUDA stream used.