AR navigation method, device and electronic device based on digital twin

Through the AR navigation method of digital twins, the magnetic field correction model is used to process magnetic field information and attitude information, which solves the accuracy problem of the navigation path in the AR device display screen and achieves higher navigation accuracy.

CN118654680BActive Publication Date: 2024-10-18LIGHTIN INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411087762.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-18
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

Existing AR navigation methods lack accurate navigation due to magnetic field interference and lack effective solutions.

Method used

The AR navigation method based on digital twins is used to obtain the attitude information and magnetic field information of the AR device, use the magnetic field correction model for processing, correct the orientation information, determine whether the navigation path is in the display screen, and determine the direction indication when the navigation path is outside. logo.

Benefits of technology

Effectively eliminate magnetic field interference, improve navigation accuracy, and ensure the accuracy of the navigation path in the AR device display screen.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118654680B_ABST
    Figure CN118654680B_ABST
Patent Text Reader

Abstract

The present invention discloses an AR navigation method, device and electronic device based on digital twin. The method includes: generating a navigation path on an AR device based on a predetermined target route; obtaining the posture information and measured magnetic field information of the current position of the AR device; processing the measured magnetic field information based on a magnetic field correction model to obtain the target magnetic field information; correcting the orientation information of the AR device based on the target magnetic field information to obtain the corrected posture information; judging whether the navigation path is located in the display content of the AR device based on the corrected posture information, and the corrected posture information is used to constrain the display content of the AR device; when the navigation path is outside the display screen of the AR device, determining the direction indication mark to be displayed in the AR device. The present invention solves the technical problem that navigation based on magnetic field information is not accurate enough due to the existence of magnetic field interference.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of navigation technology, and in particular to an AR navigation method, device and electronic device based on digital twins. Background Art

[0002] Most existing AR navigation methods are based on two-dimensional display screens (such as mobile phone screens, display screens of navigation devices, etc.) to display navigation paths and directions. Compared with the actual three-dimensional navigation situation, this display method has the problem of lack of dimension in display information. For users, the lack of dimension in display causes people to have vague cognition of paths and directions. In addition, during the navigation process, due to the presence of ferromagnetic devices and electronic devices, there is interference with the earth's magnetic field. Therefore, when navigating based on magnetic field information, there will be errors, resulting in low navigation accuracy.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide an AR navigation method, device and electronic device based on digital twins, so as to at least solve the technical problem that navigation based on magnetic field information is not accurate enough due to the existence of magnetic field interference.

[0005] According to one aspect of an embodiment of the present invention, there is provided an AR navigation method based on digital twins, comprising: generating a navigation path on an AR device based on a predetermined target route; obtaining posture information and measured magnetic field information of a current position of the AR device, wherein the posture information includes orientation information of the AR device; processing the measured magnetic field information based on a magnetic field correction model to obtain target magnetic field information; correcting the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information; judging whether the navigation path is located in a display screen of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device; and determining a direction indication mark to be displayed in the AR device when the navigation path is outside the display screen of the AR device.

[0006] Optionally, before generating a navigation path on the AR device based on a predetermined target route, the method further includes: obtaining an initial position; receiving a target position input based on a target account; and determining the target route based on the initial position and the target position.

[0007] Optionally, based on a predetermined target route, a navigation path is generated on an AR device, including: establishing a navigation coordinate system based on the target route; obtaining a first coordinate of the current position in a geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system constructed by longitude, latitude and altitude; converting the first coordinate into a second coordinate in a geocentric, earth-fixed coordinate system, wherein the geocentric, earth-fixed coordinate system is a coordinate system constructed by the earth's center of mass and the earth's axis; converting the second coordinate into a third coordinate in the navigation coordinate system; and generating a navigation path based on the third coordinate and the coordinates of the target position in the target route in the navigation coordinate system.

[0008] Optionally, before processing the measured magnetic field information based on the magnetic field correction model to obtain the target magnetic field information, it also includes: obtaining multiple sets of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple sets of sample magnetic field information, wherein the sample magnetic field information in the multiple sets of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple sets of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple sets of sample magnetic field information; determining magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

[0009] Optionally, based on the magnetic field correction model, the measured magnetic field information is processed to obtain target magnetic field information, including: inputting the measured magnetic field information into the magnetic field correction model, and correcting the magnetic interference parameters in the magnetic field correction model to obtain the target magnetic field information.

[0010] Optionally, based on the target magnetic field information, the orientation information of the AR device is corrected to obtain corrected posture information, including: acquiring acceleration information and angular velocity information of the AR device; and determining the corrected posture information based on the acceleration information, angular velocity information and target magnetic field information.

[0011] Optionally, when the navigation path is outside the display content of the AR device, determining the direction indication mark to be displayed in the AR device also includes: determining a deviation angle based on the navigation path and the display content of the AR device; and generating the direction indication mark to be displayed based on the deviation angle.

[0012] Optionally, determining whether the navigation path is located outside the display content of the AR device further includes: when the navigation path is outside the display content of the AR device, determining the remaining distance of the route based on the current position of the AR device and the target route; generating a virtual navigation arrow based on the navigation path and corrected posture information; and displaying the remaining distance of the route and the virtual navigation arrow on the AR device for navigation.

