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

By predicting the sunlight conditions at the vehicle's location, the system automatically adjusts the transparency of the near-eye display, solving the glare problem caused by direct sunlight while driving, ensuring clear visibility for the driver, and reducing safety hazards.

CN116360108BActive Publication Date: 2026-01-27GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310295267.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2026-01-27
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

Existing near-eye display devices cannot effectively prevent glare caused by direct sunlight while driving, resulting in blurred vision for the driver and posing a safety hazard.

Method used

By acquiring information on vehicle heading, terrain, and road infrastructure along the pre-trip route, the system predicts whether the vehicle will be in direct sunlight during the next clock cycle and automatically adjusts the transparency of the near-eye display window based on the prediction results to avoid direct sunlight.

Benefits of technology

It enables automatic adjustment of window transparency during driving to prevent direct sunlight from interfering with the driver's vision and improve driving safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116360108B_ABST
    Figure CN116360108B_ABST
Patent Text Reader

Abstract

The application discloses a glare prevention method and device, a near-eye display device and a readable storage medium, and relates to the field of near-eye display devices.The glare prevention method comprises the following steps: determining vehicle heading information, topographic information and road facility information corresponding to each position of a vehicle on a pre-travel route; predicting whether the driving position of the vehicle in the next clock cycle is in a direct sunlight state according to the vehicle heading information, the topographic information and the road facility information; and adjusting the current window transparency of the near-eye display device according to the prediction result.The application can improve the convenience of unlocking the near-eye display device while ensuring the safety of the private information of the user.The application can help the driver clearly perceive the road environment while avoiding the strong light glare phenomenon on the driver in the driving process, so as to reduce the 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, apparatus, near-eye display device, and 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 situations, direct sunlight often shines into the eyes. When this happens, drivers may experience glare and difficulty seeing their surroundings, posing a risk of dangerous driving and potentially causing traffic accidents. To address this discomfort, traditional vehicles are often equipped with sun visors to prevent direct sunlight from entering the eyes, or drivers rely on wearing sunglasses.

[0004] However, sun visors lack flexibility in their anti-glare mechanism. When glare is reduced in one area, it often results in temporary obstruction of vision in other areas where glare is not needed. Therefore, this anti-glare technology is ineffective and poses certain safety hazards. The disadvantage of drivers wearing sunglasses is that they need to remove them whenever the vehicle passes through shaded areas. This is because, in low light conditions, wearing sunglasses can impair the driver's perception of road conditions, creating a driving safety risk. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity during driving can affect the driver's normal driving actions, still posing a significant safety hazard.

[0005] 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, which may result in a car accident before the sunglasses can electrochromize, making it impossible to avoid the glare caused to the driver in a timely and effective manner. Summary of the Invention

[0006] The main objective of this application is to provide an anti-glare method, device, near-eye display device, and readable storage medium, which aims to enable drivers to clearly perceive road conditions while driving, and to effectively and promptly avoid strong glare from the driver, thereby reducing safety hazards.

[0007] To achieve the above objectives, this application provides an anti-glare method applied to a near-eye display device, the method comprising:

[0008] If the current weather is determined to be sunny, the pre-driving route is obtained, and based on the pre-driving route, the vehicle heading information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route are determined;

[0009] Based on the vehicle heading information, terrain information, and road facility information, predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight.

[0010] The transparency of the current window of the near-eye display device is adjusted based on the prediction result of whether the driving position in the next clock cycle is under direct sunlight.

[0011] Optionally, the step of predicting whether the vehicle's position in the next clock cycle will be under direct sunlight based on the vehicle's heading information, terrain information, and road infrastructure information includes:

[0012] Obtain the current vehicle position and current driving speed, and based on the current vehicle position, current driving speed and the pre-driving route, predict the predicted vehicle position for the next clock cycle;

[0013] Based on the predicted vehicle location and the road infrastructure information, it is predicted whether the vehicle will enter the sunshade area of ​​a road-shading structure in the next clock cycle, wherein the road-shading structure includes tunnels, underpasses, or basements;

[0014] If not, obtain the current time and determine the sun's position based on the current time;

[0015] 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.

[0016] Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, it is predicted whether the vehicle's position in the next clock cycle will be under direct sunlight.

[0017] Optionally, after the step of predicting whether a vehicle will enter the sun-shaded area of ​​a road-shaded building in the next clock cycle, the method further includes:

[0018] If so, the current window transparency of the near-eye display device is adjusted to the maximum transparency; or, the current window transparency of the near-eye display device is adjusted to a preset ratio threshold above the maximum transparency.

[0019] Optionally, the step of predicting whether the vehicle's position in the next clock cycle is under direct sunlight based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the solar azimuth includes:

[0020] Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle heading direction corresponding to the predicted vehicle position is determined;

[0021] 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.

[0022] Based on the predicted angle of solar incidence, determine whether the vehicle's position in the next clock cycle will be under direct sunlight.

[0023] Optionally, the step of adjusting the current window transparency of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is under direct sunlight includes:

[0024] If the driving position in the next clock cycle is in direct sunlight, the current window transparency of the near-eye display device is set to the first window transparency before the next clock cycle arrives.

[0025] If the driving position in the next clock cycle is not in direct sunlight, the current window transparency of the near-eye display device is set to the second window transparency before the next clock cycle arrives, wherein the first window transparency is less than the second window transparency.

