Head-up display adjusting method and system, electronic equipment and storage medium

By obtaining image data of the environment ahead of the vehicle and adaptively adjusting the color and brightness of the head-up display, the existing head-up display system is solved, and the driving safety and user experience are improved.

CN119007689APending Publication Date: 2024-11-22CHINA FAW CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410590989.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing head-up display system only supports fixed color themes, and the brightness adjustment function is low in flexibility, resulting in unclear or dazzling display when the environment in front of the vehicle changes, affecting driving safety.

Method used

By obtaining image data of the front environment, determining the brightness information, and adjusting the color and brightness of the head-up display according to the preset correspondence, adaptive color and brightness adjustments, including adjustments to hue, saturation and brightness.

Benefits of technology

It improves the comfort and readability of the head-up display, enhances driving safety, ensures that the display color and brightness are in the appropriate state in different environments, and reduces the driver's visual fatigue.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119007689A_ABST
    Figure CN119007689A_ABST
Patent Text Reader

Abstract

The invention discloses a head-up display adjusting method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining image data of a front environment, and determining brightness information according to the image data; then, determining color information of the target head-up display according to the brightness information and a preset corresponding relation, and performing first conversion on the color information of the target head-up display to obtain first color space information; then, adjusting the first color space information according to the brightness information, and performing second conversion on the adjusted first color space information to obtain target color information; and finally, adjusting the current head-up display according to the target color information. The brightness information of the front environment is determined, the current head-up display color is converted according to the brightness information, and the brightness of the converted head-up display color is adjusted, so that the head-up display color and brightness are adaptively matched and converted according to the brightness of the front environment. The embodiment of the invention can be widely applied to the technical field of data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a head-up display adjustment method, system, electronic device and storage medium. Background Art

[0002] The HUD (Head-Up Display) system is an automotive auxiliary device that uses projection technology to display important information directly in front of the driver's line of sight. The HUD device can project driving-related information such as vehicle speed, navigation instructions, turn prompts, warning information, etc. in front of the driver's line of sight. The driver can obtain necessary information without taking his eyes off the road, thereby improving driving safety. However, the existing HUD system only supports fixed color themes, and the brightness adjustment function has low flexibility. When the environment in front of the vehicle changes, the HUD system display is unclear or dazzling, affecting driving safety. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to provide a head-up display adjustment method, system, electronic device and storage medium, which can adaptively adjust the display color and brightness to improve driving safety.

[0004] To achieve the above object, one aspect of an embodiment of the present application provides a method for adjusting a head-up display, the method comprising:

[0005] Acquire image data of the front environment, and determine brightness information of the front environment according to the image data;

[0006] Determining target head-up display color information according to the brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between the brightness information and the head-up display color information;

[0007] Performing a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a lightness value;

[0008] Performing brightness adjustment on the first color space information according to the brightness information to obtain second color space information, and performing a second conversion on the second color space information to obtain target color information;

[0009] The current head-up display is adjusted according to the target color information.

[0010] In some embodiments, determining the brightness information of the front environment according to the image data specifically includes:

[0011] Performing grayscale processing on the image data to obtain grayscale value data;

[0012] The grayscale average value is calculated according to the grayscale value data, and the grayscale average value is used as brightness information.

[0013] In some embodiments, performing a first conversion on the target head-up display color information to obtain the first color space information specifically includes:

[0014] Sorting the target head-up display information to determine a brightness value;

[0015] Determine a saturation value according to the brightness value and the target head-up display information, and determine a hue value according to the brightness value and the target head-up display information;

[0016] First color space information is determined according to the lightness value, the saturation value, and the hue value.

[0017] In some embodiments, performing a second conversion on the second color space information to obtain target color information specifically includes:

[0018] Determine a hue value, a lightness value, and a saturation value respectively according to the second color space information, and perform rounding down calculation according to the hue value to obtain a first parameter;

