48 #ifndef DW_LIGHTSOURCENET_DETECTOR_H_ 49 #define DW_LIGHTSOURCENET_DETECTOR_H_ 188 dwLightSourceDetectorHandle_t obj);
205 dwLightSourceDetectorHandle_t obj);
259 #endif // DW_LIGHTSOURCENET_DETECTOR_H_ float float32_t
Specifies POD types.
NVIDIA DriveWorks API: LightSourceNet Module
uint8_t otherLightMask[DW_LIGHTSOURCENET_DNN_OUTPUT_HEIGHT][DW_LIGHTSOURCENET_DNN_OUTPUT_WIDTH]
#define DW_LIGHTSOURCENET_DNN_OUTPUT_HEIGHT
DW_API_PUBLIC dwStatus dwLightSourceDetector_initDefaultParams(dwLightSourceDetectorParams *detectorParams)
Initializes LightSourceDetector parameters with default values.
struct dwLightSourceNetObject * dwLightSourceNetHandle_t
Handle to a LightSourceNet object.
Car (or other road user with active light)
#define DW_LIGHTSOURCENET_DNN_OUTPUT_WIDTH
DNN raw output 2D size.
NVIDIA DriveWorks API: AutoNet Module
uint32_t glareThreshold
Glare detection threshold (in bayer pixel value)
NVIDIA DriveWorks API: Core Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
DW_API_PUBLIC dwStatus dwLightSourceDetector_processLightSourcePipeline(dwLightSourceDetectorAutoBeamStatus *output, const dwImageCUDA *imgRGB, const dwImageCUDA *imgBayer, dwLightSourceDetectorHandle_t obj)
Provided input images, execute Light Source Perception pipeline, returning output immediately...
DW_API_PUBLIC dwStatus dwLightSourceDetector_setCUDAStream(cudaStream_t stream, dwLightSourceDetectorHandle_t obj)
Sets the CUDA stream used.
DW_API_PUBLIC dwStatus dwLightSourceDetector_getCUDAStream(cudaStream_t *stream, dwLightSourceDetectorHandle_t obj)
Gets the CUDA stream used.
NVIDIA DriveWorks API: DNN Methods
dwStatus
Status definition.
NVIDIA DriveWorks API: Data Conditioner Methods
uint8_t carMask[DW_LIGHTSOURCENET_DNN_OUTPUT_HEIGHT][DW_LIGHTSOURCENET_DNN_OUTPUT_WIDTH]
dwRect ROI
Region of interest for each image at the corresponding index.
DW_API_PUBLIC dwStatus dwLightSourceDetector_initialize(dwLightSourceDetectorHandle_t *obj, dwLightSourceNetHandle_t lspnet, const dwLightSourceDetectorParams *detectorParams, dwContextHandle_t ctx)
Initializes LightSourceDetector module with a LightSourceNet module.
DW_API_PUBLIC dwStatus dwLightSourceDetector_release(dwLightSourceDetectorHandle_t obj)
Releases the LightSourceDetector module.
DW_API_PUBLIC dwStatus dwLightSourceDetector_reset(dwLightSourceDetectorHandle_t obj)
Resets the LightSourceDetector module.
DW_API_PUBLIC dwStatus dwLightSourceDetector_initializeFromAutoNet(dwLightSourceDetectorHandle_t *obj, dwAutoNetHandle_t autonet, const dwLightSourceDetectorParams *detectorParams, dwContextHandle_t ctx)
Initializes LightSourceDetector module with a LightSourceNet module.
struct dwContextObject * dwContextHandle_t
Context handle.
struct dwAutoNetObject * dwAutoNetHandle_t
Handle to a AutoNet object.
uint8_t streetLightMask[DW_LIGHTSOURCENET_DNN_OUTPUT_HEIGHT][DW_LIGHTSOURCENET_DNN_OUTPUT_WIDTH]
struct dwAutoNetOutputObject * dwAutoNetOutputHandle_t
Handle to a AutoNet output object.
dwStatus dwLightSourceDetector_detectAutoNet(dwLightSourceDetectorAutoBeamStatus *beamStatus, dwLightSourceDetectorMask *mask, const dwImageCUDA *imgBayer, dwAutoNetOutputHandle_t netOutput, dwLightSourceDetectorHandle_t obj)
Very simple API call to do inference on a frame.
dwLightSourceDetectorClass
struct dwLightSourceDetectorObject * dwLightSourceDetectorHandle_t
Handle to an object detector.
bool flag
High beam ON/OFF binary flag.