Method, device, equipment, medium and product for obtaining posture information

By constructing reprojection constraints and optimizing pose data, the problem of insufficient accuracy of cheap sensors is solved, the accuracy and frequency of high-precision map updates are improved, and effective updates of high-precision maps are achieved.

CN114840703BActive Publication Date: 2024-10-01AUTONAVI SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210334642.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-30
Publication Date
2024-10-01
Estimated Expiration
2042-03-30

AI Technical Summary

Technical Problem

In the existing high-precision map updates, cheap visual inertial navigation equipment and sensors are not accurate enough to meet high-precision requirements, and high-precision sensors are expensive and cannot be deployed on a large scale to meet high-frequency update requirements.

Method used

By constructing reprojection constraints, optimizing pose data, considering the impact of the camera's rolling shutter exposure delay and pose speed on reprojection, improving the reprojection error calculation accuracy, and using low-cost sensors to collect data for pose calculation.

Benefits of technology

It improves the optimization accuracy of pose data, provides a good foundation for high-precision map updates, and realizes large-scale and high-frequency updates of high-precision maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114840703B_ABST
    Figure CN114840703B_ABST
Patent Text Reader

Abstract

The disclosed embodiment discloses a method, device, equipment, medium and product for obtaining posture information, which includes: obtaining a real-scene image and three-dimensional coordinates of feature points on the real-scene image; using the camera speed of the real-scene image as a variable, calculating the motion compensation amount based on the rolling exposure delay and the angular velocity of the real-scene image; using the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, and obtaining the projection pixel point coordinates of the feature point projected onto the real-scene image; calculating the difference between the projection pixel point coordinates on the real-scene image and the real pixel point coordinates on the real-scene image, and obtaining the reprojection error of the feature point; establishing a reprojection constraint based on the reprojection error of the feature point, optimizing the initial posture data of the n frames of real-scene images involved in the optimization, and obtaining the optimized posture information of the real-scene image. This technical solution can obtain high-precision posture data when using data collected by low-cost sensors for posture calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of high-precision map technology, and specifically to a method, device, equipment, medium and product for acquiring posture information. Background Art

[0002] With the development of science and technology, advanced driver assistance and autonomous driving have become hot topics in technology research because they can help drivers drive safely. At present, one of the technical implementation paths of advanced driver assistance and autonomous driving requires the reliance on "high-precision maps". Compared with ordinary maps, high-precision maps can express the real world in a more refined and accurate way. The large-scale, high-frequency, and high-precision update of high-precision maps is the most critical issue in the field of high-precision maps, which determines the functional safety of map use during driving.

[0003] In the field of high-precision map making, at present, the map data is generally collected by a collection vehicle equipped with high-precision combined inertial navigation and laser radar sensors to produce high-precision maps; however, due to the high cost of these sensors, they cannot be deployed on a large scale and cannot meet the high-frequency update requirements. Therefore, there is a low-cost data collection solution, which can be configured on crowdsourcing vehicles with collection equipment that integrates cheap visual inertial navigation equipment, visual sensors (such as cameras) and positioning modules and other sensor modules for data collection, and then complete the update of high-precision maps based on the collected data. Crowdsourcing vehicles are widely distributed and can collect data during daily travel. The collected data is widely distributed and fast, which can meet the large-scale and high-frequency updates of high-precision maps. However, due to the limited accuracy of these cheap sensors, the data collected by such sensors is not accurate enough and cannot meet the high-precision requirements of high-precision maps. Summary of the invention

[0004] The embodiments of the present disclosure provide a method, device, equipment, medium and product for obtaining posture information.

[0005] In a first aspect, a method for acquiring posture information is provided in an embodiment of the present disclosure.

[0006] Specifically, the method for obtaining posture information includes:

[0007] Acquire a real scene image captured by a camera and three-dimensional coordinates of feature points on the real scene image;

[0008] Taking the camera speed corresponding to the real scene image as a variable, calculating the motion compensation amount based on the rolling shutter exposure delay of the camera and the angular velocity corresponding to the real scene image;

[0009] Using the motion compensation amount, compensating for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, to obtain the projection pixel point coordinates of the feature point projected onto the real scene image;

[0010] Calculating the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image to obtain the reprojection error of the feature point;

[0011] Reprojection constraints are established according to the reprojection errors of the feature points, and initial pose data of n frames of real-scene images participating in the optimization are optimized to obtain optimized pose information of the real-scene images, where n is an integer greater than 1.

[0012] In a possible implementation, the step of taking the camera speed as a variable and calculating the motion compensation amount based on the rolling shutter exposure delay and angular velocity of the camera includes:

[0013] Calculate the product of the camera speed and the rolling shutter exposure delay to obtain a translation compensation amount;

[0014] Taking e as the base and the product of the angular velocity and the rolling shutter exposure delay as the exponent, the rotation compensation amount is calculated;

[0015] Based on the translation compensation amount and the rotation compensation amount, a motion compensation amount is constructed.

[0016] In a possible implementation, using the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates to obtain the projection pixel point coordinates of the feature point projected onto the real scene image includes:

[0017] Compensating a coordinate transformation matrix based on the motion compensation amount to obtain a compensation transformation matrix, wherein the coordinate transformation matrix includes a transformation matrix from a world coordinate system to a camera coordinate system;

[0018] The compensation transformation matrix and the coordinate transformation function are used to transform the three-dimensional coordinates of the feature points to obtain the coordinates of the projected pixel points.

[0019] In a possible implementation, the establishing of the reprojection constraint according to the reprojection error of the feature point, optimizing the pose data of the n frames of real scene images involved in the optimization, and obtaining the pose information of the real scene images includes:

[0020] Calculate the sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images and the sum of the random walk errors of the inertial navigation deviation rate;

[0021] Accumulating the sum of the reprojection errors of the feature points in the n frames of real scene images, the sum of the pre-integration errors, and the sum of the random walk errors to obtain a total error;

[0022] The camera position, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image are calculated when the sum of the errors is minimized.

[0023] In a possible implementation, the step of obtaining the three-dimensional coordinates of the feature points on the real scene image includes:

[0024] Obtaining a three-dimensional vector map including the geographical location reflected by the real scene image;

[0025] Establishing a matching relationship between vector map elements in the three-dimensional vector map and image elements in the real scene image;

[0026] Based on the matching relationship, the three-dimensional coordinates of the feature points on the real scene image in the three-dimensional vector map are obtained.

[0027] In a second aspect, a device for acquiring posture information is provided in an embodiment of the present disclosure.

[0028] Specifically, the posture information acquisition device includes:

[0029] An acquisition module is configured to acquire a real scene image captured by a camera and three-dimensional coordinates of feature points on the real scene image;

[0030] A compensation module is configured to calculate a motion compensation amount based on a camera speed corresponding to the real scene image and an angular velocity corresponding to the real scene image, taking the camera speed corresponding to the real scene image as a variable;

[0031] A projection module is configured to use the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, so as to obtain the projection pixel point coordinates of the feature point projected onto the real scene image;

[0032] A calculation module is configured to calculate the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image to obtain the reprojection error of the feature point;

[0033] The optimization module is configured to establish a reprojection constraint according to the reprojection error of the feature point, optimize the initial pose data of n frames of real-scene images participating in the optimization, and obtain the optimized pose information of the real-scene images, where n is an integer greater than 1.

[0034] In a possible implementation, the compensation module may be configured as follows:

[0035] Calculate the product of the camera speed and the rolling shutter exposure delay to obtain a translation compensation amount;

[0036] Taking e as the base and the product of the angular velocity and the rolling shutter exposure delay as the exponent, the rotation compensation amount is calculated;

[0037] Based on the translation compensation amount and the rotation compensation amount, a motion compensation amount is constructed.

[0038] In a possible implementation, the projection module may be configured as follows:

[0039] Compensating a coordinate transformation matrix based on the motion compensation amount to obtain a compensation transformation matrix, wherein the coordinate transformation matrix includes a transformation matrix from a world coordinate system to a camera coordinate system;

[0040] The compensation transformation matrix and the coordinate transformation function are used to transform the three-dimensional coordinates of the feature points to obtain the coordinates of the projected pixel points.

[0041] In a possible implementation, the optimization module may be configured as follows:

[0042] Calculate the sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images and the sum of the random walk errors of the inertial navigation deviation rate;

[0043] Accumulating the sum of the reprojection errors of the feature points in the n frames of real scene images, the sum of the pre-integration errors, and the sum of the random walk errors to obtain a total error;

[0044] The camera position, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image are calculated when the sum of the errors is minimized.

[0045] In a possible implementation, the acquisition module is configured to:

[0046] Obtaining a three-dimensional vector map including the geographical location reflected by the real scene image;

[0047] Establishing a matching relationship between vector map elements in the three-dimensional vector map and image elements in the real scene image;

[0048] Based on the matching relationship, the three-dimensional coordinates of the feature points on the real scene image in the three-dimensional vector map are obtained.

[0049] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions that support the above-mentioned device to execute the above-mentioned method, and the processor is configured to execute the computer instructions stored in the memory.

[0050] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the method steps described in any of the above aspects.

[0051] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program / instructions, wherein the computer program / instructions, when executed by a processor, implement the method steps described in any of the above aspects.

[0052] In a sixth aspect, an embodiment of the present disclosure provides a navigation method, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on a high-precision map, and navigation guidance is performed based on the navigation route, and the high-precision map is achieved by reconstructing the map based on the posture data obtained in any one of the above methods.

[0053] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0054] The above technical solution can construct reprojection constraints to optimize the initial pose data when using data collected by low-cost sensors for pose calculation. When constructing the reprojection constraints, not only the camera's rolling shutter exposure delay is considered, but also the impact of the camera's pose and speed on the reprojection is considered. This can improve the calculation accuracy of the reprojection error, and then improve the optimization accuracy of the pose data, providing a good foundation for updating high-precision map elements, so as to update high-precision high-precision maps.

[0055] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] Other features, purposes and advantages of the embodiments of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0057] Figure 1 A flowchart of a method for acquiring posture information according to an embodiment of the present disclosure is shown.

[0058] Figure 2 A factor graph of pose optimization according to an embodiment of the present disclosure is shown.

[0059] Figure 3 A structural block diagram of a posture information acquisition device according to an embodiment of the present disclosure is shown.

[0060] Figure 4 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0061] Figure 5 It is a structural diagram of a computer system suitable for implementing the method according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0062] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0063] In the embodiments of the present disclosure, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof existing or being added.

