Anti-glare method, near-eye display device, and computer-readable storage medium

By using the light sensor of the near-eye display device and road facility information to predict changes in light, the light transmittance of the viewing window is automatically adjusted, solving the problem of visual loss caused by sudden changes in light during driving, ensuring that the driver can safely perceive road conditions and reducing safety hazards.

CN118818763BActive Publication Date: 2026-11-06GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310412385.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-17
Publication Date
2026-11-06
Estimated Expiration
2043-04-17

AI Technical Summary

Technical Problem

Existing near-eye display devices cannot effectively avoid short-term visual loss caused by sudden changes in light during driving, posing a safety hazard. Furthermore, the response delay of electrochromic glasses lenses on the market cannot adapt to changes in light in a timely manner.

Method used

By incorporating a light sensor into a near-eye display device and combining it with road infrastructure information to predict changes in light intensity, the device automatically adjusts the light transmittance of the viewing window to adapt to changes in ambient light, including pre-adjustment and calibration adjustment, to ensure that drivers can clearly perceive road conditions.

Benefits of technology

It enables timely and effective avoidance of short-term visual loss in drivers caused by sudden changes in light during driving, reducing safety hazards and optimizing user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118818763B_ABST
    Figure CN118818763B_ABST
Patent Text Reader

Abstract

This application discloses an anti-glare method, a near-eye display device, and a computer-readable storage medium. The anti-glare method, relating to the field of near-eye display devices, includes: obtaining a pre-driving route when the current weather is determined to be sunny; determining road facility information corresponding to each position of the vehicle along the pre-driving route based on the pre-driving route; detecting the first ambient light intensity at the current vehicle position using a light sensor mounted on the near-eye display device; predicting the change in light intensity at the predicted vehicle position in the next clock cycle based on the road facility information; and pre-adjusting the light transmittance of the viewing window of the near-eye display device based on the change in light intensity. This application enables drivers to clearly perceive road conditions while driving, and also effectively avoids short-term visual loss caused by sudden changes in light, thereby reducing safety hazards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of near-eye display devices, and more particularly to an anti-glare method, a near-eye display device, and a computer-readable storage medium. Background Technology

[0002] In recent years, with the development of science and technology and people's increasingly diverse needs, near-eye display devices such as AR glasses or AR helmets have ushered in unprecedented development opportunities. Among them, AR glasses have more and more application scenarios, such as AR teaching and AR exhibition viewing. However, due to the limitations of near-eye display devices, their application in driving scenarios is relatively limited. This is because drivers wearing the near-eye display devices currently on the market cannot effectively ensure driving safety.

[0003] In driving scenarios, drivers often experience impaired visibility due to sudden changes in ambient light, posing a risk of dangerous driving and potential traffic accidents. To address this discomfort, drivers typically wear sunglasses. However, a drawback is the need to remove sunglasses whenever the vehicle passes through shaded areas. This is because, in low light conditions, sunglasses can impair the driver's ability to clearly perceive road conditions, creating a safety hazard. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity can interfere with normal driving maneuvers, posing a significant safety risk.

[0004] Currently, the improvement to these conventional sunglasses on the market is to provide electrochromic lenses that are sensitive to ambient light levels. However, relying solely on external light sensors to drive the lenses to electrochromize has a delay of seconds. This means that a car accident may occur before the sunglasses can electrochromize, making it impossible to avoid the short-term visual loss caused by sudden changes in light (or drastic changes in light intensity) in a timely and effective manner. Summary of the Invention

[0005] The main objective of this application is to provide an anti-glare method, a near-eye display device, and a computer-readable storage medium, which aims to enable drivers to clearly perceive road conditions while driving, and to promptly and effectively avoid short-term visual loss caused by sudden changes in light, thereby reducing safety hazards.

[0006] To achieve the above objectives, this application provides an anti-glare method applied to a near-eye display device, the method comprising: If the current weather is determined to be sunny, a pre-driving route is obtained, and based on the pre-driving route, the road facility information corresponding to each position of the vehicle on the pre-driving route is determined; The light sensor mounted on the near-eye display device detects the first ambient light intensity at the current vehicle location, wherein the current window transmittance of the near-eye display device matches the first ambient light intensity. Based on the road infrastructure information, predict the change in light intensity at the predicted vehicle position in the next clock cycle; Based on the light intensity change information, the light transmittance of the viewing window of the near-eye display device is pre-adjusted.

[0007] Optionally, the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information includes: From the preset light transmittance gradient adjustment mapping table, the target light transmittance gradient value and target adjustment direction mapped by the light intensity change information are obtained, wherein the target adjustment direction is upward adjustment or downward adjustment; The transmittance of the viewing window of the near-eye display device is pre-adjusted in the target adjustment direction according to the target transmittance gradient value.

[0008] Optionally, after the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information, the method further includes: When the vehicle travels to the predicted vehicle location, the actual ambient light intensity at the predicted vehicle location is detected in real time by the light sensor. From the preset transmittance mapping table, the transmittance of the window mapped to the actual ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. When the vehicle travels to the predicted vehicle position, the pre-adjusted window transmittance is calibrated and adjusted according to the target window transmittance.

[0009] Optionally, the step of calibrating and adjusting the pre-adjusted transmittance of the window based on the target transmittance includes: The difference between the target window transmittance and the pre-adjusted window transmittance is calculated to obtain the transmittance difference. If the absolute value of the transmittance difference is greater than a preset threshold, the pre-adjusted transmittance of the window will be adjusted to the target transmittance of the window. Optionally, after the step of adjusting the pre-adjusted window transmittance to the target window transmittance, the method further includes: After associating the target window transmittance with the predicted vehicle position, the data is stored in a preset map transmittance calibration data table. Prior to the step of predicting the change in illuminance at the predicted vehicle position in the next clock cycle based on the road infrastructure information, the method further includes: From the preset map transmittance calibration data table, query whether there is a target window transmittance associated with the predicted vehicle position in the next clock cycle; If so, the transmittance of the near-eye display device's window is pre-adjusted according to the associated target window transmittance; If not, then proceed to the step of predicting the change in light intensity of the vehicle's predicted location in the next clock cycle based on the road infrastructure information.

[0010] Optionally, the step of predicting the change in illuminance at the predicted vehicle location in the next clock cycle based on the road infrastructure information includes: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the road infrastructure information, determine the second ambient light intensity at the predicted vehicle location; The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, which is then used as the light intensity change information of the vehicle at the predicted vehicle location.

