Spatial circle pose measurement system, spatial circle pose measurement method and spatial circle pose measurement device

By setting up multiple cameras between the docking surfaces of large-scale rotary components, collecting images from different quadrants and performing ellipse fitting processing, combined with the external parameters and geometric constraints of the multiple cameras, high-precision measurement of the pose parameters of the docking surfaces is achieved, solving the problem This solves the problem of balancing measurement accuracy and range in the existing technology, and improves docking efficiency and accuracy.

CN118654630APending Publication Date: 2024-09-17BEIJING INST OF TECH +1
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410655143.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the process of automatic docking of large rotary components, there are limitations in the existing technology in how to achieve high-precision measurement of the docking surface pose parameters, which not only meets the requirements of measurement distance and range, but also takes into account the accuracy requirements.

Method used

Design a spatial circular pose measurement system that collects target images in different quadrants by setting up multiple cameras between the docking surfaces. It uses ellipse fitting processing and feature point extraction, combined with the external parameters and geometric constraints of multiple cameras, to perform positioning. Optimize posture measurement to achieve high-precision posture parameter measurement.

Benefits of technology

It improves the accuracy and docking efficiency of the docking surface pose measurement of large rotary components, meets sub-millimeter level measurement accuracy requirements, and reduces system complexity and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118654630A
    Figure CN118654630A
Patent Text Reader

Abstract

The invention provides a spatial circle pose measurement system, a spatial circle pose measurement method and a spatial circle pose measurement device. The spatial circle pose measurement method is applied to the spatial circle pose measurement system. The spatial circle pose measurement method comprises the following steps: acquiring a target image acquired by a first camera, wherein the target image comprises a plurality of edge hole images of a spatial circle to be measured; for any one of the plurality of edge hole images, determining a preset position of the edge hole image as a feature point of the edge hole image; determining a first positioning hole projection point and a second positioning hole projection point; based on the first positioning hole projection point, the second positioning hole projection point, the short axis estimation point and the plurality of feature points, performing ellipse fitting processing to obtain an ellipse curve; and determining a pose measurement result of the to-be-measured space circle based on the elliptic curve. According to the embodiment of the invention, high-precision measurement of the position and posture parameters of the butt joint surface of the large rotary body component can be realized in the butt joint process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of calibration technology, and in particular to a space circular posture measurement system, a space circular posture measurement method and a space circular posture measurement device. Background Art

[0002] The main part of a spacecraft is usually composed of multiple large rotating parts, such as rocket compartments, missile launch compartments, and aircraft fuselage compartments. These parts are large in size, high in processing precision, thin in wall, and their docking surfaces are circular. In the process of automatic docking of two large rotating parts, the high-precision measurement of the relative posture parameters of the docking surfaces of the two rotating parts can provide data support for their automatic docking, which is of great significance to improving docking efficiency, docking precision and consistency.

[0003] The measurement distance and measurement range are the key factors that determine the measurement accuracy of the joint surface posture. However, due to the size of large workpieces and the accuracy requirements of automatic docking, the two cannot usually be taken into account at the same time, which poses a challenge to the high-precision measurement of posture parameters.

[0004] Therefore, how to achieve high-precision measurement of the joint surface posture parameters of large rotating parts during the docking process is an urgent problem to be solved. Summary of the invention

[0005] In view of this, the present disclosure proposes a space circular posture measurement system, a space circular posture measurement method and a device for realizing high-precision measurement of posture parameters of docking surfaces of large rotating body parts during docking.

[0006] A first aspect of the present disclosure provides a space circular pose measurement system, the space circular pose measurement system comprising:

[0007] A first camera, a second camera, and a third camera arranged relatively to a first space circle to be measured and a second space circle to be measured, and arranged between the first space circle to be measured and the second space circle to be measured;

[0008] The first space circle to be measured includes a first group of edge holes arranged around the edge of the circle, and the second space circle to be measured includes a second group of edge holes arranged around the edge of the circle;

[0009] The optical axis angle between the first camera and the second camera is a preset angle; the optical axis angle between the first camera and the third camera is the preset angle; the first camera, the second camera and the third camera are respectively arranged in different quadrants;

[0010] The first camera, the second camera and the third camera respectively capture target images within the field of view, and the target image captured by any camera includes the first edge hole imaging and the second edge hole imaging within the field of view of the camera; each target image is used for spatial circular pose measurement.

[0011] In the disclosed embodiment, a first camera, a second camera and a third camera are arranged between a first spatial circle to be measured and a second spatial circle to be measured, and the first camera, the second camera and the third camera are respectively arranged in different quadrants. Through this camera arrangement method, target images including first edge hole imaging and second edge hole imaging in different quadrants of the spatial circle to be measured can be obtained, and the spatial circle pose measurement can be performed using the target image, which can achieve high-precision measurement of the spatial circle pose, and further contribute to improving the efficiency of automatic docking of the two spatial circles to be measured.

[0012] The embodiment of the second aspect of the present disclosure provides a space circular pose measurement method, characterized in that the method is applied to the space circular pose measurement system according to the first aspect; the method comprises:

[0013] Acquire a target image captured by a first camera, wherein the target image includes a plurality of edge hole images of a space circle to be measured; the space circle to be measured is the first space circle to be measured or the second space circle to be measured described in the first aspect;

[0014] For any one edge hole imaging among the plurality of edge hole imaging, determining a preset position of the edge hole imaging as a feature point of the edge hole imaging;

[0015] Determine a first positioning hole projection point and a second positioning hole projection point; the first positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the second camera coordinate system; the second positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the third camera viewing angle coordinate system;

[0016] Based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and the plurality of feature points, an ellipse fitting process is performed to obtain an ellipse curve;

[0017] Based on the elliptic curve, a measurement result of the circular position and posture of the space to be measured is determined.

[0018] In the disclosed embodiment, ellipse fitting processing is performed through the first positioning hole projection point, the second positioning hole projection point, the short axis estimation point and multiple feature points to obtain an elliptical curve, and then the pose measurement result of the space circle to be measured is determined, which can effectively improve the pose measurement accuracy when the imaging features of the space circle are incomplete, thereby improving the docking efficiency of the space circle.

[0019] In an embodiment of the present disclosure, the pose measurement result includes a plurality of pose parameters in the first camera coordinate system; the method further includes:

[0020] According to the external parameters between the first camera, the second camera and the third camera, a plurality of pose parameters in the first camera coordinate system are respectively converted into the second camera coordinate system and the third camera coordinate system to obtain corresponding elliptic curves;

[0021] Establishing a first constraint function based on geometric distances from feature points in the first camera, the second camera, and the third camera to corresponding elliptic curves;

[0022] Establishing a second constraint function based on geometric distances from feature points in the first camera, the second camera, and the third camera to corresponding projection points;

[0023] Based on the first constraint function and the second constraint function, an objective function is established; the objective function is used to optimize the posture measurement result.

[0024] In the embodiment of the present disclosure, by establishing a first constraint function and a second constraint function, and establishing an objective function based on the first constraint function and the second constraint function, and optimizing the pose measurement results through the objective function, discrete point sets in different quadrants can jointly optimize the pose estimation results, thereby improving the accuracy of the pose measurement results.

[0025] In an embodiment of the present disclosure, the edge hole imaging includes circular imaging; for any one of the plurality of edge hole imaging, determining a preset position of the edge hole imaging as a feature point of the edge hole imaging includes:

[0026] If the edge hole imaging is a circular imaging, the center of the circular imaging is extracted as the first feature point;

[0027] If the edge hole imaging is an elliptical imaging, the geometric center of the elliptical imaging is extracted as the second feature point.

[0028] In the embodiment of the present disclosure, if the edge hole imaging is a circular imaging, the center of the circular imaging is extracted as the first feature point, including:

[0029] Determine a plurality of first circular images and a plurality of circle centers corresponding to the plurality of first circular images one by one from the plurality of edge hole images; the plurality of first circular images include falsely detected circles in the environment;

[0030] Based on the multiple circle centers, a plurality of second circular images are determined from the multiple first circular images; the multiple second circular images are multiple first circular images that do not include the falsely detected circle;

[0031] The centers of the plurality of second circular images are extracted as first feature points.

[0032] In an embodiment of the present disclosure, based on the multiple circle centers, determining multiple second circular images from the multiple first circular images includes:

[0033] Determine a starting point from the multiple circle centers; the starting point is the center of the first circular image with the largest radius;

[0034] Determine a target point based on the starting point and a preset range;

[0035] Taking the distance and slope between the starting point and the target point as the preset range, taking the target point as the starting point, and repeating the step of determining the target point based on the starting point and the preset range until the target point cannot be determined;

[0036] The first circular imaging corresponding to the starting point and the multiple first circular imaging corresponding to the multiple target points are used as the second circular imaging.

[0037] In the embodiment of the present disclosure, if the edge hole imaging is an elliptical imaging, the geometric center of the elliptical imaging is extracted as the second feature point, including:

[0038] Determine a growth vector based on a first target feature point and a second target feature point; the first target feature point is the first second feature point or the last second feature point in the middle area of ​​the target image; the second target feature point is the second feature point in the middle area that is closest to the first target feature point; the middle area contains a plurality of second feature points;

[0039] Determining a prediction area based on the first target feature point and the growth vector;

[0040] Taking the geometric center of the ellipse imaging in the prediction area as the first target feature point, and repeating the step of determining the prediction area based on the first target feature point and the growth vector until the prediction area exceeds the image boundary of the target image;

[0041] The geometric center of the ellipse imaging in each prediction area is extracted as the second feature point.

[0042] In the disclosed embodiment, by taking the geometric center of the elliptical imaging within the prediction area as the first target feature point, repeating the step of determining the prediction area based on the first target feature point and the growth vector until the prediction area exceeds the image boundary of the target image, and extracting the geometric center of the elliptical imaging within each prediction area as the second feature point, the time for extracting discrete point features can be effectively shortened and the accuracy of feature extraction can be improved.

[0043] The third aspect of the present disclosure provides a space circle docking method, the method comprising:

[0044] Under the condition that the first space circle to be measured remains stationary, determining a second position and posture measurement result of the second space circle to be measured by the space circle position and posture measurement method described in the second aspect;

[0045] Based on the second posture measurement result, the first space circle to be measured and the second space circle to be measured are docked.

[0046] The fourth aspect of the present disclosure provides a spatial circular posture measurement device, the device comprising:

[0047] An image acquisition module, used to acquire a target image captured by the first camera, wherein the target image includes a plurality of edge hole images of a space circle to be measured; the space circle to be measured is the first space circle to be measured or the second space circle to be measured described in the first aspect;

[0048] A feature point extraction module, for determining a preset position of any one edge hole imaging among the plurality of edge hole imaging as a feature point of the edge hole imaging;

[0049] A positioning hole projection point determination module is used to determine a first positioning hole projection point and a second positioning hole projection point; the first positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the second camera coordinate system; the second positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the third camera viewing angle coordinate system;

[0050] An elliptic curve generating module, configured to perform ellipse fitting processing based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and a plurality of feature points to obtain an elliptic curve;

[0051] A posture measurement result determination module is used to determine the posture measurement result of the space circle to be measured based on the elliptic curve.

[0052] An embodiment of the fifth aspect of the present disclosure provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to enable a computer to execute the spatial circle posture measurement method described in the second aspect, or the spatial circle docking method described in the third aspect.

[0053] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will become apparent from the following description or be learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present disclosure. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0055] Figure 1 A schematic structural diagram of a space circular posture measurement system provided by an embodiment of the present disclosure is shown;

[0056] Figure 2 A schematic diagram showing the arrangement positions of three cameras in an embodiment of the present disclosure;

[0057] Figure 3 A schematic diagram showing the middle area and the two side areas in an embodiment of the present disclosure is shown;

[0058] Figure 4 A schematic diagram showing the field of view of a camera in an embodiment of the present disclosure is shown;

[0059] Figure 5 A schematic diagram showing the field of view of a camera in an embodiment of the present disclosure is shown;

[0060] Figure 6 A schematic diagram of a flow chart of a method for measuring a spatial circular posture provided by an embodiment of the present disclosure is shown;

[0061] Figure 7 A schematic diagram showing feature growth in an embodiment of the present disclosure is shown;

[0062] Figure 8 A schematic diagram showing the position of the positioning projection point in one embodiment of the present disclosure is shown;

[0063] Fig. 9 A schematic diagram of a positioning hole position parameter measurement model in an embodiment of the present disclosure is shown;

[0064] Fig.10 A schematic diagram showing a short axis estimation point set in an embodiment of the present disclosure is shown;

[0065] Fig.11 A schematic diagram showing the geometric distance from a feature point to an elliptic curve in an embodiment of the present disclosure is shown;

[0066] Fig.12 A schematic diagram showing geometric constraints in an embodiment of the present disclosure is shown;

[0067] Fig.13 A schematic diagram of a space circular coordinate system in an embodiment of the present disclosure is shown;

[0068] Fig.14 A schematic structural diagram of a space circular posture measurement device provided by an embodiment of the present disclosure is shown;

[0069] Fig.15 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown;

[0070] Fig.16 A schematic diagram of a storage medium provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0071] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0072] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in the present disclosure should have the common meanings understood by those skilled in the art to which the present disclosure belongs.

[0073] The following describes the technical scenarios involved in the embodiments of the present disclosure.

[0074] At present, most large rotating workpieces still rely on manual alignment for docking, which leads to low docking efficiency and poor docking consistency. Therefore, how to achieve high-precision measurement of the posture parameters of large rotating parts during the docking process is an urgent problem to be solved.

[0075] The development of large-scale measurement technology provides technical support for the high-precision measurement of the pose parameters of large rotating workpieces. Common large-scale measurement methods mainly include laser tracking measurement, radar measurement, iGPS measurement and visual measurement. Although laser tracking measurement, radar measurement and iGPS measurement have the advantages of high pose measurement accuracy and wide measurement range, they still have certain limitations. For example, the laser tracker needs to install multiple target balls on the target for measurement, and the iGPS measurement system has complex networking, and there are problems such as complex system and high measurement cost. In comparison, visual measurement technology has the advantages of non-contact, low cost and high precision. For example, based on the principle of binocular measurement, the relative pose parameters of the docking target are measured by measuring the pose of the target installed on the large workpiece. However, this method is a cooperative target measurement, which has very high requirements for the installation accuracy of the target. Aiming at the problem of high-precision measurement of the pose parameters of the assembly interface of large cylindrical workpieces, a measurement method based on binocular vision and prior data is proposed, which achieves sub-millimeter measurement accuracy. In this method, the normal vector of the measured characteristic hole is parallel to the axial direction of the cylindrical workpiece, and the camera field of view can completely cover the characteristic hole. For large workpieces, this puts high demands on parameters such as camera resolution. The camera resolution in this article has reached 5K+×3K+.

[0076] For non-cooperative target measurement, the visual measurement system mainly designs feature extraction algorithms and pose measurement algorithms based on the geometric features of the target itself. The docking surface of the rotating body is circular, and its imaging feature is an ellipse. The detection algorithm of the ellipse feature is mainly divided into two categories: detection algorithm based on discrete points and detection algorithm based on arc segments. Typical representatives of the former are the Hough transform algorithm and the random sampling consistency detection algorithm. Both of these algorithms map edge points to the ellipse geometric parameter space, and then use accumulators or clustering methods to obtain ellipse parameters. In addition, in order to address the shortcomings of the HT ellipse detection algorithm with large computational complexity, researchers introduced methods such as random sampling or cumulative probability statistics to improve the screening efficiency of ellipse pixel points, thereby deriving an optimized HT ellipse detection algorithm. In addition, improving the sampling efficiency of edge points or reducing the dimension of the geometric parameter space based on the geometric properties of the ellipse is another optimization direction for the HT detection algorithm.

