Pose measurement method for point cloud image feature point tracking

By using a point cloud image feature point tracking method, combining ORB and EPnP algorithms with triangulation and point cloud image tracking algorithms, high-precision attitude measurement is achieved while improving computation speed. This solves the problem of long computation time in traditional methods and is suitable for attitude measurement tasks with high precision and high speed requirements.

CN118135013BActive Publication Date: 2026-11-20TIANJIN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410181632.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-18
Publication Date
2026-11-20
Estimated Expiration
2044-02-18

AI Technical Summary

Technical Problem

Existing attitude measurement methods cannot simultaneously meet the requirements of high accuracy and high computational speed, especially when frequent feature extraction and matching operations are required.

Method used

A point cloud image feature point tracking method is adopted, including feature point extraction, point cloud generation, point cloud matching, and pose calculation. The ORB algorithm, point cloud image bidirectional matching algorithm, and EPnP algorithm are used to calculate 3D points through triangulation and least squares methods. Combined with point cloud image tracking algorithm and Gaussian convolution, fast matching and high-precision pose calculation are achieved.

Benefits of technology

While maintaining high accuracy, it significantly improves the computation speed of attitude measurement, solving the problem of long computation time in traditional methods, and is suitable for application scenarios with high requirements for accuracy and speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118135013B_ABST
    Figure CN118135013B_ABST
Patent Text Reader

Abstract

The application discloses a pose measurement method for point cloud image feature point tracking, and a measurement system of the method comprises: a measured object installed on a rotary table, a fixed scene model, and a camera installed on the measured object and used for shooting; the method comprises the following steps: collecting binocular sequence images, performing feature extraction and matching by using an ORB algorithm; obtaining three-dimensional point clouds by using a triangulation method; obtaining matching point pairs between the three-dimensional point clouds and initial measurement images by using a point cloud image bidirectional matching algorithm, and obtaining a point cloud image tracking point library; tracking the point cloud image tracking point library by using a point cloud image matching feature point tracking algorithm, obtaining 2D-3D matching point pairs between subsequent measurement images and the three-dimensional point clouds; and performing pose calculation on the 2D-3D matching point pairs by using an EPnP algorithm. The application extracts feature points in the measurement images in a tracking mode, avoids repeated operation of the feature extraction and matching algorithm in the measurement process, and greatly improves the calculation speed of the pose measurement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of visual pose measurement, and mainly to a pose measurement method for tracking feature points in point cloud images.

[0002] Background Information

[0003] With the rapid development of computer technology, visual pose measurement technology has been widely applied in autonomous driving, spatial rendezvous and docking, and robot vision. Among them, the pose measurement method based on environmental feature matching actively acquires image features of the surrounding environment and matches them with an environmental feature point cloud model. The pose information is then calculated based on the constructed 2D-3D correspondence. This method has advantages such as being unrestricted by space, high flexibility, and good stability of measurement results, making it a current research hotspot.

[0004] To adapt to attitude measurement tasks in different scenarios, traditional methods typically employ measurement systems that combine 3D reconstruction and attitude calculation. Based on different combination methods, existing visual attitude measurement systems are mainly divided into two types. Among them, Simultaneous Localization and Mapping (SLAM) systems can perform attitude measurement and 3D reconstruction simultaneously, achieving real-time localization in unknown scenes. This method has the advantage of high computational speed, but its attitude measurement accuracy is relatively low, making it unsuitable for applications requiring high measurement accuracy. To improve the accuracy of attitude measurement systems, a solution is to pre-construct a 3D model of the scene using structure-of-motion (SOM) technology, then use feature extraction algorithms to extract feature points from the acquired images and perform feature matching with the 3D point cloud to obtain a 2D-3D correspondence, and finally perform attitude calculation using the PnP algorithm. This method has high measurement accuracy, but the feature extraction algorithm it uses has a long computation time, resulting in a decrease in measurement speed and failing to meet the needs of practical applications. Furthermore, the attitude measurement system based on the above feature extraction method must perform feature extraction and matching operations on each frame of the measurement image, which is also a significant reason for its long computation time.