[0011] Optionally, the step of determining the second ambient light intensity of the vehicle at the predicted vehicle location based on the road infrastructure information includes: Based on the road infrastructure information, determine whether the vehicle is located in the sunshade area of ​​a road-shading structure at the predicted vehicle location, wherein the road-shading structure includes tunnels, underpasses, or basements; If it is determined that the vehicle is in a sun-shaded area of ​​a road-shaded building, then the second ambient light intensity of the vehicle at the predicted vehicle location is determined based on the pre-calibrated preset light intensity value corresponding to the sun-shaded area.

[0012] Optionally, after the step of determining whether the vehicle is within the sun-shaded area of ​​the predicted vehicle location, the method further includes: If it is determined that the vehicle is not in the sun-shaded area of ​​a road-shaded building, then determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the pre-driving route; Get the current time and determine the sun's position based on the current time; Based on the vehicle heading information, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle orientation corresponding to the predicted vehicle position is determined; Based on the predicted vehicle orientation and the sun's azimuth, the predicted solar incidence angle corresponding to the vehicle's predicted vehicle position is calculated. The second ambient light intensity at the predicted vehicle location is determined based on the predicted solar incidence angle.

[0013] This application also provides a near-eye display device, which is a physical device. The near-eye display device includes: a memory, a processor, and a program of the anti-glare method stored in the memory and executable on the processor. When the program of the anti-glare method is executed by the processor, it can implement the steps of the anti-glare method as described above.

[0014] This application also provides a computer-readable storage medium storing a program for implementing an anti-glare method, the program for implementing the anti-glare method being executed by a processor to implement the steps of the anti-glare method as described above.

[0015] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the anti-glare method described above.

[0016] The technical solution of this application involves obtaining a pre-driving route when the current weather is determined to be sunny. Based on this pre-driving route, road facility information corresponding to each position of the vehicle along the route is determined. A light sensor mounted on the near-eye display device detects the first ambient light intensity at the current vehicle position. The current window transmittance of the near-eye display device is matched with the first ambient light intensity. Then, based on the road facility information, the light intensity change information of the predicted vehicle position in the next clock cycle is predicted. Finally, based on this light intensity change information, the window transmittance of the near-eye display device is pre-adjusted. This allows the driver to drive without any operation when wearing the near-eye display device of this application. This invention predicts changes in ambient light intensity in advance and automatically adjusts the transmittance of the near-eye display window accordingly. Specifically, the transmittance of the near-eye display window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance increases, allowing the driver to clearly perceive road conditions. Conversely, when the vehicle is in an area with high ambient light intensity, the transmittance decreases, preventing drastic changes in light intensity from interfering with driving. This allows the driver to clearly perceive road conditions while effectively mitigating short-term visual loss caused by sudden changes in light, thus reducing driving safety hazards.

[0017] It is worth mentioning that this application combines road facility information to determine the predicted light intensity change information of the vehicle's position in the next clock cycle. This avoids driving scenarios with large changes in ambient light intensity, such as the vehicle entering or leaving road-shading structures (e.g., tunnels, underpasses, basements, or roadside buildings that block sunlight), which can cause discomfort to the human eye. The embodiments of this application dynamically adjust the electrochromic tinting state for different driving scenarios to regulate the intensity of external light, optimizing the user's experience of the virtual image display effect and optical perspective of the smart glasses. In other words, this application uses road facility information to predict the light intensity change information of the driving position in the next clock cycle, and adaptively adjusts the light transmittance of the near-eye display device's window based on this light intensity change information. This effectively avoids visual loss caused by the human eye's inability to adapt to sudden changes in light in a short time, reducing the risk of traffic accidents caused by sudden changes in light. This ensures that while the driver can clearly perceive the road environment, the temporary visual loss caused by drastic changes in ambient light can be avoided in a timely and effective manner, reducing safety hazards. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in this embodiment or the prior art, the accompanying drawings used in the description of the embodiment or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a flowchart illustrating the first embodiment of the anti-glare method of this application; Figure 2 This is a flowchart illustrating the second embodiment of the anti-glare method of this application; Figure 3 This is a schematic diagram illustrating the interaction scenario between the near-eye display device and the vehicle's infotainment system in an embodiment of this application. Figure 4 This is a schematic diagram of the module structure of the anti-glare device according to an embodiment of this application; Figure 5 This is a schematic diagram of the hardware operating environment involved in the near-eye display device in this embodiment.

[0021] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0022] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0023] In this embodiment, the near-eye display device includes, but is not limited to, Mixed Reality (MR) devices (such as MR glasses or MR helmets), Augmented Reality (AR) devices (such as AR glasses or AR helmets), Virtual Reality (VR) devices (such as VR glasses or VR helmets), Extended Reality (XR) devices, or some combination thereof, etc.

[0024] Example 1 In driving scenarios, drivers often experience impaired visibility due to sudden changes in ambient light, posing a risk of dangerous driving and potential traffic accidents. To address this discomfort, drivers typically wear sunglasses. However, a drawback is the need to remove sunglasses whenever the vehicle passes through shaded areas. This is because, in low light conditions, sunglasses can impair the driver's ability to clearly perceive road conditions, creating a safety hazard. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity can interfere with normal driving maneuvers, posing a significant safety risk.

[0025] Currently, the improvement to these conventional sunglasses on the market is to provide electrochromic lenses that are sensitive to ambient light levels. However, relying solely on external light sensors to drive the lenses to electrochromize has a delay of seconds. This means that a car accident may occur before the sunglasses can electrochromize, making it impossible to avoid the short-term visual loss caused by sudden changes in light (or drastic changes in light intensity) in a timely and effective manner.

[0026] Based on this, please refer to Figure 1 This embodiment provides an anti-glare method, the method comprising: Step S10: If the current weather is determined to be sunny, obtain the pre-driving route and determine the road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route. In this embodiment, the road facility information refers more specifically to the road's architectural facilities information. For ease of understanding, this architectural facilities information can specifically refer to whether the vehicle's position in the next clock cycle is within the sun-shaded area of ​​a road-shading structure. This road-shading structure is used to characterize structures that block sunlight, preventing the vehicle from being directly exposed to sunlight. Correspondingly, the sun-shaded area refers to the area where the vehicle is not directly exposed to sunlight (the shaded area). The road-shading structures may include tunnels, underpasses, basements, and roadside buildings, etc.

