AR glasses control method and device, vehicle-mounted AR glasses and readable storage medium

By obtaining the motion data of vehicles and objects, using the bounding box algorithm to predict collisions and generating early warning information, it solves the problem of in-vehicle AR glasses being unable to accurately provide collision warnings and improves driver safety.

CN118865718APending Publication Date: 2024-10-29GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310499800.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Vehicle-mounted AR glasses cannot accurately detect the possibility of collision between the driver and surrounding vehicles or objects, leading to potential driving safety hazards.

Method used

By obtaining the movement data of its own vehicle and surrounding objects, it predicts the positions of multiple time nodes in the future, uses the bounding box algorithm to determine whether there is a collision, generates and outputs early warning information, and provides safe driving directions and tips.

Benefits of technology

It provides accurate collision warning to the driver, improves the driver's safe driving ability, and expands the driving safety warning function of in-vehicle AR glasses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118865718A_ABST
    Figure CN118865718A_ABST
Patent Text Reader

Abstract

The invention discloses an AR glasses control method and device, vehicle-mounted AR glasses and a readable storage medium, and belongs to the technical field of near-to-eye display equipment. First motion data of an own vehicle and second motion data of a moving object in a preset range around the own vehicle are acquired, the first motion data at least comprise a current position, a driving direction, a speed and an acceleration of the own vehicle, and the second motion data are acquired according to the current position, the driving direction, the speed and the acceleration of the own vehicle. The second motion data at least comprises the current position, the driving direction, the speed and the acceleration of the moving object; on the basis of the first motion data and the second motion data, predicting whether collision occurs between the own vehicle and the moving object; if collision occurs, early warning information is generated and output according to the second motion data, the use limitation of AR glasses is broken through, and collision early warning is accurately provided for a driver.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of near-eye display devices, and in particular to an AR glasses control method, device, vehicle-mounted AR glasses, and a readable storage medium. Background Art

[0002] In recent years, with the development of science and technology and people's increasingly diverse needs, AR (Augmented Reality) glasses have ushered in unprecedented development opportunities. Among them, AR glasses are used in more and more scenarios, such as AR teaching and AR exhibits, but due to the limitations of AR glasses, in-vehicle AR glasses are rarely used in driving scenarios. This is because the driver wearing the in-vehicle AR glasses currently on the market to drive cannot effectively ensure driving safety.

[0003] In the driving scene, it is necessary to avoid surrounding vehicles and objects. In order to improve the driving safety of the vehicle, the driver is assisted in avoiding surrounding vehicles and objects and provided with avoidance judgment in advance. However, currently, in-vehicle AR glasses cannot accurately detect the possibility of vehicle collision and provide driving warnings to the driver, which makes the driver face serious driving safety risks when wearing in-vehicle AR glasses while driving. Summary of the invention

[0004] The main purpose of this application is to provide an AR glasses control method, device, vehicle-mounted AR glasses and readable storage medium, aiming to solve the technical problem that due to the limitations of the use of vehicle-mounted AR glasses, it is impossible to accurately provide collision warnings to drivers through vehicle-mounted AR glasses.

[0005] To achieve the above object, the present application provides an AR glasses control method, comprising the following steps: Acquire first motion data of the own vehicle and second motion data of a moving object within a preset range around the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; Based on the first motion data and the second motion data, predict whether a collision will occur between the own vehicle and the moving object; If a collision occurs, a warning message is generated and output according to the second motion data.

[0006] Optionally, the step of predicting whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data includes: Based on the first motion data and the second motion data, predict the positions of the own vehicle and the moving object at multiple time nodes within a preset time period in the future, and obtain a motion position group corresponding to each of the time nodes, wherein the motion position group includes the first motion position of the own vehicle and the second motion position of the moving object; Predict whether a collision occurs between the own vehicle and the moving object according to the motion position group.

[0007] Optionally, the step of predicting whether a collision occurs between the own vehicle and the moving object according to the motion position group includes: Generate a world coordinate system by taking the current position of the own vehicle as the coordinate origin and the driving direction of the own vehicle as the longitudinal axis; Constructing a first bounding box of the own vehicle in the world coordinate system and a second bounding box of the moving object in the world coordinate system according to the motion position group; determining whether there is an overlapping area between the first bounding box and the second bounding box, and if there is an overlapping area, determining that the motion position group belongs to a dangerous position group where a collision event may occur; If at least one of all the moving position groups belongs to the dangerous position group, it is predicted that the own vehicle will collide with the moving object; If all the movement position groups do not belong to the dangerous position group, it is predicted that the own vehicle will not collide with the moving object.

[0008] Optionally, after the step of predicting that the own vehicle will collide with the moving object, the method further includes: Generate collision information of the moving object according to the first bounding box and the second bounding box, wherein the collision information includes collision time and collision area; generating a danger list of the own vehicle according to the collision information; Determining a safe driving direction of the own vehicle according to the danger list; Prompt information is generated and output according to the safe driving direction.

[0009] Optionally, the step of generating the danger list of the own vehicle according to the collision information includes: Calculating a warning coefficient according to the collision information; The warning coefficients of all the moving objects predicted to collide are counted to generate a danger list of the own vehicle.

