Provides vehicle headlight reactor functionality.
- Note
- SW Release Applicability: These APIs are available in NVIDIA DRIVE Software releases.
Headlight Controller is a module to automatically guide the car's headlight control status. Instead of using an extra sensor, this module is based camera input signals. The basic idea is to provide headlight control signals according to environment ambient intensity.
◆ dwHeadlightControllerHandle_t
◆ dwHeadlightController_computeControlLevel()
Get control level from headlight controller.
Control level is an indicator to guide whether to turn on/off the headlight of the car. For headlight without intensity control, threshold value 0.5 should be used for on/off signal. For headlight with intensity control, the value [0.5, 1.0] could guide the setting of intensity. For example, linearly mapping this range to your headlight electronic output.
- Parameters
-
[out] | level | A pointer to a float number.
Which will gain value between 0 and 1. Level value with 0.5 or bigger should be treated as the turn on signal.
For the light headware with intensity control, could use the linear range from 0.5 to 1 to mapping their output instensity
|
[in] | img | a general image handle from camera |
[in] | obj | ctx Specify the handle to headlightController |
- Returns
- DW_INVALID_ARGUMENT - if provided frame or handle is invalid.
DW_SUCCESS
◆ dwHeadlightController_initialize()
Initializes the HeadlightController module.
- Parameters
-
[out] | obj | A pointer to the headlightController handle for the created module. |
[in] | camType | Specify the source camera type. |
[in] | ctx | Specify the handle to the runtime context under which the controller module will be created. |
- Returns
- DW_NOT_SUPPORTED - if provided camera not supported
DW_INVALID_ARGUMENT - if provided arguments combination is invalid.
DW_SUCCESS
- Note
- At this moment only DW_CAMERA_GMSL_AR0231 camera is supported.
◆ dwHeadlightController_release()
Release the headlight controller object.
- Parameters
-
[in] | obj | The headlight controller object handle. |
- Returns
- DW_INVALID_ARGUMENT - if provided handle is invalid.
DW_SUCCESS
◆ dwHeadlightController_reset()
reset the headlight controller, clear any related history and status
- Parameters
-
[in] | obj | The headlight controller object you want to reset. |
- Returns
- DW_INVALID_ARGUMENT - if provided handle is invalid.
DW_SUCCESS