[0005] Since existing algorithms cannot simultaneously meet the requirements of attitude measurement systems for high precision and high computational speed, there is a need in this field for an attitude measurement method that can quickly construct point cloud image matching relationships and perform high-precision measurements. Summary of the Invention:

[0006] The purpose of this invention is to propose an attitude measurement method based on feature point tracking of point cloud images, which solves the problem that existing measurement methods require repeated feature extraction and matching for each frame of measurement image. This method can significantly improve the computation speed of attitude measurement while maintaining high measurement accuracy, and can be applied to attitude measurement tasks with high accuracy and high computation speed requirements.

[0007] The objective of this invention is achieved through the following technical solution:

[0008] A pose measurement method for feature point tracking in a point cloud image includes the following steps:

[0009] S1: Acquire stereo sequence images of a fixed scene model, use the ORB algorithm to extract features from the stereo sequence images to obtain feature points, and match feature points of adjacent images;

[0010] S2: Calculate the three-dimensional points from the matching feature points obtained in step S1 using triangulation to generate a three-dimensional point cloud of a fixed scene model.

[0011] S3: Acquire monocular images of a fixed scene model during the measurement process, and use a point cloud image bidirectional matching algorithm to obtain matching point pairs between the 3D point cloud and the initial measurement image to obtain a point cloud image tracking point library;

[0012] S4: Using the point cloud image matching feature point tracking algorithm, track the point cloud image tracking point library obtained in step S3, collect new measurement images of the fixed scene model, obtain 2D-3D matching point pairs between the subsequent measurement images and the 3D point cloud, and update the point cloud image feature point library with the new 2D-3D matching point pairs.

[0013] S5: Using the EPnP algorithm, the pose of the 2D-3D matching point pairs obtained in step S4 is calculated, and the rotation matrix R of the current measurement image relative to the world coordinate system is calculated.

[0014] Furthermore, step S2, the triangulation method specifically includes the following steps:

[0015] S2-1: Based on the camera projection model, the projection relationship between 3D points and 2D binocular matching points is established as follows:

[0016] z1p1=K1[R1 T1]P

[0017] z2p2=K2[R2 T2]P

[0018] In the formula, p1 and p2 are the pixel homogeneous coordinates of the two-dimensional matching point pair, P is the homogeneous coordinate of the three-dimensional point, z1 and z2 are the depths of the three-dimensional point P in the left and right camera coordinate systems, K1 and K2 are the intrinsic parameter matrices of the stereo camera, [R1 T1] is the rotation and translation matrix from the world coordinate system to the left camera coordinate system, and [R2 T2] is the rotation and translation matrix from the world coordinate system to the right camera coordinate system.

[0019] S2-2: Set the camera coordinate system of the first left-eye image as the world coordinate system. Based on the binocular calibration, obtain the transformation matrix from the world coordinate system to the camera coordinate system of the first right-eye image. The projection formula in step S2-1 can be transformed into:

[0020] z1p1=K1[I 0]P

[0021] z2p2=K2[R c T c ]P

