Detect regions in the view which are blocked.
- Note
- SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.
◆ dwBlindnessDetectionOutput
struct dwBlindnessDetectionOutput |
◆ dwBlindnessDetectorParams
struct dwBlindnessDetectorParams |
◆ DW_CLEARSIGHTNET_DETECTOR_MAX_IMAGES
#define DW_CLEARSIGHTNET_DETECTOR_MAX_IMAGES 16 |
◆ DW_CLEARSIGHTNET_NUM_MAX_REGIONS
#define DW_CLEARSIGHTNET_NUM_MAX_REGIONS 8 |
◆ DW_CLEARSIGHTNET_NUM_OUTPUT_CHANNELS
#define DW_CLEARSIGHTNET_NUM_OUTPUT_CHANNELS 3 |
◆ dwBlindnessDetectorHandle_t
◆ dwBlindnessDetector_detect()
Runs asynchronous inference using the provided DNN model.
The inference pipeline is as follows:
- DataPreparation: Input images are prepared by scaling, padding and other transformations set in dataConditionerParams at initialization time in order to have the right properties required by the DNN. If the given DNN model expects batched input, the given images are divided into batches, where each batch has the expected batch size.
- Inference: Inference is run on the prepared image in an asynchronous fashion. This means that an inference call can be queued using
dwBlindnessDetector_detect()
and then other computation can be performed and dwBlindnessDetector_getOutput()
, whenever called, will automatically wait for inference to finish before returning the output.
- Parameters
-
[in] | inputImage | Image where the detector is to be applied. |
[in] | handle | Specifies the BlindnessDetector handle. |
- Returns
- DW_SUCCESS
DW_INVALID_HANDLE -If the given context handle is invalid,i.e. null or of wrong type
DW_BAD_CAST
DW_INVALID_ARGUMENT
- Deprecated:
- Will be removed. please consider using BlindnessDetector_processPipeline apis
dwBlindnessDetector_bindInput()
, dwBlindnessDetector_bindOutput()
, dwBlindnessDetector_process() or dwBlindnessDetector_processDLA()
◆ dwBlindnessDetector_getCUDAStream()
Gets CUDA stream used by the Blindness detection.
- Parameters
-
[out] | stream | The CUDA stream currently used. |
[in] | handle | A handle to the BlindnessDetector module. |
- Returns
- DW_INVALID_HANDLE - If the given context handle is invalid,i.e. null or of wrong type
DW_SUCCESS
◆ dwBlindnessDetector_getOutput()
◆ dwBlindnessDetector_initDefaultParams()
Initializes default parameters for Blindness detector module.
- Parameters
-
[out] | params | BlindnessDetector parameters. |
- Returns
- DW_SUCCESS, DW_INVALID_ARGUMENT
- Note
- Default precision depends on the current GPU.
◆ dwBlindnessDetector_initialize()
Initializes a Blindness detector module.
- Parameters
-
[out] | handle | A pointer to the Blindness detection algorithm. |
[in] | params | Struct encoding config parameters. |
[in] | ctx | Specifies the handler to the context to create BlindnessNet. |
- Returns
- DW_INVALID_ARGUMENT, DW_SUCCESS
◆ dwBlindnessDetector_release()
Releases the Blindness detector module.
- Parameters
-
[in] | handle | The object handle to release. |
- Returns
- DW_INVALID_HANDLE - If the given context handle is invalid,i.e. null or of wrong type
DW_BAD_CAST - If cannot cast the given handle to the expected type.
DW_SUCCESS
- Note
- This method renders the handle unusable.
◆ dwBlindnessDetector_reset()
Resets the Blindness detector module.
- Parameters
-
[in] | handle | Specifies the detector to reset. |
- Returns
- DW_INVALID_HANDLE - If the given context handle is invalid, i.e. null or of wrong type
DW_BAD_CAST - If cannot cast the given handle to the expected type.
DW_SUCCESS
◆ dwBlindnessDetector_setCUDAStream()
Sets the CUDA stream for CUDA related operations.
- Note
- The ownership of the stream remains by the callee.
- Parameters
-
[in] | stream | The CUDA stream to be used. Default is the one passed during initialization. |
[in] | handle | A handle to the BlindnessDetector module for which to set CUDA stream. |
- Returns
- DW_INVALID_HANDLE - If the given context handle is invalid,i.e. null or of wrong type
DW_SUCCESS