AR equipment anti-dazzling method and device, electronic equipment and readable storage medium

By detecting the slope attributes and preset strobe thresholds in the vehicle's driving route, adjusting the transparency of the light shield of the AR device, the problem of strobe lights when meeting at night is solved, and improving the safety of vehicle driving.

CN119105178AActive Publication Date: 2024-12-10GOERTEK INC

Patent Information

Application Number
CN202310685378.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-08
Publication Date
2024-12-10
Estimated Expiration
2043-06-08

AI Technical Summary

Technical Problem

When driving at night, the lights flash due to changes in the road slope when the vehicle meets, causing discomfort in the driver's eyes and poses safety hazards.

Method used

By detecting the slope attributes in the driving route matching the preset strobe threshold, the prompt information is output, and the transparency of the AR device's light shield is adjusted according to the scene type of the car light strobe to reduce the impact of the strobe light.

Benefits of technology

It improves the safety of vehicle driving, avoids strobe lights caused by changes in road slope when driving at night, and enhances the driver's visual comfort and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105178A_ABST
    Figure CN119105178A_ABST
Patent Text Reader

Abstract

The invention discloses an AR equipment anti-dazzling method and device, electronic equipment and a readable storage medium, and relates to the technical field of AR, and the AR equipment anti-dazzling method comprises the steps: determining the gradient attribute of a target road section when it is detected that the vehicle is about to drive into the target road section with a ramp according to the driving route of the vehicle; if the gradient attribute is matched with a preset stroboscopic threshold value, determining that the target road section is a road section with meeting lamp stroboscopic, and outputting prompt information that the meeting lamp is dazzling; and determining a scene type of meeting lamp stroboflash of the target road section according to the gradient attribute and the preset stroboflash threshold value, and adjusting the transparency of a shading sheet of the AR equipment according to the scene type. According to the invention, the safety of vehicle driving is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of AR technology, and in particular to an anti-glare method, device, electronic device and readable storage medium for AR equipment. Background Art

[0002] As AR (Augmented Reality) technology becomes increasingly mature, AR technology has gradually been applied to various fields, and various AR devices have emerged. Well-known AR glasses have played a pivotal role in industries such as industry, medicine, vehicles, education, and entertainment. AR glasses can provide users with visual information while bringing an ultimate visual experience. Drivers can wear AR glasses to drive vehicles. Moreover, drivers usually turn on driving lights (such as high beams or low beams) when driving at night. When meeting vehicles, when vehicles traveling in both directions are driving on a road section with frequently changing slopes, the lights of the vehicles on both sides will flicker with the uneven road, causing a flickering effect, which makes the eyes of drivers on both sides uncomfortable and poses a safety hazard. Summary of the invention

[0003] The main purpose of this 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 object, the present application provides an AR device anti-glare method, the AR device anti-glare method is applied to an AR device, the AR device is connected to 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 enter a target road section with a slope, determining the slope attribute of the target road section;

[0006] If the slope attribute matches the preset stroboscopic threshold, the target road section is determined to be a road section where oncoming vehicle lights are strobing, and a prompt message that the oncoming vehicle lights are glaring is output;

[0007] The scene type of the strobing lights of oncoming vehicles on the target road section is determined according to the slope attribute and the preset strobing threshold, and the transparency of the shading sheet of the AR device is adjusted according to the scene type.

[0008] Optionally, the step of adjusting the transparency of a shading sheet of the AR device according to the scene type includes:

[0009] If the scene type is a stroboscopic road section scene, then obtaining the traffic flow of the target road section at the current moment;

[0010] If the traffic volume is greater than a preset traffic volume threshold, determining the travel time of the host vehicle from the current position to the valley position in the target road section;

[0011] According to the driving time, when the vehicle is about to enter the trough position, the transparency of the shading sheet of the AR device is reduced to a preset transparency threshold.

[0012] Optionally, the step of obtaining the traffic flow of the target road section at the current moment includes:

[0013] The section of the target section corresponding to the lane direction opposite to the driving direction of the host vehicle is taken as the first section;

[0014] The number of vehicles traveling on the first road section at a current moment is determined, and the number of vehicles is used as the traffic flow.

[0015] Optionally, the step of adjusting the transparency of a shading sheet of the AR device according to the scene type includes:

[0016] If the scene type is a long illumination scene, determining the current speed of the host vehicle;

[0017] The driving time of the host vehicle passing through the target road section is calculated according to the current vehicle speed, and the driving time is used as the adjustment time. During the adjustment time, the transparency of the shading sheet of the AR device is adjusted.

[0018] Optionally, the step of adjusting the transparency of a light shielding sheet of the AR device includes:

[0019] Determine the ambient light intensity of the scene in which the host vehicle is located, and determine the brightness of the headlights of the host vehicle;

[0020] Determining a brightness contrast ratio according to a ratio between the ambient light intensity and the vehicle light brightness;

[0021] The target transparency corresponding to the brightness contrast is determined according to a preset comparison table between brightness contrast and transparency, and the transparency of the shading sheet of the AR device is adjusted to the target transparency.

[0022] Optionally, the slope attribute includes a maximum slope value, a minimum slope value and a slope change speed, and the preset stroboscopic threshold includes a maximum slope threshold, a minimum slope threshold and a slope change speed threshold.

[0023] The step of determining the scene type of the flashing lights of oncoming vehicles on the target road section according to the slope attribute and the preset flashing threshold comprises:

[0024] 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination scene;

[0025] 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination scene;

[0026] 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, then determining that the scene type of the flashing lights of the oncoming vehicle on 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, and the slope change speed is greater than the slope change speed threshold, it is determined that the scene type of the flashing lights of the oncoming vehicle on the target road section is a flashing road section scene.

[0028] Optionally, the step of determining the slope attribute of the target road section includes:

[0029] Determining the magnitude and frequency of slope changes of all ramps in the target road section;

[0030] Determine the ramp length of the ramp in the target road section, calculate the slope value of the ramp according to the ramp length and the amplitude, and select the maximum slope value and the minimum slope value from the slope values ​​corresponding to all the ramps in the target road section;

[0031] The gradient change speeds of all the ramps in the target road section are determined according to the frequency.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides an AR device anti-glare device, the AR device anti-glare device comprising:

[0033] A detection module, configured to determine a slope attribute of a target road section when detecting that the vehicle is about to enter a target road section with a slope according to the driving route of the vehicle;

[0034] an output module, for determining that the target road section is a road section where there is strobing lights of oncoming vehicles if the slope attribute matches a preset strobing threshold, and outputting a prompt message that there is glaring lights of oncoming vehicles;

[0035] The adjustment module is used to determine the scene type of the strobing lights of the oncoming vehicle on the target road section according to the slope attribute and the preset strobing threshold, and adjust the transparency of the shading sheet of the AR device according to the scene type.

[0036] The present application also provides an electronic device, which is a physical device, and includes: a memory, a processor, and a program of the AR device anti-glare method stored in the memory and executable on the processor. When the program of the AR device anti-glare method is executed by the processor, the steps of the AR device anti-glare method as described above can be implemented.

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

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

[0039] The technical solution of the present application is to determine that the slope attribute of the target road section matches the preset strobe threshold when the vehicle is detected to be about to enter the target road section with a ramp according to the driving route, so that it can be determined that the lights of the oncoming vehicle will strobe after the vehicle enters the target road section. At this time, a prompt message that the oncoming vehicle's lights are dazzling will be output to inform the user driving the vehicle, thereby improving the safety of vehicle driving. In addition, the transparency of the shading sheet of the AR device will be adjusted according to the scene type of the oncoming vehicle's lights strobe phenomenon, so that the AR device can be used to predict in advance the road section where there may be lights strobe when oncoming vehicles, and the transparency of the shading sheet of the AR device will be automatically adjusted without the user having to perform any manual operation. This can avoid the phenomenon that when meeting vehicles at night, vehicles traveling in both directions cause lights to strobe due to changes in the road slope, making the vehicle driving less safe, thereby improving the safety of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0041] In order to more clearly illustrate the technical solutions in this embodiment or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0042] Figure 1 This is a schematic diagram of a scene of vehicles meeting each other at night;

[0043] Figure 2 This is a schematic diagram of the direction of the headlights changing with the pitch of the vehicle body;

[0044] Figure 3 This is a flowchart of the first embodiment of the anti-glare method for AR device of the present application;

[0045] Figure 4 This is a flow chart of the second embodiment of the anti-glare method for an AR device of the present application;

[0046] Figure 5 This is a flow chart of vehicles meeting each other in the second embodiment of the AR device anti-glare method of the present application;

[0047] Figure 6 This is a schematic diagram of a module structure of an anti-glare device for an AR device of the present application;

[0048] Figure 7 Schematic diagram of the device structure of the hardware operating environment involved in the electronic device in this embodiment.

[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0051] Since drivers usually turn on their running lights when driving at night, when meeting other vehicles at night on a slope, such as a continuous slope (for example, a road that goes uphill immediately after a downhill slope), it is easy to cause a flashing effect, which can cause eye discomfort to both drivers and pose a safety hazard. Figure 1 As shown, it is assumed that vehicles A and B are driving on the two-way lane of the same road section at 10 pm in opposite directions, with vehicle A driving from west to east and vehicle B driving from east to west, and both vehicles keep their headlights on. The slope of the road on which vehicles A and B are driving changes frequently.