[0019] Determine a second parameter according to the first parameter and the hue value, and determine a third parameter group according to the second parameter, the lightness value, and the saturation value;

[0020] Target color information is determined according to the third parameter group, the brightness value, and the first parameter.

[0021] In some embodiments, the step of adjusting the brightness of the first color space information according to the brightness information to obtain the second color space information specifically includes:

[0022] Comparing the brightness value with the luminance information;

[0023] If the brightness value is greater than the brightness information, increase the brightness value according to a first preset value;

[0024] If the brightness value is less than the brightness information, the brightness value is reduced according to the first preset value.

[0025] In some embodiments, the method further comprises:

[0026] Determine a target brightness range according to the brightness information and the preset corresponding relationship, and compare the target brightness range with a preset threshold;

[0027] If the target brightness range is less than the preset threshold, updating the first preset value according to a second preset value;

[0028] If the target brightness range is greater than or equal to the preset threshold, the first preset value is updated according to a third preset value.

[0029] To achieve the above object, another aspect of the embodiment of the present application provides a head-up display adjustment system, the system comprising:

[0030] The first module is used to obtain image data of the front environment and determine brightness information of the front environment according to the image data;

[0031] A second module is used to determine the target head-up display color information according to the brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between the brightness information and the head-up display color information;

[0032] A third module is used to perform a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a brightness value;

[0033] A fourth module is used to adjust the brightness of the first color space information according to the brightness information to obtain second color space information, and perform a second conversion on the second color space information to obtain target color information;

[0034] The fifth module is used to adjust the current head-up display according to the target color information.

[0035] To achieve the above-mentioned purpose, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above-mentioned method when executing the computer program.

[0036] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described above is implemented.

[0037] To achieve the above-mentioned object, a vehicle is provided, characterized in that the vehicle includes the aforementioned head-up display adjustment system or the aforementioned electronic device.

[0038] The implementation of the embodiment of the present application includes the following beneficial effects: the embodiment proposes a head-up display adjustment method, system, electronic device and storage medium, the scheme obtains image data of the front environment, processes according to the image data, and determines the brightness information of the front environment; then, the color information of the target head-up display is determined according to the brightness information of the front environment and the preset corresponding relationship, and the color information of the determined target head-up display is converted for the first time to obtain the first color space information, and the first color space information includes the hue value, the saturation value and the brightness value; then, the first color space information is adjusted according to the brightness information of the front environment, and the adjusted first color space information is converted for the second time to obtain the target color information; finally, the current head-up display is adjusted according to the obtained target color information. By determining the brightness information of the front environment according to the image data of the front environment, determining the head-up display color under the current environment brightness according to the brightness information, and adjusting the brightness of the determined head-up display color according to the brightness information, the color and brightness of the head-up display are adaptively matched and converted according to the brightness of the front environment, the comfort and information readability of the head-up display are improved, and the user experience and driving safety are improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a schematic diagram of the steps of a head-up display adjustment method provided in an embodiment of the present application;

[0040] Figure 2 It is a schematic flow chart of the steps of determining brightness information in a head-up display adjustment method provided in an embodiment of the present application;

[0041] Figure 3 This is a schematic flow chart of the steps of determining first color space information in a head-up display adjustment method provided in an embodiment of the present application;

[0042] Figure 4 It is a schematic flow chart of the steps of determining target color information in a head-up display adjustment method provided in an embodiment of the present application;

[0043] Figure 5 This is a schematic flow chart of the steps of adjusting the brightness value in a head-up display adjustment method provided in an embodiment of the present application;

[0044] Figure 6 This is another schematic flow chart of steps for adjusting brightness value in a head-up display adjustment method provided in an embodiment of the present application;

[0045] Figure 7 It is a schematic diagram of the steps of a specific embodiment provided in the embodiment of the present application;

[0046] Figure 8is a schematic diagram of a grayscale image of the environment in front of a vehicle in a specific embodiment provided in an embodiment of the present application;