[0010] Optionally, the step of determining the safe driving direction of the own vehicle according to the danger list includes: Screening out the moving objects whose warning coefficient is greater than a preset danger warning coefficient from the danger list, and treating the screened moving objects as dangerous objects; Predicting whether the own vehicle will collide with the dangerous object in a preset driving direction; If it is predicted that no collision will occur, the preset driving direction in which no collision is predicted to occur is used as the safe driving direction.

[0011] Optionally, the step of generating and outputting turn prompt information according to the safe driving direction includes: If there is at least one of the safe driving directions, obtaining navigation information, and generating and outputting steering prompt information or braking prompt information in combination with the safe driving direction; If the safe driving direction does not exist, a braking instruction is output.

[0012] In addition, the present application also provides an AR glasses control device, the AR glasses control device comprising: an acquisition module, configured to acquire first motion data of a own vehicle and second motion data of a moving object within a preset range of the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; A prediction module, configured to predict whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data; The output module is configured to generate and output warning information according to the second motion data if a collision occurs.

[0013] The present application also provides a vehicle-mounted AR glasses, which are physical devices. The vehicle-mounted AR glasses include: a memory, a processor, and a program of the AR glasses control method stored in the memory and executable on the processor. When the program of the AR glasses control method is executed by the processor, the steps of the AR glasses control method as described above can be implemented.

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

[0015] The present application also provides a computer program product, including a computer program, which implements the steps of the AR glasses control method as described above when executed by a processor.

[0016] The present application provides an AR glasses control method, device, AR glasses and storage medium, firstly obtaining first motion data of one's own vehicle and second motion data of moving objects within a preset range around one's own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of one's own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object, and then predicting whether a collision will occur between one's own vehicle and the moving object based on the first motion data and the second motion data, and if a collision occurs, generating and outputting warning information according to the second motion data. The present application predicts whether a vehicle driven by a user will collide with surrounding moving objects through AR glasses, thereby accurately giving the user a collision warning, achieving a breakthrough in the limitations of the use of AR glasses and providing accurate collision warnings for drivers.

[0017] The present application uses AR glasses to dynamically identify the second motion data of other vehicles and objects (such as pedestrians, animals, and obstacles) around the vehicle during driving, detects the possibility of a collision in advance, and renders the warning screen into the AR glasses, or can also be supplemented by the sound warning of the AR glasses, so that the driver can evaluate the road conditions in advance and make driving avoidance in time, thereby providing intelligent assistance to the driver through AR glasses, improving the driver's safe driving ability, and effectively expanding the driving safety warning function of the vehicle-mounted AR glasses, thereby effectively solving the technical problem that due to the limitations of the use of vehicle-mounted AR glasses, it is impossible to accurately provide collision warnings to the driver through vehicle-mounted AR glasses. BRIEF DESCRIPTION OF THE DRAWINGS

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

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

[0020] Figure 1 This is a flow chart of the first embodiment of the AR glasses control method of the present application; Figure 2 This is a flow chart of the second embodiment of the AR glasses control method of the present application; Figure 3 A schematic diagram of a collision prediction scenario in the AR glasses control method of this application; Figure 4 A schematic diagram of the traffic screen of the AR glasses in the AR glasses control method of the present application; Figure 5 This is a schematic diagram of the model construction of the AABB bounding box in the AR glasses control method of this application; Figure 6 A schematic diagram of the overlapping area analysis of AABB bounding boxes in the AR glasses control method of the present application; Figure 7 This is a schematic diagram of the module structure of the AR glasses control device according to an embodiment of the present application; Figure 8 This is a schematic diagram of the device structure of the hardware operating environment involved in the vehicle-mounted AR glasses in this embodiment.

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

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

[0023] Embodiment 1 At present, AR glasses have more and more application scenarios, such as AR teaching and AR exhibits, but due to the limitations of the use of AR glasses, car-mounted AR glasses are less used in driving scenarios. This is because drivers wearing the car-mounted AR glasses currently on the market cannot effectively ensure driving safety.

[0024] In the driving scene, it is necessary to avoid surrounding vehicles and objects. In order to improve the driving safety of the vehicle, the driver is assisted in avoiding surrounding vehicles and objects and provided with avoidance judgment in advance. However, currently, in-vehicle AR glasses cannot accurately detect the possibility of vehicle collision and provide driving warnings to the driver, which makes the driver face serious driving safety risks when wearing in-vehicle AR glasses while driving.

[0025] Based on this, the present application embodiment provides an AR glasses control method, please refer to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the AR glasses control method of the present application, including: Step S10, obtaining first motion data of the own vehicle and second motion data of a moving object within a preset range around the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; In this embodiment, the moving object can be other moving vehicles or pedestrians. The first motion data and the second motion data are key data for predicting whether a collision will occur between the own vehicle and the moving object. Among them, the first motion data are parameters of the own vehicle. In addition to the current position, driving direction, speed and acceleration of the own vehicle, it can also include the model, length and width of the own vehicle. The second motion data are parameters of the moving object. In addition to the current position, driving direction, speed and acceleration of the moving object, it can also include the type of the moving object. If the above type is a vehicle, it can further include the model, length and width of the vehicle.

[0026] In this embodiment, the own vehicle is equipped with a vehicle-mounted camera and radar. The vehicle-mounted camera is used to take photos or videos of moving objects around the own vehicle to obtain the moving objects around and the positions of the moving objects relative to the own vehicle. The vehicle-mounted radar collects data such as the driving direction, speed and acceleration of the moving object in combination with the position collected by the vehicle-mounted camera. In addition, the own vehicle is also equipped with a sensor, which collects data such as the driving direction, speed and acceleration of the own vehicle in real time. The AR glasses obtain the first motion data and the second motion data in real time for further processing, and can also determine the type of the moving object by identifying the image data collected by the vehicle-mounted camera.