[0052] If vehicle A and vehicle B are at positions 01 and 02 respectively at the current moment, and vehicle A appears in the field of vision of the driver of vehicle B, and vehicle B appears in the field of vision of the driver of vehicle A. If there is a speed difference between vehicle A and vehicle B at this time, vehicle A will pass through positions a, b, c, and d in sequence. Since the headlights are fixed on the vehicle body, the direction of the headlights of vehicle A will swing with the pitch of the vehicle body. For example, Figure 2As shown. In addition, due to the ups and downs of the road surface of the vehicle A, the vehicle A sometimes appears and sometimes disappears in the field of vision of the driver of the vehicle B, so the headlights of the vehicle A also appear alternately in the field of vision of the driver of the vehicle B, causing a flickering effect. And in a dark environment, this flickering effect is more irritating to the human eye. Therefore, in this embodiment, the driving route set by the user in the vehicle (i.e., the vehicle of 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, the amplitude and frequency of the slope change of the target section with continuous ramps are calculated according to the map information. And the slope attribute of the target section is determined according to the amplitude and frequency. If the slope attribute of the target section reaches the threshold of the stroboscopic degree, the user is prompted that he is about to enter a section where the lights of the oncoming vehicles are dazzling. Finally, when the target section is about to be entered, the transparency of the shading sheet is switched.

[0053] Embodiment 1

[0054] Based on this, please refer to Figure 3 This embodiment provides an AR device anti-glare method, the AR device anti-glare method is applied to an AR device, the AR device is connected to a vehicle, and the AR device anti-glare method includes:

[0055] Step S10, when it is detected according to the driving route of the vehicle that the vehicle is about to enter a target road section with a slope, determining the slope attribute of the target road section;

[0056] The AR device in the embodiment of the present application may be a vehicle-mounted AR glasses. The vehicle may be a vehicle that is normally traveling on the road, such as a car, a truck, etc. And the vehicle-mounted AR glasses are connected to the vehicle of the vehicle in communication, and the user wears the vehicle-mounted AR glasses when turning on the vehicle of the vehicle for driving. And the initial transparency of the shading sheet of the AR device in this embodiment is completely transparent. The target section may be a section with one or more ramps within a certain distance range. Preferably, it may be a section with continuous ramps, such as a section with at least two ramps. The selection of the target section may be to select a section that is approximately straight on the driving route and has a certain distance range of the ramp, and the distance range may be a distance range set by the user in advance. For example, there is a straight section in the driving route including ramp A and ramp B, and the vehicle travels from the uphill point of ramp A to the crest of ramp A, and from the crest of ramp A to the lower wave point, and then immediately enters the uphill point of ramp B to the crest of ramp B, and travels from the crest of ramp B to the lower wave point. At this time, the section between the upper wave point of ramp A and the lower wave point of ramp B can be used as the target section. The upper wave point is the position point when the vehicle is about to go up. The lower wave point is the position point when the vehicle is going downhill and is about to exit the downhill section. In this embodiment, a continuous ramp is preferably used as an example.

[0057] Preferably, the headlights of the vehicle are turned on and the vehicle is traveling on a dark and sloped road, such as a steep and uneven mountain road at night. At this time, in order to avoid the phenomenon that the headlights of vehicles traveling in both directions flicker due to changes in the slope of the road when meeting at night, making the driving safety of the vehicle lower. Therefore, in this embodiment, the AR device needs to first obtain the route set in advance by the user. And determine the current position of the vehicle on the route, as well as the route that the vehicle has not traveled on in the route. Then, according to the high-precision map, the road direction, slope and other information of the vehicle on the route at the current time node are obtained. Among them, the high-precision map can be a map that can display the three-dimensional scene of the route.

[0058] Optionally, the current position of the vehicle is determined in the high-precision map displayed by the AR device, and each ramp in the route that the vehicle has not traveled in the driving route. Among them, the ramp is a road with a slope. And when the driving distance from the current position of the vehicle to the nearest ramp is less than or equal to the preset distance, the step of determining the slope attribute of the target section when the vehicle is about to enter the target section with a ramp (such as a continuous ramp) according to the driving route of the vehicle is performed, and the subsequent adjustment of the transparency of the shading sheet of the AR device is performed. Optionally, it can also be to determine the speed of the vehicle at the current position and the current position of the vehicle, and calculate the driving time of the vehicle from the current position of the vehicle to the nearest slope to the vehicle, such as 3 minutes. 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 vehicle is about to enter the target section with a ramp (such as a continuous ramp) according to the driving route of the vehicle is performed, and the subsequent adjustment of the transparency of the shading sheet of the AR device is performed.

[0059] Optionally, when the AR device detects that the vehicle is about to enter a target road section with a ramp, the map can be used to parse the ramp values ​​of all ramps on the target road section, and then the slope attribute can be determined based on the ramp value. Optionally, the ramp value can also be determined in other ways, which are not limited here. Among them, the slope attribute can include the slope information of each ramp in the target road section, such as the slope value, the slope change speed, etc.

[0060] Optionally, if the vehicle is currently traveling on a ramp, real-time image information of the ramp ahead can be obtained, and the slope value can be directly calculated using the vertical position of the vanishing point of the ramp ahead on the image, the vertical position of the vanishing point calibrated by leveling on the image, and the focal length of the camera. The position information includes the vertical position of the vanishing point of the ramp ahead on the image and the vertical position of the vanishing point calibrated by leveling on the image.

[0061] Step S20, if the slope attribute matches the preset stroboscopic threshold, determining that the target road section is a road section where oncoming vehicle lights are strobing, and outputting a prompt message that oncoming oncoming vehicle lights are glaring;

[0062] In this embodiment, the preset strobe threshold may be a threshold set in advance by the user. Optionally, the specific value of the slope attribute may be compared with the preset strobe threshold. When the value is greater than or equal to the preset strobe threshold, it can be determined that the slope attribute matches the preset strobe threshold. At this time, it can be determined that when the vehicle travels to the target road section, there will be a strobe phenomenon of the lights of the oncoming vehicle. Corresponding prompt information may be output to remind the user, such as outputting a prompt information that the lights of the oncoming vehicle are dazzling. This reminds the user of the vehicle driving the vehicle to improve the safety of the vehicle driving.

[0063] Optionally, when matching the slope attribute with the preset stroboscopic threshold, the slope stability in the target road section can be counted according to the slope attribute, and a slope stability coefficient matrix can be constructed, and the threshold corresponding to each sub-item in the slope stability coefficient matrix can be set, and these thresholds can be used as the preset stroboscopic thresholds. For example, if the sub-items include the maximum slope value, the minimum slope value, and the slope change speed, it is only necessary to detect that one of the sub-items is greater than the threshold corresponding to the sub-item to determine that the slope attribute of the target road section matches the preset stroboscopic threshold. And it is determined that when the vehicle passes through the target road section, the lights of the oncoming vehicle will flicker.

[0064] Step S30, determining the scene type of the strobing lights of oncoming vehicles on the target road section according to the slope attribute and the preset strobing threshold, and adjusting the transparency of the shading sheet of the AR device according to the scene type.

[0065] In this embodiment, when it is determined that the lights of oncoming vehicles will flash when the vehicle passes through the target road section, it is also necessary to detect the corresponding scene type and perform different adjustment operations on the transparency of the shading sheet of the AR device according to different scene types, such as reducing the transparency or reducing the transparency to a certain value.

[0066] Optionally, when determining the scene type, the corresponding scene type may be determined according to the comparison result between each sub-item corresponding to the slope attribute and a preset stroboscopic threshold. Optionally, the scene type may include a long illumination scene and a stroboscopic road section scene.

[0067] In this embodiment, when the target road section with a ramp that the vehicle is about to enter is detected according to the driving route, it is determined that the slope attribute of the target road section matches the preset strobe threshold, so it can be determined that the lights of the oncoming vehicle will strobe after the vehicle enters the target road section. At this time, a prompt message that the oncoming vehicle's lights are dazzling will be output to inform the user driving the vehicle, thereby improving the safety of vehicle driving. In addition, the transparency of the shading sheet of the AR device will be adjusted according to the scene type of the oncoming vehicle's lights strobe phenomenon, so that the AR device can predict in advance the road section where the lights may strobe when the vehicle is on the road, and the transparency of the shading sheet of the AR device will be automatically adjusted without the user having to perform any manual operation. This can avoid the phenomenon that the lights of vehicles traveling in both directions strobe due to changes in the road slope when meeting at night, which makes the vehicle driving less safe, thereby improving the safety of vehicle driving.

[0068] Embodiment 2

[0069] Based on the first embodiment of the present application, in another embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 Step S30, adjusting the transparency of the shading sheet of the AR device according to the scene type, comprises:

[0070] Step a, if the scene type is a stroboscopic road section scene, obtaining the traffic flow of the target road section at the current moment;

[0071] In this embodiment, if it is determined that when the vehicle passes through the target road section, there will be a flashing phenomenon of the lights of the oncoming vehicle, and the scene type corresponding to the flashing phenomenon of the lights of the oncoming vehicle is a flashing road section scene, it is necessary to determine the traffic volume of the target road section at the current moment. The traffic volume may include the number of vehicles traveling in the opposite direction of the vehicle and traveling on the target road section at the current moment.

[0072] Step b, if the traffic volume is greater than a preset traffic volume threshold, determining the travel time of the host vehicle from the current position to the trough position in the target road section;

[0073] In this embodiment, the preset traffic flow threshold may be a threshold set in advance by the user, such as 1 or zero. The traffic flow may be compared with the preset traffic flow threshold set in advance. Optionally, the number of vehicles in the traffic flow that are traveling in the opposite direction to the vehicle and are currently on the target section may be compared with the preset traffic flow threshold. If it is greater than, the target section is determined to be a section with a large traffic flow, and there is a possibility of meeting. At this point, it is necessary to determine the travel time of the vehicle from the current position to the trough position of a slope closest to the vehicle in the target section. Optionally, when determining the trough position closest to the vehicle, it may be determined based on the travel distance of the vehicle.

[0074] Step c: according to the driving time, when the vehicle is about to enter the trough position, reducing the transparency of the shading sheet of the AR device to a preset transparency threshold.

[0075] In this embodiment, according to the driving time, when the vehicle is about to reach the trough position in the target road section, the transparency of the shading sheet of the AR device is adjusted. For example, the transparency of the shading sheet of the AR device is adjusted to a preset transparency threshold. The preset transparency threshold can be the minimum transparency at which the driver of the vehicle can see the road information clearly.

[0076] Optionally, after detecting that the vehicle has driven out of the target road section, the transparency of the shading sheet of the AR device can be restored to the transparency before adjustment.

[0077] For example, Figure 5 As mentioned above, the driver of vehicle B cannot observe the adjacent vehicle A that is about to pass behind the crest. When the opposite vehicle A reaches the crest, it will appear in the field of vision of the driver of vehicle B. In this case, the visual experience of the driver of vehicle B is that the headlights suddenly appear, forming a flickering effect. Therefore, the transparency of the shading sheet of the AR device can be adjusted when vehicle B reaches the trough, reducing the visual impact of the flickering effect on the driver of vehicle B and improving the driving safety of vehicle B.

[0078] Optionally, there is a scenario in which the acquired traffic volume is matched with a preset traffic volume transparency correspondence table. Among them, the preset traffic volume transparency correspondence table includes multiple correspondences between traffic volume and transparency. For example, when the traffic volume is 1, the corresponding transparency is transparency a; when the traffic volume is greater than 1 and less than 10, the corresponding transparency is transparency b; when the traffic volume is greater than 10, the corresponding transparency is transparency c. When determining the traffic volume in the traffic volume transparency correspondence table that matches the acquired traffic volume, determine the transparency corresponding to the matched traffic volume in the traffic volume transparency correspondence table, and use this transparency as the target transparency, and adjust the transparency of the shading sheet of the AR device to the target transparency.

[0079] In this embodiment, by determining that the scene type is a stroboscopic road section scene and the current traffic volume is greater than the preset traffic volume threshold, the driving time for the vehicle to reach the trough position in the target section can be determined, and when the vehicle is about to enter the trough position, the transparency of the shading sheet of the AR device is reduced to the preset transparency threshold, thereby preventing the vehicle from driving uphill and the oncoming vehicle from suddenly entering the crest of the slope, causing the stroboscopic phenomenon, thereby improving the safety of vehicle driving.

[0080] Furthermore, the step of obtaining the traffic flow of the target road section at the current moment includes:

[0081] Step a1, taking a section of the target section corresponding to a lane direction opposite to the driving direction of the vehicle as the first section;

[0082] Step a2, determining the number of vehicles traveling on the first road section at the current moment, and using the number of vehicles as the traffic flow.

[0083] In this embodiment, the two-way lane route in the target section can be determined first, and the section in the target section corresponding to the lane direction opposite to the driving direction of the vehicle is taken as the first section. And the section in the target section corresponding to the lane direction the same as the driving direction of the vehicle is taken as the second section. The lane direction can be determined according to the lane line drawn on the road surface. Optionally, the number of vehicles traveling in the first section at the current moment can be directly obtained according to the map information, and it can be used as the traffic volume.

[0084] Optionally, the average speed of all vehicles in the first section can also be collected, and the second driving time for each vehicle in the first section to reach the target peak can be calculated based on the average speed. The target peak is the peak closest to the vehicle in the target section from the current position of the vehicle. The shortest time is selected from each second driving time as the second target driving time. The second target driving time is compared with the driving time. When the second target driving time is less than the driving time, the transparency of the shading sheet of the AR device is reduced to a preset transparency threshold according to the target driving time when the vehicle is about to enter the trough position.

[0085] In this embodiment, the traffic flow is determined by counting the number of vehicles traveling in the opposite direction of the own vehicle, and thus the probability of nighttime meeting can be determined based on the traffic flow.

[0086] Furthermore, the step of adjusting the transparency of the shading sheet of the AR device according to the scene type of the stroboscopic phenomenon of the oncoming vehicle lights further includes:

[0087] Step d, if the scene type of the oncoming vehicle headlight strobing phenomenon is a long illumination scene, determining the current speed of the host vehicle;

[0088] In this embodiment, if it is determined that when the vehicle passes through the target road section, there will be a phenomenon of oncoming vehicle lights flashing, and the scene type corresponding to the oncoming vehicle lights flashing phenomenon is a long illumination scene, it is necessary to determine the speed of the vehicle at the current moment, that is, the current speed. Optionally, the AR device can directly obtain the current speed sent by the vehicle through the vehicle computer installed on the vehicle.

[0089] Step e: calculating the adjustment time according to the current vehicle speed, and adjusting the transparency of the shading sheet of the AR device within the adjustment time.

[0090] In this embodiment, the transparency of the shading sheet of the AR device at the current moment can be determined first. And determine the current position of the vehicle, that is, the current position. And determine the adjustment time based on the current position. Optionally, the time for the vehicle to leave the target section from the current position can be directly calculated, and used as the adjustment time. Optionally, if the current position is not on a ramp, determine a ramp in the target section that is closest to the driving distance of the vehicle, and calculate the time for the vehicle to travel from the current position to the ramp at the current speed, and use it as the adjustment time. Optionally, the ramp that is closest to the driving distance of the vehicle is the ramp that the vehicle is to travel through.

[0091] Optionally, if the current position is on a slope and the vehicle is in a downhill state, the time taken by the vehicle to travel from the current position to the trough of the slope at the current speed is calculated and used as the adjustment time. If the current position is on a slope and the vehicle is in an uphill state, the time taken by the vehicle to travel from the current position to the peak of the slope at the current speed is calculated and used as the adjustment time.

[0092] Then, the transparency of the shading sheet of the AR device is adjusted within the determined adjustment time, so as to avoid the phenomenon that the vehicle has already traveled over the ramp in the target road section, but the adjustment operation of the transparency of the shading sheet of the AR device is not completed.

[0093] Optionally, when adjusting the transparency of the shading sheet of the AR device, its voltage may be adjusted. For example, when the AR device is an AR glasses, the voltage of the lens is adjusted, and during the adjustment process, the color change time is adjusted along with the current vehicle speed, that is, the adjustment time of the transparency of the shading sheet of the AR device is updated along with the current vehicle speed of the vehicle.

[0094] Optionally, the transparency of the shading sheet of the AR device can be adjusted according to the percentage of transparency, and the transparency can establish a linear relationship with the voltage. Optionally, the user can set three gears of high, medium and low according to their own sensitivity, and the adjustment accuracy of each gear is different.

[0095] In this embodiment, when the scene type is a long illumination scene, the driving time is determined according to the current speed of the vehicle, and the transparency of the shading sheet of the AR device is adjusted within the driving time, thereby avoiding the phenomenon that the transparency of the shading sheet has not been adjusted after the vehicle has passed the target section.

[0096] Furthermore, the step of adjusting the transparency of the shading sheet of the AR device includes:

[0097] Step e1, determining the ambient light intensity of the scene in which the vehicle is located, and determining the brightness of the headlights of the vehicle;

[0098] In this embodiment, it is necessary to determine the ambient light intensity of the scene in which the vehicle is located. Optionally, the ambient light intensity is the light intensity emitted by other light sources on the road on which the vehicle is traveling. Other light sources may be street lamps, lights of other vehicles, etc. And determine the headlight brightness of the vehicle at the current moment. Optionally, the ambient light intensity and headlight brightness can be obtained according to sensors installed in the vehicle, and transmitted to the AR device through the vehicle computer.

[0099] Step e2, determining the brightness contrast according to the ratio between the ambient light intensity and the vehicle light brightness;

[0100] In this embodiment, the ratio between the ambient light intensity and the headlight brightness is used as the brightness contrast. That is, the brightness contrast will change continuously with the movement of the vehicle. In this embodiment, only the brightness contrast at the current moment is used as an example.

[0101] Step e3, determining a target transparency corresponding to the brightness contrast according to a preset comparison table between brightness contrast and transparency, and adjusting the transparency of the shading sheet of the AR device to the target transparency.

[0102] In this embodiment, the corresponding relationship between the brightness contrast and the transparency of the shading sheet of the AR device can be set in advance in the AR device. For example, the greater the brightness contrast, the lower the transparency of the shading sheet of the AR device. Optionally, a comparison table with a comparison relationship between brightness contrast and transparency can be set. The target transparency corresponding to the brightness contrast at the current moment is determined in the comparison table, and the transparency of the shading sheet of the AR device is adjusted to the target transparency.

[0103] It should also be noted that when adjusting the transparency of the shading sheet of the AR device, a minimum transparency will be set. After the minimum transparency is adjusted, it will not be adjusted further down to avoid the driver being completely unable to see the scene of the road being driven. 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 brightness of the vehicle lights, and determining the target transparency according to the brightness contrast, the transparency of the shading sheet of the AR device is adjusted to the target transparency, thereby ensuring the effectiveness of the adjustment of the transparency of the shading sheet of the AR device.

[0105] Furthermore, the slope attribute includes a maximum slope value, a minimum slope value and a slope change speed, and the preset stroboscopic threshold includes a maximum slope threshold, a minimum slope threshold and a slope change speed threshold.

[0106] Furthermore, if there is a road section whose slope attribute matches a preset stroboscopic threshold, the step of determining that the matched road section has a stroboscopic phenomenon of oncoming vehicle lights 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, then it is determined that the road section matches the preset stroboscopic threshold, and the type of the stroboscopic phenomenon of the oncoming vehicle lights existing in the road section is a long illumination 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, then it is determined that the road section matches the preset stroboscopic threshold, and the type of the stroboscopic phenomenon of the oncoming vehicle lights existing in the road section is a long illumination 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 stroboscopic threshold, and the type of the stroboscopic phenomenon of the oncoming vehicle lights on the road section is a stroboscopic 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 stroboscopic threshold, and the type of the stroboscopic phenomenon of oncoming vehicle lights on the road section is a stroboscopic road section scene.

[0111] In this embodiment, the maximum slope threshold, the minimum slope threshold and the slope change speed threshold may be thresholds set in advance by the user and may be different.

[0112] Optionally, after determining the slope attribute of the target road section, it is also necessary to determine the slope values ​​corresponding to all ramps in the target road section, and select the maximum slope value and the minimum slope value, and determine the ramp change speed according to the number of ramps, and use it as the slope change speed.

[0113] Optionally, after determining that the target road section is a road section where oncoming headlights flash, the phenomenon of oncoming headlights flashing can be divided to determine different scene types. The scene types of oncoming headlights flashing can be divided into long illumination scenes and flashing road section scenes. Therefore, when the slope change speed is less than or equal to the slope change speed threshold, and the maximum slope value is greater than the maximum slope threshold, or the minimum slope value is greater than the minimum slope threshold, it can be determined as a long illumination scene. 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, it can be determined as a flashing road section scene.

[0114] In this embodiment, the scene type of the flashing lights of oncoming vehicles on the target road section is determined based on the prediction of the maximum slope value, the minimum slope value and the slope change speed, thereby ensuring the accuracy of the determined scene type.

[0115] Furthermore, the step of determining the slope attribute of the target road section includes:

[0116] Step x, determining the amplitude and frequency of the slope changes of all ramps in the target road section;

[0117] Step y, determining the ramp length of the ramp in the target section, and calculating the slope value of the ramp according to the ramp length and the amplitude, and screening out the maximum slope value and the minimum slope value from the slope values ​​corresponding to all the ramps in the target section;

[0118] Step z: determining the slope change speed of all ramps in the target road section according to the frequency.

[0119] In this embodiment, after determining the target road section with a ramp, all the ramps in the target road section are first determined, and then the amplitude and frequency of the slope change of all the target ramps are determined based on the current vehicle speed at the current moment and the position information (such as crests, troughs, etc.) of each ramp in the target road section. The amplitude of the slope change can be the amplitude of each ramp in the target road section. The frequency can be the number of times the crest or trough of the ramp in the target road section appears relative to the vehicle.

[0120] Optionally, when the AR device obtains map information and obtains the amplitude and frequency of the slope changes of all ramps in the target section through the map information, it can determine whether the target section is a section with frequent slope changes based on the change in amplitude. If the amplitude changes greatly, the target section is determined to be a section with frequent slope changes. At this time, when the vehicle is driving on the target section to meet other vehicles, stroboscopic phenomenon is likely to occur. Then the maximum slope value and the minimum slope value are determined based on the amplitude. Alternatively, the maximum slope value and the minimum slope value can be directly determined in the acquired map information.

[0121] Optionally, when determining the slope value of the ramp, the slope value can be calculated based on the amplitude of the ramp and the length of the ramp. For example, h = H / L × 100%, where H represents the height of the ramp, L represents the length of the ramp, and h represents the slope. The amplitude of the ramp can be used as the height of the ramp. The length of the ramp is determined based on the map information obtained by the AR device, and then the ramp value is calculated. Then, the maximum slope value and the minimum slope value are selected from the various ramp values ​​corresponding to the target section.

[0122] Optionally, since the slope of the ramp of the vehicle is different from that of the vehicle when going uphill and downhill, 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, an existing linear algorithm can be used for calculation and determination, or it can be converted according to a preset neural network model, and a frequency and slope change speed correspondence table can be set, 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 ramp length, and the maximum slope value and the minimum slope value are screened out. The slope change speed is then determined by the frequency, and the maximum slope value, the minimum slope value and the slope change speed are used as slope attributes, thereby ensuring the accuracy of the acquired slope attributes.

[0124] Embodiment 3

[0125] The present application also provides an anti-glare device for an AR device. Figure 6 , the AR device anti-glare device comprises:

[0126] The detection module A10 is used to determine the slope attribute of the target road section when it is detected that the vehicle is about to enter the target road section with a slope according to the driving route of the vehicle;

[0127] The output module A20 is used to determine that the target road section is a road section with strobing lights of oncoming vehicles if the slope attribute matches a preset strobing threshold, and output a prompt message that the target road section is about to enter the glaring lights of oncoming vehicles;

[0128] The adjustment module A30 is used to determine the scene type of the strobing lights of the oncoming vehicle on the target road section according to the slope attribute and the preset strobing threshold, and adjust the transparency of the shading sheet of the AR device according to the scene type.

[0129] Optionally, the adjustment module A30 is used to:

[0130] If the scene type is a stroboscopic road section scene, then obtaining the traffic flow of the target road section at the current moment;

[0131] If the traffic volume is greater than a preset traffic volume threshold, determining the travel time of the host vehicle from the current position to the valley position in the target road section;

[0132] According to the driving time, when the vehicle is about to enter the trough position, the transparency of the shading sheet of the AR device is reduced to a preset transparency threshold.

[0133] Optionally, the adjustment module A30 is used to:

[0134] The section of the target section corresponding to the lane direction opposite to the driving direction of the host vehicle is taken as the first section;

[0135] The number of vehicles traveling on the first road section at a current moment is determined, and the number of vehicles is used as the traffic flow.

[0136] Optionally, the adjustment module A30 is used to:

[0137] If the scene type is a long illumination scene, determining the current speed of the host vehicle;

[0138] The driving time of the host vehicle passing through the target road section is calculated according to the current vehicle speed, and the driving time is used as the adjustment time. During the adjustment time, the transparency of the shading sheet of the AR device is adjusted.

[0139] Optionally, the adjustment module A30 is used to:

[0140] Determine the ambient light intensity of the scene in which the host vehicle is located, and determine the brightness of the headlights of the host vehicle;

[0141] Determining a brightness contrast ratio according to a ratio between the ambient light intensity and the vehicle light brightness;

[0142] The target transparency corresponding to the brightness contrast is determined according to a preset comparison table between brightness contrast and transparency, and the transparency of the shading sheet of the AR device is adjusted to the target transparency.

[0143] Optionally, the slope attribute includes a maximum slope value, a minimum slope value and a slope change speed, the preset stroboscopic threshold includes a maximum slope threshold, a minimum slope threshold and a slope change speed threshold, and the adjustment module A30 is used 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a flashing 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 flashing lights of the oncoming vehicle on the target road section is a flashing road section scene.

[0148] Optionally, the detection module A10 is used to:

[0149] Determining the magnitude and frequency of slope changes of all ramps in the target road section;

[0150] Determine the ramp length of the ramp in the target road section, calculate the slope value of the ramp according to the ramp length and the amplitude, and select the maximum slope value and the minimum slope value from the slope values ​​corresponding to all the ramps in the target road section;

[0151] The gradient change speeds of all the ramps in the target road section are determined according to the frequency.

[0152] The AR device anti-glare device provided in the embodiment of the present invention adopts the AR device anti-glare method of any one of the above embodiments 1 to 2, which can improve the safety of vehicle driving. Compared with the prior art, the AR device anti-glare device provided in the embodiment of the present invention has the same beneficial effects as the AR device anti-glare method provided in the above embodiment, and other technical features in the AR device anti-glare device are the same as those disclosed in the above embodiment method, which will not be repeated here.

[0153] Embodiment 4

[0154] An embodiment of the present invention provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the AR device anti-glare method in the above-mentioned embodiment 1.

[0155] Reference below Figure 7 , which shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure. Figure 7 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0156] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program 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, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0157] Typically, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touchpad, 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 device can allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an electronic device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

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