[0077] The arc segment based ellipse detection algorithm fits the ellipse by extracting higher-level features (arc segments). Among them, arc segments can be obtained by connecting short line segments or segmenting edge contours. The ellipse arc segments are regarded as a combination of line segments (polygonal approximation). Line segments are extracted based on the fast line detection algorithm, and the least squares method is used to fit the arc segments to obtain the ellipse parameters. Arc segments are selected in a variety of ways, such as eliminating straight lines and dividing arcs into 4 quadrants. This method decomposes the ellipse parameter space and estimates the ellipse parameters using HT. In addition, the geometric property that the center of the ellipse and the midpoint of the parallel chord are collinear is used to improve the detection speed. A projection invariant is used to screen candidate ellipses, which greatly reduces the number of candidate ellipses. An ellipse detection algorithm based on curvature analysis is proposed, which greatly improves the extraction efficiency of ellipse arc segments. Due to the geometric characteristics of the ellipse feature itself, high-precision extraction requires discrete points or arc segments to cover most of the ellipse area. For example, the arc segments are divided into 4 quadrants, and it is clearly stated that at least 3 quadrants of arc segments are required to generate candidate ellipses.

[0078] For the pose estimation problem of a space circle, existing methods usually use the inverse projection model of the calibrated camera and the parameters of the projection ellipse of the space circle to solve the pose parameters. When the radius of the space circle is known, the P1C algorithm can obtain two sets of solutions, that is, using a circle to solve the pose parameters is ambiguous, and it is necessary to use auxiliary features to eliminate incorrect solutions. This type of method has high requirements on the extraction accuracy of ellipse features, and the measurement accuracy under complex background and occlusion conditions needs to be improved. To overcome this problem, a mapping function between the pose parameters of the space circle and the parameters of its projection ellipse is established. On this basis, an elliptical shape template is used to estimate the pose of the moving target, and the template is dynamically adjusted in combination with particle filtering.

[0079] In order to achieve high-precision measurement of the pose parameters of large-scale rotating workpieces, and to address the limitations of existing methods, the embodiments of the present disclosure propose a high-precision pose measurement method based on the distance constraints of discrete points in a space circle. First, in order to meet the limitations of the measurement scene and the requirements of measurement accuracy, a monocular vision measurement system for pose parameters based on multiple cameras with non-overlapping fields of view is designed. We use the designed visual measurement system to obtain discrete feature point images in different quadrants of the space circle to be measured. Then, in order to shorten the time of discrete point feature extraction and improve the accuracy of feature extraction, a feature extraction algorithm based on regional segmentation and growth is designed. The algorithm is used to extract the position of each discrete point, and the discrete points are screened and grouped to obtain a high-precision discrete point set. Next, in order to address the problem that the initial pose value error is large and it is easy to cause the pose optimization to fall into a local optimal solution, a pose initial value estimation method is designed to increase the integrity of the target imaging, and the initial pose value screening is completed based on the reprojection error. Finally, in order to make the discrete point sets in different quadrants jointly optimize the pose estimation results and improve the accuracy of the pose measurement results, a pose optimization algorithm based on the circle projection equation and discrete point distance constraints is proposed, and high-precision measurement of pose parameters is achieved through nonlinear optimization.

[0080] In this embodiment, a space circular posture measurement system is provided. Figure 1 As shown:

[0081] The space circle posture measurement system includes a first space circle 101 to be measured and a second space circle 102 to be measured, which are relatively arranged, and a first camera 103, a second camera 104 and a third camera 105 are arranged between the first space circle 101 to be measured and the second space circle 102 to be measured; the first space circle to be measured includes a first group of edge holes arranged around the circular edge, and the second space circle to be measured includes a second group of edge holes arranged around the circular edge; wherein the first group of edge holes includes a plurality of first edge holes 106, and the second group of edge holes includes a plurality of second edge holes 107.

[0082] In some specific embodiments, the first space circle 101 to be measured and the second space circle 102 to be measured can be a large rotating body component, a large cylinder, etc. The first edge hole and the second edge hole can be bolt holes. The cylinder diameter of the first space circle 101 to be measured and the second space circle 102 to be measured is 2.3m, and 144 bolt holes for docking are evenly distributed on the surface of the cylinder, including 4 12mm positioning holes and 140 10mm docking holes. The center of the space circle of the first space circle 101 to be measured is O1, the direction vector is V1, and the autorotation angle is θ1. The center of the space circle of the second space circle 102 to be measured is O2, the direction vector is V2, and the autorotation angle is θ2. The second space circle 102 to be measured remains stationary, and the two are adjusted to the same posture by adjusting the 6-DOF platform carrying the first space circle 101 to be measured, and then the docking holes are accurately aligned using the difference in the rotation angles of the two. The position measurement error should be less than 0.5mm, and the angle measurement error should be less than 0.05°.

[0083] The target parameters and measurement requirements of the first space circle 101 to be measured and the first space circle 102 to be measured are as follows:

[0084] 1. The diameter is D±ΔD, D≮2m, ΔD<<D, ΔD is the processing tolerance;

[0085] 2. N (N≮120) bolt holes for docking are evenly distributed in the circumferential direction, including 4 positioning holes with a diameter larger than that of other bolt holes;

[0086] 3. Measuring range: |O1O1|∈[0,d], d≯200mm;

[0087] 4. The posture measurement accuracy needs to meet the following requirements: position measurement error ≯E1 (E1≯0.5mm), angle measurement error ≯E2 (E2≯0.1°).

[0088] Among them, the target pose parameter is defined as the center of the circle where the bolt hole is located, O i , the normal vector V i and the rotation angle θ around the normal vector i .

[0089] The optical axis angle between the first camera 103 and the second camera 104 is a preset angle; the optical axis angle between the first camera 103 and the third camera 105 is the preset angle; the first camera 103, the second camera 104 and the third camera 105 are respectively arranged in different quadrants.

[0090] Specifically, the first camera 103, the second camera 104 and the second camera 105 are distributed in at least three quadrants. For example, when the first camera 103 is located in the first quadrant, the second camera 104 and the third camera 105 are respectively arranged in the second quadrant and the fourth quadrant. The preset angle can be 90%, and the optical axis of each camera is perpendicular to the target axis of the two space circles to be measured; and the optical axes of two adjacent cameras are perpendicular to each other. The cameras are distributed as follows: Figure 2 As shown, “Dockingsurface” represents the flat surface on which two space circles to be measured are docked.

[0091] The first camera, the second camera and the third camera respectively capture target images within the field of view, and the target image captured by any camera includes the first edge hole imaging and the second edge hole imaging within the field of view of the camera; each target image is used for spatial circular pose measurement.