[0022] In the formula, I is the identity matrix, [R c T c [ ] represents the extrinsic parameter matrix between the left and right cameras obtained from camera calibration;

[0023] S2-3: Solve the overdetermined system of equations in S2-2 using the least squares method to obtain the coordinates [XYZ] of the three-dimensional point P.

[0024] Furthermore, the point cloud image bidirectional matching algorithm in step S3 specifically includes the following steps:

[0025] S3-1: Based on the descriptor similarity between the points to be matched in the 3D point cloud A and the initial measurement image B, construct the score matrix S between the points to be matched, where:

[0026]

[0027] In the formula, f i A Let i be the descriptor of the i-th point to be matched in set A. S is the descriptor for the j-th point to be matched in set B. i,j The descriptor similarity score between the i-th match point in set A and the j-th match point in set B;

[0028] S3-2: Solve the matching probability matrix P between the points to be matched using the bidirectional softmax function. c for:

[0029] P c (i,j)=softmax(S(i,·)) j softmax(S(·,j)) i

[0030] In the formula, softmax(S(i,·)) is the matching probability between the i-th point to be matched in set A and all points to be matched in set B, softmax(S(·,j)) is the matching probability between the j-th point to be matched in set B and all points to be matched in set A, and P c (i,j) represents the matching probability between the i-th match point in set A and the j-th match point in set B;

[0031] S3-3: Filter out all matching probabilities in the probability matrix that are greater than a specific threshold. Point pair The final matched point pairs are saved as a point cloud image tracking point library.

[0032] Furthermore, the point cloud image matching feature point tracking algorithm in step S4 specifically includes the following steps:

[0033] S4-1: Initialize k = 1;

[0034] S4-2: Construct an image pyramid between the k-th frame image I and the (k+1)-th frame measurement image J using Gaussian convolution and downsampling;

[0035] S4-3: Calculate the initial optical flow g and the remaining optical flow d layer by layer from the top of the pyramid downwards. The formula for calculating the initial optical flow g is:

[0036]

[0037] In the formula, n is the number of pyramid levels;

[0038] S4-4: Calculate the squared difference of grayscale values ​​between the point to be tracked in the k-th frame image I and the tracking point in the (k+1)-th frame measurement image J:

[0039]

[0040] In the formula, (u x ,u y (w) represents the coordinates of the point to be tracked. x ,w y ) represents the size of the neighborhood window, (d x ,d y ) represents the optical flow magnitude, and I(x,y) represents the grayscale value of the point coordinates in image I;

[0041] S4-5: Take the value with the smallest squared difference of grayscale values ​​(d) x ,d y () represents the final residual optical flow;

[0042] S4-6: Obtain the coordinates (v) of the tracking point in the (k+1)th frame measurement image J based on the final optical flow obtained. x ,v y ), obtain the 2D-3D matching point pairs between the k+1 frame measurement image J and the 3D point cloud, and update the point cloud image feature point library;

[0043] S4-7: Add a new measurement image, let k = k+1, and repeat steps S4-2 to S4-6 until the measurement process is complete.

[0044] An attitude measurement system for tracking feature points in point cloud images, used for attitude measurement of any of the point cloud image feature points as described above, includes an object to be measured, a fixed scene model, and a camera unit. The camera unit is fixed on the object to be measured, and the object to be measured is mounted on a turntable, which can drive the camera unit to rotate. A fixed scene model is set within the acquisition range of the camera unit.

[0045] Furthermore, the camera unit is a binocular camera module.

[0046] An attitude measurement device for tracking feature points in a point cloud image, comprising:

[0047] The acquisition module is used to acquire stereo sequence images of a fixed scene model, extract feature points from the stereo sequence images, and match feature points of adjacent images.

[0048] The point cloud generation module is used to generate a 3D point cloud of a fixed scene model based on the matched feature points.

[0049] The matching module is used to acquire monocular images of a fixed scene model during the measurement process, and uses a point cloud image bidirectional matching algorithm to obtain matching point pairs between the 3D point cloud and the initial measurement image to obtain a point cloud image tracking point library.

[0050] The calculation module is used to acquire new measurement images of a fixed scene model, obtain matching point pairs between the subsequent measurement images and the 3D point cloud, and update the new matching point pairs to the point cloud image feature point library.

[0051] The solution module is used to perform attitude calculation on the matched point pairs and calculate the rotation matrix of the current measured image relative to the world coordinate system.

[0052] An electronic device, characterized in that it comprises: a memory interconnected with the processors, the memory storing computer instructions, and the processors executing the computer instructions to perform the attitude measurement method for tracking feature points in a point cloud image as described in any one of the claims.

[0053] A computer storage medium, characterized in that: the computer-readable storage medium stores computer instructions, the computer instructions being used to cause a computer to execute any of the point cloud image feature point tracking attitude measurement methods described above.

[0054] The advantages and beneficial effects of this invention are as follows:

[0055] Compared with traditional feature extraction and matching methods, the point cloud image feature point tracking method of the present invention can obtain the matching relationship between the point cloud model and the measurement image more quickly. At the same time, compared with traditional attitude measurement methods, the attitude measurement method using the point cloud image feature point tracking method solves the problem of repeatedly performing feature extraction and matching during the measurement process, has a faster computing speed, and can maintain high measurement accuracy. Attached Figure Description

