Hand-eye system calibration method without fixed zero position

By separately solving the rotation matrix and translation vector of the hand-eye system of the mechanical execution device without fixed zero position, using the target A and target B of the characteristic points, the effective calibration of the equipment without fixed zero position is achieved, and the equipment collaboration problem in the prior art is solved , improve calibration accuracy and flexibility, reduce costs, and support industrial automation.

CN118876046AActive Publication Date: 2024-11-01SHANGHAI UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410908835.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-11-01
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

It is difficult for the prior art to effectively calibrate hand-eye position conversion parameters between the mechanical execution equipment without fixed zero position and the optical vision measuring equipment in line structure. Conventional hand-eye calibration methods cannot play a role due to the lack of fixed media.

Method used

By obtaining the actuator, the camera and the target A and B with characteristic points, the rotation matrix and translation vector of the camera coordinate system and the end coordinate system of the actuator are obtained, the rotation matrix calibration is used for target A, and the translation vector calibration is used for target B. , separate the rotation matrix and translation vector of the hand-eye system to realize the calibration of the hand-eye system without fixed zeros.

Benefits of technology

The collaboration between the non-fixed zero-position mechanical execution equipment and the linear structure optical vision measurement equipment is realized, which reduces the requirements of traditional hand-eye calibration methods, improves calibration accuracy and flexibility, simplifies the process, reduces costs, supports industrial product production and Automatic upgrade of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118876046A_ABST
    Figure CN118876046A_ABST
Patent Text Reader

Abstract

The invention relates to a hand-eye system calibration method without a fixed zero position, and the method comprises the following steps: S0, obtaining an execution mechanism, a camera, a target A and a target B, and enabling the target A and the target B to be provided with feature points; the method comprises the following steps: S1, in a calibration stage, fixing a target A at the tail end of an execution mechanism, enabling the execution mechanism to move, identifying the target A through a camera, collecting an image of a calibration feature point on the target A, and obtaining a rotation matrix of a camera coordinate system and an execution mechanism tail end coordinate system; s2, in an equipment operation stage, fixing the target B at the tail end of an execution mechanism, when the execution mechanism is started, identifying the target B through a camera, collecting a feature point image on the target B, and obtaining translation vectors of a camera coordinate system and a coordinate system at the tail end of the execution mechanism; and S3, completing calibration of the hand-eye system without the fixed zero position. Compared with the prior art, the requirement of a traditional hand-eye calibration method for a hand-eye system is lowered, and the method has the advantages of being more flexible in hand-eye calibration, high in calibration precision, low in cost and the like.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of calibration technology, and in particular to a hand-eye system calibration method without a fixed zero position. Background Art

[0002] As the degree of automation in industrial product production and inspection processes is gradually increasing, one of the common automation modes at this stage is the hand-eye mode in which CNC mechanical execution equipment collaborates with visual measurement equipment such as linear structured light sensors. That is, the visual measurement equipment is responsible for obtaining the spatial feature information of the product, and then converts the data into the measurement space where the mechanical execution equipment is located based on the posture conversion parameters obtained by hand-eye calibration, so that the mechanical execution equipment can perform specific product processing steps based on the existing spatial information, such as product grasping, cutting, etc.

[0003] Hand-eye calibration is a key link in the realization of the above-mentioned automated process. Conventional hand-eye calibration methods usually establish a base coordinate system with the fixed zero position of the mechanical actuator as the reference point, and then use the base coordinate system as a medium to indirectly solve the hand-eye posture conversion parameters. However, for mechanical actuators without a fixed zero position, conventional hand-eye calibration methods are difficult to play an effective role due to the lack of a fixed medium. Therefore, it is necessary to provide a hand-eye system calibration method that can solve the hand-eye posture conversion parameter calibration problem between mechanical actuators without a fixed zero position and line structured light vision measurement equipment. Summary of the invention

[0004] The purpose of the present invention is to provide a hand-eye system calibration method without a fixed zero position in order to overcome the defects of the above-mentioned prior art that it is difficult to play an effective role due to the lack of a fixed medium and is not suitable for calibration of mechanical actuators without a fixed zero position.

[0005] The purpose of the present invention can be achieved by the following technical solutions:

[0006] A method for calibrating a hand-eye system without a fixed zero position comprises the following steps:

[0007] S0: Acquire an actuator, a camera, a target A and a target B, wherein the target A and the target B are provided with feature points;

[0008] S1: In the calibration stage, the target A is fixed at the end of the actuator, the actuator is moved, the target A is identified by the camera, and the image of the calibration feature points on the target A is collected to obtain the rotation matrix of the camera coordinate system and the actuator end coordinate system;

[0009] S2: During the equipment operation stage, the target B is fixed at the end of the actuator. When the actuator is started, the camera recognizes the target B and collects the feature point image on the target B to obtain the translation vector between the camera coordinate system and the actuator end coordinate system;

[0010] S3: Complete the hand-eye system calibration without a fixed zero position according to the rotation matrix and translation vector of the camera coordinate system and the actuator end coordinate system.

[0011] Furthermore, the target A is provided with a concentric circle pattern, the center of the concentric circle is the characteristic point, the inner circle of the target A is white, and the outer circle is black; the target B is based on target A and is provided with multiple characteristic circles on the ring belt, and the center of the characteristic circle is the characteristic point.

[0012] Furthermore, in S1, the identification of target A includes the following steps:

[0013] S101: acquiring an image of a target A at the end of the actuator through a camera, and preprocessing the image;

[0014] S102: Identify the image contour, set a corresponding threshold condition according to the number of points and area of ​​the image contour, filter the contour according to the threshold condition, and fit the filtered contour to an ellipse;

[0015] S103: classifying the internal and external attributes of the fitted ellipse, and then dividing the ellipse pairs according to the distance between the center points of the inner and outer ellipses, and obtaining the ellipse pairs whose center point distance meets the threshold condition;

[0016] S104: For the obtained ellipse pair, target A is identified according to the real projection positioning of the center points of the concentric circles.

[0017] Furthermore, in S102, the equation of the fitting ellipse of the contour is:

[0018] Ax 2 +By 2 +Cxy+Dx+Ey+F=0

[0019] In the formula, A, B, C, D, E, and F are the ellipse parameters to be solved, and the calculation expressions of each ellipse parameter are:

[0020]

[0021] Where: a is the length of the circumscribed rectangle of the ellipse, b is the length of the circumscribed rectangle of the ellipse, θ is the inclination angle, and c(x,y) is the coordinate of the center point.

[0022] Furthermore, the identification of target B is to complete the detection of the center of the concentric circles according to the identification steps of target A, and obtain the projection image of target B; perform affine transformation on the projection image, standardize the shape of the projection image, and obtain a concentric circle image of preset specifications; detect and fit the characteristic circles in the annulus according to the annulus radius of the concentric circles, and then convert the image of target B into a projection image, obtain the projection coordinates of the center point of the characteristic circle, and complete the identification of target B.

[0023] Furthermore, in S1, the specific steps of obtaining the rotation matrix of the camera coordinate system and the actuator end coordinate system include:

[0024] S111: In the calibration stage, the target A is fixed at the end of the actuator, and the actuator is driven to move along the direction of the laser plane so that the center point of the target A coincides with the center line of the light stripe on its surface;

[0025] S112: turning on and off the laser to collect a pair of images of the relatively stationary target A before and after the light stripe is projected;

[0026] S113: Identify the target A image before the light streak is projected, and obtain the three-dimensional coordinates of the center point of the concentric circles in the coordinate system of the actuator end; and obtain the three-dimensional coordinates of the center point of the concentric circles in the camera coordinate system according to the target A image after the light streak is projected;

[0027] S114: The actuator end passes through each laser plane in turn and collects corresponding images to obtain a three-dimensional coordinate set of the center point of target A in the actuator end coordinate system and the camera coordinate system. Based on the two three-dimensional coordinate sets, the rotation matrix of the actuator end coordinate system and the camera coordinate system is obtained through the SVD decomposition algorithm.

[0028] Furthermore, in S114, the objective function for obtaining the rotation matrix of the actuator end coordinate system and the camera coordinate system is:

[0029]