[0047] Fig. 9 It is a structural block diagram of an environment-aware HUD color adaptive adjustment system provided in an embodiment of the present application;

[0048] Fig.10 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0050] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0051] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0052] Unless otherwise defined, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the embodiments of the present application are only for the purpose of describing the embodiments of the present application and are not intended to limit the present invention.

[0053] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0054] HUD: HUD is the abbreviation of Head-Up Display, which is a head-up display system. The HUD system is an automotive auxiliary device that displays important information directly in front of the driver's line of sight through projection technology.

[0055] In existing automotive technology, the HUD system is a very important driving assistance device. This device can project key driving information such as driving speed, steering prompts, navigation prompts, etc. in front of the driver's line of sight, so that the driver can obtain necessary driving information without moving the car away from the road, thereby improving driving safety; but many existing head-up display systems only set fixed display colors, and the brightness adjustment flexibility of existing head-up display systems is low. When the external environment of the vehicle changes, the display color and brightness of the head-up display system cannot be adjusted in time, resulting in unclear or dazzling display, affecting the driver's user experience and driving safety.

[0056] In view of this, an embodiment of the present application provides a head-up display adjustment method, system, electronic device and storage medium, which obtains image data of the front environment, processes the image data, and determines the brightness information of the front environment; then, the color information of the target head-up display is determined according to the brightness information of the front environment and a preset corresponding relationship, and the color information of the determined target head-up display is converted into a first color space information, and the first color space information includes a hue value, a saturation value and a brightness value; then, the first color space information is adjusted according to the brightness information of the front environment, and the adjusted first color space information is converted into a second color space information to obtain the target color information; finally, the current head-up display is adjusted according to the obtained target color information; the current display color and brightness of the head-up display are adaptively adjusted according to the brightness information of the vehicle's front environment, so as to ensure that the display color and brightness of the head-up display system are in a suitable state in different environments, effectively alleviate the driver's visual fatigue under the lighting conditions of different environments and the situation where the display of the head-up display system is unclear or dazzling, and improve driving safety.

[0057] Figure 1 is an optional flow chart of a head-up display adjustment method provided in an embodiment of the present application. Figure 1 The method may include but is not limited to steps S101 to S105.

[0058] Step S101, acquiring image data of the front environment, and determining brightness information of the front environment according to the image data;

[0059] Step S102, determining target head-up display color information according to brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between brightness information and head-up display color information;

[0060] Step S103, performing a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a brightness value;

[0061] Step S104, adjusting the brightness of the first color space information according to the brightness information to obtain second color space information, and performing a second conversion on the second color space information to obtain target color information;

[0062] Step S105: adjusting the current head-up display according to the target color information.

[0063] In steps S101 to S105 shown in the embodiment of the present application, a camera installed on the vehicle is used to capture the front environment image in real time, an image processing algorithm is used on the captured environment image, the color image data collected by the camera is converted into grayscale image data, and the total brightness information of the environment in front of the vehicle is extracted according to the grayscale value of the converted grayscale image data. The brightness information obtained in different environments is different. For example, when the environment in front of the vehicle is a snowy environment, image data is captured by the camera installed on the vehicle, and a grayscale image is obtained through the image processing algorithm. The brightness value obtained according to the grayscale image is larger, that is, the environment brightness is brighter; and when the environment in front of the vehicle is a forest environment, the grayscale image is obtained by the camera installed on the vehicle. The camera captures image data, and a grayscale image is obtained through an image processing algorithm. The brightness value obtained according to the grayscale image is small, that is, the ambient brightness is dark. Then, the display color information of the head-up display under the current ambient brightness is determined according to the obtained brightness value representing the ambient brightness and a preset correspondence. The correspondence includes display colors with good display effects corresponding to different ambient brightnesses. After the head-up display color under the current ambient brightness is determined, the display brightness of the determined head-up display color is further adjusted according to the current ambient brightness to avoid glare or unclear display caused by excessively high or low brightness of the head-up display system under the display color, thereby improving driving safety.