[0027] Step S20, predicting whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data; like Figure 3 As shown, the moving objects around own vehicle B include vehicle A and vehicle C. After collecting the first motion data of own vehicle B and the second motion data of vehicle A, by calculating the displacements of own vehicle B and vehicle A over a period of time in the future, their future driving trajectories can be drawn, and it is predicted that own vehicle B and vehicle A will collide. Similarly, after collecting the first motion data of own vehicle B and the second motion data of vehicle C, their future driving trajectories can be drawn, and it is predicted that own vehicle B and vehicle C will not collide.

[0028] Step S30: if a collision occurs, generate and output warning information according to the second motion data.

[0029] In this embodiment, the warning information includes real-time traffic images and second motion data of the vehicle predicted to collide with the own vehicle. Figure 4 As shown, the AR glasses display the traffic picture in the AR glasses. The vehicle surrounded by a rectangular frame in the picture is a dangerous moving object that is predicted to collide with the vehicle. In the traffic picture, it will be marked to remind the user. The marking method can also be red or flashing prompt, etc. This embodiment is not limited, and the user can judge the vehicle with collision threat according to the warning information. In addition, the AR glasses are also equipped with a voice module, which is used for voice reminders. The voice reminder information includes the position, distance, speed and acceleration of the dangerous moving object.

[0030] In this embodiment, the AR glasses make accurate predictions about the future positions of the vehicle and moving objects by predicting the future driving trajectories of moving objects around the vehicle, thereby predicting dangerous moving objects that will collide with the vehicle and providing their information to the user, thereby enabling the AR glasses to have the function of vehicle early warning, breaking through the limitations of the use of AR glasses and providing accurate collision warnings for drivers.

[0031] The embodiments of the present application provide an AR glasses control method, device, AR glasses and storage medium, firstly obtaining first motion data of a vehicle of the own party and second motion data of a moving object within a preset range around the vehicle of the own party, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the vehicle of the own party, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object, and then predicting whether a collision will occur between the vehicle of the own party and the moving object based on the first motion data and the second motion data; if a collision occurs, generating and outputting warning information according to the second motion data. The embodiments of the present application predict through AR glasses whether a vehicle driven by a user will collide with surrounding moving objects, thereby accurately giving the user a collision warning, achieving a breakthrough in the limitations of the use of AR glasses and providing accurate collision warnings for drivers.

[0032] The embodiment of the present application uses AR glasses to dynamically identify the second motion data of other vehicles and objects (such as pedestrians, animals, and obstacles) in the surrounding area during driving, detects the possibility of collision in advance, and renders the warning screen into the AR glasses, or can also be supplemented by the sound warning of the AR glasses, so that the driver can evaluate the road conditions in advance and make driving avoidance in time, thereby realizing the provision of intelligent assistance to the driver through AR glasses, improving the driver's safe driving ability, and effectively expanding the driving safety warning function of the vehicle-mounted AR glasses, thereby effectively solving the technical problem that due to the limitations of the use of vehicle-mounted AR glasses, the vehicle-mounted AR glasses cannot accurately provide the driver with collision warnings.

[0033] Based on the first embodiment of the present application, please refer to Figure 2 , a second embodiment of the AR glasses control method of the present application is proposed. In this embodiment, the above step S20 includes: Step S21, predicting the positions of the own vehicle and the moving object at multiple time nodes within a preset time period in the future based on the first motion data and the second motion data, and obtaining a motion position group corresponding to each of the time nodes, wherein the motion position group includes the first motion position of the own vehicle and the second motion position of the moving object; Step S22, predicting whether a collision occurs between the own vehicle and the moving object according to the motion position group; In this embodiment, the preset duration is 20 seconds, and 20 time nodes are predicted in the next 20 seconds, that is, a prediction is made every 1 second. Each prediction obtains the position of the own vehicle and the position of the moving object at the predicted time node, namely the first moving position and the second moving position, respectively. The above two positions constitute a moving position group, that is, 20 moving position groups will be obtained. The preset duration and the number of predictions are not limited in this embodiment. The first motion data includes the current position, driving direction, speed and acceleration of the own vehicle. The displacement of the own vehicle at each time node can be calculated according to the displacement calculation formula, thereby obtaining the first motion position of the own vehicle. Similarly, the second motion data includes the current position, driving direction, speed and acceleration of the moving object. The displacement of the moving object at each time node is calculated according to the displacement calculation formula, thereby obtaining the second motion position of the moving object.

[0034] In this embodiment, since the positions of the own vehicle and the moving object at multiple time nodes within a preset time in the future are predicted, the probability of missed judgment due to too few predicted time points is reduced, and the accuracy of the prediction is improved.

[0035] In a possible implementation manner, the step of predicting whether a collision occurs between the own vehicle and the moving object according to the motion position group includes: Step A10, generating a world coordinate system with the current position of the own vehicle as the coordinate origin and the driving direction of the own vehicle as the longitudinal axis; Step A20, constructing a first bounding box of the own vehicle in the world coordinate system and a second bounding box of the moving object in the world coordinate system according to the motion position group; Step A30, determining whether there is an overlapping area between the first bounding box and the second bounding box, and if there is an overlapping area, determining that the motion position group belongs to a dangerous position group where a collision event occurs; Step A40, if at least one of all the moving position groups belongs to the dangerous position group, predicting that the own vehicle will collide with the moving object; Step A50: If all the moving position groups do not belong to the dangerous position group, it is predicted that the own vehicle will not collide with the moving object.