[0030] In the formula, R cb is the rotation matrix from the camera coordinate system to the actuator end coordinate system; t cb_x is the translation vector between the camera coordinate system and the zero position of the actuator end coordinate system when the system is currently started; ω j Represents the weight of each corresponding point in two point sets, the value is positive, usually set to 1; P j is the three-dimensional coordinate of the center point of target A in the camera coordinate system; Q j It is the three-dimensional coordinate of the center point of target A in the actuator end coordinate system.

[0031] Furthermore, in S2, the specific steps of obtaining the translation vector of the camera coordinate system and the actuator end coordinate system include:

[0032] S201: During the system operation phase, the target B is fixed at the end of the actuator. Each time the actuator is started, an image of the target B is captured by a camera, and a world coordinate system is established on the target B.

[0033] S202: Obtain the sub-pixel coordinates of the center point of each characteristic circle in the concentric circle ring on the target B, and the three-dimensional coordinates of the center point of each characteristic circle in the world coordinate system and the camera coordinate system;

[0034] S203: Obtaining a rotation matrix and a translation vector between the camera coordinate system and the world coordinate system through a PnP pose solving algorithm according to multiple groups of sub-pixel coordinates of the center point of the same feature circle and the three-dimensional coordinates in the world coordinate system and the camera coordinate system;

[0035] S204: Using the three-dimensional coordinates of the center point of the concentric circles of target B in the actuator end coordinate system as the origin coordinates of the world coordinate system, and according to the rotation matrix and translation vector between the camera coordinate system and the world coordinate system, calculate the current translation vector between the camera coordinate system and the actuator end coordinate system.

[0036] Furthermore, in S204, the objective function for obtaining the rotation matrix and translation vector between the camera coordinate system and the world coordinate system is:

[0037]

[0038] Where ρ is the scale factor, M is the internal parameter matrix of the camera, and both ρ and M are known quantities; R cw is the rotation matrix between the camera coordinate system and the world coordinate system; t cw is the translation vector between the camera coordinate system and the world coordinate system; is the sub-pixel coordinate of the center point of the feature circle, is the three-dimensional coordinate of the center point of the feature circle in the camera coordinate system, is the three-dimensional coordinate of the center point of the feature circle in the world coordinate system.

[0039] Furthermore, in S201, the origin of the world coordinate system is the center point of the concentric circles on the target B, and the concentric circles are the world coordinate system Z W =0, the number of characteristic circles on the annular belt is at least 4.

[0040] Compared with the prior art, the present invention has the following advantages:

[0041] (1) In this scheme, the direction of the coordinate system at the end of the mechanical actuator remains unchanged, so the rotation matrix between the coordinate system at the end of the actuator and the camera coordinate system remains unchanged. Only because the zero position is not fixed, the translation vector between the two coordinate systems is not fixed each time the task is executed. The rotation matrix and translation vector of the hand-eye system are solved separately. By collecting the feature points at the end of the actuator structure during the calibration phase, the rotation matrix of the camera coordinate system and the coordinate system at the end of the actuator structure are obtained, and the initial position of the end of the actuator and the translation vector of the camera coordinate system are determined each time the system is started, completing the calibration of the hand-eye system without a fixed zero point, realizing the collaboration between the line structured light vision measurement equipment and the mechanical actuator equipment without a fixed zero position, reducing the requirements of the traditional hand-eye calibration method for the hand-eye system, and making the hand-eye calibration more flexible, with high calibration accuracy and low cost, providing strong support for the automation upgrade and transformation of industrial product production, inspection and other processes.

[0042] (2) This solution solves the rotation matrix and translation vector of the hand-eye system separately and settles them in stages. Before the system is used, the actuator end is calibrated using a target A with concentric circles to obtain a fixed value of the rotation matrix of the actuator end coordinate system relative to the camera coordinate system. Thereafter, before each system start-up, the actuator end is set with target B, combined with multiple characteristic circles on target B. Through a picture before the actuator moves, the translation vector between the actuator end and the camera coordinate system can be determined to complete the calibration of the hand-eye system.

[0043] Taking into full consideration that the mechanical actuator will not return to a fixed position after completing a task, the zero position of the end is not fixed each time it is started. Therefore, the parallel vector between the actuator and the camera coordinate system is independently obtained each time before the actuator moves, the actuator is calibrated, and the rotation matrix is ​​confirmed separately, which avoids the tediousness of repeated calibration in subsequent use, simplifies the process, and improves the calibration efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 It is a schematic diagram of an application scenario architecture of a hand-eye system calibration method without a fixed zero position in one embodiment of the present invention;

