Defines LightSourceDetector module for light source detection.
- Note
- SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.
◆ dwLightSourceDetectorStage
Enumerator |
---|
DW_LSP_DETECTOR_STAGE_GPU_PREPROCESS | Input image is preprocessed on GPU side with certain predefined transformations in order to have the right properties required by DNN inference.
|
DW_LSP_DETECTOR_STAGE_GPU_INFERENCE | DNN inference is run on prepared image.
|
DW_LSP_DETECTOR_STAGE_GPU_POSTPROCESS | Async GPU post-processing is run after inference.
|
DW_LSP_DETECTOR_STAGE_CPU_POSTPROCESS | After inference CPU runs post processing.
|
Definition at line 63 of file LspDetector_processPipeline.h.
◆ dwLightSourceDetector_bindInput()
Binds the input images to the detector.
- Parameters
-
[in] | imageRGB | Pointer to RGB image where the detector is to be applied. |
[in] | imageBayer | Pointer to Bayer image where we apply linear HDR threshold. |
[in] | obj | Specifies the LspDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindInputRawImage()
Binds the input raw image to the detector.
- Parameters
-
[in] | imageBayer | Pointer to Bayer image where we apply linear HDR threshold. |
[in] | obj | Specifies the LspDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindInputTensor()
Binds the network inference output tensor.
- Parameters
-
[in] | netTensor | network detection tensor |
[in] | obj | Specifies the ObjectDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindOutputAutoBeamStatus()
Bind the ouput 0 (auto beam status) of the detector to object.
- Parameters
-
[in,out] | output | Pointer to an object output structure. |
[in] | obj | Specifies the LightSourceDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindOutputDetectorMask()
Bind the output 1 (matrix beam detection mask) of the detector to object.
- Parameters
-
[in,out] | output | Pointer to an object output structure. |
[in] | obj | Specifies the LightSourceDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindOutputDetectorMaskImage()
Bind the output 2 (matrix beam detection mask image) of the detector to object.
- Parameters
-
[in,out] | output | pointer of the structure that receives the mask. |
[in] | obj | Specifies the LightSourceDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_bindOutputRawDetectorMaskImage()
Bind the output 3 (matrix beam raw detection mask image) of the detector to object.
- Parameters
-
[in,out] | output | Handle of the image that receives the raw mask. |
[in] | obj | Specifies the LightSourceDetector handle. |
- Returns
- DW_SUCCESS, DW_INVALID_HANDLE, DW_BAD_CAST, DW_INVALID_ARGUMENT
◆ dwLightSourceDetector_process()
Perform object detection stages.
Inputs and outputs must be bound before this call.
- Parameters
-
[in] | stage | Processing stage to run. |
[in] | obj | Specifies the LightSourceDetector handle. |
- Returns
- DW_SUCCESS operation completed successfully DW_INVALID_ARGUMENT one of the parameters are invalid (nullptr or null handle)