[0064] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0065] As mentioned above, with the development of science and technology, advanced driver assistance and autonomous driving have become hot topics in technical research because they can help drivers drive safely. At present, one of the technical implementation paths of advanced driver assistance and autonomous driving requires reliance on "high-precision maps". Compared with ordinary maps, high-precision maps will express the real world in a more refined and accurate way. The large-scale, high-frequency, and high-precision update of high-precision maps is the most critical issue in the field of high-precision maps, which determines the functional safety of map use during driving. In the field of high-precision map making, currently, map data is collected by collection vehicles equipped with high-precision combined inertial navigation and lidar sensors to produce high-precision maps; however, due to the high cost of these sensors, they cannot be deployed on a large scale and cannot meet the needs of high-frequency updates. Therefore, a low-cost data collection solution is currently provided. A collection device that integrates cheap visual inertial navigation equipment, visual sensors (such as cameras) and positioning modules and other sensor modules can be configured on crowdsourcing vehicles to collect data, and then the high-precision map is updated based on the collected data. Crowdsourcing vehicles are widely distributed and can collect data during daily travel. The collected data is widely distributed and fast, which can meet the large-scale and high-frequency updates of high-precision maps. However, due to the limited accuracy of these cheap sensors, the data collected by such sensors is not accurate enough to meet the high-precision requirements of high-precision maps.

[0066] In order to solve the above problems, the present invention provides a posture information acquisition solution. When using data collected by low-cost sensors for posture calculation, a reprojection constraint is constructed to optimize the initial posture data. When constructing the reprojection constraint, while considering the camera's rolling shutter exposure delay, the impact of the camera's posture and speed on the reprojection is also considered, which can improve the calculation accuracy of the reprojection error, and then improve the optimization accuracy of the posture data, providing a good foundation for updating high-precision map elements, so as to update high-precision high-precision maps.

[0067] The technical solution provided by the present disclosure can calculate the pose information of each real-scene image (for continuous video frames, each video frame) with high precision when obtaining the real-scene image of the road traffic area. The so-called pose information of the real-scene image is actually the position and angle information of the camera that collects the real-scene image at the time of acquisition. After obtaining the high-precision pose information, the pose data of the real-scene image can be used to update the map of the high-precision map. Of course, the above-mentioned high-precision pose information can be used for positioning calculations in the positioning scenarios of autonomous driving or assisted driving, or the indoor navigation positioning scenarios of robots.

[0068] Figure 1 A flowchart of a method for acquiring posture information according to an embodiment of the present disclosure is shown. Figure 1 As shown, the map data updating method includes the following steps S101-S105:

[0069] In step S101, a real scene image captured by a camera and three-dimensional coordinates of feature points on the real scene image are obtained;

[0070] In step S102, the camera speed corresponding to the real scene image is used as a variable, and the motion compensation amount is calculated based on the rolling shutter exposure delay of the camera and the angular velocity corresponding to the real scene image;

[0071] In step S103, the motion compensation amount is used to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, so as to obtain the projection pixel point coordinates of the feature point projected onto the real scene image;

[0072] In step S104, the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image is calculated to obtain the reprojection error of the feature point;

[0073] In step S105, a reprojection constraint is established according to the reprojection error of the feature point, and the initial pose data of the n frames of real scene images participating in the optimization are optimized to obtain the optimized pose information of the real scene images, where n is an integer greater than 1.

[0074] In a possible implementation, the posture information acquisition method may be applicable to a computer, a computing device, an electronic device, a server, a service cluster, etc. that can execute posture information acquisition.

[0075] In a possible implementation, low-cost visual inertial navigation sensors, visual sensors, and positioning sensors can be integrated into the acquisition device of the present disclosure. The visual inertial navigation sensor can be an IMU (Inertial Measurement Unit) for measuring the angular velocity and acceleration of an object; the visual sensor can be a camera for capturing real-life images of road traffic areas. The exposure method of the camera in the present disclosure is rolling exposure, which refers to sequential exposure line by line; the positioning module can be a GPS (Global Positioning System) for locating the current position. Based on the data collected by the above sensors, the initial posture data of each real-life image can be calculated by a VIO (Visual Inertial Odometry) algorithm.