[0027] This process involves locating the vehicle's current position using GPS (Global Positioning System) navigation and then accessing the internet to obtain officially released weather information corresponding to that location. This weather information may include cloudy, sunny, partly cloudy turning sunny, or rainy conditions. Based on this information, it can be determined whether the current weather is sunny. If sunny, the process then proceeds to obtain a pre-trip route and, based on that route, determine the road infrastructure information corresponding to each location along that route.

[0028] It should be noted that this pre-driving route is the vehicle's navigation route from the starting point to the destination.

[0029] In this embodiment, the driver can locate the current vehicle position using the GPS navigation function of the in-vehicle terminal or other electronic devices (such as a mobile phone). After the driver inputs the destination, a preliminary driving route is obtained. Then, the in-vehicle terminal or other electronic devices communicate with the near-eye display device via Bluetooth or WiFi (Wireless Fidelity) to send the vehicle's preliminary driving route information to the near-eye display device to obtain the current preliminary driving route information. Alternatively, the near-eye display device can use its built-in navigation system to locate the vehicle's current position and directly obtain the preliminary driving route after the driver inputs the destination. It is understood that the preliminary driving route should be updated in real time, because as the vehicle moves, its current position will continuously change, and the starting point of the preliminary driving route is equivalent to the current vehicle position. As the starting point changes, the preliminary driving route is also continuously updated accordingly.

[0030] Typically, users set a driving route (i.e., a pre-driving route) in the navigation system before driving, obtaining information such as road direction (or vehicle heading) and terrain from a high-precision map. Then, they obtain weather information corresponding to the current vehicle location based on GPS information and weather software.

[0031] After step S10, step S20 is executed, in which the first ambient light intensity of the current vehicle position is detected by the light sensor mounted on the near-eye display device, wherein the current window transmittance of the near-eye display device matches the first ambient light intensity. In this embodiment, the first ambient light intensity refers to the ambient light intensity detected by the light sensor when the vehicle is driving at its current position. It should be noted that this ambient light intensity refers to the intensity of sunlight relative to the direct sunlight shining into the driver's eyes.

[0032] In this context, it can be understood that matching the current window transmittance of the near-eye display device with the first ambient light intensity means that the current window transmittance of the near-eye display device should be adapted to the ambient light intensity at the current vehicle location. This prevents mismatches such as low ambient light intensity coupled with high current window transmittance, thereby avoiding situations where the driver cannot clearly perceive the road conditions. In this embodiment, the intensity of direct sunlight in front of the near-eye display device (i.e., the ambient light intensity at the current vehicle location) can be monitored in real time using a light sensor. Normally, the human eye has a maximum threshold of light intensity it can tolerate. Exceeding this threshold makes it difficult to see objects in the environment or causes extreme eye discomfort. By using electrochromic glass or an electrochromic film as the lens of the near-eye display device, the optical properties of the material can undergo stable and reversible color changes under an applied electric field. This manifests as reversible changes in color and transparency, allowing for a near-eye display device where the transmittance of the lens changes with ambient light intensity. In one example, when the current direct sunlight intensity exceeds a predetermined threshold, the control module of the near-eye display device changes the transparency of the lens to alter the transmittance of the display window, ensuring that the light intensity transmitted through the lens remains within an acceptable range for the human eye. This prevents significant changes in the perceived light intensity and ensures driving safety. In another example, when the near-eye display device determines, based on the direct light intensity collected by the light sensor, that the change in light intensity around the glasses exceeds a predetermined threshold and affects the wearer's visual ability, it will control and adjust the light transmittance of the glasses lenses to keep the light intensity passing through the lenses within a suitable range, thereby ensuring the safety of the glasses wearer. The near-eye display device's transmittance coefficient (i.e., window transmittance) is predicted in advance and adjusted in real time based on the direct light intensity of the road scene observed by the driver: as the direct light intensity increases, the current window transmittance of the near-eye display device becomes lower; conversely, as the direct light intensity decreases, the current window transmittance of the near-eye display device becomes higher.

[0033] In this embodiment, the near-eye display device may include an optical sensor (i.e., a light sensor), an application processor, an electrochromic control module, and an electrochromic lens, connected in sequence. The near-eye display device also includes a wireless communication module connected to the application processor. When a user uses the near-eye display device inside a vehicle, the wireless communication module can connect to the vehicle's infotainment system via a gateway, router, Bluetooth, or WiFi. The optical sensor can detect ambient light intensity, and the application processor analyzes the detected ambient light intensity to determine the corresponding current window transmittance. Then, the electrochromic control module adjusts the transparency of the electrochromic lens based on the corresponding current window transmittance. Figure 3 As shown.

[0034] After step S20, step S30 is executed to predict the change in light intensity at the predicted vehicle position in the next clock cycle based on the road facility information. Those skilled in the art will know that, based on the road facility information corresponding to each position of the vehicle on the pre-driving route, it is possible to predict whether the vehicle will drive out of or into the sun-shaded area of ​​the road-shaded building in the next clock cycle, and thus predict whether the light intensity of the vehicle will change drastically in the next clock cycle. In other words, the light intensity change information of the predicted vehicle position in the next clock cycle is determined first, so that the light transmittance of the near-eye display device can be adaptively adjusted in advance based on the light intensity change information of the predicted vehicle position.

[0035] The predicted vehicle position refers to the predicted vehicle position (also known as the driving position) for the next clock cycle.

[0036] In this embodiment, the vehicle position for the next clock cycle corresponding to the current clock cycle needs to be predicted in each clock cycle; that is, one clock cycle is equivalent to one prediction cycle. It should be noted that one clock cycle can be 0.1 seconds, 0.3 seconds, 0.5 seconds, 1 second, or 1.2 seconds. Those skilled in the art can set it according to the actual situation, and this embodiment does not impose specific limitations.

[0037] Understandably, the current vehicle position is often the starting point of the planned route. Based on the current vehicle position, current speed, and planned route, combined with the duration of one clock cycle, the predicted vehicle position for the next clock cycle can be calculated. Specifically, the product of the current speed and the duration of one clock cycle represents the distance the vehicle travels in one clock cycle. Then, based on the current vehicle position, the distance traveled in one clock cycle, and the planned route, the predicted vehicle position for the next clock cycle can be predicted.

[0038] In this embodiment, it is necessary to avoid setting the clock cycle duration too short, which would prevent the vehicle's position in the next clock cycle from being predicted in advance. This would hinder the timely prediction of changes in light intensity at the vehicle's location in the next clock cycle (i.e., the predicted vehicle position), and consequently, the ability to effectively mitigate short-term visual loss caused by sudden changes in light. For example, if the computation time for predicting changes in light intensity at the vehicle's location is 0.03 seconds, and the clock cycle duration is set to 0.02 seconds, then when the vehicle encounters significant changes in light intensity, it will be unable to effectively mitigate the temporary visual loss caused by drastic changes in ambient light. Therefore, the duration of a clock cycle should be greater than or equal to this computation time.