[0013] According to another aspect of an embodiment of the present invention, an AR navigation device based on digital twin is also provided, including: a generation module, used to generate a navigation path on an AR device based on a predetermined target route; an acquisition module, used to obtain posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes the orientation information of the AR device; a processing module, used to process the measured magnetic field information based on a magnetic field correction model to obtain the target magnetic field information; a correction module, used to correct the orientation information of the AR device based on the target magnetic field information to obtain the corrected posture information; a judgment module, used to judge whether the navigation path is located in the display screen of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device; a determination module, used to determine the direction indication mark to be displayed in the AR device when the navigation path is outside the display screen of the AR device.

[0014] According to another aspect of an embodiment of the present invention, an electronic device is also provided, including: a sensor, a controller and a memory, wherein the sensor is used to obtain posture information and measured magnetic field information of the current position of the AR device, and transmit them to the processor; the memory stores a computer program; the processor is used to execute the computer program stored in the memory, and when the computer program is running, the processor executes any one of the above-mentioned AR navigation methods based on digital twins.

[0015] In an embodiment of the present invention, an AR navigation method based on digital twins is adopted, and a navigation path is generated on an AR device based on a predetermined target route; posture information and measured magnetic field information of the current position of the AR device are obtained, wherein the posture information includes the orientation information of the AR device; based on a magnetic field correction model, the measured magnetic field information is processed to obtain target magnetic field information; based on the target magnetic field information, the orientation information of the AR device is corrected to obtain corrected posture information; based on the corrected posture information, it is determined whether the navigation path is located in a display screen of the AR device, wherein the corrected posture information is used to constrain the display content of the AR device; when the navigation path is outside the display screen of the AR device, a direction indication mark to be displayed in the AR device is determined, thereby achieving the purpose of eliminating interference from other magnetic fields, thereby realizing the technical effect of improving the accuracy of navigation, and further solving the technical problem of inaccurate navigation based on magnetic field information due to the existence of magnetic field interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0017] Figure 1A hardware structure block diagram of a computer terminal for implementing an AR navigation method based on digital twins is shown;

[0018] Figure 2 It is a flowchart of an AR navigation method based on digital twins provided according to an embodiment of the present invention;

[0019] Figure 3 is a navigation schematic diagram of an AR device in an AR navigation method based on digital twins provided according to an optional embodiment of the present invention;

[0020] Figure 4 is a schematic diagram of prompt information of an AR device in an AR navigation method based on digital twins provided according to an optional embodiment of the present invention;

[0021] Figure 5 It is a schematic diagram of the overall process of an AR navigation method based on digital twins provided according to an optional embodiment of the present invention;

[0022] Figure 6 is a structural block diagram of an AR navigation device based on digital twins provided according to an embodiment of the present invention;

[0023] Figure 7 It is a schematic diagram of the composition of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, 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 should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to an embodiment of the present invention, a method embodiment of an AR navigation method based on digital twins is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0027] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing an AR navigation method based on digital twins is shown. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0028] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0029] The memory 104 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the AR navigation method based on digital twins in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the AR navigation method based on digital twins of the above-mentioned application program is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0030] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0031] Figure 2 is a flow chart of an AR navigation method based on digital twins provided according to an embodiment of the present invention, such as Figure 2 As shown, the method comprises the following steps:

[0032] Step S202: Generate a navigation path on the AR device based on the predetermined target route.

[0033] In this step, based on the predetermined target route, the target route here can be manually input by the target user, or generated based on the initial position and target position input by the user. For example, a user using an AR device can enter the destination information, and then plan the target route based on GPS positioning combined with map information. The generated target route can generate a navigation path on the AR device, that is, the target route can be converted into a navigation path with the AR device as the origin, and the person using the AR device can be navigated by arrows and the like. Specifically, according to the navigation path, the user using the AR device for navigation can be guided in real time in which direction to rotate or move.

[0034] Figure 3 is a navigation schematic diagram of an AR device in an AR navigation method based on digital twins according to an optional embodiment of the present invention, such as Figure 3As shown, the navigation path information will be displayed on the AR device. Here, the navigation path can be displayed on the AR device in text form or image form. Taking the AR device as AR glasses as an example, the navigation path is displayed on the display screen of the AR glasses. The target object can see the actual environment and the navigation information provided by the micro display of the AR glasses at the same time through the AR glasses. That is, the user can wear AR glasses to view the real environment while also viewing the virtual display content anchored in the real environment. Compared with a two-dimensional display screen, this can better display the navigation path and direction, take the target object as the first perspective, and display navigation information that conforms to cognitive habits in the physical space, which can achieve a more accurate navigation effect.

[0035] Step S204: Acquire posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes orientation information of the AR device.

[0036] In this step, the attitude information and measured magnetic field information of the current position of the AR device can be obtained. In the navigation system, the characteristics of the earth's magnetic field are usually used to determine the direction, so the magnetic field information can be used for compass navigation. Specifically, the magnetic field information can be obtained by using a magnetometer to measure the magnetic field information of the current position, and the magnetometer can obtain the size and direction information of the magnetic field. It can measure the strength of the magnetic field and indicate the direction of the magnetic field. The attitude information can be obtained by an accelerometer and a gyroscope, wherein the accelerometer can obtain the acceleration data of the object, that is, the acceleration change of the object in three-dimensional space. These data can be used to detect the motion state, tilt angle and other information of the object. The gyroscope can obtain the angular velocity data of the object, that is, the speed of the object rotating around each axis. These data can be used to detect the rotation state, direction change and other information of the object. The attitude information obtained may include the tilt angle, orientation, etc. used by the AR device, and based on this information, corresponding guidance can be made for users who use the AR device for navigation.