[0064] In step S101 of some embodiments, a high-resolution camera may be provided on the vehicle to capture images of the environment in front of the vehicle in real time. The environment in front of the vehicle may also be recorded by the camera, and the environment in front of the vehicle may be determined by analyzing the recorded video stream; at the same time, in order to avoid the sudden brightness adjustment irritating the driver during the adjustment of the head-up display system, a filtering algorithm is used to improve the smoothness of the brightness adjustment during the brightness adjustment process, and the filtering algorithm may be a sliding average algorithm or an exponentially weighted moving average algorithm, but is not limited thereto.

[0065] See also Figure 2 In some embodiments, step S101 may include but is not limited to steps S201 to S202:

[0066] Step S201, grayscale processing is performed on the image data to obtain grayscale value data;

[0067] Step S202, calculating the grayscale average value according to the grayscale value data, and taking the grayscale average value as brightness information.

[0068] In step S201 of some embodiments, image data of the environment in front of the vehicle is acquired by a camera installed on the vehicle. The image data is usually color format image data, and the color of each pixel in the image data is determined by superimposing the three components of red, green, and blue. By grayscale processing the color format image data, the brightness information of the image is retained while reducing the data volume of the image, thereby improving the efficiency of the head-up display system in adjusting the color and brightness.

[0069] In step S202 of some embodiments, after grayscale processing is performed on the color format image data captured by the camera in step S201 to obtain a grayscale image, the grayscale values ​​of all pixels in the grayscale image are averaged and used as the brightness information of the entire grayscale image; illustratively, the average value of the grayscale image obtained by calculation is 225, indicating that the brightness of the grayscale image is relatively high, reflecting that the brightness of the environment in front of the vehicle is relatively high.

[0070] See also Figure 3 In some embodiments, step S103 may include but is not limited to steps S301 to S303:

[0071] Step S301, sorting the target head-up display information and determining the brightness value;

[0072] Step S302, determining a saturation value according to the brightness value and the target head-up display information, and determining a hue value according to the brightness value and the target head-up display information;

[0073] Step S303: determining first color space information according to the brightness value, the saturation value, and the hue value.

[0074] In step S301 of some embodiments, after image processing and analysis are performed on the front environment image captured by the camera, the brightness information of the environment in front of the vehicle is determined, and the display color of the corresponding head-up display system is determined according to a preset correspondence relationship, and the display color is represented by the superposition of three components of red, green, and blue; then, the three color components of the determined display color are sorted, and the maximum value of the three color components is taken as the brightness value; illustratively, the display color of the head-up display determined according to the preset correspondence relationship is light green (34, 139, 34), and the brightness value corresponding to the display color is determined to be 139 through sorting.

[0075] In step S302 of some embodiments, the corresponding hue value and saturation value are calculated according to the lightness value corresponding to the display color determined in step S301 and the three color components of the display color, and the corresponding hue value calculation formula and saturation calculation formula are determined according to the sorting results of the three color components. The specific hue value calculation formula is as follows:

[0076]

[0077] Among them, h is the hue value, r is the red component, g is the green component, and b is the blue component;

[0078] The specific saturation value calculation formula is as follows:

[0079]

[0080] According to the sorting results of the three color components, the hue value calculated based on the determined display color of the head-up display is light green (34, 139, 34) is 120°, and the saturation value calculated is 75.5%.

[0081] In step S303 of some embodiments, HSV color space data corresponding to the display color of the head-up display is obtained according to the hue value, saturation value, and brightness value obtained in step S301 and step S302, and the color format data is converted into HSV format data. This can intuitively determine information such as the color and brightness of the display color, and is also convenient for subsequent further adjustment of the display color.

[0082] See also Figure 4 In some embodiments, step S104 may include but is not limited to steps S401 to S403:

[0083] Step S401, determining the hue value, the lightness value and the saturation value respectively according to the second color space information, and performing rounding down calculation according to the hue value to obtain a first parameter;

[0084] Step S402, determining a second parameter according to the first parameter and the hue value, and determining a third parameter group according to the second parameter, the lightness value, and the saturation value;

[0085] Step S403, determining target color information according to the third parameter group, the brightness value and the first parameter.

[0086] In step S401 of some embodiments, after further processing the HSV format data obtained in steps S301 to S303 according to the brightness information of the environment in front of the vehicle, the HSV format data needs to be converted into color format data. The head-up display system uses the color format data to display driving information. Therefore, the adjusted HSV format data needs to be converted, and a rounding operation is performed downward according to the hue value in the HSV format data to obtain a first parameter. The conversion formula corresponding to the HSV format data is determined according to the first parameter. The specific calculation formula of the first parameter is as follows:

[0087]

[0088] Among them, h2 is the first parameter, and H is the hue value; specifically, when the HSV format data of the display color of the adjusted head-up display is (120°, 75.5%, 150), the first parameter calculated according to the HSV format data is 2.

[0089] In step S402 of some embodiments, a second parameter is calculated according to the first parameter obtained in step S401 and the hue value in the HSV format data, and the second parameter is used for calculating the third parameter group. The three color components of the color format data are obtained by calculating the calculated third parameter group and the conversion formula determined according to the first parameter in step S401; wherein the specific calculation formulas of the second parameter and the third parameter group are as follows:

[0090]

[0091] p=V×(1-S)

[0092] q=V×(1-f×S)

[0093] t=V×(1-(1-f)×S)

[0094] In step S403 of some embodiments, the HSV format data is converted into color format data according to the third parameter group calculated in step S402 and the determined conversion formula. The specific conversion formula is as follows:

[0095]

[0096] Specifically, the adjusted HSV format data is (120°, 75.5%, 150), the first parameter calculated by step S401 is 2, the second parameter calculated by step S402 is 0.5, and the third parameter group is (37, 57, 57). Since the first parameter is 2, the color format data obtained by conversion is (37, 150, 57).

[0097] See also Figure 5 In some embodiments, step S104 may include but is not limited to steps S501 to S502:

[0098] Step S501: Compare the brightness value with the brightness information;

[0099] Step S502: if the brightness value is greater than the brightness information, increase the brightness value according to a first preset value;

[0100] Step S503: If the brightness value is less than the luminance information, reduce the brightness value according to a first preset value.

[0101] In step S501 of some embodiments, after the target display color of the head-up display is converted into HSV format data in steps S301 to S303, the display brightness of the target display color determined based on the brightness information of the environment in front of the vehicle is further adjusted, and the brightness value therein is determined based on the converted HSV format data. By further adjusting the brightness value, the display effect of the head-up display system on the display color is changed to avoid unclear or glaring display and improve driving safety.

[0102] In step S502 of some embodiments, the brightness value of the HSV format data determined in step S501 is compared with the brightness information of the environment in front of the vehicle to determine the magnitude relationship between the brightness value and the ambient brightness. If the brightness value is greater than the ambient brightness, it can be determined that the current ambient brightness is darker, and the brightness value is appropriately increased, that is, the brightness of the display color of the head-up display system is increased, so that the information displayed by the head-up display system is displayed more clearly in a darker environment;

[0103] In step S503 of some embodiments, if the brightness value is less than the ambient brightness, it can be determined that the current ambient brightness is brighter, and the brightness value can be appropriately reduced, that is, the brightness of the display color of the head-up display system is reduced to avoid the glare of the information displayed by the head-up display system with a higher brightness value in a brighter ambient brightness; in order to avoid the sudden change in brightness or the frequency of brightness change during the adjustment of the head-up display to affect the driver, it is also possible to obtain an image of the front environment over a period of time, determine the speed and amplitude of the change of the brightness of the front environment, and dynamically adjust the adjustment step size and frequency of the brightness of the display color of the head-up display system based on the speed and amplitude of the change of the brightness of the front environment to ensure the rapidity and smoothness of the adjustment process.