[0092] Specifically, the target image collected by each camera is as follows: Figure 3 As shown: Figure 3 The first row in the image represents multiple edge hole images of a space circle to be measured (the first space circle to be measured or the second space circle to be measured), and the second row represents multiple edge hole images of another space circle to be measured. The multiple edge hole images in each row in the target image have the following characteristics: they are divided into the middle area (e.g. Figure 3 ), and both sides (such as Figure 3 The edge holes in the middle area are imaged as a circle, and the edge holes in the two side areas are imaged as ellipses. The edge holes near the camera optical axis are imaged close to a circle, while the edge holes on both sides of the edge are imaged as ellipses; the edge holes on the same space to be measured are imaged in a row, and the edge holes on the two spaces to be measured are imaged in two rows, one above the other.

[0093] In some embodiments, Figure 1 As shown in the figure, subject to the constraints of target shape and size, measurement range and measurement accuracy, a monocular vision measurement system consisting of three cameras is used to measure the pose parameters, as follows:

[0094] The imaging features of the target mainly include the bottom circle imaging arc segment and the bolt hole imaging ellipse. Compared with the former, the latter has higher extraction robustness and can provide more geometric constraints (same circle constraints and spacing constraints). Therefore, the latter is selected as the geometric feature for posture parameter measurement.

[0095] For bolt holes with equal spacing (the algorithm is also applicable to other situations where the bolt hole spacing is known), the PnP or P1C algorithm can be used to measure the pose parameters. Compared with the PnP algorithm, the feature size corresponding to the P1C algorithm is larger, and the circular feature is more robust to noise. Therefore, this disclosure selects the P1C algorithm as the benchmark algorithm for pose measurement. On this basis, the pose measurement results are further optimized in combination with the spacing constraints of the bolt holes, and the accuracy of pose measurement is improved while solving the ambiguity problem of the P1C algorithm solution. This part requires the introduction of an optimization algorithm.

[0096] The measurement accuracy of pose parameters is positively correlated with the characteristic size of the measured target. For large-sized targets, when the camera parameters and number are the same, the monocular measurement system can cover a larger measurement range and has a higher corresponding pose measurement accuracy than the system based on the multi-camera measurement principle. Therefore, we measure pose parameters based on the monocular measurement principle.

[0097] The key to the P1C algorithm is the high-precision extraction of ellipse features. The high-precision extraction of ellipse features requires at least three quadrants of arc segments. To this end, considering factors such as accuracy and cost, the present disclosure uses three cameras (the first camera, the second camera, and the third camera) to form a monocular vision measurement system. The optical axis of the camera is perpendicular to the target axis, and the optical axes of adjacent cameras are perpendicular to each other. The cameras are distributed as follows: Figure 2 shown.

[0098] In some embodiments, in order to meet the requirements of posture measurement accuracy, the present disclosure further designs the camera parameters, including focal length f, pixel size d uv , horizontal field of view H fov , vertical field of view V fov If the pose parameter error corresponding to the feature extraction error meets the pose measurement accuracy requirements, the camera focal length and pixel size need to meet the following conditions:

[0099]

[0100] Among them, ΔF represents the feature extraction error, R represents the target radius, and Z0 represents the coordinate of the feature point in the Z direction in the camera coordinate system.

[0101] like Figure 4 As shown in the figure, while ensuring that the minimum number of bolt holes imaged is n (n≮10), the camera's horizontal field of view needs to satisfy:

[0102]

[0103] like Figure 5 As shown in the figure, while ensuring full coverage of the measurement range, the vertical field of view of the camera needs to meet the following requirements:

[0104]

[0105] In summary, the spatial circular pose measurement system provided by the present invention is as follows: the imaging features of the edge holes are used as the geometric features for pose measurement; the pose parameters are measured by combining the P1C algorithm and the optimization algorithm; a monocular measurement system is composed of three cameras, the optical axis of the camera is perpendicular to the target axis, and the optical axes of adjacent cameras are perpendicular to each other; the camera parameters simultaneously satisfy equations (1) to (3).

[0106] This embodiment also provides a space circular posture measurement method, which is applied to the space circular posture measurement system described in the above embodiment. Figure 6 is a flow chart of a method for measuring a spatial circular posture according to an embodiment of the present disclosure. Figure 6 As shown, the process includes the following steps:

[0107] Step S601: Acquire a target image captured by a first camera.

[0108] Specifically, the spatial circle posture measurement system provided in the above embodiment can be used to obtain a target image within the field of view of the first camera; the target image includes multiple edge hole images of the spatial circle to be measured; the spatial circle to be measured can be the first spatial circle to be measured or the second spatial circle to be measured; the spatial circle to be measured can also be the first spatial circle to be measured and the second spatial circle to be measured.

[0109] When the space circle to be measured is any one of the first space circle to be measured or the second space circle to be measured, only one row of edge holes is imaged in the target image, for example Figure 3 When the space circle to be measured is the first space circle to be measured and the second space circle to be measured, there are two rows of edge hole images in the target image, for example Figure 3 shown.

[0110] Step S602: for any one edge hole imaging among the plurality of edge hole imagings, determining a preset position of the edge hole imaging as a feature point of the edge hole imaging.

[0111] In some embodiments, the above step S602 includes steps S6021 and S6022:

[0112] Step S6021: If the edge hole imaging is a circular imaging, the center of the circular imaging is extracted as the first feature point.

[0113] Specifically, the Hough circle detection algorithm is used in the middle area where the docking hole imaging is circular and the feature size is large, and the center of the circular imaging is extracted as a feature point.

[0114] Step S6022: If the edge hole imaging is an elliptical imaging, the geometric center of the elliptical imaging is extracted as the second feature point.

[0115] Specifically, in the areas on both sides where the edge hole is imaged as an ellipse and the feature size is reduced, the geometric grayscale feature can be used to extract the geometric center of the ellipse imaging as the first feature point.

[0116] In some embodiments, the above step S6021 further includes steps a1 to a3:

[0117] Step a1, determining a plurality of first circular images and a plurality of circle centers corresponding one-to-one to the plurality of first circular images from the plurality of edge hole images.

[0118] Specifically, multiple first circular images can be determined from multiple edge hole images in the target image by Hough circle detection. The multiple first circular images here include circular images of edge holes on the space circle to be detected and false detection circles in the environment.

[0119] Step a2: Based on the multiple circle centers, determine multiple second circular images from the multiple first circular images, wherein the second circular images refer to multiple first circular images that do not include the falsely detected circles in the environment.

[0120] In some embodiments, the above step a2 further includes steps a21 to a24:

[0121] Step a21, determining a starting point from the multiple circle centers; the starting point is the center of the first circular imaging with the largest radius.

[0122] Specifically, the first circular imaging with the largest radius refers to the imaging of the positioning hole on the space circle to be measured in the first camera coordinate system. The diameter of the positioning hole is 2 mm larger than the diameter of the general edge hole. For example Figure 3 shown.

[0123] Step a22, determining a target point based on the starting point and a preset range.

[0124] Specifically, the preset range is preset, and the preset range consists of a preset radius and a preset slope; the target point can be determined by the starting point and the preset range, for example Figure 3 As shown: taking the center of the positioning hole in the middle area 301 as the starting point, the target point is determined to the left or right within a preset range.

[0125] Step a23, taking the distance and slope between the starting point and the target point as the preset range, taking the target point as the starting point, and repeating the step of determining the target point based on the starting point and the preset range until the target point cannot be determined.

[0126] Specifically, after determining the target point, the distance and slope between the target point and the starting point can be determined, so as to determine a new preset range based on the distance and the slope; finally, the step of determining the target point based on the starting point and the preset range is repeated until the target point cannot be determined, so as to determine all the target points in the middle area, thereby filtering out the falsely detected circles in the environment.

[0127] Step a24, taking the first circular imaging corresponding to the starting point and the multiple first circular imaging corresponding to the multiple target points as the second circular imaging.

[0128] Specifically, the first circular imaging corresponding to the starting point (ie, the center of the positioning hole) and a plurality of first circular imaging corresponding one-to-one to a plurality of target points may be used as the second circular imaging.

[0129] In the above steps a21 to a24, the measurement scene of the disclosed technical solution has problems such as small size, poor edge continuity, and many elliptical curve parameters, which leads to poor accuracy of the arc segment-based ellipse feature extraction algorithm and slow speed of the Hough transform-based ellipse detection algorithm, and cannot achieve fast and accurate extraction of ellipse features. Therefore, the disclosed method processes the image by region according to the imaging characteristics of the target. Figure 3 As shown in the figure, the elliptical feature in the middle area is approximately represented as a circle, and the feature parameters are extracted based on the Hough circle detection algorithm to obtain the feature point p i The coordinate set S c And the circle radius set S r :

[0130]

[0131] Where n0 is the number of circle features detected.

[0132] The detected circle features include the correct features on the elliptic curve (there are missed detections) and the false detection features. Therefore, it is necessary to remove the noise points and classify the feature points, as follows:

[0133] like Figure 3 As shown in the figure, subject to the constraints of the pose parameters and the space circle, the feature points are distributed on the elliptic curve at a certain interval. Based on this property, the circle feature with the largest radius (usually the positioning hole) is used as the starting feature, and the adjacent feature points are searched with the spacing and slope as constraints. The slope and spacing values ​​are updated in turn to iteratively search for feature points until there are no new adjacent feature points. If the number of feature points obtained after the iteration is completed is less than 2, the starting feature is replaced and the above process is repeated until a set of feature points that meet the conditions is obtained. After removing this set of feature points, the above process is repeated for the remaining feature points to complete the screening of the two sets of feature points, and the corresponding targets are determined based on the difference in the vertical coordinates of the two sets of features.

[0134] Step a3: extracting the centers of the multiple second circular images as first feature points.

[0135] Specifically, the centers of a plurality of second circular images that do not contain the falsely detected circles in the environment are extracted as first feature points.

[0136] In some embodiments, the above step S6022 further includes steps b1 to b4:

[0137] Step b1, determining a growth vector based on the first target feature point and the second target feature point.

[0138] Specifically, the first target feature point is the first second feature point or the last second feature point in the middle area of ​​the target image, for example Figure 7 In "c i The second target feature point is the second feature point in the middle area that is closest to the first target feature point, for example Figure 7 In "c i-1 ". The middle area includes a plurality of second feature points.

[0139] According to the first target feature point c i and the second target feature point c i-1 Determine the growth vector Gv i In the process, we need to first calculate the first target feature point c i and the second target feature point c i-1 Determine the growth direction vector v i ; Then according to the growth direction vector v i The growth vector Gv is determined by the growth coefficient g i , as shown in formula (5):

[0140] G i =g·v i =g·(c i -c i-1 ) (5)

[0141] Among them, c i is the first target feature point, c i-1 is the first target feature point, g is the growth coefficient, which is a constant term. The growth coefficient g can be set according to the change law of the feature point spacing.

[0142] Step b2: determining a prediction area based on the first target feature point and the growth vector.

[0143] Specifically, in the process of determining the prediction area based on the first target feature point and the growth vector:

[0144] First, we need to base on the first target feature point c i and the growth vector Gv i Determine the feature point c i+1 The predicted value c j+1 , as shown in formula (6):

[0145] c j+1 =c i +Gv i (6)

[0146] Secondly, according to c j+1 The coordinates of the elliptical feature and the imaging size of the elliptical feature can determine the rectangular area for feature search (ie, the prediction area), wherein the search rectangle size exceeds about 50% of the minimum envelope rectangle size of the feature.

[0147] Finally, according to the grayscale difference between the bolt hole imaging feature and the background in the search area, the geometric center of the ellipse can be extracted as the feature point based on the grayscale statistics method. The feature point coordinates (x i ,y i ) is extracted as follows:

[0148]

[0149] Among them, g m Represents the grayscale mean value in the search area, (x i ,y i ) to search for gray values ​​within the region that are less than s·g m The pixel coordinates are represented by the mean value, s is a constant coefficient, and the value is generally 0.5.

[0150] Step b3, taking the geometric center of the elliptical imaging within the prediction area as the first target feature point, repeating the step of determining the prediction area based on the first target feature point and the growth vector until the prediction area exceeds the image boundary of the target image.

[0151] Specifically, in combination with the above steps b1 to b3, the image may be iteratively searched until the search area exceeds the image boundary.

[0152] Step b4: extracting the geometric center of the ellipse imaging in each prediction area as the second feature point.

[0153] In some embodiments, in order to avoid missed detection of the features in the middle area (missed detection between adjacent feature points), we recheck the feature points in the middle area. max As the criterion for judging whether there is missed detection, if there is no missed detection, then:

[0154]

[0155] Among them, Z0 represents the minimum distance from the optical center of the camera to the docking hole.

[0156] If there is any missed detection, the feature point on the left side of the middle area is used as the growth starting point, and the feature points in the middle area are rechecked using a method based on grayscale statistics.

[0157] Step S603, determining the first positioning hole projection point and the second positioning hole projection point.

[0158] Among them, the first positioning hole projection point refers to the imaging point where the positioning hole on the space circle to be measured in the second camera coordinate system is projected to the first camera coordinate system; the second positioning hole projection point represents the imaging point where the positioning hole on the space circle to be measured in the third camera viewing angle coordinate system is projected to the first camera coordinate system.

[0159] Specifically, the present disclosure takes into account that the key to the P1C algorithm is the high-precision extraction of elliptical features. The high-precision extraction of elliptical features requires arc segments of at least three quadrants, while the feature points collected by a single camera of the measurement system only account for about 1 / 10 of the total, and the two-dimensional feature points cannot be converted into a coordinate system according to the camera extrinsic parameters, resulting in a large fitting error of the elliptical feature, which in turn leads to a large error in the pose measurement. In response to the above problems, in the coordinate system of camera 1, the elliptical feature completeness is increased and the feature fitting accuracy is improved by introducing positioning hole projection points p2, p3 and short axis endpoint estimation points p4. Among them, the positioning hole projection points p2 and p3 are the imaging points of the target positioning hole centers P2 and P3 in the fields of view of camera 2 and camera 3 in camera 1, respectively. Figure 8 shown.

[0160] like Fig. 9 As shown: The normal vector of the target positioning hole is approximately parallel to the camera optical axis, and the Z direction position parameter measurement can be achieved based on the similarity principle:

[0161]

[0162] Combining equation (9) with the image coordinates (x, y) of the feature points, we can further obtain the position parameters in the X and Y directions:

[0163]

[0164] According to the camera external parameters, the position parameters in the coordinate system of camera 2 and camera 3 are converted to the coordinate system of camera 1, and the coordinate values ​​of P2 and P3 in the image coordinate system of camera 1 are obtained by combining the pinhole imaging model. To further improve the fitting accuracy of the ellipse feature, we add geometric constraints to the fourth quadrant of the ellipse feature by introducing the endpoints of the minor axis. First, based on the least squares method, the point set consisting of p2, p3 and the feature points in the field of view of camera 1 is fitted to obtain the ellipse feature parameters, and the direction vector of the minor axis and the endpoint coordinates p1 and p4 are obtained by parameter conversion.

[0165] Step S604: performing ellipse fitting processing based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and a plurality of feature points to obtain an ellipse curve.

[0166] Specifically, Figure 8 As shown, the point located at the center of the feature points of camera 1 is selected as the reference point P1, and the intersection of the straight line passing through the point along the minor axis of the ellipse and the major axis of the ellipse is calculated to obtain the symmetric point P4 in the direction of the minor axis of the ellipse with the major axis of the ellipse as the axis of symmetry of the reference point, which is used as the minor axis estimation point.

[0167] Step S605: determining the circular pose measurement result of the space to be measured based on the elliptic curve.

[0168] Specifically, the feature points of the first camera, the positioning hole projection points and the short axis estimation points are used to fit the elliptic curve, and the pose parameters are calculated, wherein the positioning hole projection points and the short axis estimation points are both estimated values, and a range traversal is set to obtain a set of initial pose values.

[0169] In the above steps S604-S605, the positioning hole projection points p2, p3 and the short axis endpoint estimation point p4 are all parameter sets, where p2 and p3 each contain multiple positioning hole projection points, and p4 contains multiple short axis endpoint estimation points. Since p2, p3, and p4 are all estimated values, there are certain errors. Therefore, it is necessary to generate the ellipse parameter set and the corresponding pose parameter set by traversing p2, p3, and p4. Calculate the minimum reprojection error of different pose parameters in cameras 1, 2, and 3 to determine the initial pose value. Among them, the traversal of p2 and p3 is achieved by traversing the Z value, and the traversal of p4 is along the short axis direction vector, such as Fig.10 shown.

[0170] Pose parameter set The geometric constraints of the features in camera 2 and camera 3 are not fully utilized in the solution process; in addition, without other auxiliary features, the pose parameters solved by the P1C algorithm are ambiguous. To this end, we screen the pose parameters by calculating the reprojection errors of the pose parameters in cameras 2 and 3 (the reprojection error corresponding to camera 1 can be ignored) to provide high-precision initial values ​​for pose parameter optimization.

[0171] Reprojection error f E (P) is defined as the set of feature points corresponding to the elliptic curve ξ of the pose parameter P P The sum of the geometric distances:

[0172]

[0173] Among them, f p (p i ,ξ P ) represents the feature point p i To the elliptic curve ξ P The geometric distance.

[0174] Elliptic Curve ξ P The general equation of Ax 2 +Bxy+Cy 2 +Dx+Ey+F=0, the ellipse parameters can be expressed as:

[0175] ξ P :{A,B,C,D,E,F}=F c→e (r,P) (12)

[0176] Among them, F c→e Represents the mapping function from a space circle to an imaging ellipse.

[0177] like Fig.11 As shown, the geometric distance f from the feature point to the elliptic curve p (p i ,ξ P ) can be approximately expressed as:

[0178]

[0179] Among them, the straight line p1, p2 The intersection with the elliptic curve, Represents the feature point p i The straight line formed with the center of the ellipse.

[0180] In some embodiments, the pose measurement result includes a plurality of pose parameters in the first camera coordinate system; the method further includes steps c1 to c4:

[0181] Step c1: according to the external parameters between the first camera, the second camera and the third camera, convert a plurality of posture parameters in the first camera coordinate system into the second camera coordinate system and the third camera coordinate system respectively to obtain corresponding elliptic curves.

[0182] Specifically, according to the external parameters between the first camera, the second camera and the third camera, the pose parameter P in the coordinate system of camera 1 (i.e., the first camera) is converted to the coordinate system of camera 2 (i.e., the second camera) and camera 3 (i.e., the third camera), respectively, and the corresponding elliptic curve parameter E is obtained by combining formula (12): i (ξ P ), as shown in formula (14):

[0183] E i (ξ P )=[A i ,B i ,C i ,D i ,E i ,F i ] T ,i=1,2,3 (14)

[0184] Step c2: establishing a first constraint function based on geometric distances from feature points in the first camera, the second camera and the third camera to corresponding elliptic curves.

[0185] Specifically, according to the projection equation E of the feature points from cameras 1, 2, and 3 to the corresponding circles i (ξ P ) and establish the constraint function f based on the circle projection equation (elliptic curve) E (P), which is the first constraint function.

[0186] Step c3: establishing a second constraint function based on geometric distances from feature points to corresponding projection points in the first camera, the second camera and the third camera.

[0187] Specifically, according to the geometric distance from the feature points in cameras 1, 2, and 3 to the corresponding projection points, a constraint function f based on the discrete point distance is established. D (P), which is the second constraint function.

[0188] Step c4, establishing an objective function based on the first constraint function and the second constraint function; the objective function is used to optimize the posture measurement result.

[0189] Specifically, in the above first constraint function f E (P) and the second constraint function f D Based on (P), the objective function f(P) of the pose optimization algorithm can be established, as shown in formula (15):

[0190] f(P)=min(f E (P)+f D (P)) (15)

[0191] In the above steps c1 to c4, for the elliptic curve constraint, the geometric distance from the feature point to the corresponding circle projection equation is represented by the Sampson error. The complexity of the Sampson error is between the algebraic error and the geometric error. The value is close to the geometric error and has a good linear approximation near the estimated value, which helps to reduce the difficulty of optimization. Taking camera 1 as an example, the feature point p i To the elliptic curve ξ P The Sampson distance is recorded as It can be expressed as:

[0192]

[0193] in, express The jth element of i =[x i ,y i ,1] T is the homogeneous expression of the feature point coordinates in the image plane coordinate system, YesE i (ξ P ) can be expressed in symmetric matrix form as:

[0194]

[0195] E1(ξ P )’s geometric residual model:

[0196]

[0197] Similarly, the feature points of camera 2 and camera 3 are respectively established about E1(ξ P ),E2(ξ P )’s geometric residual model:

[0198]

[0199] Among them, n i Represents the number of feature points in camera i.

[0200] use and Construct the first constraint function based on the circle projection equation:

[0201]

[0202] Formula (20) can only constrain the geometric distance between the feature points and the elliptic curve within the field of view of cameras 1, 2, and 3. Since the space circle normal vector is approximately perpendicular to the camera optical axis, the number of feature points accounts for only about 1 / 10 of the total number, and the curvature of the elliptical arc segment within the camera field of view changes little, which cannot effectively reflect the change in position parameters. Fig.12 As shown in area A, within the camera field of view, the elliptical arc segments corresponding to different position parameters are basically the same, that is, the elliptical curve has a poor constraint on the position parameters.

[0203] To address the above problems, the present disclosure introduces a space circle discrete point distance constraint. Fig.12 As shown in area B, the intervals between discrete feature points that are approximately distributed in the same arc segment may be significantly different. This feature has a good constraint effect on the position parameters, especially the camera Z direction position parameters (the Z value is negatively correlated with the number of feature points in the field of view).

[0204] The key to establishing the distance constraint function of space circle discrete points is the matching of initial feature points. Fig.13 As shown, establish the space circular coordinate system O c uv,u,v can be expressed as:

[0205]

[0206] Among them, V y ,V z is the component of the normal vector V of the space circle in the Y and Z directions.

[0207] Feature point P on the space circle i Coordinates in the camera coordinate system It can be expressed as:

[0208]

[0209] in, represents the coordinates of the center of the space circle, θ represents O c P i The rotation angle relative to u.

[0210] Taking camera 1 as an example, assume that the extracted center imaging point of the positioning hole is p′ l,1 , the center point of the positioning hole is P l,1 , the corresponding imaging point is p l,1 Ideally, P l,1 is the straight line O0p l,1 The intersection of P and the space circle may not exist due to the error in feature extraction. l,1 The problem of solving is transformed into an optimization problem: the characteristic point P on the space circle i The projection point is p i , pi and p′ l,1 The distance is d l , the minimum geometric distance d l,min The corresponding feature point on the space circle is denoted as P l,1 :

[0211] min|p i -p′ l,1 |

[0212]

[0213] In order to simplify the solution process, the optimization problem of formula (23) is further converted into an ergodic solution problem of θ value:

[0214]

[0215]

[0216] According to the prior information of the measurement system, the value of θ can be limited to a smaller range to achieve fast matching of the initial feature points.

[0217] According to formula (24), we can get P l,1 The corresponding θ l,1 , combined with the target geometric parameters to generate the center coordinates of 3 sets of docking holes:

[0218]

[0219] in, represents the angular interval between adjacent docking holes, θ0 represents the angular interval between adjacent positioning holes, which is usually 90°, i, j, k are integers, and their values ​​depend on the number of feature points extracted by cameras 1, 2, and 3.

[0220] Take some feature points p in camera 1 i (x i ,y i ) to the corresponding projection point p t (x t ,y t )The sum of squares of geometric distances is used to establish a geometric residual model:

[0221]

[0222] Among them, n′1 represents the number of feature points used for constraint. The larger the value, the stronger the constraint ability on the pose parameters.

[0223] After the coordinate transformation of the center coordinates of the docking holes in the field of view of cameras 2 and 3, the geometric residual models of the feature points in cameras 2 and 3 are established based on formula (26): On this basis, the second constraint function based on the distance of discrete points is constructed:

[0224]

[0225] According to equations (15), (20), and (27), the pose parameter optimization function based on the circular projection equation and the discrete point distance is established. The objective function is optimized using the Levenberg-Marquardt (LM) algorithm. To reduce the number of variables, the target's pose vector is represented by the direction angle V = [sinβcosα, sinβsinα, cosβ], then the pose parameter vector can be expressed as P = [x, y, z, α, β], and the update strategy during optimization is:

[0226] P i+1 =P i -(J(P i ) T J(P i )+μI) -1 ·J(P i ) T f(P i ) (28)

[0227] Where J(P i ) is f(P i ), μ is a non-negative damping factor, and I is a 5th-order identity matrix. When the parameter μ is small, J(P i ) T J(P i ) dominates, the LM algorithm is closer to the Gauss-Newton method. When the parameter μ is large, the LM algorithm is closer to the gradient descent method.

[0228] After solving the pose parameters of targets 1 and 2, they are converted into relative position, angle (commonly used such as Euler angle) and other parameters according to the requirements of the control system. This process also involves the conversion between the camera coordinate system and the control system coordinate system, which will not be elaborated here.

[0229] The disclosed embodiment proposes a high-precision pose measurement method based on the distance constraint of discrete points in a space circle. The method takes the automatic docking of large-scale rotating body parts of spacecraft as the research background. According to the geometric characteristics of the measured target, the measurement accuracy requirements and the measurement scene restrictions, a monocular vision measurement scheme for pose parameters based on multi-cameras with non-overlapping fields of view is designed; on this basis, a two-stage feature extraction algorithm and a pose estimation algorithm based on the circle projection equation and the distance constraint of discrete points are developed. The pose estimation algorithm introduces the distance constraint of discrete points in the space circle, and combines the LM optimization algorithm to solve the problem that small elliptical arc segments are insensitive to pose changes, greatly improves the accuracy and robustness of pose measurement, and provides theoretical support for the high-precision measurement of pose parameters of large-scale space circles. The experimental results show that compared with the existing methods, the proposed method greatly improves the measurement accuracy and stability, and the average measurement error and standard deviation of the pose parameters are reduced by more than 50%, and some parameters even reach 95%, which can meet the needs of automatic docking of targets.

[0230] The present disclosure also provides a space circle docking method, the method comprising:

[0231] Under the condition that the first spatial circle to be measured remains stationary, the second posture measurement result of the second spatial circle to be measured is determined by the spatial circle posture measurement method described in the above embodiment; based on the second posture measurement result, the first spatial circle to be measured and the second spatial circle to be measured are docked.

[0232] Specifically, during the process of automatic docking of two spatial circles to be measured, one spatial circle to be measured remains stationary, and the posture parameters of the other spatial circle to be measured are measured by the spatial circle posture measurement method described in the above embodiment, so that the two spatial circles to be measured are automatically docked based on the posture parameters, which can greatly improve the docking efficiency.

[0233] Corresponding to the implementation of the above space circle posture measurement method, the embodiment of the present disclosure also provides a space circle posture measurement device for performing the above Figures 1 to 13 The spatial circular posture measurement method described in any of the embodiments shown in the figure. Fig.14 As shown, the space circular posture measurement device comprises:

[0234] An image acquisition module, used to acquire a target image captured by the first camera, wherein the target image includes a plurality of edge hole images of a space circle to be measured; the space circle to be measured is the first space circle to be measured or the second space circle to be measured described in the above embodiment;

[0235] A feature point extraction module, for determining a preset position of any one edge hole imaging among the plurality of edge hole imaging as a feature point of the edge hole imaging;

[0236] A positioning hole projection point determination module is used to determine a first positioning hole projection point and a second positioning hole projection point; the first positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the second camera coordinate system; the second positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the third camera viewing angle coordinate system;

[0237] An elliptic curve generating module, configured to perform ellipse fitting processing based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and a plurality of feature points to obtain an elliptic curve;

[0238] The posture measurement result determination module is used to determine the posture measurement result of the circle to be measured in the space based on the elliptic curve.

[0239] Optionally, the pose measurement result includes a plurality of pose parameters in the first camera coordinate system; and the device further includes a pose optimization module:

[0240] The posture optimization module is used to convert multiple posture parameters in the first camera coordinate system to the second camera coordinate system and the third camera coordinate system according to the external parameters between the first camera, the second camera and the third camera, respectively, to obtain corresponding elliptic curves; establish a first constraint function based on the geometric distances from feature points in the first camera, the second camera and the third camera to the corresponding elliptic curves; establish a second constraint function based on the geometric distances from feature points in the first camera, the second camera and the third camera to corresponding projection points; establish an objective function based on the first constraint function and the second constraint function; the objective function is used to optimize the posture measurement result.

[0241] Optionally, the edge hole imaging includes circular imaging; and the feature point extraction module includes:

[0242] The first feature point extraction unit is configured to extract the center of the circular imaging as the first feature point if the edge hole imaging is a circular imaging.

[0243] The second feature point extraction unit is used for extracting the geometric center of the ellipse imaging as the second feature point if the edge hole imaging is an ellipse imaging.

[0244] Optionally, the first feature point extraction unit is also used to: determine a plurality of first circular images and a plurality of circle centers corresponding one-to-one to the plurality of first circular images from the plurality of edge hole imaging; based on the plurality of circle centers, determine a plurality of second circular images from the plurality of first circular imaging; and extract the circle centers of the plurality of second circular imaging as the first feature points.

[0245] Optionally, the first feature point extraction unit is also used to: determine a starting point from the multiple circle centers; the starting point is the center of the first circular imaging with the largest radius; determine a target point based on the starting point and a preset range; use the distance and slope between the starting point and the target point as the preset range, use the target point as the starting point, and repeat the step of determining the target point based on the starting point and the preset range until the target point cannot be determined; use the first circular imaging corresponding to the starting point and the multiple first circular imaging corresponding to the multiple target points as the second circular imaging.

[0246] Optionally, the second feature point extraction unit is also used to: determine the growth vector based on the first target feature point and the second target feature point; the first target feature point is the first second feature point or the last second feature point in the middle area of ​​the target image; the second target feature point is the second feature point in the middle area that is closest to the first target feature point; the middle area contains multiple second feature points; determine the prediction area based on the first target feature point and the growth vector; take the geometric center of the elliptical imaging in the prediction area as the first target feature point, and repeat the step of determining the prediction area based on the first target feature point and the growth vector until the prediction area exceeds the image boundary of the target image; extract the geometric center of the elliptical imaging in each prediction area as the second feature point.

[0247] The space circular posture measurement device provided by the above-mentioned embodiment of the present disclosure and the space circular posture measurement method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0248] The present disclosure also provides an electronic device to perform the above-mentioned spatial circular posture measurement method. Fig.15 , which shows a schematic diagram of an electronic device provided by some embodiments of the present disclosure. Fig.15 As shown, the electronic device 15 includes: a processor 1500, a memory 1501, a bus 1502 and a communication interface 1503, wherein the processor 1500, the communication interface 1503 and the memory 1501 are connected via the bus 1502; the memory 1501 stores a computer program that can be run on the processor 1500, and the processor 1500 executes the aforementioned Figures 1 to 13 A spatial circular pose measurement method is provided by any of the illustrated embodiments.

