DriveWorks SDK Reference
3.0.4260 Release
For Test and Development only

BlindnessDetector Interface

Detailed Description

Defines blindness detector process pipeline methods based on BlindnessDetector and ClearSightNet.

Note
SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.

Enumerations

enum  dwBlindnessDetectorDLAStage {
  DW_BLINDNESS_DETECTOR_DLA_STAGE_GPU_ASYNC_PREPROCESSING = 0,
  DW_BLINDNESS_DETECTOR_DLA_STAGE_DLA_ASYNC_INFERENCE = 1,
  DW_BLINDNESS_DETECTOR_DLA_STAGE_GPU_ASYNC_INTERPRET_DETECTIONS = 2,
  DW_BLINDNESS_DETECTOR_DLA_STAGE_CPU_POSTPROCESSING = 3,
  DW_BLINDNESS_DETECTOR_DLA_STAGE_COUNT = 4
}
 Defines the DLA processing stages of a blindness detector. More...
 
enum  dwBlindnessDetectorStage {
  DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_PREPROCESSING = 0,
  DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_INFERENCE = 1,
  DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_INTERPRET_DETECTIONS = 2,
  DW_BLINDNESS_DETECTOR_STAGE_CPU_POSTPROCESSING = 3,
  DW_BLINDNESS_DETECTOR_STAGE_COUNT = 4
}
 Defines the GPU processing stages of a blindness detector. More...
 

Functions

DW_API_PUBLIC dwStatus dwBlindnessDetector_bindInput (const dwImageCUDA *const *inputImages, uint32_t numImages, dwBlindnessDetectorHandle_t handle)
 This method binds the input to the detector as a list of images. More...
 
DW_API_PUBLIC dwStatus dwBlindnessDetector_bindOutput (dwBlindnessDetectionOutput *detection, uint32_t frameIdx, dwBlindnessDetectorHandle_t handle)
 This method binds the ouput of the blindness detector. More...
 
DW_API_PUBLIC dwStatus dwBlindnessDetector_process (dwBlindnessDetectorStage stage, dwBlindnessDetectorHandle_t handle)
 Processes the input frame according to the stage assigned in the GPU pipeline. More...
 
DW_API_PUBLIC dwStatus dwBlindnessDetector_processDLA (dwBlindnessDetectorDLAStage stage, dwBlindnessDetectorHandle_t handle)
 Processes the input frame according to the stage assigned in the DLA pipeline. More...
 

Enumeration Type Documentation

◆ dwBlindnessDetectorDLAStage

Defines the DLA processing stages of a blindness detector.

Enumerator
DW_BLINDNESS_DETECTOR_DLA_STAGE_GPU_ASYNC_PREPROCESSING 
DW_BLINDNESS_DETECTOR_DLA_STAGE_DLA_ASYNC_INFERENCE 
DW_BLINDNESS_DETECTOR_DLA_STAGE_GPU_ASYNC_INTERPRET_DETECTIONS 
DW_BLINDNESS_DETECTOR_DLA_STAGE_CPU_POSTPROCESSING 
DW_BLINDNESS_DETECTOR_DLA_STAGE_COUNT 

Definition at line 66 of file BlindnessDetector_processPipeline.h.

◆ dwBlindnessDetectorStage

Defines the GPU processing stages of a blindness detector.

Enumerator
DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_PREPROCESSING 
DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_INFERENCE 
DW_BLINDNESS_DETECTOR_STAGE_GPU_ASYNC_INTERPRET_DETECTIONS 
DW_BLINDNESS_DETECTOR_STAGE_CPU_POSTPROCESSING 
DW_BLINDNESS_DETECTOR_STAGE_COUNT 

Definition at line 57 of file BlindnessDetector_processPipeline.h.

Function Documentation

◆ dwBlindnessDetector_bindInput()

DW_API_PUBLIC dwStatus dwBlindnessDetector_bindInput ( const dwImageCUDA *const *  inputImages,
uint32_t  numImages,
dwBlindnessDetectorHandle_t  handle 
)

This method binds the input to the detector as a list of images.

Parameters
[in]inputImagesCUDA frame array to be bound and processed for detection.
[in]numImagesNumber of frames provided in the array.
[in]handleSpecifies the BlindnessDetector handle.
Returns
DW_INVALID_HANDLE - if the given blindness detector handle is invalid.
DW_INVALID_ARGUMENT - if numImages provided in image array more than supported by module.
DW_SUCCESS
Note
Currently module will use first image from image array. This will go away once module start support batching.

◆ dwBlindnessDetector_bindOutput()

DW_API_PUBLIC dwStatus dwBlindnessDetector_bindOutput ( dwBlindnessDetectionOutput detection,
uint32_t  frameIdx,
dwBlindnessDetectorHandle_t  handle 
)

This method binds the ouput of the blindness detector.

Parameters
[in]detectionA user pointer to be bound and filled with detection information.
[in]frameIdxThe frame index corresponds to the detection to be bound.
[in]handleSpecifies the BlindnessDetector handle.
Returns
DW_INVALID_HANDLE - if the given blindness detector handle is invalid.
DW_INVALID_ARGUMENT - if detection provided is nullptr.
DW_SUCCESS

◆ dwBlindnessDetector_process()

DW_API_PUBLIC dwStatus dwBlindnessDetector_process ( dwBlindnessDetectorStage  stage,
dwBlindnessDetectorHandle_t  handle 
)

Processes the input frame according to the stage assigned in the GPU pipeline.

Parameters
[in]stagethe processing stage to be executed.
[in]handleA blindness detector handle.
Returns
DW_INVALID_HANDLE - if the given blindness detector handle is invalid.
DW_NOT_SUPPORTED - if processor type selected in DLA and api called to process GPU stage.
DW_NOT_IMPLEMENTED - if stage provided is either DW_BLINDNESS_DETECTOR_STAGE_COUNT or something else not mentioned GPU stage list.
DW_SUCCESS

◆ dwBlindnessDetector_processDLA()

DW_API_PUBLIC dwStatus dwBlindnessDetector_processDLA ( dwBlindnessDetectorDLAStage  stage,
dwBlindnessDetectorHandle_t  handle 
)

Processes the input frame according to the stage assigned in the DLA pipeline.

Parameters
[in]stagethe processing stage to be executed.
[in]handleA blindness detector handle.
Returns
DW_INVALID_HANDLE - if the given blindness detector handle is invalid.
DW_NOT_SUPPORTED - if processor type selected in GPU and api called to process DLA stage.
DW_NOT_IMPLEMENTED - if stage provided is either DW_BLINDNESS_DETECTOR_DLA_STAGE_COUNT or something else not mentioned DLA stage list.
DW_SUCCESS