[0104] See also Figure 6 In some embodiments, step S104 may include but is not limited to steps S601 to S603:

[0105] Step S601, determining a target brightness range according to the brightness information and a preset corresponding relationship, and comparing the target brightness range with a preset threshold;

[0106] Step S602, if the target brightness range is less than the preset threshold, the first preset value is updated according to the second preset value;

[0107] Step S603: if the target brightness range is greater than or equal to the preset threshold, the first preset value is updated according to the third preset value.

[0108] In step S601 of some embodiments, in order to improve the readability of the head-up display information, a brightness value is determined based on the converted HSV format data, and the brightness value is further adjusted to adjust the display brightness of the head-up display system. The brightness range that the front environment brightness meets is determined based on the determined brightness information of the front environment and a preset correspondence. Then, the determined brightness range is compared with a preset threshold, and the adjustment frequency or adjustment amplitude of the head-up display system is dynamically adjusted based on the comparison result to ensure the rapidity and smoothness of the adjustment of the head-up display system and reduce the impact of the adjustment process on the driver.

[0109] In step S602 of some embodiments, if the brightness range is less than a preset threshold, the adjustment frequency or adjustment amplitude of the head-up display system is updated to a smaller value, and the display color and brightness of the head-up display system are adjusted with a smaller adjustment frequency or adjustment amplitude. For example, when it is detected that the brightness of the front environment is dim, the adjustment frequency or adjustment amplitude of the head-up display system is too large. In a darker environment, the display color and brightness of the head-up display system will become dazzling and affect the driver. At this time, it is necessary to adjust the adjustment frequency or adjustment amplitude of the head-up display system with a smaller adjustment frequency or adjustment amplitude to avoid affecting driving safety.

[0110] In step S603 of some embodiments, if the brightness range is greater than or equal to a preset threshold, the adjustment frequency or adjustment amplitude of the head-up display system is updated to a larger value, and the display color and brightness of the head-up display system are adjusted with a smaller adjustment frequency or adjustment amplitude; exemplarily, when the front environment is a brighter environment, the display information of the head-up display system is blurry, and the driver needs to spend more attention to identify and distinguish the display information. At this time, the adjustment frequency or adjustment amplitude of the head-up display system is small, and the display information of the head-up display system takes a long time to adjust to be clearly visible, and the driver is prone to visual fatigue; therefore, the adjustment frequency or adjustment amplitude of the head-up display system is adjusted to a larger value to improve the adjustment efficiency of the head-up display system and improve driving safety.

[0111] See also Figure 7 , the scheme of the embodiment of the present application is described in detail, a high-resolution camera arranged on the vehicle collects images of the environment in front of the vehicle in real time, and then transmits the collected image data to a processor arranged on the vehicle, the processor receives the image data transmitted by the high-resolution camera, performs grayscale processing on the image data, and obtains the following Figure 8 Then, the processor performs statistical analysis based on the obtained grayscale image and obtains the brightness information of the environment in front of the vehicle as 130; then, the obtained brightness information is matched with the preset corresponding table, wherein the preset corresponding table is as follows,

[0112] Table 1

[0113] Ambient brightness range Head-up display system display color 0-50 black 51-100 Dark Gray 101-150 Light Gray 151-200 White 201-255 High gloss white