[0036] In this embodiment, if Figure 5 The method for predicting collision based on the first moving position and the second moving position is a rough detection. The AABB (Axially Aligned Bounding Box) bounding box algorithm is used to simulate the own vehicle and the moving object into a bounding box. This bounding box just surrounds the vehicle, and the four corners of the vehicle fall on the four sides of the bounding box respectively, and the four sides of the bounding box are parallel to the coordinate axes of the world coordinate system. For the construction of the bounding box of the vehicle, firstly, a database of the vehicle length and width parameters of all vehicle models is constructed, and then the vehicle image or video collected by the vehicle camera is identified to obtain the vehicle model information, and then the above database is queried to obtain the vehicle length and width of the vehicle model. Finally, the bounding box of the vehicle is constructed in combination with the position and driving direction of the vehicle. Therefore, the sizes of the bounding boxes constructed for vehicles of different models or different driving directions are different. For the construction of the bounding box of pedestrians, a fixed value, such as 0.5m×0.5m, can be used, which is not limited in this embodiment.

[0037] For example, refer to Figure 6When performing collision prediction, a world coordinate system is first generated, the origin of which is the center point of the own vehicle. The first bounding box of the own vehicle and the second bounding box of the moving object are constructed by the above-mentioned AABB bounding box algorithm. Then, the range of the user's first bounding box in the world coordinate system and the range of the second bounding box of the moving object in the world coordinate system are obtained. If the projections of the first bounding box and the second bounding box on the horizontal axis overlap, and the projections of the first bounding box and the second bounding box on the vertical axis also overlap, it can be determined that the first bounding box and the second bounding box overlap. However, if the projections of the first bounding box and the second bounding box on only one coordinate axis overlap, the first bounding box and the second bounding box do not overlap. For example, in one scenario, the projection of the first bounding box on the horizontal axis is the interval [-1, 1], and the projection on the vertical axis is the interval [10, 13]. The projection of the second bounding box on the horizontal axis is the interval [0, 2], and the projection on the vertical axis is the interval [12, 15]. Then the overlapping part of the horizontal axis is the interval [0, 1], and the overlapping part of the vertical axis is the interval [12, 13]. Since there are overlapping parts on both the horizontal and vertical axes, it is determined that there is an overlapping area between the first bounding box and the second bounding box. In another scenario, the projection of the first bounding box on the horizontal axis is the interval [-1, 1], and the projection on the vertical axis is the interval [10, 13]. The projection of the second bounding box on the horizontal axis is the interval [0, 2], and the projection on the vertical axis is the interval [14, 17]. Then the overlapping part of the horizontal axis is the interval [0, 1], and there is no overlapping part on the vertical axis. It is determined that there is no overlapping area between the first bounding box and the second bounding box.

[0038] In this embodiment, a total of 20 time nodes are predicted, which correspond to 20 motion position groups respectively. If it is predicted that the first bounding box and the second bounding box of a time node have an overlapping part, the motion position group corresponding to the time node is marked as a dangerous position group. Once a motion position group is marked as a dangerous position group, it can be predicted that the own vehicle will collide with the moving object. If all time nodes are not marked as dangerous position groups, it is predicted that the own vehicle will not collide with the moving object.

[0039] In addition, the above coarse detection can also use an OBB (Oriented bounding box) bounding box algorithm. When constructing a bounding box, the bounding box just surrounds the vehicle, and all four sides of the bounding box are parallel to the long side or wide side of the vehicle. In this embodiment, the bounding box can be a rectangular bounding box, a circular bounding box, an elliptical bounding box, or a capsule-shaped bounding box, etc., and this embodiment does not make specific limitations on this.

[0040] In this embodiment, multiple prediction time points are selected for collision prediction, which reduces the probability of missed judgment due to too few prediction time points and improves the accuracy of the prediction. In addition, a bounding box model is used in collision prediction, which greatly reduces the amount of calculation, thereby reducing the calculation time and improving the execution speed of the collision warning program.

[0041] Embodiment 2 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. On this basis, after the step of predicting that the own vehicle and the moving object will collide, the method further includes: Step B10, generating collision information of the moving object according to the first bounding box and the second bounding box, wherein the collision information includes collision time and collision area; Step B20, generating a danger list of the own vehicle according to the collision information; Step B30, determining the safe driving direction of the own vehicle according to the danger list; Step B40, generating and outputting prompt information according to the safe driving direction.

[0042] In this embodiment, when there is an overlapping area between two bounding boxes at a predicted time node, it is predicted that the own vehicle and the moving object will collide at this time node, and the predicted time node is used as the collision time, and the overlapping length of the projection interval of the two bounding boxes on the horizontal axis and the overlapping length of the projection interval on the vertical axis in the world coordinate system are calculated respectively, and the product of the two is used as the collision area. The above collision time and collision area together constitute the collision information.

[0043] In this embodiment, it may be predicted that multiple moving objects will collide with the own vehicle. The collision information of all moving objects predicted to collide with the own vehicle is counted to generate a danger list. The danger list includes the warning coefficients of all dangerous moving objects predicted to collide with the own vehicle, and the current positions of the moving objects.