[0026] Optionally, after the step of adjusting the transparency of the current window of the near-eye display device, the method further includes:

[0027] The light sensor mounted on the near-eye display device can detect the current direct light intensity in real time.

[0028] From the preset data mapping table, retrieve the window transparency of the current direct sunlight intensity mapping;

[0029] The mapped window transparency is used as the target window transparency, and the current window transparency of the near-eye display device is calibrated and adjusted according to the target window transparency.

[0030] Optionally, the step of calibrating and adjusting the current window transparency of the near-eye display device based on the target window transparency includes:

[0031] Compare the target window transparency with the current window transparency of the near-eye display device;

[0032] If the absolute value of the difference between the transparency of the target window and the transparency of the current window is greater than a preset threshold, then the transparency of the current window is adjusted to the transparency of the target window.

[0033] Furthermore, this application also provides an anti-glare device, which is applied to a near-eye display device, the device comprising:

[0034] The acquisition module is configured to acquire a pre-driving route if the current weather is determined to be sunny, and to determine the vehicle heading information, road condition information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route.

[0035] The prediction module is configured to predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight, based on the vehicle's heading information, road condition information, terrain information, and road facility information.

[0036] The adjustment module is configured to adjust the transparency of the current window of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is under direct sunlight.

[0037] 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.

[0038] This application also provides a readable storage medium, which is a computer-readable storage medium, on which a program implementing the anti-glare method is stored, and the program implementing the anti-glare method is executed by a processor to implement the steps of the anti-glare method as described above.

[0039] 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.

[0040] 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, the vehicle's heading, terrain, and road infrastructure information are determined for each position along the route. Then, based on this information, the system predicts whether the vehicle's position in the next clock cycle will be under direct sunlight. Finally, based on this prediction, the system adjusts the transparency of the current viewing window of the near-eye display device. This allows the driver to operate the near-eye display device without any intervention while driving. The device predicts the lighting environment in advance and automatically adjusts the transparency of the near-eye display window accordingly. Specifically, the transparency of the near-eye display window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transparency of the near-eye display window increases, allowing the driver to clearly perceive the road conditions. Conversely, when the vehicle is in direct sunlight, the transparency of the near-eye display window decreases to prevent direct sunlight from interfering with driving. This allows the driver to clearly perceive the road conditions while effectively avoiding glare and reducing safety hazards.

[0041] It is worth mentioning that, in addition to predicting whether the vehicle will be in direct sunlight in the next clock cycle based on vehicle heading and terrain information, this application also incorporates road infrastructure information to determine whether the vehicle will enter a shaded area in the next clock cycle. This avoids prediction errors caused by roadside structures such as tunnels, underpasses, basements, or roadside buildings blocking the sun, thus improving the accuracy of predicting whether the vehicle will be in direct sunlight in the next clock cycle. This further ensures that while the driver can clearly perceive the road conditions, the glare caused by strong light can be avoided in a timely and effective manner, reducing safety hazards. Attached Figure Description

[0042] 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.

[0043] 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.

[0044] Figure 1 This is a flowchart illustrating the first embodiment of the anti-glare method of this application;

[0045] Figure 2 This is a flowchart illustrating the second embodiment of the anti-glare method of this application;

[0046] Figure 3 This is a pre-driving route map of a specific embodiment of this application;

[0047] Figure 4 This is a schematic diagram of the module structure of the anti-glare device according to an embodiment of this application;

[0048] Figure 5 This is a schematic diagram of the hardware operating environment involved in the near-eye display device in this embodiment.

[0049] 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

[0050] 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.

[0051] In this embodiment, the near-eye display device includes, but is 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), Virtual Reality (VR) devices (e.g., VR glasses or VR helmets), Extended Reality (XR) devices, or some combination thereof, etc.

[0052] Example 1

[0053] In driving situations, direct sunlight often shines into the eyes. When this happens, drivers may experience glare and difficulty seeing their surroundings, posing a risk of dangerous driving and potentially causing traffic accidents. To address this discomfort, traditional vehicles are often equipped with sun visors to prevent direct sunlight from entering the eyes, or drivers rely on wearing sunglasses.

[0054] However, sun visors lack flexibility in their anti-glare mechanism. When glare is reduced in one area, it often results in temporary obstruction of vision in other areas where glare is not needed. Therefore, this anti-glare technology is ineffective and poses certain safety hazards. The disadvantage of drivers wearing sunglasses is that they need to remove them whenever the vehicle passes through shaded areas. This is because, in low light conditions, wearing sunglasses can impair the driver's perception of road conditions, creating a driving safety risk. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity during driving can affect the driver's normal driving actions, still posing a significant safety hazard.

[0055] 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, which may result in a car accident before the sunglasses can electrochromize, making it impossible to avoid the glare caused to the driver in a timely and effective manner.

[0056] Based on this, please refer to Figure 1 This embodiment provides an anti-glare method, the method comprising:

[0057] Step S10: If the current weather is determined to be sunny, then obtain the pre-driving route, and determine the vehicle heading information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route.

[0058] 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 a vehicle enters the sun-shaded area of ​​a road-shading structure in the next clock cycle. The road-shading structure is a building that blocks 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 (a shaded area). The road-shading structure may include tunnels, underpasses, basements, and roadside buildings, etc.