[0076] In a possible implementation, due to the limited accuracy of the above-mentioned low-cost sensors, the accuracy of the pose data calculated by the data collected by such sensors is insufficient and cannot meet the high-precision requirements, so it is necessary to optimize the initial pose data, and the current pose optimization includes pose optimization based on reprojection constraints. The difference between the actual coordinates of the pixel points on the real scene image corresponding to the real three-dimensional space point and the reprojection coordinates (that is, the projected pixel coordinates of the real three-dimensional space point projected onto the real scene image by the camera's internal reference model and the camera pose) is not completely consistent with the actual coordinates due to problems such as the camera pose and the accuracy of the three-dimensional space point coordinates. That is, this difference cannot be exactly zero. At this time, it is necessary to minimize the sum of these differences as a reprojection constraint to obtain optimized camera pose parameters and coordinates of the three-dimensional space point, and obtain optimized pose data.

[0077] In a possible implementation, when performing reprojection constraints, the real-scene image captured by the camera and the three-dimensional coordinates of the feature points on the real-scene image can be first obtained. The feature points refer to those that can be used to identify some target objects on the real-scene image, such as road signs. Generally, points where the grayscale value on the image changes dramatically or points with larger curvature on the edge of the image (such as the intersection of two edges) are regarded as feature points of the image. The feature points include key points and descriptors. The key points express the three-dimensional position coordinates of the feature points, while the descriptors describe the visual characteristics of the feature points, mostly in vector form. It should be noted here that when performing VIO calculations, the three-dimensional coordinates of the feature points can be directly calculated.

[0078] In a possible implementation, the present disclosure not only considers the rolling shutter exposure delay of the camera, but also considers the influence of the camera posture and speed on the reprojection when constructing the reprojection constraint, and compensates for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates. For example, the calculation function of the motion compensation amount can be M compensate (v,w m , t), where v in the function is the camera speed, which belongs to the variable, w m is the angular velocity corresponding to the real scene image where the feature point is located, which is measured by the visual inertial sensor when the camera captures the real scene image, and t is the rolling shutter exposure delay of the camera.

[0079] In a possible implementation, the motion compensation amount is used to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates. After obtaining the projection pixel point coordinates of the feature point projected onto the real scene image, the difference between the projection pixel point coordinates on the real scene image and the corresponding real pixel point coordinates on the real scene image can be calculated to obtain the reprojection error of the feature point; if there are n frames of real scene images involved in the optimization, the reprojection errors of all feature points in these n frames can be calculated, and reprojection constraints can be constructed to minimize the sum of these differences to obtain the optimized pose information of the real scene image; it should be noted here that the method of using reprojection constraints to optimize pose information is clearly understood by those skilled in the art and will not be repeated here.

[0080] When constructing the reprojection constraints, this embodiment not only considers the camera's rolling shutter exposure delay, but also considers the impact of the camera's posture and speed on reprojection. This can improve the calculation accuracy of the reprojection error, thereby improving the optimization accuracy of the posture data, and providing high-precision camera posture information for positioning during high-precision map updates, positioning during autonomous or assisted driving, or positioning in indoor navigation and positioning scenarios of robots, thereby improving positioning accuracy.

[0081] In a possible implementation, step S102 in the above-mentioned method for acquiring posture information, i.e., taking the camera speed as a variable and calculating the motion compensation amount based on the rolling shutter exposure delay and angular velocity of the camera, includes:

[0082] Calculate the product of the camera speed and the rolling shutter exposure delay to obtain a translation compensation amount;

[0083] Taking e as the base and the product of the angular velocity and the rolling shutter exposure delay as the exponent, the rotation compensation amount is calculated;

[0084] Based on the translation compensation amount and the rotation compensation amount, a motion compensation amount is constructed.

[0085] In this embodiment, the motion compensation amount M can be calculated using the following formula: compensate (v,w m , t):

[0086]

[0087] Where Rptation is the rotation compensation, Rotation = Exp(w m *t), w m is the angular velocity, t is the rolling shutter exposure delay, translation is the translation compensation, translation = v*t, v is the camera speed, the camera speed v is a variable, the angular velocity w m is the angular velocity measured by the visual inertial navigation sensor when the camera captures the real scene image where the feature point is located, and the rolling shutter exposure delay t is a preset parameter of the camera.

[0088] In a possible implementation, step S103 in the above-mentioned method for acquiring posture information, i.e., using the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, to obtain the projection pixel point coordinates of the feature point projected onto the real scene image, includes the following steps:

[0089] Compensating a coordinate transformation matrix based on the motion compensation amount to obtain a compensation transformation matrix, wherein the coordinate transformation matrix includes a transformation matrix from a world coordinate system to a camera coordinate system;

[0090] The compensation transformation matrix and the coordinate transformation function are used to transform the three-dimensional coordinates of the feature points to obtain the coordinates of the projected pixel points.

[0091] In this embodiment, the world coordinate system (WCS) is a convention for defining the coordinates [0, 0, 0] in the 3D virtual space and three mutually orthogonal unit axes. It is the prime meridian of the 3D scene and a reference for measuring any other point or any other arbitrary coordinate system. The origin of the world coordinate system is fixed; the three-dimensional coordinates of the feature points obtained in the present disclosure are the three-dimensional coordinates of the feature points in the world coordinate system. The camera coordinate system is a three-dimensional coordinate system constructed with the camera as the origin of the coordinate system.

[0092] In this embodiment, the coordinate transformation matrix from the world coordinate system to the camera coordinate system is constructed through the variable camera pose x to be solved, which can be denoted as M(x), and the coordinate transformation function from the camera coordinate system to the pixel coordinate is proj(); it should be noted here that the specific formulas of M(x) and proj() are clearly understood by those skilled in the art and will not be elaborated here.

[0093] In this embodiment, the compensation transformation matrix may be the product of the motion compensation amount and the coordinate transformation matrix, that is, M compensate (v m , w m , t)M(x); Assuming P is the three-dimensional coordinate of the feature point, it is necessary to first use the compensation transformation matrix to transform the three-dimensional coordinate of the feature point from the world coordinate system to the camera coordinate system to obtain M compensate (v m , w m , t)M(x)P; then use the coordinate transformation function proj() to transform the three-dimensional coordinates of the feature point in the camera coordinate system into the projection pixel point coordinates, and the obtained projection pixel point coordinates are proj(M compensate (v m , w m , t)M(x)P).

[0094] In this way, the difference between the projected pixel coordinates on the real scene image and the corresponding real pixel coordinates p on the real scene image is calculated to obtain the reprojection error error of the feature point reprojection :

[0095] error reprojection =proj(M compensate (v m , w m , t)M(x)P)-p.

[0096] In a possible implementation, step S105 in the above-mentioned method for acquiring posture information, i.e., establishing a reprojection constraint according to the reprojection error of the feature point, optimizing the posture data of the n frames of real scene images participating in the optimization, and obtaining the posture information of the real scene image includes the following steps:

[0097] Calculate the sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images and the sum of the random walk errors of the inertial navigation deviation rate bias;

[0098] Accumulating the sum of the reprojection errors of the feature points in the n frames of real scene images, the sum of the pre-integration errors, and the sum of the random walk errors to obtain a total error;

[0099] The camera position, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image are calculated when the sum of the errors is minimized.

[0100] In this embodiment, Figure 2 A factor graph of pose optimization according to an embodiment of the present disclosure is shown, wherein 201 is a camera pose variable {x1, x2, ..., x n}, 202 is the camera speed variable {v1, v2, ..., v n}, 203 is the inertial navigation measurement value bias variable (bias) {b1, b2, ..., b n}, 204 is the reprojection constraint, 205 is the inertial navigation pre-integration constraint, and 206 is the inertial navigation bias random walk constraint; therefore, the pose optimization can be described by the following equation:

[0101]

[0102] {x1, x2, ..., x n , v1, v2, ..., v n , b1, b2, ..., b n}=argmin error sum ;

[0103] Where n is the number of real-scene images involved in the optimization, m is the total number of feature points in n frames of real-scene images, and each real-scene image corresponds to a camera pose, a camera speed, and a bias vector; then the camera pose variables corresponding to n frames of real-scene images are {x1, x2, …, x n}, the camera velocity variables are {v1, v2, …, v n}, the inertial navigation measurement value deviation rate variable is {b1, b2, …, b n}. error reprojection is the reprojection error of each feature point, which can be calculated according to the scheme provided in the above implementation. preintegration is the pre-integrated error between adjacent real scene images; error rw is the random walk error of the inertial navigation measurement value deviation between adjacent images; the inertial navigation measurement value deviation error preintegration and the inertial navigation measurement value deviation error rw The calculation process is well known to those skilled in the art and is not limited here. The sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images can be calculated as The sum of the random walk errors of the inertial navigation measurement value deviations between n frames of real scene images is The sum of the reprojection errors of m feature points in n frames of real scene images is The sum of these three error values ​​can be obtained by adding up the error sum. sum .

[0104] In this embodiment, when performing posture optimization, the error sum error sum Minimize and get error sum The variables to be minimized {x1, x2, ..., x n , v1, v2, ..., v n , b1, b2, ..., bn}, which can be solved by a commonly used nonlinear optimization algorithm; in this way, the camera pose, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image can be obtained to complete the pose optimization.

[0105] In a possible implementation, step S101 in the above-mentioned method for acquiring posture information, i.e., acquiring the three-dimensional coordinates of feature points on the real scene image, may include the following steps:

[0106] Obtaining a three-dimensional vector map including the geographical location reflected by the real scene image;

[0107] Establishing a matching relationship between vector map elements in the three-dimensional vector map and image elements in the real scene image;

[0108] Based on the matching relationship, the three-dimensional coordinates of the feature points on the real scene image in the three-dimensional vector map are obtained.

[0109] In this embodiment, the three-dimensional coordinates of each feature point in the real-life map may come from the three-dimensional coordinates of known feature points in the high-precision map.

[0110] In this embodiment, the three-dimensional vector map is a three-dimensional map that has been established in advance, for example, it may be a high-precision map currently being used by the user.

[0111] In this embodiment, when the camera captures a real-life image, the initial posture information of the real-life image can be obtained based on the positioning information measured by the positioning module during acquisition and the inertial navigation information measured by the visual inertial navigation sensor; the position of the real-life image can be determined based on the initial posture information, so that a portion of the three-dimensional vector map containing the geographical location reflected by the real-life image can be selected from the three-dimensional vector map gallery.

[0112] In this embodiment, the vector map elements and image elements can be lane lines and road signs. A matching relationship can be established between the road sign element "500m away from location A" in the three-dimensional vector map and the road sign element "500m away from location A" in the real-life image. Once it is determined that the road signs in the three-dimensional vector map and the real-life image are the same, a matching relationship between the two is established.

[0113] In this embodiment, based on the matching relationship, the matching point of a feature point on the real scene image in the three-dimensional vector map can be obtained, and the three-dimensional coordinates of the feature point on the real scene image are the three-dimensional coordinates of the corresponding matching point in the three-dimensional vector map.

[0114] The three-dimensional coordinates of the feature points obtained in this embodiment are more accurate, and a more accurate reprojection error can be calculated, thereby making the position and posture information used for positioning more accurate.

[0115] The following are embodiments of the apparatus of the present disclosure, which can be used to execute embodiments of the method of the present disclosure.

[0116] Figure 3 FIG. 1 shows a structural block diagram of a posture information acquisition device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 3 As shown, the map data updating device comprises:

[0117] An acquisition module 301 is configured to acquire a real scene image captured by a camera and three-dimensional coordinates of feature points on the real scene image;

[0118] The compensation module 302 is configured to calculate a motion compensation amount based on a camera speed corresponding to the real scene image and an angular velocity corresponding to the real scene image, taking the camera speed corresponding to the real scene image as a variable;

[0119] The projection module 303 is configured to use the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, so as to obtain the projection pixel point coordinates of the feature point projected onto the real scene image;

[0120] The calculation module 304 is configured to calculate the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image to obtain the reprojection error of the feature point;

[0121] The optimization module 305 is configured to establish a reprojection constraint according to the reprojection error of the feature point, optimize the initial pose data of the n frames of real scene images participating in the optimization, and obtain the optimized pose information of the real scene images, where n is an integer greater than 1.

[0122] In a possible implementation, the apparatus for acquiring posture information may be applicable to a computer, a computing device, an electronic device, a server, a service cluster, etc. that can execute posture information acquisition.

[0123] In a possible implementation, low-cost visual inertial navigation sensors, visual sensors, and positioning sensors can be integrated into the acquisition device of the present disclosure. The visual inertial navigation sensor can be an IMU (Inertial Measurement Unit) for measuring the angular velocity and acceleration of an object; the visual sensor can be a camera for capturing real-life images of road traffic areas. The exposure method of the camera in the present disclosure is rolling exposure, which refers to sequential exposure line by line; the positioning module can be a GPS (Global Positioning System) for locating the current position. Based on the data collected by the above sensors, the initial posture data of each real-life image can be calculated by a VIO (Visual Inertial Odometry) algorithm.

[0124] In a possible implementation, due to the limited accuracy of the above-mentioned low-cost sensors, the accuracy of the pose data calculated by the data collected by such sensors is insufficient and cannot meet the high-precision requirements, so it is necessary to optimize the initial pose data, and the current pose optimization includes pose optimization based on reprojection constraints. The difference between the actual coordinates of the pixel points on the real scene image corresponding to the real three-dimensional space point and the reprojection coordinates (that is, the projected pixel coordinates of the real three-dimensional space point projected onto the real scene image by the camera's internal reference model and the camera pose) is not completely consistent with the actual coordinates due to problems such as the camera pose and the accuracy of the three-dimensional space point coordinates. That is, this difference cannot be exactly zero. At this time, it is necessary to minimize the sum of these differences as a reprojection constraint to obtain optimized camera pose parameters and coordinates of the three-dimensional space point, and obtain optimized pose data.

[0125] In a possible implementation, when performing reprojection constraints, the real-scene image captured by the camera and the three-dimensional coordinates of the feature points on the real-scene image can be first obtained. The feature points refer to those that can be used to identify some target objects on the real-scene image, such as road signs. Generally, points where the grayscale value on the image changes dramatically or points with larger curvature on the edge of the image (such as the intersection of two edges) are regarded as feature points of the image. The feature points include key points and descriptors. The key points express the three-dimensional position coordinates of the feature points, while the descriptors describe the visual characteristics of the feature points, mostly in vector form. It should be noted here that when performing VIO calculations, the three-dimensional coordinates of the feature points can be directly calculated.

[0126] In a possible implementation, the present disclosure not only considers the rolling shutter exposure delay of the camera, but also considers the influence of the camera posture and speed on the reprojection when constructing the reprojection constraint, and compensates for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates. For example, the calculation function of the motion compensation amount can be M compensate (v,w m , t), where v in the function is the camera speed, which belongs to the variable, w m is the angular velocity corresponding to the real scene image where the feature point is located, which is measured by the visual inertial sensor when the camera captures the real scene image, and t is the rolling shutter exposure delay of the camera.

[0127] In a possible implementation, the motion compensation amount is used to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates. After obtaining the projection pixel point coordinates of the feature point projected onto the real scene image, the difference between the projection pixel point coordinates on the real scene image and the corresponding real pixel point coordinates on the real scene image can be calculated to obtain the reprojection error of the feature point; if there are n frames of real scene images involved in the optimization, the reprojection errors of all feature points in these n frames can be calculated, and reprojection constraints can be constructed to minimize the sum of these differences to obtain the optimized pose information of the real scene image; it should be noted here that the method of using reprojection constraints to optimize pose information is clearly understood by those skilled in the art and will not be repeated here.

[0128] When constructing the reprojection constraints, this embodiment not only considers the camera's rolling shutter exposure delay, but also considers the impact of the camera's posture and speed on reprojection. This can improve the calculation accuracy of the reprojection error, thereby improving the optimization accuracy of the posture data, and providing high-precision camera posture information for positioning during high-precision map updates, positioning during autonomous or assisted driving, or positioning in indoor navigation and positioning scenarios of robots, thereby improving positioning accuracy.

[0129] In a possible implementation, the compensation module 302 may be configured as follows:

[0130] Calculate the product of the camera speed and the rolling shutter exposure delay to obtain a translation compensation amount;

[0131] Taking e as the base and the product of the angular velocity and the rolling shutter exposure delay as the exponent, the rotation compensation amount is calculated;

[0132] Based on the translation compensation amount and the rotation compensation amount, a motion compensation amount is constructed.

[0133] In this embodiment, the motion compensation amount M can be calculated using the following formula: compensate (v,w m , t):

[0134]

[0135] Where, Rotation is the rotation compensation, Rotation = Exp(w m *t), w m is the angular velocity, t is the rolling shutter exposure delay, translation is the translation compensation, translation = v*t, v is the camera speed, the camera speed v is a variable, the angular velocity w m is the angular velocity measured by the visual inertial navigation sensor when the camera captures the real scene image where the feature point is located, and the rolling shutter exposure delay t is a preset parameter of the camera.

[0136] In a possible implementation, the projection module 303 may be configured as follows:

[0137] Compensating a coordinate transformation matrix based on the motion compensation amount to obtain a compensation transformation matrix, wherein the coordinate transformation matrix includes a transformation matrix from a world coordinate system to a camera coordinate system;

[0138] The compensation transformation matrix and the coordinate transformation function are used to transform the three-dimensional coordinates of the feature points to obtain the coordinates of the projected pixel points.

[0139] In this embodiment, the world coordinate system (WCS) is a convention for defining the coordinates [0, 0, 0] in the 3D virtual space and three mutually orthogonal unit axes. It is the prime meridian of the 3D scene and a reference for measuring any other point or any other arbitrary coordinate system. The origin of the world coordinate system is fixed; the three-dimensional coordinates of the feature points obtained in the present disclosure are the three-dimensional coordinates of the feature points in the world coordinate system. The camera coordinate system is a three-dimensional coordinate system constructed with the camera as the origin of the coordinate system.

[0140] In this embodiment, the coordinate transformation matrix from the world coordinate system to the camera coordinate system is constructed through the variable camera pose x to be solved, which can be denoted as M(x), and the coordinate transformation function from the camera coordinate system to the pixel coordinate is proj(); it should be noted here that the specific formulas of M(x) and proj() are clearly understood by those skilled in the art and will not be elaborated here.

[0141] In this embodiment, the compensation transformation matrix may be the product of the motion compensation amount and the coordinate transformation matrix, that is, M compensate (v m , w m , t)M(x); Assuming P is the three-dimensional coordinate of the feature point, it is necessary to first use the compensation transformation matrix to transform the three-dimensional coordinate of the feature point from the world coordinate system to the camera coordinate system to obtain Mcompensate (v m , w m , t)M(x)P; then use the coordinate transformation function proj() to transform the three-dimensional coordinates of the feature point in the camera coordinate system into the projection pixel point coordinates, and the obtained projection pixel point coordinates are proj(M compensate (v m , w m , t)M(x)P).

[0142] In this way, the difference between the projected pixel coordinates on the real scene image and the corresponding real pixel coordinates p on the real scene image is calculated to obtain the reprojection error error of the feature point reprojection :

[0143] error reprojection =proj(M compensate (v m , w m , t)M(x)P)-p.

[0144] In a possible implementation, the optimization module 305 may be configured as follows:

[0145] Calculate the sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images and the sum of the random walk errors of the inertial navigation deviation rate;

[0146] Accumulating the sum of the reprojection errors of the feature points in the n frames of real scene images, the sum of the pre-integration errors, and the sum of the random walk errors to obtain a total error;

[0147] The camera position, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image are calculated when the sum of the errors is minimized.

[0148] In this embodiment, Figure 2 A factor graph of pose optimization according to an embodiment of the present disclosure is shown, wherein 201 is a camera pose variable {x1, x2, ..., x n}, 202 is the camera speed variable {v1, v2, ..., v n}, 203 is the inertial navigation measurement value bias variable (bias) {b1, b2, ..., b n}, 204 is the reprojection constraint, 205 is the inertial navigation pre-integration constraint, and 206 is the inertial navigation bias random walk constraint; therefore, the pose optimization can be described by the following equation:

[0149]

[0150] {x1, x2, ..., x n , v1, v2, ..., vn , b1, b2, ..., b n} = argminerror sum

[0151] Among them, n is the number of real-scene images involved in the optimization, m is the total number of feature points in n frames of real-scene images, and each real-scene image corresponds to a camera pose, a camera speed, and a bias vector; then the camera pose variables corresponding to n frames of real-scene images are {x1, x2, …, x n}, the camera velocity variables are {v1, v2, …, v n}, the inertial navigation measurement value deviation rate variable is {b1, b2, …, b n}. error reprojection is the reprojection error of each feature point, which can be calculated according to the scheme provided in the above implementation. preintegration is the pre-integrated error between adjacent real scene images; error rw is the random walk error of the inertial navigation measurement value deviation between adjacent images; the inertial navigation measurement value deviation error preintegration and the inertial navigation measurement value deviation error rw The calculation process is well known to those skilled in the art and is not limited here. The sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images can be calculated as The sum of the random walk errors of the inertial navigation measurement value deviations between n frames of real scene images is The sum of the reprojection errors of m feature points in n frames of real scene images is The sum of these three error values ​​can be obtained by adding up the error sum. sum .

[0152] In this embodiment, when performing posture optimization, the error sum error sum Minimize and get error sum The variables to be minimized {x1, x2, ..., x n , v1, v2, ..., v n , b1, b2, ..., b n}, which can be solved by a commonly used nonlinear optimization algorithm; in this way, the camera pose, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image can be obtained to complete the pose optimization.

[0153] In a possible implementation, the acquisition module 301 is configured to:

[0154] Obtaining a three-dimensional vector map containing the geographical location reflected by the real scene image;

[0155] Establishing a matching relationship between vector map elements in the three-dimensional vector map and image elements in the real scene image;

[0156] Based on the matching relationship, the three-dimensional coordinates of the feature points on the real scene image in the three-dimensional vector map are obtained.

[0157] In this embodiment, the three-dimensional vector map is a three-dimensional map that has been established in advance, for example, it may be a high-precision map currently being used by the user.

[0158] In this embodiment, when the camera captures a real-life image, the initial posture information of the real-life image can be obtained based on the positioning information measured by the positioning module during acquisition and the inertial navigation information measured by the visual inertial navigation sensor; the position of the real-life image can be determined based on the initial posture information, so that a portion of the three-dimensional vector map containing the geographical location reflected by the real-life image can be selected from the three-dimensional vector map gallery.

[0159] In this embodiment, the vector map elements and image elements can be lane lines and road signs. A matching relationship can be established between the road sign element "500m away from location A" in the three-dimensional vector map and the road sign element "500m away from location A" in the real-life image. Once it is determined that the road signs in the three-dimensional vector map and the real-life image are the same, a matching relationship between the two is established.

[0160] In this embodiment, based on the matching relationship, the matching point of a feature point on the real scene image in the three-dimensional vector map can be obtained, and the three-dimensional coordinates of the feature point on the real scene image are the three-dimensional coordinates of the corresponding matching point in the three-dimensional vector map.

[0161] The three-dimensional coordinates of the feature points obtained in this embodiment are more accurate, and a more accurate reprojection error can be calculated, thereby making the position and posture information used for positioning more accurate.

[0162] The disclosed embodiment also discloses a navigation service, wherein the positioning of a carrier is determined based on the above-mentioned carrier positioning method, and a navigation guidance service of a corresponding scene is provided to the carrier based on the positioning of the carrier. The corresponding scene is a combination of one or more of AR navigation, elevated navigation, or main and auxiliary road navigation.

[0163] The disclosed embodiment also discloses a navigation method, wherein a navigation route calculated at least based on a starting point, an end point and road conditions is obtained based on a high-precision map, and navigation guidance is performed based on the navigation route. The high-precision map is achieved by reconstructing the map based on the posture data obtained in the above method.

[0164] The present disclosure also discloses an electronic device, Figure 4A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 4 As shown, the electronic device 400 includes a memory 401 and a processor 402; wherein,

[0165] The memory 401 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 402 to implement the above method steps.

[0166] Figure 5 It is a structural diagram of a computer system suitable for implementing the method according to an embodiment of the present disclosure.

[0167] like Figure 5 As shown, the computer system 500 includes a processing unit 501, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The processing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0168] The following components are connected to the I / O interface 505: an input part 506 including a keyboard, a mouse, etc.; an output part 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part 508 including a hard disk, etc.; and a communication part 509 including a network interface card such as a LAN card, a modem, etc. The communication part 509 performs communication processing via a network such as the Internet. The drive 55 is also connected to the I / O interface 505 as needed. Removable media 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive 55 as needed, so that the computer program read therefrom is installed into the storage part 508 as needed. Among them, the processing unit 501 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0169] In particular, according to an embodiment of the present disclosure, the method described above 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 tangibly contained on a readable medium thereof, and the computer program includes a program code for executing the method described above. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 509, and / or installed from a removable medium 511.