[0045] Figure 2 Shown is a schematic diagram of a target A provided for solving a rotation matrix in a hand-eye system calibration method without a fixed zero position of the present invention;

[0046] Figure 3 Shown is a schematic diagram of a target B provided for solving a translation vector in a hand-eye system calibration method without a fixed zero position of the present invention;

[0047] Figure 4Shown is a schematic diagram of a designated motion designed for solving a rotation matrix in an embodiment of a hand-eye system calibration method without a fixed zero position of the present invention;

[0048] Figure 5 The diagram shows the effect of making the center line of the light stripe pass through the center of the target A in one embodiment of the hand-eye system calibration method without a fixed zero position of the present invention;

[0049] Figure 6 Shown is an example of a relatively still image pair after projection of light stripes collected in an embodiment of a hand-eye system calibration method without a fixed zero position of the present invention;

[0050] Figure 7 Shown is an example of a relatively still image pair before projection of a light stripe collected in an embodiment of a hand-eye system calibration method without a fixed zero position of the present invention;

[0051] Figure 8 A schematic diagram of a world coordinate system established on a target B plane fixed to the end of the actuator in an embodiment of a hand-eye system calibration method without a fixed zero position of the present invention;

[0052] Fig. 9 Shown is a flow chart of a hand-eye system calibration method without a fixed zero position according to the present invention;

[0053] Fig.10 Shown is a flow chart for the identification of target A of the present invention;

[0054] In the figure: 1. guide rail, 2. actuator, 3. camera, 4. laser, 5. laser plane. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0056] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0057] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0058] In the description of the present invention, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are the directions or positional relationships in which the inventive product is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.

[0059] It should be noted that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0060] In addition, the terms "horizontal", "vertical" and the like do not mean that the components are required to be absolutely horizontal or suspended, but can be slightly tilted. For example, "horizontal" only means that its direction is more horizontal than "vertical", and does not mean that the structure must be completely horizontal, but can be slightly tilted.

[0061] Example 1

[0062] This embodiment provides a hand-eye system calibration method without a fixed zero position, which is used to realize the hand-eye posture conversion parameter solution between a mechanical execution device without a fixed zero position and a linear structured light vision sensor measurement device. Figure 1 The hand-eye system calibration method without a fixed zero position is described by taking the application scenario of the hand-eye system without a fixed zero position as an example. The application scenario example includes the guide rail 1 and actuator 2 of the CNC actuator, the camera 3, the laser 4, and the laser plane 5 generated by the laser. The internal parameters, distortion coefficients and plane equation coefficients of the camera involved have been accurately calibrated. If there are multiple cameras, the posture conversion parameters between the coordinate systems of each camera have also been accurately calibrated; the actuator 2 has no fixed zero position, and the position of its end at each startup is the current zero position of the mechanical actuator.

[0063] The present invention provides two different targets A and B, which are respectively fixed to the end of the mechanical actuator 2 during the process of solving the rotation matrix and translation vector parameters of the hand-eye system to increase different types of feature information;

[0064] The target A is fixed to the end of the mechanical actuator 2, and it (mechanical actuator 2) is controlled to make a specified movement to collect the end calibration feature point image, and the rotation matrix of the camera coordinate system and the actuator end coordinate system is solved by a preset algorithm;

[0065] Target B is fixed to the end of the mechanical actuator 2. When the actuator device is started, the camera 3 collects the feature point image of the end of the actuator 2 at the starting position, and the translation vector between the camera coordinate system and the actuator end coordinate system is solved by the preset algorithm. At this point, the calculation of the posture conversion parameters of the hand-eye system without a fixed zero position is realized.

[0066] like Fig. 9 As shown, a hand-eye system calibration method without a fixed zero position of the present invention comprises the following steps:

[0067] Step S11, providing target A and target B and a matching identification method.

