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

By obtaining weather and route information, predicting direct sunlight status, and automatically adjusting the transparency of the near-eye display device, solving the driver's dazzling problem and improving driving safety.

CN116224598BActive Publication Date: 2025-08-26GEER TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310293757.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2025-08-26
Estimated Expiration
2043-03-23

AI Technical Summary

Technical Problem

Existing near-eye display devices cannot effectively avoid dazzling phenomena caused by direct sunlight in driving scenarios. Traditional sun visors and sunglasses have problems such as insufficient flexibility or delayed response, which affects the safety of the driver.

Method used

By obtaining weather information and pre-driving routes, combining vehicle heading and terrain information, predicting the direct sunlight status of the next clock cycle, and automatically adjusting the window transparency of the near-eye display device to adapt to ambient light changes.

Benefits of technology

It can avoid the dazzling light and timely and effectively during driving without the driver's operation, improve the driver's clear perception of road conditions, and reduce safety hazards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116224598B_ABST
    Figure CN116224598B_ABST
Patent Text Reader

Abstract

This application discloses an anti-glare method, apparatus, near-eye display device, and readable storage medium. This application relates to the field of near-eye display devices. The anti-glare method includes: obtaining current weather information and a pre-travel route; determining vehicle heading information and terrain information corresponding to each vehicle position on the pre-travel route based on the pre-travel route; predicting whether the vehicle's driving position in the next clock cycle will be in direct sunlight based on the weather information, vehicle heading information, and terrain information; and adjusting the current window transparency of the near-eye display device based on the prediction of whether the vehicle's driving position in the next clock cycle will be in direct sunlight. This application can facilitate the driver's clear perception of road conditions while driving, while also promptly and effectively avoiding the phenomenon of strong light glare on the driver, thereby reducing safety hazards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of near-eye display devices, and in particular to an anti-glare method, device, near-eye display device, and readable storage medium. Background Art

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

[0003] Driving often involves direct sunlight into the driver's eyes. This glare can obscure the driver's vision, leading to dangerous driving and potentially accidents. To address this discomfort, traditional vehicles often feature sun visors to block direct sunlight, or rely on the driver wearing sunglasses.

[0004] However, the visor's anti-glare function is not flexible enough. When anti-glare is applied to a specific area, it often temporarily obscures vision in other areas where it is not needed. Therefore, this anti-glare technology is ineffective and poses certain safety risks. A drawback of drivers wearing sunglasses is that they need to remove them whenever the vehicle passes through shaded areas. This is because in low ambient light conditions, wearing sunglasses makes it difficult for the driver to clearly perceive road conditions, posing a driving safety risk. Furthermore, frequently removing and putting on sunglasses to adjust to changes in light intensity during driving can affect the driver's normal driving movements, presenting a significant safety hazard.

[0005] Currently, the improvement on these conventional sunglasses on the market is to provide electrochromic glasses lenses that are sensitive to ambient light levels. However, the method of relying solely on external light sensors to drive the glasses lenses to perform electrochromic changes has a delay of seconds. The accident may occur before the sunglasses can change electrochromically, and the glare caused to the driver cannot be avoided in a timely and effective manner. Summary of the Invention

[0006] The main purpose of this application is to provide an anti-glare method, device, near-eye display device and readable storage medium, aiming to achieve the goal of enabling the driver to clearly perceive the road conditions while driving, while also timely and effectively avoiding the glare caused to the driver, thereby reducing safety hazards.

[0007] To achieve the above objectives, the present application provides an anti-glare method, which is applied to a near-eye display device and includes:

[0008] Obtaining current weather information and a predicted travel route, and determining vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route based on the predicted travel route;

[0009] predicting whether the vehicle's driving position in the next clock cycle will be in direct sunlight based on the weather information, the vehicle heading information, and the terrain information;

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

[0011] Optionally, the step of predicting whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information, and the terrain information includes:

[0012] Determine whether the current weather is sunny according to the weather information;

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

[0014] Obtaining the current vehicle position and current driving speed, and predicting the vehicle position in the next clock cycle based on the current vehicle position, current driving speed and the predicted driving route;

[0015] Determine the predicted vehicle heading angle corresponding to the predicted vehicle position when the vehicle is traveling according to the vehicle heading information, and determine the predicted vehicle head pitch angle corresponding to the predicted vehicle position when the vehicle is traveling according to the terrain information;

[0016] Based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun position, it is predicted whether the vehicle's driving position in the next clock cycle is in a state of direct sunlight.

[0017] Optionally, the step of predicting whether the vehicle's driving position in the next clock cycle is in a direct sunlight state based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun's position includes:

[0018] Determining a predicted vehicle head direction corresponding to the predicted vehicle position according to the predicted vehicle heading angle and the predicted vehicle head pitch angle;

[0019] Calculating a predicted solar incident angle corresponding to the vehicle's driving position in the next clock cycle based on the predicted vehicle head direction and the solar position;

[0020] Based on the predicted solar incident angle, it is determined whether the driving position of the vehicle in the next clock cycle is in a state of direct sunlight.

[0021] Optionally, the step of adjusting the current window transparency of the near-eye display device according to the prediction result of whether the driving position in the next clock cycle is in a direct sunlight state includes:

[0022] If the driving position in the next clock cycle is in a state of direct sunlight, before the next clock cycle arrives, setting the current window transparency of the near-eye display device to the first window transparency;

[0023] 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 a second window transparency before the next clock cycle arrives, wherein the first window transparency is less than the second window transparency.

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