[0114] Specifically, the display color of the head-up display system in the correspondence table can be determined according to the color of the front environment. An image of the environment in front of the vehicle is collected, and the color information of the front environment is determined based on the image. The display color of the head-up display system is determined based on the color information, so that the displayed information is coordinated with the front environment and the readability and visual comfort of the information are improved. For example, when the front environment is white, the color of the head-up display information can be determined to be black, thereby ensuring that the displayed information is clear and visible; at the same time, the display color of the head-up display system in the correspondence table can also be determined according to the color contrast. The color with a large color contrast with the front environment is used as the corresponding color to improve the clarity and recognition of the displayed information. For example, the corresponding color of the white front environment is set to orange-red. Against a white background, the orange-red display information has higher clarity and recognition, and the orange-red can attract the driver's attention.

[0115] According to the corresponding table, it is determined that under the brightness information of the environment in front of the vehicle, the display color of the head-up display system is light gray. Then, the processor converts the light gray color format data into HSV format data as (0, 0, 69). Then, the brightness value in the converted HSV format data is obtained. Then, the processor compares the obtained brightness value with the brightness information of the current environment, determines that the brightness value is greater than the brightness information of the current environment, increases the brightness value to 72, and then converts the converted HSV data back to color format data as (183, 183, 183). The processor adjusts the display color of the current head-up display system according to the color format data.

[0116] The implementation of the embodiment of the present application includes the following beneficial effects: The embodiment of the present application provides a method, system, electronic device and storage medium for adjusting a head-up display. The scheme obtains image data of the front environment, processes the image data, and determines the brightness information of the front environment; then, the color information of the target head-up display is determined according to the brightness information of the front environment and the preset corresponding relationship, and the color information of the determined target head-up display is first converted to obtain first color space information, and the first color space information includes hue value, saturation value and brightness value; then, the first color space information is adjusted according to the brightness information of the front environment, and the adjusted first color space information is second converted to obtain target color information; finally, the current head-up display is adjusted according to the obtained target color information. By collecting an image of the front environment of the vehicle, and determining the brightness information of the front environment through grayscale analysis, the corresponding relationship of the display color of the head-up display system corresponding to different ambient brightness is preset, and the appropriate display color is determined according to the determined front environment brightness information and the corresponding relationship, and the brightness of the display color is adaptively adjusted according to the front environment brightness information, so as to improve the comfort and information readability of the head-up display, and improve user experience and driving safety.

[0117] like Fig. 9 As shown, the embodiment of the present application also provides a head-up display adjustment system, the system comprising:

[0118] The first module is used to obtain image data of the front environment and determine brightness information of the front environment according to the image data;

[0119] A second module is used to determine the target head-up display color information according to the brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between the brightness information and the head-up display color information;

[0120] A third module is used to perform a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a brightness value;

[0121] A fourth module is used to adjust the brightness of the first color space information according to the brightness information to obtain second color space information, and perform a second conversion on the second color space information to obtain target color information;

[0122] The fifth module is used to adjust the current head-up display according to the target color information.

[0123] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0124] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above head-up display adjustment method when executing the computer program. The electronic device can be any smart terminal including a tablet computer, a car computer, etc.

[0125] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0126] See also Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0127] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0128] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the head-up display adjustment method of the embodiment of this application;

[0129] Input / output interface 1003, used to implement information input and output;

[0130] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0131] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0132] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0133] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0134] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.

[0135] An embodiment of the present application further provides a computer-readable storage medium, which stores a program executable by a processor. The program executable by the processor is used to implement the above method when executed by the processor.

[0136] The embodiment further provides a vehicle, the vehicle including the above-mentioned head-up display adjustment system or the electric drive assembly of the electronic device. Specifically, the vehicle can be a private car, such as a sedan, SUV, MPV or pickup truck. The vehicle can also be an operating vehicle, such as a van, bus, small truck or large trailer. The vehicle can be a gasoline vehicle or a new energy vehicle. When the vehicle is a new energy vehicle, it can be a hybrid vehicle or a pure electric vehicle.