[0037] Step S206: Process the measured magnetic field information based on the magnetic field correction model to obtain target magnetic field information.

[0038] In this step, based on the magnetic field correction model, the measured magnetic field information can be processed, and the target magnetic field information obtained is the magnetic field information that eliminates other magnetic field interference. Because in a complex urban environment, there are usually many ferromagnetic devices and electronic devices, which will interfere with the earth's magnetic field, and then there will be errors in the measured magnetic field information obtained, resulting in navigation. If the direction is directly guided based on the measured magnetic field information, there may be deviations, which are not accurate enough. Therefore, the magnetic field correction model can be used to process the measured magnetic field information, eliminate the error, and then make the navigation more accurate. That is, when GPS is effective, the magnetometer is corrected using GPS to obtain correct geomagnetic data, and the accurate posture of the AR device can be obtained in combination with IMU data. When navigation fails through a bridge hole or other GPS failures, accurate posture information can still be obtained using the previously obtained corrected geomagnetic data.

[0039] Step S208: Correct the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information.

[0040] In this step, based on the target magnetic field information, the orientation information of the AR device can be corrected to obtain the corrected attitude information. Specifically, information can be solved in the digital twin space, and the integrated 6-channel IMU (3-channel accelerometer and 3-channel gyroscope) and the target magnetic field information are used as inputs for solving the attitude information, and then the attitude information is output using the 9-axis attitude solution algorithm in the digital twin space, wherein the 9-axis includes a 3-axis magnetometer, a 3-axis accelerometer, and a 3-axis gyroscope. The attitude information may include pitch angle, roll angle, and heading angle. The pitch angle is the front and rear tilt angle of the device; the roll angle refers to the left and right tilt angle of the device; the heading angle refers to the direction angle of the device relative to the surface of the earth, that is, the orientation information. Using a sensor device with a 9-axis IMU (3-axis magnetometer, 3-axis accelerometer, 3-axis gyroscope) to obtain attitude information can enable more accurate navigation. Considering that the device corresponding to the AR device is usually located at the user's viewing angle, the display range is also limited due to the field of view of the display device. If the AR device tilts while the target object is moving, it will affect the navigation effect. The pitch angle refers to the angle at which the AR device rotates upward or upward, and the roll angle refers to the angle at which the AR device rotates left or right. By detecting the pitch angle and roll angle, a reminder can be given when the angle exceeds the preset threshold to avoid affecting the navigation effect. For example, when the user wears the navigation device and lowers his head, and the pitch angle exceeds the set angle, an upward arrow indication is given at the upper edge of the screen to guide the user to raise his head so that the navigation path returns to the display range; conversely, when the pitch angle of the user's head exceeds the set angle, a downward arrow indication is given at the lower edge of the screen. With these prompts, you can better navigate the target object and improve the accuracy of navigation.

[0041] Step S210: Based on the corrected posture information, it is determined whether the navigation path is located in the display screen of the AR device, wherein the corrected posture information is used to constrain the display content of the AR device.

[0042] In this step, based on the corrected posture information, it can be determined whether the navigation path is within the display range of the AR device. That is, the orientation information can be determined based on the acquired heading angle, and then the pitch angle and roll angle information can be combined to determine whether the navigation path is within the display screen range of the AR device. For example, when the orientation information in the posture information is toward the southeast at this time, if the corresponding navigation path direction is west at this time, then it can be considered that the navigation path is not within the display screen range of the AR device. In this case, a guiding direction indicator will appear in the display screen of the AR device, that is, the display screen of the AR device is constrained by the corrected posture information.

[0043] Step S212: When the navigation path is outside the display screen of the AR device, determine a direction indication mark to be displayed in the AR device.

[0044] In this step, if the navigation path is outside the display range of the AR device at this time, a direction indicator can be generated, and the direction indicator can be used to prompt the user who uses the AR device for navigation to move in the correct direction. The direction indicator can be a text prompt or an arrow prompt. Specifically, when the AR device is a head-mounted device, namely AR glasses, a yaw reminder can be given when the angle between the current navigation path direction and the head orientation (that is, the AR glasses orientation) exceeds a predetermined angle. Taking the heading angle deviation as an example, when the user wearing AR glasses turns his head to the right and exceeds the set threshold (for example, the angle difference is greater than 60°), the user is prompted that he has yawed, and an arrow is given on the left edge of the screen to indicate the direction of the navigation path. Figure 4 is a schematic diagram of prompt information of an AR device in an AR navigation method based on digital twins according to an optional embodiment of the present invention, such as Figure 4 As shown, when deviating from the navigation direction, the AR device will display corresponding prompt information.

[0045] Through the above steps, the purpose of eliminating other magnetic field interference is achieved, thereby achieving the technical effect of improving the accuracy of navigation, and further solving the technical problem of inaccurate navigation based on magnetic field information due to the existence of magnetic field interference.

[0046] As an optional embodiment, before generating a navigation path on an AR device based on a predetermined target route, it also includes: obtaining an initial position; receiving a target position input based on a target account; and determining the target route based on the initial position and the target position.

[0047] Optionally, the target route can be generated by first obtaining the initial position. Then, the target position based on the target account input is received, and the target route can be determined based on the initial position and the target position. Among them, the target object can input the destination information based on the mobile phone or AR device. Specifically, the method of inputting the target location can be through typing or voice input. Then, GPS positioning is used to obtain real-time location information, and the target route is planned in combination with map information. Among them, a local map can be obtained based on the starting position and the target position, and then a path planning algorithm can be used to generate a route from the initial position to the target position. It can also generate multiple routes, which can then be selected by the target object.