[0044] In this embodiment, the turning prompt information includes screen prompt information and the above-mentioned voice prompt information, wherein the screen prompt information can be to display the safe driving direction in the form of an arrow icon on the screen of the AR glasses.

[0045] In this embodiment, after predicting a collision between the own vehicle and the moving object, a safe driving direction is calculated for the own vehicle, so that the user can avoid the moving object according to the prompted safe driving direction.

[0046] In a possible implementation manner, generating the danger list of the own vehicle according to the collision information further includes: Step C10, calculating a warning coefficient according to the collision information and a preset calculation formula, wherein the preset calculation formula is Score=S / (S1+S2)*(20-T) / 20*10, wherein Score is the warning coefficient, S is the collision area, T is the collision time, S1 is the first bounding box area of ​​the own vehicle, and S2 is the second bounding box area of ​​the moving object; Step C20, counting the warning coefficients of all the moving objects predicted to collide, and generating a danger list of the own vehicle.

[0047] In this embodiment, the warning coefficient is used to characterize the degree of collision risk of dangerous moving objects. The larger the collision area or the shorter the collision time, the higher the degree of risk. The value range of the above warning coefficient is 0-10. The larger the value, the higher the degree of risk of this dangerous moving object. The collision information includes the collision time T and the collision area S. The corresponding warning coefficient Score is calculated by the formula, where S1 is the first bounding box area of ​​the own vehicle, and S2 is the second bounding box area of ​​the moving object. The warning coefficient can also be calculated by other formulas. This embodiment is not limited to characterizing the degree of risk of the moving object. The danger list includes the warning coefficients of all moving objects predicted to collide with the own vehicle, as well as the current position of the moving object.

[0048] In this embodiment, the warning coefficient of each moving object predicted to collide with the own vehicle is obtained, and a danger list is generated, thereby clearly showing the danger level of each dangerous moving object and clarifying the avoidance target of the own vehicle.

[0049] In an practicable manner, the step of determining the safe driving direction of the own vehicle according to the danger list includes: Step D10, screening out the moving objects whose warning coefficients are greater than a preset danger warning coefficient from the danger list, and treating the screened moving objects as dangerous objects; Step D20, predicting whether the own vehicle will collide with the dangerous object in a preset driving direction; Step D30: If it is predicted that no collision will occur, the preset driving direction in which no collision is predicted to occur is used as a safe driving direction.

[0050] Exemplarily, the preset danger warning coefficient is 0, that is, all moving objects with warning coefficients greater than 0 in the danger list are regarded as dangerous objects, and the user needs to plan a safe driving direction to avoid all dangerous objects. The preset danger coefficient can also be set to other values, which are not specifically limited in this embodiment. Exemplarily, there are multiple preset driving directions, namely front, back, left, right, left front and right front. Assuming that the own vehicle is driving in the preset driving direction, it is predicted whether the dangerous object will collide with the own vehicle, and the calculation is performed according to the following calculation formula (I), wherein β is the rotation angle of the driving direction of the own vehicle based on the world coordinate system, and the new coordinates of the original coordinates in the new world coordinate system are obtained, s is the horizontal coordinate of the world coordinate system after the driving direction is rotated, t is the vertical coordinate of the world coordinate system after the driving direction is rotated, x is the horizontal coordinate of the world coordinate system before the driving direction is rotated (or before the driving direction is changed), and y is the vertical coordinate of the world coordinate system before the driving direction is rotated. For example, the preset driving direction is right front, and the world coordinate system is rotated 45° clockwise to obtain a new world coordinate system. The collision prediction is performed again according to the new coordinate system. If it is predicted that no collision will occur, then the right front is the safe driving direction. This embodiment calculates the safe driving direction through collision prediction in multiple directions, so that prompt information can be generated and output according to the safe driving direction.

[0051] ; (one) Further, in a possible implementation manner, the step of generating and outputting turn prompt information according to the safe driving direction includes: Step E10: if there is at least one safe driving direction, obtain navigation information, and generate and output turning prompt information or braking prompt information in combination with the safe driving direction; Step E20: If the safe driving direction does not exist, output braking prompt information.

[0052] In this embodiment, for all dangerous moving objects, the safe driving direction of one's own vehicle is evaluated so that the user can avoid the dangerous moving objects according to the safe driving direction. The evaluation result may include multiple safe driving directions, or there may be no safe driving direction. At this time, it is necessary to further determine whether there is at least one safe driving direction that can enable one's own vehicle to avoid all dangerous objects. If not, the user is reminded to brake the vehicle through voice. If so, it is further combined with the navigation information provided by the navigation map to determine whether one's own vehicle will violate traffic regulations when driving in these safe driving directions, such as running a red light or driving in the wrong direction. If violated, the user is reminded to brake the vehicle through voice. If not, the safe driving direction is output. Since this embodiment combines the actual traffic situation judgment, the output prompt is more reasonable.

[0053] In this embodiment, all dangerous objects around the vehicle are screened out, and the best driving direction is predicted for the user based on the dangerous objects, helping the user to minimize the threat of collision to the greatest extent, breaking through the limitations of the use of AR glasses and realizing the use of AR glasses to provide users with safe driving direction prompts.

