Anti-glare method and device for ar equipment, electronic equipment and readable storage medium
By using AR devices to detect slope properties and adjust the transparency of light shields, the problem of headlights flickering when vehicles meet at night has been solved, thus improving driving safety.
Patent Information
- Application Number
- CN202310685378.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-06-08
AI Technical Summary
When vehicles meet at night, changes in road gradient cause headlights to flash frequently, causing eye discomfort for drivers and posing a safety hazard.
The AR device detects the slope of the road section the vehicle is about to enter, determines whether there is headlight flickering when oncoming traffic passes, and outputs a warning message. The transparency of the light shield is adjusted according to the scene type to reduce the impact of headlight flickering.
It improves the safety of vehicles when meeting oncoming traffic at night, avoids visual stimulation caused by flashing headlights, and enhances driving safety.
Smart Images

Figure CN119105178B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of AR technology, and particularly relates to an AR device anti-glare method and device, an electronic device and a readable storage medium. BACKGROUND
[0002] With the development of AR (Augmented Reality) technology, AR technology is gradually applied to various fields, and various AR devices have emerged as the times require. AR glasses, which are well known to people, play a crucial role in the industry, medical treatment, vehicles, education and entertainment industries. AR glasses not only bring an extreme visual experience, but also provide visual information for users. Drivers can wear AR glasses to drive vehicles. Moreover, drivers usually turn on the driving lights (such as high beams or low beams) when driving at night. When two vehicles are driving on a road section with frequently changing slopes, the headlights of the two vehicles will appear and disappear with the road, causing a flickering effect, which makes the eyes of the drivers of the two vehicles uncomfortable and has a security risk. SUMMARY
[0003] The main purpose of the present application is to provide an AR device anti-glare method, device, electronic device and readable storage medium, aiming to solve the technical problem of how to improve the safety of vehicle driving.
[0004] To achieve the above purpose, the present application provides an AR device anti-glare method, which is applied to an AR device connected with a vehicle, and includes the following steps:
[0005] When it is detected according to the driving route of the vehicle that the vehicle is about to drive into a target road section with a slope, the slope attribute of the target road section is determined;
[0006] If the slope attribute matches a preset stroboscopic threshold, it is determined that the target road section is a road section with stroboscopic headlights of meeting vehicles, and a prompt information of entering a stroboscopic headlights of meeting vehicles is outputted;
[0007] According to the slope attribute and the preset stroboscopic threshold, the scene type of the stroboscopic headlights of meeting vehicles of the target road section is determined, and the transparency of the light-shielding piece of the AR device is adjusted according to the scene type.
[0008] Optionally, the step of adjusting the transparency of the light-shielding piece of the AR device according to the scene type includes:
[0009] If the scene type is a stroboscopic road section scene, the traffic flow of the target road section at the current time is obtained;
[0010] determining a driving time of the ego vehicle through the target road section according to the current speed of the ego vehicle, and adjusting the shade transparency of the AR device according to the driving time.
[0011] adjusting the shade transparency of the AR device to a preset transparency threshold when the ego vehicle is about to drive into the trough position according to the driving time.
[0012] Optionally, the step of obtaining the traffic flow of the target road section at the current time comprises:
[0013] taking a road section corresponding to a lane direction opposite to a driving direction of the ego vehicle in the target road section as a first road section;
[0014] determining a number of vehicles driving in the first road section at the current time as the traffic flow.
[0015] Optionally, the step of adjusting the shade transparency of the AR device according to the scene type comprises:
[0016] if the scene type is a long-illumination scene, determining a current speed of the ego vehicle;
[0017] calculating a driving time of the ego vehicle through the target road section according to the current speed of the ego vehicle, and adjusting the shade transparency of the AR device according to the driving time.
[0018] Optionally, the step of adjusting the shade transparency of the AR device comprises:
[0019] determining an ambient light intensity of a scene in which the ego vehicle is located, and determining a brightness of a headlight of the ego vehicle;
[0020] determining a brightness contrast according to a ratio between the ambient light intensity and the brightness of the headlight;
[0021] determining a target transparency corresponding to the brightness contrast according to a preset contrast table between brightness contrast and transparency, and adjusting the shade transparency of the AR device to the target transparency.
[0022] Optionally, the slope attribute comprises a maximum slope value, a minimum slope value and a slope change speed, and the preset strobe threshold comprises a maximum slope threshold, a minimum slope threshold and a slope change speed threshold.
[0023] The step of determining the scene type of the target road section in which the headlight of the other vehicle flashes according to the slope attribute and the preset strobe threshold comprises:
[0024] if the maximum slope value is greater than the maximum slope threshold value and the slope change speed is less than or equal to the slope change speed threshold value, determining that the scene type of the headlamp flashing of the target road section is a long irradiation scene;
[0025] if the minimum slope value is greater than the minimum slope threshold value and the slope change speed is less than or equal to the slope change speed threshold value, determining that the scene type of the headlamp flashing of the target road section is a long irradiation scene;
[0026] if the maximum slope value is less than or equal to the slope threshold value and the slope change speed is greater than the slope change speed threshold value, determining that the scene type of the headlamp flashing of the target road section is a flashing road section scene;
[0027] if the minimum slope value is less than or equal to the slope threshold value and the slope change speed is greater than the slope change speed threshold value, determining that the scene type of the headlamp flashing of the target road section is a flashing road section scene.
[0028] Optionally, the step of determining the slope attribute of the target road section comprises:
[0029] determining the amplitude and frequency of the slope change of all slopes in the target road section;
[0030] determining the slope length of the slopes in the target road section, calculating the slope value of the slopes according to the slope length and the amplitude, and screening the maximum slope value and the minimum slope value from the corresponding slope values of all slopes in the target road section;
[0031] determining the slope change speed of all slopes in the target road section according to the frequency.
[0032] In addition, to achieve the above-mentioned purpose, the application further provides an AR device anti-glare device, which comprises:
[0033] a detection module, configured to determine the slope attribute of a target road section with slopes to be entered by a host vehicle when the host vehicle is detected to travel along a travel route of the host vehicle to the target road section with slopes;
[0034] an output module, configured to determine that the target road section is a road section with headlamp flashing if the slope attribute matches a preset flashing threshold value, and output a prompt information that the headlamp of the host vehicle will be dazzling;
[0035] an adjustment module, configured to determine the scene type of the headlamp flashing of the target road section according to the slope attribute and the preset flashing threshold value, and adjust the transparency of the light-shielding piece of the AR device according to the scene type.
[0036] The application further provides an electronic device, which is a physical device, comprising a memory, a processor, and a program of the AR device anti-glare method stored in the memory and executable on the processor, which can realize the steps of the AR device anti-glare method when executed by the processor.
[0037] The application further provides a readable storage medium, which is a computer readable storage medium, and a program for realizing the AR device anti-glare method is stored on the computer readable storage medium, which can realize the steps of the AR device anti-glare method when executed by the processor.
[0038] The application further provides a computer program product comprising a computer program, which can realize the steps of the AR device anti-glare method when executed by the processor.
[0039] The technical solution of the application is that when the vehicle to be driven enters a target section with a slope according to the driving route, the slope attribute of the target section is determined to match the preset stroboscopic threshold, it can be determined that the vehicle to be driven will exist stroboscopic of oncoming vehicle lights after driving into the target section, at this time, prompt information of entering oncoming vehicle light glare will be output to inform the user driving the vehicle, and the safety of vehicle driving is improved. And the transparency of the light-shielding piece of the AR device will be adjusted according to the scene type of the stroboscopic of oncoming vehicle lights, so that the road section where the stroboscopic of oncoming vehicle lights may exist when the vehicle meets can be predicted in advance through the AR device, and the transparency of the light-shielding piece of the AR device will be automatically adjusted, without manual operation by the user, which can avoid the phenomenon that the safety of vehicle driving is low due to the stroboscopic of oncoming vehicle lights caused by the change of road slope when the vehicles drive in opposite directions at night, and the safety of vehicle driving is improved. BRIEF DESCRIPTION OF DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application together with the specification.
[0041] In order to more clearly illustrate the technical solutions in the embodiments or the prior art, the accompanying drawings needed to be used in the embodiments or the prior art description will be briefly introduced as follows, and obviously, other drawings can be obtained by those skilled in the art without creative labor under the premise of the drawings.
[0042] Figure 1 A schematic diagram of a vehicle meeting at night;
[0043] Figure 2 A schematic diagram of vehicle lights pointing to the change of vehicle body pitch;
[0044] Figure 3 Flowchart of the first embodiment of the anti-glare method for AR device;
[0045] Figure 4 Flowchart of the second embodiment of the anti-glare method for AR device;
[0046] Figure 5 Flowchart of the second embodiment of the anti-glare method for AR device;
[0047] Figure 6 Module structure diagram of the anti-glare device for AR device;
[0048] Figure 7 Device structure diagram of the hardware running environment involved in the electronic device in the embodiment.
[0049] The purposes, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0050] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings of the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the scope of protection of the present application.
[0051] When the driver drives the vehicle at night, the vehicle light is usually turned on. When the night meeting with a slope, such as a continuous slope (for example, the road section immediately after the downhill is uphill), the flashing effect is easy to cause, which makes the eyes of both drivers uncomfortable and has safety hazards. For example, as shown in Figure 1 Suppose that vehicle A and vehicle B drive on the same road section of the two-way lane at 10 o'clock at night, the directions are opposite, vehicle A drives from west to east, vehicle B drives from east to west, and both vehicles keep the light on. The slope of the driving road of vehicle A and vehicle B changes frequently.
[0052] If vehicle A and vehicle B are located at positions 01 and 02 respectively at the current time, and vehicle A appears in the field of view of the driver of driving vehicle B, and vehicle B appears in the field of view of the driver of driving vehicle A. If there is a difference between the speeds of vehicle A and vehicle B at this time, vehicle A will pass through positions a, b, c and d in turn. Since the light is fixed on the vehicle body, the direction of the light of vehicle A will swing with the pitch of the vehicle body, for example, as shown in Figure 2As shown in the figure. In addition, due to the ups and downs of the road surface of the driving road of vehicle A, in the field of view of the driver of the driving vehicle B, vehicle A also appears and disappears alternately, and the headlights of vehicle A also appear alternately in the field of view of the driver of the driving vehicle B, causing a flickering effect. And in the dark environment, the flickering effect is more serious to the human eye. Therefore, in this embodiment, the driving route set by the user in the vehicle (i.e. the vehicle) can be determined first, and the road direction, slope and other information on the driving route at the current time can be obtained according to the preset high-precision map. Then according to the map information, the amplitude and frequency of the slope change of the target section with continuous slope are calculated. And according to the amplitude and frequency, the slope attribute of the target section is determined, and if the slope attribute of the target section reaches the threshold of the frequency flicker, the user is prompted to enter the road section with dazzling headlights. Finally, when entering the target section, the transparency of the light shield is switched.
[0053] Embodiment one
[0054] Based on this, please refer to Figure 3 The AR device glare prevention method is applied to an AR device, the AR device is connected with a vehicle, and the AR device glare prevention method comprises the following steps:
[0055] Step S10, when it is detected that the vehicle is about to enter a target section with a slope according to the driving route of the vehicle, the slope attribute of the target section is determined;
[0056] The AR device in the embodiment of the application can be a vehicle-mounted AR glasses. The vehicle can be a vehicle normally driving on the road, such as a car, a truck, etc. And the vehicle-mounted AR glasses are in communication connection with the vehicle, and the user wears the vehicle-mounted AR glasses when starting the vehicle to drive. And the transparency of the light shield of the AR device in this embodiment is initially fully transparent. The target section can be a section with one or more slopes within a certain distance range. Preferably, it can be a section with continuous slopes, such as a section with at least two slopes. The selection of the target section can be to select a certain distance range of the section with slopes on the driving route which is approximately straight. For example, there is a straight section including slope A and slope B in the driving route, the vehicle drives from the uphill point of slope A to the crest of slope A, and then drives from the crest of slope A to the downhill point, and then immediately enters the uphill point of slope B to drive to the crest of slope B, and then drives from the crest of slope B to the downhill point. At this time, the section between the uphill point of slope A and the downhill point of slope B can be regarded as the target section. Wherein, the uphill point is the position point when the vehicle is about to go uphill. The downhill point is the position point when the vehicle drives downhill and is about to exit the downhill section. In this embodiment, it is preferred to take continuous slopes as an example.
[0057] Preferably, the vehicle light of the host vehicle is in an on state, and the host vehicle is driving on a road with low light and slope, such as the host vehicle driving on a steep and uneven mountain road at night. At this time, in order to avoid the phenomenon that the safety of the vehicle driving is low due to the frequent flashing of the vehicle light of the vehicle driving in the opposite direction due to the change of the road slope when meeting at night. Therefore, in the embodiment, the AR device needs to obtain the driving route on which the host vehicle is driving set in advance by the user. And determine the position point of the host vehicle on the driving route at present, and the route on which the host vehicle does not drive in the driving route. Then, according to the high-precision map, the road direction, slope and other information of the host vehicle on the driving route at the current time node are obtained. The high-precision map can be a map that can display the three-dimensional scene of the driving route.
[0058] Optionally, the current position of the vehicle and each slope in the route on which the host vehicle does not drive in the driving route are determined in the high-precision map displayed by the AR device. The slope is a road with a slope. And when the driving distance from the current position of the vehicle to the nearest slope is less than or equal to the preset distance, the step of determining the slope attribute of the target section when the host vehicle is about to drive into the target section with slope (such as continuous slope) according to the driving route of the host vehicle is performed, and the subsequent adjustment of the transparency of the light-shielding piece of the AR device is performed. Optionally, the speed of the host vehicle at the current position and the current position of the vehicle can also be determined, and the driving time of the host vehicle from the current position of the vehicle to the nearest slope of the host vehicle, such as 3 minutes, is calculated. And when the driving time is less than or equal to the preset time threshold, the step of determining the slope attribute of the target section when the host vehicle is about to drive into the target section with slope (such as continuous slope) according to the driving route of the host vehicle is performed, and the subsequent adjustment of the transparency of the light-shielding piece of the AR device is performed.
[0059] Optionally, when the AR device detects that the host vehicle is about to drive into the target section with slope, the slope value of all slopes on the target section can be parsed from the map, and then the slope attribute is determined according to the slope value. Optionally, other ways of determining the slope value are also available, which are not limited herein. The slope attribute can include the slope information of each slope in the target section, such as the slope value, the slope change speed, etc.
[0060] Optionally, if the host vehicle is currently driving on a slope, the real-time image information of the front slope can be obtained, and the slope value can be directly calculated by using the vertical position of the vanishing point of the front slope on the image, the vertical position of the vanishing point of the flat ground calibration on the image, and the focal length of the camera. The position information includes the vertical position of the vanishing point of the front slope on the image and the vertical position of the vanishing point of the flat ground calibration on the image.
[0061] Step S20, if the slope attribute matches the preset strobe threshold, it is determined that the target road section is a road section where the oncoming car light strobe exists, and a prompt information of entering the oncoming car light glare is outputted.
[0062] In this embodiment, the preset strobe threshold can be a threshold set by the user in advance. Alternatively, the specific value of the slope attribute can be compared with the preset strobe threshold, and when it is greater than or equal to the preset strobe threshold, it is determined that the slope attribute matches the preset strobe threshold, and at this time it is determined that the oncoming car light strobe phenomenon will exist when the vehicle travels to the target road section. The corresponding prompt information can be outputted to remind the user, such as outputting the prompt information of entering the oncoming car light glare. The user driving the vehicle is reminded to improve the safety of vehicle driving.
[0063] Alternatively, when matching the slope attribute with the preset strobe threshold, the slope stability of the target road section can be counted according to the slope attribute, and a slope stability coefficient matrix is constructed. The threshold corresponding to each item in the slope stability coefficient matrix is set, and these thresholds are used as the preset strobe threshold. For example, if the items include the maximum slope value, the minimum slope value and the slope change speed, only one of the items needs to be detected to be greater than the threshold corresponding to the item, and it is determined that the slope attribute of the target road section matches the preset strobe threshold. And it is determined that the oncoming car light strobe phenomenon will exist when the vehicle passes through the target road section.
[0064] Step S30, determining the scene type of the oncoming car light strobe of the target road section according to the slope attribute and the preset strobe threshold, and adjusting the transparency of the light-shielding piece of the AR device according to the scene type.
[0065] In this embodiment, when it is determined that the oncoming car light strobe phenomenon will exist when the vehicle passes through the target road section, the corresponding scene type needs to be detected, and different adjustment operations are performed on the transparency of the light-shielding piece of the AR device according to different scene types. For example, reducing the transparency, or reducing the transparency to a certain value, etc.
[0066] Alternatively, when determining the scene type, the comparison results between each item corresponding to the slope attribute and the preset strobe threshold can be used to determine the corresponding scene type. Alternatively, the scene type can include a long irradiation scene and a strobe road section scene.
[0067] In the embodiment, by determining that the slope attribute of the target road section matches the preset stroboscopic threshold when the host vehicle is detected to be about to enter the target road section with a slope according to the driving route, it can be determined that there will be stroboscopic of the oncoming vehicle light after the host vehicle enters the target road section. At this time, the prompt information of entering the oncoming vehicle light glare will be output to inform the user driving the host vehicle, thereby improving the safety of vehicle driving. Moreover, the opacity of the AR device will be adjusted according to the scene type of the oncoming vehicle light stroboscopic phenomenon, so that the road section where the oncoming vehicle light stroboscopic phenomenon may exist when the oncoming vehicle occurs can be predicted in advance through the AR device, and the opacity of the AR device will be automatically adjusted without manual operation of the user. The phenomenon that the safety of vehicle driving is low due to the stroboscopic of the vehicle light caused by the change of the road slope when the oncoming vehicle occurs at night can be avoided, and the safety of vehicle driving is improved.
[0068] Embodiment Two
[0069] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as the above embodiment one can refer to the above introduction, and the following will not be described in detail. On this basis, please refer to Figure 4 , step S30, the step of adjusting the opacity of the AR device according to the scene type, comprising:
[0070] Step a, if the scene type is a stroboscopic road section scene, the traffic volume of the target road section at the current time is obtained.
[0071] In the embodiment, if it is determined that the oncoming vehicle light stroboscopic phenomenon will exist when the host vehicle passes through the target road section, and the scene type corresponding to the oncoming vehicle light stroboscopic phenomenon is a stroboscopic road section scene, the traffic volume of the target road section at the current time needs to be determined. The traffic volume can include the number of vehicles driving in the opposite direction of the host vehicle and driving on the target road section at the current time.
[0072] Step b, if the traffic volume is greater than a preset traffic volume threshold, the driving time of the host vehicle from the current position to the trough position in the target road section is determined.
[0073] In the embodiment, the preset traffic threshold can be a threshold set in advance by the user, such as 1 or 0, etc. The traffic can be compared with the preset traffic threshold set in advance. Alternatively, the number of vehicles in the opposite direction of the host vehicle and realized in the target road section at the current time can be compared with the preset traffic threshold, and if greater, the target road section is determined to be a road section with heavy traffic, and there is a possibility of meeting. At this time, the driving time of the host vehicle from the current position to the trough position of the closest ramp in the target road section needs to be determined. Alternatively, the closest trough position can be determined according to the driving distance of the host vehicle.
[0074] Step c, according to the driving time, when the host vehicle is about to enter the trough position in the target road section, the AR device's shutter transparency is adjusted to a preset transparency threshold.
[0075] In the embodiment, the AR device's shutter transparency is adjusted to a preset transparency threshold when the host vehicle is about to reach the trough position in the target road section according to the driving time. For example, the AR device's shutter transparency is adjusted to a preset transparency threshold. The preset transparency threshold can be the minimum transparency at which the driver of the host vehicle can clearly see the road information.
[0076] Alternatively, after detecting that the host vehicle has driven out of the target road section, the AR device's shutter transparency can be restored to the transparency before adjustment.
[0077] For example, as Figure 5 described, the driver of vehicle B cannot observe the adjacent vehicle A that will pass behind the wave crest. Vehicle A will only appear in the field of view of the driver of vehicle B when it drives to the wave crest, which is a sudden appearance of headlights to the driver of vehicle B, forming a flickering effect. Therefore, the AR device's shutter transparency can be adjusted when vehicle B drives to the trough, reducing the visual impact of the flickering effect on the driver of vehicle B and improving the safety of driving of vehicle B.
[0078] Alternatively, the obtained traffic is matched with a preset traffic transparency corresponding table. The preset traffic transparency corresponding table includes a plurality of corresponding relationships between traffic and transparency. For example, when the traffic is 1, the corresponding transparency is transparency a; when the traffic is greater than 1 and less than 10, the corresponding transparency is transparency b; and when the traffic is greater than 10, the corresponding transparency is transparency c. When the traffic in the traffic transparency corresponding table matches the obtained traffic is determined, the corresponding transparency of the matching traffic in the traffic transparency corresponding table is determined as the target transparency, and the AR device's shutter transparency is adjusted to the target transparency.
[0079] In the embodiment, when it is determined that the scene type is the stroboscopic road section scene and the traffic flow at the current time is greater than the preset traffic flow threshold, the driving time of the vehicle to drive to the trough position in the target road section can be determined, and the transparency of the light-shielding piece of the AR device is reduced to the preset transparency threshold when the vehicle is about to drive into the trough position, so that the vehicle is prevented from driving uphill and the opposite vehicle is prevented from suddenly driving into the peak, thereby avoiding the stroboscopic phenomenon and improving the safety of vehicle driving.
[0080] Further, the step of obtaining the traffic flow of the target road section at the current time comprises:
[0081] In step a1, the road section corresponding to the lane direction opposite to the driving direction of the vehicle in the target road section is taken as the first road section.
[0082] In step a2, the number of vehicles driving in the first road section at the current time is determined, and the number of vehicles is taken as the traffic flow.
[0083] In the embodiment, the bidirectional lane line in the target road section can be determined first, and the road section corresponding to the lane direction opposite to the driving direction of the vehicle in the target road section is taken as the first road section. The road section corresponding to the lane direction same as the driving direction of the vehicle in the target road section is taken as the second road section. The lane direction can be determined according to the lane line drawn on the road surface. Alternatively, the number of vehicles driving in the first road section at the current time can be directly obtained according to the map information, and the number of vehicles is taken as the traffic flow.
[0084] Alternatively, the average speed of all vehicles in the first road section can also be collected, and the second driving time of each vehicle in the first road section to reach the target peak is calculated according to the average speed. The target peak is the peak closest to the vehicle from the current position in the target road section. The second target driving time is selected as the shortest one among the second driving times. The second target driving time is compared with the driving time, and when the second target driving time is less than the driving time, the transparency of the light-shielding piece of the AR device is reduced to the preset transparency threshold when the vehicle is about to drive into the trough position according to the target driving time.
[0085] In the embodiment, the number of opposite vehicles relative to the vehicle is counted to determine the traffic flow, so that the probability of night meeting can be determined according to the traffic flow.
[0086] Further, the step of adjusting the transparency of the light-shielding piece of the AR device according to the scene type of the stroboscopic phenomenon of the meeting vehicle light comprises:
[0087] Step d, if the scene type of the flashing phenomenon of the oncoming vehicle light is a long irradiation scene, determining the current speed of the host vehicle;
[0088] In this embodiment, if it is determined that the host vehicle will pass through the target road section, the flashing phenomenon of the oncoming vehicle light will occur, and the scene type corresponding to the flashing phenomenon of the oncoming vehicle light is a long irradiation scene, it is necessary to determine the speed of the host vehicle at the current time, that is, the current speed. Optionally, the AR device can directly obtain the current speed sent by the vehicle machine installed on the host vehicle.
[0089] Step e, calculating the adjustment time according to the current speed, and adjusting the transparency of the sunshade of the AR device within the adjustment time.
[0090] In this embodiment, the transparency of the sunshade of the AR device at the current time can be determined first. And the current position of the host vehicle is determined, that is, the current position. And the adjustment time is determined according to the current position. Optionally, the time for the host vehicle to start driving out of the target road section from the current position can be directly calculated and taken as the adjustment time. Optionally, if the current position is not on a slope, the slope closest to the driving distance of the host vehicle in the target road section is determined, and the time for the host vehicle to drive from the current position to the slope at the current speed is calculated and taken as the adjustment time. Optionally, the slope closest to the driving distance of the host vehicle is the slope to be driven by the host vehicle.
[0091] Optionally, if the current position is on a slope and the host vehicle is in a downhill state, the time for the host vehicle to drive from the current position to the trough of the slope at the current speed is calculated and taken as the adjustment time. If the current position is on a slope and the host vehicle is in an uphill state, the time for the host vehicle to drive from the current position to the crest of the slope at the current speed is calculated and taken as the adjustment time.
[0092] Then, the transparency of the sunshade of the AR device is adjusted within the determined adjustment time. In order to avoid the phenomenon that the adjustment operation of the transparency of the sunshade of the AR device is not completed when the host vehicle has driven through the slope in the target road section.
[0093] Optionally, when adjusting the transparency of the sunshade of the AR device, the voltage can be adjusted. For example, when the AR device is AR glasses, the voltage of the lens is adjusted, and in the adjustment process, the color change time will be adjusted with the adjustment of the current speed, that is, the adjustment time of the transparency of the sunshade of the AR device will be updated with the update of the current speed of the host vehicle.
[0094] Optionally, the adjustment can also be made according to the percentage of the shade transparency of the AR device, and the transparency can be linearly related to the voltage. Optionally, the user can set high, medium and low according to his own sensitivity, and the adjustment accuracy of each gear is different.
[0095] In the embodiment, by determining the driving time according to the current speed of the vehicle when the scene type is a long irradiation scene, and adjusting the shade transparency of the AR device within the driving time, the phenomenon that the vehicle has driven through the target road section and the shade transparency has not been adjusted is avoided.
[0096] Further, the step of adjusting the shade transparency of the AR device comprises:
[0097] Step e1, determining the ambient light intensity of the scene where the vehicle is located, and determining the brightness of the vehicle light of the vehicle;
[0098] In the embodiment, the ambient light intensity of the scene where the vehicle is located needs to be determined. Optionally, the ambient light intensity is the light intensity of other light sources on the road where the vehicle is driving, and the other light sources can be street lamps, vehicle lights of other vehicles, etc. And the brightness of the vehicle light of the vehicle at the current time is determined. Optionally, the ambient light intensity and the brightness of the vehicle light can be obtained according to the sensors installed in the vehicle, and transmitted to the AR device through the vehicle machine.
[0099] Step e2, determining the brightness contrast according to the ratio between the ambient light intensity and the brightness of the vehicle light;
[0100] In the embodiment, the ratio between the ambient light intensity and the brightness of the vehicle light is taken as the brightness contrast. That is, the brightness contrast will change constantly with the movement of the vehicle. In the embodiment, only the brightness contrast at the current time is exemplified.
[0101] Step e3, determining the target transparency corresponding to the brightness contrast according to the comparison table of the preset brightness contrast and the transparency, and adjusting the shade transparency of the AR device to the target transparency.
[0102] In the embodiment, the corresponding relationship between the brightness contrast and the shade transparency of the AR device can be set in the AR device in advance. For example, the greater the brightness contrast, the lower the shade transparency of the AR device. Optionally, a comparison table with a comparison relationship between the brightness contrast and the transparency can be set. And the target transparency corresponding to the brightness contrast at the current time is determined in the comparison table, and the shade transparency of the AR device is adjusted to the target transparency.
[0103] And it needs to be explained that when adjusting the shade transparency of the AR device, a minimum transparency is set, and after adjusting to the minimum transparency, it will not continue to adjust downward to avoid the phenomenon that the driver cannot see the scene of the driving road at all. Therefore, the target transparency will not be completely opaque.
[0104] In this embodiment, by determining the brightness contrast according to the ambient light intensity and the car light brightness, and determining the target transparency according to the brightness contrast, adjusting the shade transparency of the AR device to the target transparency, the effectiveness of the adjustment of the shade transparency of the AR device can be ensured.
[0105] Further, the slope attribute includes a maximum slope value, a minimum slope value, and a slope change speed, and the preset strobe threshold includes a maximum slope threshold, a minimum slope threshold, and a slope change speed threshold.
[0106] Further, if the slope attribute of the road section matches the preset strobe threshold, the step of determining that the matched road section has the oncoming car light strobe phenomenon includes:
[0107] Step f, if the maximum slope value of the road section is greater than the maximum slope threshold, and the slope change speed is less than or equal to the slope change speed threshold, it is determined that the road section matches the preset strobe threshold, and the type of the oncoming car light strobe phenomenon existing in the road section is a long irradiation scene;
[0108] Step g, if the minimum slope value of the road section is less than the minimum slope threshold, and the slope change speed is less than or equal to the slope change speed threshold, it is determined that the road section matches the preset strobe threshold, and the type of the oncoming car light strobe phenomenon existing in the road section is a long irradiation scene;
[0109] Step h, if the maximum slope value of the road section is less than or equal to the slope threshold, and the slope change speed is greater than the slope change speed threshold, it is determined that the road section matches the preset strobe threshold, and the type of the oncoming car light strobe phenomenon existing in the road section is a strobe road section scene;
[0110] Step i, if the minimum slope value of the road section is less than or equal to the slope threshold, and the slope change speed is greater than the slope change speed threshold, it is determined that the road section matches the preset strobe threshold, and the type of the oncoming car light strobe phenomenon existing in the road section is a strobe road section scene.
[0111] In this embodiment, the maximum slope threshold, the minimum slope threshold, and the slope change speed threshold can be thresholds set by the user in advance, and can not be the same.
[0112] Optionally, after determining the slope attribute of the target road section, the slope values corresponding to all slopes in the target road section are also determined, and the maximum slope value and the minimum slope value are selected from the slope values. The slope change speed of the slopes is determined according to the number of the slopes, and is taken as the slope change speed.
[0113] Optionally, after determining that the target road section is a road section where the oncoming vehicle light flickers, the oncoming vehicle light flickering phenomenon is classified to determine different scene types. The oncoming vehicle light flickering scene type can be classified into a long irradiation scene and a flickering road section scene. Therefore, the long irradiation scene can be determined when the slope change speed is less than or equal to a slope change speed threshold, and the maximum slope value is greater than a maximum slope threshold or the minimum slope value is greater than a minimum slope threshold. The flickering road section scene can be determined when the slope change speed is greater than the slope change speed threshold, and the maximum slope value is less than or equal to the maximum slope threshold or the minimum slope value is less than or equal to the minimum slope threshold.
[0114] In this embodiment, the scene type of the oncoming vehicle light flickering of the target road section is determined by predicting the maximum slope value, the minimum slope value, and the slope change speed, thereby ensuring the accuracy of the determined scene type.
[0115] Further, the step of determining the slope attribute of the target road section comprises:
[0116] Step x, determining the amplitude and frequency of the slope change of all slopes in the target road section;
[0117] Step y, determining the slope length of the slopes in the target road section, and calculating the slope values of the slopes according to the slope length and the amplitude, and selecting the maximum slope value and the minimum slope value from the slope values corresponding to all slopes in the target road section;
[0118] Step z, determining the slope change speed of all slopes in the target road section according to the frequency.
[0119] In this embodiment, after determining the target road section with slopes, all slopes in the target road section are first determined, and then the amplitude and frequency of the slope change of all slopes in the target road section are determined according to the current speed of the vehicle at the current time, and the position information (such as wave crest, wave trough, etc.) of each slope in the target road section. The amplitude of the slope change can be the amplitude of each slope in the target road section. The frequency can be the number of times the wave crest or wave trough of the slope appears relative to the vehicle.
[0120] Optionally, when the AR device acquires the map information and acquires the amplitude and frequency of the slope change of all slopes in the target section through the map information, the AR device can determine whether the target section is a section with frequent slope changes according to the amplitude change. If the amplitude changes greatly, it is determined that the target section is a section with frequent slope changes. When the host vehicle travels on the target section for a meeting, the frequency flicker phenomenon is likely to occur. Then, the maximum slope value and the minimum slope value are determined according to the amplitude. Alternatively, the maximum slope value and the minimum slope value can be directly determined from the acquired map information.
[0121] Optionally, when determining the slope value of the slope, the slope value can be calculated according to the amplitude of the slope and the length of the slope. For example, h = H / L x 100%, where H represents the height of the slope, L represents the length of the slope, and h represents the slope. The amplitude of the slope can be used as the height of the slope. The length of the slope is determined according to the map information acquired by the AR device, and then the slope value is calculated. Then, the maximum slope value and the minimum slope value are selected from the slope values corresponding to the target section.
[0122] Optionally, since the slope of the slope is different with respect to the host vehicle when the host vehicle is climbing or descending, after determining that the target section is a section with frequent slope changes, the slope change speed in the target section can be determined according to the frequency of the trough or peak. Specifically, the frequency of the peak or trough can be directly converted into the slope change speed. When converting the frequency into the slope change speed, a linear algorithm can be used to calculate and determine, or a preset neural network model can be used for conversion. Alternatively, a frequency-to-slope change speed correspondence table can be set up, and the acquired frequency can be converted into the slope change speed according to the correspondence table.
[0123] In this embodiment, the slope value is determined by the amplitude of the slope change and the length of the slope, and the maximum slope value and the minimum slope value are selected therefrom. Then, the frequency is determined to determine the slope change speed. The maximum slope value, the minimum slope value and the slope change speed are used as the slope attribute, thereby ensuring the accuracy of the acquired slope attribute.
[0124] Embodiment Three
[0125] The application also provides an AR device anti-glare device, which is described in detail in Figure 6 , and the AR device anti-glare device comprises:
[0126] The detection module A10 is configured to determine the slope attribute of the target section when the host vehicle is detected to be about to enter the target section with a slope according to the driving route of the host vehicle.
[0127] The output module A20 is configured to determine that the target road section is a road section where the flashing of the oncoming vehicle light exists if the slope attribute matches the preset flashing threshold, and output a prompt information that the oncoming vehicle light glare will be encountered.
[0128] The adjusting module A30 is configured to determine a scenario type of the flashing of the oncoming vehicle light on the target road section according to the slope attribute and the preset flashing threshold, and adjust the transparency of the sunshade of the AR device according to the scenario type.
[0129] Optionally, the adjusting module A30 is configured to:
[0130] If the scenario type is the flashing road section scenario, the traffic volume of the target road section at the current time is obtained.
[0131] If the traffic volume is greater than a preset traffic volume threshold, the driving time of the host vehicle from the current position to a trough position in the target road section is determined.
[0132] According to the driving time, the transparency of the sunshade of the AR device is reduced to a preset transparency threshold when the host vehicle is about to drive into the trough position.
[0133] Optionally, the adjusting module A30 is configured to:
[0134] The road section corresponding to the lane direction opposite to the driving direction of the host vehicle in the target road section is taken as a first road section.
[0135] The number of vehicles driving in the first road section at the current time is determined as the traffic volume.
[0136] Optionally, the adjusting module A30 is configured to:
[0137] If the scenario type is the long irradiation scenario, the current speed of the host vehicle is determined.
[0138] The driving time of the host vehicle through the target road section is calculated according to the current speed, and the driving time is taken as an adjusting time, and the transparency of the sunshade of the AR device is adjusted within the adjusting time.
[0139] Optionally, the adjusting module A30 is configured to:
[0140] The ambient light intensity of the scenario in which the host vehicle is located is determined, and the brightness of the vehicle light of the host vehicle is determined.
[0141] The brightness contrast is determined according to the ratio between the ambient light intensity and the brightness of the vehicle light.
[0142] Determine a target transparency corresponding to the luminance contrast according to a preset correspondence between luminance contrast and transparency, and adjust the shade transparency of the AR device to the target transparency.
[0143] Optionally, the slope attribute comprises a maximum slope value, a minimum slope value and a slope change speed, the preset strobe threshold comprises a maximum slope threshold, a minimum slope threshold and a slope change speed threshold, and the adjusting module A30 is configured to:
[0144] If the maximum slope value is greater than the maximum slope threshold and the slope change speed is less than or equal to the slope change speed threshold, it is determined that the scene type of the headlamp strobe of the target road section is a long irradiation scene.
[0145] If the minimum slope value is greater than the minimum slope threshold and the slope change speed is less than or equal to the slope change speed threshold, it is determined that the scene type of the headlamp strobe of the target road section is a long irradiation scene.
[0146] If the maximum slope value is less than or equal to the slope threshold and the slope change speed is greater than the slope change speed threshold, it is determined that the scene type of the headlamp strobe of the target road section is a strobe road section scene.
[0147] If the minimum slope value is less than or equal to the slope threshold and the slope change speed is greater than the slope change speed threshold, it is determined that the scene type of the headlamp strobe of the target road section is a strobe road section scene.
[0148] Optionally, the detecting module A10 is configured to:
[0149] Determine the amplitude and frequency of the slope change of all slopes in the target road section.
[0150] Determine the slope length of the slopes in the target road section, calculate the slope value of the slopes according to the slope length and the amplitude, and filter out the maximum slope value and the minimum slope value from the slope values corresponding to all slopes in the target road section.
[0151] Determine the slope change speed of all slopes in the target road section according to the frequency.
[0152] The AR device anti-glare device provided by the embodiment of the application adopts the AR device anti-glare method of any one of the above embodiments one to two, and can improve the safety of vehicle driving. Compared with the prior art, the AR device anti-glare device provided by the embodiment of the application has the same beneficial effects as the AR device anti-glare method provided by the above embodiments, and other technical features in the AR device anti-glare device are the same as the features disclosed in the above embodiments, which will not be repeated here.
[0153] Embodiment Four
[0154] An electronic device is provided, comprising: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the AR device anti-glare method in Embodiment One.
[0155] Reference will now be made to the following description Figure 7 which shows a structural schematic diagram of an electronic device suitable for implementing embodiments of the present disclosure. Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functions and use range of embodiments of the present disclosure.
[0156] As shown in Figure 7 , the electronic device can include a processing device (such as a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or loaded from a storage device into a random access memory (RAM). In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0157] Generally, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication devices can allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the electronic device is shown with various systems, it should be understood that all the systems shown are not required to be implemented or possessed. More or fewer systems can be alternatively implemented or possessed.
[0158] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present 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 through the communication device, or installed from the storage device, or installed from the ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the methods of embodiments of the present disclosure are performed.
[0159] The electronic device provided by the present application adopts the AR device anti-glare method in the above embodiment, and the safety of vehicle driving can be improved. Compared with the prior art, the electronic device provided by the embodiment of the present application has the same beneficial effects as the AR device anti-glare method provided by the above embodiment, and other technical features in the electronic device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.
[0160] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0161] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0162] Example five
[0163] The embodiment of the present application provides a computer readable storage medium having computer readable program instructions stored thereon, and the computer readable program instructions are used to execute the AR device anti-glare method in the above embodiment.
[0164] The computer readable storage medium provided by the embodiment of the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples of computer readable storage media can include, but are not limited to: an electric connection with one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present embodiment, the computer readable storage medium can be any tangible medium containing or storing a program, which 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 can be transmitted by any appropriate medium, including but not limited to: electric wire, optical cable, RF (radio frequency), etc., or any suitable combination of the above.
[0165] The above computer readable storage medium can be included in the electronic device; or it can exist separately without being assembled into the electronic device.
[0166] The computer readable storage medium described above carries one or more programs, which, when executed by the electronic device, enable the electronic device to perform the steps in the embodiments described above.
[0167] Computer program code for carrying out operations of the present disclosure can be written in one or more programming languages or combinations of languages including object oriented programming languages such as Java, Smalltalk, C++ or conventional procedural programming languages such as the "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0168] The flow diagrams and the block diagrams in the drawings are illustrations of architectures, functionalities, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks maysometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and / or flow diagrams, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.
[0169] The modules involved in the embodiments of the present disclosure can be implemented in the form of software or in the form of hardware. In some cases, the name of the module does not constitute a limitation on the module itself.
[0170] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the AR device anti-glare method described above, and can improve the safety of vehicle driving. Compared with the prior art, the computer readable storage medium provided by the embodiment of the present application has the same beneficial effects as the AR device anti-glare method provided by the first embodiment or the second embodiment, which will not be repeated here.
[0171] Embodiment six
[0172] The embodiment of the present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the AR device anti-glare method as described above.
[0173] The computer program product provided by the present application can improve the safety of vehicle driving. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as those of the AR device anti-glare method provided by any of the above embodiments, which will not be repeated here.
[0174] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent flow transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for preventing glare in AR devices, characterized in that, The anti-glare method for AR devices is applied to AR devices connected to the vehicle and includes the following steps: When the vehicle is detected to be entering a target road segment with a slope based on its driving route, the slope attribute of the target road segment is determined. If the slope attribute matches the preset flicker threshold, the target road segment is determined to be a road segment with flickering headlights of oncoming vehicles, and a warning message indicating that the oncoming vehicle's headlights are about to be blinding is output. The scene type of oncoming headlight flicker in the target road section is determined based on the slope attribute and the preset flicker threshold, and the transparency of the light shield of the AR device is adjusted according to the scene type. The step of adjusting the transparency of the light-shielding plate of the AR device according to the scene type includes: If the scenario type is a flashing road segment scenario, then obtain the traffic flow of the target road segment at the current moment; If the traffic flow is greater than a preset traffic flow threshold, then the travel time of the vehicle from its current location to the trough position in the target road segment is determined. Based on the travel time, when the vehicle is about to enter the trough position, the transparency of the light shield of the AR device is reduced to a preset transparency threshold.
2. The anti-glare method for AR devices as described in claim 1, characterized in that, The step of obtaining the traffic flow of the target road segment at the current time includes: The road segment in the target road segment corresponding to the lane direction opposite to the direction of travel of the vehicle is designated as the first road segment; Determine the number of vehicles traveling in the first road segment at the current moment, and use the number of vehicles as the traffic flow.
3. The anti-glare method for AR devices as described in claim 1, characterized in that, The step of adjusting the transparency of the light-shielding plate of the AR device according to the scene type includes: If the scene type is a long illumination scene, then determine the current speed of the vehicle. The driving time of the vehicle through the target road segment is calculated based on the current vehicle speed, and the driving time is used as the adjustment time. During the adjustment time, the transparency of the light shield of the AR device is adjusted.
4. The anti-glare method for AR devices as described in claim 3, characterized in that, The step of adjusting the transparency of the light-shielding film of the AR device includes: Determine the ambient light intensity of the scene in which the vehicle is located, and determine the brightness of the vehicle's headlights; The brightness contrast ratio is determined based on the ratio between the ambient light intensity and the headlight brightness. The target transparency corresponding to the brightness contrast is determined based on a preset lookup table between brightness contrast and transparency, and the transparency of the light shield of the AR device is adjusted to the target transparency.
5. The anti-glare method for AR devices as described in claim 1, characterized in that, The slope attributes include the maximum slope value, the minimum slope value, and the slope change rate; the preset flicker threshold includes the maximum slope threshold, the minimum slope threshold, and the slope change rate threshold. The step of determining the scene type of oncoming headlight flickering on the target road segment based on the slope attribute and the preset flicker threshold includes: If the maximum slope value is greater than the maximum slope threshold, and the slope change rate is less than or equal to the slope change rate threshold, then the scene type of the oncoming headlights flickering on the target road section is determined to be a long illumination scene. If the minimum slope value is greater than the minimum slope threshold, and the slope change rate is less than or equal to the slope change rate threshold, then the scene type of the oncoming headlights flickering on the target road section is determined to be a long illumination scene. If the maximum slope value is less than or equal to the slope threshold, and the slope change rate is greater than the slope change rate threshold, then the scene type of the oncoming headlights flashing on the target road segment is determined to be a flashing road segment scene. If the minimum slope value is less than or equal to the slope threshold, and the slope change rate is greater than the slope change rate threshold, then the scenario type of the oncoming headlights flashing on the target road segment is determined to be a flashing road segment scenario.
6. The anti-glare method for AR devices as described in claim 5, characterized in that, The step of determining the slope attribute of the target road segment includes: Determine the amplitude and frequency of slope changes for all ramps in the target road segment; Determine the slope length of the ramp in the target road segment, calculate the slope value of the ramp based on the ramp length and the amplitude, and filter out the maximum and minimum slope values among all the slope values corresponding to the ramps in the target road segment. The rate of change of slope for all ramps in the target road segment is determined based on the frequency.
7. An anti-glare device for AR devices, characterized in that, The anti-glare device for the AR device includes: The detection module is used to determine the slope attribute of the target road segment when the vehicle is detected to be entering a target road segment with a slope based on the vehicle's driving route. The output module is used to determine that the target road segment is a road segment with oncoming headlights flashing if the slope attribute matches the preset flicker threshold, and output a warning message that the oncoming headlights are about to be blinding. An adjustment module is used to determine the scene type of oncoming headlight flickering on the target road segment based on the slope attribute and the preset flicker threshold, and to adjust the transparency of the AR device's light shield according to the scene type; wherein, adjusting the transparency of the AR device's light shield according to the scene type includes: if the scene type is a flickering road segment scene, obtaining the traffic flow of the target road segment at the current moment; if the traffic flow is greater than the preset traffic flow threshold, determining the travel time of the vehicle from its current position to the trough position in the target road segment; and, based on the travel time, reducing the transparency of the AR device's light shield to the preset transparency threshold when the vehicle is about to enter the trough position.
8. An electronic device, characterized in that, The electronic 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 for an AR device according to any one of claims 1 to 6.
9. A readable storage medium, characterized in that, The readable storage medium is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing the anti-glare method for AR devices. The program for implementing the anti-glare method for AR devices is executed by a processor to implement the steps of the anti-glare method for AR devices as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Anti-dazzling method and device, near-to-eye display equipment and readable storage medium
CN116224598A
System and method for Anti-glare of driver
KR101655197B1