[0048] As an optional embodiment, a navigation path is generated on an AR device based on a predetermined target route, including: establishing a navigation coordinate system based on the target route; obtaining a first coordinate of the current position in a geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system constructed by longitude, latitude, and altitude; converting the first coordinate into a second coordinate in a geocentric, earth-fixed coordinate system, wherein the geocentric, earth-fixed coordinate system is a coordinate system constructed by the earth's center of mass and the earth's axis; converting the second coordinate into a third coordinate in the navigation coordinate system; and generating a navigation path based on the third coordinate and the coordinates of the target position in the target route in the navigation coordinate system.

[0049] Optionally, coordinate conversion is required in generating a navigation path according to the current moving direction and a predetermined target route, and the places involved in the target route are converted from the geodetic coordinate system to the navigation coordinate system. The geodetic coordinate system is a coordinate system used to represent positions on the surface of the earth. It uses longitude, latitude and elevation to describe the position of points on the earth. This coordinate system is established based on the shape and size of the earth. During the navigation process, it is necessary to convert the geodetic coordinate system into the navigation coordinate system to facilitate calculations: the geodetic coordinate system uses longitude and latitude to represent the position of points on the earth, and during the navigation process, distance, direction and other calculations need to be performed. Converting the geodetic coordinate system to the navigation coordinate system can make these calculations more convenient, and the use of the navigation coordinate system can better plan real-time paths. Converting the geodetic coordinate system to the navigation coordinate system can better adapt to the needs of the navigation system and improve navigation accuracy and reliability. Converting the geodetic coordinate system to the navigation coordinate system can be divided into two steps, first converting the geodetic coordinate system to the geocentric earth-fixed coordinate system, and then converting the geocentric earth-fixed coordinate system to the navigation coordinate system. Specifically, we can assume that point P is a point on the earth's surface, (L, B, H) is the coordinate of point P in the geodetic coordinate system, that is, the first coordinate, where L represents longitude (unit: degree), B represents latitude (unit: degree), and H represents altitude (unit: meter). After conversion using the conversion formula, the coordinate of point P in the geocentric earth-fixed coordinate system is expressed as: P = X Y Z = ( N + H ) cosBcosL ( N + H ) cosBsinL [ N 1- e 2 + H ] sinB ,in, , a is the radius of the earth's equator, which is 6378137 meters, and e is the first eccentricity of the ellipse, which is 0.081819. According to the above formula, the coordinates of point P in the earth-centered earth-fixed coordinate system, that is, the second coordinates, can be obtained. Then, it is assumed that the coordinates of the earth-centered earth-fixed coordinate system (EECF) and the coordinates of the large coordinate system (LBH) corresponding to the coordinate origin O of the navigation coordinate system are respectively , , assuming that another point P in the space, the corresponding EECF coordinates and LBH coordinates are: , The coordinates of P in the navigation coordinate system (ENU) are: , we can get the coordinates of point P in the navigation coordinate system, which is the third coordinate. Through the above coordinate transformation, the coordinates of the initial position, target position and the position where the target route passes in the geodetic coordinate system can be converted into coordinates in the navigation coordinate system. The navigation path can be determined based on the coordinates of the real-time position and the coordinates of the target position in the navigation coordinate system.

[0050] As an optional embodiment, before the measured magnetic field information is processed based on the magnetic field correction model to obtain the target magnetic field information, it also includes: obtaining multiple sets of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple sets of sample magnetic field information, wherein the sample magnetic field information in the multiple sets of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple sets of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple sets of sample magnetic field information; determining magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

[0051] Optionally, to obtain the magnetic field correction model, multiple groups of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple groups of sample magnetic field information can be obtained first. Then, the actual magnetic field direction angles corresponding to the multiple groups of sample magnetic field information are calculated based on the multiple groups of sample magnetic field information. According to the standard magnetic field direction angle and the actual magnetic field direction angle, the magnetic interference parameter can be determined. Among them, the sample magnetic field information can be obtained in advance, and after the magnetic interference parameters are obtained, they are applied to the subsequent magnetic field correction model, which can more conveniently and timely eliminate the interference of other magnetic fields during the navigation process. It is also possible to obtain the magnetic field information corresponding to the user's first few positions during the actual navigation process, and then combine them to form multiple groups of sample magnetic field information, and then calculate the corresponding magnetic interference parameters, and the determined magnetic field correction model is only applied to this navigation. The magnetic interference parameters are recalculated for each navigation, so that the obtained magnetic interference parameters are more accurate. Because the magnetic interference parameters in different regions may be different, each time the magnetic field correction model is re-obtained and determined, more accurate corrected target magnetic field information can be obtained. Specifically, under normal circumstances, there are hard magnetic interference and soft magnetic interference in the magnetic field interference. Assuming that the magnetometer measurement value is , the true geomagnetic vector, that is, the magnetic field vector after eliminating the error, is , T is the vector transpose, representing the column vector, and the soft magnetic interference is set to the soft magnetic matrix , is a symmetric matrix, and the hard magnetic interference is set to the hard magnetic matrix Here and It is the magnetic interference parameter. The magnetic field correction model of the magnetometer is as follows: You can first use a sensor device equipped with GPS and 9-axis IMU (3-axis magnetometer, 3-axis accelerometer, 3-axis gyroscope) to Click to move to Point. GPS acquisition , The longitude and latitude of two points, solve , Angle change between two points , which is the standard magnetic field direction angle. The magnetic field information corresponding to the two positions a and b here can form a set of sample magnetic field information. The standard magnetic field direction angle is the angle between the magnetic field vectors at points a and b. At point , the acceleration measurement value in the sensor coordinate system is , the magnetometer measurement value is , the magnetic field vector without interference can be obtained through the above magnetic field correction model , here Including unknowns and .Will Projected to a coordinate system consisting of a horizontal plane and a vertical upward direction Next Similarly, solve The magnetometer measurement value at point exist The lower projection is ;pass , The solution direction angle is The above observation angles calculated by GPS and the angle estimated by the magnetometer are equal, that is .in, The magnetic interference parameters are included , , the two matrices contain a total of 9 unknowns, so the magnetic field information corresponding to multiple positions can be obtained, and then at least nine sets of sample magnetic field information can be formed, and then solved by the least squares method , . get , After that, the magnetic field correction model can be obtained. By using the magnetic field correction model to process the magnetic field information, the target magnetic field information can be obtained after eliminating other magnetic field interference. Using the target magnetic field information to determine the direction for navigation can be more accurate.