[0159] The electronic device provided by the present invention adopts the AR device anti-glare method in the above embodiment to improve the safety of vehicle driving. Compared with the prior art, the beneficial effects of the electronic device provided by the embodiment of the present invention are the same as the beneficial effects of 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 method of the previous embodiment, which will not be repeated here.

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

[0161] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0162] Embodiment 5

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

[0164] The computer-readable storage medium provided in the embodiment of the present invention may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more 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 thereof. In the present embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination 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.

[0165] The computer-readable storage medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0166] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by an electronic device, the electronic device can execute each step in the above embodiment.

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

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

[0169] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of the module does not limit the unit itself in some cases.

[0170] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above-mentioned AR device anti-glare method, which can improve the safety of vehicle driving. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the present invention are the same as the beneficial effects of the AR device anti-glare method provided by the above-mentioned embodiment 1 or embodiment 2, and are not described in detail here.

[0171] Embodiment 6

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

[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 invention are the same as the beneficial effects of the AR device anti-glare method provided by any of the above embodiments, which will not be described in detail here.

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

Claims

1. An AR device anti-glare method, It is characterized in that The AR device anti-glare method is applied to an AR device, and the AR device is connected to a vehicle, and includes the following steps: When it is detected according to the driving route of the vehicle that the vehicle is about to enter a target road section with a slope, determining the slope attribute of the target road section; If the slope attribute matches the preset stroboscopic threshold, the target road section is determined to be a road section where oncoming vehicle lights are strobing, and a prompt message that the oncoming vehicle lights are glaring is output; The scene type of the strobing lights of oncoming vehicles on the target road section is determined according to the slope attribute and the preset strobing threshold, and the transparency of the shading sheet of the AR device is adjusted according to the scene type.

2. The AR device anti-glare method according to claim 1, It is characterized in that The step of adjusting the transparency of the shading sheet of the AR device according to the scene type includes: If the scene type is a stroboscopic road section scene, then obtaining the traffic flow of the target road section at the current moment; If the traffic volume is greater than a preset traffic volume threshold, determining the travel time of the host vehicle from the current position to the valley position in the target road section; According to the driving time, when the vehicle is about to enter the trough position, the transparency of the shading sheet of the AR device is reduced to a preset transparency threshold.

3. The AR device anti-glare method according to claim 2, It is characterized in that The step of obtaining the traffic flow of the target road section at the current moment includes: The section of the target section corresponding to the lane direction opposite to the driving direction of the host vehicle is taken as the first section; The number of vehicles traveling on the first road section at a current moment is determined, and the number of vehicles is used as the traffic flow.

4. The AR device anti-glare method according to claim 1, It is characterized in that The step of adjusting the transparency of the shading sheet of the AR device according to the scene type includes: If the scene type is a long illumination scene, determining the current speed of the host vehicle; The driving time of the host vehicle passing through the target road section is calculated according to the current vehicle speed, and the driving time is used as the adjustment time. During the adjustment time, the transparency of the shading sheet of the AR device is adjusted.

5. The AR device anti-glare method according to claim 4, It is characterized in that The step of adjusting the transparency of the light shielding sheet of the AR device includes: Determine the ambient light intensity of the scene in which the host vehicle is located, and determine the brightness of the headlights of the host vehicle; Determining a brightness contrast ratio according to a ratio between the ambient light intensity and the vehicle light brightness; The target transparency corresponding to the brightness contrast is determined according to a preset comparison table between brightness contrast and transparency, and the transparency of the shading sheet of the AR device is adjusted to the target transparency.

6. The AR device anti-glare method according to claim 1, It is characterized in that The slope attribute includes a maximum slope value, a minimum slope value and a slope change speed, and the preset stroboscopic threshold includes a maximum slope threshold, a minimum slope threshold and a slope change speed threshold. The step of determining the scene type of the flashing lights of oncoming vehicles on the target road section according to the slope attribute and the preset flashing threshold comprises: 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination scene; 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a long illumination scene; 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, then determining that the scene type of the flashing lights of the oncoming vehicle on the target road section is a flashing road section scene; 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 flashing lights of the oncoming vehicle on the target road section is a flashing road section scene.

7. The AR device anti-glare method according to claim 6, It is characterized in that The step of determining the slope attribute of the target road section comprises: Determining the magnitude and frequency of slope changes of all ramps in the target road section; Determine the ramp length of the ramp in the target road section, calculate the slope value of the ramp according to the ramp length and the amplitude, and select the maximum slope value and the minimum slope value from the slope values ​​corresponding to all the ramps in the target road section; The gradient change speeds of all the ramps in the target road section are determined according to the frequency.

8. An anti-glare device for AR equipment, It is characterized in that The AR device anti-glare device comprises: A detection module, configured to determine a slope attribute of a target road section when detecting that the vehicle is about to enter a target road section with a slope according to the driving route of the vehicle; an output module, for determining that the target road section is a road section where lights of oncoming vehicles flash if the slope attribute matches a preset flashing threshold, and outputting a prompt message that the road section is about to enter a road section where lights of oncoming vehicles flash; The adjustment module is used to determine the scene type of the strobing lights of the oncoming vehicle on the target road section according to the slope attribute and the preset strobing threshold, and adjust the transparency of the shading sheet of the AR device according to the scene type.

9. An electronic device, It is characterized in that The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the AR device anti-glare method according to any one of claims 1 to 7.

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

Citation Information

Patent Citations

  • Anti-dazzling method and device, near-to-eye display equipment and readable storage medium

    CN116224598A

  • Vehicular window glass light transmission variable device

    JP2005297716A

  • Vehicular headlight system, vehicle and vehicular headlight control program

    JP2023003267A

  • System and method for Anti-glare of driver

    KR101655197B1

  • System and Methods for an Automated Sun Glare Block Area and Sunshield in a Vehicular Windshield

    US20100094501A1

Cited By

  • Photovoltaic sensing driven automobile self-adaptive glass color change regulation and control device and method

    CN119828390A