[0025] Detecting the current direct light intensity in real time through the light sensor carried by the near-eye display device;

[0026] From the preset data mapping table, query and obtain the window transparency of the current direct light intensity mapping;

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

[0028] Optionally, the step of calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency includes:

[0029] Comparing the target window transparency with the current window transparency of the near-eye display device;

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

[0031] Optionally, the step of calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency includes:

[0032] Comparing the target window transparency with the current window transparency of the near-eye display device;

[0033] If the current window transparency is greater than the first preset value of the target window transparency, reducing the current window transparency of the near-eye display device by a first gradient value;

[0034] If the current window transparency is less than the second preset value of the target window transparency, the current window transparency of the near-eye display device is increased by a second gradient value.

[0035] In addition, the present application also provides an anti-glare device, which is applied to a near-eye display device, and the device includes:

[0036] an acquisition module configured to acquire current weather information and a predicted travel route, and determine, based on the predicted travel route, vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route;

[0037] a prediction module configured to predict whether the vehicle's driving position in the next clock cycle will be in direct sunlight based on the weather information, the vehicle heading information, and the terrain information;

[0038] The adjustment module is configured to adjust the current window transparency of the near-eye display device according to a prediction result of whether the driving position in the next clock cycle is in a direct sunlight state.

[0039] The present 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 runnable on the processor. When the program of the anti-glare method is executed by the processor, the steps of the anti-glare method as described above can be implemented.

[0040] The present application also provides a readable storage medium, which is a computer-readable storage medium. The computer-readable storage medium stores a program for implementing the anti-glare method. The program for implementing the anti-glare method is executed by a processor to implement the steps of the anti-glare method as described above.

[0041] The present application also provides a computer program product, including a computer program, which implements the steps of the anti-glare method as described above when executed by a processor.

[0042] The technical solution of the present application is to obtain the current weather information and the predicted driving route, determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted driving route according to the predicted driving route, and then predict whether the vehicle's driving position in the next clock cycle will be in direct sunlight according to the weather information, the vehicle heading information and the terrain information, and then adjust the current window transparency of the near-eye display device according to the prediction result of whether the driving position in the next clock cycle will be in direct sunlight, so that the driver can predict the light intensity in advance without any operation of the driver in the scene where the driver is wearing the near-eye display device of the present application for driving. Environment, and automatically switch the window transparency of the near-eye display device in advance, that is, the window transparency of the near-eye display device of the present application will adapt to the changes in the ambient light intensity during driving. When the vehicle passes through a shadow area, the window transparency of the near-eye display device will be increased accordingly, so that the driver can clearly perceive the road environment. When the vehicle is driving in an area with direct sunlight, the window transparency of the near-eye display device will be reduced accordingly to avoid direct sunlight into the driver's eyes and interfering with driving. In this way, while the driver can clearly perceive the road environment during driving, the glare of strong light to the driver can be avoided in a timely and effective manner to reduce safety hazards. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the following briefly introduces the drawings required for use in the embodiment or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0045] Figure 1 This is a flow chart of the first embodiment of the anti-glare method of the present application;

[0046] Figure 2 This is a flow chart of the second embodiment of the anti-glare method of the present application;

[0047] Figure 3 This is the pre-driving route map of the first specific embodiment of the present application;

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

[0049] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the near-eye display device in this embodiment.

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

[0051] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0052] In this embodiment, the near-eye display device includes but is not limited to a Mixed Reality (MR) device (such as MR glasses or an MR helmet), an Augmented Reality (AR) device (such as AR glasses or an AR helmet), an Extended Reality (XR) device, or some combination thereof, and the like.

[0053] Example 1

[0054] Driving often involves direct sunlight into the driver's eyes. This glare can obscure the driver's vision, leading to dangerous driving and potentially accidents. To address this discomfort, traditional vehicles often feature sun visors to block direct sunlight, or rely on the driver wearing sunglasses.

[0055] However, the visor's anti-glare function is not flexible enough. When anti-glare is applied to a specific area, it often temporarily obscures vision in other areas where it is not needed. Therefore, this anti-glare technology is ineffective and poses certain safety risks. A drawback of drivers wearing sunglasses is that they need to remove them whenever the vehicle passes through shaded areas. This is because in low ambient light conditions, wearing sunglasses makes it difficult for the driver to clearly perceive road conditions, posing a driving safety risk. Furthermore, frequently removing and putting on sunglasses to adjust to changes in light intensity during driving can affect the driver's normal driving movements, presenting a significant safety hazard.

[0056] Currently, the improvement on these conventional sunglasses on the market is to provide electrochromic glasses lenses that are sensitive to ambient light levels. However, the method of relying solely on external light sensors to drive the glasses lenses to perform electrochromic changes has a delay of seconds. The accident may occur before the sunglasses can change electrochromically, and the glare caused to the driver cannot be avoided in a timely and effective manner.

[0057] Based on this, please refer to Figure 1 This embodiment provides an anti-glare method, which is applied to a near-eye display device. The method includes:

[0058] Step S10, obtaining current weather information and a predicted travel route, and determining vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route based on the predicted travel route;

[0059] Those skilled in the art will appreciate that current weather information can be used to indicate weather conditions at the vehicle's current location. It should be noted that the predicted route is the vehicle's navigation route from its starting point to its destination. The vehicle heading information is information that can be used to characterize the vehicle's heading angle or azimuth, for example, indicating that 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.