[0056] Figure 1 This is a diagram of a helmet posture measurement system used as an application example of this method.

[0057] Figure 2 A flowchart illustrating the pose measurement method for feature point tracking in point cloud images.

[0058] Figure 3 This is a schematic diagram of the two-dimensional image feature point tracking results of this method. Detailed Implementation

[0059] To enable those skilled in the art to better understand the above features and advantages of the present invention, the present invention will be described in detail below with reference to specific implementation examples and accompanying drawings. Other embodiments obtained by those skilled in the art based on the examples of the present invention without creative effort are all within the scope of protection of the present invention.

[0060] This invention discloses a pose measurement method for feature point tracking in point cloud images. This method is applied to a helmet pose measurement system, as shown in the figure. Figure 1 As shown, the system includes a camera unit 1, a helmet 2, a high-precision turntable 3, and a fixed scene model 4. The fixed scene model 4 is set on one side of the high-precision turntable 3, and the fixed scene model serves as the target object for image acquisition.

[0061] The helmet 2, the object to be measured in this embodiment, is fixed on the high-precision turntable 3. A camera unit 1 is fixed on the helmet 2, and the camera unit 1 is communicatively connected to the measurement program in the computer.

[0062] The camera unit is a binocular camera module fixed to the helmet. In this embodiment, the binocular camera module is symmetrically fixed on both sides of the helmet. Before use, it is necessary to calibrate the intrinsic parameter matrix K of the camera and the extrinsic parameter matrix [R] between the two cameras. c T c ].

[0063] In this embodiment, a helmet is used as the object under test. The object under test can also be other objects. The binocular cameras are installed at intervals on the object under test and their positions are set. After installation, the intrinsic parameter matrix K of the cameras and the extrinsic parameter matrix [R] between the two cameras need to be recalibrated. c T c ].

[0064] In this embodiment, the high-precision turntable 3 rotates the object to be measured in the horizontal direction. Alternatively, other supports that can control the movement of the object to be measured can be used instead of the high-precision turntable 3.

[0065] The workflow of the pose measurement method for point cloud image feature point tracking used in this invention is as follows: Figure 2 As shown, the specific steps include:

[0066] S1: Acquire stereo sequence images of a fixed scene model, use the ORB algorithm to extract features from the sequence images to obtain feature points, and match feature points of adjacent images;

[0067] S2: Using the matching feature points obtained in step S1, calculate the 3D points according to the triangulation method to generate a 3D point cloud of a fixed scene model. Step S2 specifically includes:

[0068] S2-1: Based on the camera projection model, the projection relationship between 3D points and 2D binocular matching points is established as follows:

[0069] z1p1=K1[R1 T1]P

[0070] z2p2=K2[R2 T2]P

[0071] In the formula, p1 and p2 are the pixel homogeneous coordinates of the two-dimensional matching point pair, P is the homogeneous coordinate of the three-dimensional point, z1 and z2 are the depths of the three-dimensional point P in the left and right camera coordinate systems, K1 and K2 are the intrinsic parameter matrices of the stereo camera, [R1 T1] is the rotation and translation matrix from the world coordinate system to the left camera coordinate system, and [R2 T2] is the rotation and translation matrix from the world coordinate system to the right camera coordinate system.

[0072] S2-2: Set the camera coordinate system of the first left-eye image as the world coordinate system. Based on the binocular calibration, obtain the transformation matrix from the world coordinate system to the camera coordinate system of the first right-eye image. The projection formula in step S2-1 can be transformed into:

[0073] z1p1=K1[I 0]P

[0074] z2p2=K2[R c T c ]P

