Anti-glare method, near-eye display device, and computer-readable storage medium
Patent Information
- Application Number
- CN202310412363.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-17
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-04-17
AI Technical Summary
其中,AR眼镜应用场景越来越多,例如AR教学和AR展品参览等,但由于近眼显示设备功能的局限性,近眼显示设备在驾车场景的应用较少,这是因为驾驶员佩戴目前市场上的近眼显示设备进行驾车,将无法有效保障行车安全
[0017]The technical solution of this application involves obtaining the first ambient light intensity at the current vehicle location, adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity, then obtaining the pre-driving route. Based on this pre-driving route, the application determines the vehicle heading information, terrain information, and road facility information corresponding to each position of the vehicle along the route. Furthermore, based on this vehicle heading information, terrain information, and road facility information, the application predicts the change in ambient light intensity at the predicted vehicle location in the next clock cycle. Finally, based on the change in ambient light intensity, the application pre-adjusts the window transmittance of the near-eye display device. This allows the driver to operate the near-eye display device without any manual intervention while driving, providing advance warning. The device predicts changes in ambient light intensity and automatically adjusts the transmittance of the near-eye display window in advance. Specifically, the transmittance of the near-eye display window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display window increases accordingly, allowing the driver to clearly perceive the road conditions. Conversely, when the vehicle is in an area with high ambient light intensity, the transmittance of the near-eye display window decreases accordingly, preventing drastic changes in light intensity from interfering with driving. This allows the driver to clearly perceive the road conditions while effectively avoiding short-term visual loss caused by sudden changes in light, thus reducing driving safety hazards.
Smart Images