[0052] As an optional embodiment, the measured magnetic field information is processed based on a magnetic field correction model to obtain target magnetic field information, including: inputting the measured magnetic field information into the magnetic field correction model, and obtaining the target magnetic field information through correction of magnetic interference parameters in the magnetic field correction model.

[0053] Optionally, the obtained measured magnetic field information can be input into a magnetic field correction model, that is, the measured value of the magnetometer is input into the magnetic field correction model, and the magnetic interference parameter is used in the magnetic field correction model. , By correction, the target magnetic field information can be obtained, that is, the magnetic value after excluding interference from other magnetic fields.

[0054] As an optional embodiment, the orientation information of the AR device is corrected based on the target magnetic field information to obtain the corrected posture information, including: obtaining the acceleration information and angular velocity information of the AR device; and determining the corrected posture information based on the acceleration information, angular velocity information and target magnetic field information.

[0055] Optionally, the acceleration information and angular velocity information of the AR device can be obtained based on the integrated 6-channel IMU (3-channel accelerometer and 3-channel gyroscope), where the 3-channel accelerometer can be used to obtain acceleration information and the 3-channel gyroscope can be used to obtain angular velocity information. The acquired acceleration information, angular velocity information and target magnetic field information are used as inputs for solving attitude information, and then the attitude information is output using the 9-axis attitude solving algorithm in the digital twin space to obtain the corrected attitude information.

[0056] As an optional embodiment, when the navigation path is outside the display content of the AR device, determining the direction indication mark to be displayed in the AR device also includes: determining the deviation angle based on the navigation path and the orientation information of the AR device; and generating the direction indication mark to be displayed based on the deviation angle.

[0057] Optionally, it is possible to determine whether the guidance direction is within the display screen based on the guidance direction of the navigation path in the current situation. If not, the angle between the guidance direction and the orientation of the AR device can be determined as the deviation angle. When the deviation angle is greater than a certain value, a direction indicator mark can be generated. For example, when the deviation angle between the guidance direction and the edge of the display range is 50° to the left, that is, the orientation of the AR device is too far to the right at this time, a direction indicator mark can be generated to rotate 50° to the left to prompt the user that the current orientation has deviated.

[0058] As an optional embodiment, determining whether the navigation path is located outside the display content of the AR device also includes: when the navigation path is outside the display content of the AR device, determining the remaining distance of the route based on the current position of the AR device and the target route; generating a virtual navigation arrow based on the navigation path and corrected posture information; and displaying the remaining distance of the route and the virtual navigation arrow on the AR device for navigation.

[0059] Optionally, when the navigation path is within the display content of the AR device, normal navigation can be performed. The remaining distance of the route can be calculated based on the current position and the target route. Then a virtual navigation arrow is generated based on the navigation path. Figure 3 As shown, by displaying the remaining distance of the route and the virtual navigation arrow on the AR device, the AR device combines the virtual display path with the actual environment for navigation, and the navigation information that conforms to the user's cognitive habits makes it more convenient and easy for users to use. The estimated arrival time, the remaining moving distance in the current direction, etc. can also be calculated and displayed on the AR device. This information can help the target object better understand the route information and improve the target object's experience.

[0060] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0061] Through the description of the above implementation methods, those skilled in the art can clearly understand that the AR navigation method based on digital twins according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0062] Figure 5 is a schematic diagram of the overall process of the AR navigation method based on digital twins according to an optional embodiment of the present invention, such as Figure 5 As shown, GPS, magnetometer and IMU can all be used as input modules. Route planning can be performed based on the map information stored in the memory and combined with the current position obtained by GPS and the target position input by the target object. Information solution can be performed in the digital twin space, which refers to a digital virtual environment corresponding to the actual space, in which the real-time position obtained by GPS combined with the current moving direction obtained by the magnetometer can be used to estimate the real-time distance, and the orientation of the current navigation device can be solved in real time based on the magnetometer, so as to provide more accurate navigation information prompts and real-time distance. Sensors that obtain acceleration and angular velocity in magnetometers and IMUs, that is, accelerometers, gyroscopes and magnetometers, can be used to perform attitude solution, obtain heading angles, pitch angles and roll angles, and combine them with the current position to provide direction guidance and yaw reminders. The obtained virtual route, remaining distance, direction guidance, etc. are displayed to the AR device, so that navigation can be performed for the target object. Using digital twin space for information solution in navigation can help users understand their location and surrounding environment more intuitively and accurately, so as to find their destination more quickly and conveniently. Through the digital twin space, users can see real-time map information, building layout, road conditions, etc., making navigation more intuitive and specific.