[0039] Additionally, it's important to avoid setting the clock cycle too long. This would result in an excessively long adjustment period for the transmittance of the near-eye display, making it difficult to effectively and promptly mitigate temporary visual loss caused by sudden changes in light intensity. In other words, the optimal clock cycle length is one that closely approximates the computation time required to predict changes in light intensity at the vehicle's location.

[0040] Step S40: Based on the light intensity change information, pre-adjust the light transmittance of the viewing window of the near-eye display device.

[0041] Those skilled in the art will recognize that, based on the information about the change in light intensity at the predicted vehicle position in the next clock cycle (i.e., determining the magnitude of the change in light intensity), it can be determined whether the light intensity of the vehicle will change drastically in the next clock cycle, or whether there will be a sudden change in light intensity. Thus, based on the magnitude of the change in light intensity corresponding to the information about the change in light intensity, the transmittance of the near-eye display device's window can be pre-adjusted so that the transmittance of the near-eye display device's window can adapt to changes in ambient light intensity during driving. This allows the driver to clearly perceive the road conditions while effectively and promptly avoiding short-term visual loss caused by sudden changes in light intensity.

[0042] In this embodiment, the light transmittance of the viewing window refers to the light transmittance of the spectacle lens of the near-eye display device. The light transmittance of the viewing window can be changed by altering the transparency of the spectacle lens. When a driver wears the near-eye display device, their line of sight needs to pass through the spectacle lens of the device to visually perceive the external environment.

[0043] In this embodiment, electrochromic materials can achieve switching of optical performance between different transmittances. By applying electrochromic materials to the lenses of near-eye display devices, the intensity of light entering the human eye through the lenses can be adjusted, providing users with a more comfortable user experience.

[0044] As an example, this near-eye display device includes spectacle lenses with a transmittance coefficient that can vary between a maximum and a minimum value. The transmittance coefficient of the spectacle lenses can be controlled via a communication protocol to adjust the light transmittance of the viewing window of the near-eye display device. Specifically, the transmittance coefficient can be varied according to a pulse width modulation (PWM) mode.

[0045] In this embodiment, the transmittance of the current window of the near-eye display device is pre-adjusted based on the light intensity change information of the vehicle position in the next clock cycle, so as to facilitate the adaptive adjustment of the transmittance of the near-eye display device in advance, so that the transmittance of the near-eye display device can adapt to the changes in ambient light intensity during driving.

[0046] For example, the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information includes: Step A10: From the preset light transmittance gradient adjustment mapping table, retrieve the target light transmittance gradient value and target adjustment direction mapped by the light intensity change information, wherein the target adjustment direction is upward adjustment or downward adjustment; Step A20: The transmittance of the viewing window of the near-eye display device is pre-adjusted in the target adjustment direction according to the target transmittance gradient value.

[0047] It is understandable that the light transmittance gradient adjustment mapping table stores various light intensity change information, as well as the target light transmittance gradient value and target adjustment direction mapped by each light intensity change information.

[0048] In this embodiment, it can be understood that upward adjustment refers to increasing the light transmittance of the near-eye display window, while downward adjustment refers to decreasing the light transmittance of the near-eye display window. The target transmittance gradient value refers to the specific amount by which the transmittance of the window needs to be increased / decreased. For example, if the target transmittance gradient value is a first gradient value and the target adjustment direction is upward adjustment, it means increasing the transmittance of the near-eye display window by the first gradient value. Conversely, if the target transmittance gradient value is a second gradient value and the target adjustment direction is downward adjustment, it means decreasing the transmittance of the near-eye display window by the second gradient value.

[0049] This embodiment retrieves the target transmittance gradient value and target adjustment direction mapped by the light intensity change information from a preset transmittance gradient adjustment mapping table. The target adjustment direction is either upward or downward adjustment. Then, the transmittance of the near-eye display device's window is pre-adjusted in the target transmittance gradient value in the target adjustment direction. This allows the transmittance of the near-eye display device in this embodiment to adapt to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display device's window will increase accordingly, and the transmittance of the near-eye display device's window will decrease accordingly. This enables accurate and timely avoidance of short-term visual loss caused by sudden changes in light intensity to the driver.

[0050] The technical solution of this application embodiment involves obtaining a pre-driving route when the current weather is determined to be sunny. Based on the pre-driving route, road facility information corresponding to each position of the vehicle along the route is determined. A first ambient light intensity at the current vehicle position is detected using a light sensor mounted on the near-eye display device. The current window transmittance of the near-eye display device is matched with the first ambient light intensity. Then, based on the road facility information, the light intensity change information of the predicted vehicle position in the next clock cycle is predicted. Finally, based on the light intensity change information, the window transmittance of the near-eye display device is pre-adjusted. This allows the driver to drive without any manual operation when wearing the near-eye display device of this application embodiment. The system predicts changes in ambient light intensity in advance and automatically adjusts the transmittance of the near-eye display device's window accordingly. Specifically, the transmittance of the near-eye display device's window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display device's window increases accordingly, allowing the driver to clearly perceive the road conditions. Conversely, when the vehicle is driving in an area with high ambient light intensity, the transmittance of the near-eye display device's window decreases accordingly, preventing drastic changes in light intensity from interfering with driving. This allows the driver to clearly perceive the road conditions while effectively avoiding short-term visual loss caused by sudden changes in light, thus reducing driving safety hazards.

[0051] It is worth mentioning that this application embodiment combines road facility information to determine the predicted light intensity change information of the vehicle's position in the next clock cycle. This avoids driving scenarios with large changes in ambient light intensity, such as the vehicle entering or leaving road-shading structures (e.g., tunnels, underpasses, basements, or roadside buildings that block sunlight), which can cause discomfort to the human eye. This application embodiment dynamically adjusts the electrochromic tinting state for different driving scenarios to regulate the intensity of external light, optimizing the user's experience of the virtual image display effect and optical perspective of the smart glasses. In other words, this application embodiment predicts the light intensity change information of the driving position in the next clock cycle using road facility information and adaptively adjusts the light transmittance of the near-eye display device based on this light intensity change information. This effectively avoids visual loss caused by the human eye's inability to adapt to sudden changes in light in a short time, reducing the risk of traffic accidents caused by sudden changes in light. This ensures that while the driver can clearly perceive the road environment, the temporary visual loss caused by drastic changes in ambient light can be avoided in a timely and effective manner, reducing safety hazards.