[0075] In the formula, I is the identity matrix, [R c T c [ ] represents the extrinsic parameter matrix between the left and right cameras obtained from camera calibration;

[0076] S2-3: Define the projection matrices between the left and right images and the world coordinate system as M1 = [I 0] and M2 = [R 0] c T cThe formula in step S2-2 is converted to:

[0077]

[0078]

[0079]

[0080]

[0081] In the formula: (u1, v1) are the pixel coordinates of p1, (u2, v2) are the pixel coordinates of p2, and [XYZ] are the coordinates of the 3D point P. and Let i be the elements of projection matrices M1 and M2, where i,j∈[1,4];

[0082] S2-4: Solve the overdetermined system of equations in S2-3 using the least squares method to obtain the coordinates [XYZ] of the three-dimensional point P.

[0083] S3: Acquire monocular images of the fixed scene model during the measurement process, and use a point cloud image bidirectional matching algorithm to obtain matching point pairs between the 3D point cloud and the initial measurement image, thus obtaining a point cloud image tracking point library. Step S3 specifically includes:

[0084] S3-1: Based on the descriptor similarity between the points to be matched in the 3D point cloud A and the initial measurement image B, construct the score matrix S between the points to be matched, where:

[0085]

[0086] In the formula, f i A Let i be the descriptor of the i-th point to be matched in set A. S is the descriptor for the j-th point to be matched in set B. i,j The descriptor similarity score between the i-th match point in set A and the j-th match point in set B;

[0087] S3-2: Solve the matching probability matrix P between the points to be matched using the bidirectional softmax function. c for:

[0088] P c (i,j)=softmax(S(i,·)) j softmax(S(·,j)) i

[0089] In the formula, softmax(S(i,·)) is the matching probability between the i-th point to be matched in set A and all points to be matched in set B, softmax(S(·,j)) is the matching probability between the j-th point to be matched in set B and all points to be matched in set A, and P c (i,j) represents the matching probability between the i-th match point in set A and the j-th match point in set B;

[0090] S3-3: Filter out all matching probabilities in the probability matrix that are greater than a set threshold. Point pair The final matched point pairs are saved as a point cloud image tracking point library.

[0091] S4: Using a point cloud image matching feature point tracking algorithm, track the point cloud image tracking point library obtained in step S3 to obtain 2D-3D matching point pairs between the subsequent measurement image and the 3D point cloud, and update the point cloud image feature point library with the new 2D-3D matching point pairs. Step S4 specifically includes:

[0092] S4-1: Initialize k = 1;

[0093] S4-2: Construct an image pyramid between the k-th frame image I and the (k+1)-th frame measurement image J using Gaussian convolution and downsampling;

[0094] S4-3: Calculate the initial optical flow g and the remaining optical flow d layer by layer from the top of the pyramid downwards. The formula for calculating the initial optical flow g is:

[0095]

[0096] In the formula, n is the number of pyramid levels;

[0097] S4-4: Calculate the squared difference of grayscale values ​​between the point to be tracked in the k-th frame image I and the tracking point in the (k+1)-th frame measurement image J:

[0098]

[0099] In the formula, (u x ,u y (w) represents the coordinates of the point to be tracked. x ,w y ) represents the size of the neighborhood window, (d x ,d y ) represents the optical flow magnitude, and I(x,y) represents the grayscale value of the point coordinates in image I;

[0100] S4-5: Taking the partial derivative of the formula in step S4-4, we get:

[0101]

[0102] S4-6: For J(x+d) x ,y+d y Performing a Taylor expansion and neglecting higher-order terms, we obtain:

[0103]

[0104] S4-7: Approximate the gradients of image J with respect to x and y using the gradients of image I with respect to x and y, and obtain the gradient ▽I of image I as follows:

[0105]

[0106] S4-8: Calculate the gray level difference δI = I(x,y) - J(x,y) between images I and J at point (x,y);

[0107] S4-9: Convert the formula in step S4-5 to:

[0108]

[0109] S4-10: Reversing the formula in step S4-9 yields:

[0110]

[0111] S4-11: Calculation The remaining optical flow d at that time;

[0112] S4-12: Based on the tracking point on the moving target image, repeat the calculation process from S4-4 to S4-11 above until the remaining optical flow d is small enough or the maximum number of iterations is reached, to obtain the final remaining optical flow;

[0113] S4-13: Based on the final optical flow obtained, the coordinates (v) of the tracking point in the (k+1)th frame measurement image J are obtained. x ,v y This yields a two-dimensional matching point pair between the k-th frame measurement image and the (k+1)-th frame measurement image, such as... Figure 3 As shown;

[0114] S4-14: Update the feature point library of the point cloud image and obtain the 2D-3D matching point pair between the measurement image J of frame k+1 and the 3D point cloud;

[0115] S4-15: Add a new measurement image, let k = k+1, and repeat steps S4-2 to S4-14 until the measurement process is complete.

[0116] S5: Using the EPnP algorithm, the pose of the 2D-3D matching point pairs obtained in step S4 is calculated, and the rotation matrix R of the current measurement image relative to the world coordinate system is calculated.

[0117] In this embodiment, Figure 1 The helmet posture measurement system shown applies the posture measurement method provided by this invention, and is compared with the posture measurement method using the traditional ORB algorithm. The results are shown in the table below:

[0118] How to use Root mean square error Maximum error Single measurement time ORB+EPnP 0.083 0.179 0.092 The method of this invention + EPNP 0.087 0.180 0.028

[0119] All error units are degrees; the smaller the number, the smaller the error and the higher the accuracy of the method. The time unit is seconds; the smaller the number, the faster the measurement speed of the method.

[0120] An electronic device includes: a memory and processors interconnected, the memory storing computer instructions, and the processors executing the computer instructions to perform the attitude measurement method for tracking feature points in a point cloud image as described above.

[0121] A computer storage medium storing computer instructions for causing a computer to perform the pose measurement method for tracking feature points in a point cloud image as described in any of the preceding claims.

[0122] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. The solutions in the embodiments of the present invention can be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.

[0123] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0124] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0125] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0126] As can be seen from the table, the method proposed in this invention significantly improves the measurement speed of attitude measurement while maintaining high measurement accuracy. The method proposed in this invention can be applied to attitude measurement applications requiring both high accuracy and speed.

