46 #ifndef DW_OBJECT_DETECTOR_H__ 47 #define DW_OBJECT_DETECTOR_H__ 61 #define DW_OBJECT_DETECTOR_MAX_IMAGES 16 229 const dwTransformation2D *outputToObject, dwObjectDetectorHandle_t obj);
247 dwObjectDetectorHandle_t obj);
270 uint32_t numImages, dwObjectDetectorHandle_t obj);
299 uint32_t classIdx, dwObjectDetectorHandle_t obj);
351 dwObjectDetectorHandle_t obj);
362 dwObjectDetectorHandle_t obj);
368 #endif // DW_OBJECT_DETECTOR_H__ dwBool enableBoundingBoxClipping
If enableBoundingBoxClipping is set to DW_TRUE, the bounding boxes are clipped to the image edges...
float float32_t
Specifies POD types.
DW_API_PUBLIC dwStatus dwObjectDetector_setCUDAStream(cudaStream_t stream, dwObjectDetectorHandle_t obj)
Sets the CUDA stream used.
uint32_t maxNumImages
Maximum number of images (cannot be larger than DW_DETECTOR_MAX_IMAGES). Default is 1...
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 coo...
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.
dwBool enable2_5D
Whether the network can predict object orientation.
const char * horizontalVisBlobName
Name of the horizontal visibility layer. Default is empty string.
struct dwObjectDetectorObject * dwObjectDetectorHandle_t
Handle to an object detector.
DW_API_PUBLIC dwStatus dwObjectDetector_initDefaultParams(dwObjectDetectorDNNParams *dnnParams, dwObjectDetectorParams *detectorParams)
Initializes ObjectDetector parameters with default values.
NVIDIA DriveWorks API: Core Methods
struct dwDriveNetObject * dwDriveNetHandle_t
Handle to a DriveNet object.
DW_API_PUBLIC dwStatus dwObjectDetector_inferDeviceAsync(const dwImageCUDA *const *imageArray, uint32_t numImages, dwObjectDetectorHandle_t obj)
Runs inference using the provided DNN model.
#define DW_OBJECT_DETECTOR_MAX_IMAGES
Maximum number of images to run detector on.
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 ...
DW_API_PUBLIC dwStatus dwObjectDetector_release(dwObjectDetectorHandle_t *obj)
Releases the ObjectDetector module.
NVIDIA DriveWorks API: DNN Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
const char * orientationYawBlobName
Name of the orientation yaw layer. Default is empty string.
uint32_t maxProposalsPerClass
Maximum number of RAW detections directly obtained from DNN. Default is 100.
NVIDIA DriveWorks API: Data Conditioner Methods
DW_API_PUBLIC dwStatus dwObjectDetector_isFuseObjectsEnabled(dwBool *enabled, dwObjectDetectorHandle_t obj)
Returns a boolean indicating whether object fusing is enabled.
DW_API_PUBLIC dwStatus dwObjectDetector_getCoverageThreshold(float32_t *covThreshold, uint32_t classIdx, dwObjectDetectorHandle_t obj)
Get coverage threshold for a given class.
DW_API_PUBLIC dwStatus dwObjectDetector_setEnableFuseObjects(dwBool enable, dwObjectDetectorHandle_t obj)
Enables or disables objectFusing.
float32_t boxScaleY1
Scale coefficient for Y coordinates of upper-left corner of the RAW bounding box from DNN output...
DW_API_PUBLIC dwStatus dwObjectDetector_setCoverageThreshold(float32_t covThreshold, uint32_t classIdx, dwObjectDetectorHandle_t obj)
Set coverage threshold for a given class.
dwBool enableFuseObjects
If enableFuseObjects is set to DW_TRUE, all the objects proposals coming from all the images are trea...
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 c...
const char * bottomVisBlobName
Name of the bottom visibility layer. Default is empty string.
NVIDIA DriveWorks API: DriveNet Module
struct dwDNNObject * dwDNNHandle_t
Handles representing Deep Neural Network interface.
float32_t boxScaleX1
Scale coefficient for X coordinate of upper-left corner of the RAW bounding box from DNN output...
struct dwContextObject * dwContextHandle_t
Context handle.
DW_API_PUBLIC dwStatus dwObjectDetector_reset(dwObjectDetectorHandle_t obj)
Resets ObjectDetector.
NVIDIA DriveWorks API: Object Methods
dwDataConditionerParams dataConditionerParams
DataConditioner parameters.
float32_t boxScaleX2
Scale coefficient for X coordinate of lower-right corner of the RAW bounding box from DNN output...
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.
#define DW_OBJECT_MAX_CLASSES
Maximum number of classes that a network can detect.
const char * boundingBoxBlobName
Name of the bounding box layer. Default is empty string.
float32_t boxScaleY2
Scale coefficient for Y coordinates of lower-right corner of the RAW bounding box from DNN output...
DW_API_PUBLIC dwStatus dwObjectDetector_getCUDAStream(cudaStream_t *stream, dwObjectDetectorHandle_t obj)
Gets the CUDA stream used.
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.
const char * coverageBlobName
Name of the coverage layer. Default is empty string.