[0068] Specifically, the present invention provides corresponding targets A and B for different features required by the rotation matrix solution method and the translation vector solution method included in the hand-eye system calibration method without a fixed zero position, such as Figure 2 and Figure 3 As shown in the figure. Both targets use concentric circles with white inside and black outside as basic units, which are easy to identify and locate. Among them, the structure of target A is relatively simple, and it is mainly used to solve the rotation matrix in the hand-eye system, while target B adds a series of characteristic circles in the ring area to add geometric information to the solution of the translation vector. The recognition of both targets is centered on concentric circle detection, and the specific recognition methods are as follows.

[0069] like Fig.10 As shown, for target A, before the rotation matrix is ​​solved, it is fixed to the end of the actuator 2, and performs a specified movement together with the actuator 2. Each camera collects an image of it fixed to the end of the actuator, and the image is preprocessed by Gaussian filtering and other operations. Then, the Devernay sub-pixel edge detection algorithm based on Canny is used to identify the contour, and the corresponding threshold conditions are set according to the number of points and area of ​​the contour to screen it, and the screened contour is used as the object to fit the ellipse;

[0070] The general equation of an ellipse is known to be:

[0071] Ax 2 +By 2 +Cxy+Dx+Ey+F=0

[0072] Among them, A, B, C, D, E, and F are the parameters of the ellipse to be solved. When fitting, the parameters of the ellipse are determined according to the circumscribed rectangle of the ellipse. Assuming that the length of the circumscribed rectangle of the ellipse is a, the width is b, the inclination angle is θ, and the coordinates of the center point are c (x, y), then the parameters of the ellipse equation can be calculated by the following formula:

[0073]

[0074] The solved ellipse is classified into internal and external attributes. Since the inner circle of the model target provided by the present invention is white and the outer circle is black, it can be judged as an inner / outer ellipse based on the grayscale value inside and outside the ellipse contour. After the attribute classification is completed, the ellipse pairs are divided according to the center point distance of the inner and outer ellipses, and the inner and outer ellipses whose center point distance meets the threshold condition are paired and retained.

[0075] For the ellipse pair detected, the target A can be identified by locating the real projection point of the concentric circle center;

[0076] It should be noted that concentric circles often produce perspective deviations during the projective transformation process. That is, concentric circles whose center points coincide in real space appear as two ellipses with separated centers on the image plane after image acquisition at non-orthogonal angles. In other words, there is an eccentricity error. Therefore, it is necessary to adopt a related eccentricity error correction algorithm to obtain the true projection center.

[0077] At this point, the identification of target A is complete.

[0078] For target B, its basic unit is also a concentric circle with white inside and black outside, so its recognition process is basically the same as that of target A. The difference is that there are a series of characteristic circles to be recognized in the annular area of ​​target B. The specific method is as follows:

[0079] According to the recognition process of target A, the center of the basic concentric circle unit of target B is detected, and then the image of target B is affine transformed to realize the standardization of the projection shape and restore it to a concentric circle image of preset specifications. Since the preset size of the target is known, the characteristic circle in the annular area is directly detected and fitted according to the annular radius value, and then the projection image of the target is restored to obtain the projection coordinate value of the center of the characteristic circle.

[0080] At this point, target B can be identified.

[0081] Step S12, fix the target A to the end of the mechanical actuator 02, control it to make a specified movement, collect the image of the center feature point of the concentric circles of the end, and solve the rotation matrix of the camera coordinate system and the actuator end coordinate system through a preset algorithm.

[0082] Specifically, the goal of step S12 is to solve the rotation matrix from the camera coordinate system to the mechanical actuator terminal coordinate system before the mechanical actuator formally executes the task. It should be additionally explained here that the mechanical actuator does not have a fixed zero position. The conventional calibration method of establishing a base coordinate system with a fixed zero position as the origin and using this as a medium to calculate the hand-eye posture parameters is no longer able to work in the described scenario. The idea of ​​the present invention to solve the problem is to solve the rotation matrix and translation vector of the hand-eye system separately. Since the direction of the mechanical actuator terminal coordinate system does not change, the rotation matrix between it and the camera coordinate system does not change. Only because the zero position is not fixed, the translation vector between the two coordinate systems is not fixed each time the task is executed. The solution method of the fixed rotation matrix value is now explained.

