DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

ObjectDetector.h File Reference

Detailed Description

NVIDIA DriveWorks API: ObjectDetector Methods

Description: This file defines ObjectDetector methods.

Definition in file ObjectDetector.h.

Go to the source code of this file.

Data Structures

struct  dwObjectDetectorParams
 Object detector configuration parameters. More...
 

Macros

#define DW_OBJECT_DETECTOR_MAX_IMAGES   2
 Maximum number of images the detector can process at a time. More...
 

Typedefs

typedef struct dwObjectDetectorObject * dwObjectDetectorHandle_t
 Handle to an object detector. More...
 

Enumerations

enum  dwObjectDetectorOutputType {
  DW_OBJECT_DETECTOR_OUTPUT_TYPE_PROPOSAL,
  DW_OBJECT_DETECTOR_OUTPUT_TYPE_DETECTION
}
 The type of the detector output. More...
 

Functions

DW_API_PUBLIC dwStatus dwObjectDetector_clearOutputMask (dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
 Clears output mask. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_detectObjects (dwObjectArray *detections, const dwImageCUDA *image, dwObjectDetectorHandle_t obj)
 Detects objects from the given input image. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_detectObjectsAutoNet (dwObjectArray *detections, dwAutoNetOutputHandle_t input, dwObjectDetectorHandle_t obj)
 Detects objects from the given DNN inference output. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_getCoverageThreshold (float32_t *covThreshold, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
 Get coverage threshold for a given class. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_getCUDAStream (cudaStream_t *stream, dwObjectDetectorHandle_t obj)
 Gets the CUDA stream used. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_getOutputMaskDimensions (uint32_t *width, uint32_t *height, dwObjectDetectorHandle_t obj)
 Returns output mask dimensions. More...
 
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 coordinate system at given index. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_initDefaultParams (dwObjectDetectorParams *detectorParams)
 Initializes ObjectDetector parameters with default values. More...
 
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. More...
 
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. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_isDistanceEnabled (bool *enabled, dwObjectDetectorHandle_t obj)
 Returns a boolean indicating whether DNN distance output is enabled. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_isFuseObjectsEnabled (bool *enabled, dwObjectDetectorHandle_t obj)
 Returns a boolean indicating whether object fusing is enabled. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_isObjectDepthEnabled (bool *enabled, dwObjectDetectorHandle_t obj)
 Returns a boolean indicating whether object depth output is enabled. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_isObjectUrgencyEnabled (bool *enabled, dwObjectDetectorHandle_t obj)
 Returns a boolean indicating whether DNN urgency output is enabled. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_release (dwObjectDetectorHandle_t obj)
 Releases the ObjectDetector module. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_reset (dwObjectDetectorHandle_t obj)
 Resets ObjectDetector. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_setCoverageThreshold (float32_t covThreshold, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
 Set coverage threshold for a given class. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_setCUDAStream (cudaStream_t stream, dwObjectDetectorHandle_t obj)
 Sets the CUDA stream used. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_setEnableFuseObjects (bool enable, dwObjectDetectorHandle_t obj)
 Enables or disables objectFusing. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_setOutputMask (const uint8_t *mask, uint32_t maskWidth, uint32_t maskHeight, dwObjectClass objectClass, dwObjectDetectorHandle_t obj)
 Set output mask. More...
 
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 coordinate system to object coordinate system. More...