[0249] The memory 1501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 1503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0250] The bus 1502 may be an ISA bus, a PCI bus, or an EISA bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 1501 is used to store programs. After receiving the execution instruction, the processor 1500 executes the program. Figures 1 to 13 The spatial circular pose measurement method disclosed in any of the illustrated embodiments may be applied to the processor 1500 or implemented by the processor 1500 .

[0251] The processor 1500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 1500. The above processor 1500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. 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 or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1501, and the processor 1500 reads the information in the memory 1501 and completes the steps of the above method in combination with its hardware.

[0252] The electronic device provided by the embodiment of the present disclosure and the spatial circular posture measurement method provided by the embodiment of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented by them.

[0253] The present disclosure also provides a computer-readable storage medium corresponding to the spatial circular posture measurement method provided in the above embodiment. Fig.11 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, it executes the spatial circular posture measurement method provided by any of the aforementioned embodiments.

[0254] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0255] The computer-readable storage medium provided by the above-mentioned embodiments of the present disclosure and the spatial circular posture measurement method provided by the embodiments of the present disclosure are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.

[0256] It should be noted that:

[0257] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present disclosure can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.

[0258] Similarly, it should be understood that in order to streamline the present disclosure and aid in understanding one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present disclosure, the various features of the present disclosure are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed disclosure requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, the inventive aspects lie in less than all the features of the single embodiment disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present disclosure.