[0083] The specified movement that the mechanical actuator 2 fixedly connected to the target A needs to perform is: through the control system of the mechanical actuator device, the end of the actuator 2 fixedly connected to the target A is controlled to move along the direction of the laser plane, such as Figure 4 As shown, the center of the target A at the end of the actuator 2 coincides with the center line of the light stripe on its surface, and the effect is as follows Figure 5 After the two overlap, the laser is switched on and off to collect relatively still image pairs before and after the light stripe is projected, as shown in Figure 6 and Figure 7 shown.

[0084] The concentric circle center detection algorithm is used to process the target A image before the light stripe is projected, and the concentric circle center point is extracted. Since the point coincides with the light stripe, it also satisfies the visual measurement model, and the three-dimensional coordinates of the center point in the camera coordinate system can be solved. According to the above process, the end of the actuator 2 is controlled to pass through each laser plane in turn to collect the corresponding image pairs and reconstruct the center point. According to actual needs, the actuator 02 can be controlled to reciprocate to obtain a sufficient number of center points.

[0085] Assume the camera coordinate system is O c -X c Y c Z c According to the above operation, the center point set of target A in the camera coordinate system collected and solved is P = {P1, P2, Λ, P n}, and the corresponding three-dimensional coordinate set in the actuator end coordinate system is Q = {Q1, Q2, Λ, Q n}, n represents the number of collected center points. Wherein, the two groups of n-dimensional point sets P = {P1, P2, Λ, P n} and Q={Q1,Q2,Λ,Q n} contains the three-dimensional space points P1 and Q1, P2 and Q2, ..., P n With Q nThey correspond to each other, that is, they are the coordinate values ​​of the same center point in different spatial coordinate systems. According to the least squares method, we can get the coordinate value corresponding to the camera coordinate system O c -X c Y c Z c and the actuator end coordinate system O b -X b Y b Z b The pose conversion relationship parameters between cb t cb_x ]Related functions:

[0086]

[0087] Among them, R cb That is, the fixed value of the rotation matrix from the camera coordinate system to be solved to the actuator end coordinate system; t cb_x represents the translation vector between the camera coordinate system and the zero position of the end of actuator 2 when the system is currently started. It has no practical meaning here because the zero position of the end of actuator 2 is not fixed each time the system is started; ω j Represents the weight of each corresponding point in two point sets, usually set to 1, and the value is positive.

[0088] With the above formula as the target, the rotation matrix of the camera coordinate system and the coordinate system of the end of the actuator 2 can be solved by a preset algorithm. The preset algorithm is an SVD decomposition algorithm, which is mainly used to solve the rotation matrix and translation vector between two spatial coordinate systems.

[0089] Step S13, the target B is fixedly connected to the end of the mechanical actuator 2. Each time the actuator is started, the camera collects the feature point image of the end of the actuator 2 at the starting position, and the current translation vector of the camera coordinate system and the actuator end coordinate system is solved by a preset algorithm.

[0090] Specifically, since the mechanical actuator 2 does not return to a fixed position after completing a task each time, the zero position of its end is not fixed each time it is started, that is, the translation vector between its end execution coordinate system and the camera coordinate system is changing, so the present invention designs a corresponding solution method.

[0091] The method can be described as follows: fix target B at the end of actuator 2, and each time the control system is started, the camera collects the image of target B at the end. The center point of target B is the current system zero position, and it is taken as the origin and the plane it is located in is Z w = 0 plane, establish the world coordinate system O w -X w Y w Z w ,like Figure 8 The center of the characteristic circle of the target B annular zone is an available characteristic point. The sub-pixel coordinates of each characteristic point in the annular zone in the image are detected according to the method described in step S11. Its three-dimensional coordinates in the world coordinate system are The three-dimensional coordinates in the camera coordinate system are The following conversion relationship exists between the coordinates:

[0092]

[0093] Among them, ρ is the scale factor, M is the internal parameter matrix of the camera, which is a known quantity; [R cw t cw ] is the rotation matrix and translation vector between the camera coordinate system and the world coordinate system. The specific value can be solved by applying a preset algorithm through more than four pairs of corresponding points of the centers of the characteristic circles of the 2D-3D annular zone regions. The preset algorithm is a PnP pose solution algorithm.

[0094] Based on the rotation matrix and translation vector between the camera coordinate system and the world coordinate system, the three-dimensional coordinates of the center point of the concentric circles of target B in the camera coordinate system can be solved, and its three-dimensional coordinates in the actuator end coordinate system are the origin coordinates. Based on this, the current translation vector from the camera coordinate system to the actuator end coordinate system can be directly calculated.