[0060] Those skilled in the art will know that terrain is also called landform. It is a general term for various undulating forms on the earth's surface. In surveying and mapping, it is a general term for the undulating forms of the surface and fixed objects distributed on the ground. And topography generally refers to the undulating state of the ground. For example, the terrain in the mountains is higher, while the terrain in the plains is often low and open. It is easy to understand that based on the topography information of the area corresponding to the current vehicle position, it can be determined whether the vehicle is traveling from high terrain to low terrain (i.e. downhill) and the steepness of the terrain decrease (i.e. the slope of the downhill), or from low terrain to high terrain (i.e. uphill) and the steepness of the terrain increase (i.e. the slope of the uphill).

[0061] In this embodiment, the driver can locate the current vehicle position through the GPS (Global Positioning System) navigation function of the vehicle terminal or other electronic device (such as a mobile phone), and obtain the pre-travel route after the driver enters the destination. The vehicle terminal or other electronic device then communicates with the near-eye display device through a connection method such as Bluetooth or WiFi (Wireless Fidelity), and sends the vehicle's pre-travel route information to the near-eye display device to obtain the current pre-travel route. The vehicle's current position can also be located through the driving navigation system installed in the near-eye display device itself, and the pre-travel route can be directly obtained after the driver enters the destination. It is understandable that the pre-travel route should be updated in real time, because as the vehicle travels, the current vehicle position will continue to change, and the starting point of the pre-travel route is equivalent to the current vehicle position. As the starting point continues to change, the pre-travel route is also continuously updated accordingly.

[0062] In this embodiment, after the GPS navigation function locates the current vehicle position, the Internet can be accessed to obtain the official weather information corresponding to the current vehicle position. The current weather information may include cloudy, sunny, cloudy to sunny, and rainy.

[0063] In this embodiment, the user sets a driving route (i.e., a pre-travel route) in the navigation system before driving. The user then uses a high-precision map to obtain information about the road direction (or vehicle heading), terrain, and topography along the current driving route. The user then uses GPS information and weather software to obtain weather information corresponding to the vehicle's current location.

[0064] After step S10, step S20 is executed to predict whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information, and the terrain information;

[0065] In this embodiment, the vehicle is in a state of direct sunlight at a certain driving position A, which means that at the driving position A, sunlight will directly hit the eyes of the driver of the vehicle, thereby interfering with the driver's normal driving.

[0066] Exemplarily, the step S20 of predicting whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information, and the terrain information includes:

[0067] Step A10, determining whether the current weather is sunny based on the weather information;

[0068] Step A20: If yes, obtain the current time and determine the sun's position based on the current time;

[0069] It's known that the sun's daily trajectory follows a certain pattern: rising in the east and setting in the west. The sun's daily trajectory always begins in the east, passes through the south, and then sets in the west. It's not difficult to understand that the sun's position varies at different times of the day. Therefore, the sun's position at the current time can be determined based on the current time.

[0070] Step A30, obtaining the current vehicle position and current driving speed, and predicting the vehicle position for the next clock cycle based on the current vehicle position, current driving speed, and the predicted driving route;

[0071] The predicted vehicle position refers to the predicted vehicle position (also referred to as the driving position) in the next clock cycle.

[0072] In this embodiment, each clock cycle is used to predict the vehicle position in the next clock cycle corresponding to the current clock cycle. In other words, 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 this according to actual circumstances, and this embodiment does not impose any specific limitations.

[0073] It is understood that the current vehicle position is often the starting point of the predicted route. The predicted vehicle position for the next clock cycle can be calculated based on the current vehicle position, current speed, and predicted route, combined with the duration of a clock cycle. Specifically, the product of the current speed and the duration of a clock cycle is the distance traveled by the vehicle in one clock cycle. The predicted vehicle position for the next clock cycle can then be calculated based on the current vehicle position, the distance traveled in one clock cycle, and the predicted route.

[0074] In this embodiment, it is important to avoid setting the clock cycle duration too short, which would prevent the vehicle's position from being accurately predicted in advance for the next clock cycle. Consequently, it would be impossible to predict whether the vehicle's position in the next clock cycle will be in direct sunlight, and thus, it would be impossible to effectively and timely avoid glare for the driver. For example, if the calculation duration for predicting whether the vehicle's position in the next clock cycle will be in direct sunlight 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 impossible to effectively and timely avoid glare for the driver. Therefore, the duration of a clock cycle should be greater than or equal to this calculation duration.

[0075] Additionally, it's important to avoid setting the clock cycle too long, as this will result in a prolonged period for adjusting the transparency of the near-eye display, making it impossible to effectively and timely prevent glare on the driver. In other words, the optimal clock cycle duration should be as close as possible to the calculation time required to predict whether the driving position will be in direct sunlight during the next clock cycle.

[0076] After step A30, executing step A40, determining a predicted vehicle heading angle corresponding to the vehicle traveling at the predicted vehicle position based on the vehicle heading information, and determining a predicted vehicle head pitch angle corresponding to the vehicle traveling at the predicted vehicle position based on the terrain information;

[0077] The predicted vehicle heading angle refers to the vehicle heading angle corresponding to the predicted vehicle position, i.e., the vehicle heading angle corresponding to the vehicle's driving position in the next clock cycle. Correspondingly, the predicted vehicle pitch angle refers to the vehicle pitch angle corresponding to the predicted vehicle position, i.e., the vehicle pitch angle corresponding to the vehicle's driving position in the next clock cycle.