[0052] In one possible implementation, after the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information, the method further includes: Step B10: When the vehicle travels to the predicted vehicle position, the actual ambient light intensity at the predicted vehicle position is detected in real time by the light sensor. In this embodiment, the actual ambient light intensity refers to the ambient light intensity detected by the light sensor when the vehicle is driving at the predicted vehicle position. It should be noted that the ambient light intensity refers to the sunlight intensity relative to the direct sunlight shining into the driver's eyes.

[0053] Step B20: Query the window transmittance mapped to the actual ambient light intensity from the preset transmittance mapping table; Understandably, this transmittance mapping table stores multiple different ambient light intensity values, as well as a one-to-one mapping relationship between each ambient light intensity value and the transmittance of the window. Therefore, the transmittance of the window mapped to the actual ambient light intensity can be obtained by referring to this transmittance mapping table.

[0054] Step B30: Using the mapped window transmittance as the target window transmittance, when the vehicle travels to the predicted vehicle position, the pre-adjusted window transmittance is calibrated and adjusted according to the target window transmittance.

[0055] It should be noted that, due to the possibility of prediction errors in the method of "determining the light intensity change information of the vehicle at the predicted vehicle position based on road facility information" described in the above embodiment, the predicted light intensity change information may not be completely accurate. In this case, the transmittance of the viewing window of the near-eye display device can be pre-adjusted based on the predicted light intensity change information. Then, the light sensor on the near-eye display device can detect the actual ambient light intensity in real time at the predicted vehicle position. The transmittance of the viewing window mapped to the actual ambient light intensity can be obtained from a preset transmittance mapping table, and the mapped viewport transmittance can be displayed. The light transmittance is used as the target window transmittance. Based on this target window transmittance, the pre-adjusted window transmittance is calibrated and adjusted. This corrects the predicted result, minimizing the prediction error caused by cloud cover or building reflection of sunlight on changes in light intensity. This allows for more accurate adjustment of the near-eye display window transmittance, enabling it to adapt to changes in ambient light intensity during driving. Furthermore, it ensures that while drivers can clearly perceive road conditions, it also effectively avoids short-term visual loss caused by sudden changes in light, thus reducing safety hazards.

[0056] In one feasible embodiment, the step of calibrating the pre-adjusted transmittance of the window based on the target transmittance includes: Step C10: Calculate the difference between the transmittance of the target window and the transmittance of the pre-adjusted window to obtain the transmittance difference. Step C20: If the absolute value of the transmittance difference is greater than a preset threshold, then the pre-adjusted transmittance of the window is adjusted to the target transmittance of the window.

[0057] This embodiment calculates the difference between the target window transmittance and the pre-adjusted window transmittance. If the absolute value of the transmittance difference is greater than a preset threshold, the pre-adjusted window transmittance is adjusted to the target window transmittance, thereby accurately calibrating and adjusting the transmittance of the near-eye display device so that the user's eyes can better adapt to the current ambient light intensity.

[0058] Furthermore, in one possible implementation, after the step of adjusting the pre-adjusted window transmittance to the target window transmittance, the method further includes: Step D10: After associating the target window transmittance with the predicted vehicle position, store it in a preset map transmittance calibration data table; Step D20, prior to the step of predicting the change in illuminance at the predicted vehicle position in the next clock cycle based on the road infrastructure information, the method further includes: Step D30: From the preset map transmittance calibration data table, query whether there is a target window transmittance associated with the predicted vehicle position in the next clock cycle. Step D40: If yes, then pre-adjust the transmittance of the near-eye display device window according to the associated target window transmittance; Step D50, if not, then execute: the step of predicting the change in light intensity of the vehicle's predicted position in the next clock cycle based on the road facility information.

[0059] This embodiment, after adjusting the pre-adjusted window transmittance to the target window transmittance, associates the target window transmittance with the predicted vehicle position and stores it in a preset map transmittance calibration data table. This allows the system to directly retrieve the target window transmittance associated with the predicted vehicle position from the data stored in the map transmittance calibration data table when the vehicle needs to pass through the predicted vehicle position again. The near-eye display device's window transmittance can then be directly adjusted to the associated target window transmittance, eliminating the need to obtain road facility information for the driving area. Based on this road facility information, the system can predict the light intensity change information at the predicted vehicle position, thereby reducing the computational load on the near-eye display device and improving the accuracy of analyzing the target window transmittance matched to the predicted vehicle position. This ensures timely and effective avoidance of short-term visual loss caused by sudden changes in light.

[0060] Example 2 Based on the first embodiment of this application, in another embodiment of this application, the same or similar content as in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 The step of predicting the change in light intensity at the predicted vehicle position in the next clock cycle based on the road infrastructure information includes: Step S31: Obtain the current driving speed of the vehicle, and predict the vehicle position for the next clock cycle based on the current vehicle position, the current driving speed, and the pre-driving route. Step S32: Determine the second ambient light intensity of the vehicle at the predicted vehicle location based on the road infrastructure information; Step S33: Calculate the difference between the first ambient light intensity and the second ambient light intensity to obtain light intensity difference information, and use the light intensity difference information as the light intensity change information of the vehicle at the predicted vehicle position.

[0061] In this embodiment, the second ambient light intensity is the ambient light intensity predicted when the vehicle is traveling at the predicted vehicle location based on road infrastructure information.

[0062] This embodiment obtains the vehicle's current driving speed, predicts the vehicle's position for the next clock cycle based on the current vehicle position, current driving speed, and pre-driving route, and determines the second ambient light intensity at the predicted vehicle position based on the road facility information. Then, the difference between the first ambient light intensity and the second ambient light intensity is calculated, thereby accurately calculating the light intensity change information of the vehicle at the predicted vehicle position.

[0063] In one possible implementation, the step of determining the second ambient light intensity of the vehicle at the predicted vehicle location based on the road infrastructure information includes: Step E10: Based on the road facility information, determine whether the vehicle is located in the sunshade area of ​​a road shading structure at the predicted vehicle location, wherein the road shading structure includes tunnels, underpasses, or basements. Step E20: If it is determined that the vehicle is in the sunlight-shaded area of ​​the road-shaded building, then the second ambient light intensity of the vehicle at the predicted vehicle position is determined according to the preset light intensity value corresponding to the sunlight-shaded area.