[0095] At this point, the pose parameters of the hand-eye system without a zero position have been solved, including the rotation matrix and translation vector from the camera coordinate system to the mechanical actuator end coordinate system, based on which the line structured light vision measurement equipment and the mechanical actuator without a fixed zero position can be coordinated. Taking a hand-eye system without a fixed zero position at an industrial site as an example, the hand-eye pose parameters are solved by the method proposed in the present invention. The results are shown in Table 1. According to the parameters obtained in Table 1, the data measured by the visual measurement equipment can be successfully converted to the spatial coordinate system where the actuator is located, so that it can automatically perform related operations according to the measured data.

[0096] Compared with traditional hand-eye calibration methods, the present invention can better adapt to the actual situation that CNC execution equipment in industrial fields has no fixed zero position, reduces the high requirements of traditional hand-eye calibration methods on the hand-eye system, and makes hand-eye calibration more flexible and cost-friendly. It provides strong support for the automation upgrade and transformation of industrial product production, testing and other processes, and has high industrial utilization value.

[0097] Table 1

[0098]

[0099] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A method for calibrating a hand-eye system without a fixed zero position, characterized in that: The following steps are involved: S0: Acquire an actuator, a camera, a target A and a target B, wherein the target A and the target B are provided with feature points; S1: In the calibration stage, the target A is fixed at the end of the actuator, the actuator is moved, the target A is identified by the camera, and the image of the calibration feature points on the target A is collected to obtain the rotation matrix of the camera coordinate system and the actuator end coordinate system; S2: During the equipment operation stage, the target B is fixed at the end of the actuator. When the actuator is started, the camera recognizes the target B and collects the feature point image on the target B to obtain the translation vector between the camera coordinate system and the actuator end coordinate system; S3: Complete the hand-eye system calibration without a fixed zero position according to the rotation matrix and translation vector of the camera coordinate system and the actuator end coordinate system.

2. A hand-eye system calibration method without a fixed zero position according to claim 1, characterized in that: The target A is provided with a concentric circle pattern, the center of the concentric circle is a characteristic point, the inner circle of the target A is white, and the outer circle is black; the target B is based on the target A and is provided with a plurality of characteristic circles on the ring belt, and the center of the characteristic circle is a characteristic point.

3. The method for calibrating a hand-eye system without a fixed zero position according to claim 1, characterized in that: In S1, the identification of target A includes the following steps: S101: acquiring an image of a target A at the end of the actuator through a camera, and preprocessing the image; S102: Identify the image contour, set a corresponding threshold condition according to the number of points and area of ​​the image contour, filter the contour according to the threshold condition, and fit the filtered contour to an ellipse; S103: classifying the internal and external attributes of the fitted ellipse, and then dividing the ellipse pairs according to the distance between the center points of the inner and outer ellipses, and obtaining the ellipse pairs whose center point distance meets the threshold condition; S104: For the obtained ellipse pair, target A is identified according to the real projection positioning of the center points of the concentric circles.

4. A method for calibrating a hand-eye system without a fixed zero position according to claim 3, characterized in that: In S102, the equation of the fitting ellipse of the contour is: Ax 2 +By 2 +Cxy+Dx+Ey+F=0 In the formula, A, B, C, D, E, and F are the ellipse parameters to be solved, and the calculation expressions of each ellipse parameter are: Where: a is the length of the circumscribed rectangle of the ellipse, b is the length of the circumscribed rectangle of the ellipse, θ is the inclination angle, and c(x,y) is the coordinate of the center point.

5. The method for calibrating a hand-eye system without a fixed zero position according to claim 3, characterized in that: The identification of the target B is to complete the detection of the center of the concentric circles according to the identification steps of the target A, and obtain the projection image of the target B; perform affine transformation on the projection image, standardize the shape of the projection image, and obtain a concentric circle image of preset specifications; detect and fit the characteristic circle in the annulus according to the annulus radius of the concentric circle, and then convert the image of the target B into a projection image, obtain the projection coordinates of the center point of the characteristic circle, and complete the identification of the target B.