[0063] According to an embodiment of the present invention, there is also provided an AR navigation device based on digital twins for implementing the AR navigation method based on digital twins. Figure 6 is a structural block diagram of an AR navigation device based on digital twins provided according to an embodiment of the present invention, such as Figure 6 As shown, the AR navigation device based on digital twin includes: a generation module 602, an acquisition module 604, a processing module 606, a correction module 608, a judgment module 610 and a determination module 612. The AR navigation device based on digital twin is described below.

[0064] The generating module 602 is used to generate a navigation path on the AR device based on a predetermined target route.

[0065] The acquisition module 604 is connected to the generation module 602 and is used to acquire the posture information of the current position of the AR device and the measured magnetic field information, wherein the posture information includes the orientation information of the AR device.

[0066] The processing module 606 is connected to the acquisition module 604 and is used to process the measured magnetic field information based on the magnetic field correction model to obtain the target magnetic field information.

[0067] The correction module 608 is connected to the processing module 606 and is used to correct the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information.

[0068] The judgment module 610 is connected to the correction module 608 and is used to judge whether the navigation path is located in the display screen of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device.

[0069] The determination module 612 is connected to the judgment module 610 and is used to determine a direction indication mark to be displayed in the AR device when the navigation path is outside the display screen of the AR device.

[0070] It should be noted that the above generation module 602, acquisition module 604, processing module 606, correction module 608, judgment module 610 and determination module 612 correspond to steps S202 to S212 in the embodiment, and the examples and application scenarios implemented by the multiple modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment. It should be noted that the above modules, as part of the device, can be run in the computer terminal 10 provided in the embodiment.

[0071] The present invention also provides an electronic device, Figure 7 is a schematic diagram of the composition of an electronic device provided according to an embodiment of the present invention, such as Figure 7 As shown, it includes: a sensor, a controller and a memory, wherein,

[0072] The sensor is used to obtain the posture information of the current position of the AR device and measure the magnetic field information.

[0073] The memory stores a computer program.

[0074] A processor is used to execute a computer program stored in a memory, and when the computer program is running, the processor executes any one of the above-mentioned AR navigation methods based on digital twins.

[0075] The electronic device may be one of the wearable devices, and may be an augmented reality device capable of realizing an augmented reality function, such as an AR helmet, AR glasses, etc., or may be an MR device capable of having both an augmented reality function. The real-time location information of the electronic device may be obtained through its own GPS, or may be obtained through an electronic device such as a smart watch or a mobile phone that is connected to it in communication. The destination information may be input through an online map service of the electronic device, or may be input through an online map service of an electronic device such as a smart watch or a mobile phone that is connected to the electronic device in communication (specifically, it may be a Bluetooth communication connection). There is no limit to the input method of the destination information, and it may be text input or voice input. Among them, the sensor may include a sensor device of GPS and a 9-axis IMU (3-axis magnetometer, 3-axis accelerometer, 3-axis gyroscope), GPS may be used to obtain current location information, and a 9-axis IMU may be used to obtain the current moving direction and the wearing angle of the electronic device. The target object may input the target location based on the mobile phone or directly through the electronic device, and the sensor in the electronic device may obtain the current location and generate a target route. During the movement, the sensor may obtain the measured magnetic field information in real time, and use a processor to process the measured magnetic field information for navigation. Specifically, you can first plan a route in the geodetic coordinate system to obtain the coordinate representation of key points on the path, and then convert the key point coordinates on the planned path and the real-time geographic location information (based on the longitude and latitude data obtained by GPS) to the navigation coordinate system through affine projection transformation. Combine the user's real-time geographic location information with the calculated electronic device's posture information to determine whether the planned route is within the field of view, that is, whether the current moving direction is consistent with the target moving direction. If the user travels along the planned route and the planned route is within the field of view of the head, the navigation path, guide arrows, and distance traveled / remaining information will be displayed in front of the user through AR glasses.

[0076] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the AR navigation method and device based on digital twins in the embodiments of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned AR navigation method based on digital twins. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0077] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: generate a navigation path on the AR device based on a predetermined target route; obtain posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes the orientation information of the AR device; based on the magnetic field correction model, process the measured magnetic field information to obtain the target magnetic field information; based on the target magnetic field information, correct the orientation information of the AR device to obtain the corrected posture information; based on the corrected posture information, determine whether the navigation path is located in the display screen of the AR device, wherein the corrected posture information is used to constrain the display content of the AR device; when the navigation path is outside the display screen of the AR device, determine the direction indication mark to be displayed in the AR device.

[0078] Optionally, the processor may also execute program code of the following steps: before generating a navigation path on the AR device based on a predetermined target route, it also includes: obtaining an initial position; receiving a target position input based on a target account; and determining a target route based on the initial position and the target position.