[0064] It is understood that the preset light intensity value is a fixed value pre-calibrated based on the sun-shaded area. The magnitude of the preset light intensity value is not specifically limited in this embodiment, but is based on more realistically and accurately reflecting the light intensity of the sun-shaded area.

[0065] This embodiment determines that when a vehicle is in a sun-shaded area at its predicted location, a pre-defined preset light intensity value corresponding to that sun-shaded area is used as the second ambient light intensity at the predicted vehicle location. This allows for accurate prediction of the direct sunlight intensity that the driver's eyes will face when the vehicle is in the predicted location. This facilitates the subsequent determination of light intensity changes at the predicted vehicle location based on the predicted direct sunlight intensity. Based on this light intensity change information, the transmittance of the near-eye display device's window is pre-adjusted, thereby accurately and effectively mitigating short-term visual loss caused by sudden changes in light.

[0066] In one implementable embodiment, after the step of determining whether the vehicle's predicted location is within the sun-shaded area of ​​a road-shaded structure, the method further includes: Step F10: If it is determined that the vehicle is not in the sunshade area of ​​the road-shading building, then determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the pre-driving route. It should be noted that the vehicle heading information is information that can be used to characterize the vehicle's heading angle or azimuth angle. For example, the vehicle's current heading information is traveling from south to north, from north to south, from northeast to southwest, or from west to east.

[0067] As those skilled in the art will know, terrain is also called landform. It is the general term for all the undulating shapes on the Earth's surface, and in surveying, it refers to the undulating shapes of the Earth's surface and the fixed objects distributed on the ground. Landform, on the other hand, generally refers to the state of elevation and undulation of the ground. For example, mountains have higher elevations, while plains are often low, flat, and open. It is easy to understand that, based on the terrain information of the area corresponding to the current vehicle's location, it can be determined whether the vehicle is traveling from higher to lower elevations (i.e., downhill) and the steepness of the elevation drop (i.e., the downhill gradient), or from lower to higher elevations (i.e., uphill) and the steepness of the elevation rise (i.e., the uphill gradient).

[0068] In this embodiment, if it is determined that the vehicle will not enter the sun-shaded area of ​​the road-shading building in the next clock cycle, further calculations and analyses are needed, combining the sun's azimuth, the vehicle's predicted heading angle, and the predicted pitch angle, to predict the ambient light intensity at the vehicle's predicted position in the next clock cycle. The calculations and analyses of the vehicle's predicted heading angle and pitch angle are described in detail later and will not be repeated here.

[0069] Step F20: Obtain the current time and determine the sun's position based on the current time; It is known that the sun's daily trajectory follows a certain pattern, namely, rising in the east and setting in the west. The sun's daily path always begins in the east, passes through the south, and then sets in the west. It is easy to understand that the sun's position often differs at different times of the day. Therefore, the sun's position can be determined based on the current time.

[0070] Step F30: Based on the vehicle heading information, determine the predicted vehicle heading angle corresponding to the predicted vehicle position, and based on the terrain information, determine the predicted vehicle pitch angle corresponding to the predicted vehicle position. The predicted vehicle heading angle refers to the vehicle heading angle at the predicted vehicle position, which is also the vehicle heading angle at the vehicle's position in the next clock cycle. Correspondingly, the predicted vehicle pitch angle refers to the vehicle pitch angle at the predicted vehicle position, which is also the vehicle pitch angle at the vehicle's position in the next clock cycle.

[0071] In this embodiment, the predicted vehicle heading angle corresponding to the predicted vehicle position can be determined based on the vehicle heading information. Furthermore, since the terrain information at the vehicle's location can be used to predict whether the vehicle will be traveling from high to low terrain (i.e., downhill) and the steepness of the descent (i.e., downhill gradient) or from low to high terrain (i.e., uphill) and the steepness of the ascent (i.e., uphill gradient) in the next clock cycle, it can be determined whether the vehicle is traveling uphill, downhill, or on a flat surface. If it is uphill or downhill, the gradient is further determined, thereby determining the predicted vehicle pitch angle corresponding to the predicted vehicle position.