[0078] In this embodiment, the predicted vehicle heading angle corresponding to the vehicle's predicted vehicle position can be determined based on the vehicle's heading information. Furthermore, based on the terrain information at the vehicle's location, it is possible to predict whether the vehicle will be traveling from high terrain to low terrain (i.e., downhill) and the steepness of the lowering terrain (i.e., the downhill slope), or from low terrain to high terrain (i.e., uphill) and the steepness of the increasing terrain (i.e., the uphill slope) in the next clock cycle. This allows the determination of whether the vehicle is traveling uphill, downhill, or on a flat road. If traveling uphill or downhill, the slope is further determined, thereby determining the predicted vehicle head pitch angle corresponding to the vehicle's predicted vehicle position.

[0079] After step A40, step A50 is executed to predict whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the predicted vehicle heading angle, the predicted vehicle head pitch angle and the sun's position.

[0080] Those skilled in the art will appreciate that the actual heading angle of the vehicle's front in three-dimensional space can be determined based on the predicted vehicle heading angle and the predicted front pitch angle. To facilitate understanding, let's take an example. For example, with true north as 0 degrees, and rotating clockwise, a vehicle heading angle of 90 degrees is due east, and a vehicle heading angle of 120 degrees is 30 degrees east-southeast. Taking the vehicle's front pitch angle on a flat road (with no steepness) as 0 degrees as a reference, the vehicle's front pitch angle corresponding to an uphill slope is positive, while the corresponding pitch angle corresponding to a downhill slope is negative. The specific value of the vehicle's front pitch angle is related to the steepness of the slope. If the vehicle's heading angle is 150 degrees and the predicted front pitch angle is 30 degrees, it can be determined that the vehicle's front is pointing 60 degrees east-southeast, and the vehicle's front is tilted upward, forming a 30-degree angle with the horizon. Combined with the solar position of 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 a relative spatial position relationship is formed in which the sun is directly shining into the driver's eyes, and then it is predicted whether the driving position in the next clock cycle is in direct sunlight.

[0081] After step S20 , step S30 is executed to adjust the current window transparency of the near-eye display device according to the prediction result of whether the driving position in the next clock cycle is in a direct sunlight state.

[0082] In this embodiment, the current window transparency refers to the transparency of the glasses lens of the near-eye display device. After 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.

[0083] The near-eye display device includes a spectacle lens having a variable transmission coefficient between a maximum and a minimum value. The transmission coefficient of the spectacle lens can be controlled via a communication protocol to adjust the transparency of the near-eye display window. Specifically, the transmission coefficient can be varied according to a pulse width modulation (PWM) mode.

[0084] In this embodiment, the current window transparency of the near-eye display device is adjusted based on the prediction result of whether the driving position in the next clock cycle is in direct sunlight, thereby facilitating automatic switching of the window transparency of the near-eye display device, so that the window transparency of the near-eye display device can adapt to changes in ambient light intensity during driving.

[0085] Exemplarily, the step S30 of adjusting the current window transparency of the near-eye display device according to the prediction result of whether the driving position in the next clock cycle is in a direct sunlight state includes:

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

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

[0088] In this embodiment, the specific values ​​of the transparency of the first window and the transparency of the second window are not specifically limited. The preferred method is to ensure that the driver can clearly perceive the road conditions while preventing direct sunlight from shining into the driver's eyes and interfering with driving. It should be noted that the transparency of the first window is lower than the transparency of the second window. For example, the transparency of the first window is 70% and the transparency of the second window is 100%.

[0089] In this embodiment, if the driving position in the next clock cycle is in direct sunlight, then before the next clock cycle arrives, the current window transparency of the near-eye display device is set to the first window transparency; 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, so that the window transparency of the near-eye display device in the embodiment of the present application can adapt to the changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the window transparency of the near-eye display device will increase accordingly, so that the driver can clearly perceive the road conditions. When the vehicle is driving in an area in direct sunlight, the window transparency of the near-eye display device will decrease accordingly to avoid direct sunlight into the driver's eyes and interfering with driving.

[0090] The technical solution of the embodiment of the present application is to obtain the current weather information and the predicted driving route, determine the vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted driving route according to the predicted driving route, and then predict whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information and the terrain information, and then adjust 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, so that the driver can predict the light intensity in advance without any operation of the driver in the scene where the driver is wearing the near-eye display device of the present application for driving. Environment, and automatically switch the window transparency of the near-eye display device in advance, that is, the window transparency of the near-eye display device of the embodiment of the present application will adapt to the changes in the ambient light intensity during driving. When the vehicle passes through a shaded area, the window transparency of the near-eye display device will be increased accordingly, so that the driver can clearly perceive the road environment. When the vehicle is driving in an area with direct sunlight, the window transparency of the near-eye display device will be reduced accordingly to avoid direct sunlight into the driver's eyes and interfering with driving. In this way, while the driver can clearly perceive the road environment during driving, the glare caused to the driver can be avoided in a timely and effective manner to reduce safety hazards.

[0091] In one practicable manner, the step of predicting whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun's position includes:

[0092] Step C10, determining a predicted vehicle head direction corresponding to the predicted vehicle position according to the predicted vehicle heading angle and the predicted vehicle head pitch angle;

[0093] In this embodiment, the predicted vehicle heading is the vehicle heading corresponding to the predicted vehicle position (the actual pointing angle of the vehicle's head in three-dimensional space), that is, the vehicle heading corresponding to the vehicle's driving position in the next clock cycle.

[0094] Step C20, calculating a predicted solar incident angle corresponding to the vehicle's driving position in the next clock cycle based on the predicted vehicle head direction and the solar position;

[0095] 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 sun's beam is incident on the vehicle, and the vehicle is regarded as a line segment perpendicular to the ground, and the angle formed by the sun's beam and the line segment).

