Method and apparatus for pose determination of in-plane non-cooperative targets
By determining the feature point coordinates of non-cooperative targets in a plane and using the RPnP algorithm combined with Euler angle calculation, the problem of high difficulty in non-cooperative target pose calculation is solved, achieving efficient and robust pose calculation, which is particularly suitable for planar objects.
Patent Information
- Application Number
- CN202311667260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-12-06
AI Technical Summary
Existing technologies for non-cooperative target pose measurement are computationally difficult and inefficient, especially in the case of planar objects, making the calculations complex and unable to meet the needs of rapid recognition.
By determining the coordinates of feature points on the non-cooperative target in the world and image coordinate systems, the pose of the non-cooperative target in the plane is calculated using the camera intrinsic matrix and the RPnP algorithm, combined with Euler angles. Two degrees of freedom are fixed to reduce singular solutions and improve the solution speed and accuracy.
It effectively reduces singular solutions in the pose calculation of non-cooperative targets in the plane, improves computational efficiency and robustness, and is particularly suitable for the pose determination of planar objects.
Smart Images

Figure CN117830398B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of spatial pose recognition technology, and in particular to a method, apparatus, storage medium and electronic device for determining the pose of a non-cooperative target in a plane. Background Technology
[0002] The position and attitude parameters of target objects have always been a key focus in fields such as intelligent driving, aerospace, industrial manufacturing, and artificial intelligence. With the rapid development of these fields, in the aerospace field, issues such as spacecraft docking and non-cooperative on-orbit satellite services have arisen. Vision-based target position and attitude measurement is a challenging problem in image processing. Using images to measure target pose is widely used in fields such as autonomous driving, space operations, and industrial manufacturing. The accuracy of target pose measurement directly affects the safety of autonomous driving.
[0003] Currently, the main pose measurement technologies include those based on satellite navigation, inertial sensors, lidar, and vision. Compared to other methods, vision-based pose measurement technology uses simpler equipment, has lower costs, offers more flexible installation options, and exhibits strong anti-interference capabilities and robustness. Based on the type of vision sensor, vision measurement can be categorized into visible light vision measurement, infrared vision measurement, and visible light and infrared vision fusion measurement. According to the number of vision sensors, it can be classified into monocular vision measurement, binocular vision measurement, and multi-view vision measurement. While traditional infrared vision measurement can adapt to all-weather environments and has good robustness, high-precision infrared vision measurement is expensive. Monocular visible light vision, on the other hand, acquires images, accurately calculates the pose of the target object, is low-cost, has mature calibration methods, and exhibits good robustness.
[0004] Visual systems perform pose measurement on targets primarily in two ways: spatial cooperative targets and spatial non-cooperative targets. In cooperative target pose measurement, the spatial constraints between target feature points are known, making pose measurement calculations relatively simple, extraction less difficult, and accuracy higher, although there are many limitations. Commonly used methods include the planar PnP method (Perspective-n-Point), tetrahedral volume method, and orthogonal iterative algorithms. Non-cooperative target pose measurement, on the other hand, does not have the many limitations of cooperative target pose measurement and does not require the target object to provide cooperative information. Compared to cooperative target pose measurement, non-cooperative target pose measurement has a wider range of applications.
[0005] Due to the lack of prior information about its own 3D structure and the significant difficulty in feature recognition and extraction, 3D reconstruction of non-cooperative targets is extremely challenging. Image matching is an unavoidable problem in pose measurement for non-cooperative targets; spatial environment, noise interference, and image distortion can all lead to mismatches. Establishing the correspondence between 3D objects and 2D image feature points is another issue. All these problems affect the robustness of target pose measurement. Therefore, improving the robustness and accuracy of pose calculation for non-cooperative targets is crucial for target measurement. Existing pose calculation methods can be broadly categorized into two types: the first involves feature extraction from the target object, calculating the correspondence between 3D points and 2D projections to determine the relative position and orientation between the target and the camera; the second method uses a global, iterative, and nonlinear optimization template matching algorithm to simplify pose calculation into a coordinate-based template matching problem, estimating the pose by calculating the coordinate system. Traditional methods for acquiring target pose information for non-cooperative targets primarily employ optical means, requiring the extraction of surface geometric features and depth information through feature detection techniques. Pose measurement using optical sensors still involves extracting target feature points, which places high demands on the resolution of optical sensors. Theoretically, the higher the resolution of the sensor, the more accurate the extraction of target feature points.
[0006] In industrial manufacturing and autonomous driving, most non-cooperative targets are planar objects. When estimating the pose of a target object, six degrees of freedom need to be considered. However, the large number of parameters to be calculated during the solution process increases the computational difficulty and reduces the computational efficiency, making it impossible to meet the requirements for rapid target recognition in specific environments. Summary of the Invention
[0007] The purpose of this disclosure is to provide a method, apparatus, storage medium, and electronic device for determining the pose of a non-cooperative target in a plane, so as to solve the problems of increased difficulty and low computational efficiency in the prior art when calculating pose.
[0008] The embodiments of this disclosure adopt the following technical solution: a method for determining the pose of a non-cooperative target in a plane, comprising: determining the position of marked feature points on the non-cooperative target in the world coordinate system. The coordinates of the feature point in the camera coordinate system and the coordinates in the image coordinate system, where the image coordinate system is the coordinate system under the phase plane of the image obtained by the camera capturing the non-cooperative target; based on the camera's intrinsic parameter matrix K and the coordinates of the feature point in the image coordinate system, the coordinates of the feature point in the camera coordinate system are determined. The coordinates below; based on the feature points in the camera coordinate system The coordinates below and the feature points in the world coordinate system The coordinates below determine the world coordinate system. Transform to the camera coordinate system The rotation and translation matrices are given, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system The origin For the centroid of non-cooperative objectives, With the camera coordinate system The axes are parallel and their positive directions are consistent; the planes within the camera coordinate system are parallel. Plane in the world coordinate system No rotation occurs; the world coordinate system is determined based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle And, in conjunction with the translation matrix, determine the non-cooperative target relative to the camera coordinate system. The position.
[0009] This disclosure also provides a pose determination device for a non-cooperative target in a plane, comprising: a first coordinate determination module, used to determine the coordinates of feature points marked on the non-cooperative target in the world coordinate system. The first module determines the coordinates of the feature point in the camera coordinate system and the second module determines the coordinates of the feature point in the image coordinate system, based on the camera's intrinsic parameter matrix K and the coordinates of the feature point in the image coordinate system. The second module determines the coordinates of the feature point in the camera coordinate system and the coordinates of the feature point in the image coordinate system. The coordinates below; the extrinsic parameter determination module, used to determine the coordinates of the feature points in the camera coordinate system. The coordinates below and the feature points in the world coordinate system The coordinates below determine the world coordinate system. Transform to the camera coordinate system The rotation and translation matrices are given, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system With the center of mass as the origin , With the camera coordinate system The axes are parallel and their positive directions are consistent; the planes within the camera coordinate system are parallel. Plane in the world coordinate system No rotation occurs; the pose determination module is used to determine the world coordinate system based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle And, in conjunction with the translation matrix, determine the non-cooperative target relative to the camera coordinate system. The position.
[0010] This disclosure also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described method for determining the pose of a non-cooperative target in a plane.
[0011] This disclosure also provides an electronic device, including at least a memory and a processor. The memory stores a computer program, and the processor, when executing the computer program in the memory, implements the steps of the above-described method for determining the pose of a non-cooperative target in a plane.
[0012] The beneficial effects of this disclosure are as follows: by taking advantage of the characteristics of non-cooperative targets on the plane relying on the ground or other planes, and by fixing two degrees of freedom of the non-cooperative targets, the singular solutions existing in their pose calculation are effectively reduced, the pose calculation rate is improved, and good calculation accuracy and robustness are achieved. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in one or more embodiments of this specification or in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 This is a flowchart of the pose determination method for a non-cooperative target in a plane according to the first embodiment of this disclosure; Figure 2 This is a schematic diagram illustrating the pose solving rates of various methods in the first embodiment of this disclosure; Figure 3 This is a schematic diagram showing the rotation matrix error determined by each method in the first embodiment of this disclosure based on the experimental data provided in Table 1; Figure 4 This is a schematic diagram showing the translation matrix error determined by each method in the first embodiment of this disclosure based on the experimental data provided in Table 1; Figure 5 This is a schematic diagram showing the rotation matrix error determined by each method in the first embodiment of this disclosure based on the experimental data provided in Table 2; Figure 6 This is a schematic diagram showing the translation matrix error determined by each method in the first embodiment of this disclosure based on the experimental data provided in Table 2; Figure 7 This is a schematic diagram showing the key corner points of the small tracked ground unmanned platform in the first embodiment of this disclosure; Figure 8 This is a schematic diagram showing the key corner points of the small tracked ground unmanned platform in the first embodiment of this disclosure; Figure 9 This is a schematic diagram showing the key corner points of the small tracked ground unmanned platform in the first embodiment of this disclosure; Figure 10 This is a schematic diagram showing the pose visualization results of a small tracked unmanned ground platform in the first embodiment of this disclosure; Figure 11 This is a schematic diagram showing the pose visualization results of a small tracked unmanned ground platform in the first embodiment of this disclosure; Figure 12 This is a schematic diagram showing the pose visualization results of a small tracked unmanned ground platform in the first embodiment of this disclosure; Figure 13 This is a schematic diagram showing the pose visualization results of a small tracked unmanned ground platform in the first embodiment of this disclosure; Figure 14 This is a schematic diagram of the pose determination device for a non-cooperative target in a plane according to the second embodiment of this disclosure. Detailed Implementation
[0015] To enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of this document.
[0016] To address the increased difficulty and low computational efficiency in pose calculation in existing technologies, the first embodiment of this disclosure provides a method for determining the pose of a non-cooperative target in a plane, the flowchart of which is shown below. Figure 1 As shown, it mainly includes steps S10 to S40: S10, Determine the feature points marked on the non-cooperative target in the world coordinate system. The coordinates in the image coordinate system and the coordinates in the image coordinate system.
[0017] The image coordinate system is the coordinate system under the phase plane of the image obtained by the camera capturing a non-cooperative target. Feature points in the image coordinate system can be directly determined based on the image. World coordinate system. Then refer to the camera coordinate system Establish corresponding camera coordinate system It is a coordinate system established based on the characteristics of the camera, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system The origin For the centroid of non-cooperative objectives, With the camera coordinate system The axes are parallel and their positive directions are consistent. Since the non-cooperative target identified in this embodiment exists on a plane, the plane within the camera coordinate system can be defined. Plane in the world coordinate system No rotation occurs.
[0018] In this embodiment, images of the non-cooperative target are captured by a camera, and distances to various feature points on the non-cooperative target are measured using devices such as a laser rangefinder, thereby obtaining its coordinates in the world coordinate system. The coordinates are shown below. It is important to note that feature points are mainly manually marked by humans. When the camera captures images of the non-cooperative target from different angles, it is essential to ensure that each image clearly includes at least four feature points to guarantee the normal progress and accuracy requirements of subsequent calculations.
[0019] In some embodiments, it is necessary to match feature points in the image using the Scale Invariant Feature Transform (SIFT) algorithm, that is, to match the coordinates of the feature point in the image coordinate system with the coordinates of the feature point in the world coordinate system, so as to ensure that subsequent calculations can be performed under the condition of correct matching.
[0020] In some embodiments, the Random Sample Consensus Algorithm (RANSAC) can be used to remove invalid outliers and mismatches, further improving the matching rate. Both RANSAC and SIFT algorithms are commonly used in data processing. In actual implementation, other algorithms or methods with the same functionality can be selected for corresponding processing; these will not be described in detail in this embodiment.
[0021] S20, based on the camera's intrinsic parameter matrix K and the coordinates of the feature points in the image coordinate system, determine the coordinates of the feature points in the camera coordinate system. The coordinates below.
[0022] The camera's intrinsic parameter matrix K can be determined based on parameters such as the resolution, pixel size, camera focal length, and sensor size of the images captured by the camera. The specific calculation method will not be detailed in this embodiment. After determining the intrinsic parameter matrix K, the feature points in the camera coordinate system can be obtained. The coordinates below facilitate the calculation of the camera extrinsic matrix (i.e., world coordinate system). Transform to camera coordinate system Determining the rotation and translation matrices.
[0023] S30, based on feature points in the camera coordinate system The coordinates of the feature points in the world coordinate system Determine the world coordinate system using the coordinates below. Transform to camera coordinate system The rotation and translation matrices.
[0024] The Robust Perspective-n-Point (RPnP) algorithm is a fast and robust PnP solution method. It achieves satisfactory computational results when dealing with a limited number of 2D-3D points. Its main idea is to establish an orthogonal reference coordinate system between the world coordinate system and the camera coordinate system. Transform the coordinates from the world coordinate system to the reference coordinate system, and obtain the coordinates of the reference coordinate system through trigonometric constraints. The representation of axes in the camera coordinate system makes the solution of the transformation matrix between the reference coordinate system and the camera coordinate system more accurate, thereby obtaining the rotation matrix and translation matrix between the world coordinate system and the camera coordinate system.
[0025] Specifically, for n feature points in the world coordinate system Select the side with the longest projection length from among multiple projection points projected onto the normalized plane. Rotate as the axis of rotation, and establish a reference coordinate system accordingly. , The midpoint is the origin of the reference coordinate system. direction and Since the directions are the same, the solution can then be performed based on the conventional RPnP algorithm steps. Axis in camera coordinate system The following representation is used to determine the meaning, namely: .
[0026] Then, the reference coordinate system is determined based on the following formula (1). To the camera coordinate system Transformation matrix between : (1) in, For any rotation matrix, its first row equal to the axis of rotation direction, , The selection of the rotation matrix must satisfy the following conditions. orthogonal constraints; Indicates rotation around the axis Rotation horn, , Then the projection points are normalized to the image coordinate system as shown in formula (2): (2) in, The normalized image coordinates of the projection points. Translation vector .
[0027] In the actual solution of formula (2), based on the plane With plane Given its non-rotational property, we assign c a value of 1 and s a value of 0, and solve equation (2) using singular value decomposition to obtain the reference coordinate system. To the camera coordinate system Transformation matrix between Translation vector At this point, by assigning constraints to c and s, an additional constraint can be provided when solving the formula. When solving for unknown parameters based on known points, the amount of parameter calculation can be effectively reduced.
[0028] Determining the reference coordinate system To the camera coordinate system Transformation matrix between Translation vector Then, by substituting the coordinates of the feature points in the camera coordinate system, the world coordinate system can be obtained using the absolute orientation method. Transform to camera coordinate system rotation matrix Translation matrix That is, the extrinsic parameter matrix of the camera.
[0029] S40, Determine the world coordinate system based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle By combining the translation matrix, the non-cooperative target relative to the camera coordinate system is determined. The position.
[0030] The pose of the non-cooperative target determined in this embodiment mainly refers to the representation of the non-cooperative target in the camera coordinate system. In order to reduce the calculation, and at the same time, taking advantage of the fact that planar objects have a fixed axis of rotation, the target object does not need to consider its pitch angle when it moves on the quasi-plane, which can reduce the complex calculation process of pose calculation and reduce the calculation time.
[0031] Specifically, using Euler angles to the world coordinate system Transform to camera coordinate system The rotation matrix is represented as shown in formula (3): (3) in, Represents the world coordinate system Transform to camera coordinate system The rotation matrix, These correspond to the yaw angle, roll angle, and pitch angle, respectively. Since the non-cooperative target calculated in this embodiment is ground-based, and the embodiment limits the plane within the camera coordinate system... Plane in the world coordinate system No rotation occurs, thus allowing for a defined pitch angle. The value is 0, that is, the pitch angle. The corresponding rotation matrix .
[0032] make The representation of is: = Then we can obtain the following set of formulas (4): (4) Then the corresponding attitude angle and The solution is: (5), Finally, combining the rotation matrix determined in step S30 This allows for the determination of the yaw angle. and roll angle The specific values are then solved, and further combined with the translation matrix. This allows us to obtain the non-cooperative target relative to the camera coordinate system. The position.
[0033] This embodiment leverages the characteristic of non-cooperative targets on a plane relying on the ground or other planes. By fixing two degrees of freedom of the non-cooperative target, it effectively reduces singular solutions in pose calculation, improves pose calculation speed, and has good calculation accuracy and robustness.
[0034] In some embodiments, visualization tools, such as ICP tools, can be used to visualize the pose of the non-cooperative target on the images captured by the camera, so that observers can intuitively obtain the pose information.
[0035] To further verify the reliability, stability, and real-time performance of the method proposed in the above embodiments, the proposed method is compared with existing methods, including iterative and non-iterative methods. Iterative methods employ EPnP combined with the Gauss-Newton algorithm for iterative solution and an orthogonal iterative method (LHM) that directly solves the rotation matrix for pose solution. Non-iterative methods employ the Direct Linear Transform (DLT) method to directly solve the perspective projection matrix, as well as the conventional RPnP algorithm. The above methods are compared with the method proposed in this embodiment. Experiments and calculations are conducted using a simple experimental platform and publicly available online datasets. For example, the experimental image is 1280×720 pixels, the focal length is 200mm, the sensor size is 5856μm×3276μm, and the pixel size is 3.75μm×3.75μm. Based on these parameters, the camera's intrinsic parameter matrix K is obtained as follows: K= ; Figure 2 The pose solving rates of various methods are shown. By comparing the computational efficiency of different methods, the number of target reference points was increased from 4 to 100, and 1000 independent experiments were conducted for each group of experiments. It can be clearly seen from the figure that the computational efficiency of the method in this embodiment is higher than that of the iterative algorithm of LHM and EPnP combined with GN. At the same time, the computational efficiency is also slightly higher than that of the RPnP algorithm and DLT algorithm in this embodiment. When the number of points does not exceed 100, the average calculation time is less than 25ms, which can effectively perform real-time calculation.
[0036] Tables 1 and 2 provide the simulation data for the image coordinates and world coordinates of the feature points required for the experiment: Table 1
[0037] Table 2
[0038] Figure 3 The rotation matrix error is determined by each method based on the experimental data provided in Table 1. Figure 4 The translation matrix error is determined by each method based on the experimental data provided in Table 1. Figure 5 The rotation matrix error is determined by each method based on the experimental data provided in Table 2. Figure 6The translation matrix error is determined for each method based on the experimental data provided in Table 2. Pose calculation was performed on two sets of planar data collected from simulation experiments, and error analysis was conducted to compare the accuracy and stability of different algorithms. For the first set of data, in the non-planar case, the method proposed in this embodiment effectively guarantees good rotation accuracy and can effectively reduce rotation matrix error as the number of feature points increases, but its translation matrix calculation accuracy is poor. For the planar pose calculation, the pose can be effectively calculated with 4 points, while maintaining high accuracy in rotation and translation calculations. As can be seen from the figure, the method proposed in this embodiment has higher accuracy in calculating the pose of planar objects than other methods, and its accuracy is similar to that of the conventional RPnP algorithm. However, its accuracy in calculating the pose of non-planar objects is less stable, and the reduction in calculation error is relatively small when the number of feature points is large. In summary, the method proposed in this embodiment has a larger error in calculating the pose of non-planar objects, but it can effectively calculate the pose of planar objects with high accuracy, and it is superior to other methods when the number of feature points is small.
[0039] The following is combined with Figures 7 to 13 An electro-optical reconnaissance platform mounted on a tracked unmanned ground platform was used to observe planar targets. The observed planar target was a small tracked unmanned platform. The electro-optical reconnaissance platform was used to detect the world coordinates of the target. Taking advantage of the tracked unmanned platform's ability to turn around from its center point, the tracked unmanned platform was turned in place while maintaining its center point.
[0040] The key corner points (i.e., feature points) of the small tracked unmanned ground platform in the world coordinate system are measured, and the key corner points of the small tracked unmanned ground platform are selected as follows: Figures 7 to 9 The position marked by the pentagram indicates that when the camera captures images of the small tracked unmanned ground platform from various angles, at least four feature points must be present in the captured images. The pose of the small tracked unmanned ground platform is calculated using the method provided in this embodiment, and the pose of the planar target is expressed using visualization tools, resulting in the visualization results shown below. Figures 10 to 13 As shown.
[0041] Based on the same inventive concept, the second embodiment of this disclosure provides a pose determination device for a non-cooperative target in a plane, the structural schematic diagram of which is shown below. Figure 14 As shown, it mainly includes a first coordinate determination module 10, a second coordinate determination module 20, an external parameter determination module 30, and a pose determination module 40; wherein, the first coordinate determination module 10 is used to determine the feature points marked on the non-cooperative target in the world coordinate system. The first coordinate is the coordinate in the camera coordinate system and the second coordinate determination module 20 is the coordinate in the image coordinate system, where the image coordinate system is the coordinate system under the phase plane of the image obtained by the camera capturing the non-cooperative target; the second coordinate determination module 20 is used to determine the coordinates of the feature point in the camera coordinate system based on the camera's intrinsic parameter matrix K and the coordinates of the feature point in the image coordinate system. The coordinates below; the extrinsic parameter determination module 30 is used to determine the coordinates based on the feature points in the camera coordinate system. The coordinates of the feature points in the world coordinate system Determine the world coordinate system using the coordinates below. Transform to camera coordinate system The rotation and translation matrices are given, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system With the center of mass as the origin , With the camera coordinate system The axes are parallel and their positive directions are consistent; the planes in the camera coordinate system are parallel. Plane in the world coordinate system No rotation occurs; the pose determination module 40 is used to determine the world coordinate system based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle By combining the translation matrix, the non-cooperative target relative to the camera coordinate system is determined. The position.
[0042] In some embodiments, the extrinsic parameter determination module 30 is specifically used to: establish an orthogonal reference coordinate system based on the projection points of feature points on the normalized plane. and determine Axis in camera coordinate system The following is a representation; The reference coordinate system is determined based on the following formula (1). To the camera coordinate system Transformation matrix between ; (1) in, For any rotation matrix, its first row equal to the axis of rotation direction, , The selection of the rotation matrix must satisfy the following conditions. orthogonal constraints; Indicates rotation around the axis Rotation horn, , ; The projection points are normalized to the image coordinate system as shown in formula (2): (2) in, The normalized image coordinates of the projection points. Translation vector ; Based on the plane With plane Given its non-rotational property, we assign c a value of 1 and s a value of 0, and solve equation (2) using singular value decomposition to obtain the reference coordinate system. To the camera coordinate system Transformation matrix between Translation vector ; Substitute the coordinates of the feature points in the camera coordinate system and use the absolute orientation method to solve for the world coordinate system. Transform to camera coordinate system The rotation and translation matrices.
[0043] In some embodiments, the pose determination module 40 is specifically used to determine the world coordinate system based on Euler angles. Transform to camera coordinate system The rotation matrix is represented as shown in formula (3): (3) in, Represents the rotation matrix; make: = Then we have: (4) Yaw angle and roll angle The solution is: (5).
[0044] In some embodiments, the first coordinate determination module 10 is further configured to match feature points in the image using the scale-invariant feature transformation algorithm SIFT.
[0045] In some embodiments, the first coordinate determination module 10 is further configured to identify invalid outliers and mismatched points using the Random Sample Consensus Algorithm (RANSAC).
[0046] In some embodiments, a visualization module is also included for visualizing the pose on an image using visualization tools.
[0047] This embodiment leverages the characteristic of non-cooperative targets on a plane relying on the ground or other planes. By fixing two degrees of freedom of the non-cooperative target, it effectively reduces singular solutions in pose calculation, improves pose calculation speed, and has good calculation accuracy and robustness.
[0048] The third embodiment of this disclosure provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the pose determination method for a non-cooperative target in a plane provided in the first embodiment of this disclosure.
[0049] The fourth embodiment of this disclosure provides an electronic device, which includes at least a memory and a processor. The memory stores a computer program, and when the processor executes the computer program in the memory, it implements the steps of the pose determination method for a non-cooperative target in a plane provided in the first embodiment of this disclosure.
[0050] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this disclosure, and are not intended to limit them. Although this disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this disclosure.
Claims
1. A method for determining the pose of a non-cooperative target in a plane, characterized in that, include: Determine the feature points marked on the non-cooperative target in the world coordinate system. The coordinates under the image plane and the coordinates under the image coordinate system, wherein the image coordinate system is the coordinate system under the phase plane of the image obtained by the camera capturing the non-cooperative target; Based on the camera's intrinsic parameter matrix K and the coordinates of the feature point in the image coordinate system, determine the coordinates of the feature point in the camera coordinate system. The coordinates below; Based on the feature points in the camera coordinate system The coordinates below and the feature points in the world coordinate system The coordinates below determine the world coordinate system. Transform to the camera coordinate system The rotation and translation matrices are given, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system The origin For the centroid of non-cooperative objectives, With the camera coordinate system The axes are parallel and their positive directions are consistent; the planes within the camera coordinate system are parallel. Plane in the world coordinate system No rotation occurs; The world coordinate system is determined based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle And, in conjunction with the translation matrix, determine the non-cooperative target relative to the camera coordinate system. The position.
2. The pose determination method according to claim 1, characterized in that, The feature points in the camera coordinate system The coordinates below and the feature points in the world coordinate system The coordinates below determine the world coordinate system. Transform to the camera coordinate system The rotation and translation matrices include: An orthogonal reference coordinate system is established based on the projection points of the feature points onto the normalized plane. and determine The axis in the camera coordinate system The following is a representation; The reference coordinate system is determined based on the following formula (1). to the camera coordinate system Transformation matrix between ; (1) in, For any rotation matrix, its first row equal to the axis of rotation direction, , The selection of the rotation matrix must satisfy the following conditions. orthogonal constraints; Indicates rotation around the axis Rotation horn, , ; The projection points are normalized to the image coordinate system as shown in formula (2): (2) in, The normalized image coordinates of the projection points, Translation vector ; Based on the plane With the plane Given its non-rotational property, c is assigned a value of 1 and s a value of 0. Singular value decomposition is used to solve formula (2) to obtain the reference coordinate system. to the camera coordinate system Transformation matrix between and the translation vector ; By substituting the coordinates of the feature points in the camera coordinate system, the world coordinate system is solved using the absolute orientation method. Transform to the camera coordinate system The rotation and translation matrices.
3. The pose determination method according to claim 1, characterized in that, The world coordinate system is determined based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle ,include: Based on Euler angles, the world coordinate system Transform to the camera coordinate system The rotation matrix is represented as shown in formula (3): (3) in, Represents the rotation matrix; make: = Then we have: (4) Yaw angle and roll angle The solution is: (5)。 4. The pose determination method according to claim 1, characterized in that, Feature points marked on non-cooperative targets in the world coordinate system Before the coordinates in the image coordinate system and the coordinates in the image coordinate system, it also includes: The feature points in the image are matched using the Scale Invariant Feature Transform (SIFT) algorithm.
5. The pose determination method according to claim 1, characterized in that, Feature points marked on non-cooperative targets in the world coordinate system Before the coordinates in the image coordinate system and the coordinates in the image coordinate system, it also includes: Invalid outliers and mismatches are identified using the Random Sample Consensus Algorithm (RANSAC).
6. The pose determination method according to claim 1, characterized in that, Determine the non-cooperative target relative to the camera coordinate system Following the pose, it also includes: The pose is visualized on the image using visualization tools.
7. The pose determination method according to any one of claims 1 to 6, characterized in that, Each of the images includes at least four feature points.
8. A pose determination device for a non-cooperative target in a plane, characterized in that, include: The first coordinate determination module is used to determine the coordinates of the feature points marked on the non-cooperative target in the world coordinate system. The coordinates under the image plane and the coordinates under the image coordinate system, wherein the image coordinate system is the coordinate system under the phase plane of the image obtained by the camera capturing the non-cooperative target; The second coordinate determination module is used to determine the coordinates of the feature point in the camera coordinate system based on the camera's intrinsic parameter matrix K and the coordinates of the feature point in the image coordinate system. The coordinates below; The extrinsic parameter determination module is used to determine the feature points in the camera coordinate system. The coordinates below and the feature points in the world coordinate system The coordinates below determine the world coordinate system. Transform to the camera coordinate system The rotation and translation matrices are given, where the optical center of the camera is the origin. The optical axis is The axes are the horizontal and vertical directions of the image plane captured by the camera. shaft and Axis, world coordinate system With the center of mass as the origin , With the camera coordinate system The axes are parallel and their positive directions are consistent; the planes within the camera coordinate system are parallel. Plane in the world coordinate system No rotation occurs; The pose determination module is used to determine the world coordinate system based on the rotation matrix. In the camera coordinate system Yaw angle and roll angle And, in conjunction with the translation matrix, determine the non-cooperative target relative to the camera coordinate system. The position.
9. A storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the pose determination method for a non-cooperative target in a plane as described in any one of claims 1 to 7.
10. An electronic device, comprising at least a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program on the memory, it implements the steps of the pose determination method for a non-cooperative target in a plane as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Coordinate conversion method for camera sampling point
CN108628808A
Monocular vision pose estimation method based on coplanar target
CN113379840A
