Light source control method and device of head-up display equipment and electronic equipment
Through the combination of optical sensors and time/weather information, adjusting the brightness of the HUD light source is solved, and the problem of insufficient adaptability to ambient light changes in the prior art is achieved, achieving higher scene adaptability and user experience.
Patent Information
- Application Number
- CN202310761505.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-26
- Publication Date
- 2024-12-27
AI Technical Summary
The existing HUD light source control methods are difficult to adapt to the frequent changes in ambient light intensity in complex driving environments, resulting in poor adaptability in scenes and difficulty in providing clear driving information in environments outside of day and night.
The optical sensor collects ambient light intensity, combines time and weather information, determines the light intensity interval, and adjusts the brightness of the light source according to the brightness curve or adjustment coefficient to adapt to the changes in ambient light and achieves automatic adjustment.
It improves the scene adaptability of HUD light source control, can perceive light intensity changes more finely in complex environments, provide clearer driving information, avoid frequent changes in the brightness of the light source, and improve user experience.
Smart Images

Figure CN119207332A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of vehicle-mounted electronic technology, and in particular to a HUD light source control method, device and electronic equipment. Background Art
[0002] The Heads Up Display (HUD) uses the principle of optical reflection to project and reflect important driving information parallel to the driver's eyes, allowing the driver to see important driving information such as speed and navigation without lowering or turning his head. The display effect of driving information is greatly affected by the surrounding ambient light. To ensure the clear display of driving information, the brightness of the HUD light source needs to be increased in the strong light environment during the day, and reduced at night. Currently, the display brightness is set for daytime and nighttime respectively according to the difference in ambient brightness during the day and night. However, the actual driving environment is complex, and the ambient light intensity may change frequently. This method only distinguishes between daytime and nighttime, and has poor scene adaptability. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a HUD light source control method, device and electronic device, which can adapt to various driving scenarios with changing ambient brightness, thereby improving the scene adaptability of HUD light source control.
[0004] In order to achieve the above objectives, the technical solutions provided by the embodiments of the present disclosure are as follows:
[0005] In a first aspect, the present disclosure provides a light source control method for a head-up display device, comprising:
[0006] Determine a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor;
[0007] Determine a corresponding second light intensity interval according to the time information and the weather information of the current location;
[0008] If the first light intensity interval matches the second light intensity interval, the first brightness is determined according to the first ambient light intensity and the first brightness curve; the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of the relationship between the preset ambient light intensity and the brightness of the light source of the head-up display device;
[0009] If the first light intensity interval does not match the second light intensity interval, determining an adjustment coefficient according to the first light intensity interval and the second light intensity interval, and determining a second brightness according to the adjustment coefficient and the first brightness;
[0010] The light source of the head-up display device is controlled to emit light based on the first brightness or the second brightness.
[0011] As an optional implementation of the embodiment of the present disclosure, before determining the first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor, the method further includes:
[0012] Acquire a first ambient light intensity and a second ambient light intensity collected by the optical sensor, where the second ambient light intensity is at least one ambient light intensity collected before the first ambient light intensity;
[0013] Calculating a light intensity difference between the first ambient light intensity and the second ambient light intensity;
[0014] Determining a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor includes:
[0015] If the light intensity difference is greater than or equal to the preset difference, determining a first light intensity interval corresponding to the first ambient light intensity;
[0016] or,
[0017] If the first ambient light intensity falls within the first light intensity interval, and the ratio between the light intensity difference and the first light intensity interval is greater than or equal to a preset ratio, a first light intensity interval corresponding to the first ambient light intensity is determined.
[0018] As an optional implementation of the embodiment of the present disclosure, controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness includes:
[0019] If the first ambient light intensity is within the target light intensity range of the target state, a first user preference adjustment parameter corresponding to the target state is obtained, a first preference brightness is determined based on the first user preference adjustment parameter and the target brightness, and the light source of the head-up display device is controlled to emit light according to the first preference brightness. The target state includes a night state or a day state, and the target brightness is a first brightness or a second brightness.
[0020] As an optional implementation of the embodiment of the present disclosure, if the first ambient light intensity is within the target light intensity range of the target state, before obtaining the first user preference adjustment parameter corresponding to the target state, the method further includes:
[0021] If the second ambient light intensity is within the first light intensity range of the daytime state, determining a light intensity change state of the first ambient light intensity compared to the second ambient light intensity; if the light intensity change state is a light intensity reduction state, obtaining a target light intensity range of the daytime state, the minimum light intensity of the target light intensity range of the daytime state being less than the minimum light intensity of the first light intensity range;
[0022] or,
[0023] If the second ambient light intensity is in the second light intensity range of the night state, the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined; if the light intensity change state is an increased light intensity state, the target light intensity range of the night state is obtained, and the maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range.
[0024] As an optional implementation of the embodiment of the present disclosure, after controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness, the method further includes:
[0025] Displaying a first brightness level parameter corresponding to the target brightness in the vehicle computer interaction interface, the target brightness being the first brightness or the second brightness;
[0026] In response to a brightness adjustment input from a user, obtaining a second brightness level parameter corresponding to the brightness adjustment input; controlling a light source of a head-up display device to emit light according to a third brightness, where the third brightness is a brightness corresponding to the second brightness level parameter;
[0027] Calculating a second user adjustment preference parameter according to the first brightness level parameter and the second brightness level parameter;
[0028] The second user adjustment preference parameter is stored.
[0029] As an optional implementation of the embodiment of the present disclosure, storing the second user adjustment preference parameter includes:
[0030] If the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the target state, the second user adjustment preference parameter is stored corresponding to the target state;
[0031] The target state includes a night state or a day state.
[0032] As an optional implementation of the embodiment of the present disclosure, the method further includes: acquiring visual data collected by the visual sensor;
[0033] If it is determined according to the visual data that the current working condition is a strong light reflection condition, then the light source color of the head-up display device corresponding to the strong light reflection condition is determined;
[0034] Controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness includes:
[0035] The light source of the head-up display device is controlled to emit light based on the light source color of the head-up display device and the target brightness, and the target brightness is the first brightness or the second brightness.
[0036] In a second aspect, the present disclosure provides a light source control device for a head-up display device, comprising:
[0037] A determination module, configured to determine a first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor; and determine a corresponding second light intensity interval according to time information and weather information of a current location;
[0038] A control module, for determining a first brightness according to a first ambient light intensity and a first brightness curve if a first light intensity interval matches a second light intensity interval; the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of a relationship between a preset ambient light intensity and a light source brightness of a head-up display device; if the first light intensity interval does not match the second light intensity interval, determining an adjustment coefficient according to the first light intensity interval and the second light intensity interval, and determining a second brightness according to the adjustment coefficient and the first brightness; and controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness.
[0039] As an optional implementation of the embodiment of the present disclosure, the determination module, before determining the first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor, is further used to: obtain the first ambient light intensity and the second ambient light intensity collected by the optical sensor, where the second ambient light intensity is at least one ambient light intensity collected before the first ambient light intensity;
[0040] Calculating a light intensity difference between the first ambient light intensity and the second ambient light intensity;
[0041] Determining a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor includes:
[0042] If the light intensity difference is greater than or equal to the preset difference, determining a first light intensity interval corresponding to the first ambient light intensity;
[0043] or,
[0044] If the first ambient light intensity falls within the first light intensity interval, and the ratio between the light intensity difference and the first light intensity interval is greater than or equal to a preset ratio, a first light intensity interval corresponding to the first ambient light intensity is determined.
[0045] As an optional implementation of the embodiment of the present disclosure, the control module controls the light source of the head-up display device to emit light based on the first brightness or the second brightness, and is specifically used to: if the first ambient light intensity is within the target light intensity range of the target state, obtain the first user preference adjustment parameter corresponding to the target state, determine the first preference brightness based on the first user preference adjustment parameter and the target brightness, and control the light source of the head-up display device to emit light according to the first preference brightness, the target state includes a night state or a day state, and the target brightness is the first brightness or the second brightness.
[0046] As an optional implementation of the embodiment of the present disclosure, the control module, before obtaining the first user preference adjustment parameter corresponding to the target state if the first ambient light intensity is within the target light intensity range of the target state, is further used to: if the second ambient light intensity is within the first light intensity range of the daytime state, determine the light intensity change state of the first ambient light intensity compared to the second ambient light intensity; if the light intensity change state is a light intensity reduction state, obtain the target light intensity range of the daytime state, the minimum light intensity of the target light intensity range of the daytime state is less than the minimum light intensity of the first light intensity range;
[0047] or,
[0048] If the second ambient light intensity is in the second light intensity range of the night state, the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined; if the light intensity change state is an increased light intensity state, the target light intensity range of the night state is obtained, and the maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range.
[0049] As an optional implementation of the embodiment of the present disclosure, the control module, after controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness, is further used to: display a first brightness level parameter corresponding to the target brightness in the vehicle-machine interaction interface, the target brightness being the first brightness or the second brightness;
[0050] In response to a brightness adjustment input from a user, obtaining a second brightness level parameter corresponding to the brightness adjustment input; controlling a light source of a head-up display device to emit light according to a third brightness, where the third brightness is a brightness corresponding to the second brightness level parameter;
[0051] Calculating a second user adjustment preference parameter according to the first brightness level parameter and the second brightness level parameter;
[0052] The second user adjustment preference parameter is stored.
[0053] As an optional implementation of the embodiment of the present disclosure, the control module stores the second user adjustment preference parameter, specifically for: if the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the target state, then storing the second user adjustment preference parameter in correspondence with the target state;
[0054] The target state includes a night state or a day state.
[0055] As an optional implementation of the embodiment of the present disclosure, the control module is further used to: obtain visual data collected by the visual sensor;
[0056] If it is determined according to the visual data that the current working condition is a strong light reflection condition, then the light source color of the head-up display device corresponding to the strong light reflection condition is determined;
[0057] The control module controls the light source of the head-up display device to emit light based on the first brightness or the second brightness, and is specifically used to: control the light source of the head-up display device to emit light based on the light source color of the head-up display device and the target brightness, and the target brightness is the first brightness or the second brightness.
[0058] In a third aspect, the present disclosure provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the method for controlling a light source of a head-up display device as described in the first aspect or any one of its optional embodiments is implemented.
[0059] In a fourth aspect, the present disclosure provides a computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the light source control method of the head-up display device as described in the first aspect or any optional embodiment thereof is implemented.
[0060] In a fifth aspect, the present disclosure provides a vehicle, comprising a light source control device for a head-up display device as described in the second aspect or any optional embodiment thereof, or an electronic device as described in the third aspect.
[0061] In a sixth aspect, the present disclosure provides a computer program product, comprising: when the computer program product is run on a computer, the computer implements the light source control method of a head-up display device as described in the first aspect or any optional embodiment thereof.
[0062] Compared with the prior art, the technical solution provided by the embodiments of the present disclosure has the following advantages:
[0063] In order to solve the above problems, the embodiments of the present disclosure provide a light source control method, device, electronic device, storage medium and vehicle for a head-up display device, wherein the method first determines a first light intensity interval corresponding to a first ambient light intensity collected by an optical sensor, and then determines a corresponding second light intensity interval based on time information and weather information at the current location; if the first light intensity interval matches the second light intensity interval, a first brightness is determined based on the first ambient light intensity and a first brightness curve, and the light source of the head-up display device is controlled to emit light based on the first brightness, wherein the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of the relationship between a preset ambient light intensity and the brightness of the light source of the head-up display device; if the first light intensity interval does not match the second light intensity interval, an adjustment coefficient is determined based on the first light intensity interval and the second light intensity interval, and a second brightness is determined based on the adjustment coefficient and the first brightness, and the light source of the head-up display device is controlled to emit light based on the second brightness. It can realize the ambient light intensity perceived by the optical sensor, as well as the ambient light intensity corresponding to the time and weather, and more carefully perceive the changes in ambient light intensity in the scene. It is no longer limited to day and night. It can better adapt to the frequently changing ambient light intensity and automatically adjust the head-up display device light source, thereby improving the scene adaptability of the head-up display device light source control. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0065] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0066] Figure 1 A schematic diagram of the architecture of an electronic device provided by an embodiment of the present disclosure;
[0067] Figure 2 A schematic diagram of a flow chart of a light source control method for a head-up display device provided in an embodiment of the present disclosure;
[0068] Figure 3 A schematic diagram of a brightness curve provided in an embodiment of the present disclosure;
[0069] Figure 4 A schematic diagram of the structure of a light source control device for a head-up display device provided in an embodiment of the present disclosure;
[0070] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0071] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0072] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0073] At present, HUD is affected by the surrounding ambient light when displaying driving information. The ambient light intensity is relatively high during the day, while it is relatively low at night. In order to clearly display driving information, the existing HUD mainly distinguishes whether it is day or night based on the detected ambient light intensity, and displays the corresponding brightness. However, the actual driving environment is complex and is only divided into two situations: day and night. As a result, the display of driving information is difficult to adapt to the more subtle changes in the surrounding environment, and the scene adaptability is not strong.
[0074] In order to solve the above problems, the embodiments of the present disclosure provide a light source control method, device, electronic device, storage medium and vehicle for a head-up display device, wherein the method first determines a first light intensity interval corresponding to a first ambient light intensity collected by an optical sensor, and then determines a corresponding second light intensity interval based on time information and weather information at the current location; if the first light intensity interval matches the second light intensity interval, a first brightness is determined based on the first ambient light intensity and a first brightness curve, and the light source of the head-up display device is controlled to emit light based on the first brightness, wherein the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of the relationship between a preset ambient light intensity and the brightness of the light source of the head-up display device; if the first light intensity interval does not match the second light intensity interval, an adjustment coefficient is determined based on the first light intensity interval and the second light intensity interval, and a second brightness is determined based on the adjustment coefficient and the first brightness, and the light source of the head-up display device is controlled to emit light based on the second brightness. It can realize the ambient light intensity perceived by the optical sensor, as well as the ambient light intensity corresponding to the time and weather, and more carefully perceive the changes in ambient light intensity in the scene. It is no longer limited to day and night. It can better adapt to the changes in ambient light intensity to automatically adjust the head-up display device light source, thereby improving the scene adaptability of the head-up display device light source control.
[0075] The light source control method of the head-up display device provided in the embodiment of the present disclosure can be implemented by a light source control device or an electronic device of the head-up display device, such as Figure 1 As shown, Figure 1A schematic diagram of the architecture of an electronic device provided in an embodiment of the present disclosure. In some embodiments, the electronic device may include: an optical sensor 101, a HUD 102, and a central control entertainment screen 103, wherein the optical sensor 101 is used to collect the intensity of external ambient light; the central control entertainment screen 103 is used to provide an operation entry to the user and feed back the user operation to the HUD 102; the HUD 102 user performs calculations based on external input to control the light source to emit light.
[0076] like Figure 2 As shown, Figure 2 A schematic flow chart of a method for controlling a light source of a head-up display device provided in an embodiment of the present disclosure, the method comprising the following steps S201 to S205:
[0077] S201: Determine a first light intensity interval corresponding to a first ambient light intensity collected by an optical sensor.
[0078] The optical sensor is used to collect the ambient light intensity. The optical sensor module transmits the collected first ambient light intensity to the processing component of the HUD, so that the processing component of the HUD determines the first light intensity interval corresponding to the first ambient light intensity.
[0079] In some embodiments, the light intensity intervals in the embodiments of the present disclosure can be divided into: dusk interval, daytime weak light interval, daytime strong light interval, evening interval, nighttime weak light interval and nighttime strong light interval, and the ambient light intensity involved in each light intensity interval is not the same. The corresponding first light intensity interval is determined from the above light intensity intervals according to the collected first ambient light intensity.
[0080] In some embodiments, before determining the first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor, the first ambient light intensity and the second ambient light intensity collected by the optical sensor are first obtained, and the second ambient light intensity is at least one ambient light intensity collected before the first ambient light intensity; then the light intensity difference between the first ambient light intensity and the second ambient light intensity is calculated; the time interval between the second ambient light intensity and the first ambient light intensity is determined by the working time of the optical sensor. It can be understood that the optical sensor is obtained to collect at least two ambient light intensities that are adjacent in time sequence: the second ambient light intensity and the first ambient light intensity, and the second ambient light intensity is relatively earlier in time sequence, and then the light intensity difference between the first ambient light intensity and the second ambient light intensity is calculated to reflect the change in ambient light intensity during this time interval.
[0081] Furthermore, the disclosed embodiment provides an implementation method, which compares the light intensity difference with a preset difference, which is a preset minimum threshold for determining a change in light intensity. If the light intensity difference is less than the preset difference, it indicates that the second ambient light intensity changes to the first ambient light intensity, and the degree of this light intensity change is small and can be ignored. The setting and judgment of the preset difference makes the sensitivity of the HUD light source within an appropriate range, avoiding frequent changes in the brightness of the HUD light source when the ambient light intensity changes slightly.
[0082] If the light intensity difference is greater than or equal to the preset difference, it means that the degree of change from the second ambient light intensity to the first ambient light intensity is greater than the setting and needs to be paid attention to. Then, the first light intensity interval corresponding to the first ambient light intensity is determined, so that when the ambient light intensity changes significantly, the HUD light source emission control is triggered to realize automatic adjustment of the HUD light source emission to adapt to the change of ambient light intensity.
[0083] The disclosed embodiment also provides another implementation method, after calculating the light intensity difference between the first ambient light intensity and the second ambient light intensity, it is determined whether the first ambient light intensity falls into the first light intensity interval, and whether the ratio between the light intensity difference and the first light intensity interval is greater than or equal to a preset ratio, wherein the preset ratio is a preset minimum ratio threshold indicating a change in ambient light intensity, and exemplarily, the preset ratio corresponding to the twilight interval is 10%, the preset ratio corresponding to the daytime weak light interval is 15%, and the preset ratio corresponding to the daytime strong light interval is 20%. If the ratio between the light intensity difference and the first light intensity interval is less than the preset ratio, it indicates that the degree of change in ambient light in the process from the second ambient light intensity to the first ambient light intensity is small and can be ignored.
[0084] It can be understood that after calculating the light intensity difference between the first ambient light intensity and the second ambient light intensity, it is determined whether the value corresponding to the first ambient light intensity is within the value range corresponding to the first light intensity, and whether the proportion of the light intensity difference in the value range corresponding to the first light intensity is greater than or equal to a preset proportion. If the first ambient light intensity falls into the first light intensity interval, and the ratio between the light intensity difference and the first light intensity interval is greater than or equal to the preset ratio, it means that the ambient light intensity has changed significantly, which can trigger the HUD light source to change the luminous brightness, then the first light intensity interval corresponding to the first ambient light intensity is determined, and the control process of starting the HUD light source to emit light is started.
[0085] In the above embodiment, the actual light intensity of the external environment is measured by an optical sensor to obtain a first light intensity range corresponding to the first ambient light intensity. In addition, when the change in ambient light intensity reaches a certain level, the HUD is triggered to change the brightness of the light source; at the same time, the adverse effects on safe driving caused by frequent adjustments to the brightness of the HUD light source when the ambient light intensity changes slightly are avoided.
[0086] S202: Determine a corresponding second light intensity interval according to the time information and the weather information of the current location.
[0087] In some embodiments, the HUD obtains the time information and weather information of the current location sent by the central control entertainment screen. In the embodiments of the present disclosure, the weather information can be specifically divided into: sunny, cloudy, rainy, snowy, etc.
[0088] In some embodiments, based on the current time information of the HUD and the weather information of the current location of the HUD, the corresponding second light intensity interval is predicted by an algorithm, wherein the algorithm may be an artificial intelligence algorithm, a neural network, a deep learning model, etc., and the present disclosure does not limit this. It is understandable that based on the time information and the weather information of the current location, it is inferred that the current ambient light intensity is in which of the following light intensity intervals: dusk interval, daytime weak light interval, daytime strong light interval, evening interval, night weak light interval, night strong light interval. Then, the first light intensity interval and the second light intensity interval are compared to determine whether the first light intensity interval and the second light intensity interval match.
[0089] The above-mentioned embodiment predicts the light intensity of the HUD surrounding environment by time and weather, thereby expanding the HUD's recognition of ambient light intensity from day and night to specific time and weather. For example, the present disclosure controls the HUD light source to emit different brightness for sunny days and rainy days to better adapt to complex driving environments.
[0090] S203: If the first light intensity interval matches the second light intensity interval, determine a first brightness according to the first ambient light intensity and the first brightness curve.
[0091] The brightness curve is a curve showing the relationship between the preset ambient light intensity and the HUD light source brightness. The first brightness curve is a brightness curve corresponding to the first light intensity interval. For example, Figure 3 As shown, Figure 3 This is a schematic diagram of a brightness curve provided by an embodiment of the present disclosure. The preset ambient light brightness in the figure is divided into multiple light intensity intervals, and each light intensity interval has a corresponding brightness curve. It should be emphasized that Figure 3 The brightness curve is merely an example and is not limited in the present disclosure.
[0092] In some embodiments, if the first light intensity interval and the second light intensity interval match, it means that the ambient light change actually measured by the light sensor is consistent or approximately consistent with the ambient light change predicted by the algorithm. Therefore, the first ambient light intensity is used as a reference standard, and the first brightness corresponding to the first ambient light intensity is determined from the first brightness curve, and the HUD light source is subsequently controlled to emit light according to the first brightness.
[0093] It should be emphasized that the number of second light intensity intervals predicted by the algorithm in the above embodiment may be multiple, and the probability of each second light intensity interval is different. The first light intensity interval matches the second light intensity interval, which can be the same as the second light intensity interval with the highest probability.
[0094] Exemplarily, assuming that the first light intensity interval obtained in step S201 is a daytime strong light interval, the probability that the second light intensity interval predicted in step S202 is a daytime strong light interval is 98%, and the probability that it is a daytime weak light interval is 2%, indicating that the first light intensity interval and the second light intensity interval match, then the first brightness corresponding to the first ambient light intensity is determined from the first brightness curve.
[0095] S204: If the first light intensity interval does not match the second light intensity interval, determine an adjustment coefficient according to the first light intensity interval and the second light intensity interval, and determine a second brightness according to the adjustment coefficient and the first brightness.
[0096] In some embodiments, when the first light intensity interval does not match the second light intensity interval, it means that there may be a deviation between the ambient light change actually measured by the light sensor and the ambient light change predicted by the algorithm, so that the adjustment coefficient is determined according to the difference between the first light intensity interval and the second light intensity interval, and then the first brightness corresponding to the first ambient light intensity is determined from the first brightness curve, and the first brightness is adjusted using the adjustment coefficient to obtain the second brightness, so as to control the HUD light source to emit light according to the second brightness. In this way, the light intensity change perceived by the light sensor is combined with the specific time and weather to determine a more accurate second brightness, and the HUD light source is controlled to emit light based on the second brightness.
[0097] Optionally, the first light intensity interval Q1 and the second light intensity interval Q2 are different, and an adjustment coefficient P is determined according to the formula P=Q1 / Q2, thereby determining a second brightness according to the adjustment coefficient P and the first brightness, and subsequently controlling the HUD light source to emit light according to the second brightness.
[0098] Exemplarily, assuming that the first light intensity interval obtained in step S201 is a daytime strong light interval, the probability that the second light intensity interval predicted in step S202 is a daytime weak light interval is 98%, and the probability that it is a daytime strong light interval is 2%, then it indicates that the first light intensity interval does not match the second light intensity interval, and thus the adjustment coefficient is calculated based on the first light intensity interval (daytime strong light interval) and the second light intensity interval (daytime weak light interval), so as to correct the first brightness by the adjustment coefficient to obtain the second brightness, and then control the HUD light source to emit light according to the second brightness in subsequent steps.
[0099] S205: Control the light source of the head-up display device to emit light based on the first brightness or the second brightness.
[0100] The following will explain two situations respectively:
[0101] In the first case, the HUD light source is controlled to emit light based on the first brightness.
[0102] In some embodiments, if the first light intensity interval matches the second light intensity interval, it means that the actually measured ambient light change is the same as the ambient light change predicted by the algorithm, and the HUD light source is controlled to change to the first brightness for emitting light within a preset time, wherein the preset time is the preset duration of the brightness change, which is usually set to two seconds, so as to smoothly transition to the first brightness for emitting light, so as to avoid discomfort to the user caused by the sudden change of HUD brightness.
[0103] In some embodiments, in the process of controlling the emission of the HUD light source based on the first brightness, it is first determined whether the first ambient light intensity is within the target light intensity range of the target state, the target state includes a night state or a day state. In the process of determining the target light intensity range of the target state, it is first determined whether the first ambient light intensity is within the first light intensity range of the day state or the second light intensity range of the night state. This step is a preliminary and rough judgment of the target state of the first ambient light intensity.
[0104] Among them, the first light intensity range of the daytime state is a pre-set original light intensity range of the daytime state, which includes the minimum light intensity of the daytime state to the maximum light intensity of the daytime state. The first light intensity range may include: all light intensity intervals of the daytime state, for example, the twilight interval of the daytime state, the daytime weak light interval and the daytime strong light interval.
[0105] The second light intensity range of the night state is a pre-set original light intensity range of the night state, which includes the minimum light intensity of the night state to the maximum light intensity of the night state. The second light intensity range includes: all light intensity intervals of the night state, exemplarily, the evening interval of the night state, the night low light interval and the night strong light interval.
[0106] Optionally, it is determined whether the first ambient light intensity is in the twilight interval, the daytime weak light interval, or the daytime strong light interval of the daytime state; or it is determined whether the first ambient light intensity is in the evening interval, the nighttime weak light interval, or the nighttime strong light interval of the nighttime state. It can be understood that when the first ambient light intensity is in any one of the light intensity intervals of the twilight interval, the daytime weak light interval, or the daytime strong light interval, it indicates that the target state corresponding to the first ambient light intensity is the daytime state; when the first ambient light intensity is in any one of the light intensity intervals of the evening interval, the nighttime weak light interval, or the nighttime strong light interval, it indicates that the target state corresponding to the first ambient light intensity is the nighttime state.
[0107] It should be noted that the embodiment of the present disclosure is provided with a hysteresis interval for the target light intensity range of the target state to avoid erroneous judgment that the ambient light has undergone major changes such as day-night switching. If it was previously detected that it was daytime and it is currently detected that it is nighttime, the light intensity range of the daytime state is adjusted first, and the light intensity range of the daytime state is increased according to the hysteresis interval, and the threshold for triggering the day-night switching is reduced to maintain the brightness of the HUD light source for a certain period of time until the day-night switching is detected again based on the adjusted light intensity range; if it was previously detected that it was nighttime and it is currently detected that it is daytime, the light intensity range of the nighttime state is adjusted first, and the light intensity range of the nighttime state is increased according to the hysteresis interval, and the threshold for triggering the day-night switching is increased until the day-night switching is detected again based on the adjusted light brightness.
[0108] In some embodiments, while determining whether the first ambient light intensity is within the first light intensity range of the daytime state, it is determined whether the second ambient light intensity acquired before the first ambient light intensity is within the second light intensity range of the nighttime state; or, while determining whether the first ambient light intensity is within the second light intensity range of the nighttime state, it is determined whether the second ambient light intensity is within the first light intensity range of the daytime state. This determines whether to correct the light intensity range of the daytime state or whether to correct the light intensity range of the nighttime state.
[0109] The following will introduce two situations respectively from the preliminary judgment that the first ambient light intensity is in the first light intensity range of the daytime state and the first ambient light intensity is in the second light intensity range of the nighttime state:
[0110] (1) The first ambient light intensity is within the first light intensity range of the daytime state
[0111] When it is preliminarily determined that the first ambient light intensity is within the first light intensity range of the daytime state, it is determined whether the second ambient light intensity is within the second light intensity range of the nighttime state.
[0112] If the second ambient light intensity is in the second light intensity range of the night state, it means that the change from the second ambient light intensity to the first ambient light intensity may be the switching of the HUD surrounding environment from the night state to the day state, then the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined. If the light intensity conversion state is the light intensity increase state, it means that the first ambient light intensity is greater than the second ambient light intensity, and the light intensity is increasing. To avoid erroneous recognition of the switch from night to day, the embodiment of the present disclosure corrects the light intensity range of the night state. Optionally, the target light intensity range of the night state is obtained. The target light intensity range of the night state is obtained based on the second light intensity range and the hysteresis interval. The maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range of the night state. Correspondingly, the light intensity range of the day state is also adjusted, and the minimum light intensity of the target light intensity range of the day state is greater than the first light intensity range of the day state.
[0113] It is understandable that the target light intensity range of the night state is increased, and the target light intensity range of the day state is correspondingly reduced, and the first ambient light intensity is judged again to determine whether the first ambient light intensity is within the adjusted target light intensity range of the day state. If the first ambient light intensity is not within the target light intensity range of the day state, the first ambient light intensity will not be determined as the day state, thereby avoiding the mistaken determination of the first ambient light intensity in the night state as the day state, and avoiding the misjudgment of the day-night switch.
[0114] In some embodiments, when the first ambient light intensity is within the target light intensity range of the daytime state, it can be determined that the ambient light intensity around the HUD is large, and then the first user preference adjustment parameter corresponding to the daytime state is obtained, wherein the first user preference adjustment parameter corresponding to the daytime state is a parameter pre-set according to the user's preference for the brightness of the HUD light source in the daytime state; then the first preference brightness is determined based on the first user preference adjustment parameter corresponding to the daytime state and the first brightness corresponding to the first ambient light intensity on the first brightness curve, so as to control the HUD light source to emit light according to the first preference brightness, so that the HUD light source emits light more in line with the user's preference.
[0115] In the above embodiment, when the target state is preliminarily determined to be a daytime state based on the first ambient light intensity, whether the first ambient light intensity is in a daytime state is accurately determined again based on the second ambient light intensity collected previously, thereby adjusting the parameters according to the user preference corresponding to the daytime state, and setting the brightness of the HUD light source according to the preference to meet the user's personalized needs.
[0116] (2) The first ambient light intensity is in the second light intensity range of the night state
[0117] When it is preliminarily determined that the first ambient light intensity is within the second light intensity range of the night state, it is determined whether the second ambient light intensity is within the first light intensity range of the day state.
[0118] If the second ambient light intensity is in the first light intensity range of the daytime state, it means that the change from the second ambient light intensity to the first ambient light intensity may be the switching of the HUD surrounding environment from the daytime state to the nighttime state, then the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined; if the light intensity change state is a light intensity reduction state, it means that the first ambient light intensity is less than the second ambient light intensity, and the light intensity is decreasing. To avoid erroneous identification as a day-night switch, the disclosed embodiment corrects the light intensity range of the daytime state. Optionally, the target light intensity range of the daytime state is obtained. The target light intensity range of the daytime state is determined based on the first light intensity range and the hysteresis interval. The hysteresis interval is a pre-set light intensity range for fault tolerance. The minimum light intensity of the target light intensity range of the daytime state is less than the minimum light intensity of the first light intensity range to improve fault tolerance. Correspondingly, the light intensity range of the nighttime state is also adjusted, and the maximum light intensity of the target light intensity range of the nighttime state is less than the second light intensity range of the nighttime state.
[0119] It is understandable that the target light intensity range of the daytime state is increased, and the target light intensity range of the nighttime state is correspondingly decreased, and the first ambient light intensity is judged again to determine whether the first ambient light intensity is within the adjusted target light intensity range of the nighttime state. If the first ambient light intensity is not within the target light intensity range corresponding to the nighttime state, it indicates that the preliminary judgment result is wrong, and the first ambient light intensity will not be determined as the nighttime state in the end, thereby avoiding the mistaken determination of the first ambient light intensity in the daytime state as the nighttime state, and avoiding the misjudgment of the day-night switch.
[0120] In some embodiments, when the first ambient light intensity is within the target light intensity range of the night state, it can be determined that the ambient light intensity around the HUD is small, and then the first user preference adjustment parameter corresponding to the night state is obtained, and the first user preference parameter corresponding to the night state is a parameter pre-set according to the user's preference for the brightness of the HUD light source in the night state; then the first preference brightness is determined based on the first user preference adjustment parameter corresponding to the night state and the first brightness corresponding to the first ambient light intensity on the first brightness curve, and the HUD light source is controlled to emit light according to the first preference brightness, so that the HUD light source emits light more in line with the user's preference.
[0121] In the above embodiment, when the target state is preliminarily determined to be a night state based on the first ambient light intensity, whether the first ambient light intensity is in a night state is accurately determined again according to the second ambient light intensity collected previously, so as to adjust the parameters according to the user preference corresponding to the night state, and set the brightness of the HUD light source according to the preference to meet the user's personalized needs.
[0122] In some embodiments, after the HUD light source is controlled to emit light based on the first brightness, a first brightness level parameter corresponding to the first brightness is displayed in the vehicle-machine interaction interface displayed on the central control entertainment screen, wherein different brightness level parameters correspond to different brightness intervals, for example, the first brightness is in brightness interval A, brightness interval A corresponds to the first brightness level parameter L1, and the first brightness level parameter L1 will be displayed in the vehicle-machine interaction interface; the vehicle-machine interaction interface supports obtaining user input, and when the vehicle-machine interaction interface obtains the user's brightness adjustment input, in response to the user's brightness adjustment input, a second brightness level parameter corresponding to the brightness adjustment input is obtained; the HUD light source is controlled to emit light according to a third brightness corresponding to the second brightness level parameter, so as to control the HUD light source to emit light according to the user's input; further, a second user adjustment preference parameter is calculated according to the first brightness level parameter and the second brightness level parameter, and the calculated second user preference adjustment parameter is stored to memorize the brightness preferred by the user in the daytime / nighttime state, and the HUD light source is subsequently controlled to emit light according to the corrected user preference, thereby improving the user's sense of use;
[0123] In some embodiments, in the process of storing the second user adjusted preference parameters, the third ambient light intensity collected by the optical sensor is obtained. If the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the night state, the second user adjusted preference parameters are stored corresponding to the night state; if the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the day state, the second user preference parameters are stored corresponding to the day state to update the user preference parameters of the user in the day state or the night state.
[0124] In some embodiments, before controlling the HUD light source to emit light based on the first brightness, the disclosed embodiments also obtain visual data collected by the visual sensor, such as obtaining image data of the current road surface captured by the camera, and then judging whether the current condition is in a strong light reflection condition based on the visual data. Among them, the strong reflection condition includes but is not limited to snowy conditions and water accumulation conditions. If it is determined based on the visual data that the current condition is in a strong light reflection condition, the color of the HUD light source corresponding to the strong light reflection condition is determined, so that when the HUD light source is controlled to emit light based on the first brightness, the HUD light source is controlled to emit light based on the HUD light source color and the first brightness to adapt to the strong reflection condition, change the color and brightness of the HUD light source, and improve the display effect of the driving information projected by the HUD, so that the user can see the driving information more clearly, and improve the user's experience.
[0125] In the second case, the HUD light source is controlled to emit light based on the second brightness.
[0126] In some embodiments, if the first light intensity interval does not match the second light intensity interval, it means that there is a deviation between the actually measured ambient light change and the ambient light change predicted by the algorithm, and the HUD light source is controlled to emit light based on the second brightness. The HUD light source can be optionally controlled to emit light at the second brightness within a preset time, thereby smoothly transitioning to the second brightness to avoid discomfort to the user caused by sudden changes in HUD brightness.
[0127] In some embodiments, in the process of controlling the HUD light source to emit light based on the second brightness, it is first determined whether the first ambient light intensity is within the target light intensity range of the target state. In the process of determining the target light intensity range of the target state, it is first determined whether the first ambient light intensity is within the first light intensity range of the daytime state or the second light intensity range of the nighttime state. This step is to roughly determine the target state of the first ambient light intensity. It should be noted that the implementation methods corresponding to the target state, the first light intensity range of the daytime state, and the second light intensity range of the nighttime state are the same as those described above, and the present disclosure will not be repeated here.
[0128] The following will explain the process of controlling the HUD light source to emit light based on the second brightness from two situations: the first light intensity range when the first ambient light intensity is in the daytime state, and the second light intensity range when the first ambient light intensity is in the nighttime state.
[0129] A. The first ambient light intensity is within the first light intensity range of the daytime state
[0130] In some embodiments, when it is preliminarily determined whether the first ambient light intensity is within the first light intensity range of the daytime state, it is determined whether the second ambient light intensity acquired before the first ambient light intensity is within the second light intensity range of the nighttime state. If the first ambient light intensity is within the first light intensity range of the daytime state, and the second ambient light intensity is within the second light intensity range of the nighttime state, it is necessary to redetermine the target state of the first ambient light.
[0131] Optionally, if the second ambient light intensity is in the second light intensity range of the night state, the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined. If the light intensity change state is a light intensity increase state, the target light intensity range of the night state is obtained. The target light intensity range of the night state is obtained based on the second light intensity range and the hysteresis interval. The hysteresis interval is a pre-set light intensity range for fault tolerance. The maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range of the night state. Correspondingly, the light intensity range of the day state is also adjusted, and the minimum light intensity of the target light intensity range of the day state is greater than the first light intensity range of the day state.
[0132] Further, it is determined again whether the first ambient light intensity is in the target light intensity range of the adjusted daytime state. When the first ambient light intensity is in the target light intensity range of the daytime state, it is determined that a day-night switch has occurred from the second ambient light intensity to the first ambient light intensity. Then, according to the first light intensity interval corresponding to the first ambient light intensity, from the first brightness curve corresponding to the first light intensity interval, the first brightness corresponding to the first light intensity interval is determined, and an adjustment coefficient is determined according to the first light intensity interval and the second light intensity interval different therefrom, so as to determine the second brightness according to the adjustment coefficient and the first brightness, and then obtain the first user preference adjustment parameter corresponding to the daytime state, and then determine the second preference brightness based on the first user preference adjustment parameter corresponding to the daytime state and the second brightness, so as to control the HUD light source to emit light according to the second preference brightness.
[0133] In the above embodiment, when the target state is preliminarily determined to be a daytime state based on the first ambient light intensity, whether the first ambient light intensity is in a daytime state is accurately determined again based on the second ambient light intensity collected previously, thereby adjusting the parameters according to the user preference corresponding to the daytime state, and setting the second brightness of the HUD light source according to the preference to meet the user's personalized needs.
[0134] B. The first ambient light intensity is in the second light intensity range of the night state
[0135] In some embodiments, when it is preliminarily determined that the first ambient light intensity is in the second light intensity range of the night state, it is determined whether the second ambient light intensity is in the first light intensity range of the day state. If the first ambient light intensity is in the second light intensity range of the night state, and the second ambient light intensity is in the first light intensity range of the day state, it can be preliminarily determined that a day-night switch has occurred from the second ambient light intensity to the first ambient light intensity. Whether a day-night switch has actually occurred requires a re-accurate determination of the target state of the first ambient light.
[0136] Optionally, if the second ambient light intensity is within the first light intensity range of the daytime state, the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined; if the light intensity change state is a light intensity reduction state, the target light intensity range of the daytime state is obtained, and the target light intensity range of the daytime state is determined based on the first light intensity range and the hysteresis interval. The minimum light intensity of the target light intensity range of the daytime state is less than the minimum light intensity of the first light intensity range to improve fault tolerance. Correspondingly, the light intensity range of the nighttime state is also adjusted, and the maximum light intensity of the target light intensity range of the nighttime state is less than the second light intensity range of the nighttime state.
[0137] Further, based on the adjusted target light intensity range for the night state, it is re-determined whether the first ambient light intensity is in the night state, and optionally, it is determined whether the first ambient light intensity is in the target light intensity range for the night state. When the first ambient light intensity is in the target light intensity range for the night state, based on the first light intensity interval corresponding to the first ambient light intensity, from the first brightness curve corresponding to the first light intensity interval, the first brightness corresponding to the first light intensity interval is determined, and the adjustment coefficient is determined based on the first light intensity interval and the second light intensity interval different therefrom, and then the second brightness is determined based on the adjustment coefficient and the first brightness, and then the first user preference adjustment parameter corresponding to the night state is obtained, and the second preference brightness is determined based on the first user preference adjustment parameter corresponding to the night state and the second brightness, so as to control the HUD light source to emit light according to the second preference brightness.
[0138] In the above embodiment, when the target state is preliminarily determined to be a night state based on the first ambient light intensity, whether the first ambient light intensity is in a night state is accurately determined again according to the second ambient light intensity collected previously, so as to adjust the parameters according to the user preference corresponding to the night state, and set the brightness of the HUD light source according to the preference to meet the user's personalized needs.
[0139] In some embodiments, after the HUD light source is controlled to emit light based on the second brightness, the first brightness level parameter corresponding to the second brightness is displayed in the vehicle-machine interaction interface; in response to the user's brightness adjustment input, the second brightness level parameter corresponding to the brightness adjustment input is obtained; the HUD light source is controlled to emit light according to the third brightness corresponding to the second brightness level parameter, and further, the second user adjustment preference parameter is calculated based on the first brightness level parameter and the second brightness level parameter; and the second user adjustment preference parameter is stored.
[0140] In some embodiments, in the process of storing the second user adjustment preference parameter, the third ambient light intensity collected by the optical sensor is obtained, and if the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the target state, the second user adjustment preference parameter is stored corresponding to the daytime state; if the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the nighttime state, the second user adjustment preference parameter is stored corresponding to the nighttime state;
[0141] In some embodiments, before controlling the HUD light source to emit light based on the first brightness, the disclosed embodiments also obtain visual data collected by the visual sensor, such as obtaining image data of the current road surface captured by the camera, and then judging whether the current condition is in a strong light reflection condition based on the visual data. Among them, the strong reflection condition includes but is not limited to snowy conditions and water accumulation conditions. If it is determined based on the visual data that the current condition is in a strong light reflection condition, the color of the HUD light source corresponding to the strong light reflection condition is determined, so that when the HUD light source is controlled to emit light based on the second brightness, the HUD light source is controlled to emit light based on the HUD light source color and the second brightness to adapt to the strong reflection condition, change the color and brightness of the HUD light source, and improve the display effect of the driving information projected by the HUD, so that the user can see the driving information more clearly, and improve the user's experience.
[0142] In summary, the disclosed embodiment provides a HUD light source control method, which first determines a first light intensity interval corresponding to a first ambient light intensity collected by an optical sensor, and then determines a corresponding second light intensity interval according to time information and weather information at the current location; if the first light intensity interval is the same as the second light intensity interval, the first brightness is determined according to the first ambient light intensity and the first brightness curve, and the HUD light source is controlled to emit light based on the first brightness, wherein the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of the relationship between the preset ambient light intensity and the brightness of the HUD light source; if the first light intensity interval is different from the second light intensity interval, the adjustment coefficient is determined according to the first light intensity interval and the second light intensity interval, and the second brightness is determined according to the adjustment coefficient and the first brightness, and the HUD light source is controlled to emit light based on the second brightness. Based on the ambient light intensity perceived by the optical sensor, and the ambient light intensity corresponding to time and weather, the change of ambient light intensity in the scene is more meticulously perceived, and it is no longer limited to the two situations of day and night, and it can better adapt to the change of ambient light intensity to automatically adjust the HUD light source to emit light, thereby improving the scene adaptability of HUD light source control.
[0143] like Figure 4 As shown, Figure 4 A schematic diagram of a light source control device for a head-up display device provided in an embodiment of the present disclosure, the device comprising:
[0144] The determination module 401 is used to determine a first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor; and determine a corresponding second light intensity interval according to the time information and the weather information of the current location;
[0145] The control module 402 is used to determine the first brightness according to the first ambient light intensity and the first brightness curve if the first light intensity interval matches the second light intensity interval; the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of the relationship between the preset ambient light intensity and the brightness of the light source of the head-up display device; if the first light intensity interval does not match the second light intensity interval, determine the adjustment coefficient according to the first light intensity interval and the second light intensity interval, and determine the second brightness according to the adjustment coefficient and the first brightness; and control the light source of the head-up display device to emit light based on the first brightness or the second brightness.
[0146] As an optional implementation of the embodiment of the present disclosure, the determination module 401, before determining the first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor, is further used to: obtain the first ambient light intensity and the second ambient light intensity collected by the optical sensor, where the second ambient light intensity is at least one ambient light intensity collected before the first ambient light intensity;
[0147] Calculating a light intensity difference between the first ambient light intensity and the second ambient light intensity;
[0148] Determining a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor includes:
[0149] If the light intensity difference is greater than or equal to the preset difference, determining a first light intensity interval corresponding to the first ambient light intensity;
[0150] or,
[0151] If the first ambient light intensity falls within the first light intensity interval, and the ratio between the light intensity difference and the first light intensity interval is greater than or equal to a preset ratio, a first light intensity interval corresponding to the first ambient light intensity is determined.
[0152] As an optional implementation of the embodiment of the present disclosure, the control module 402 controls the light source of the head-up display device to emit light based on the first brightness or the second brightness, and is specifically used to: if the first ambient light intensity is within the target light intensity range of the target state, obtain the first user preference adjustment parameter corresponding to the target state, determine the first preference brightness based on the first user preference adjustment parameter and the target brightness, and control the light source of the head-up display device to emit light according to the first preference brightness, the target state includes a night state or a day state, and the target brightness is the first brightness or the second brightness.
[0153] As an optional implementation of the embodiment of the present disclosure, the control module 402, before obtaining the first user preference adjustment parameter corresponding to the target state if the first ambient light intensity is within the target light intensity range of the target state, is further used to: if the second ambient light intensity is within the first light intensity range of the daytime state, determine the light intensity change state of the first ambient light intensity compared to the second ambient light intensity; if the light intensity change state is a light intensity reduction state, obtain the target light intensity range of the daytime state, the minimum light intensity of the target light intensity range of the daytime state is less than the minimum light intensity of the first light intensity range;
[0154] or,
[0155] If the second ambient light intensity is in the second light intensity range of the night state, the light intensity change state of the first ambient light intensity compared to the second ambient light intensity is determined; if the light intensity change state is an increased light intensity state, the target light intensity range of the night state is obtained, and the maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range.
[0156] As an optional implementation of the embodiment of the present disclosure, the control module 402, after controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness, is further used to: display a first brightness level parameter corresponding to the target brightness in the vehicle-machine interaction interface, where the target brightness is the first brightness or the second brightness;
[0157] In response to a brightness adjustment input from a user, obtaining a second brightness level parameter corresponding to the brightness adjustment input; controlling a light source of a head-up display device to emit light according to a third brightness, where the third brightness is a brightness corresponding to the second brightness level parameter;
[0158] Calculating a second user adjustment preference parameter according to the first brightness level parameter and the second brightness level parameter;
[0159] The second user adjustment preference parameter is stored.
[0160] As an optional implementation of the embodiment of the present disclosure, the control module 402 stores the second user adjustment preference parameter, specifically for: if the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the target state, then storing the second user adjustment preference parameter in correspondence with the target state;
[0161] The target state includes a night state or a day state.
[0162] As an optional implementation of the embodiment of the present disclosure, the control module 402 is further used to: obtain visual data collected by the visual sensor;
[0163] If it is determined according to the visual data that the current working condition is a strong light reflection condition, then the light source color of the head-up display device corresponding to the strong light reflection condition is determined;
[0164] The control module 402 controls the light source of the head-up display device to emit light based on the first brightness or the second brightness, and is specifically used to control the light source of the head-up display device to emit light based on the light source color of the head-up display device and the target brightness, where the target brightness is the first brightness or the second brightness.
[0165] like Figure 5 As shown, Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, the electronic device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the computer program is executed by the processor, each process of the light source control method of the head-up display device in the above method embodiment is implemented. And the same technical effect can be achieved, so it will not be repeated here to avoid repetition.
[0166] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the light source control method of the head-up display device in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0167] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0168] An embodiment of the present invention provides a computer program product, which stores a computer program. When the computer program is executed by a processor, each process of the light source control method of the head-up display device in the above method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0169] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0170] In the present disclosure, the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0171] In the present disclosure, memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0172] In the present disclosure, computer-readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0173] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0174] The above are only specific embodiments of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for controlling a light source of a head-up display device, characterized in that: include: Determine a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor; Determine a corresponding second light intensity interval according to the time information and the weather information of the current location; If the first light intensity interval matches the second light intensity interval, determining a first brightness according to the first ambient light intensity and a first brightness curve, wherein the first brightness curve is a brightness curve corresponding to the first light intensity interval, and the brightness curve is a curve of a relationship between a preset ambient light intensity and a brightness of a light source of a head-up display device; If the first light intensity interval does not match the second light intensity interval, determining an adjustment coefficient according to the first light intensity interval and the second light intensity interval, and determining a second brightness according to the adjustment coefficient and the first brightness; The head-up display device light source is controlled to emit light based on the first brightness or the second brightness.
2. The method according to claim 1, characterized in that Before determining the first light intensity interval corresponding to the first ambient light intensity collected by the optical sensor, the method further includes: Acquire the first ambient light intensity and the second ambient light intensity collected by the optical sensor, where the second ambient light intensity is at least one ambient light intensity collected before the first ambient light intensity; Calculating a light intensity difference between the first ambient light intensity and the second ambient light intensity; The determining of a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor includes: If the light intensity difference is greater than or equal to a preset difference, determining a first light intensity interval corresponding to the first ambient light intensity; or, If the first ambient light intensity falls within the first light intensity interval, and a ratio between the light intensity difference and the first light intensity interval is greater than or equal to a preset ratio, the first light intensity interval corresponding to the first ambient light intensity is determined.
3. The method according to claim 1, characterized in that: The controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness includes: If the first ambient light intensity is within the target light intensity range of the target state, a first user preference adjustment parameter corresponding to the target state is obtained, a first preference brightness is determined based on the first user preference adjustment parameter and the target brightness, and the head-up display device light source is controlled to emit light according to the first preference brightness, the target state includes a night state or a day state, and the target brightness is the first brightness or the second brightness.
4. The method according to claim 3, characterized in that The method for determining the target light intensity range includes: if the second ambient light intensity is in a first light intensity range in a daytime state, determining a light intensity change state of the first ambient light intensity compared to the second ambient light intensity; if the light intensity change state is a light intensity reduction state, obtaining the target light intensity range in the daytime state, the minimum light intensity of the target light intensity range in the daytime state being less than the minimum light intensity of the first light intensity range; or, If the second ambient light intensity is in the second light intensity range of the night state, then determine the light intensity change state of the first ambient light intensity compared to the second ambient light intensity; if the light intensity change state is an increased light intensity state, then obtain the target light intensity range of the night state, and the maximum light intensity of the target light intensity range of the night state is greater than the maximum light intensity of the second light intensity range.
5. The method according to claim 1, characterized in that After controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness, the method further includes: Displaying a first brightness level parameter corresponding to a target brightness in a vehicle computer interaction interface, wherein the target brightness is the first brightness or the second brightness; In response to a user's brightness adjustment input, obtaining a second brightness level parameter corresponding to the brightness adjustment input; controlling the light source of the head-up display device to emit light according to a third brightness, wherein the third brightness is the brightness corresponding to the second brightness level parameter; Calculating a second user adjustment preference parameter according to the first brightness level parameter and the second brightness level parameter; The second user adjustment preference parameter is stored.
6. The method according to claim 5, characterized in that The storing the second user adjustment preference parameter includes: If the third ambient light intensity collected by the optical sensor is within the light intensity range corresponding to the target state, storing the second user adjustment preference parameter in correspondence with the target state; The target state includes a night state or a day state.
7. The method according to claim 1, characterized in that The method further comprises: Acquire visual data collected by visual sensors; If it is determined according to the visual data that the current working condition is a strong light reflection condition, then determining the light source color of the head-up display device corresponding to the strong light reflection condition; The controlling the light source of the head-up display device to emit light based on the first brightness or the second brightness includes: The light source of the head-up display device is controlled to emit light based on the light source color of the head-up display device and the target brightness, where the target brightness is the first brightness or the second brightness.
8. A light source control device for a head-up display device, characterized in that: include: A determination module, configured to determine a first light intensity interval corresponding to a first ambient light intensity collected by the optical sensor; Determine a corresponding second light intensity interval according to the time information and the weather information of the current location; a control module, configured to determine a first brightness according to the first ambient light intensity and a first brightness curve if the first light intensity interval matches the second light intensity interval, the first brightness curve being a brightness curve corresponding to the first light intensity interval, the brightness curve being a curve of a relationship between a preset ambient light intensity and a brightness of a light source of a head-up display device; and to determine an adjustment coefficient according to the first light intensity interval and the second light intensity interval if the first light intensity interval does not match the second light intensity interval, and to determine a second brightness according to the adjustment coefficient and the first brightness; The head-up display device light source is controlled to emit light based on the first brightness or the second brightness.
9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the light source control method of the head-up display device according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: include: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the light source control method of the head-up display device according to any one of claims 1 to 7 is implemented.
11. A vehicle, characterized in that: include: The light source control device of the head-up display device as claimed in claim 8, or the electronic device as claimed in claim 9.
Citation Information
Cited By
Vehicle-mounted display screen dual-mode dimming control method, device and equipment and storage medium
CN120472858A