[0059] 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 overcast, 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 vehicle's heading, terrain, and road infrastructure information for each location along that route.

[0060] It should be noted that the pre-driving route is the vehicle's navigation route from the starting point to the destination. The vehicle heading information is information that can be used to characterize the vehicle's heading angle or azimuth angle, such as the vehicle's current heading information being south to north, north to south, northeast to southwest, or west to east.

[0061] 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).

[0062] 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.

[0063] In this embodiment, the user sets a driving route (i.e., a pre-driving route) in the navigation system before driving, and obtains information such as road direction (or vehicle heading) and terrain along the current driving route based on a high-precision map. Then, the user obtains weather information corresponding to the current vehicle location based on GPS information and weather software.

[0064] After step S10, step S20 is executed to predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight, based on the vehicle heading information, terrain information, and road facility information.

[0065] In this embodiment, the vehicle being in direct sunlight at a certain driving position A means that at that driving position A, the sunlight will shine directly into the driver's eyes, thereby interfering with the driver's normal driving.

[0066] For example, step S20, which predicts whether the vehicle's position in the next clock cycle will be under direct sunlight based on the vehicle heading information, terrain information, and road infrastructure information, includes:

[0067] Step A10: Obtain the current vehicle position and current driving speed; based on the current vehicle position, current driving speed and the pre-driving route, predict the predicted vehicle position for the next clock cycle.

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

[0069] 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.

[0070] 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.

[0071] 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 whether the vehicle will be in direct sunlight in the next clock cycle, thus failing to effectively and promptly avoid glare for the driver. For example, if the calculation time for predicting whether the vehicle's position will be in direct sunlight in the next clock cycle is 0.03 seconds, and the clock cycle duration is set to 0.02 seconds, then when the vehicle encounters direct sunlight, it will be unable to effectively and promptly avoid glare for the driver. Therefore, the duration of a clock cycle should be greater than or equal to this calculation time.

[0072] Additionally, it's important to avoid setting the clock cycle too long, as this would result in excessively long adjustments to the transparency of the near-eye display, making it difficult to effectively and promptly mitigate glare for the driver. Ideally, the duration of one clock cycle should be as close as possible to the calculation time required to predict whether the driving position will be under direct sunlight in the next clock cycle.

[0073] After step A10, step A20 is executed, which predicts whether the vehicle will enter the sunshade area of ​​the road shading structure in the next clock cycle based on the predicted vehicle position and the road facility information. The road shading structure includes tunnels, underpasses, or basements.

[0074] It is easy to understand that if, based on the predicted vehicle location and road infrastructure information, it is predicted that the vehicle will enter the sun-shaded area of ​​the road-shaded building in the next clock cycle, then it can be directly determined that the vehicle's driving position in the next clock cycle will not be under direct sunlight.

[0075] Step A30: If not, obtain the current time and determine the sun's position based on the current time;

[0076] In this embodiment, if, based on the predicted vehicle location and road infrastructure information, it is predicted that the vehicle will not enter the sun-shaded area of ​​the road-shaded structure in the next clock cycle, it means that the vehicle's driving position in the next clock cycle may or may not be in direct sunlight.

[0077] Further analysis is needed, combining the sun's azimuth with the vehicle's predicted heading angle and predicted pitch angle, to predict whether the vehicle's position in the next clock cycle will truly be under direct sunlight. The calculation and analysis of the predicted heading angle and predicted pitch angle will be detailed later and will not be repeated here.

[0078] 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.

[0079] After step A30, step A40 is executed, whereby the predicted vehicle heading angle corresponding to the predicted vehicle position is determined based on the vehicle heading information, and the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined based on the terrain information.

[0080] 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.

[0081] 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.

[0082] After step A40, step A50 is executed, which predicts whether the vehicle's driving position in the next clock cycle will be under direct sunlight based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth.

[0083] Those skilled in the art will understand that the actual pointing angle of the vehicle in three-dimensional space can be determined based on the predicted vehicle heading angle and the predicted vehicle pitch angle. To aid understanding, an example is given: using true north as a reference (0 degrees), rotating clockwise, a vehicle heading angle of 90 degrees corresponds to true east, and a vehicle heading angle of 120 degrees corresponds to 30 degrees east of south. Using the vehicle pitch angle on a flat road (without steepness) as a reference (0 degrees), the vehicle pitch angle is positive when going uphill and negative when going downhill, with the specific value of the pitch angle related to the steepness of the slope. When the vehicle heading angle is 150 degrees and the predicted vehicle pitch angle is 30 degrees, it can be determined that the vehicle is pointing 60 degrees east of south, and the vehicle is angled upwards at a 30-degree angle to the horizon. By combining the sun's position at the driving position in the next clock cycle, it is determined whether the front of the vehicle is pointing directly at the sun, that is, whether the relative spatial position is such that the sun is shining directly into the driver's eyes. This allows it to predict whether the driving position in the next clock cycle will be under direct sunlight.

[0084] After step S20, step S30 is executed, in which the transparency of the current window of the near-eye display device is adjusted based on the prediction result of whether the driving position in the next clock cycle is under direct sunlight.

[0085] In this embodiment, the current window transparency refers to the transparency of the glasses lens of the near-eye display device. When the driver wears the near-eye display device, the driver's line of sight needs to pass through the glasses lens of the near-eye display device to visually perceive the external environment.