[0096] Step C30: determining whether the vehicle's driving position in the next clock cycle is in a state of direct sunlight based on the predicted solar incidence angle.

[0097] In this embodiment, the predicted vehicle heading angle and predicted vehicle pitch angle are used to determine the vehicle's predicted vehicle position. To facilitate understanding, consider an example. Taking true north as a reference (0 degrees), and rotating clockwise, 90 degrees represents true east, and 120 degrees represents 30 degrees east of south. Taking the vehicle pitch angle of 0 degrees on a flat road (with no steepness) as a reference, the vehicle's corresponding pitch angle is positive when traveling uphill and negative when traveling downhill. The specific value of the vehicle pitch angle is related to the steepness of the slope. When the vehicle's heading angle is 160 degrees and the predicted front pitch angle is -30 degrees, it can be determined that the front of the vehicle is pointing 70 degrees east of south, and the front of the vehicle is tilted downward at an angle of 30 degrees to the horizon. Combined with the solar position of the driving position in the next clock cycle, the predicted solar incidence angle corresponding to the vehicle's driving position in the next clock cycle is calculated. Based on the predicted solar incidence angle (for example, determining whether the predicted solar incidence angle is 90 degrees, or determining whether the difference from 90 degrees is less than a preset degree threshold), it can be determined whether the front of the vehicle is just pointing to the sun, that is, whether a relative spatial position relationship is formed in which the sun just shines directly into the driver's eyes, and then accurately predicting whether the driving position in the next clock cycle is in direct sunlight.

[0098] In order to help understand the technical concept of the embodiments of the present application, a specific embodiment 1 is listed:

[0099] Please refer to Figure 3 In this specific embodiment, the user plans to drive from location A to location B at 8:00 in the morning. The distance between A and B is 20 kilometers, and the current weather condition is sunny (few clouds).

[0100] Step 1: Use the map app (the way to open the map app includes but is not limited to the near-eye display device, the car computer connected to the near-eye display device, or the mobile device) to set the starting point A and the end point B. The navigation information is as follows: Figure 3 As shown, the vehicle is expected to travel along oabcdef (i.e., the expected travel route);

[0101] Step 2: Get the weather conditions at the current location along the planned route, which is sunny (few clouds).

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

[0103] Step 4: Since the driving time is 8:00 AM, the sun is rising in the east (i.e., the sun's position is determined based on the current time). The estimated route runs from northwest to southeast. The driving directions in the three sections ab, cd, and ef are almost due west to due east (i.e., the vehicle's heading information is determined), which means they are directly exposed to sunlight.

[0104] Step 5: When the vehicle approaches a, c, or e, the AR glasses' main control chip (AR glasses are one embodiment of a near-eye display device) controls electrochromism, reducing the transparency of the AR glasses' lenses (i.e., window transparency). When the vehicle moves away from b, d, or f, the AR glasses' main control chip controls electrochromism, increasing the transparency of the glasses' lenses.

[0105] This specific embodiment predicts whether the driving direction of each position on the planned route is in direct sunlight. Finally, based on the prediction result of the direct sunlight state, the transparency of the AR glasses' lenses is switched when the vehicle is about to enter the road section. This predicts the lighting environment in advance and automatically switches the transparency of the AR glasses' windows in advance, thereby improving the driver's safety and the experience of using in-vehicle AR.

[0106] It should be noted that the many details shown in this example are only helpful for understanding the technical concept of the embodiment of this application, and do not constitute a limitation of this application. More forms of deformation or transformation based on the technical concept of the embodiment of this application should all be within the scope of protection of this application.

[0107] Example 2

[0108] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above embodiment 1 can be referred to the above introduction and will not be described in detail later. Figure 2 After the step of adjusting the transparency of the current window of the near-eye display device, the method further includes:

[0109] Step S40, detecting the current direct light intensity in real time by using the light sensor carried by the near-eye display device;

[0110] In this embodiment, the direct light intensity refers to the sunlight intensity relative to the direct light intensity towards the driver's eyes.

[0111] Step S50, querying and obtaining the window transparency of the current direct light intensity mapping from a preset data mapping table;

[0112] It is understandable that the data mapping table stores a plurality of different direct light intensity values, as well as a one-to-one mapping relationship between each direct light intensity and the window transparency.

[0113] Step S60 : Using the mapped window transparency as a target window transparency, and calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency.

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

[0115] It should be noted that, due to the way of predicting the direct sunlight state through the above-mentioned embodiment: predicting whether the vehicle's driving position in the next clock cycle is in a direct sunlight state based on weather information, vehicle heading information and terrain information, and 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 a direct sunlight state, there may be prediction errors, that is, the prediction result obtained by performing calculations and analysis based on the integration of various information (including weather information, vehicle heading information and terrain information) may not be completely accurate. At this time, it is possible to predict whether the vehicle's driving position in the next clock cycle is in a direct sunlight state based on the calculations and analysis based on the integration of various information, and then use the light sensor carried by the near-eye display device to detect the current direct sunlight in real time. The window transparency mapped by the current direct light intensity is obtained from the preset data mapping table, and the mapped window transparency is used as the target window transparency. The current window transparency of the near-eye display device is calibrated and adjusted according to the target window transparency, so that the predicted result can be corrected, so as to try to eliminate the prediction errors caused by factors such as clouds, buildings and tunnels blocking the sun so that the vehicle is not actually in a direct sunlight state, or buildings reflecting sunlight so that the vehicle is actually in a direct sunlight state, so as to more accurately adjust the window transparency of the near-eye display device so that it can adapt to the changes in ambient light intensity during driving, and further ensure that while the driver can clearly perceive the road conditions during driving, the glare caused to the driver can be avoided in a timely and effective manner to reduce safety hazards.