Claims

1. A method for attitude measurement through feature point tracking in a point cloud image, characterized in that: Includes the following steps: S1: Acquire stereo sequence images of a fixed scene model, use the ORB algorithm to extract features from the stereo sequence images to obtain feature points, and match feature points of adjacent images; S2: The matching feature points obtained in step S1 are used to calculate three-dimensional points using triangulation to generate a three-dimensional point cloud of a fixed scene model. S3: Acquire monocular images of a fixed scene model during the measurement process, and use a point cloud image bidirectional matching algorithm to obtain matching point pairs between the 3D point cloud and the initial measurement image to obtain a point cloud image tracking point library; The point cloud image bidirectional matching algorithm in step S3 specifically includes the following steps: S3-1: Based on the 3D point cloud Compared with the initial measurement image Descriptor similarity between points to be matched is used to construct a score matrix between points to be matched. ,in: In the formula, For set The Middle Descriptors of points to be matched For set The Middle Descriptors of points to be matched For set The Middle One set of points to be matched The Middle Descriptor similarity scores between the points to be matched; S3-2: Solving the matching probability matrix between points to be matched using a bidirectional softmax function. for: In the formula, For set The Middle One set of points to be matched The matching probability among all points to be matched in the dataset. For set The Middle One set of points to be matched The matching probability among all points to be matched in the dataset. For set The Middle One set of points to be matched The Middle The probability of matching a point to be matched; S3-3: Filter out all matching probabilities in the probability matrix that are greater than a specific threshold. (point pairs) For the final matched point pairs, save them as a point cloud image tracking point library; S4: Using the point cloud image matching feature point tracking algorithm, track the point cloud image tracking point library obtained in step S3, collect new measurement images of the fixed scene model, obtain 2D-3D matching point pairs between the subsequent measurement images and the 3D point cloud, and update the point cloud image tracking point library with the new 2D-3D matching point pairs. The point cloud image matching feature point tracking algorithm in step S4 specifically includes the following steps: S4-1: Initialization ; S4-2: Constructing the first... using Gaussian convolution and downsampling Frame Image With the Frame measurement image The image pyramid; S4-3: Calculate the initial optical flow layer by layer from the top of the pyramid downwards. With residual optical flow The initial optical flow The calculation formula is: In the formula, The number of pyramid levels; S4-4: Calculate the... Frame Image The tracking points and the first Frame measurement image Squared difference of gray values ​​at tracking points: In the formula, The coordinates of the point to be tracked. The size of the neighborhood window. The magnitude of optical flow. For image The grayscale value of the midpoint coordinates; S4-5: Find the value with the smallest squared difference of grayscale values This is the final remaining optical flow; S4-6: Obtain the first... based on the final optical flow obtained... Frame measurement image Coordinates of the tracking point , obtain the Frame measurement image The feature point library of the point cloud image is updated by matching 2D-3D point pairs with the 3D point cloud. S4-7: Add a new measurement image, let Repeat steps S4-2 to S4-6 until the measurement process is complete; S5: Using the EPnP algorithm, perform pose calculation on the 2D-3D matching point pairs obtained in step S4, and calculate the rotation matrix of the current measurement image relative to the world coordinate system. R .