[0086] The 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 transparency of the near-eye display device's window. Specifically, the transmittance coefficient is variable according to a pulse width modulation (PWM) mode.

[0087] For example, the step of adjusting the current window transparency of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is in direct sunlight includes:

[0088] Step B10: If the driving position in the next clock cycle is in direct sunlight, then before the next clock cycle arrives, set the current window transparency of the near-eye display device to the first window transparency.

[0089] Step B20: If the driving position in the next clock cycle is not in direct sunlight, then before the next clock cycle arrives, the current window transparency of the near-eye display device is set to the second window transparency, wherein the first window transparency is less than the second window transparency.

[0090] In this embodiment, the specific values ​​of the transparency of the first and second windows are not specifically limited, but are designed to better enable the driver to clearly perceive the road conditions while preventing direct sunlight from interfering with driving. It should be noted that the transparency of the first window is less than that of the second window; for example, the transparency of the first window is 70%, and the transparency of the second window is 100%.

[0091] To aid understanding, an example scenario is provided. In this scenario, tunnel A is located between positions a and b on road segment B. On a sunny day, a vehicle traveling from position a to position b in tunnel A is in a shaded area. However, upon exiting tunnel A at position b, it immediately enters direct sunlight. By predicting the vehicle's position and road infrastructure information, it can be predicted that the vehicle will enter the shaded area of ​​a road-shaded structure during a certain time period t1 (time period t1 is the time spent traveling in tunnel A, which generally includes multiple clock cycles). It is determined that the vehicle will not be in direct sunlight during time period t1. Therefore, during time period t1, the current window transparency of the near-eye display device is set to 100% transparency (100% transparency is an embodiment of the second window transparency). Then, based on the determination that the vehicle will not enter the sun-shaded area during the time period t2 after exiting tunnel A, the system calculates and analyzes the sun's azimuth, the predicted vehicle heading angle, and the predicted vehicle pitch angle to predict that the vehicle will be in direct sunlight during the time period t2 (which is the time period after exiting tunnel A, including at least one clock cycle). Therefore, the system sets the current window transparency of the near-eye display device to 70% transparency during the time period t2 (70% transparency is an embodiment of the first window transparency). This ensures that in this example scenario, the window transparency of the near-eye display device adapts to changes in ambient light intensity during driving, ensuring that the driver can clearly perceive the road conditions while effectively avoiding glare.

[0092] This embodiment adjusts the transparency of the near-eye display device to adapt to changes in ambient light intensity during driving. If the vehicle is in direct sunlight during the next clock cycle, the transparency is set to a first transparency before the next clock cycle begins. If the vehicle is not in direct sunlight during the next clock cycle, the transparency is set to a second transparency before the next clock cycle begins. The first transparency is less than the second transparency.

[0093] The technical solution of this application embodiment involves obtaining a pre-driving route when the current weather is determined to be sunny. Based on this pre-driving route, the vehicle's heading information, terrain information, and road facility information corresponding to each position of the vehicle on the pre-driving route are determined. Then, based on this vehicle heading information, terrain information, and road facility information, the system predicts whether the vehicle's position in the next clock cycle will be under direct sunlight. Finally, based on the prediction result of whether the vehicle's position in the next clock cycle will be under direct sunlight, the system adjusts the current window transparency of the near-eye display device. This allows the driver to drive without any operation when wearing the near-eye display device of this application. The system predicts the lighting environment in advance and automatically adjusts the transparency of the near-eye display device's window accordingly. In other words, the transparency 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 transparency of the near-eye display device's window increases accordingly, making it easier for the driver to clearly perceive the road conditions. Conversely, when the vehicle is in direct sunlight, the transparency of the near-eye display device's window decreases accordingly, preventing direct sunlight from interfering with driving. This allows the driver to clearly perceive the road conditions while effectively avoiding glare and reducing safety hazards.

[0094] It is worth mentioning that, based on vehicle heading information and terrain information, this application embodiment predicts whether the vehicle's driving position in the next clock cycle will be under direct sunlight. Furthermore, it incorporates road infrastructure information to determine whether the vehicle will enter a shaded area in the next clock cycle. This avoids prediction errors caused by roadside structures such as tunnels, underpasses, basements, or roadside buildings blocking the sun, thus improving the accuracy of predicting whether the vehicle's driving position in the next clock cycle will be under direct sunlight. This further ensures that while the driver can clearly perceive the road conditions, the glare from strong light can be effectively avoided, reducing safety hazards.

[0095] In one implementable manner, after the step of predicting whether a vehicle will enter the sun-shaded area of ​​a road-shaded building in the next clock cycle, the method further includes:

[0096] Step C10: If yes, adjust the current window transparency of the near-eye display device to the maximum transparency; or, adjust the current window transparency of the near-eye display device to a preset ratio threshold above the maximum transparency.

[0097] The preset ratio threshold can be set by those skilled in the art according to actual conditions. This embodiment does not impose specific limitations, but aims to ensure that the driver can clearly perceive the road conditions. For example, the preset ratio threshold can be 95%.