[0116] In this embodiment, a light sensor can be used to monitor the intensity of direct light around the near-eye display device in real time. Under normal circumstances, the human eye has a maximum threshold for light intensity. When this threshold is exceeded, the human eye cannot see objects in the environment normally, or it may cause extreme eye discomfort. The spectacle lenses of the near-eye display device can be configured as electrochromic glass or electrochromic film. The optical properties of these materials undergo stable and reversible color changes under the influence of an external electric field, which manifests as reversible changes in color and transparency. This allows the device to be manufactured in a manner that allows the transmittance of spectacle lenses to change with changes in ambient light intensity. In one example, when the current direct light intensity exceeds a predetermined threshold, the control module of the near-eye display device changes the transparency of the spectacle lenses, ensuring that the light intensity transmitted through the spectacle lenses is within the acceptable range for the human eye, thereby ensuring that the light intensity perceived by the human eye does not vary significantly and ensuring driving safety. In another example, when the near-eye display device determines that the change in light intensity around the glasses is greater than a predetermined threshold based on the direct light intensity collected by the light sensor, affecting the human eye's observation ability, it will control and adjust the transmittance of the glasses lens of the near-eye display device to control the light intensity passing through the glasses lens within an appropriate range, thereby ensuring the safety of the glasses wearer. The transmission coefficient of the near-eye display device 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 transparency of the near-eye display device becomes lower. And as the direct light intensity decreases, the current window transparency of the near-eye display device becomes higher.

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

[0118] Step D10, comparing the target window transparency with the current window transparency of the near-eye display device;

[0119] In step D20 , if the absolute value of the difference between the target window transparency and the current window transparency is greater than a preset threshold, the current window transparency is adjusted to the target window transparency.

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

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

[0122] Step E10, comparing the target window transparency with the current window transparency of the near-eye display device;

[0123] Step E20: if the current window transparency is greater than the first preset value of the target window transparency, reducing the current window transparency of the near-eye display device by a first gradient value;

[0124] Step E30: If the current window transparency is less than the second preset value of the target window transparency, the current window transparency of the near-eye display device is increased by a second gradient value.

[0125] Among them, the first preset value and the second preset value are not specifically limited in this embodiment, so as to better judge whether the current window transparency can adapt to the current ambient light intensity, so that when the driver wears the near-eye display device of this application to drive, the driver does not need to perform any operation, the lighting environment is predicted in advance, and the window transparency of the near-eye display device is automatically switched in advance or in real time, so that the driver can clearly perceive the road environment during driving while also being able to timely and effectively avoid the glare caused to the driver. Among them, the first preset value and the second preset value can be the same or different. For example, the first preset value and the second preset value are both 3% or 6% transparency. For another example, the first preset value is 4% transparency and the second preset value is 5% transparency.

[0126] In this embodiment, the magnitudes of the first gradient value and the second gradient value are not specifically limited in this embodiment, and are intended to better calibrate and adjust the transparency of the current window of the near-eye display device. The first gradient value and the second gradient value can be the same or different. For example, the first gradient value and the second gradient value both have a transparency of 5% or 10%. For another example, the first gradient value has a transparency of 7% and the second gradient value has a transparency of 8%.

[0127] This embodiment compares the target window transparency with the current window transparency of the near-eye display device. If the current window transparency is greater than a first preset value of the target window transparency, the current window transparency of the near-eye display device is reduced by a first gradient value; if the current window transparency is less than a second preset value of the target window transparency, the current window transparency of the near-eye display device is increased by a second gradient value, thereby accurately calibrating and adjusting the current window transparency of the near-eye display device, so that the user's eyes can better adapt to the current ambient light intensity.

[0128] In order to help understand the technical concept of this application, the following specific embodiment is listed:

[0129] Based on the first embodiment, the second embodiment adds a cloudy scenario. In this 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 current weather condition is sunny and cloudy.

[0130] Compared to the first embodiment, this embodiment reduces the accuracy of direct sunlight exposure due to cloudy conditions (i.e., clouds are likely to block the sun, preventing the vehicle from being in direct sunlight). Therefore, to address this issue, detection data from an illumination sensor (i.e., a light sensor) is used as a basis. The specific transparency switching strategy changes as follows: when the vehicle approaches points a, c, or e, the window transparency of the near-eye display device still needs to be reduced, but the reduction is smaller than when the sky is clear or cloudless. For example, when the sky is clear or cloudless, the transparency is switched to 30% when the vehicle approaches point a. On cloudy days, the transparency is switched to 40%. Because cloudy conditions may block the sun and do not directly illuminate the eyes, the transparency does not need to be reduced significantly. After switching, the data collected by the light sensor (i.e., the optical sensor) is used to determine whether the detected direct light intensity reaches the direct sunlight intensity threshold. If the threshold is reached, it is determined that the sun is not obscured 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 obscured by clouds or the light intensity is not high, and the transparency is maintained at 30%.

[0131] This specific embodiment can monitor the direct light intensity around the near-eye display device with the help of a light sensor.