[0170] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the road map or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or 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 different order from the order 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.

[0171] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0172] As another aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above-mentioned embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the methods described in the embodiments of the present disclosure.

[0173] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A method for obtaining posture information, wherein: include: Acquire a real-scene image captured by a camera and calculate the three-dimensional coordinates of feature points on the real-scene image; Taking the camera speed corresponding to the real scene image as a variable, calculating the motion compensation amount based on the rolling shutter exposure delay of the camera and the angular velocity corresponding to the real scene image; Using the motion compensation amount, compensating for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, to obtain the projection pixel point coordinates of the feature point projected onto the real scene image; Calculating the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image to obtain the reprojection error of the feature point; Reprojection constraints are established according to the reprojection errors of the feature points, and initial pose data of n frames of real-scene images participating in the optimization are optimized to obtain optimized pose information of the real-scene images, where n is an integer greater than 1.

2. The method according to claim 1, wherein: The method of calculating the motion compensation amount based on the camera speed corresponding to the real scene image as a variable and the rolling shutter exposure delay of the camera and the angular velocity corresponding to the real scene image includes: Calculate the product of the camera speed and the rolling shutter exposure delay to obtain a translation compensation amount; Taking e as the base and the product of the angular velocity and the rolling shutter exposure delay as the exponent, the rotation compensation amount is calculated; Based on the translation compensation amount and the rotation compensation amount, a motion compensation amount is constructed.