[0259] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of this disclosure and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0260] The above is only a preferred specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A spatial circular posture measurement system, characterized in that: The space circular posture measurement system comprises: A first camera, a second camera, and a third camera arranged relatively to a first space circle to be measured and a second space circle to be measured, and arranged between the first space circle to be measured and the second space circle to be measured; The first space circle to be measured includes a first group of edge holes arranged around the edge of the circle, and the second space circle to be measured includes a second group of edge holes arranged around the edge of the circle; The optical axis angle between the first camera and the second camera is a preset angle; the optical axis angle between the first camera and the third camera is the preset angle; the first camera, the second camera and the third camera are respectively arranged in different quadrants; The first camera, the second camera and the third camera respectively capture target images within the field of view, and the target image captured by any camera includes the first edge hole imaging and the second edge hole imaging within the field of view of the camera; each target image is used for spatial circular pose measurement.

2. A method for measuring a circular position in space, characterized in that: The method is applied to the spatial circular posture measurement system according to claim 1; the method comprises: Acquire a target image captured by a first camera, wherein the target image includes multiple edge hole images of a space circle to be measured; the space circle to be measured is the first space circle to be measured or the second space circle to be measured described in claim 1; For any one edge hole imaging among the plurality of edge hole imaging, determining a preset position of the edge hole imaging as a feature point of the edge hole imaging; Determine a first positioning hole projection point and a second positioning hole projection point; the first positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the second camera coordinate system; the second positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the third camera viewing angle coordinate system; Based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and the plurality of feature points, an ellipse fitting process is performed to obtain an ellipse curve; Based on the elliptic curve, a measurement result of the circular position and posture of the space to be measured is determined.