[0079] Optionally, the processor may also execute program code of the following steps: generating a navigation path on the AR device based on a predetermined target route, including: establishing a navigation coordinate system based on the target route; obtaining a first coordinate of the current position in the geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system constructed by longitude, latitude and altitude; converting the first coordinate into a second coordinate in the geocentric earth-fixed coordinate system, wherein the geocentric earth-fixed coordinate system is a coordinate system constructed by the earth's center of mass and the earth's axis; converting the second coordinate into a third coordinate in the navigation coordinate system; generating a navigation path based on the third coordinate and the coordinates of the target position in the target route in the navigation coordinate system.

[0080] Optionally, the processor may also execute the program code of the following steps: before processing the measured magnetic field information based on the magnetic field correction model to obtain the target magnetic field information, it also includes: obtaining multiple sets of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple sets of sample magnetic field information, wherein the sample magnetic field information in the multiple sets of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple sets of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple sets of sample magnetic field information; determining the magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

[0081] Optionally, the processor may also execute the program code of the following steps: based on the magnetic field correction model, processing the measured magnetic field information to obtain target magnetic field information, including: inputting the measured magnetic field information into the magnetic field correction model, and obtaining the target magnetic field information by correcting the magnetic interference parameters in the magnetic field correction model.

[0082] Optionally, the processor may also execute the following program code: based on the target magnetic field information, correct the orientation information of the AR device to obtain corrected posture information, including: obtaining acceleration information and angular velocity information of the AR device; based on the acceleration information, angular velocity information and target magnetic field information, determining the corrected posture information.

[0083] Optionally, the processor may also execute program code of the following steps: when the navigation path is outside the display content of the AR device, determining a direction indication mark to be displayed in the AR device, and also including: determining a deviation angle based on the navigation path and the display content of the AR device; and generating a direction indication mark to be displayed based on the deviation angle.

[0084] Optionally, the processor may also execute program code for the following steps: determining whether the navigation path is within the display range of the AR device, and also including: determining whether the navigation path is outside the display content of the AR device, and also including: when the navigation path is outside the display content of the AR device, determining the remaining distance of the route based on the current position of the AR device and the target route; generating a virtual navigation arrow based on the navigation path and corrected posture information; and displaying the remaining distance of the route and the virtual navigation arrow on the AR device for navigation.

[0085] By adopting an embodiment of the present invention, an AR navigation method based on digital twin is provided, which generates a navigation path on an AR device based on a predetermined target route; obtains posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes the orientation information of the AR device; processes the measured magnetic field information based on a magnetic field correction model to obtain the target magnetic field information; corrects the orientation information of the AR device based on the target magnetic field information to obtain the corrected posture information; determines whether the navigation path is located in the display content of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device; when the navigation path is outside the display content of the AR device, determines the direction indication mark to be displayed in the AR device, thereby achieving the purpose of eliminating other magnetic field interference, thereby realizing the technical effect of improving the accuracy of navigation, and further solving the technical problem of insufficient accuracy of navigation based on magnetic field information due to the existence of magnetic field interference.

[0086] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0087] An embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the digital twin-based AR navigation method provided in the above embodiment.

[0088] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0089] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: generating a navigation path on the AR device based on a predetermined target route; obtaining posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes orientation information of the AR device; processing the measured magnetic field information based on a magnetic field correction model to obtain target magnetic field information; correcting the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information; judging whether the navigation path is located in a display screen of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device; and determining a direction indication mark to be displayed in the AR device when the navigation path is outside the display screen of the AR device.

[0090] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before generating a navigation path on the AR device based on a predetermined target route, it also includes: obtaining an initial position; receiving a target position based on a target account input; and determining the target route based on the initial position and the target position.

[0091] Optionally, based on a predetermined target route, a navigation path is generated on an AR device, including: establishing a navigation coordinate system based on the target route; obtaining a first coordinate of the current position in a geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system constructed by longitude, latitude and altitude; converting the first coordinate into a second coordinate in a geocentric, earth-fixed coordinate system, wherein the geocentric, earth-fixed coordinate system is a coordinate system constructed by the earth's center of mass and the earth's axis; converting the second coordinate into a third coordinate in the navigation coordinate system; and generating a navigation path based on the third coordinate and the coordinates of the target position in the target route in the navigation coordinate system.

[0092] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: before processing the measured magnetic field information based on the magnetic field correction model to obtain the target magnetic field information, it also includes: obtaining multiple sets of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple sets of sample magnetic field information, wherein the sample magnetic field information in the multiple sets of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple sets of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple sets of sample magnetic field information; determining the magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

[0093] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the magnetic field correction model, processing the measured magnetic field information to obtain target magnetic field information, including: inputting the measured magnetic field information into the magnetic field correction model, and obtaining the target magnetic field information after correcting the magnetic interference parameters in the magnetic field correction model.

[0094] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: based on the target magnetic field information, correcting the orientation information of the AR device to obtain corrected posture information, including: obtaining acceleration information and angular velocity information of the AR device; based on the acceleration information, angular velocity information and target magnetic field information, determining the corrected posture information.

[0095] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: when the navigation path is outside the display content of the AR device, determining a direction indication mark to be displayed in the AR device, and also including: determining a deviation angle based on the navigation path and the display content of the AR device; and generating a direction indication mark to be displayed based on the deviation angle.

[0096] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: determining whether the navigation path is located outside the display content of the AR device, and also including: when the navigation path is outside the display content of the AR device, determining the remaining distance of the route based on the current position of the AR device and the target route; generating a virtual navigation arrow based on the navigation path and corrected posture information; and displaying the remaining distance of the route and the virtual navigation arrow on the AR device for navigation.

