DriveWorks SDK Reference

| 0.6.67 Release

Detector.h File Reference

Detailed Description

NVIDIA DriveWorks API: ObjectDetector Methods

Description: This file defines ObjectDetector methods.

Definition in file Detector.h.

Go to the source code of this file.

Data Structures

struct  dwObjectDetectorDNNParams
 
struct  dwObjectDetectorParams
 

Macros

#define DW_OBJECT_DETECTOR_MAX_IMAGES   16
 Maximum number of images to run detector on. More...
 

Typedefs

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

Functions

DW_API_PUBLIC dwStatus dwObjectDetector_getCoverageThreshold (float32_t *covThreshold, uint32_t classIdx, 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_getDetectedObjects (dwObject *objectList, size_t *numObjects, uint32_t imageIdx, uint32_t classIdx, dwObjectDetectorHandle_t obj)
 Returns detected objects for one of the images given to dwObjectDetector_inferDeviceAsync. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_getROI (dwRect *ROI, dwTransformation2D *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_inferDeviceAsync (const dwImageCUDA *const *imageArray, uint32_t numImages, dwObjectDetectorHandle_t obj)
 Runs inference using the provided DNN model. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_initDefaultParams (dwObjectDetectorDNNParams *dnnParams, dwObjectDetectorParams *detectorParams)
 Initializes ObjectDetector parameters with default values. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_initialize (dwObjectDetectorHandle_t *obj, dwContextHandle_t ctx, dwDNNHandle_t dnn, const dwObjectDetectorDNNParams *dnnParams, const dwObjectDetectorParams *detectorParams)
 Initializes ObjectDetector module with a preloaded DNN inference module. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_initializeFromDriveNet (dwObjectDetectorHandle_t *obj, dwContextHandle_t ctx, dwDriveNetHandle_t drivenet, const dwObjectDetectorParams *detectorParams)
 Initializes ObjectDetector module with a DriveNet module. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_interpretHost (uint32_t numImages, dwObjectDetectorHandle_t obj)
 Output of the inference (dwObjectDetector_inferDeviceAsync) is interpreted to get the list of object proposals. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_isFuseObjectsEnabled (dwBool *enabled, dwObjectDetectorHandle_t obj)
 Returns a boolean indicating whether object fusing 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, uint32_t classIdx, 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 (dwBool enable, dwObjectDetectorHandle_t obj)
 Enables or disables objectFusing. More...
 
DW_API_PUBLIC dwStatus dwObjectDetector_setROI (uint32_t imageIdx, const dwRect *ROI, const dwTransformation2D *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...