[0132] The window transparency is attenuated according to the brightness of the road scene under strong sunlight to prevent the driver from being dazzled. This also minimizes prediction errors caused by factors such as clouds blocking the sun so that the vehicle is not actually in direct sunlight. This allows the window transparency of the near-eye display device to more accurately adapt to changes in ambient light intensity during driving.

[0133] 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. More simple transformations based on the technical concept of this application should all be within the scope of protection of this application.

[0134] Example 3

[0135] The present invention also provides an anti-glare device, please refer to Figure 4 The anti-glare device is applied to a near-eye display device, and the anti-glare device includes:

[0136] An acquisition module 10 is configured to acquire current weather information and a predicted travel route, and determine vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route based on the predicted travel route;

[0137] The prediction module 20 is configured to predict whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information, and the terrain information;

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

[0139] Optionally, the prediction module 20 is further configured to:

[0140] Determine whether the current weather is sunny according to the weather information;

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

[0142] Obtaining the current vehicle position and current driving speed, and predicting the vehicle position for the next clock cycle based on the current vehicle position, current driving speed, and the predicted driving route;

[0143] Determine the predicted vehicle heading angle corresponding to the predicted vehicle position when the vehicle is traveling according to the vehicle heading information, and determine the predicted vehicle head pitch angle corresponding to the predicted vehicle position when the vehicle is traveling according to the terrain information;

[0144] Based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun position, it is predicted whether the vehicle's driving position in the next clock cycle is in a state of direct sunlight.

[0145] Optionally, the prediction module 20 is further configured to:

[0146] Determining a predicted vehicle head direction corresponding to the predicted vehicle position according to the predicted vehicle heading angle and the predicted vehicle head pitch angle;

[0147] Calculating a predicted solar incident angle corresponding to the vehicle's driving position in the next clock cycle based on the predicted vehicle head direction and the solar position;

[0148] Based on the predicted solar incident angle, it is determined whether the driving position of the vehicle in the next clock cycle is in a state of direct sunlight.

[0149] Optionally, the adjustment module 30 is further configured to:

[0150] If the driving position in the next clock cycle is in a state of direct sunlight, before the next clock cycle arrives, setting the current window transparency of the near-eye display device to the first window transparency;

[0151] 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 a second window transparency before the next clock cycle arrives, wherein the first window transparency is less than the second window transparency.

[0152] Optionally, the adjustment module 30 is further configured to:

[0153] Detecting the current direct light intensity in real time through the light sensor carried by the near-eye display device;

[0154] From the preset data mapping table, query and obtain the window transparency of the current direct light intensity mapping;

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

[0156] Optionally, the adjustment module 30 is further configured to:

[0157] Comparing the target window transparency with the current window transparency of the near-eye display device;

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

[0159] Optionally, the adjustment module 30 is further configured to:

[0160] Comparing the target window transparency with the current window transparency of the near-eye display device;

[0161] If the current window transparency is greater than the first preset value of the target window transparency, reducing the current window transparency of the near-eye display device by a first gradient value;

[0162] If the current window transparency is less than the second preset value of the target window transparency, the current window transparency of the near-eye display device is increased by a second gradient value.

[0163] The anti-glare device provided in an embodiment of the present invention utilizes the anti-glare method of the first or second embodiment above, enabling the driver to clearly perceive road conditions while driving while also promptly and effectively avoiding the glare caused by strong light. Compared to the prior art, the beneficial effects of the anti-glare device provided in an embodiment of the present invention are the same as those of the anti-glare method provided in the above embodiments. Other technical features of the anti-glare device are the same as those disclosed in the above embodiments and are not further described here.

[0164] Example 4

[0165] An embodiment of the present invention provides a near-eye display device, comprising: 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, and the instructions are executed by the at least one processor to enable the at least one processor to execute the anti-glare method in the above-mentioned embodiment 1.

[0166] Reference below Figure 5 , which shows a schematic diagram of the structure of a near-eye display device suitable for implementing the embodiments of the present disclosure. The near-eye display device in the embodiments of the present disclosure includes, but is not limited to, a Mixed Reality (MR) device (such as MR glasses or MR helmet), an Augmented Reality (AR) device (such as AR glasses or AR helmet), an Extended Reality (XR) device, or some combination thereof, and the like. Figure 5 The near-eye display device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

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

[0168] Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, hard disk, etc.; and communication devices 1009. The communication devices 1009 may allow the near-eye display device to communicate with other devices wirelessly or wired to exchange data. While the figures illustrate a near-eye display device with various systems, it should be understood that not all of the illustrated systems are required to be implemented or present. More or fewer systems may alternatively be implemented or present.

[0169] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0170] The near-eye display device provided by the present invention utilizes the anti-glare method of the above-mentioned embodiment, enabling the driver to clearly perceive road conditions while driving while also promptly and effectively avoiding the glare caused to the driver. Compared to the prior art, the beneficial effects of the near-eye display device provided by the embodiment of the present invention are the same as those of the anti-glare method provided by the above-mentioned embodiment. Other technical features of the near-eye display device are the same as those disclosed in the above-mentioned embodiment and are not further described here.

[0171] It should be understood that various parts of the present disclosure can be implemented with hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in an appropriate manner.

[0172] 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 modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

[0173] Example 5

[0174] An embodiment of the present invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, and the computer-readable program instructions are used to execute the anti-glare method in the above embodiment.

[0175] The computer-readable storage medium provided in the embodiments of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems, or devices, or any combination thereof. More specific examples of computer-readable storage media 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, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores 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.