[0097] An embodiment of the present invention also provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can achieve: generating a navigation path on an AR device based on a predetermined target route; obtaining posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes orientation information of the AR device; processing the measured magnetic field information based on a magnetic field correction model to obtain target magnetic field information; correcting the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information; judging whether the navigation path is located in the display content of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain the display content of the AR device; and determining a direction indication mark to be displayed in the AR device when the navigation path is outside the display content of the AR device.

[0098] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0099] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0101] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0102] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0103] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0104] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. An AR navigation method based on digital twins, characterized in that: include: Generate a navigation path on the AR device based on the predetermined target route; Acquire posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes orientation information of the AR device; Based on the magnetic field correction model, the measured magnetic field information is processed to obtain target magnetic field information; Based on the target magnetic field information, correct the orientation information of the AR device to obtain corrected posture information; Based on the corrected posture information, determining whether the navigation path is located in a display screen of the AR device, wherein the corrected posture information is used to constrain display content of the AR device; When the navigation path is outside a display screen of the AR device, determining a direction indication mark to be displayed in the AR device; Wherein, before the measured magnetic field information is processed based on the magnetic field correction model to obtain the target magnetic field information, it also includes: acquiring multiple groups of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple groups of sample magnetic field information, wherein the sample magnetic field information in the multiple groups of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple groups of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple groups of sample magnetic field information; determining magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

2. The method according to claim 1, characterized in that Before generating a navigation path on the AR device based on the predetermined target route, the method further includes: Get the initial position; receiving a target location based on a target account input; The target route is determined according to the initial position and the target position.

3. The method according to claim 2, characterized in that The generating of a navigation path on the AR device based on a predetermined target route includes: Based on the target route, establishing a navigation coordinate system; Obtaining a first coordinate of the current position in a geodetic coordinate system, wherein the geodetic coordinate system is a coordinate system constructed by longitude, latitude, and altitude; Converting the first coordinate into a second coordinate in an Earth-centered Earth-fixed coordinate system, wherein the Earth-centered Earth-fixed coordinate system is a coordinate system constructed by the Earth's center of mass and the Earth's axis; converting the second coordinate into a third coordinate in the navigation coordinate system; The navigation path is generated based on the third coordinate and the coordinates of the target position in the target route in the navigation coordinate system.

4. The method according to claim 1, characterized in that The step of processing the measured magnetic field information based on the magnetic field correction model to obtain target magnetic field information includes: The measured magnetic field information is input into the magnetic field correction model, and the target magnetic field information is obtained by correcting the magnetic interference parameters in the magnetic field correction model.

5. The method according to claim 1, characterized in that The correcting the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information includes: Acquire acceleration information and angular velocity information of the AR device; The corrected posture information is determined based on the acceleration information, the angular velocity information and the target magnetic field information.

6. The method according to claim 1, characterized in that When the navigation path is outside a display screen of the AR device, determining a direction indication mark to be displayed in the AR device further includes: Determining a deviation angle based on the navigation path and the orientation information of the AR device; Based on the deviation angle, the direction indication mark to be displayed is generated.

7. The method according to claim 1, characterized in that The determining whether the navigation path is located in the display screen of the AR device further includes: When the navigation path is in a display screen of the AR device, determining a remaining distance of the route based on a current position of the AR device and the target route; generating a virtual navigation arrow based on the navigation path and the corrected posture information; The remaining distance of the route and the virtual navigation arrow are displayed on the AR device for navigation.

8. An AR navigation device based on digital twins, characterized in that: include: A generation module, for generating a navigation path on an AR device based on a predetermined target route; An acquisition module, used to acquire posture information and measured magnetic field information of the current position of the AR device, wherein the posture information includes orientation information of the AR device; A processing module, used for processing the measured magnetic field information based on a magnetic field correction model to obtain target magnetic field information; A correction module, used to correct the orientation information of the AR device based on the target magnetic field information to obtain corrected posture information; A judgment module, configured to judge whether the navigation path is located in a display screen of the AR device based on the corrected posture information, wherein the corrected posture information is used to constrain display content of the AR device; a determining module, configured to determine a direction indication mark to be displayed in the AR device when the navigation path is outside a display screen of the AR device; Wherein, before the processing module is used to process the measured magnetic field information based on the magnetic field correction model to obtain the target magnetic field information, it also includes: obtaining multiple groups of sample magnetic field information and standard magnetic field direction angles corresponding to the multiple groups of sample magnetic field information, wherein the sample magnetic field information in the multiple groups of sample magnetic field information includes magnetic field information of multiple positions, and the standard magnetic field direction angle is the angle of magnetic field vectors corresponding to the multiple positions in the corresponding sample magnetic field information; based on the multiple groups of sample magnetic field information, calculating the actual magnetic field direction angles corresponding to the multiple groups of sample magnetic field information; determining magnetic interference parameters based on the standard magnetic field direction angle and the actual magnetic field direction angle; and determining the magnetic field correction model based on the magnetic interference parameters.

9. An electronic device, characterized in that: include: Sensors, controllers and memory, wherein: The sensor is used to obtain the posture information of the current position of the AR device and measure the magnetic field information, and transmit it to the processor; The memory stores a computer program; The processor is used to execute a computer program stored in the memory, and when the computer program is run, the processor executes the AR navigation method based on digital twins as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • MEMS inertial navigation-based indoor pedestrian position calibration method

    CN109579836A

  • Navigation method and equipment based on intelligent glasses and medium

    CN114413879A