[0072] Step F40: Determine the predicted vehicle heading at the predicted vehicle position based on the predicted vehicle heading angle and the predicted vehicle pitch angle. In this embodiment, the predicted vehicle heading is the vehicle heading at the predicted vehicle position (the actual pointing angle of the vehicle's head in three-dimensional space), that is, the vehicle heading at the driving position in the next clock cycle.

[0073] Step F50: Based on the predicted vehicle heading and the sun's azimuth, calculate the predicted solar incidence angle corresponding to the vehicle's predicted vehicle position. In this embodiment, the predicted solar incidence angle is the solar incidence angle corresponding to the vehicle's driving position in the next clock cycle (the angle formed between the solar beam and the vehicle, which is considered as a line segment perpendicular to the ground).

[0074] Step F60: Determine the second ambient light intensity of the vehicle at the predicted vehicle location based on the predicted solar incidence angle. For example, step F60, the step of determining the second ambient light intensity of the vehicle at the predicted vehicle location based on the predicted solar incidence angle, includes: Step G10: Determine the pre-calibrated direct light intensity weight corresponding to the predicted solar incident angle; It should be noted that different predicted solar incidence angles often correspond to different direct light intensity weights. For example, the closer the predicted solar incidence angle is to 90 degrees, meaning the sunlight is more perpendicular to the vehicle, the greater the direct light intensity weight. This embodiment does not specifically limit the direct light intensity weight mapped to different predicted solar incidence angles. For example, when the predicted solar incidence angle is 90 degrees, the direct light intensity weight can be 0.95, while when the predicted solar incidence angle is 0 degrees or 180 degrees, the direct light intensity weight can be 0.05.

[0075] Step G20: Obtain current weather information and determine the total ambient light intensity corresponding to the predicted vehicle location based on the current weather information; Those skilled in the art will understand that the total ambient light intensity corresponding to the predicted vehicle location can be determined based on the current weather information of the area corresponding to the predicted vehicle location. For example, the total ambient light intensity is often higher on sunny days and lower on cloudy or rainy days. Furthermore, the total ambient light intensity can be accurately determined by considering the current time and season; for instance, the total ambient light intensity is often lower in the morning and evening and higher at midday. The total ambient light intensity is often higher in summer and lower in winter. Therefore, the total ambient light intensity corresponding to the predicted vehicle location can be calculated based on the current weather information for the current season and time, using a machine learning algorithm model based on big data.

[0076] Step G30: The product of the direct light intensity weight and the total ambient light intensity is used as the second ambient light intensity of the vehicle at the predicted vehicle position. In this embodiment, the predicted vehicle heading angle and predicted vehicle pitch angle are used to determine the predicted vehicle orientation at the predicted vehicle position. To aid understanding, an example is given: using true north as a reference (0 degrees), rotating clockwise, 90 degrees corresponds to true east, and 120 degrees corresponds to 30 degrees east of south. Using the pitch angle on a flat road (without steep slopes) as a reference (0 degrees), the pitch angle is positive when going uphill and negative when going downhill. The specific value of the pitch angle is related to the steepness of the slope. When the vehicle's heading angle is 160 degrees and the predicted pitch angle is -30 degrees, it can be determined that the vehicle's heading is 70 degrees south of east, and the vehicle's heading is angled downwards at a 30-degree angle to the horizon. Combined with the sun's azimuth at the vehicle's position in the next clock cycle, the predicted solar incidence angle corresponding to the vehicle's position in the next clock cycle can be calculated. This allows for the accurate determination of the second ambient light intensity at the vehicle's predicted position based on the predicted solar incidence angle. Subsequently, based on this second ambient light intensity, the light intensity change information at the vehicle's predicted position can be determined. Based on this light intensity change information, the transmittance of the near-eye display device's window can be pre-adjusted, thereby accurately and effectively avoiding short-term visual loss caused by sudden changes in light.

[0077] Example 3 This invention also provides an anti-glare device, please refer to... Figure 4 The anti-glare device is applied to near-eye display devices, and the anti-glare device includes: The acquisition module 10 is configured to acquire a pre-driving route when the current weather is determined to be sunny, and to determine the road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route. The detection module 20 is configured to detect the first ambient light intensity of the current vehicle position through the light sensor mounted on the near-eye display device, wherein the current window transmittance of the near-eye display device matches the first ambient light intensity. Prediction module 30 is configured to predict the change in light intensity at the predicted vehicle position in the next clock cycle based on the road infrastructure information. The adjustment module 40 is configured to pre-adjust the light transmittance of the viewing window of the near-eye display device based on the light intensity change information.

[0078] Optionally, the adjustment module 40 is also configured as follows: From the preset light transmittance gradient adjustment mapping table, the target light transmittance gradient value and target adjustment direction mapped by the light intensity change information are obtained, wherein the target adjustment direction is upward adjustment or downward adjustment; The transmittance of the viewing window of the near-eye display device is pre-adjusted in the target adjustment direction according to the target transmittance gradient value.

[0079] Optionally, the adjustment module 40 is also configured as follows: When the vehicle travels to the predicted vehicle location, the actual ambient light intensity at the predicted vehicle location is detected in real time by the light sensor. From the preset transmittance mapping table, the transmittance of the window mapped to the actual ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. When the vehicle travels to the predicted vehicle position, the pre-adjusted window transmittance is calibrated and adjusted according to the target window transmittance.

[0080] Optionally, the adjustment module 40 is also configured as follows: The difference between the target window transmittance and the pre-adjusted window transmittance is calculated to obtain the transmittance difference. If the absolute value of the transmittance difference is greater than a preset threshold, the pre-adjusted transmittance of the window will be adjusted to the target transmittance of the window.

[0081] Optionally, after the step of adjusting the pre-adjusted window transmittance to the target window transmittance, the adjustment module 40 is further configured to: After associating the target window transmittance with the predicted vehicle position, the data is stored in a preset map transmittance calibration data table. Before the step of predicting the change in light intensity of the vehicle's predicted position in the next clock cycle based on the road infrastructure information, the adjustment module 40 is further configured to: From the preset map transmittance calibration data table, query whether there is a target window transmittance associated with the predicted vehicle position in the next clock cycle; If so, the transmittance of the near-eye display device's window is pre-adjusted according to the associated target window transmittance; If not, then proceed to the step of predicting the change in light intensity of the vehicle's predicted location in the next clock cycle based on the road infrastructure information.

[0082] Optionally, the prediction module 30 is also configured as follows: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the road infrastructure information, determine the second ambient light intensity at the predicted vehicle location; The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, which is then used as the light intensity change information of the vehicle at the predicted vehicle location.

[0083] Optionally, the prediction module 30 is also configured as follows: Based on the road infrastructure information, determine whether the vehicle is located in the sunshade area of ​​a road-shading structure at the predicted vehicle location, wherein the road-shading structure includes tunnels, underpasses, or basements; If it is determined that the vehicle is in a sun-shaded area of ​​a road-shaded building, then the second ambient light intensity of the vehicle at the predicted vehicle location is determined based on the pre-calibrated preset light intensity value corresponding to the sun-shaded area.

[0084] Optionally, the prediction module 30 is also configured as follows: If it is determined that the vehicle is not in the sun-shaded area of ​​a road-shaded building, then determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the pre-driving route; Get the current time and determine the sun's position based on the current time; Based on the vehicle heading information, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle orientation corresponding to the predicted vehicle position is determined; Based on the predicted vehicle orientation and the sun's azimuth, the predicted solar incidence angle corresponding to the vehicle's predicted vehicle position is calculated. The second ambient light intensity at the predicted vehicle location is determined based on the predicted solar incidence angle. The anti-glare device provided in this invention, employing the anti-glare method described in Embodiment 1 or Embodiment 2, enables drivers to clearly perceive road conditions while effectively and promptly avoiding short-term visual loss caused by sudden changes in light intensity. Compared to the prior art, the beneficial effects of the anti-glare device provided in this invention are the same as those of the anti-glare methods provided in the above embodiments, and other technical features of the anti-glare device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.

[0085] Example 4 This invention provides a near-eye display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the anti-glare method in the first embodiment described above.

[0086] The following is for reference. Figure 5 The diagram illustrates a structural schematic suitable for implementing near-eye display devices according to embodiments of the present disclosure. The near-eye display devices in embodiments of the present disclosure include, but are not limited to, Mixed Reality (MR) devices (e.g., MR glasses or MR helmets), Augmented Reality (AR) devices (e.g., AR glasses or AR helmets), Extended Reality (XR) devices, or some combination thereof. Figure 5 The near-eye display device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments disclosed herein.

[0087] like Figure 5 As shown, the near-eye display device may include a processing unit 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM 1002) or a program loaded from a storage device into a random access memory (RAM 1004). The RAM 1004 also stores various programs and data required for the operation of the near-eye display device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface is also connected to the bus 1005.

[0088] Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touchscreens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the near-eye display device to communicate wirelessly or wiredly with other devices to exchange data. Although near-eye display devices with various systems are shown in the figures, it should be understood that it is not required to implement or possess all the systems shown. More or fewer systems may be implemented alternatively.