[0054] In another possible implementation, the step of generating and outputting prompt information according to the safe driving direction includes: Step F10, determining the lane information of the road section where the own vehicle is located; In this embodiment, the lane information includes the number of lanes in the current road section (e.g., whether it is a single lane or multiple lanes), and whether lane change is possible between lanes when the current road section is multiple lanes. It is known to those skilled in the art that if the lane line between two lanes is a solid line, it means that lane change is not possible.

[0055] It is easy to understand that the lane information of the road section where the own vehicle is located can be collected based on the camera. For example, if the own vehicle is equipped with a vehicle-mounted camera, the driving environment around the own vehicle can be photographed or filmed through the vehicle-mounted camera to obtain the lane information of the road section where the own vehicle is located. Of course, the current position of the own vehicle can also be located through GPS to determine the road section where the own vehicle is currently located, and the lane information of the road section where the own vehicle is currently located can be determined from the navigation map through networking.

[0056] Step F20, determining whether the current driving lane of the own vehicle is a changeable lane with a target change condition according to the lane information, wherein the target change condition is a change condition for changing the current driving direction of the own vehicle to the safe driving direction; The current driving lane refers to the lane that the own vehicle is currently driving in. According to the lane information of the current driving lane, it can be indicated whether the own vehicle can currently change lanes to the left lane or the right lane.

[0057] Step F30: if not, outputting the braking prompt information for controlling the vehicle to decelerate and brake as the prompt information corresponding to the safe driving direction; If the current lane of the own vehicle is not a changeable lane with the target change conditions, the braking prompt information for controlling the deceleration and braking of the own vehicle will be output as the prompt information corresponding to the safe driving direction. For example, the safe driving direction is to drive to the right front, but the current lane does not allow lane change to the right. At this time, the vehicle-mounted AR glasses will output the braking prompt information for controlling the deceleration and braking of the own vehicle to prompt the driver.

[0058] Step F40: If yes, then the turning prompt information of turning the current driving direction of the own vehicle to the safe driving direction is output as the prompt information corresponding to the safe driving direction.

[0059] If the current driving lane of the own vehicle is a directional lane with the target change conditions, the steering prompt information of turning the current driving direction to the safe driving direction is output as the prompt information corresponding to the safe driving direction. For example, if the safe driving direction is to drive to the left front, and the current driving lane allows lane change to the left, then the in-vehicle AR glasses will output the steering prompt information of driving to the left front to prompt the driver.

[0060] This embodiment determines whether the current driving lane of the own vehicle is a changeable lane with the target change conditions based on the lane information of the road section where the own vehicle is located. If not, it outputs braking prompt information; if so, it outputs turning prompt information to turn to the safe driving direction. Combined with the actual traffic situation, the output assisted driving prompt is more reasonable and accurate, thereby improving the robustness of the vehicle-mounted AR glasses with assisted driving function, thereby breaking through the limitations of the use of vehicle-mounted AR glasses and realizing that the vehicle-mounted AR glasses can accurately provide the driver with intelligent assisted driving.

[0061] In another possible implementation, the step of generating and outputting prompt information according to the safe driving direction includes: Step G10, obtaining the planned driving route of the own vehicle; Among them, the pre-travel route is the driving navigation route of the own vehicle from the starting point to the destination. In this embodiment, the driver can locate the current vehicle position through the GPS navigation function of the vehicle terminal or other electronic devices (such as mobile phones), and obtain the pre-travel route after the driver enters the destination. Then the vehicle terminal or other electronic devices communicate with the vehicle-mounted AR glasses through Bluetooth or WiFi (Wireless Fidelity) and other connection methods, and send the information of the pre-travel route of the own vehicle to the near-vehicle AR glasses to obtain the current pre-travel route information. It is also possible to locate the current position of the own vehicle through the driving navigation device carried by the vehicle-mounted AR glasses themselves, and directly obtain the pre-travel route after the driver enters the destination. It is understandable that the pre-travel route should be updated in real time, because as the own vehicle travels, the current position of the own vehicle will continue to change, and the starting point of the pre-travel route is equivalent to the current position of the own vehicle. While the starting point is constantly changing, the pre-travel route is also constantly updated accordingly.

[0062] Step G20, determining a real-time distance between the own vehicle and the front intersection based on the current position of the own vehicle and the predicted driving route, and judging whether the real-time distance is less than a preset distance threshold; Step G30: if the real-time distance is less than the preset distance threshold, identifying the state of the traffic light at the intersection ahead according to the vehicle-mounted camera or the camera of the vehicle-mounted AR glasses; It should be noted that the preset distance threshold is not specifically limited in this embodiment, and those skilled in the art may set it according to actual conditions to accurately indicate that the vehicle is about to pass through the intersection ahead, and the on-board camera or the camera of the on-board AR glasses is sufficient to capture the signal light image of the intersection ahead, thereby realizing the identification of the signal light status of the intersection ahead based on the captured signal light image (for example, whether the signal light image is a red light or a green light).

[0063] Step G40, determining whether the state of the signal light is a passing state; Those skilled in the art will know that the status of a traffic light includes a pass state and a non-pass state. It is understandable that in existing traffic rules, traffic lights generally include red, yellow and green lights, wherein the green light represents the pass state and the red light represents the non-pass state. In this embodiment, the yellow light is also included in the non-pass state.

[0064] Step G50: if not, outputting the braking prompt information for controlling the vehicle to decelerate and brake as the prompt information corresponding to the safe driving direction; If the traffic light is not in the pass state, the on-board AR glasses will output braking prompt information to control the vehicle to slow down and brake, and prompt the driver.