Figure CN118818762B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of near-eye display devices, and more particularly to an anti-glare method, a near-eye display device, and a computer-readable storage medium. Background Technology
[0002] In recent years, with the development of science and technology and people's increasingly diverse needs, near-eye display devices such as AR glasses or AR helmets have ushered in unprecedented development opportunities. Among them, AR glasses have more and more application scenarios, such as AR teaching and AR exhibition viewing. However, due to the limitations of near-eye display devices, their application in driving scenarios is relatively limited. This is because drivers wearing the near-eye display devices currently on the market cannot effectively ensure driving safety.
[0003] In driving scenarios, drivers often experience impaired visibility due to sudden changes in ambient light, posing a risk of dangerous driving and potential traffic accidents. To address this discomfort, drivers typically wear sunglasses. However, a drawback is the need to remove sunglasses whenever the vehicle passes through shaded areas. This is because, in low light conditions, sunglasses can impair the driver's ability to clearly perceive road conditions, creating a safety hazard. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity can interfere with normal driving maneuvers, posing a significant safety risk.
[0004] Currently, the improvement to these conventional sunglasses on the market is to provide electrochromic lenses that are sensitive to ambient light levels. However, relying solely on external light sensors to drive the lenses to electrochromize has a delay of seconds. This means that a car accident may occur before the sunglasses can electrochromize, making it impossible to avoid the short-term visual loss caused by sudden changes in light (or drastic changes in light intensity) in a timely and effective manner. Summary of the Invention
[0005] The main objective of this application is to provide an anti-glare method, a near-eye display device, and a computer-readable storage medium, which aims to enable drivers to clearly perceive road conditions while driving, and to promptly and effectively avoid short-term visual loss caused by sudden changes in light, thereby reducing safety hazards.
[0006] To achieve the above objectives, this application provides an anti-glare method applied to a near-eye display device, the method comprising: Obtain the first ambient light intensity at the current vehicle location, and adjust the current window transmittance of the near-eye display device to match the first ambient light intensity; Obtain the pre-driving route, and based on the pre-driving route, 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 vehicle heading information, terrain information, and road infrastructure information, predict the change in light intensity at the predicted vehicle position in the next clock cycle. Based on the light intensity change information, the light transmittance of the viewing window of the near-eye display device is pre-adjusted.
[0007] Optionally, before the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity, the method includes: The system dynamically collects the user's eye feature information and determines whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on the dynamically collected eye feature information. If so, then proceed with the step of obtaining the pre-driving route; If not, then proceed with the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity.
[0008] Optionally, the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity includes: From the preset transmittance mapping table, the transmittance of the window mapped to the first ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. Based on the target window transmittance, the current window transmittance of the near-eye display device is calibrated and adjusted so that the current window transmittance matches the first ambient light intensity.
[0009] Optionally, the step of calibrating and adjusting the current window transmittance of the near-eye display device based on the target window transmittance includes: Adjust the current window transmittance of the near-eye display device to the target window transmittance; Based on dynamically collected eye feature information, determine whether the light transmittance of the target viewing window matches the intensity of the first ambient light. If not, obtain the user's custom settings for the target window transmittance, and determine the latest target window transmittance after the custom settings based on the custom settings. The latest target window transmittance is used as the optimal window transmittance associated with the first ambient light intensity. The current window transmittance of the near-eye display device is adjusted to the optimal window transmittance. Based on the optimal window transmittance, the window transmittance mapped to the first ambient light intensity in the transmittance mapping table is calibrated and updated.
[0010] Optionally, the step of determining whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on dynamically collected eye feature information includes: Based on dynamically collected eye feature information, determine whether the duration of the user's squinting state exceeds the preset duration; If so, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity; If not, then determine the user's blinking frequency based on the eye feature information; If the blinking frequency is greater than a preset frequency threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. If the blinking frequency is less than or equal to a preset frequency threshold, then the current window transmittance of the near-eye display device is determined to match the first ambient light intensity.
[0011] Optionally, the step of predicting the change in illumination intensity of the predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road infrastructure information includes: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the 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, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, the information on the change in light intensity at the predicted vehicle location is determined.
[0012] 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: If so, then the second ambient light intensity of the vehicle at the predicted vehicle position is determined according to the preset light intensity value corresponding to the sunshade area. The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, which is then used as the light intensity change information of the vehicle at the predicted vehicle location.
[0013] Optionally, the step of determining the change in light intensity at the predicted vehicle location based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the solar 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 solar incidence angle, information on the change in light intensity at the predicted vehicle location is determined.
[0014] 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.
[0015] This application also provides a computer-readable storage medium storing a program for implementing an anti-glare method, the program for implementing the anti-glare method being executed by a processor to implement the steps of the anti-glare method as described above.
[0016] 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.
[0017] The technical solution of this application involves obtaining the first ambient light intensity at the current vehicle location, adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity, then obtaining the pre-driving route. Based on this pre-driving route, the application determines the vehicle heading information, terrain information, and road facility information corresponding to each position of the vehicle along the route. Furthermore, based on this vehicle heading information, terrain information, and road facility information, the application predicts the change in ambient light intensity at the predicted vehicle location in the next clock cycle. Finally, based on the change in ambient light intensity, the application pre-adjusts the window transmittance of the near-eye display device. This allows the driver to operate the near-eye display device without any manual intervention while driving, providing advance warning. The device predicts changes in ambient light intensity and automatically adjusts the transmittance of the near-eye display window in advance. Specifically, the transmittance of the near-eye display window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display window increases accordingly, allowing the driver to clearly perceive the road conditions. Conversely, when the vehicle is in an area with high ambient light intensity, the transmittance of the near-eye display window decreases accordingly, preventing drastic changes in light intensity from interfering with driving. This allows the driver to clearly perceive the road conditions while effectively avoiding short-term visual loss caused by sudden changes in light, thus reducing driving safety hazards.
[0018] It is worth mentioning that this application combines road facility information to determine the light intensity change information of the vehicle's predicted position in the next clock cycle, so as to avoid the vehicle entering or leaving road-shaded buildings (road-shaded buildings may be tunnels, underpasses, basements or roadside buildings that block sunlight, etc.) and causing discomfort to the human eye in driving scenarios with large changes in ambient light intensity. If it is determined that the vehicle will not enter the sun-shaded area of the road-shaded building in the next clock cycle, further calculations and analyses are needed based on vehicle heading information and terrain information to predict the ambient light intensity at the vehicle's predicted position in the next clock cycle. This allows for dynamic adjustment of the electrochromic tinting state for different driving scenarios, thereby regulating the intensity of external light and optimizing the user's experience of the virtual image display effect and optical perspective of the smart glasses. In other words, this application uses vehicle heading information, terrain information, and road facility information to predict the changes in light intensity at the driving position in the next clock cycle. Based on these changes in light intensity, it adaptively adjusts the light transmittance of the near-eye display device's window, effectively avoiding visual loss caused by the human eye's inability to adapt to sudden changes in light in a short period of time. This reduces the risk of traffic accidents caused by sudden changes in light, ensuring that while the driver can clearly perceive the road conditions, the system can also promptly and effectively avoid temporary visual loss caused by drastic changes in ambient light, thus reducing safety hazards. Attached Figure Description
[0019] 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.
[0020] 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.
[0021] Figure 1 This is a flowchart illustrating the first embodiment of the anti-glare method of this application; Figure 2 This is a flowchart illustrating the second embodiment of the anti-glare method of this application; Figure 3 This is a detailed flowchart of step S30 in the third embodiment of the anti-glare method of this application; Figure 4 This is a schematic diagram of the module structure of the anti-glare device according to an embodiment of this application; Figure 5 This is a schematic diagram of the hardware operating environment involved in the near-eye display device in this embodiment.
[0022] 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
[0023] 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.
[0024] In this embodiment, the near-eye display device includes, but is not limited to, Mixed Reality (MR) devices (such as MR glasses or MR helmets), Augmented Reality (AR) devices (such as AR glasses or AR helmets), Virtual Reality (VR) devices (such as VR glasses or VR helmets), Extended Reality (XR) devices, or some combination thereof, etc.
[0025] Example 1 In driving scenarios, drivers often experience impaired visibility due to sudden changes in ambient light, posing a risk of dangerous driving and potential traffic accidents. To address this discomfort, drivers typically wear sunglasses. However, a drawback is the need to remove sunglasses whenever the vehicle passes through shaded areas. This is because, in low light conditions, sunglasses can impair the driver's ability to clearly perceive road conditions, creating a safety hazard. Furthermore, the frequent removal and replacement of sunglasses to adapt to changes in light intensity can interfere with normal driving maneuvers, posing a significant safety risk.
[0026] Currently, the improvement to these conventional sunglasses on the market is to provide electrochromic lenses that are sensitive to ambient light levels. However, relying solely on external light sensors to drive the lenses to electrochromize has a delay of seconds. This means that a car accident may occur before the sunglasses can electrochromize, making it impossible to avoid the short-term visual loss caused by sudden changes in light (or drastic changes in light intensity) in a timely and effective manner.
[0027] Based on this, please refer to Figure 1 This embodiment provides an anti-glare method, the method comprising: Step S10: Obtain the first ambient light intensity of the current vehicle position, and adjust the current window transmittance of the near-eye display device to match the first ambient light intensity; In this embodiment, the first ambient light intensity refers to the ambient light intensity detected by the light sensor when the vehicle is driving at its current position. It should be noted that this ambient light intensity refers to the intensity of sunlight relative to the direct sunlight shining into the driver's eyes.
[0028] In this context, it can be understood that matching the current window transmittance of the near-eye display device with the first ambient light intensity means that the current window transmittance of the near-eye display device should be adapted to the ambient light intensity at the current vehicle location. This prevents mismatches such as low ambient light intensity coupled with high current window transmittance, thereby avoiding situations where the driver cannot clearly perceive the road conditions. In this embodiment, the intensity of direct sunlight in front of the near-eye display device (i.e., the ambient light intensity at the current vehicle location) can be monitored in real time using a light sensor. Normally, the human eye has a maximum threshold of light intensity it can tolerate. Exceeding this threshold makes it difficult to see objects in the environment or causes extreme eye discomfort. By using electrochromic glass or an electrochromic film as the lens of the near-eye display device, the optical properties of the material can undergo stable and reversible color changes under an applied electric field. This manifests as reversible changes in color and transparency, allowing for a near-eye display device where the transmittance of the lens changes with ambient light intensity. In one example, when the current direct sunlight intensity exceeds a predetermined threshold, the control module of the near-eye display device changes the transparency of the lens to alter the transmittance of the display window, ensuring that the light intensity transmitted through the lens remains within an acceptable range for the human eye. This prevents significant changes in the perceived light intensity and ensures driving safety. In another example, when the near-eye display device determines, based on the direct light intensity collected by the light sensor, that the change in light intensity around the glasses exceeds a predetermined threshold and affects the wearer's visual ability, it will control and adjust the light transmittance of the glasses lenses to keep the light intensity passing through the lenses within a suitable range, thereby ensuring the safety of the glasses wearer. The near-eye display device's transmittance coefficient (i.e., window transmittance) is predicted in advance and adjusted in real time based on the direct light intensity of the road scene observed by the driver: as the direct light intensity increases, the current window transmittance of the near-eye display device becomes lower; conversely, as the direct light intensity decreases, the current window transmittance of the near-eye display device becomes higher.
[0029] After step S10, step S20 is executed to obtain the pre-driving route and, based on the pre-driving route, determine the vehicle heading information, terrain information, and road facility information corresponding to each position of the vehicle on the pre-driving route. 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.
[0030] In this embodiment, the road facility information refers more specifically to the road's architectural facilities information. For ease of understanding, this architectural facilities information can specifically refer to whether the vehicle's position in the next clock cycle is within the sun-shaded area of a road-shading structure. This road-shading structure is used to characterize structures that block sunlight, preventing the vehicle from being directly exposed to sunlight. Correspondingly, the sun-shaded area refers to the area where the vehicle is not directly exposed to sunlight (the shaded area). The road-shading structures may include tunnels, underpasses, basements, and roadside buildings, etc.
[0031] 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).
[0032] 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.
[0033] Typically, users set a driving route (i.e., a pre-driving route) in the navigation system before driving, obtaining information such as road direction (or vehicle heading) and terrain from a high-precision map. Then, they obtain weather information corresponding to the current vehicle location based on GPS information and weather software.
[0034] After step S20, step S30 is executed to predict the change in light intensity of the vehicle's predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road facility information. The predicted vehicle position refers to the predicted vehicle position (also known as the driving position) for the next clock cycle.
[0035] 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.
[0036] 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.
[0037] In this embodiment, it is necessary to avoid setting the clock cycle duration too short, which would prevent the vehicle's position in the next clock cycle from being predicted in advance. This would hinder the timely prediction of changes in light intensity at the vehicle's location in the next clock cycle (i.e., the predicted vehicle position), and consequently, the ability to effectively mitigate short-term visual loss caused by sudden changes in light. For example, if the computation time for predicting changes in light intensity at the vehicle's location is 0.03 seconds, and the clock cycle duration is set to 0.02 seconds, then when the vehicle encounters significant changes in light intensity, it will be unable to effectively mitigate the temporary visual loss caused by drastic changes in ambient light. Therefore, the duration of a clock cycle should be greater than or equal to this computation time.
[0038] Additionally, it's important to avoid setting the clock cycle too long. This would result in an excessively long adjustment period for the transmittance of the near-eye display, making it difficult to effectively and promptly mitigate temporary visual loss caused by sudden changes in light intensity. In other words, the optimal clock cycle length is one that closely approximates the computation time required to predict changes in light intensity at the vehicle's location.
[0039] Those skilled in the art will recognize that, based on road facility information corresponding to each position of the vehicle on the pre-driving route, it is possible to predict whether the vehicle will enter or leave the sun-shaded area of a road-shaded building in the next clock cycle. This allows for prediction of whether the light intensity of the vehicle will change drastically in the next clock cycle. In other words, the light intensity change information for the predicted vehicle position in the next clock cycle is determined first, facilitating subsequent adaptive adjustment of the light transmittance of the near-eye display device's window based on this predicted light intensity change information. It should be noted that, in addition to road facility information, this embodiment also combines vehicle heading information and terrain information to predict the vehicle's heading and obtain the sun's azimuth at the current time. Based on the vehicle's heading and the sun's azimuth, the relative spatial relationship between the sun and the driver's eyes can be predicted, thereby determining the direct light intensity corresponding to the predicted vehicle position in the next clock cycle. Then, based on the difference between this direct light intensity and the first ambient light intensity, the light intensity change information for the predicted vehicle position in the next clock cycle is determined.
[0040] After step S30, step S40 is executed to pre-adjust the light transmittance of the viewing window of the near-eye display device based on the light intensity change information.
[0041] Specifically, based on the predicted light intensity change information of the vehicle's position in the next clock cycle (i.e., determining the magnitude of the light intensity change), it can be determined whether the light intensity of the vehicle will change drastically in the next clock cycle, or whether there will be a sudden change in light. Therefore, based on the magnitude of the light intensity change corresponding to the light intensity change information, the transmittance of the near-eye display device's window can be pre-adjusted so that the transmittance of the near-eye display device's window can adapt to changes in ambient light intensity during driving. This allows the driver to clearly perceive the road conditions while effectively avoiding short-term visual loss caused by sudden changes in light.
[0042] In this embodiment, the light transmittance of the viewing window refers to the light transmittance of the spectacle lens of the near-eye display device. The light transmittance of the viewing window can be changed by altering the transparency of the spectacle lens. When a driver wears the near-eye display device, their line of sight needs to pass through the spectacle lens of the device to visually perceive the external environment.
[0043] As those skilled in the art will know, there are currently two main solutions for photochromic lenses on the market. One is based on liquid crystal photochromic technology, specifically a color-changing technology that leverages the influence of liquid crystal molecules on the polarization state of light. Liquid crystal molecules have two orientations; when an electric field is applied to them, their orientation changes, thus altering the polarization state of light. By controlling the intensity and direction of the electric field, the orientation of the liquid crystal molecules can be achieved, thereby changing the color. Liquid crystal photochromic technology is mainly used in smart glass, LCD TVs, and other fields. The other solution is based on electrochromic technology, specifically a color-changing technology that leverages an electric field to alter the optical properties of a material. Electrochromic materials are typically composite materials composed of various metal oxides or semiconductor materials. When an electric field is applied to an electrochromic material, its electronic structure changes, thereby altering its optical properties and causing it to exhibit different colors. Electrochromic technology is mainly used in smart glasses, smart car windows, and other fields.
[0044] In this embodiment, electrochromic materials can achieve switching of optical performance between different transmittances. By applying electrochromic materials to the lenses of near-eye display devices, the intensity of light entering the human eye through the lenses can be adjusted, providing users with a more comfortable user experience.
[0045] As an example, this near-eye display device includes spectacle lenses with a transmittance coefficient that can vary between a maximum and a minimum value. The transmittance coefficient of the spectacle lenses can be controlled via a communication protocol to adjust the light transmittance of the viewing window of the near-eye display device. Specifically, the transmittance coefficient can be varied according to a pulse width modulation (PWM) mode.
[0046] In this embodiment, the transmittance of the current window of the near-eye display device is pre-adjusted based on the light intensity change information of the vehicle position in the next clock cycle, so as to facilitate the adaptive adjustment of the transmittance of the near-eye display device in advance, so that the transmittance of the near-eye display device can adapt to the changes in ambient light intensity during driving.
[0047] For example, the step of pre-adjusting the transmittance of the viewing window of the near-eye display device based on the light intensity change information includes: Step A10: From the preset light transmittance gradient adjustment mapping table, retrieve the target light transmittance gradient value and target adjustment direction mapped by the light intensity change information, wherein the target adjustment direction is upward adjustment or downward adjustment; Step A20: The transmittance of the viewing window of the near-eye display device is pre-adjusted in the target adjustment direction according to the target transmittance gradient value.
[0048] It is understandable that the light transmittance gradient adjustment mapping table stores various light intensity change information, as well as the target light transmittance gradient value and target adjustment direction mapped by each light intensity change information.
[0049] As an example, under strong sunlight (total ambient light intensity greater than 100,000 lux): the transmittance should be around 5%, meaning sunglasses should be very dark to prevent excessive sunlight from irritating the eyes. Under moderate sunlight (total ambient light intensity between 10,000 and 100,000 lux): the transmittance should be between 20% and 30% to prevent glare while still ensuring a certain level of color fidelity. On cloudy days or at night (total ambient light intensity less than 1,000 lux): the transmittance should be between 80% and 90% to ensure sufficient light transmission without obstructing vision.
[0050] In this embodiment, it can be understood that upward adjustment refers to increasing the light transmittance of the near-eye display window, while downward adjustment refers to decreasing the light transmittance of the near-eye display window. The target transmittance gradient value refers to the specific amount by which the light transmittance of the near-eye display window needs to be increased / decreased. For example, if the target transmittance gradient value is a first gradient value and the target adjustment direction is upward adjustment, it means increasing the light transmittance of the near-eye display window by the first gradient value. Conversely, if the target transmittance gradient value is a second gradient value and the target adjustment direction is downward adjustment, it means decreasing the light transmittance of the near-eye display window by the second gradient value.
[0051] This embodiment retrieves the target transmittance gradient value and target adjustment direction mapped by the light intensity change information from a preset transmittance gradient adjustment mapping table. The target adjustment direction is either upward or downward adjustment. Then, the transmittance of the near-eye display device's window is pre-adjusted in the target transmittance gradient value in the target adjustment direction. This allows the transmittance of the near-eye display device in this embodiment to adapt to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display device's window will increase accordingly, and the transmittance of the near-eye display device's window will decrease accordingly. This enables accurate and timely avoidance of short-term visual loss caused by sudden changes in light intensity to the driver.
[0052] The technical solution of this application embodiment is to obtain the first ambient light intensity at the current vehicle location, adjust the current window transmittance of the near-eye display device to match the first ambient light intensity, then obtain the pre-driving route, and based on the pre-driving route, 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 vehicle heading information, terrain information, and road facility information, predict the change in ambient light intensity at the predicted vehicle position in the next clock cycle, and then pre-adjust the window transmittance of the near-eye display device based on the change in ambient light intensity. This allows the driver to drive without any operation when wearing the near-eye display device of this application embodiment. The system predicts changes in ambient light intensity in advance and automatically adjusts the transmittance of the near-eye display device's window accordingly. Specifically, the transmittance of the near-eye display device's window adapts to changes in ambient light intensity during driving. When the vehicle passes through a shaded area, the transmittance of the near-eye display device's window increases, allowing the driver to clearly perceive the road conditions. Conversely, when the vehicle is in an area with high ambient light intensity, the transmittance of the near-eye display device's window decreases, preventing drastic changes in light intensity from interfering with driving. This ensures that while the driver can clearly perceive the road conditions, the system also effectively avoids short-term visual loss caused by sudden changes in light, thus reducing driving safety hazards.
[0053] It is worth mentioning that this application embodiment combines road facility information to determine the light intensity change information of the predicted vehicle position in the next clock cycle, so as to avoid the vehicle entering or leaving road-shading buildings (road-shading buildings may be tunnels, underpasses, basements or roadside buildings that block sunlight, etc.), so that driving scenarios with large changes in ambient light intensity will cause discomfort to the human eye. If it is determined that the vehicle will not enter the sun-shaded area of the road-shaded building in the next clock cycle, further calculations and analyses are needed based on the vehicle's heading information and terrain information to predict the ambient light intensity at the vehicle's predicted position in the next clock cycle. This allows for dynamic adjustment of the electrochromic tinting state for different driving scenarios, thereby regulating the intensity of external light and optimizing the user's experience of the virtual image display effect and optical perspective of the smart glasses. In other words, this embodiment of the application uses vehicle heading information, terrain information, and road facility information to predict the changes in light intensity at the driving position in the next clock cycle. Based on these changes in light intensity, the transmittance of the near-eye display device's window is adaptively adjusted. This effectively avoids visual loss caused by the human eye's inability to adapt to sudden changes in light in a short period of time, reducing the risk of traffic accidents caused by sudden changes in light. This ensures that while the driver can clearly perceive the road conditions during driving, the driver can also promptly and effectively avoid temporary visual loss caused by drastic changes in ambient light, reducing safety hazards.
[0054] In one possible implementation, prior to the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity, the method includes: Step B10: Dynamically collect the user's eye feature information, and determine whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on the dynamically collected eye feature information. In this embodiment, a camera can capture images of the user's eyes, and image recognition can be performed on these images to obtain the user's eye feature information. This eye feature information can be used to characterize the user's pupil information, corneal information, light spot information, iris information, or eyelid information, etc.
[0055] If the user's eyes cannot adapt to the light intensity transmitted through the lenses of the near-eye display device, that is, when the current light transmittance of the near-eye display device's viewing window does not match the ambient light intensity, the eyes will often be in an abnormal squinting state or blinking at a certain frequency.
[0056] Based on this, for example, please refer to Figure 2 The step of determining whether the current light transmittance of the near-eye display device matches the first ambient light intensity based on dynamically collected eye feature information includes: Step S51: Based on the dynamically collected eye feature information, determine whether the duration of the user's squinting state is greater than the preset duration. If so, proceed to step S52 to determine that the current window transmittance of the near-eye display device does not match the first ambient light intensity; Specifically, as an example, the actual distance between a user's upper and lower eyelids can be determined based on dynamically collected eye feature information. If the duration of the actual distance being less than a preset distance threshold is greater than a preset duration threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. The preset distance threshold is a pre-calibrated distance value between the upper and lower eyelids when the human eye is in a squinting critical state. It is easily understood that this preset distance threshold can be a value directly set by the user based on their own eye condition, or it can be a value calibrated by designers based on tests of a large number of users' eye feature samples in a squinting state. This embodiment does not limit this.
[0057] As another example, the eye feature information can be dynamically collected and matched with a pre-calibrated preset eye feature template in a squinting state. If the matching ratio is greater than a preset ratio threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. This preset eye feature template can be an eye feature template calibrated by designers based on a large number of eye feature samples of users in a squinting state.
[0058] If not, then in step S53, determine the user's blinking frequency based on the eye feature information; In this embodiment, the number of times a user blinks within a preset time period can be determined based on dynamically collected eye feature information, thereby determining the user's blinking frequency.
[0059] Step S54: If the blinking frequency is greater than a preset frequency threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. The preset frequency threshold can be set by those skilled in the art according to the actual situation. This embodiment does not make specific limitations. The standard is to better (sensitively and accurately) detect whether the user's eyes can adapt to the light intensity transmitted into the lens of the near-eye display device, that is, to more accurately determine whether the current window transmittance of the near-eye display device matches the first ambient light intensity.
[0060] Step S55: If the blinking frequency is less than or equal to a preset frequency threshold, then determine that the current window transmittance of the near-eye display device matches the first ambient light intensity.
[0061] This embodiment determines whether the duration of a user's squinting state exceeds a preset duration based on dynamically collected eye feature information. If so, it determines that the current window transmittance of the near-eye display device does not match the first ambient light intensity. If not, it determines the user's blinking frequency based on the eye feature information. If the blinking frequency exceeds a preset frequency threshold, it determines that the current window transmittance of the near-eye display device does not match the first ambient light intensity. If the blinking frequency is less than or equal to the preset frequency threshold, it determines that the current window transmittance of the near-eye display device matches the first ambient light intensity. This achieves accurate determination of whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on dynamically collected eye feature information.
[0062] After step B10, step B20 is executed. If so, the step of obtaining the pre-driving route is executed. Step B30, if not, then execute the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity.
[0063] In this embodiment, if it is determined that the current window transmittance of the near-eye display device matches the first ambient light intensity, the step of obtaining the pre-driving route is executed. However, if it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity, the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity is executed. This ensures that the current window transmittance is adjusted to match the first ambient light intensity before executing subsequent steps S20 to S40, thereby ensuring that the window transmittance of the near-eye display device can more accurately adapt to changes in ambient light intensity during driving.
[0064] In one implementable manner, the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity includes: Step C10: Query the window transmittance mapped by the first ambient light intensity from the preset transmittance mapping table; Understandably, this transmittance mapping table stores multiple different ambient light intensity values, as well as a one-to-one mapping relationship between each ambient light intensity value and the transmittance of the window. Therefore, the transmittance of the window mapped to the first ambient light intensity can be retrieved using this transmittance mapping table.
[0065] Step C20: The mapped window transmittance is used as the target window transmittance. Based on the target window transmittance, the current window transmittance of the near-eye display device is calibrated and adjusted so that the current window transmittance matches the first ambient light intensity.
[0066] It should be noted that the method of pre-adjusting the transmittance of the near-eye display device's window based on the predicted light intensity change information from the previous clock cycle may contain prediction errors. That is, the predicted light intensity change information may not be completely accurate. In this case, in addition to pre-adjusting the transmittance of the near-eye display device's window based on the predicted light intensity change information, the light sensor on the near-eye display device can be used to detect the ambient light intensity at the current vehicle location in real time. The transmittance of the window mapped to the first ambient light intensity can then be retrieved from a preset transmittance mapping table, and this mapped transmittance is used as the... The target window transmittance is used to calibrate and adjust the pre-adjusted window transmittance of the previous clock cycle. This corrects the predicted result, minimizing prediction errors caused by cloud cover or building reflections of sunlight on changes in light intensity. This allows for more accurate adjustment of the near-eye display window transmittance, enabling it to adapt more precisely to changes in ambient light intensity during driving. Furthermore, it ensures that while drivers can clearly perceive road conditions, sudden changes in light intensity can be effectively avoided, reducing safety hazards.
[0067] Furthermore, in one possible implementation, the step of calibrating and adjusting the current window transmittance of the near-eye display device based on the target window transmittance includes: Step D10: Adjust the current window transmittance of the near-eye display device to the target window transmittance; Step D20: Based on the dynamically collected eye feature information, determine whether the light transmittance of the target viewing window matches the first ambient light intensity; Specifically, this embodiment can determine whether the duration of the user's squinting state is greater than a preset duration and whether the user's blinking frequency is greater than a preset frequency threshold based on dynamically collected eye feature information, in a manner similar to steps S51 to S55 of the above embodiment. In this way, it can determine whether the light transmittance of the target window matches the first ambient light intensity. This embodiment will not be elaborated further here.
[0068] Step D30: If not, obtain the user's custom settings for the target window transmittance, and determine the latest target window transmittance after custom settings based on the custom settings. Specifically, if a mismatch is detected between the target window transmittance and the first ambient light intensity, the near-eye display device can display a preset editing interface for customizing the target window transmittance. The near-eye display device responds to the setting information entered by the user based on this preset editing interface, and determines the latest target window transmittance after the custom settings. In other words, the user can input adjustment commands for the target window transmittance in the preset editing interface to better match the current transmittance of the near-eye display device with the first ambient light intensity. This prevents the user's eyes from being unable to adapt to the light transmitted through the glasses lenses while driving, thus hindering their ability to clearly perceive road conditions and preventing potential driving safety hazards.
[0069] Step D40: Take the latest target window transmittance as the optimal window transmittance associated with the first ambient light intensity, adjust the current window transmittance of the near-eye display device to the optimal window transmittance, and calibrate and update the window transmittance mapped to the first ambient light intensity in the transmittance mapping table according to the optimal window transmittance.
[0070] In this embodiment, as those skilled in the art will know, the latest target window transmittance after custom settings is the window transmittance that the user has personalized to make most comfortable for their eyes based on the current lighting conditions (i.e., the first ambient light intensity). Therefore, this embodiment uses the latest target window transmittance as the optimal window transmittance associated with the first ambient light intensity, and adjusts the current window transmittance of the near-eye display device to the optimal window transmittance. This makes the current window transmittance of the near-eye display device more adaptable to the first ambient light intensity. Based on the optimal window transmittance, the window transmittance mapped to the first ambient light intensity in the transmittance mapping table is calibrated and updated. This facilitates subsequent real-time detection of the current external light intensity and adjustment of the current window transmittance of the near-eye display device to the window transmittance corresponding to the user's optimal light acceptance comfort based on the calibrated and updated transmittance mapping table. This avoids the user being unable to adapt to the light transmitted into the glasses lens while driving, further ensuring that while the driver can clearly perceive the road conditions, the driver can also promptly and effectively avoid short-term visual loss caused by sudden changes in light.
[0071] Example 2 Based on the first embodiment of this application, in another embodiment of this application, the same or similar content as in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 3 The step of predicting the change in light intensity at the predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road infrastructure information includes: Step S31: Obtain the current driving speed of the vehicle, and predict the vehicle position for the next clock cycle based on the current vehicle position, the current driving speed, and the pre-driving route. Step S32: Based on the predicted vehicle location and the road facility information, predict whether the vehicle will enter the sunshade area of the road shading structure in the next clock cycle, wherein the road shading structure includes a tunnel, underpass, or basement. Step S33: If not, obtain the current time and determine the sun's position based on the current time; It is known that the sun's daily trajectory follows a certain pattern, namely, rising in the east and setting in the west. The sun's daily path always begins in the east, passes through the south, and then sets in the west. It is easy to understand that the sun's position often differs at different times of the day. Therefore, the sun's position can be determined based on the current time.
[0072] Step S34: Based on the vehicle heading information, determine the predicted vehicle heading angle corresponding to the predicted vehicle position, and based on the terrain information, determine the predicted vehicle pitch angle corresponding to the predicted vehicle position. The predicted vehicle heading angle refers to the vehicle heading angle at the predicted vehicle position, which is also the vehicle heading angle at the vehicle's position in the next clock cycle (the vehicle's position in the next clock cycle is the predicted vehicle position). 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.
[0073] 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.
[0074] In this embodiment, if it is determined that the vehicle will not enter the sun-shaded area of the road-shading building in the next clock cycle, further calculations and analyses are needed, combining the sun's azimuth, the vehicle's predicted heading angle, and the predicted pitch angle, to predict the ambient light intensity at the vehicle's predicted position in the next clock cycle. The calculations and analyses of the vehicle's predicted heading angle and pitch angle are described in detail later and will not be repeated here.
[0075] Step S35: Determine the light intensity change information of the vehicle at the predicted vehicle position based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun azimuth.
[0076] 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 vehicle's location in the next clock cycle, the relative spatial relationship between the sun and the driver's eyes is determined, thereby determining the direct sunlight intensity at the predicted vehicle location. Then, based on the difference between this direct sunlight intensity and the first ambient light intensity, the change in sunlight intensity at the predicted vehicle location in the next clock cycle is determined, thus accurately calculating the change in sunlight intensity at the predicted vehicle location.
[0077] In one possible implementation, after the step of predicting whether a vehicle will enter the sun-shaded area of a road-shaded structure in the next clock cycle, the method further includes: Step E10, if yes, then determine the second ambient light intensity of the vehicle at the predicted vehicle position based on the preset light intensity value corresponding to the sunshade area. In this embodiment, if it is predicted that a vehicle will enter the sunshade area of the road-shading building in the next clock cycle, the second ambient light intensity of the vehicle at the predicted vehicle location is determined according to the preset light intensity value corresponding to the sunshade area.
[0078] Step E20: Calculate the difference between the first ambient light intensity and the second ambient light intensity to obtain light intensity difference information, and use the light intensity difference information as the light intensity change information of the vehicle at the predicted vehicle position.
[0079] It is understood that the preset light intensity value is a fixed value pre-calibrated based on the sun-shaded area. The magnitude of the preset light intensity value is not specifically limited in this embodiment, but is based on more realistically and accurately reflecting the light intensity of the sun-shaded area.
[0080] This embodiment determines that when a vehicle is in a sun-shaded area at its predicted location, a pre-defined preset light intensity value corresponding to that sun-shaded area is used as the second ambient light intensity at the predicted vehicle location. This allows for accurate prediction of the direct sunlight intensity that the driver's eyes will face when the vehicle is in the predicted location. This facilitates the subsequent determination of light intensity changes at the predicted vehicle location based on the predicted direct sunlight intensity. Based on this light intensity change information, the transmittance of the near-eye display device's window is pre-adjusted, thereby accurately and effectively mitigating short-term visual loss caused by sudden changes in light.
[0081] In one implementable manner, the step of determining the light intensity change information of the vehicle at the predicted vehicle position based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the solar azimuth includes: Step F10: 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. 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.
[0082] Step F20: Based on the predicted vehicle heading and the sun's azimuth, calculate the predicted solar incidence angle corresponding to the vehicle's predicted vehicle position. In this embodiment, the predicted solar incidence angle is the solar incidence angle corresponding to the vehicle's predicted vehicle position (the angle formed between the solar beam and the vehicle, which is considered as a line segment perpendicular to the ground).
[0083] Step F30: Based on the predicted solar incidence angle, determine the light intensity change information of the vehicle at the predicted vehicle location.
[0084] For example, step F30, the step of determining the change in light intensity of the vehicle at the predicted vehicle location based on the predicted solar incidence angle, includes: Step G10: Determine the pre-calibrated direct light intensity weight corresponding to the predicted solar incident angle; It should be noted that different predicted solar incidence angles often correspond to different direct light intensity weights. For example, the closer the predicted solar incidence angle is to 90 degrees, meaning the sunlight is more perpendicular to the vehicle, the greater the direct light intensity weight. This embodiment does not specifically limit the direct light intensity weight mapped to different predicted solar incidence angles. For example, when the predicted solar incidence angle is 90 degrees, the direct light intensity weight can be 0.95, while when the predicted solar incidence angle is 0 degrees or 180 degrees, the direct light intensity weight can be 0.05.
[0085] Step G20: Obtain current weather information and determine the total ambient light intensity corresponding to the predicted vehicle location based on the current weather information; Those skilled in the art will understand that the total ambient light intensity corresponding to the predicted vehicle location can be determined based on the current weather information of the area corresponding to the predicted vehicle location. For example, the total ambient light intensity is often higher on sunny days and lower on cloudy or rainy days. Furthermore, the total ambient light intensity can be accurately determined by considering the current time and season; for instance, the total ambient light intensity is often lower in the morning and evening and higher at midday. The total ambient light intensity is often higher in summer and lower in winter. Therefore, the total ambient light intensity corresponding to the predicted vehicle location can be calculated based on the current weather information for the current season and time, using a machine learning algorithm model based on big data.
[0086] Step G30: The product of the direct light intensity weight and the total ambient light intensity is used as the second ambient light intensity of the vehicle at the predicted vehicle position. Step G40: Calculate the difference between the first ambient light intensity and the second ambient light intensity to obtain light intensity difference information, and use the light intensity difference information as the light intensity change information of the vehicle at the predicted vehicle position.
[0087] In this embodiment, the predicted vehicle heading angle and predicted vehicle pitch angle are used to determine the predicted vehicle orientation at the predicted vehicle position. To aid understanding, an example is given: using true north as a reference (0 degrees), rotating clockwise, 90 degrees corresponds to true east, and 120 degrees corresponds to 30 degrees east of south. Using the pitch angle on a flat road (without steep slopes) as a reference (0 degrees), the pitch angle is positive when going uphill and negative when going downhill. The specific value of the pitch angle is related to the steepness of the slope. When the vehicle's heading angle is 160 degrees and the predicted pitch angle is -30 degrees, it can be determined that the vehicle's heading is 70 degrees south of east, and the vehicle's heading is angled downwards at a 30-degree angle to the horizon. Combined with the sun's azimuth at the vehicle's position in the next clock cycle, the predicted solar incidence angle corresponding to the vehicle's position in the next clock cycle can be calculated. This allows for the accurate determination of the second ambient light intensity at the vehicle's predicted position based on the predicted solar incidence angle. Subsequently, based on this second ambient light intensity, the light intensity change information at the vehicle's predicted position can be determined. Based on this light intensity change information, the transmittance of the near-eye display device's window can be pre-adjusted, thereby accurately and effectively avoiding short-term visual loss caused by sudden changes in light.
[0088] Example 3 This invention also provides an anti-glare device, please refer to... Figure 4 The anti-glare device is applied to near-eye display devices, and the anti-glare device includes: The calibration module 10 is configured to acquire the first ambient light intensity of the current vehicle position and adjust the current window transmittance of the near-eye display device to match the first ambient light intensity. The determination module 20 is configured to obtain a pre-driving route and, based on the pre-driving route, determine the vehicle heading information, terrain information, and road facility information corresponding to each position of the vehicle on the pre-driving route. The prediction module 30 is configured to predict the change in light intensity at the predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road facility information. The adjustment module 40 is configured to pre-adjust the light transmittance of the viewing window of the near-eye display device based on the light intensity change information.
[0089] Optionally, the calibration module 10 is also configured to: The system dynamically collects the user's eye feature information and determines whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on the dynamically collected eye feature information. If so, then proceed with the step of obtaining the pre-driving route; If not, then proceed with the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity.
[0090] Optionally, the calibration module 10 is also configured to: From the preset transmittance mapping table, the transmittance of the window mapped to the first ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. Based on the target window transmittance, the current window transmittance of the near-eye display device is calibrated and adjusted so that the current window transmittance matches the first ambient light intensity.
[0091] Optionally, the calibration module 10 is also configured to: Adjust the current window transmittance of the near-eye display device to the target window transmittance; Based on dynamically collected eye feature information, determine whether the light transmittance of the target viewing window matches the intensity of the first ambient light. If not, obtain the user's custom settings for the target window transmittance, and determine the latest target window transmittance after the custom settings based on the custom settings. The latest target window transmittance is used as the optimal window transmittance associated with the first ambient light intensity. The current window transmittance of the near-eye display device is adjusted to the optimal window transmittance. Based on the optimal window transmittance, the window transmittance mapped to the first ambient light intensity in the transmittance mapping table is calibrated and updated.
[0092] Optionally, the calibration module 10 is also configured to: Based on dynamically collected eye feature information, determine whether the duration of the user's squinting state exceeds the preset duration; If so, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity; If not, then determine the user's blinking frequency based on the eye feature information; If the blinking frequency is greater than a preset frequency threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. If the blinking frequency is less than or equal to a preset frequency threshold, then the current window transmittance of the near-eye display device is determined to match the first ambient light intensity.
[0093] Optionally, the prediction module 30 is also configured as follows: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the 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, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, the information on the change in light intensity at the predicted vehicle location is determined.
[0094] Optionally, the prediction module 30 is also configured as follows: If so, then the second ambient light intensity of the vehicle at the predicted vehicle position is determined according to the preset light intensity value corresponding to the sunshade area. The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, which is then used as the light intensity change information of the vehicle at the predicted vehicle location.
[0095] Optionally, the prediction module 30 is also configured as follows: 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 solar incidence angle, information on the change in light intensity at the predicted vehicle location is determined. The anti-glare device provided in this invention, employing the anti-glare method described in Embodiment 1 or Embodiment 2, enables drivers to clearly perceive road conditions while effectively and promptly avoiding short-term visual loss caused by sudden changes in light intensity. Compared to the prior art, the beneficial effects of the anti-glare device provided in this invention are the same as those of the anti-glare methods provided in the above embodiments, and other technical features of the anti-glare device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0096] Example 4 This invention provides a near-eye display device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the anti-glare method in the first embodiment described above.
[0097] 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.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] The near-eye display device provided by this invention, employing the anti-glare method in the above embodiments, enables drivers to clearly perceive road conditions while effectively and promptly avoiding short-term visual loss caused by sudden changes in light. Compared with the prior art, the beneficial effects of the near-eye display device provided by this invention are the same as those of the anti-glare method provided in the above embodiments, and other technical features of this near-eye display device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0102] 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.
[0103] 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.
[0104] Example 5 This invention provides a computer-readable storage medium having computer-readable program instructions stored thereon, which are used to execute the anti-glare method in the above embodiments.
[0105] 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.
[0106] 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.
[0107] 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: acquire a first ambient light intensity at the current vehicle position; adjust the current window transmittance of the near-eye display device to match the first ambient light intensity; acquire 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; predict the change in light intensity at the predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road facility information; and pre-adjust the window transmittance of the near-eye display device based on the change in light intensity.
[0108] 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).
[0109] 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.
[0110] 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.
[0111] The computer-readable storage medium provided by this invention stores computer-readable program instructions for executing the aforementioned anti-glare method. This enables drivers to clearly perceive road conditions while driving, and also effectively avoids short-term visual loss caused by sudden changes in light intensity. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this invention are the same as those of the anti-glare method provided in Embodiment 1 or Embodiment 2, and will not be repeated here.
[0112] Example 6 This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the anti-glare method described above.
[0113] The computer program product provided in this application enables drivers to clearly perceive road conditions while driving, and also effectively and promptly avoids short-term visual loss caused by sudden changes in light. Compared with the prior art, the beneficial effects of the computer program product provided in this embodiment are the same as those of the anti-glare methods provided in Embodiment 1 or Embodiment 2, and will not be repeated here.
[0114] 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: Obtain the first ambient light intensity at the current vehicle location, and adjust the current window transmittance of the near-eye display device to match the first ambient light intensity; Obtain the pre-driving route, and based on the pre-driving route, 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 vehicle heading information, terrain information, and road infrastructure information, predict the change in light intensity at the predicted vehicle position in the next clock cycle. Based on the light intensity change information, the light transmittance of the viewing window of the near-eye display device is pre-adjusted; Prior to the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity, the method includes: The system dynamically collects the user's eye feature information and determines whether the current window transmittance of the near-eye display device matches the first ambient light intensity based on the dynamically collected eye feature information. If so, then proceed with the step of obtaining the pre-driving route; If not, then perform the step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity; The step of determining whether the current light transmittance of the near-eye display device matches the first ambient light intensity based on dynamically collected eye feature information includes: Based on dynamically collected eye feature information, determine whether the duration of the user's squinting state exceeds the preset duration; If so, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity; If not, then determine the user's blinking frequency based on the eye feature information; If the blinking frequency is greater than a preset frequency threshold, it is determined that the current window transmittance of the near-eye display device does not match the first ambient light intensity. If the blinking frequency is less than or equal to a preset frequency threshold, then the current window transmittance of the near-eye display device is determined to match the first ambient light intensity.
2. The anti-glare method as described in claim 1, characterized in that, The step of adjusting the current window transmittance of the near-eye display device to match the first ambient light intensity includes: From the preset transmittance mapping table, the transmittance of the window mapped to the first ambient light intensity is obtained; The mapped window transmittance is used as the target window transmittance. Based on the target window transmittance, the current window transmittance of the near-eye display device is calibrated and adjusted so that the current window transmittance matches the first ambient light intensity.
3. The anti-glare method as described in claim 2, characterized in that, The step of calibrating and adjusting the current window transmittance of the near-eye display device based on the target window transmittance includes: Adjust the current window transmittance of the near-eye display device to the target window transmittance; Based on dynamically collected eye feature information, determine whether the light transmittance of the target viewing window matches the intensity of the first ambient light. If not, obtain the user's custom settings for the target window transmittance, and determine the latest target window transmittance after the custom settings based on the custom settings. The latest target window transmittance is used as the optimal window transmittance associated with the first ambient light intensity. The current window transmittance of the near-eye display device is adjusted to the optimal window transmittance. Based on the optimal window transmittance, the window transmittance mapped to the first ambient light intensity in the transmittance mapping table is calibrated and updated.
4. The anti-glare method as described in claim 1, characterized in that, The step of predicting the change in light intensity at the predicted vehicle position in the next clock cycle based on the vehicle heading information, terrain information, and road infrastructure information includes: The vehicle's current speed is obtained, and the predicted vehicle position for the next clock cycle is predicted based on the current vehicle position, the current speed, and the pre-driving route. Based on the 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, the predicted vehicle heading angle corresponding to the predicted vehicle position is determined, and based on the terrain information, the predicted vehicle pitch angle corresponding to the predicted vehicle position is determined. Based on the predicted vehicle heading angle, the predicted vehicle pitch angle, and the sun's azimuth, the information on the change in light intensity at the predicted vehicle location is determined.
5. The anti-glare method as described in claim 4, 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, then the second ambient light intensity of the vehicle at the predicted vehicle position is determined according to the preset light intensity value corresponding to the sunshade area. The difference between the first ambient light intensity and the second ambient light intensity is calculated to obtain light intensity difference information, which is then used as the light intensity change information of the vehicle at the predicted vehicle location.
6. The anti-glare method as described in claim 4, characterized in that, The step of determining the change in light intensity at the predicted vehicle location 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 solar incidence angle, information on the change in light intensity at the predicted vehicle location is determined.
7. 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.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a program for implementing the anti-glare method, which is executed by a processor to implement the steps of the anti-glare method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Strong light direct illumination detecting method and device
CN108944364A
Driving environment brightness adjusting method and system
CN110047281A