[0098] In this embodiment, if it is predicted, based on the predicted vehicle position and road infrastructure information, that the vehicle will enter the sun-shaded area of ​​a road-shaded structure in the next clock cycle, it can be directly determined that the vehicle's driving position in the next clock cycle will not be under direct sunlight. At this time, the transparency of the near-eye display device's current window can be adjusted to its maximum transparency, or adjusted to a preset ratio threshold above the maximum transparency. This ensures that when the vehicle passes through the sun-shaded area, the near-eye display device's window transparency will be adjusted to a higher level, allowing the driver to clearly perceive the road conditions.

[0099] In one possible implementation, the step of predicting whether the vehicle's position in the next clock cycle will be under direct sunlight based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the solar azimuth includes:

[0100] Step D10: Determine the predicted vehicle heading direction corresponding to the predicted vehicle position based on the predicted vehicle heading angle and the predicted vehicle pitch angle.

[0101] 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.

[0102] Step D20: 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.

[0103] 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).

[0104] Step D30: Based on the predicted solar incidence angle, determine whether the vehicle's driving position in the next clock cycle is under direct sunlight.

[0105] 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 front is pointing 70 degrees east of south, and the front is angled downwards at a 30-degree angle to the horizon. Combining this with the sun's position at the vehicle's location in the next clock cycle, the predicted solar incidence angle corresponding to the vehicle's location in the next clock cycle can be calculated. Based on this predicted solar incidence angle (for example, determining whether the predicted solar incidence angle is 90 degrees, or whether the difference from 90 degrees is less than a preset degree threshold), it can be determined whether the vehicle's front is pointing directly at the sun, that is, whether the relative spatial position where the sun is directly shining into the driver's eyes is formed. Thus, it can be accurately predicted whether the vehicle's location in the next clock cycle is under direct sunlight.

[0106] To aid in understanding the technical concept of the embodiments of this application, a specific embodiment is provided:

[0107] Please refer to Figure 3 In this specific embodiment, the user plans to drive from location A to location B at 8:00 AM. The distance between A and B is 20 kilometers, and the route passes through tunnel CD. The current weather conditions are sunny (with few clouds).

[0108] Step 1: Set the starting point A and destination B through a map app (the map app can be opened in various ways, including but not limited to near-eye display devices, in-vehicle systems connected to near-eye display devices, or mobile devices). Navigation information is as follows: Figure 3 As shown, the vehicle is expected to travel along oabcCDdef (i.e., the planned route).

[0109] Step 2: Obtain the weather conditions at the current location on the planned route. It is sunny (with few clouds).

[0110] Step 3: Based on the vehicle's speed (i.e., the current speed), the time to reach each point on the planned route can be calculated;

[0111] Step 4: Since the driving time is 8:00 AM, the sun is rising in the east (i.e., determine the sun's position based on the current time). The general direction of the planned driving route is from northwest to southeast. Within the three sections ab, cd, and ef, the driving direction is almost due west to due east (i.e., determine the vehicle's heading information), which is exactly when the sun is directly overhead.

[0112] Step 5: When the vehicle approaches a, c, or e, the main control chip of the AR glasses (an embodiment of a near-eye display device) will control electrochromism to reduce the transparency (i.e., window transparency) of the AR glasses lenses. When the vehicle moves away from b, d, or f, the main control chip of the AR glasses will control electrochromism to increase the transparency of the lenses. Additionally, since the vehicle is traveling in tunnel C, which is in a sun-shaded area, when the vehicle approaches C, the main control chip of the AR glasses will control electrochromism to increase the transparency of the lenses, and when the vehicle moves away from D, the main control chip of the AR glasses will control electrochromism to reduce the transparency of the lenses.

[0113] This specific embodiment predicts whether the driving direction at various points along the pre-driving route is under direct sunlight. Finally, based on the prediction of direct sunlight, the transparency of the AR glasses lenses is switched when the vehicle is about to enter the road segment. This allows for advance prediction of the lighting environment and automatic switching of the AR glasses' window transparency, improving driver safety and the in-vehicle AR experience. Furthermore, by combining this prediction with whether the vehicle will enter the sun-shaded area of ​​a road-shading structure (such as a tunnel) in the next clock cycle, prediction errors caused by road-shading structures blocking the sun and the vehicle not actually being under direct sunlight are avoided, further enhancing driver safety and the in-vehicle AR experience.

[0114] It should be noted that the many details shown in this example are only helpful for understanding the technical concept of the embodiments of this application and do not constitute a limitation of this application. Any further modifications or transformations based on the technical concept of the embodiments of this application should be within the protection scope of this application.

[0115] Example 2

[0116] 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 After the step of adjusting the transparency of the current window of the near-eye display device, the method further includes:

[0117] Step S40: The current direct light intensity is detected in real time using the light sensor mounted on the near-eye display device;

[0118] In this embodiment, the direct illumination intensity refers to the intensity of sunlight relative to the driver's eyes.

[0119] Step S50: Query the window transparency of the current direct light intensity mapping from the preset data mapping table;

[0120] Understandably, the data mapping table stores multiple different direct light intensity values, as well as a one-to-one mapping relationship between each direct light intensity and the window transparency.

[0121] Step S60: Use the mapped window transparency as the target window transparency, and calibrate and adjust the current window transparency of the near-eye display device according to the target window transparency.

[0122] In this embodiment, the light sensor is a photosensitive sensor used to detect the intensity of direct light irradiation around the near-eye display device.