3. The method according to claim 2, characterized in that The pose measurement result includes a plurality of pose parameters in the first camera coordinate system; the method further includes: According to the external parameters between the first camera, the second camera and the third camera, a plurality of pose parameters in the first camera coordinate system are respectively converted to the second camera coordinate system and the third camera coordinate system to obtain corresponding elliptic curves; based on the geometric distances from the feature points in the first camera, the second camera and the third camera to the corresponding elliptic curves, a first constraint function is established; Establishing a second constraint function based on geometric distances from feature points in the first camera, the second camera, and the third camera to corresponding projection points; Based on the first constraint function and the second constraint function, an objective function is established; the objective function is used to optimize the posture measurement result.

4. The method according to claim 2 or 3, characterized in that: The edge hole imaging includes circular imaging; for any one edge hole imaging among the plurality of edge hole imaging, determining a preset position of the edge hole imaging as a feature point of the edge hole imaging, including: If the edge hole imaging is a circular imaging, the center of the circular imaging is extracted as the first feature point; If the edge hole imaging is an elliptical imaging, the geometric center of the elliptical imaging is extracted as the second feature point.

5. The method according to claim 4, characterized in that If the edge hole imaging is a circular imaging, the center of the circular imaging is used as the first feature point for extraction, including: Determine a plurality of first circular images and a plurality of circle centers corresponding to the plurality of first circular images one by one from the plurality of edge hole images; the plurality of first circular images include falsely detected circles in the environment; Based on the multiple circle centers, a plurality of second circular images are determined from the multiple first circular images; the multiple second circular images are multiple first circular images that do not include the falsely detected circle; The centers of the plurality of second circular images are extracted as first feature points.