3. The method according to claim 1, wherein: The step of using the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates to obtain the projection pixel point coordinates of the feature point projected onto the real scene image includes: Compensating a coordinate transformation matrix based on the motion compensation amount to obtain a compensation transformation matrix, wherein the coordinate transformation matrix includes a transformation matrix from a world coordinate system to a camera coordinate system; The compensation transformation matrix and the coordinate transformation function are used to transform the three-dimensional coordinates of the feature points to obtain the coordinates of the projected pixel points.

4. The method according to claim 1, wherein: The step of establishing a reprojection constraint according to the reprojection error of the feature point, optimizing the pose data of the n frames of real scene images involved in the optimization, and obtaining the pose information of the real scene images includes: Calculate the sum of the pre-integrated errors between adjacent frames of real scene images in n frames of real scene images and the sum of the random walk errors of the inertial navigation deviation rate; Accumulating the sum of the reprojection errors of the feature points in the n frames of real scene images, the sum of the pre-integration errors, and the sum of the random walk errors to obtain a total error; The camera position, camera velocity and inertial navigation measurement value deviation corresponding to each real scene image are calculated when the sum of the errors is minimized.

5. The method according to claim 1, wherein: The step of obtaining the three-dimensional coordinates of the feature points on the real scene image includes: Obtaining a three-dimensional vector map containing the geographical location reflected by the real scene image; Establishing a matching relationship between vector map elements in the three-dimensional vector map and image elements in the real scene image; Based on the matching relationship, the three-dimensional coordinates of the feature points on the real scene image in the three-dimensional vector map are obtained.