6. The method for calibrating a hand-eye system without a fixed zero position according to claim 1, characterized in that: In S1, the specific steps of obtaining the rotation matrix of the camera coordinate system and the actuator end coordinate system include: S111: In the calibration stage, the target A is fixed at the end of the actuator, and the actuator is driven to move along the direction of the laser plane so that the center point of the target A coincides with the center line of the light stripe on its surface; S112: turning on and off the laser to collect a pair of images of the relatively stationary target A before and after the light stripe is projected; S113: Identify the target A image before the light streak is projected, and obtain the three-dimensional coordinates of the center point of the concentric circles in the coordinate system of the actuator end; and obtain the three-dimensional coordinates of the center point of the concentric circles in the camera coordinate system according to the target A image after the light streak is projected; S114: The actuator end passes through each laser plane in turn and collects corresponding images to obtain a three-dimensional coordinate set of the center point of target A in the actuator end coordinate system and the camera coordinate system. Based on the two three-dimensional coordinate sets, the rotation matrix of the actuator end coordinate system and the camera coordinate system is obtained through the SVD decomposition algorithm.

7. A method for calibrating a hand-eye system without a fixed zero position according to claim 6, characterized in that: In S114, the objective function for obtaining the rotation matrix of the actuator end coordinate system and the camera coordinate system is: In the formula, R cb is the rotation matrix from the camera coordinate system to the actuator end coordinate system; t cb_x is the translation vector between the camera coordinate system and the zero position of the actuator end coordinate system when the system is currently started; ω j Represents the weight of each corresponding point in two point sets, the value is positive, usually set to 1; P j is the three-dimensional coordinate of the center point of target A in the camera coordinate system; Q j It is the three-dimensional coordinate of the center point of target A in the actuator end coordinate system.

8. The method for calibrating a hand-eye system without a fixed zero position according to claim 1, characterized in that: In S2, the specific steps of obtaining the translation vector of the camera coordinate system and the actuator end coordinate system include: S201: During the system operation phase, the target B is fixed at the end of the actuator. Each time the actuator is started, an image of the target B is captured by a camera, and a world coordinate system is established on the target B. S202: Obtaining the sub-pixel coordinates of the center point of each characteristic circle in the concentric circle ring on the target B, and the three-dimensional coordinates of the center point of each characteristic circle in the world coordinate system and the camera coordinate system; S203: Obtaining a rotation matrix and a translation vector between the camera coordinate system and the world coordinate system through a PnP pose solving algorithm according to multiple groups of sub-pixel coordinates of the center point of the same feature circle and the three-dimensional coordinates in the world coordinate system and the camera coordinate system; S204: Using the three-dimensional coordinates of the center point of the concentric circles of target B in the actuator end coordinate system as the origin coordinates of the world coordinate system, and according to the rotation matrix and translation vector between the camera coordinate system and the world coordinate system, calculate the current translation vector between the camera coordinate system and the actuator end coordinate system.

9. A method for calibrating a hand-eye system without a fixed zero position according to claim 8, characterized in that: In S204, the objective function for obtaining the rotation matrix and translation vector between the camera coordinate system and the world coordinate system is: Where ρ is the scale factor, M is the internal parameter matrix of the camera, and both ρ and M are known quantities; R cw is the rotation matrix between the camera coordinate system and the world coordinate system; t cw is the translation vector between the camera coordinate system and the world coordinate system; is the sub-pixel coordinate of the center point of the feature circle, is the three-dimensional coordinate of the center point of the feature circle in the camera coordinate system, is the three-dimensional coordinate of the center point of the feature circle in the world coordinate system.

10. The method for calibrating a hand-eye system without a fixed zero position according to claim 8, characterized in that: In S201, the origin of the world coordinate system is the center point of the concentric circles on the target B, and the concentric circles are the world coordinate system Z W =0, the number of characteristic circles on the annular belt is at least 4.

Citation Information

Patent Citations

  • Industrial mechanical arm vision alignment method under multistation operation

    CN111775146A

  • Robot hand-eye calibration method, system, equipment and medium

    CN114193444A

  • Hand-eye calibration method and device, electronic equipment and storage medium

    CN117961900A

  • Optical target three-dimensional measurement system and method, electronic device, and storage medium

    WO2024109846A1