[0123] It should be noted that the method used in the above embodiment to predict whether a vehicle will be in direct sunlight in the next clock cycle, based on vehicle heading information, terrain information, and road facility information, and then adjusting the transparency of the current window of the near-eye display device based on the prediction result, may have prediction errors. That is, the prediction result obtained through calculation and analysis based on various information (including vehicle heading information, terrain information, and road facility information) may not be completely accurate. In this case, in addition to predicting whether the vehicle will be in direct sunlight in the next clock cycle based on calculation and analysis of various information, the near-eye display device can be used with its own light sensor to detect the sunlight in real time. The system measures the current direct sunlight intensity, retrieves the window transparency mapped to the current direct sunlight intensity from a preset data mapping table, and uses this mapped window transparency as the target window transparency. Based on the target window transparency, the system calibrates and adjusts the current window transparency of the near-eye display device. This corrects the predicted result, minimizing prediction errors caused by factors such as cloud cover preventing direct sunlight or sunlight reflected from buildings. This allows for more accurate adjustment of the near-eye display device's window transparency, adapting to changes in ambient light intensity during driving. This ensures the driver can clearly perceive road conditions while effectively avoiding glare and reducing safety hazards.

[0124] In this embodiment, the intensity of direct sunlight around the near-eye display device can be monitored in real time using a light sensor. Under normal circumstances, the human eye has a maximum threshold of light intensity that it can tolerate. Exceeding this threshold, the eye can hardly see objects in the environment or causes extreme eye discomfort. The lenses of the near-eye display device can be made of electrochromic glass or an electrochromic film. The optical properties of these materials can undergo stable and reversible color changes under the influence of an applied electric field. This manifests as reversible changes in color and transparency, allowing for the creation of a near-eye display device where the transmittance of the lenses changes with the 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 will change the transparency of the lenses, ensuring that the light intensity transmitted through the lenses is within an acceptable range for the human eye. This prevents significant changes in the light intensity perceived by the eye and ensures driving safety. In another example, when the near-eye display device determines, based on the direct illumination 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 controls and adjusts the light transmittance of the glasses lenses to keep the light intensity transmitted through the lenses within a suitable range, thereby ensuring the safety of the glasses wearer. The transmittance coefficient of the near-eye display device is predicted in advance and adjusted in real time based on the direct illumination intensity of the road scene observed by the driver: as the direct illumination intensity increases, the transparency of the current viewing window of the near-eye display device decreases; conversely, as the direct illumination intensity decreases, the transparency of the current viewing window of the near-eye display device increases.

[0125] In one possible implementation, the step of calibrating and adjusting the current window transparency of the near-eye display device based on the target window transparency includes:

[0126] Step E10: Compare the transparency of the target window with the current transparency of the near-eye display device;

[0127] Step E20: If the absolute value of the difference between the transparency of the target window and the transparency of the current window is greater than a preset threshold, then the transparency of the current window is adjusted to the transparency of the target window.

[0128] This embodiment compares the transparency of the target window with the transparency of the current window of the near-eye display device. If the absolute value of the difference between the transparency of the target window and the transparency of the current window is greater than a preset threshold, the transparency of the current window is adjusted to the transparency of the target window before the next clock cycle arrives. This accurately calibrates and adjusts the transparency of the current window of the near-eye display device, enabling it to better adapt the user's eyes to the current ambient light intensity.

[0129] As another example, the step of calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency includes:

[0130] Step F10: Compare the transparency of the target window with the current transparency of the near-eye display device;

[0131] Step F20: If the transparency of the current window is greater than the first preset value of the transparency of the target window, then reduce the transparency of the current window of the near-eye display device by a first gradient value.

[0132] Step F30: If the current window transparency is less than the second preset value of the target window transparency, then increase the current window transparency of the near-eye display device by a second gradient value.

[0133] In this embodiment, the first and second preset values ​​are not specifically limited, but are used to better determine whether the current window transparency is suitable for the current ambient light intensity. This allows the driver, while wearing the near-eye display device of this application, to predict the lighting environment in advance and automatically switch the window transparency of the near-eye display device in advance or in real time without any driver intervention. This ensures that the driver can clearly perceive the road conditions while effectively avoiding glare from strong light. The first and second preset values ​​can be the same or different. For example, both the first and second preset values ​​can be 3% or 6% transparency. Another example is a 4% transparency value and a 5% transparency value.

[0134] In this embodiment, the magnitudes of the first gradient value and the second gradient value are not specifically limited, but are chosen to better calibrate and adjust the transparency of the current viewing window of the near-eye display device. The first gradient value and the second gradient value can be the same or different. For example, both the first gradient value and the second gradient value can be a transparency level of 5% or 10%. Another example is a first gradient value of 7% transparency and a second gradient value of 8% transparency.

[0135] This embodiment compares the transparency of the target window with the transparency of the current window of the near-eye display device. If the transparency of the current window is greater than a first preset value of the transparency of the target window, the transparency of the current window of the near-eye display device is reduced by a first gradient value; if the transparency of the current window is less than a second preset value of the transparency of the target window, the transparency of the current window of the near-eye display device is increased by a second gradient value. This accurately calibrates and adjusts the transparency of the current window of the near-eye display device, enabling it to better adapt the user's eyes to the current ambient light intensity.

[0136] To aid in understanding the technical concept of this application, a specific embodiment two is provided:

[0137] Based on Specific Implementation Example 1, Specific Implementation Example 2 adds a cloudy scenario. In this specific implementation example, the user plans to drive from location A to location B at 8:00 AM. The distance between A and B is 20 kilometers, and the route passes through tunnel C and D. The current weather conditions are sunny with some clouds.

[0138] Compared to Specific Implementation One, this Specific Implementation One addresses the issue of cloud cover leading to decreased accuracy in direct sunlight (i.e., clouds are likely to block the sun, preventing the vehicle from being in direct sunlight). Therefore, to resolve this problem, data from a light sensor (i.e., a light sensor) is introduced as the basis for the adjustment. The specific change in transparency switching strategy is as follows: when the vehicle approaches points a, c, or e, the transparency of the near-eye display window still needs to be reduced. However, compared to clear skies or minimal cloud cover, the reduction is smaller. For example, on clear skies or with minimal cloud cover, as the vehicle approaches point a, the transparency is switched to 30% in advance. On cloudy skies, the transparency is switched to 40%, because clouds may block the sun and prevent direct sunlight from reaching the eyes, so the transparency does not need to be reduced significantly. After switching, based on the data collected by the light sensor (i.e., the light sensor), it is determined whether the detected direct sunlight intensity has reached the direct sunlight intensity threshold. If the threshold is reached, it is determined that the sun is not blocked by clouds, and the transparency is switched from 40% to 30%. If the threshold is not reached, it is considered that the sun is currently blocked by clouds or the light intensity is not high, and the transparency is maintained at 30%.

[0139] This specific embodiment can monitor the intensity of direct sunlight around a near-eye display device using a light sensor.

[0140] The window transparency is reduced based on the brightness of the road scene under strong sunlight to prevent driver glare. It also minimizes prediction errors caused by factors such as clouds or other means of obscuring the sun, thus making the window transparency of the near-eye display device more accurately adapt to changes in ambient light intensity during driving.

[0141] It should be noted that the many details described in this specific embodiment are only helpful for understanding the technical concept of this application and do not constitute a limitation of this application. Any simple modifications based on the technical concept of this application should be within the protection scope of this application.

[0142] Example 3

[0143] 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:

[0144] The acquisition module 10 is configured to acquire a pre-driving route if the current weather is determined to be sunny, and to determine the vehicle heading information, road condition information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route.

[0145] The prediction module 20 is configured to predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight, based on the vehicle's heading information, road condition information, terrain information, and road facility information.

[0146] The adjustment module 30 is configured to adjust the transparency of the current window of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is in direct sunlight.

[0147] Optionally, the prediction module 20 is also configured as follows:

[0148] Obtain the current vehicle position and current driving speed, and based on the current vehicle position, current driving speed and the pre-driving route, predict the predicted vehicle position for the next clock cycle;

[0149] Based on the predicted vehicle location and the road infrastructure information, it is predicted whether the vehicle will enter the sunshade area of ​​a road-shading structure in the next clock cycle, wherein the road-shading structure includes tunnels, underpasses, or basements;

[0150] If not, obtain the current time and determine the sun's position based on the current time;

[0151] 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.

[0152] Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, it is predicted whether the vehicle's position in the next clock cycle will be under direct sunlight.

[0153] Optionally, after the step of predicting whether a vehicle will enter the sunshade area of ​​a road-shading building in the next clock cycle, the adjustment module 30 is further configured to:

[0154] If so, the current window transparency of the near-eye display device is adjusted to the maximum transparency; or, the current window transparency of the near-eye display device is adjusted to a preset ratio threshold above the maximum transparency.

[0155] Optionally, the prediction module 20 is also configured as follows:

[0156] Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle heading direction corresponding to the predicted vehicle position is determined;

[0157] 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.

[0158] Based on the predicted angle of solar incidence, determine whether the vehicle's position in the next clock cycle will be under direct sunlight.

[0159] Optionally, the adjustment module 30 is also configured as follows:

[0160] If the driving position in the next clock cycle is in direct sunlight, the current window transparency of the near-eye display device is set to the first window transparency before the next clock cycle arrives.

[0161] If the driving position in the next clock cycle is not in direct sunlight, the current window transparency of the near-eye display device is set to the second window transparency before the next clock cycle arrives, wherein the first window transparency is less than the second window transparency.

[0162] Optionally, the adjustment module 30 is also configured as follows:

[0163] The light sensor mounted on the near-eye display device can detect the current direct light intensity in real time.

[0164] From the preset data mapping table, retrieve the window transparency of the current direct sunlight intensity mapping;

[0165] The mapped window transparency is used as the target window transparency, and the current window transparency of the near-eye display device is calibrated and adjusted according to the target window transparency.

[0166] Optionally, the adjustment module 30 is also configured as follows:

[0167] Compare the target window transparency with the current window transparency of the near-eye display device;

[0168] If the absolute value of the difference between the transparency of the target window and the transparency of the current window is greater than a preset threshold, then the transparency of the current window is adjusted to the transparency of the target window.

[0169] 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 glare from strong light. 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.

[0170] Example 4

[0171] 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 Embodiment 1 above.

[0172] 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.

[0173] 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.

[0174] 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.

[0175] 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.

[0176] 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 glare. 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, and will not be repeated here.

[0177] 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.