[0176] The computer-readable storage medium may be included in the near-eye display device, or may exist independently without being assembled into the near-eye display device.

[0177] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the near-eye display device, the near-eye display device: obtains current weather information and a pre-driving route, and determines, based on the pre-driving route, the vehicle heading information and terrain information corresponding to each position of the vehicle on the pre-driving route; predicts, based on the weather information, the vehicle heading information and the terrain information, whether the driving position of the vehicle in the next clock cycle is in direct sunlight; and adjusts 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.

[0178] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0179] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0180] The modules involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0181] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the aforementioned anti-glare method. This allows drivers to clearly perceive road conditions while driving while also promptly and effectively avoiding glare caused by strong light. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiments of the present invention are similar to those of the anti-glare method provided by the aforementioned first or second embodiments, and are not further elaborated here.

[0182] Example 6

[0183] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the anti-glare method described above when executed by a processor.

[0184] The computer program product provided in this application enables drivers to clearly perceive road conditions while driving, while also promptly and effectively preventing glare from occurring to the driver. Compared to the prior art, the beneficial effects of the computer program product provided in this embodiment of the present invention are the same as those of the anti-glare method provided in the first or second embodiments above, and are not further elaborated here.

[0185] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.

Claims

1. An anti-glare method, characterized in that: The anti-glare method is applied to a near-eye display device, and the method includes: Obtaining current weather information and a predicted travel route, and determining vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route based on the predicted travel route; predicting whether the vehicle's driving position in the next clock cycle will be in direct sunlight based on the weather information, the vehicle heading information, and the terrain information; The current window transparency of the near-eye display device is adjusted according to the prediction result of whether the driving position in the next clock cycle is in a direct sunlight state.

2. The anti-glare method according to claim 1, wherein: The step of predicting whether the vehicle's driving position in the next clock cycle is in direct sunlight based on the weather information, the vehicle heading information, and the terrain information includes: Determine whether the current weather is sunny according to the weather information; If so, obtain the current time and determine the sun's position based on the current time; Obtaining the current vehicle position and current driving speed, and predicting the vehicle position for the next clock cycle based on the current vehicle position, current driving speed, and the predicted driving route; Determine the predicted vehicle heading angle corresponding to the predicted vehicle position when the vehicle is traveling according to the vehicle heading information, and determine the predicted vehicle head pitch angle corresponding to the predicted vehicle position when the vehicle is traveling according to the terrain information; Based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun position, it is predicted whether the vehicle's driving position in the next clock cycle is in a state of direct sunlight.

3. The anti-glare method according to claim 2, wherein: The step of predicting whether the vehicle's driving position in the next clock cycle is in a direct sunlight state based on the predicted vehicle heading angle, the predicted vehicle head pitch angle, and the sun's position includes: Determining a predicted vehicle head direction corresponding to the predicted vehicle position according to the predicted vehicle heading angle and the predicted vehicle head pitch angle; Calculating a predicted solar incident angle corresponding to the vehicle's driving position in the next clock cycle based on the predicted vehicle head direction and the solar position; Based on the predicted solar incident angle, it is determined whether the driving position of the vehicle in the next clock cycle is in a state of direct sunlight.

4. The anti-glare method according to claim 1, wherein: The step of adjusting the current window transparency of the near-eye display device according to the prediction result of whether the driving position in the next clock cycle is in a direct sunlight state includes: If the driving position in the next clock cycle is in direct sunlight, before the next clock cycle arrives, setting the current window transparency of the near-eye display device to the first window transparency; 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 a second window transparency before the next clock cycle arrives, wherein the first window transparency is less than the second window transparency.

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: Detecting the current direct light intensity in real time through the light sensor carried by the near-eye display device; From the preset data mapping table, query and obtain the window transparency of the current direct light 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 according to claim 5, wherein: The step of calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency comprises: Comparing the target window transparency with the current window transparency of the near-eye display device; If the absolute value of the difference between the target window transparency and the current window transparency is greater than a preset threshold, the current window transparency is adjusted to the target window transparency.

7. The anti-glare method according to claim 5, wherein: The step of calibrating and adjusting the current window transparency of the near-eye display device according to the target window transparency comprises: Comparing the target window transparency with the current window transparency of the near-eye display device; If the current window transparency is greater than the first preset value of the target window transparency, reducing the current window transparency of the near-eye display device by a first gradient value; If the current window transparency is less than the second preset value of the target window transparency, the current window transparency of the near-eye display device is increased by a second gradient value.

8. An anti-glare device, characterized in that: The anti-glare device is applied to a near-eye display device, and the device includes: an acquisition module configured to acquire current weather information and a predicted travel route, and determine, based on the predicted travel route, vehicle heading information and terrain information corresponding to each position of the vehicle on the predicted travel route; a prediction module configured to predict whether the vehicle's driving position in the next clock cycle will be in direct sunlight based on the weather information, the vehicle heading information, and the terrain information; The adjustment module is configured to adjust the current window transparency of the near-eye display device according to a prediction result of whether the driving position in the next clock cycle is in a direct sunlight state.

9. A near-eye display device, characterized in that: The near-eye display device comprises: 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, and the instructions are 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 7.

10. 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. The program for implementing the anti-glare method is executed by a processor to implement the steps of the anti-glare method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Control method of vehicle shading device, vehicle and storage medium

    CN114312253A

  • Vehicle visor control method and device, electronic equipment and storage medium

    CN114435093A