[0089] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of embodiments of this disclosure.

[0090] The near-eye display device provided by this invention, employing the anti-glare method in the above embodiments, enables drivers to clearly perceive road conditions while effectively and promptly avoiding short-term visual loss caused by sudden changes in light. Compared with the prior art, the beneficial effects of the near-eye display device provided by this invention are the same as those of the anti-glare method provided in the above embodiments, and other technical features of this near-eye display device are the same as those disclosed in the previous embodiment method, and will not be repeated here.

[0091] It should be understood that various parts of this disclosure can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.

[0092] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

[0093] Example 5 This invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the anti-glare method in the above embodiments.

[0094] The computer-readable storage medium provided in this embodiment of the invention may be, for example, a USB flash drive, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0095] The aforementioned computer-readable storage medium may be included in the near-eye display device; or it may exist independently and not assembled into the near-eye display device.

[0096] The aforementioned computer-readable storage medium carries one or more programs that, when executed by a near-eye display device, cause the near-eye display device to: obtain a pre-driving route when the current weather is determined to be sunny; determine road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route; detect a first ambient light intensity at the current vehicle position using a light sensor mounted on the near-eye display device, wherein the current window transmittance of the near-eye display device matches the first ambient light intensity; predict the change in light intensity at the predicted vehicle position in the next clock cycle based on the road facility information; and pre-adjust the window transmittance of the near-eye display device based on the change in light intensity.

[0097] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0098] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0099] The modules described in the embodiments of this disclosure can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.

[0100] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the aforementioned anti-glare method. This enables drivers to clearly perceive road conditions while driving, and also effectively avoids short-term visual loss caused by sudden changes in light intensity. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this invention are the same as those of the anti-glare method provided in Embodiment 1 or Embodiment 2, and will not be repeated here.

[0101] Example 6 This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the anti-glare method described above.

[0102] The computer program product provided in this application enables drivers to clearly perceive road conditions while driving, and also effectively and promptly avoids short-term visual loss caused by sudden changes in light. Compared with the prior art, the beneficial effects of the computer program product provided in this embodiment are the same as those of the anti-glare methods provided in Embodiment 1 or Embodiment 2 above, and will not be repeated here.

[0103] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent scope of this application.

Claims

1. An anti-glare method, characterized in that, The anti-glare method is applied to near-eye display devices, and the method includes: If the current weather is determined to be sunny, a pre-driving route is obtained, and based on the pre-driving route, the road facility information corresponding to each position of the vehicle on the pre-driving route is determined; The light sensor mounted on the near-eye display device detects the first ambient light intensity at the current vehicle location, wherein the current window transmittance of the near-eye display device matches the first ambient light intensity. Based on the road infrastructure information, predict the change in light intensity at the predicted vehicle position in the next clock cycle; Based on the light intensity change information, the light transmittance of the viewing window of the near-eye display device is pre-adjusted; The step of predicting the change in light intensity at the predicted vehicle location in the next clock cycle based on the road infrastructure information includes: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the road infrastructure information, determine whether the vehicle is located in the sunshade area of ​​a road-shading structure at the predicted vehicle location, wherein the road-shading structure includes tunnels, underpasses, or basements; If the vehicle is located in a sun-shaded area of ​​a road-shaded building, then the second ambient light intensity at the predicted vehicle location is determined based on a pre-defined preset light intensity value corresponding to the sun-shaded area. The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, and the light intensity difference information is used as the light intensity change information of the vehicle at the predicted vehicle position. After determining whether the vehicle is located within the sun-shaded area of ​​the road-shaded structure at the predicted vehicle position, the method further includes: If it is determined that the vehicle is not in the sun-shaded area of ​​a road-shaded building, then determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the pre-driving route; Get the current time and determine the sun's position based on the current time; Based on the vehicle heading information, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle orientation corresponding to the predicted vehicle position is determined; Based on the predicted vehicle orientation and the sun's azimuth, the predicted solar incidence angle corresponding to the vehicle's predicted vehicle position is calculated. The second ambient light intensity at the predicted vehicle location is determined based on the predicted solar incidence angle.

2. The anti-glare method as described in claim 1, characterized in that, The step of pre-adjusting the light transmittance of the viewing window of the near-eye display device based on the light intensity change information includes: From the preset light transmittance gradient adjustment mapping table, the target light transmittance gradient value and target adjustment direction mapped by the light intensity change information are obtained, wherein the target adjustment direction is upward adjustment or downward adjustment; The transmittance of the viewing window of the near-eye display device is pre-adjusted in the target adjustment direction according to the target transmittance gradient value.

3. The anti-glare method as described in claim 1, characterized in that, After the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information, the method further includes: When the vehicle travels to the predicted vehicle location, the actual ambient light intensity at the predicted vehicle location is detected in real time by the light sensor. From the preset transmittance mapping table, the transmittance of the window mapped to the actual ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. When the vehicle travels to the predicted vehicle position, the pre-adjusted window transmittance is calibrated and adjusted according to the target window transmittance.

4. The anti-glare method as described in claim 3, characterized in that, The step of calibrating and adjusting the pre-adjusted transmittance of the window based on the target transmittance includes: The difference between the target window transmittance and the pre-adjusted window transmittance is calculated to obtain the transmittance difference. If the absolute value of the transmittance difference is greater than a preset threshold, the pre-adjusted transmittance of the window will be adjusted to the target transmittance of the window.

5. The anti-glare method as described in claim 4, characterized in that, After the step of adjusting the pre-adjusted window transmittance to the target window transmittance, the method further includes: After associating the target window transmittance with the predicted vehicle position, the data is stored in a preset map transmittance calibration data table. Prior to the step of predicting the change in illuminance at the predicted vehicle position in the next clock cycle based on the road infrastructure information, the method further includes: From the preset map transmittance calibration data table, query whether there is a target window transmittance associated with the predicted vehicle position in the next clock cycle; If so, the transmittance of the near-eye display device's window is pre-adjusted according to the associated target window transmittance; If not, then proceed to the step of predicting the change in light intensity of the vehicle's predicted location in the next clock cycle based on the road infrastructure information.

6. A near-eye display device, characterized in that, The near-eye display device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the steps of the anti-glare method according to any one of claims 1 to 5.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing the anti-glare method, which is executed by a processor to implement the steps of the anti-glare method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Strong light direct illumination detecting method and device

    CN108944364A

  • Driving environment brightness adjusting method and system

    CN110047281A