[0065] Step G60: If yes, then the turning prompt information for turning the current driving direction to the safe driving direction is output as the prompt information corresponding to the safe driving direction.

[0066] If the traffic light is in the pass state, the in-vehicle AR glasses will output turning prompt information to turn to the safe driving direction to prompt the driver.

[0067] This embodiment uses the vehicle-mounted camera or the camera of the vehicle-mounted AR glasses to determine the status of the traffic light at the intersection ahead. If the traffic light status is not a pass state, it outputs braking prompt information to control the vehicle to slow down and brake. If the traffic light status is a pass state, it outputs turning prompt information to turn to a safe driving direction to prompt the driver, thereby fully considering the impact of the vehicle's complex driving environment, avoiding the occurrence of illegal behaviors such as running red lights, improving driving safety, and improving the intelligence of the vehicle-mounted AR glasses with assisted driving functions.

[0068] Embodiment 3 The present invention also provides an AR glasses control device, please refer to Figure 7 , the AR glasses control device comprises: The acquisition module 10 is configured to acquire first motion data of the own vehicle and second motion data of a moving object within a preset range around the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; A prediction module 20, configured to predict whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data; The output module 30 is configured to generate and output warning information according to the second motion data if a collision occurs.

[0069] Optionally, the prediction module 20 is further configured to: Based on the first motion data and the second motion data, predict the positions of the own vehicle and the moving object at multiple time nodes within a preset time period in the future, and obtain a motion position group corresponding to each time node, wherein the motion position group includes the first motion position of the own vehicle and the second motion position of the moving object; Predict whether a collision occurs between the own vehicle and the moving object according to the motion position group.

[0070] Optionally, the prediction module 20 is further configured to: Generate a world coordinate system by taking the current position of the own vehicle as the coordinate origin and the driving direction of the own vehicle as the longitudinal axis; Constructing a first bounding box of the own vehicle in the world coordinate system and a second bounding box of the moving object in the world coordinate system according to the motion position group; determining whether there is an overlapping area between the first bounding box and the second bounding box, and if there is an overlapping area, determining that the motion position group belongs to a dangerous position group where a collision event may occur; If at least one of all the moving position groups belongs to the dangerous position group, it is predicted that the own vehicle will collide with the moving object; If all the movement position groups do not belong to the dangerous position group, it is predicted that the own vehicle will not collide with the moving object.

[0071] Optionally, the output module 30 is further configured to: Generate collision information of the moving object according to the first bounding box and the second bounding box, wherein the collision information includes collision time and collision area; generating a danger list of the own vehicle according to the collision information; Determining a safe driving direction of the own vehicle according to the danger list; Prompt information is generated and output according to the safe driving direction.

[0072] Optionally, the output module 30 is further configured to: Calculating a warning coefficient according to the collision information; The warning coefficients of all the moving objects predicted to collide are counted to generate a danger list of the own vehicle.

[0073] Optionally, the output module 30 is further configured to: Screening out the moving objects whose warning coefficient is greater than a preset danger warning coefficient from the danger list, and treating the screened moving objects as dangerous objects; Predicting whether the own vehicle will collide with the dangerous object in a preset driving direction; If it is predicted that no collision will occur, the preset driving direction in which no collision is predicted to occur is used as the safe driving direction.

[0074] Optionally, the output module 30 is further configured to: If there is at least one of the safe driving directions, obtaining navigation information, and generating and outputting steering prompt information or braking prompt information in combination with the safe driving direction; If the safe driving direction does not exist, a braking warning message is output.

[0075] The AR glasses control device provided in the embodiment of the present invention adopts the AR glasses control method in the above-mentioned embodiment 1 or embodiment 2, which can solve the technical problem that the vehicle-mounted AR glasses cannot accurately provide collision warnings to the driver due to the limitations of the use of vehicle-mounted AR glasses. Compared with the prior art, the beneficial effects of the AR glasses control device provided in the embodiment of the present invention are the same as the beneficial effects of the AR glasses control method provided in the above-mentioned embodiment, and the other technical features in the AR glasses control device are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0076] Embodiment 4 An embodiment of the present invention provides a vehicle-mounted AR glasses, which include: 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 glasses control method in the above-mentioned embodiment one.

[0077] Reference below Figure 8, which shows a schematic structural diagram of vehicle-mounted AR (Augmented Reality) glasses suitable for implementing an embodiment of the present disclosure. Figure 8 The vehicle-mounted AR glasses shown are merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0078] like Figure 8 As shown, the vehicle-mounted AR glasses may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM1002) or a program loaded from a storage device into a random access memory (RAM1004). In RAM1004, various programs and data required for the operation of the vehicle-mounted AR glasses are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface is also connected to the bus 1005.

[0079] Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the vehicle-mounted AR glasses to communicate wirelessly or wired with other devices to exchange data. Although the figure shows vehicle-mounted AR glasses 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 provided alternatively.

[0080] 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 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0081] The vehicle-mounted AR glasses provided by the present invention adopt the AR glasses control method in the above embodiment, which can solve the technical problem that the vehicle-mounted AR glasses cannot accurately provide collision warnings to drivers due to the limitations of the use of vehicle-mounted AR glasses. Compared with the prior art, the beneficial effects of the vehicle-mounted AR glasses provided by the embodiment of the present invention are the same as the beneficial effects of the AR glasses control method provided by the above embodiment, and the other technical features of the vehicle-mounted AR glasses are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

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

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

