Head-up display device control method, device, vehicle, medium and product
Patent Information
- Application Number
- CN202610958569.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-29
- Publication Date
- 2026-10-09
AI Technical Summary
[0003]然而在复杂多变的行驶环境中,外界的光照条件存在剧烈波动等情况,容易导致抬头显示设备的投射画面出现可视性下降、亮度异常波动等问题,进而严重影响信息读取的清晰度与稳定性,干扰驾驶员对投射画面信息的获取,降低使用体验的同时还存在潜在安全风险
[0010]本申请实施例提供的抬头显示设备的控制方法、电子装置、车辆、计算机可读存储介质及计算机程序产品,通过采集抬头显示设备的显示方向与垂直显示方向(对于车辆而言为顶向方向)两路的光线强度,作为第一光强度和第二光强度,进而根据第一光强和第二光强所在数值区间综合确定抬头显示设备周边的环境光亮度,相较于单一的第一光强度、或者第二光强度、或者固定的第一光强度和第二光强度的比例的检测更加贴合实际的使用场景,可以有效避免单一方向光线突变导致的误判,实现对环境光亮度的精准判断。
Smart Images

Figure CN122888925A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of intelligent display control technology, specifically relating to a control method for a head-up display device, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the rapid development of the electric vehicle industry, head-up displays (HUDs) have become an important feature for improving driving safety and ease of use. While the vehicle is in motion, HUDs project key information into the driver's field of vision via optical projection, allowing the driver to obtain real-time driving information while maintaining normal line of sight. This effectively reduces eye movement and distraction, improving driving safety and user experience.
[0003] However, in complex and ever-changing driving environments, external lighting conditions can fluctuate drastically, which can easily lead to reduced visibility and abnormal brightness fluctuations in the projected image of the head-up display device. This can severely affect the clarity and stability of information reading, interfere with the driver's acquisition of information from the projected image, reduce the user experience, and pose potential safety risks. Summary of the Invention
[0004] This application aims to address at least one of the technical problems existing in the prior art. To this end, this application proposes a control method for a head-up display device, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product, capable of adaptively adjusting the display brightness of the head-up display device to the surrounding environment, thereby improving user viewing comfort and driving safety.
[0005] In a first aspect, this application provides a control method for a head-up display device, the control method comprising: The first light intensity and the second light intensity of the head-up display device are detected, wherein the first light intensity is used to characterize the light intensity in the display direction of the head-up display device, and the second light intensity is used to characterize the light intensity in the direction perpendicular to the display direction; The ambient light intensity is determined based on the first light intensity and the second light intensity; The brightness of the head-up display device is adjusted based on the ambient light intensity.
[0006] Secondly, this application provides an electronic device, which includes a memory and a processor; the memory stores a computer program, and the processor executes the above-described control method for a head-up display device by calling the computer program stored in the memory.
[0007] Thirdly, this application provides a vehicle that includes a head-up display device and the aforementioned electronic device.
[0008] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described control method for a head-up display device.
[0009] Fifthly, this application provides a computer program product, which includes computer instructions that, when executed by a processor, implement the above-described control method for a head-up display device.
[0010] The control method, electronic device, vehicle, computer-readable storage medium, and computer program product for the head-up display device provided in this application collect the light intensity of two paths—the display direction and the vertical display direction (the top direction for vehicles)—as the first light intensity and the second light intensity. Then, based on the numerical range of the first and second light intensities, the ambient light brightness around the head-up display device is determined comprehensively. Compared with the detection of a single first light intensity, or a second light intensity, or a fixed ratio of the first and second light intensities, this method is more in line with actual usage scenarios and can effectively avoid misjudgment caused by sudden changes in light intensity in a single direction, thus achieving accurate judgment of ambient light brightness.
[0011] Then, the display brightness is adaptively adjusted based on the precise ambient light level. In this way, the HUD's display brightness can be matched with the ambient light, ensuring clear visibility in strong light while avoiding excessive brightness and glare in low light, thereby improving the driver's viewing comfort and driving safety.
[0012] Additional aspects and advantages of embodiments of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of embodiments of this application. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort. Wherein: Figure 1 This is an application scenario diagram of the control method for a head-up display device provided in some embodiments of this application; Figure 2 This is a first flowchart illustrating a control method for a head-up display device provided in certain embodiments of this application; Figure 3This is a second flowchart illustrating the control method of a head-up display device provided in certain embodiments of this application; Figure 4 This is a third flowchart illustrating the control method for a head-up display device provided in certain embodiments of this application; Figure 5 This is a fourth flowchart illustrating the control method for a head-up display device provided in certain embodiments of this application; Figure 6 This is a schematic diagram of a vehicle in a parallel light scene according to certain embodiments of this application; Figure 7 This is a schematic diagram of a vehicle passing by a streetlight, provided in certain embodiments of this application; Figure 8 This is a schematic diagram of a vehicle crossing an overpass, provided in certain embodiments of this application. Figure 9 This is a schematic diagram of a vehicle about to enter a tunnel, provided in certain embodiments of this application; Figure 10 This is a fifth flowchart illustrating the control method for a head-up display device provided in certain embodiments of this application; Figure 11 This is a schematic diagram of the structure of the control device of the head-up display device provided in some embodiments of this application; Figure 12 This is a schematic diagram of the structure of an electronic device provided in some embodiments of this application; Figure 13 This is a schematic diagram of the vehicle structure provided in some embodiments of this application. Detailed Implementation
[0014] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0015] In the description of this application, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0016] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," and "joint" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a mechanical connection or an electrical connection. They can refer to a direct connection or an indirect connection through an intermediate medium, and they can refer to the internal communication between two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0017] In view of the problems existing in the background art, the present application provides a control method for a head-up display device, an electronic device, a vehicle, a computer-readable storage medium, and a computer program product.
[0018] Please see Figure 1 , Figure 1 This is an application scenario diagram of the control method for a head-up display device provided in certain embodiments of this application. The application scenario provided in this application includes a vehicle 100, which includes a light sensor 10, a head-up display device 20, and a controller 30. The control method for the head-up display device 20 provided in this application can be executed by the controller 30.
[0019] The light sensor 10 is a sensor that detects the intensity of light in the environment and converts the light signal into an electrical signal, which is then output to the controller 30. In the vehicle 100, the light sensor 10 is typically installed on the dashboard or above the windshield to detect the light intensity directly in front of and / or above the head-up display 20 in the vehicle 100. Optionally, the light sensor 10 may include, but is not limited to, ambient light sensors, sunlight sensors, phototransistors, and multi-functional vehicle sensors (such as rain-light composite sensors), etc., which are not limited in this embodiment.
[0020] The head-up display (HUD) 20 projects key information (such as driving-related information) into the driver's forward field of vision, forming a virtual image for intuitive reading. Controlled by a controller 30, the HUD 20 emits images from a display source (such as a thin-film transistor (TFT)). These images are refracted or reflected by optical lenses or a group of mirrors, forming a distant virtual image on the windshield or a dedicated combination mirror. This allows the driver to view key information without looking down, reducing eye strain and distraction, improving information reading efficiency, and thus enhancing driving safety and comfort. Optionally, the HUD 20 may include, but is not limited to, windshield-type HUDs, combination mirror-type HUDs, augmented reality HUDs, etc., and this embodiment does not limit the specific type.
[0021] The controller 30 is connected to the light sensor 10 and the head-up display device 20 respectively. It can acquire information such as light intensity collected by the light sensor, determine the brightness of the display to be shown by the head-up display device 20 based on the acquired light intensity information, and precisely control the display brightness of the head-up display device 20.
[0022] Based on the above description of the relevant scenarios, this application provides a control method for a head-up display device. The control method for the head-up display device will be described in detail below: Please see Figure 2 The control method for a head-up display device provided in this application embodiment is implemented by steps 011, 012 and 013, which are described in detail below.
[0023] Step 011: Detect the first light intensity and the second light intensity of the head-up display device; Step 012: Determine the ambient light intensity based on the first light intensity and the second light intensity; The first light intensity characterizes the light intensity in the direction of the head-up display (usually directly in front of the vehicle), the second light intensity characterizes the light intensity in the direction perpendicular to the display direction (usually overhead of the vehicle), and the ambient light intensity characterizes the overall brightness of the location where the virtual image projected by the head-up display (HUD) is located. The units for the first light intensity, the second light intensity, and the ambient light intensity are all lux (lx).
[0024] Specifically, during normal driving, the projected virtual image of the HUD is mainly affected by the light from directly in front of and above the vehicle. Therefore, two light information channels are collected in real time by a light sensor. One channel detects the light intensity in the direction of the HUD display (generally directly in front of the vehicle) (i.e., the first light intensity), and the other channel detects the light intensity from above the vehicle (i.e., the second light intensity).
[0025] By combining the first and second light intensities, an ambient light level that better reflects the actual driving scenario can be calculated. This avoids deviations caused by using only a single directional light intensity, providing a more accurate basis for adjusting the HUD's display brightness, thereby improving the stability of the display effect and driving safety.
[0026] In one alternative embodiment, please refer to Figure 3 Step 012 includes: Step 0121: Determine the ambient light intensity based on the first light intensity, the first weight corresponding to the first light intensity, the second light intensity, and the second weight corresponding to the second light intensity.
[0027] The first weight and the second weight are both default values set based on experience, or values determined based on the intervals in which the first light intensity and the second light intensity are located.
[0028] Specifically, after obtaining the first light intensity and the second light intensity, the ambient light brightness is obtained by weighting and summing them according to their respective weight values. In different driving scenarios, the light from the HUD's display direction and the light from the vehicle's top have different effects on the ambient light brightness of the HUD's projection position. Therefore, by using the first and second weights, which can be dynamically adjusted according to the driving scenario, a more accurate ambient light brightness can be obtained, improving the overall judgment accuracy.
[0029] In one alternative embodiment, please continue to refer to Figure 3 Step 012 also includes steps 0122 and 0123 to determine the weights corresponding to the first light intensity and the second light intensity, as follows.
[0030] Step 0122: Determine the target interval group based on the first target interval where the first light intensity is located and the second target interval where the second light intensity is located; Step 0123: Map based on the target interval group to determine the first weight and the second weight.
[0031] Wherein, the first target interval is any first preset interval, the second target interval is any second preset interval, and the target interval is any preset interval group, which includes any first preset interval and any second preset interval. Each first preset interval and each second preset interval is a preset value calibrated based on scene experiments. The first preset interval containing the detected first light intensity is the first target interval; the second preset interval containing the detected second light intensity is the second target interval, and the target interval group consists of the first target interval and the second target interval.
[0032] Specifically, in different driving scenarios, the light from the HUD's display direction and the vehicle's overhead light have different effects on the ambient light brightness at the HUD's projection position. Therefore, for each preset interval group consisting of a first preset interval and a second preset interval, corresponding preset weighted sets (each containing two weights) are set (experimentally calibrated). Based on the detected values of the first light intensity and the second light intensity, the corresponding first target interval and second target interval are determined. The two weights in the preset weighted sets corresponding to the target interval groups containing the first target interval and the second target interval are the first weight and the second weight, respectively.
[0033] The unit for both the first and second light intensities is lux (lx), and the unit corresponding to the values in each of the first and second preset intervals is also lux (lx). For example, when the first light intensity is in the first preset interval (3000, +∞) and the second light intensity is in the second preset interval [20000, 35000], the first weight is 1 and the second weight is 1 / 8. When the first light intensity is in the first preset interval [6000, +∞) and the second light intensity is in the second preset interval (35000, +∞), the first weight is 1 and the second weight is 1 / 8.
[0034] For example, when the first light intensity is within a first preset range [3000, 4000] and the second light intensity is within a second preset range (35000, +∞), the first light intensity is relatively smaller than the second light intensity. Since the HUD's display direction corresponds to the first light intensity, the first weight is appropriately increased to obtain accurate ambient light brightness. The corresponding first weight is 1.2 and the second weight is 1 / 8. Similarly, when the first light intensity is within a first preset range [4000, 6000] and the second light intensity is within a second preset range (35000, +∞), the first weight is also appropriately increased to obtain accurate ambient light brightness. The first weight is 1.1 and the second weight is 1 / 8.
[0035] For example, when the first light intensity is within the first preset range (3000, 5000) and the second light intensity is within the second preset range [0, 20000), the first weight is 2 and the second weight is 0. When the first light intensity is within the first preset range [5000, +∞) and the second light intensity is within the second preset range [0, 20000), the first weight is 1 and the second weight is 0.
[0036] For example, when the first light intensity is within a first preset range (2500, 3000) and the second light intensity is within a second preset range [20000, +∞), the first weight is 1 and the second weight is 1 / 16. When the first light intensity is within a first preset range (1200, 2500) and the second light intensity is within a second preset range [20000, +∞), the first weight is 1 and the second weight is 0. When the first light intensity is within a first preset range [0, 1200] and the second light intensity is within a second preset range [20000, +∞), the first weight is 1.2 and the second weight is 0.
[0037] For example, when the first light intensity is within a first preset range [0, 2500] and the second light intensity is within a second preset range [1500, 20000), the first weight is 1 and the second weight is 1 / 8. When the first light intensity is within a first preset range [0, 150] and the second light intensity is within a second preset range [0, 1500), the first weight is 1 and the second weight is 0. When the first light intensity is within a first preset range [2500, 3000] and the second light intensity is within a second preset range [0, 20000), the first weight is 1 and the second weight is 1 / 16.
[0038] In one alternative embodiment, please refer to Figure 4 Step 012 includes steps 0124 and 0125, which are explained in detail below.
[0039] Step 0124: Determine the first ambient light brightness of the current frame based on the first light intensity and the second light intensity; Step 0125: Determine the ambient light brightness of the current frame based on the first ambient light brightness, or based on the first ambient light brightness and the second ambient light brightness of historical frames.
[0040] The first ambient light brightness is the ambient light brightness initially calculated based on the collected data of the current frame, and the second ambient light brightness is the ambient light brightness of the historical frames.
[0041] Specifically, based on the first and second light intensities detected at the corresponding time of the historical frame, the second ambient light luminance corresponding to the historical frame is calculated, or the calculated second ambient light luminance is stored for later retrieval. Based on the first and second light intensities detected at the corresponding time of the current frame, the first ambient light luminance corresponding to the current frame is calculated. The specific calculation of the first and second ambient light intensities has been described in detail in steps 012 and 0121, and will not be repeated here.
[0042] In some driving scenarios, the overall ambient light changes drastically, requiring the HUD's display brightness to quickly adapt to these changes. Therefore, the first ambient light brightness is used as the ambient light brightness for the current frame. In other driving scenarios, the overall ambient light changes gradually, requiring the HUD's display brightness to remain stable. Therefore, the first ambient light brightness and the second ambient light brightness from previous frames are smoothly blended across multiple frames to obtain the ambient light brightness for the current frame. This allows for both rapid and gradual changes in the HUD's display brightness to adapt to different operating conditions and improve the driver's viewing experience.
[0043] In one alternative embodiment, please refer to Figure 4 Step 0125 includes steps 01251 and 01252, which are explained in detail below.
[0044] Step 01251: Determine the target interval group based on the first target interval where the first light intensity is located and the second target interval where the second light intensity is located; Step 01252: Map based on the target interval group to determine the target filtering strategy to obtain the ambient light intensity of the current frame. The target interval group can be any preset interval group, and each preset interval group corresponds to a preset filtering strategy. The preset filtering strategy includes: determining the ambient light intensity of the current frame based on a first ambient light brightness; or determining the ambient light intensity of the current frame based on the first ambient light brightness and the second ambient light brightness of historical frames of the target frame number.
[0045] The target number of frames is determined based on target interval groups. Each preset interval group corresponds to a preset number of frames, and the preset number of frames corresponding to the target interval group is the target number of frames.
[0046] Specifically, the method for determining the target interval group in step 01251 has been described in detail in step 0122, and will not be repeated here to avoid repetition. Each preset interval group corresponds to a preset scene condition, and a corresponding preset filtering strategy is dynamically adopted according to the different scene conditions. In this way, the display brightness of the HUD can form a clear contrast with the ambient light in the scene, realizing the brightness adaptive effect of different scene conditions, so that the driver can accurately obtain the relevant information displayed by the HUD.
[0047] In one alternative embodiment, please refer to Figure 5 Step 01252 includes steps 01253, 01254 and 01255, which correspond to filtering strategies in different scenarios, as explained in detail below.
[0048] Step 01253: If the target interval group is the first preset interval group, determine the target filtering strategy as based on the first ambient light brightness, and determine the ambient light brightness of the current frame; Optionally, the first preset interval group includes at least one preset interval group.
[0049] Specifically, when the target interval group is the first preset interval group, the ambient light brightness of the current frame is determined to be the first ambient light brightness. For example, when the first target interval is (120, 2500) and the second target interval is [20000, +∞), the target interval group is determined to be the first preset interval group, and a 1-frame filtering method is used, so the first ambient light brightness of the current frame is the ambient light brightness of the current frame. When the first target interval is [0, 1200] and the second target interval is [20000, +∞), the target interval group is determined to be the first preset interval group, and a 1-frame filtering method is used, so the first ambient light brightness of the current frame is the ambient light brightness of the current frame. When the first target interval is [0, 150) and the second target interval is [1500, 20000), the target interval group is determined to be the first preset interval group, and a 1-frame filtering method is used, so the first ambient light brightness of the current frame is the ambient light brightness of the current frame.
[0050] Step 01254: When the target interval group is the second preset interval group, the target filtering strategy is determined to be the average value of the second ambient light brightness of historical frames based on the first ambient light brightness and the first preset target frame number, and the ambient light brightness of the current frame is determined. The first preset target frame rate is a default value set based on experience or a user-defined value. For example, the first preset target frame rate is 2. Optionally, the second preset interval group includes at least one preset interval group.
[0051] When the target interval group is the second preset interval group, the ambient light brightness of the current frame is determined to be the average of the first ambient light brightness and the second ambient light brightness of historical frames of the first preset target frame number. Optionally, the weighted average of the first ambient light brightness and the second ambient light brightness of historical frames of the first preset target frame number is used as the ambient light brightness of the current frame.
[0052] For example, if the first target interval is (2500, 3000] and the second target interval is [20000, +∞), the target interval group is determined to be the second preset interval group, and a 3-frame filtering method is adopted. The average (or weighted average) of the first ambient light brightness of the current frame and the second ambient light brightness of the previous two historical frames is the ambient light brightness of the current frame. Optionally, if the first target interval is [2500, 3000] and the second target interval is [0, 20000), the target interval group is determined to be the second preset interval group, and a 3-frame filtering method is adopted. The average (or weighted average) of the first ambient light brightness of the current frame and the second ambient light brightness of the previous two historical frames is the ambient light brightness of the current frame.
[0053] Step 01255: When the target interval group is the third preset interval group, the target filtering strategy is determined to be the average value of the second ambient light brightness of historical frames based on the first ambient light brightness and the second preset target frame number, and the ambient light brightness of the current frame is determined. The second preset target frame rate is a default value set based on experience or a user-defined value. The second preset target frame rate is greater than the first preset target frame rate; for example, if the first preset target frame rate is 2, the second preset target frame rate is 9. Optionally, the third preset interval group includes at least one preset interval group.
[0054] Specifically, such as Figure 6 The scenes shown are either facing the sun directly or facing away from the sun, and the ambient light in the current scene is generally stable. Figure 7 The scene shown passes through shady trees and streetlights, where the overall ambient lighting is relatively stable. In scenes with relatively stable ambient lighting, a smoothing filter is achieved by averaging (or weighted averaging) the second ambient light brightness of several historical frames from the first preset target frame with the first ambient light brightness, resulting in the final ambient light brightness of the current frame. This effectively suppresses noise interference, improves the stability of the HUD's display brightness, avoids display flickering caused by slight fluctuations, and enhances viewing comfort.
[0055] Optionally, such as Figure 8 The image shows a scenario where a vehicle is crossing an overpass. In this scenario, the top light is low and the display direction changes abruptly. To achieve smoothing in this scenario, the ambient light brightness of the second frame is averaged (or weighted averaged) with the first ambient light brightness from several historical frames of the second preset target frame to obtain the final ambient light brightness of the current frame. This approach balances the response speed of the HUD's brightness adjustment with display smoothness, avoiding noticeable jumps and / or flickering, thus improving the HUD's display stability and the driver's viewing experience.
[0056] For example, if the first target interval is (3000, +∞) and the second target interval is [20000, 35000], the target interval group is determined to be the third preset interval group, and the ambient light brightness of the current frame is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number (e.g., 9) of the historical frames.
[0057] For example, if the first target interval is [6000, +∞) and the second target interval is (35000, +∞), the target interval group is determined as the third preset interval group, and the ambient light brightness of the current frame is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number (e.g., 9) of the historical frames. If the first target interval is [3000, 6000) and the second target interval is (35000, +∞), the target interval group is determined as the third preset interval group, and the ambient light brightness of the current frame is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number of the historical frames.
[0058] Optionally, when the first target interval is (3000, 5000) and the second target interval is [0, 20000), the target interval group is determined to be a third preset interval group, and the target filtering strategy is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number (e.g., 9) of historical frames, and the ambient light brightness of the current frame is determined. When the first target interval is [5000, 10000] and the second target interval is [0, 20000), the ambient light brightness of the current frame is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number (e.g., 9) of historical frames. When the first target interval is [10000, 20000) and the second target interval is [0, 20000), the target interval group is determined to be a third preset interval group, and the ambient light brightness of the current frame is determined to be the average (or weighted average) of the second ambient light brightness of the first ambient light brightness and the second preset target frame number (e.g., 9) of historical frames.
[0059] like Figure 9 The image shows a scene about to enter a tunnel. Because the lighting conditions are cyclical and subject to drastic changes, a fixed frame rate filtering method is no longer used. Instead, the corresponding filtering strategy is dynamically matched based on the numerical range of the two light intensities. This adapts to the special working conditions with sudden changes in light, thereby improving driving safety and observation comfort.
[0060] Optionally, in the scenario where the vehicle is about to enter a tunnel, the top light and the front light are both low and decreasing, and the light changes are not drastic. A fixed number of frames (e.g., 10 frames) of filtering is used to calculate the ambient light intensity. For example, if the first target interval is [150, 2500] and the second target interval is [1500, 20000), the scene before entering the tunnel is determined by identifying this target interval group. A 10-frame filtering method is used, and the ambient light intensity of the current frame is determined based on the average (or weighted average) of the first ambient light intensity of the current frame and the second ambient light intensity of the previous 9 historical frames.
[0061] Optionally, in a scenario where the vehicle is in a tunnel, the top light and front light of the vehicle are both extremely low and stable, and the light changes are not drastic. Therefore, a fixed number of frames (e.g., 10 frames) of filtering is used to calculate the ambient light intensity. For example, if the first target interval is [0, 150) and the second target interval is [0, 1500), the scene in the tunnel corresponding to this target interval group is determined. A 10-frame filtering method is used, and the ambient light intensity of the current frame is determined based on the average (or weighted average) of the first ambient light intensity of the current frame and the second ambient light intensity of the previous 9 historical frames.
[0062] Optionally, in the scenario where the vehicle is exiting a tunnel, the top light of the vehicle is at a low but increasing level, and the front light is also at a low but increasing level. The light changes are not drastic, so a fixed number of frames (e.g., 10 frames) of filtering is used to calculate the ambient light intensity. For example, if the first target interval is [150, 2500] and the second target interval is [1500, 20000], the scene after exiting the tunnel is determined to correspond to this target interval group. A 10-frame filtering method is used, and the ambient light intensity of the current frame is determined based on the average (or weighted average) of the first ambient light intensity of the current frame and the second ambient light intensity of the previous 9 historical frames.
[0063] In one alternative embodiment, as the vehicle exits a dark environment, such as before exiting a tunnel, culvert, or garage, the vehicle's forward and upward beams gradually increase; that is, the first light intensity and the second light intensity gradually increase. See also... Figure 10 Step 012 includes steps 0126 and 0127, which are explained in detail below.
[0064] Step 0126: If the target interval group is the fourth preset interval group, determine the current scene as the first preset scene, and determine the brightness step size based on the ambient light brightness of the current frame, the preset ambient light brightness, and the preset number of times; Step 0127: When the current scene is the first preset scene, increase the ambient light brightness frame by frame based on the brightness step size until the ambient light brightness reaches the preset ambient light brightness, and maintain the ambient light brightness at the preset ambient light brightness.
[0065] The first preset scene includes a scene with a first light intensity and a second light intensity that gradually increases. The preset ambient light brightness and preset number of times are both default values set based on experience or user-defined values, such as a preset ambient light brightness of 800 lx and preset times of 10 or 15. Optionally, the fourth preset interval group includes at least one preset interval group.
[0066] Optionally, the preset ambient light brightness is determined based on the ambient light brightness of a second preset scene, where the target interval group of the second preset scene is the scene corresponding to the fifth preset interval group (such as the scene of about to enter a tunnel). The vehicle first drives from a bright environment into a dark environment (such as a tunnel or culvert) and then out, and the ambient light brightness of the bright environment before and after the dark environment is similar. Therefore, using the ambient light brightness of the second preset scene as the preset ambient light brightness, and using this ambient light brightness as the target value for smooth dimming, can achieve a natural transition when entering and exiting a dark environment, improving the display comfort of the HUD.
[0067] Optionally, the average or weighted value of the ambient light brightness in the second preset scene can be used as the preset ambient light brightness, or the ambient light brightness of the last frame in the second preset scene can be used as the preset ambient light brightness.
[0068] Specifically, based on the range of the two light intensities, it is determined whether the vehicle is in a first preset scene (e.g., before exiting a tunnel). If in the first preset scene, the calculated ambient light brightness is no longer used directly. Instead, the brightness difference between the preset ambient light brightness and the ambient light brightness of the current frame (the moment of first entry into the first preset scene) is calculated. This brightness difference is divided by a preset number of times to obtain the brightness step size to be changed in each frame. Then, the ambient light brightness of each subsequent frame is increased according to this brightness step size until the preset ambient light brightness is reached, thus achieving a smooth brightness transition. If the vehicle is still in the first preset scene after the ambient light brightness has been increased frame by frame to reach the preset ambient light brightness, the ambient light brightness of subsequent frames is maintained at the preset ambient light brightness until the vehicle leaves the first preset scene.
[0069] For example, in the first preset scenario before the vehicle exits the tunnel, if the ambient light brightness of the current frame is 300 lx, the preset ambient light brightness is 800 lx, and the preset number of times is 10, then the brightness step size is 50 lx. When the vehicle is in the scenario before exiting the tunnel, the ambient light brightness of the current frame is calculated to increase by 50 lx from 300 lx every frame interval until the ambient light brightness of the current frame is 800 lx at a certain moment. Then, when the vehicle is still in the scenario before exiting the tunnel, the ambient light brightness of subsequent frames is kept at 800 lx.
[0070] In this way, by gradually dimming the light in advance at fixed steps in the first preset scene, the brightness of the HUD can be smoothly transitioned due to sudden changes in light, avoiding glare from sudden brightness changes and improving visual comfort and driving safety.
[0071] Step 013: Adjust the display brightness of the head-up display device based on the ambient light level.
[0072] Specifically, each ambient light level corresponds to a specific HUD display brightness. The HUD display is controlled based on this brightness, dynamically increasing or decreasing it according to changes in ambient light to ensure the display remains clear and optimally visible. This allows the HUD's content to be accurately distinguished from the environment, enabling drivers to observe precise and clear information, thereby improving driving safety and viewing comfort.
[0073] In one alternative embodiment, please refer to Figure 3 Step 013 includes: Step 0131: Query the target display brightness that matches the ambient light brightness in the preset mapping relationship; Step 0132: Control the display brightness of the head-up display device to the target display brightness.
[0074] The preset mapping relationship represents the correspondence between ambient light brightness and the display brightness of the head-up display device. Optionally, the preset mapping relationship is a one-to-one correspondence between ambient light brightness and the display brightness of the head-up display device, or the variable range of ambient light brightness is divided into multiple brightness intervals, with each brightness interval corresponding to the display brightness of a head-up display device.
[0075] Specifically, a preset mapping relationship is obtained and stored through pre-testing and calibration based on human visual comfort and actual road conditions for later retrieval. The previously calculated accurate ambient light brightness is then substituted into the preset mapping relationship to find the corresponding unique target display brightness. The HUD is then controlled to adjust its display brightness to this target brightness to ensure the display effect matches the current lighting environment.
[0076] For example, by dynamically adjusting the duty cycle of the pulse width modulation wave (PWM wave) of the light-emitting diode (LED) of the thin-film transistor (TFT) liquid crystal display of the HUD, the brightness of the TFT display can be precisely adjusted, thereby making the display brightness of the HUD match the ambient light brightness.
[0077] In this way, by using a preset mapping relationship to look up the table to determine the target display brightness, the brightness that the HUD will display can be determined quickly and accurately, so that the display brightness of the HUD is always in the optimal visual range, improving display comfort and driving safety.
[0078] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0079] To facilitate better implementation of the control method for the head-up display device according to the embodiments of this application, the embodiments of this application also provide a control device for the head-up display device. Please refer to... Figure 11 , Figure 11This is a schematic diagram of the structure of the control device for the head-up display device provided in an embodiment of this application. The control device 200 for the head-up display device includes: The detection module 201 is used to detect the first light intensity and the second light intensity of the head-up display device, wherein the first light intensity is used to characterize the light intensity in the display direction of the head-up display device, and the second light intensity is used to characterize the light intensity in the direction perpendicular to the display direction. The determination module 202 is used to determine the ambient light intensity based on the first light intensity and the second light intensity; The adjustment module 203 is used to adjust the display brightness of the head-up display device based on the ambient light intensity.
[0080] The various modules or units in the control device of the aforementioned head-up display can be implemented entirely or partially through software, hardware, or a combination thereof. These units can be embedded in or independent of the processor in the electronic device in hardware form, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to these units.
[0081] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor calls the computer program stored in the memory to implement the various processes of the above-described control method for the head-up display device, and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0082] Alternatively, the electronic device may be a terminal or a server. See also... Figure 12 , Figure 12 This is a schematic diagram of the structure of an electronic device provided in certain embodiments of this application. The electronic device 300 includes a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. When the computer program stored on the memory 302 is executed by the processor 301, it implements the various processes of the embodiments of the head-up display device control method described above, and achieves the same technical effects. To avoid repetition, it will not be described again here.
[0083] Optionally, such as Figure 12 As shown, the electronic device 300 also includes: a display screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the display screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307. Those skilled in the art will understand that... Figure 12The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0084] The display screen 303 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The display screen 303 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various GUIs of the electronic device. These GUIs can be composed of graphics, text, icons, video, and any combination thereof. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands.
[0085] Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 301. It can also receive and execute commands from the processor 301. The touch panel may cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 301 to determine the type of touch event. Subsequently, the processor 301 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the display screen 303 to achieve input and output functions. However, in some embodiments, the touch panel and the display screen 303 can be implemented as two independent components to achieve input and output functions. That is, the display screen 303 can also be used as part of the input unit 306 to achieve input functions.
[0086] The radio frequency circuit 304 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.
[0087] Audio circuitry 305 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuitry 305 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuitry 305, converted back into audio data, and then processed by processor 301 before being transmitted via radio frequency circuitry 304 to, for example, another electronic device, or output to memory 302 for further processing. Audio circuitry 305 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.
[0088] The input unit 306 can be used to receive input numbers, characters, or object feature information (such as fingerprints, irises, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
[0089] Power supply 307 is used to supply power to the various components of electronic device 300. Optionally, power supply 307 can be logically connected to processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 307 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0090] although Figure 12 As not shown in the figure, electronic device 300 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device and may include components such as... Figure 12 This may indicate more or fewer components, or combinations of certain components, or different component arrangements.
[0091] This application also provides a vehicle. Please refer to the embodiments provided. Figure 13 , Figure 13 This is a schematic diagram of the structure of a vehicle provided in certain embodiments of this application. The vehicle 400 includes a head-up display device 410 and the aforementioned electronic device 300. The electronic device 300 controls the head-up display device 410 to project images to display clear relevant information in real time directly in front of the driver, so that the driver can quickly and effectively obtain relevant information and improve the overall driving experience. Optionally, the head-up display device 410 may include, but is not limited to: a windshield-type head-up display device, a combination mirror-type head-up display device, an augmented reality head-up display device, etc., and is not limited thereto.
[0092] Optionally, the vehicle 400 may also include a light sensor, which collects the light intensity around the vehicle in real time and outputs the light intensity data to the electronic device 300. The electronic device 300 determines the ambient light brightness based on the light intensity data and then controls the display brightness of the head-up display device 410 in real time. The light sensor may include, but is not limited to, ambient light sensors, sunlight sensors, phototransistors, and multi-functional vehicle-mounted sensors (such as rain-light composite sensors), etc., and this application embodiment does not limit this.
[0093] This application also provides a computer-readable storage medium for storing a computer program. This computer-readable storage medium can be applied to an electronic device, and the computer program causes the electronic device to execute the corresponding flow in the control method of the head-up display device in the embodiments of this application; for brevity, further details are omitted here.
[0094] This application also provides a computer program product including computer instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the corresponding flow in the control method of the head-up display device in the embodiments of this application. For simplicity, further details are omitted here.
[0095] It should be understood that the processor in this application may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0096] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0097] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0098] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0099] In the embodiments of this application, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0101] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0102] In addition, the functional units in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0103] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer or a server) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0104] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A control method for a head-up display device, characterized in that, include: The first light intensity and the second light intensity of the head-up display device are detected, wherein the first light intensity is used to characterize the light intensity in the display direction of the head-up display device, and the second light intensity is used to characterize the light intensity in the direction perpendicular to the display direction; The ambient light intensity is determined based on the first light intensity and the second light intensity; The brightness of the head-up display device is adjusted based on the ambient light intensity.
2. The control method according to claim 1, characterized in that, Determining ambient light intensity based on the first light intensity and the second light intensity includes: The ambient light intensity is determined based on the first light intensity, the first weight corresponding to the first light intensity, the second light intensity, and the second weight corresponding to the second light intensity.
3. The control method according to claim 2, characterized in that, The step of determining ambient light intensity based on the first light intensity and the second light intensity further includes: Based on the first target interval where the first light intensity is located and the second target interval where the second light intensity is located, a target interval group is determined, wherein the first target interval is any first preset interval, the second target interval is any second preset interval, the target interval is any preset interval group, and the preset interval group includes any first preset interval and any second preset interval; Based on the target interval group, a mapping is performed to determine the first weight and the second weight.
4. The control method according to claim 1, characterized in that, Determining ambient light intensity based on the first light intensity and the second light intensity includes: Based on the first light intensity and the second light intensity, determine the first ambient light brightness of the current frame; The ambient light intensity of the current frame is determined based on the first ambient light intensity, or based on the first ambient light intensity and the second ambient light intensity of historical frames.
5. The control method according to claim 4, characterized in that, Determining the ambient light brightness of the current frame based on the first ambient light brightness, or based on the first ambient light brightness and the second ambient light brightness of historical frames, includes: Based on the first target interval where the first light intensity is located and the second target interval where the second light intensity is located, a target interval group is determined, wherein the first target interval is any first preset interval, the second target interval is any second preset interval, the target interval is any preset interval group, and the preset interval group includes any first preset interval and any second preset interval; Based on the target interval group, a target filtering strategy is determined through mapping. Each of the preset interval groups corresponds to a preset filtering strategy, which includes: Based on the first ambient light intensity, determine the ambient light intensity of the current frame; or The ambient light intensity of the current frame is determined based on the first ambient light intensity and the second ambient light intensity of historical frames of the target frame number, wherein the target frame number is determined based on the target interval group.
6. The control method according to claim 5, characterized in that, The step of mapping based on the target interval group to determine the target filtering strategy includes: When the target interval group is the first preset interval group, the target filtering strategy is determined to be based on the first ambient light brightness to determine the ambient light brightness of the current frame; When the target interval group is the second preset interval group, the target filtering strategy is determined to be the average value of the second ambient light brightness of historical frames based on the first ambient light brightness and the first preset target frame number, and the ambient light brightness of the current frame is determined. When the target interval group is the third preset interval group, the target filtering strategy is determined to be the average of the second ambient light brightness of historical frames based on the first ambient light brightness and the second preset target frame number, to determine the ambient light brightness of the current frame, wherein the second preset target frame number is greater than the first preset target frame number.
7. The control method according to claim 5 or 6, characterized in that, Determining ambient light intensity based on the first light intensity and the second light intensity includes: If the target interval group is the fourth preset interval group, the current scene is determined to be the first preset scene, and the brightness step size is determined based on the ambient light brightness, preset ambient light brightness and preset number of times in the current frame. When the current scene is the first preset scene, the ambient light brightness is increased frame by frame based on the brightness step size until the ambient light brightness reaches the preset ambient light brightness, and the ambient light brightness is maintained at the preset ambient light brightness.
8. The control method according to claim 7, characterized in that, The preset ambient light intensity is determined based on the ambient light intensity under the second preset scenario, where the target interval group is the scenario corresponding to the fifth preset interval group.
9. The control method according to any one of claims 1-8, characterized in that, Adjusting the display brightness of the head-up display device based on the ambient light brightness includes: The target display brightness that matches the ambient light brightness is queried in the preset mapping relationship, whereby the preset mapping relationship represents the correspondence between the ambient light brightness and the display brightness of the head-up display device; The brightness of the head-up display device is controlled to the target brightness.
10. An electronic device, characterized in that, It includes a memory and a processor; the memory stores a computer program, and the processor executes the control method of the head-up display device as described in any one of claims 1-9 by calling the computer program stored in the memory.
11. A vehicle, characterized in that, Includes a head-up display device and the electronic device as described in claim 10.
12. A computer-readable storage medium, characterized in that, The device contains a computer program that, when executed by a processor, implements the control method for the head-up display device as described in any one of claims 1-9.
13. A computer program product, characterized in that, It includes computer instructions, which, when executed by a processor, implement the control method for the head-up display device as described in any one of claims 1-9.