6. The method according to claim 5, characterized in that Based on the multiple circle centers, determining a plurality of second circular images from the plurality of first circular images comprises: Determine a starting point from the multiple circle centers; the starting point is the center of the first circular image with the largest radius; Determine a target point based on the starting point and a preset range; Taking the distance and slope between the starting point and the target point as the preset range, taking the target point as the starting point, and repeating the step of determining the target point based on the starting point and the preset range until the target point cannot be determined; The first circular imaging corresponding to the starting point and the multiple first circular imaging corresponding to the multiple target points are used as the second circular imaging.

7. The method according to claim 4, characterized in that If the edge hole imaging is an elliptical imaging, extracting the geometric center of the elliptical imaging as a second feature point includes: Based on the first target feature point and the second target feature point, a growth vector is determined; the first target feature point is the first second feature point or the last second feature point in the middle area of ​​the target image; the second target feature point is the second feature point closest to the first target feature point in the middle area; the middle area includes a plurality of second feature points; based on the first target feature point and the growth vector, a prediction area is determined; The geometric center of the elliptical imaging within the prediction area is taken as the first target feature point, and the step of determining the prediction area based on the first target feature point and the growth vector is repeated until the prediction area exceeds the image boundary of the target image; the geometric center of the elliptical imaging within each prediction area is extracted as the second feature point.

8. A space circle docking method, characterized in that: The method comprises: Under the condition that the first space circle to be measured remains stationary, determining a second position and posture measurement result of the second space circle to be measured by the space circle position and posture measurement method described in any one of claims 2 to 7; Based on the second posture measurement result, the first space circle to be measured and the second space circle to be measured are docked.

9. A spatial circular posture measurement device, characterized in that: The device comprises: An image acquisition module, used to acquire a target image captured by the first camera, wherein the target image includes multiple edge hole images of the space circle to be measured; the space circle to be measured is the first space circle to be measured or the second space circle to be measured described in claim 1; A feature point extraction module, for determining a preset position of any one edge hole imaging among the plurality of edge hole imaging as a feature point of the edge hole imaging; A positioning hole projection point determination module is used to determine a first positioning hole projection point and a second positioning hole projection point; the first positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the second camera coordinate system; the second positioning hole projection point refers to an imaging point where the positioning hole on the space circle to be measured is projected onto the first camera coordinate system in the third camera viewing angle coordinate system; An elliptic curve generating module, configured to perform ellipse fitting processing based on the first positioning hole projection point, the second positioning hole projection point, the minor axis estimation point and a plurality of feature points to obtain an elliptic curve; The posture measurement result determination module is used to determine the posture measurement result of the circle to be measured in the space based on the elliptic curve.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the spatial circular pose measurement method described in any one of claims 2 to 7, or the spatial circular docking method described in claim 8.

Citation Information

Cited By

  • Intelligent control system of drilling and anchoring mechanical arm

    CN120663334A

  • Stitch roll detection device and method and storage medium

    CN121677556A

  • Non-contact multi-dimensional pose measurement system and method based on multi-linear array CCD (Charge Coupled Device)

    CN122753691A