[0137] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0138] The embodiment of the present application provides a head-up display adjustment method, system, electronic device and storage medium, which obtains image data of the front environment, determines the brightness information of the front environment according to the image data, and then determines the target head-up display color information corresponding to the current brightness information according to the brightness information and a preset correspondence, performs a first conversion on the determined target head-up display color information to obtain first color space information, then adjusts the brightness of the first color space information according to the brightness information of the front environment, performs a second conversion on the adjusted first color space information to obtain target color information, and adjusts the color and brightness of the current head-up display according to the obtained target color information. By obtaining the brightness information of the front environment, determining the corresponding color information according to the brightness information, and adjusting the brightness of the color information according to the brightness information, the color and brightness of the head-up display can be adaptively adjusted based on environmental changes, thereby improving the comfort of the driver and driving safety.

[0139] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A method for adjusting a head-up display, characterized in that: The method comprises: Acquire image data of the front environment, and determine brightness information of the front environment according to the image data; Determining target head-up display color information according to the brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between the brightness information and the head-up display color information; Performing a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a lightness value; Performing brightness adjustment on the first color space information according to the brightness information to obtain second color space information, and performing a second conversion on the second color space information to obtain target color information; The current head-up display is adjusted according to the target color information.

2. The method according to claim 1, characterized in that The determining the brightness information of the front environment according to the image data specifically includes: Performing grayscale processing on the image data to obtain grayscale value data; The grayscale average value is calculated according to the grayscale value data, and the grayscale average value is used as brightness information.

3. The method according to claim 1, characterized in that The first conversion of the target head-up display color information to obtain the first color space information specifically includes: Sorting the target head-up display information to determine a brightness value; Determine a saturation value according to the brightness value and the target head-up display information, and determine a hue value according to the brightness value and the target head-up display information; First color space information is determined according to the lightness value, the saturation value, and the hue value.

4. The method according to claim 1, characterized in that: The performing a second conversion on the second color space information to obtain target color information specifically includes: Determine a hue value, a lightness value, and a saturation value respectively according to the second color space information, and perform rounding down calculation according to the hue value to obtain a first parameter; Determine a second parameter according to the first parameter and the hue value, and determine a third parameter group according to the second parameter, the lightness value, and the saturation value; Target color information is determined according to the third parameter group, the brightness value, and the first parameter.

5. The method according to claim 1, characterized in that The step of adjusting the brightness of the first color space information according to the brightness information to obtain the second color space information specifically includes: Comparing the brightness value with the luminance information; If the brightness value is greater than the brightness information, increase the brightness value according to a first preset value; If the brightness value is less than the brightness information, the brightness value is reduced according to the first preset value.

6. The method according to claim 5, characterized in that The method further comprises: Determine a target brightness range according to the brightness information and the preset corresponding relationship, and compare the target brightness range with a preset threshold; If the target brightness range is less than the preset threshold, updating the first preset value according to a second preset value; If the target brightness range is greater than or equal to the preset threshold, the first preset value is updated according to a third preset value.

7. A head-up display adjustment system, characterized in that: include: The first module is used to obtain image data of the front environment and determine brightness information of the front environment according to the image data; A second module is used to determine the target head-up display color information according to the brightness information and a preset corresponding relationship; wherein the preset corresponding relationship includes a corresponding relationship between the brightness information and the head-up display color information; A third module is used to perform a first conversion on the target head-up display color information to obtain first color space information; wherein the first color space information includes a hue value, a saturation value, and a brightness value; A fourth module is used to adjust the brightness of the first color space information according to the brightness information to obtain second color space information, and perform a second conversion on the second color space information to obtain target color information; The fifth module is used to adjust the current head-up display according to the target color information.

8. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 1 to 6 when executed by the processor.

10. A vehicle, characterized in that: The vehicle includes a head-up display adjustment system as claimed in claim 7 or an electronic device as claimed in claim 8.

Citation Information

Cited By

  • Head-up display brightness adaptive adjustment method, system and device and medium

    CN120656430A

  • Display control device and method, head-up display equipment and computer storage medium

    CN120921911A