6. A posture information acquisition device, wherein: include: An acquisition module is configured to acquire a real scene image captured by a camera and calculate the three-dimensional coordinates of feature points on the real scene image; A compensation module is configured to calculate a motion compensation amount based on a camera speed corresponding to the real scene image and an angular velocity corresponding to the real scene image, taking the camera speed corresponding to the real scene image as a variable; A projection module is configured to use the motion compensation amount to compensate for the transformation process of the feature point from the three-dimensional coordinates to the projection pixel point coordinates, so as to obtain the projection pixel point coordinates of the feature point projected onto the real scene image; A calculation module is configured to calculate the difference between the coordinates of the projected pixel point on the real scene image and the coordinates of the corresponding real pixel point on the real scene image to obtain the reprojection error of the feature point; The optimization module is configured to establish a reprojection constraint according to the reprojection error of the feature point, optimize the initial pose data of n frames of real-scene images participating in the optimization, and obtain the optimized pose information of the real-scene images, where n is an integer greater than 1.

7. An electronic device comprising a memory and at least one processor; wherein: The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the at least one processor to implement the method steps described in any one of claims 1-5.

8. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the method steps described in any one of claims 1 to 5.

9. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.

10. A navigation method, wherein: Based on the high-precision map, a navigation route calculated at least based on the starting point, the end point and the road conditions is obtained, and navigation guidance is performed based on the navigation route. The high-precision map is achieved by reconstructing the map based on the posture data obtained in any one of the methods described in claims 1-5.