Positioning method and device of positioning equipment, equipment and medium
Through the method of combining multi-state constrained Kalman filter and inertial measurement unit data, the problem of landmark position error caused by insufficient baseline in the visual positioning system is solved, the positioning accuracy is improved, and fast and accurate positioning is achieved.
Patent Information
- Application Number
- CN202310196070.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
In the visual positioning system, when the camera pose sequence is close to each other, the baseline is insufficient and the landmark points cannot be correctly triangulated, resulting in problems such as large position errors of landmark points and poor positioning accuracy.
The multi-state constrained Kalman filter framework is used, combined with the inertial measurement unit data, to determine the position of the landmark point, and correct it through the observation residual model to improve the accuracy of the landmark point position.
The accuracy of the position of the landmark point and the positioning accuracy of the positioning device are improved, and fast and accurate positioning operations are realized.
Smart Images

Figure CN118565463A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer vision technology, and in particular to a positioning method, apparatus, device and medium for a positioning device. Background Art
[0002] With the development of simultaneous localization and mapping (SLAM) technology, more and more extended reality (XR) devices or electronic devices such as robots use this method for positioning.
[0003] Visual SLAM technology usually estimates the position of the positioning object and constructs the map through visual processing of the front-end image and parameter optimization of the back-end. In the back-end optimization process, all variables that need to be estimated are treated as parameters to be solved. Then, the value of the parameter when the error function is minimum is found by constructing an error function. For example, in visual SLAM technology, when solving the back-end optimization problem, the parameters that need to be estimated are the position of the camera and the position of the landmark points at each moment. One implementation method is to use a triangulation algorithm to construct a least squares problem based on the observation data of the landmark points in the camera and the posture information of the camera at different positions, such as constructing a cost function, and using a nonlinear optimization method to solve the cost function to obtain the landmark point positions observed in different image frames for visual positioning.
[0004] However, in a visual positioning system, if the distance between the camera pose sequences is close, that is, the electronic device moves slowly, the camera's movement distance will be too small (insufficient baseline), resulting in the inability to correctly triangulate the landmark points. This will cause large errors in the obtained landmark point positions and poor positioning accuracy of the electronic device. Summary of the invention
[0005] The embodiments of the present application provide a positioning method, device, equipment and medium for a positioning device, which improve the accuracy of the location of landmark points and the positioning accuracy of the positioning device.
[0006] In a first aspect, an embodiment of the present application provides a positioning method for a positioning device, wherein an inertial measurement unit and at least one camera are installed on the positioning device, and the method includes:
[0007] When it is determined that there is a landmark point in the image frame captured by the camera, the location of the landmark point is determined according to a system state of a multi-state constrained Kalman filter framework, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit;
[0008] Determining a landmark residual model according to an observation residual model constructed based on observation data of the landmark point in the camera;
[0009] Performing a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position;
[0010] The positioning device is positioned according to the corrected landmark point position.
[0011] In a second aspect, an embodiment of the present application provides a positioning device of a positioning device, wherein an inertial measurement unit and at least one camera are installed on the positioning device, and the device includes:
[0012] A first determination module is used to determine the location of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by the camera, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit;
[0013] A second determination module, configured to determine a landmark residual model based on an observation residual model constructed based on observation data of the landmark point in the camera;
[0014] A third determination module is used to perform a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position;
[0015] A positioning module is used to position the positioning device according to the corrected landmark point position.
[0016] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0017] A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the positioning method of the positioning device described in the first aspect embodiment or its various implementation methods.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute a positioning method for a positioning device as described in the embodiment of the first aspect or its various implementations.
[0019] In a fifth aspect, an embodiment of the present application provides a computer program product comprising program instructions, which, when executed on an electronic device, enables the electronic device to execute the positioning method of a positioning device as described in the embodiment of the first aspect or its various implementations.
[0020] The technical solution disclosed in the embodiments of the present application has at least the following beneficial effects:
[0021] The positioning method of the positioning device provided in the present application determines the position of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by at least one camera, and determines the landmark residual model according to the observation residual model constructed by the observation data of the landmark point in the camera, and then obtains the corrected landmark point position according to the landmark point position and the landmark residual model, and then locates the positioning device according to the corrected landmark point position. The present application determines the landmark residual model about the landmark point according to the landmark point observed by the camera, and then corrects the landmark point position based on the landmark residual model, so that the corrected landmark point position is more accurate, thereby improving the accuracy of the landmark point position and the positioning accuracy of the positioning device, thereby achieving fast and accurate positioning operations. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0023] Figure 1 It is a flowchart of a positioning method of a positioning device provided in an embodiment of the present application;
[0024] Figure 2 is a schematic diagram of an XR device equipped with four cameras provided in an embodiment of the present application;
[0025] Figure 3 is a schematic diagram of a landmark point A observed by a camera provided in an embodiment of the present application;
[0026] Figure 4 It is a flowchart of another positioning method of a positioning device provided in an embodiment of the present application;
[0027] Figure 5 is a schematic block diagram of a positioning device of a positioning device provided in an embodiment of the present application;
[0028] Figure 6 is a schematic block diagram of an electronic device provided in an embodiment of the present application;
[0029] Figure 7 This is a schematic block diagram of an electronic device provided in an embodiment of the present application, which is an HMD. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. According to the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application 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 interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] The present application is applicable to spatial positioning scenarios. At present, in the back-end optimization process of the visual positioning technology used by electronic devices for spatial positioning, the variables that need to be estimated are regarded as parameters to be solved. Then, the value of the parameter when the error function is minimum is determined by constructing an error function, and the value of the parameter when the error function is minimum is determined as the parameter to be solved. However, in the visual positioning system, when the distance of the camera posture sequence is close, the movement distance of the camera will be too small due to the slow movement of the electronic device, so that the landmark points cannot be correctly triangulated, resulting in large errors in the obtained landmark point positions and insufficient accuracy, resulting in the problem of poor positioning accuracy of the electronic device. Therefore, in response to this problem, the present application provides a positioning method, so as to improve the accuracy of the landmark point positions required in the positioning process of the electronic device through this method, thereby improving the positioning accuracy of the electronic device.
[0033] In order to facilitate understanding of the embodiments of the present application, before describing each embodiment of the present application, some concepts involved in all embodiments of the present application are first appropriately explained, as follows:
[0034] 1) Virtual Reality (VR) is a technology for creating and experiencing a virtual world. It generates a virtual environment by calculation. It is a multi-source information (the virtual reality mentioned in this article includes at least visual perception, and can also include auditory perception, tactile perception, motion perception, and even taste perception, olfactory perception, etc.). It realizes the simulation of the fusion and interactive three-dimensional dynamic vision and entity behavior of the virtual environment, immersing users in a simulated virtual reality environment, and realizing applications in various virtual environments such as maps, games, videos, education, medical treatment, simulation, collaborative training, sales, assisted manufacturing, maintenance and repair.
[0035] 2) Virtual reality devices (VR devices), terminals for realizing virtual reality effects, can usually be provided in the form of glasses, head mount displays (Head Mount Display, referred to as HMD), contact lenses, for realizing visual perception and other forms of perception. Of course, the form of virtual reality devices is not limited to this, and can be further miniaturized or enlarged according to actual needs.
[0036] Optionally, the virtual reality devices described in the embodiments of the present application may include but are not limited to the following types:
[0037] 2.1) PC-based virtual reality (PCVR) devices use the PC to perform relevant calculations and data output for virtual reality functions. External PC-based virtual reality devices use the data output by the PC to achieve virtual reality effects.
[0038] 2.2) Mobile virtual reality devices support the configuration of mobile terminals (such as smart phones) in various ways (such as head-mounted displays with dedicated card slots). Through wired or wireless connection with the mobile terminal, the mobile terminal performs relevant calculations of virtual reality functions and outputs data to the mobile virtual reality device, such as watching virtual reality videos through the mobile terminal's APP.
[0039] 2.3) All-in-one virtual reality devices have a processor for performing relevant calculations of virtual functions, and thus have independent virtual reality input and output functions. They do not need to be connected to a PC or mobile terminal and have a high degree of freedom in use.
[0040] 3) Augmented Reality (AR): A technology that calculates the camera's posture parameters in the real world (or three-dimensional world, real world) in real time during the process of the camera capturing images, and adds virtual elements to the images captured by the camera based on the camera posture parameters. Virtual elements include but are not limited to: images, videos, and three-dimensional models. The goal of AR technology is to integrate the virtual world with the real world on the screen for interaction.
[0041] 4) Mixed Reality (MR): A simulated setting that integrates computer-created sensory input (e.g., virtual objects) with sensory input from a physical setting or its representation. In some MR settings, computer-created sensory input can adapt to changes in sensory input from the physical setting. In addition, some electronic systems used to present MR settings can monitor the orientation and / or position relative to the physical setting so that virtual objects can interact with real objects (i.e., physical elements from the physical setting or their representations). For example, the system can monitor movement so that virtual plants appear stationary relative to physical buildings.
[0042] 5) Extended Reality (XR) refers to all real and virtual combined environments and human-computer interactions generated by computer technology and wearable devices, which include virtual reality (VR), augmented reality (AR) and mixed reality (MR) and other forms.
[0043] After introducing some concepts involved in the embodiments of the present application, a positioning method for a positioning device provided by the present application is specifically described below with reference to the accompanying drawings.
[0044] Figure 1 It is a flowchart of a positioning method of a positioning device provided in an embodiment of the present application. The embodiment of the present application is applicable to a scenario where an electronic device performs spatial positioning, and the positioning method of the positioning device can be performed by a positioning device of the positioning device. The positioning device of the positioning device can be composed of hardware and / or software and can be integrated into the positioning device.
[0045] In the embodiment of the present application, the positioning device can be any electronic device with a spatial positioning function. The electronic device can be an XR device, an AGV (Automated Guided Vehicle) car, or other devices such as a robot. Among them, the XR device can be a VR device, an AR device, or an MR device.
[0046] In addition, the positioning device in the present application is equipped with an inertial measurement unit (IMU) and at least one camera. The camera can be an ordinary camera, a fisheye camera or other types of cameras, and the present application does not limit this. For example, Figure 2 As shown, when the positioning device is an XR device, four cameras can be installed on the XR device, so that the four cameras can collect environmental image frames during the movement of the XR device, thereby providing conditions for the spatial positioning of the XR device based on the image frames collected by the cameras.
[0047] like Figure 1As shown, the method may include the following steps:
[0048] S101, when it is determined that there is a landmark point in the image frame captured by the camera, the location of the landmark point is determined according to the system state of the multi-state constrained Kalman filter framework, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit.
[0049] In the embodiment of the present application, the number of image frames is a continuous multi-frame image.
[0050] Moreover, the landmark point is a feature point in the image frame, and the feature point can be selected as a relatively prominent point or a representative point in the image, such as a corner point, a contour point, a bright spot in a darker area, and a dark spot in a brighter area, etc. In addition, the feature point can also be a relatively prominent line, a representative line, or other agreed mark with significant features, etc., which is not specifically limited here.
[0051] It should be understood that the inertial measurement unit (IMU) and at least one camera installed on the positioning device in the present application can constitute a visual inertial odometry (VIO). Thus, the positioning device can implement a simultaneous localization and mapping (SLAM) algorithm based on the data collected by both the inertial measurement unit and the camera in the visual inertial odometry.
[0052] Specifically, when the user uses the positioning device, the camera on the positioning device will collect image frames of the surrounding environment in real time, and send the collected image frames to the visual inertial odometry in real time. At the same time, the inertial measurement unit on the positioning device will also collect inertial measurement unit data in real time, and send the collected inertial measurement data to the visual inertial odometry in real time, so that the visual inertial odometry can perform the visual processing process of the front-end image in visual positioning based on the image frames transmitted by the camera and the inertial measurement unit data transmitted by the inertial measurement unit.
[0053] Furthermore, after receiving the image frames sent by the camera and the inertial measurement unit data sent by the inertial measurement unit, the visual inertial odometer can determine the camera's position information (attitude and displacement) and other information based on the image frames and the inertial measurement unit data, as well as the accelerometer deviation and gyroscope deviation in the inertial measurement unit. Optionally, in addition to determining the above-mentioned information, the visual inertial odometer of the present application can also determine the rotational extrinsic parameters from the camera to the inertial measurement unit, such as rotational extrinsic parameters and translational extrinsic parameters, and the camera's moving speed, etc., based on the image frames and the inertial measurement unit data. The specific information determined can be flexibly adjusted according to the use requirements of the positioning device, and no specific restrictions are made here.
[0054] After determining the camera's posture information (attitude and position), as well as the accelerometer bias and gyroscope bias in the inertial measurement unit, the present application can construct the system state X in the framework of Multi-State Constraint Kalman Filter (MSCKF) based on the above information. I , so that the subsequent I This lays the foundation for realizing the positioning function of positioning equipment.
[0055] It should be noted that compared with the optimized VIO algorithm, the MSCKF framework has comparable accuracy and faster speed, and is suitable for running on embedded platforms with limited computing resources, such as XR, robots, and drones.
[0056] Among them, the system state X I Includes: Basic state X A and augmented state X B . System Status X I It can be expressed as: X I =[X A , X B0 , X B1 , ..., X Bs ], where s is a positive integer greater than 1.
[0057] And, the base state X A This may include: attitude, position, velocity, acceleration bias, gyroscope bias, and rotational extrinsics from the camera to the inertial measurement unit.
[0058] Augmented state X B Includes at least: posture (rotation) and position.
[0059] It should be noted that in this application, the system status X I Corresponding to a sliding window, the sliding window is used to store the basic state X A and augmented state X B Among them, the augmented state X B Represents the state data corresponding to the window in which the landmark point can be observed.
[0060] And, the augmented state X in the sliding window B The number of can be flexibly set according to actual needs, and no specific restrictions are imposed here. B The number can be set to 4, or 5, etc.
[0061] For example, Figure 3As shown, assume that L1 represents a landmark point, and the landmark point L1 is observed by the camera at time t1, t2, t3 and t4, that is, the landmark point L1 is observed by the camera in the images captured at time t1, t2, t3 and t4. Then, the system state X I The corresponding sliding window includes: basic state X A and four augmented states X B Among them, the four augmented states are: the augmented state X corresponding to the time t1 B1 , the augmented state X corresponding to the time t2 B2 , the augmented state X corresponding to the time t3 B3 , the augmented state X corresponding to time t4 B4 .
[0062] Considering that in the actual application process, the frame rate at which the inertial measurement unit collects inertial measurement unit data is much higher than the frame rate at which the camera collects image frames. For example, the acquisition frame rate of the inertial measurement unit is 1 millisecond (ms) to collect data once, while the camera acquisition frame rate is to collect images every 33ms. Therefore, when the visual inertial odometer receives the inertial measurement unit data sent by the inertial measurement unit for the first time, and the image frame sent by the camera, and builds the system state according to the inertial measurement unit data and the image frame, if the visual inertial odometer receives the inertial measurement unit data sent by the inertial measurement unit again, it first determines whether the image frame data sent by the camera is received. If the image frame data sent by the camera is not received, the visual inertial odometer performs a propagation operation of the system state without performing a state correction operation. That is, when only the inertial measurement unit data is received, the present application performs a data propagation operation based only on the inertial measurement unit data sent by the inertial measurement unit to propagate the system basic state and system covariance from the previous image frame moment to the current image frame moment.
[0063] That is, when the visual inertial odometer receives only the inertial measurement unit data, no state update operation (ie, state correction operation, or state optimization operation) is performed. The state update operation is performed only when the inertial measurement unit data and the image frame data are received.
[0064] For example, assume that the IMU captures data every 1 millisecond (ms), and the camera captures images every 33 ms. Then, at time 0 (1 ms), the visual inertial odometer receives the IMU data and the image frame, and constructs the system state X based on the two. I, and determine the system covariance. However, from time 1 to time 31 (2nd millisecond to 32nd millisecond), the visual inertial odometer only receives the inertial measurement unit data, but does not receive the image frame data sent by the camera. At this time, the visual inertial odometer only performs data propagation operations, that is, transmitting the system state X I And the system covariance. At the 32nd moment (33rd millisecond), the visual inertial odometer not only receives the inertial measurement unit data, but also receives the image frame data collected by the camera. Then, at this time, the visual inertial odometer performs image tracking or image matching based on the image frame data. When it is determined that there are landmark points in the image, the triangulation algorithm is used to calculate the landmark point position based on the system state composed of the image frame data and the inertial measurement unit data. In addition, after calculating the landmark point position, operations such as state update are also performed. Among them, the landmark point position is specifically a three-dimensional coordinate.
[0065] In some possible implementations, the present application performs image tracking or image matching based on the image frame data, specifically, recognizes the image frame, and tracks the landmark points in the image frame by image recognition. The image frame recognition method can be implemented by using a feature point acquisition algorithm, such as an optical flow method, a Scale Invariant Feature Transform (SIFT) algorithm, a SURF (Speeded-Up Robust Features) extraction algorithm, or an ORB (Oriented FAST and Rotated BRIEF) extraction algorithm, etc., which are not specifically limited here.
[0066] If it is determined that there is a landmark point in the image frame, the location of the landmark point is determined according to the system state constructed under the multi-state constrained Kalman filter (MSCKF) framework. That is, by using the constructed system state, the tracked landmark point is triangulated to fit the three-dimensional coordinates of the landmark point.
[0067] In some possible implementations, when determining the location of a landmark point, a cost function G may be constructed, as shown in the following formula (1):
[0068]
[0069] Where G represents the cost function, Σ represents the summation, j represents the jth window, h is a positive integer greater than 1, π() represents the camera back-projection function, and the function is obtained based on the camera intrinsic parameters and distortion parameters. Represents the coordinates of the i-th landmark point in the world coordinate system, Indicates the displacement (position) of the camera corresponding to the jth window in the world coordinate system, Z i,jrepresents the camera observation of the i-th landmark point by the camera of the j-th window, and ||·||2 represents the quadratic power. Where i and j are integers greater than or equal to 0.
[0070] Then, the cost function is solved by a nonlinear optimization method to obtain the location information of the landmark. The nonlinear optimization method includes but is not limited to: Gauss-Newton method, Levenberg-Manelt method and dog-leg method. Alternatively, the cost function can be solved by using open source libraries such as ceres or g2o to obtain the location information of the landmark.
[0071] It should be noted that solving the cost function is a conventional technique in the art and will not be described in detail here.
[0072] S102, determining a landmark residual model according to an observation residual model constructed based on observation data of the landmark point in the camera.
[0073] Considering the image frames collected by the camera on the positioning device and the inertial measurement unit data collected by the inertial measurement unit, the parameters such as the determined landmark position and camera pose will have noise, that is, errors. Therefore, it is necessary to optimize the parameters such as the determined landmark position and camera pose, that is, update the parameters to improve the accuracy and precision of the landmark position and camera pose.
[0074] Optionally, when the present application performs an update operation, two status updates may be included, as follows:
[0075] The first method is: if the window corresponding to the current image frame can no longer observe the landmark point, an observation residual model is constructed based on all observation data in the window corresponding to the landmark point, and a state update operation is performed based on the observation residual model.
[0076] The second type: because there is an upper limit on the number of windows in the sliding window, if the upper limit is m and when s == m, a state update operation needs to be performed.
[0077] Among them, for the second state update, all observation data of at least two windows can be extracted from the sliding window in order from front to back as needed to build an observation residual model; or, all observation data of at least two windows can be extracted from the sliding window in order from back to front as needed to build an observation residual model; or, observation data of at least one window can be extracted in order from front to back, and observation data of at least one window can be extracted in order from back to front, and an observation residual model can be built based on all the extracted observation data. Then, the state update operation is performed based on the constructed observation residual model.
[0078] It should be understood that when extracting observation data of a window from a sliding window in the present application, a comprehensive decision can be made based on whether the current positioning device is moving or whether the positioning device has sufficient movement, and the present application does not impose specific restrictions on this.
[0079] Therefore, after obtaining the position of the landmark point, the present application can construct an observation residual model based on the observation data of the landmark point in the camera. Then, according to the observation residual model, the system state correction is determined. Then, according to the observation residual model and the system state correction, the landmark residual model of the landmark point is determined, thereby laying the foundation for updating the landmark point position based on the landmark residual model.
[0080] For example, if the observation residual model is constructed based on the observation data of the k-th landmark point in the q-th window corresponding to the camera, it is specifically the following formula (2):
[0081]
[0082] Among them, r k,q represents the observation residual model of the k-th landmark point in the q-th window, J x(k,q) Represents the observed residual model r k,q Find the Jacobian matrix for the system state, Indicates that the system state error is small, J f(k,q) Represents the observed residual model r k,q Find the Jacobian matrix corresponding to the three-dimensional coordinates of the k-th landmark point, Indicates that the three-dimensional coordinate error of the k-th landmark point in the world coordinate system is small, n k,q represents the observation noise of the visual positioning system for the kth landmark point in the qth window, where k and q are integers greater than or equal to 1.
[0083] Then, according to the preset calculation method, the system state correction value is calculated based on the observation residual model Then, the system state correction Substitute it into the above observation residual model to obtain the landmark residual model of the kth landmark point, which can be specifically shown in the following formula (3):
[0084]
[0085] Among them, r′ k,q represents the landmark residual model of the kth landmark point, And D is a known constant, J f(k,q) Represents the observed residual model r k,q Find the Jacobian matrix corresponding to the three-dimensional coordinates of the k-th landmark point, Indicates that the three-dimensional coordinate error of the k-th landmark point in the world coordinate system is small, n k,qRepresents the observation noise of the visual positioning system on the kth landmark point in the qth window.
[0086] In the embodiment of the present application, the preset calculation method refers to any method that can calculate the system state correction value. The algorithm or strategy is not specifically limited here.
[0087] S103, performing a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position.
[0088] In some feasible solutions, the Extended Kalman Filter (EKF) algorithm can be used to correct the landmark residual model to determine the landmark position correction amount. Then, the corrected landmark position is obtained based on the landmark position and the landmark position correction amount.
[0089] Continuing with the above example, if the landmark residual model of the kth landmark point is the above formula (3): Then, by transforming formula (3), we can get formula (4):
[0090]
[0091] Among them, r′ k,q represents the landmark residual model of the kth landmark point, And D is a known constant, J f(k,q) Represents the observed residual model r k,q Find the Jacobian matrix corresponding to the three-dimensional coordinates of the k-th landmark point, Indicates that the three-dimensional coordinate error of the k-th landmark point in the world coordinate system is small, n k,q Represents the observation noise of the visual positioning system on the kth landmark point in the qth window.
[0092] However, since the standard residual model format of the EKF algorithm is: Therefore, based on the above formula (4), the standard road sign residual model can be obtained, as shown in formula (5):
[0093]
[0094] After obtaining the standard landmark residual model corresponding to the k-th landmark point, the present application can substitute the standard landmark residual model into the state update formula of the EKF algorithm to determine the position correction amount of the landmark point.
[0095] Specifically, the state update formula of the EKF algorithm includes the following formulas (6) to (9):
[0096] Among them, formula (6) is the gain calculation formula, specifically:
[0097] K=PJ T (JPJ T +R) -1 ……………………(6)
[0098] Among them, K represents the Kalman gain, P represents the system covariance, J represents the Jacobian matrix, T represents the transpose, R represents the noise covariance corresponding to the observation noise n, and -1 represents the inversion.
[0099] Formula (7) is the calculation formula for the state correction amount, specifically:
[0100] ΔX=Kr……………………(7)
[0101] Wherein, ΔX represents the state correction, K represents the Kalman gain, and r represents the residual model.
[0102] It should be understood that ΔX here represents the position correction of the landmark point, and r represents the landmark point residual model.
[0103] Formula (8) is the state update formula, specifically:
[0104] X′=X+ΔX……………………(8)
[0105] Wherein, X′ represents the corrected system state, X represents the system state, and ΔX represents the system state correction amount.
[0106] It should be understood that, here X' represents the corrected position of the landmark point, X represents the position of the landmark point, and ΔX represents the position correction amount of the landmark point.
[0107] Formula (9) is the covariance update formula, specifically:
[0108] P′=(I-KJ)P(I-KJ) T +KRK T …………………………(9)
[0109] Wherein, P′ represents the corrected system covariance, I represents the system state, K represents the Kalman gain, J represents the Jacobian matrix, P represents the system covariance, T represents the transpose, and R represents the noise covariance corresponding to the observation noise n.
[0110] It should be noted that after each correction of the landmark point, the present application can also determine whether the covariance corresponding to the corrected landmark point position reaches a preset threshold value, and if so, stop the correction operation of the landmark point position, otherwise continue to correct the landmark point position, so that the accuracy of the landmark point position reaches the preset accuracy. Among them, the preset threshold value can be flexibly set according to the positioning accuracy, and there is no specific limitation on it here.
[0111] S104: Position the positioning device according to the corrected landmark point position.
[0112] After obtaining the corrected landmark point position, the present application can obtain the positioning result of the positioning device according to the correction result, that is, the corrected landmark point coordinates and the corrected system state. Among them, the corrected system state can be the corrected camera posture.
[0113] That is to say, while continuously correcting the camera posture, the present application also corrects the observed landmark point positions, so that the positioning accuracy of the positioning device can be improved based on the corrected camera posture and landmark point positions.
[0114] The positioning method of the positioning device provided in the present application determines the position of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by at least one camera, and determines the landmark residual model according to the observation residual model constructed by the observation data of the landmark point in the camera, and then obtains the corrected landmark point position according to the landmark point position and the landmark residual model, and then locates the positioning device according to the corrected landmark point position. The present application determines the landmark residual model about the landmark point according to the landmark point observed by the camera, and then corrects the landmark point position based on the landmark residual model, so that the corrected landmark point position is more accurate, thereby improving the accuracy of the landmark point position and the positioning accuracy of the positioning device, thereby achieving fast and accurate positioning operations.
[0115] On the basis of the above-mentioned embodiment, after executing the interactive function corresponding to the target button, the present application may optionally further include: deleting the augmented and expanded state in the sliding window corresponding to the system state.
[0116] Considering the augmented state X included in the sliding window corresponding to the system state B Therefore, when the present application expands the sliding window according to the image frame provided by the camera, the expansion state X in the sliding window B The number may reach the upper limit. B The number reaches the upper limit, and there is a new image frame containing landmark points, that is, the augmented state X in the sliding window needs to be B When performing an augmentation operation, the present application maintains the size of the sliding window by deleting the augmentation state in the sliding window, thereby preventing the system state from increasing infinitely and achieving the purpose of saving computational effort.
[0117] In the embodiment of the present application, when the augmented state in the sliding window corresponding to the system state is deleted, it is optional to delete according to the sparsity of the augmented state. For example, if the upper limit of the augmented state in the sliding window is 4, and there is 1 augmented state corresponding to the first augmented state window at time t0, there are 2 augmented states corresponding to the second augmented state window at time t1, there is 1 augmented state corresponding to the third augmented state window at time t2, and there is 1 augmented state corresponding to the fourth augmented state window at time t3. Among them, the augmented state of the window corresponding to time t0 and time t1 changes very little, then when the augmented state determined by the new image frame corresponds to time t4, the two old augmented states corresponding to the second augmented state window at time t1 with small augmented state changes can be deleted, so that the newly added augmented state corresponding to time t4 can be stored in the sliding window in chronological order. Therefore, by deleting the old augmented states that contribute little to the system constraints, it is ensured that the augmented state in the sliding window is sparse, thereby providing more contribution value for system updates.
[0118] From the above description, it can be seen that the present application determines a landmark residual model of the landmark point observed by the camera, and corrects the landmark point position based on the landmark residual model to obtain a landmark point position with high precision.
[0119] Based on the above embodiments, the observation residual model constructed according to the observation data of the landmark point in the camera in the implementation of this application and the determination of the landmark residual model are further explained. Figure 4 .
[0120] like Figure 4 As shown, the method may include the following steps:
[0121] S201, when it is determined that there is a landmark point in the image frame captured by the camera, the location of the landmark point is determined according to the system state of the multi-state constrained Kalman filter framework, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit.
[0122] S202, determining a system state correction amount according to an observation residual model constructed based on observation data of the landmark point in the camera.
[0123] Normally, only when a landmark point is observed multiple times by the camera in the sliding window can the observation data of the landmark point in the camera be used to perform system state correction operations, etc. If a landmark point is only observed once by the camera in the sliding window, the landmark point is treated as a pending point and does not participate in system state correction operations, etc.
[0124] Therefore, when determining the system state correction amount, the present application can construct an observation residual model based on the observation data of the landmark point in the camera each time. Then, determine the left null space matrix of the first parameter in the observation residual model. Then, according to the left projection method, project the observation residual model to the left null space matrix to obtain the observation residual model projection. Afterwards, use the extended Kalman filter algorithm to correct the observation residual model projection and determine the system state correction amount.
[0125] Among them, the first parameter refers to the parameter of the observation residual model to calculate the Jacobian matrix of the three-dimensional coordinates of the landmark point.
[0126] In the present application, an observation residual model is constructed according to the observation data of the landmark point in the camera each time, specifically: an initial observation residual model is constructed according to the observation data of the landmark point in the camera each time. Then, all the initial observation residual models corresponding to the landmark points are combined to obtain an observation residual model.
[0127] Exemplarily, assuming that the i-th landmark point is observed in the j-th window, an initial observation residual model can be constructed based on the observation data of the i-th landmark point in the j-th window, where i and j are integers greater than 1.
[0128] As an implementation method, an initial observation residual model of the i-th landmark point in the j-th window is constructed, specifically as follows:
[0129]
[0130] Among them, r i,j represents the initial observation residual model of the i-th landmark point in the j-th window, J x(i,j) Represents the residual model r i,j Find the Jacobian matrix for the system state, Indicates that the system state error is small, J f(i,j) Represents the residual model r i,j Find the Jacobian matrix for the three-dimensional coordinates of the i-th landmark point, Indicates the small error of the three-dimensional coordinates of the i-th landmark point in the world coordinate system, n i,j Represents the observation noise of the system state at the i-th landmark point in the j-th window.
[0131] Then, all the initial observation residual models corresponding to the i-th landmark point that need to be used for state update are combined, that is, multiple formulas (10) corresponding to the i-th landmark point are arranged or stacked to obtain a total observation residual model, which is specifically the following formula (11):
[0132]
[0133] Among them, ri represents the combination of the initial observation residual models of the i-th landmark point in all the observed windows, that is, the observation residual model, J x(i) Represents the residual model r i Find the combination of Jacobian matrices for the system states, Indicates that the system state error is small, J f(i) Represents the residual model r i Find the combination of Jacobian matrices for the three-dimensional coordinates of the i-th landmark point, represents the small error of the three-dimensional coordinates of the i-th landmark point in the world coordinate system, and n i Represents the combination of the observation noise of the system for the i-th landmark point under all observed windows.
[0134] In the present application, all the above-mentioned initial observation residual models required for state updating may choose not to use all the observation residual models for state updating, and only select at least two specified initial observation residual models for combination or stacking.
[0135] Further, after obtaining the observation residual model, the present application can calculate the first parameter (J f(i) )'s left null space matrix A i For the specific calculation process, please refer to the following formula (12):
[0136] A i J f(i) =0……………………(12)
[0137] Project the observed residual model to the left null space matrix A by left projection i , and obtain the observation residual model projection, which is as follows:
[0138]
[0139] Considering the standard residual model format of the EKF algorithm is Therefore, based on the above formula (13), the standard observation residual model can be obtained, which is as follows:
[0140]
[0141] Right now,
[0142] Because it is possible that multiple landmark points need to be updated, the present application may combine the observation residual model projections of all landmark points to obtain a new observation residual model projection.
[0143] The specific formula is as follows:
[0144]
[0145] Since the obtained new observation residual model projection conforms to the standard residual model format of the EKF algorithm. Therefore, the present application can use the new observation residual model projection as the standard residual model. Substitute the standard residual model into the state update formula of the EKF algorithm to complete the system state correction. That is, substitute the standard residual model into the state update formula of the EKF algorithm to determine the system state correction amount. For the specific implementation process, please refer to the corresponding contents of formula (6) to formula (9) in the aforementioned embodiment.
[0146] It should be noted that in general, ox The scale of J is particularly large, that is, the number of rows of the matrix far exceeds the number of columns, so this application can use the QR decomposition method to ox After dimensionality reduction processing, the processing result is: Then, the processing result is substituted into the state update formula of the EKF algorithm to determine the system state correction amount. The advantage of this processing is that it can reduce the amount of data processing and increase the data processing speed.
[0147] S203, determining a road sign residual model according to the observation residual model and the system state correction amount.
[0148] S204, performing a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position.
[0149] Continuing with the example of the i-th landmark point being observed by multiple windows, the correction of the landmark point position is explained.
[0150] Exemplarily, if the i-th landmark point is observed in the j-th window, an initial observation residual model is constructed based on the observation data of the i-th landmark point in the j-th window, as shown in the above formula (10).
[0151] Then, all initial observation residual models corresponding to the i-th landmark point in all windows are combined to obtain an overall observation residual model, as shown in the above formula (11).
[0152] Since the aforementioned step S202 has determined that the system state error is small Therefore, the system state error can be reduced to Substituting into the above formula (11), we get the standard residual model formula (16):
[0153]
[0154] Then, substitute formula (16) into the state update formula of the EKF algorithm to determine the position correction of the waypoint. The specific implementation process is shown in formulas (6) to (9) in the above embodiment, which will not be described in detail here.
[0155] In some implementations, considering the system state error is small When substituting into formula (11), the system state error is small There will be errors, that is, noise. Therefore, based on formula (11), this application can also obtain another standard residual model, which is specifically the following formula (17):
[0156]
[0157] Among them, J x(i) n′ represents a small amount of system state error Therefore, the residual covariance R corresponding to formula (16) is the sum of the covariances corresponding to the two parts of noise, where n i represents the observation noise of the i-th landmark point, and the observation noise n i The corresponding noise covariance is R1; J x(i) n′ represents the observation noise, and the observation noise J x(i) The noise covariance corresponding to n′ is R2. And, R=R1+R2.
[0158] That is to say, this application reduces the system state error by a small amount The noise substitution can further improve the accuracy of landmark point position correction.
[0159] S205: Position the positioning device according to the corrected landmark point position.
[0160] The positioning method of the positioning device provided in the present application determines the position of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by at least one camera, and determines the landmark residual model according to the observation residual model constructed by the observation data of the landmark point in the camera, and then obtains the corrected landmark point position according to the landmark point position and the landmark residual model, and then locates the positioning device according to the corrected landmark point position. The present application determines the landmark residual model about the landmark point according to the landmark point observed by the camera, and then corrects the landmark point position based on the landmark residual model, so that the corrected landmark point position is more accurate, thereby improving the accuracy of the landmark point position and the positioning accuracy of the positioning device, thereby achieving fast and accurate positioning operations.
[0161] Please refer to the attached Figure 5, a positioning device of a positioning device proposed in an embodiment of the present application is described. Figure 5 1 is a schematic block diagram of a positioning device of a positioning device provided in an embodiment of the present application, wherein an inertial measurement unit and at least one camera are installed on the positioning device.
[0162] like Figure 5 As shown, the positioning device 400 of the positioning equipment includes: a first determination module 410 , a second determination module 420 , a third determination module 430 and a positioning module 440 .
[0163] Wherein, the first determination module 410 is used to determine the location of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by the camera, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit;
[0164] A second determination module 420, configured to determine a landmark residual model based on an observation residual model constructed based on observation data of the landmark point in the camera;
[0165] A third determination module 430 is used to perform a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position;
[0166] The positioning module 440 is used to position the positioning device according to the corrected landmark point position.
[0167] In an optional implementation of the embodiment of the present application, the second determination module 420 includes: a first determination unit and a second determination unit;
[0168] The first determination unit is used to determine the system state correction amount according to the observation residual model constructed based on the observation data of the landmark point in the camera;
[0169] The second determining unit is used to determine the road sign residual model according to the observation residual model and the system state correction amount.
[0170] In an optional implementation manner of the embodiment of the present application, the first determining unit is specifically configured to:
[0171] When the camera observes the landmark point multiple times, an observation residual model is constructed according to the observation data of the landmark point in the camera each time;
[0172] Determining a left null space matrix of a first parameter in the observation residual model;
[0173] According to the left projection method, the observation residual model is projected onto the left null space matrix to obtain the observation residual model projection;
[0174] The extended Kalman filter algorithm is used to correct the observation residual model projection to obtain a system state correction value.
[0175] In an optional implementation manner of the embodiment of the present application, the first determining unit is further configured to:
[0176] According to the observation data of the landmark points in the camera each time, an initial observation residual model is constructed;
[0177] All initial observation residual models corresponding to the landmark points are combined to obtain an observation residual model.
[0178] In an optional implementation manner of the embodiment of the present application, the first determining unit is further configured to:
[0179] If there are multiple landmark points, the observation residual model projections of all landmark points are combined to obtain a new observation residual model projection.
[0180] In an optional implementation of the embodiment of the present application, the third determining module 430 is specifically configured to:
[0181] Using an extended Kalman filter algorithm, the landmark residual model is corrected to determine the position correction amount of the landmark point;
[0182] A corrected landmark point position is obtained according to the landmark point position and the landmark point position correction amount.
[0183] In an optional implementation of the embodiment of the present application, the apparatus 400 further includes: a processing module;
[0184] The processing module is used to perform deletion processing on the augmented and expanded state in the sliding window corresponding to the system state.
[0185] The positioning device of the positioning equipment provided in the embodiment of the present application, when determining that there is a landmark point in the image frame captured by at least one camera, determines the landmark point position according to the system state of the multi-state constrained Kalman filter framework, and determines the landmark residual model according to the observation residual model constructed from the observation data of the landmark point in the camera, and then obtains the corrected landmark point position according to the landmark point position and the landmark residual model, and then locates the positioning device according to the corrected landmark point position. The present application determines the landmark residual model about the landmark point according to the landmark point observed by the camera, and then corrects the landmark point position based on the landmark residual model, so that the corrected landmark point position is more accurate, thereby improving the accuracy of the landmark point position and the positioning accuracy of the positioning device, thereby achieving fast and accurate positioning operations.
[0186] It should be understood that the device embodiment and the aforementioned method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 5 The apparatus 400 shown may perform Figure 1 The corresponding method embodiments, and the aforementioned and other operations and / or functions of each module in the device 400 are respectively to implement Figure 1 For the sake of brevity, the corresponding processes in each method are not repeated here.
[0187] The above describes the device 400 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the first aspect method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the first aspect method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above-mentioned first aspect method embodiment in conjunction with its hardware.
[0188] Figure 6 is a schematic block diagram of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device 500 may include:
[0189] The memory 510 and the processor 520, the memory 510 is used to store the computer program and transmit the program code to the processor 520. In other words, the processor 520 can call and run the computer program from the memory 510 to implement the positioning method of the positioning device in the embodiment of the present application.
[0190] For example, the processor 520 may be configured to execute the above-mentioned positioning method embodiment of the positioning device according to the instructions in the computer program.
[0191] In some embodiments of the present application, the processor 520 may include but is not limited to:
[0192] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0193] In some embodiments of the present application, the memory 510 includes but is not limited to:
[0194] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0195] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 510 and executed by the processor 520 to complete the positioning method of the positioning device provided by the present application. The one or more modules may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.
[0196] like Figure 6 As shown, the electronic device 500 may further include:
[0197] The transceiver 530 may be connected to the processor 520 or the memory 510 .
[0198] The processor 520 may control the transceiver 530 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 530 may include a transmitter and a receiver. The transceiver 530 may further include an antenna, and the number of antennas may be one or more.
[0199] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0200] In the embodiment of the present application, when the electronic device is an HMD, the embodiment of the present application provides a schematic block diagram of the HMD, such as Figure 7 shown.
[0201] like Figure 7 As shown, the main functional modules of the HMD 600 may include but are not limited to the following: a detection module 610 , a feedback module 620 , a sensor 630 , a control module 640 , and a modeling module 650 .
[0202] Among them, the detection module 610 is configured to use various sensors to detect the user's operation commands and act on the virtual environment, such as constantly updating the image displayed on the display screen following the user's line of sight, to achieve interaction between the user and the virtual scene.
[0203] The feedback module 620 is configured to receive data from the sensor and provide real-time feedback to the user. For example, the feedback module 620 can generate a feedback instruction based on the user operation data and output the feedback instruction.
[0204] The sensor 630 is configured to accept operation commands from the user and apply them to the virtual environment on the one hand; and to provide the results generated after the operation to the user in the form of various feedback on the other hand.
[0205] The control module 640 is configured to control sensors and various input / output devices, including obtaining user data such as actions, voices, etc. and outputting sensory data such as images, vibrations, temperature, and sounds, etc., to act on the user, the virtual environment, and the real world. For example, the control module 640 can obtain user gestures, voices, etc.
[0206] The modeling module 650 is configured to construct a three-dimensional model of the virtual environment, and may also include various feedback mechanisms such as sound and touch in the three-dimensional model.
[0207] It should be understood that the various functional modules in the HMD 600 are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus, and a status signal bus.
[0208] The present application also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer is enabled to execute the method of the above method embodiment.
[0209] An embodiment of the present application further provides a computer program product including program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method of the above method embodiment.
[0210] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0211] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0212] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 devices or modules, which can be electrical, mechanical or other forms.
[0213] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0214] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A positioning method for a positioning device, characterized in that: The positioning device is equipped with an inertial measurement unit and at least one camera, and the method comprises: When it is determined that there is a landmark point in the image frame captured by the camera, the location of the landmark point is determined according to a system state of a multi-state constrained Kalman filter framework, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit; Determining a landmark residual model according to an observation residual model constructed based on observation data of the landmark point in the camera; Performing a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position; The positioning device is positioned according to the corrected landmark point position.
2. The method according to claim 1, characterized in that The step of determining a landmark residual model based on the observation residual model constructed according to the observation data of the landmark point in the camera comprises: Determine a system state correction amount according to an observation residual model constructed based on the observation data of the landmark point in the camera; A road sign residual model is determined according to the observation residual model and the system state correction amount.
3. The method according to claim 2, characterized in that The determining of the system state correction amount based on the observation residual model constructed according to the observation data of the landmark point in the camera comprises: When the camera observes the landmark point multiple times, an observation residual model is constructed according to the observation data of the landmark point in the camera each time; Determining a left null space matrix of a first parameter in the observation residual model; According to the left projection method, the observation residual model is projected onto the left null space matrix to obtain the observation residual model projection; The extended Kalman filter algorithm is used to correct the observation residual model projection to obtain a system state correction value.
4. The method according to claim 3, characterized in that According to the observation data of the landmark point in the camera each time, an observation residual model is constructed, including: According to the observation data of the landmark points in the camera each time, an initial observation residual model is constructed; All initial observation residual models corresponding to the landmark points are combined to obtain an observation residual model.
5. The method according to claim 3, characterized in that: After projecting the observed residual model onto the left null space matrix to obtain the observed residual model projection, the method further includes: If there are multiple landmark points, the observation residual model projections of all landmark points are combined to obtain a new observation residual model projection.
6. The method according to claim 1, characterized in that The performing a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position includes: Using an extended Kalman filter algorithm, the landmark residual model is corrected to determine the position correction amount of the landmark point; A corrected landmark point position is obtained according to the landmark point position and the landmark point position correction amount.
7. The method according to any one of claims 1 to 6, characterized in that: Also includes: The augmented and expanded states in the sliding window corresponding to the system state are deleted.
8. A positioning device for a positioning device, characterized in that: An inertial measurement unit and at least one camera are installed on the positioning device, and the device comprises: A first determination module is used to determine the location of the landmark point according to the system state of the multi-state constrained Kalman filter framework when determining that there is a landmark point in the image frame captured by the camera, wherein the system state is constructed based on the image frame captured by the camera and the inertial measurement unit data collected by the inertial measurement unit; A second determination module, configured to determine a landmark residual model based on an observation residual model constructed based on observation data of the landmark point in the camera; A third determination module is used to perform a correction operation according to the landmark point position and the landmark residual model to obtain a corrected landmark point position; A positioning module is used to position the positioning device according to the corrected landmark point position.
9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the positioning method of the positioning device according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein the computer program enables a computer to execute the positioning method of the positioning device according to any one of claims 1 to 7.
11. A computer program product comprising program instructions, characterized in that When the program instructions are executed on an electronic device, the electronic device is enabled to execute the positioning method of the positioning device according to any one of claims 1 to 7.