[0084] Embodiment 5 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 glasses control method in the above embodiment.

[0085] 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 this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that 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.

[0086] The above-mentioned computer-readable storage medium may be included in the vehicle-mounted AR glasses; or it may exist independently without being assembled into the vehicle-mounted AR glasses.

[0087] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the vehicle-mounted AR glasses, the vehicle-mounted AR glasses: obtain first motion data of the own vehicle and second motion data of a moving object within a preset range around the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; based on the first motion data and the second motion data, predict whether a collision will occur between the own vehicle and the moving object; if a collision occurs, generate and output warning information according to the second motion data.

[0088] 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 the case of 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).

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

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

[0091] The computer-readable storage medium provided by the present invention stores computer-readable program instructions for executing the above-mentioned AR glasses control method, which can solve the technical problem that due to the limitations of the use of vehicle-mounted AR glasses, it is impossible to accurately provide collision warnings to drivers through vehicle-mounted AR glasses. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the embodiment of the present invention are the same as the beneficial effects of the AR glasses control method provided in the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.

[0092] Embodiment 6 An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the AR glasses control method as described above when executed by a processor.

[0093] The computer program product provided by this application can solve the technical problem that due to the limitations of the use of vehicle-mounted AR glasses, it is impossible to accurately provide collision warnings to drivers through vehicle-mounted AR glasses. 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 glasses control method provided by the above-mentioned embodiment 1 or embodiment 2, and will not be repeated here.

[0094] 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. A method for controlling AR glasses, characterized in that: include: Acquire first motion data of the own vehicle and second motion data of a moving object within a preset range around the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; Based on the first motion data and the second motion data, predict whether a collision will occur between the own vehicle and the moving object; If a collision occurs, a warning message is generated and output according to the second motion data.

2. The AR glasses control method according to claim 1, characterized in that: The step of predicting whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data comprises: Based on the first motion data and the second motion data, predict the positions of the own vehicle and the moving object at multiple time nodes within a preset time period in the future, and obtain a motion position group corresponding to each time node, wherein the motion position group includes the first motion position of the own vehicle and the second motion position of the moving object; Predict whether a collision occurs between the own vehicle and the moving object according to the motion position group.

3. The AR glasses control method according to claim 2, characterized in that: The step of predicting whether a collision occurs between the own vehicle and the moving object according to the moving position group comprises: Generate a world coordinate system by taking the current position of the own vehicle as the coordinate origin and the driving direction of the own vehicle as the longitudinal axis; Constructing a first bounding box of the own vehicle in the world coordinate system and a second bounding box of the moving object in the world coordinate system according to the motion position group; determining whether there is an overlapping area between the first bounding box and the second bounding box, and if there is an overlapping area, determining that the motion position group belongs to a dangerous position group where a collision event may occur; If at least one of all the moving position groups belongs to the dangerous position group, it is predicted that the own vehicle will collide with the moving object; If all the movement position groups do not belong to the dangerous position group, it is predicted that the own vehicle will not collide with the moving object.

4. The AR glasses control method as claimed in claim 3, characterized in that: After the step of predicting that the own vehicle will collide with the moving object, the method further includes: Generate collision information of the moving object according to the first bounding box and the second bounding box, wherein the collision information includes collision time and collision area; generating a danger list of the own vehicle according to the collision information; Determining a safe driving direction of the own vehicle according to the danger list; Prompt information is generated and output according to the safe driving direction.

5. The AR glasses control method according to claim 4, characterized in that: The step of generating the danger list of the own vehicle according to the collision information comprises: Calculating a warning coefficient according to the collision information; The warning coefficients of all the moving objects predicted to collide are counted to generate a danger list of the own vehicle.

6. The AR glasses control method according to claim 4, characterized in that: The step of determining the safe driving direction of the own vehicle according to the danger list comprises: Screening out the moving objects whose warning coefficient is greater than a preset danger warning coefficient from the danger list, and treating the screened moving objects as dangerous objects; Predicting whether the own vehicle will collide with the dangerous object in a preset driving direction; If it is predicted that no collision will occur, the preset driving direction in which no collision is predicted to occur is used as the safe driving direction.

7. The AR glasses control method according to claim 4, characterized in that: The prompt information includes steering prompt information and braking prompt information, and the step of generating and outputting prompt information according to the safe driving direction includes: If there is at least one of the safe driving directions, obtaining navigation information, and generating and outputting steering prompt information or braking prompt information in combination with the safe driving direction; If the safe driving direction does not exist, a braking warning message is output.

8. An AR glasses control device, characterized in that: The device comprises: an acquisition module, configured to acquire first motion data of a own vehicle and second motion data of a moving object within a preset range of the own vehicle, wherein the first motion data at least includes the current position, driving direction, speed and acceleration of the own vehicle, and the second motion data at least includes the current position, driving direction, speed and acceleration of the moving object; A prediction module, configured to predict whether a collision will occur between the own vehicle and the moving object based on the first motion data and the second motion data; The output module is configured to generate and output warning information according to the second motion data if a collision occurs.

9. A vehicle-mounted AR glasses, characterized in that: The vehicle-mounted AR glasses include: 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 so that the at least one processor can perform the steps of the AR glasses control method described in any one of claims 1 to 7.

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