2. The pose measurement method for point cloud image feature point tracking according to claim 1, characterized in that, Step S2, the triangulation method specifically includes the following steps: S2-1: Based on the camera projection model, the projection relationship between 3D points and 2D binocular matching points is established as follows: In the formula, and These are the pixel homogeneous coordinates of the two-dimensional matching point pairs. Let the coordinates be the homogeneous coordinates of a three-dimensional point. and For three-dimensional points Depth in the left and right camera coordinate systems and This is the intrinsic parameter matrix of the stereo camera. Let be the rotation and translation matrices from the world coordinate system to the left camera coordinate system. Let be the rotation and translation matrices from the world coordinate system to the right camera coordinate system; S2-2: Set the camera coordinate system of the first left-eye image as the world coordinate system. Based on the binocular calibration, obtain the transformation matrix from the world coordinate system to the camera coordinate system of the first right-eye image. The projection formula in step S2-1 can be transformed into: In the formula, It is the identity matrix. The extrinsic parameter matrix between the left and right cameras obtained from camera calibration; S2-3: Solve the overdetermined system of equations in S2-2 using the least squares method to obtain the three-dimensional points. coordinates .

3. A pose measurement system for tracking feature points in a point cloud image, characterized in that: The attitude measurement method for tracking feature points in a point cloud image as described in any one of claims 1 to 2 includes an object to be measured, a fixed scene model, and a camera unit. The camera unit is fixed on the object to be measured, and the object to be measured is mounted on a turntable, which can drive the camera unit to rotate. A fixed scene model is set within the acquisition range of the camera unit.

4. The attitude measurement system for tracking feature points in a point cloud image according to claim 3, characterized in that: The camera unit is a binocular camera module.

5. An attitude measurement device for point cloud image feature point tracking, which implements the attitude measurement method for point cloud image feature point tracking as described in any one of claims 1 to 2, characterized in that: include The acquisition module is used to acquire stereo sequence images of a fixed scene model, extract feature points from the stereo sequence images, and match feature points of adjacent images. The point cloud generation module is used to generate a 3D point cloud of a fixed scene model based on the matched feature points. The matching module is used to acquire monocular images of a fixed scene model during the measurement process, and uses a point cloud image bidirectional matching algorithm to obtain matching point pairs between the 3D point cloud and the initial measurement image to obtain a point cloud image tracking point library. The calculation module is used to acquire new measurement images of a fixed scene model, obtain matching point pairs between the subsequent measurement images and the 3D point cloud, and update the new matching point pairs to the point cloud image tracking point library. The solution module is used to perform attitude calculation on the matched point pairs and calculate the rotation matrix of the current measured image relative to the world coordinate system.

6. An electronic device, characterized in that: include: The memory and the processor are interconnected and the memory stores computer instructions. The processor executes the computer instructions to perform the attitude measurement method for tracking feature points in point cloud images according to any one of claims 1 to 2.

7. A computer storage medium, characterized in that: The computer storage medium stores computer instructions, which are used to cause the computer to execute the attitude measurement method for tracking feature points in a point cloud image as described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Multi-view high-resolution texture image and binocular three-dimensional point cloud mapping method

    CN111009030A

  • Three-dimensional model reconstruction method and device based on binocular vision reconstruction route

    CN116433843A