[0178] 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.

[0179] Example 5

[0180] 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.

[0181] 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.

[0182] 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.

[0183] 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: if it determines that the current weather is sunny, obtain a pre-driving route; and, based on the pre-driving route, determine vehicle heading information, terrain information, and road facility information corresponding to each position of the vehicle on the pre-driving route; and, based on the vehicle heading information, terrain information, and road facility information, predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight; and, based on the prediction result of whether the driving position in the next clock cycle will be under direct sunlight, adjust the current window transparency of the near-eye display device.

[0184] 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).

[0185] 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.

[0186] 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.

[0187] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the aforementioned anti-glare method. This enables the driver to clearly perceive road conditions while driving, and also effectively and promptly avoids glare from strong light. 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.

[0188] Example 6

[0189] 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.

[0190] The computer program product provided in this application enables drivers to clearly perceive road conditions while driving, and also effectively and promptly avoids glare from strong 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.

[0191] 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, the pre-driving route is obtained, and based on the pre-driving route, the vehicle heading information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route are determined; Based on the vehicle heading information, terrain information, and road facility information, predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight. Based on the prediction of whether the driving position in the next clock cycle is in direct sunlight, the transparency of the current window of the near-eye display device is adjusted. The step of adjusting the transparency of the current viewing window of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is in direct sunlight includes: If the driving position in the next clock cycle is in direct sunlight, the current window transparency of the near-eye display device is set to the first window transparency before the next clock cycle arrives. If the driving position in the next clock cycle is not in direct sunlight, then before the next clock cycle arrives, the current window transparency of the near-eye display device is set to the second window transparency, wherein the first window transparency is less than the second window transparency.

2. The anti-glare method as described in claim 1, characterized in that, The step of predicting whether the vehicle's position in the next clock cycle will be under direct sunlight based on the vehicle's heading information, terrain information, and road infrastructure information includes: Obtain the current vehicle position and current driving speed, and based on the current vehicle position, current driving speed and the pre-driving route, predict the predicted vehicle position for the next clock cycle; Based on the predicted vehicle location and the road infrastructure information, it is predicted whether the vehicle will enter the sunshade area of ​​a road-shading structure in the next clock cycle, wherein the road-shading structure includes tunnels, underpasses, or basements. If not, obtain the current time and determine the sun's position based on the current time; 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. Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, it is predicted whether the vehicle's position in the next clock cycle will be under direct sunlight.

3. The anti-glare method as described in claim 2, characterized in that, Following the step of predicting whether a vehicle will enter the sun-shaded area of ​​a road-shaded building in the next clock cycle, the method further includes: If so, the current window transparency of the near-eye display device is adjusted to the maximum transparency; or, the current window transparency of the near-eye display device is adjusted to a preset ratio threshold above the maximum transparency.

4. The anti-glare method as described in claim 2, characterized in that, The step of predicting whether the vehicle's position in the next clock cycle will be under direct sunlight based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth includes: Based on the predicted vehicle heading angle and the predicted vehicle pitch angle, the predicted vehicle heading direction 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. Based on the predicted angle of solar incidence, determine whether the vehicle's position in the next clock cycle will be under direct sunlight.

5. The anti-glare method according to any one of claims 1 to 4, characterized in that, After the step of adjusting the transparency of the current window of the near-eye display device, the method further includes: The light sensor mounted on the near-eye display device can detect the current direct light intensity in real time. From the preset data mapping table, retrieve the window transparency of the current direct sunlight intensity mapping; The mapped window transparency is used as the target window transparency, and the current window transparency of the near-eye display device is calibrated and adjusted according to the target window transparency.

6. The anti-glare method as described in claim 5, characterized in that, The step of calibrating and adjusting the current window transparency of the near-eye display device based on the target window transparency includes: Compare the target window transparency with the current window transparency of the near-eye display device; If the absolute value of the difference between the transparency of the target window and the transparency of the current window is greater than a preset threshold, then the transparency of the current window is adjusted to the transparency of the target window.

7. An anti-glare device, characterized in that, The anti-glare device is applied to near-eye display devices, and the device includes: The acquisition module is configured to acquire a pre-driving route if the current weather is determined to be sunny, and to determine the vehicle heading information, road condition information, terrain information and road facility information corresponding to each position of the vehicle on the pre-driving route based on the pre-driving route. The prediction module is configured to predict whether the vehicle's driving position in the next clock cycle will be under direct sunlight, based on the vehicle's heading information, road condition information, terrain information, and road facility information. The adjustment module is configured to adjust the transparency of the current window of the near-eye display device based on the prediction result of whether the driving position in the next clock cycle is in direct sunlight. The adjustment module is further configured to set the current window transparency of the near-eye display device to the first window transparency before the next clock cycle arrives if the driving position in the next clock cycle is in direct sunlight. If the driving position in the next clock cycle is not in direct sunlight, then before the next clock cycle arrives, the current window transparency of the near-eye display device is set to the second window transparency, wherein the first window transparency is less than the second window transparency.

8. 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 executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the steps of the anti-glare method according to any one of claims 1 to 6.

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

Citation Information

Patent Citations

  • Head-worn display device and method of operating a head-worn display device

    DE102016222911A1

  • Method and system for predicting the probability of the driver of a vehicle being blinded by the sun

    DE102017202496A1