A binocular vision pose estimation method based on circle features

Through the binocular vision pose estimation method, elliptical features and normal matching are used to generate spatial circles, which solves the problem of position and attitude misjudgment when the robot grabs glass products, and improves the grasping success rate.

CN112381880BActive Publication Date: 2024-10-29AEROSPACE SCI & ENG INTELLIGENT ROBOT CO LTD

Patent Information

Application Number
CN202011356849.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-10-29
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

When the robot is grabbing glass products, due to the lack of specular reflection and surface texture, the traditional depth camera and point feature matching methods are not effective, leading to misjudgment of position and attitude, failure to grasp, or encountering other objects.

Method used

Using a binocular vision pose estimation method based on circle features, by performing edge detection and ellipse matching on the left and right images of the target object, the normals of the elliptical contours and elliptical cones are obtained, the unique normals are screened out, and a space circle is generated. Used to obtain pose features.

Benefits of technology

It improves the stable positioning accuracy of round objects such as glasses, reduces misjudgments, and enhances the success rate of robot grabbing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112381880B_ABST
    Figure CN112381880B_ABST
Patent Text Reader

Abstract

The present disclosure provides a binocular visual posture estimation method based on circle features, including: obtaining left and right images of a target object through a camera; performing edge detection and ellipse matching on the target object in the left and right images, respectively obtaining the ellipse contour lines of the target object edge projected on the plane in the two images; obtaining the ellipse cone corresponding to each ellipse contour line in the left and right images based on the ellipse contour line and the camera optical center; respectively obtaining the normal lines corresponding to the two circular sections of each ellipse cone; mutually verifying the normal lines of the ellipse cone formed by the ellipse contour lines corresponding to the same edge in the left and right images, and screening out the unique normal line of the ellipse cone; obtaining a space circle based on the ellipse cone and the unique normal line; obtaining posture features based on the features of the space circle. The present disclosure eliminates the directional ambiguity of the space circle through the binocular matching link, and can more stably find objects such as glass cups with circular edges in complex environments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a visual pose estimation method, and in particular to a binocular visual pose estimation method based on circle features. Background Art

[0002] When the robot grasps objects such as glass cups, the traditional depth camera is not effective because glass products reflect laser light in a mirror-like manner. Objects such as glass beakers do not have rich surface textures and therefore cannot extract enough feature points. Therefore, it is also difficult to locate them through point feature matching. When operating with hand control, the position and posture of the object are easily misjudged, resulting in grasping failure or collision with other objects. Summary of the invention

[0003] In order to solve at least one of the above technical problems, the present invention provides a binocular vision pose estimation method based on circle features.

[0004] The technical solution of the present invention is achieved in this way:

[0005] A binocular vision pose estimation method based on circle features, comprising:

[0006] Get the left and right images of the target object;

[0007] Performing edge detection and ellipse matching on the target object in the left and right images, and obtaining ellipse contours of the target object edge projected on the plane in the two images respectively;

[0008] Based on the ellipse contour line and the camera optical center, respectively obtain the ellipse cone corresponding to each ellipse contour line in the left and right images;

[0009] Respectively obtain the normal lines corresponding to the two circular cross sections of each of the elliptical cones;

[0010] The normal lines of the elliptical cones formed by the elliptical contour lines corresponding to the same edge in the left and right images are mutually verified to screen out the unique normal line of each elliptical cone;

[0011] Based on the elliptical cones and the unique normal, obtaining a space circle corresponding to each elliptical cone;

[0012] The position and posture features are acquired based on the features of the space circle.

[0013] Furthermore, edge detection and ellipse matching are performed on the target objects in the left and right images, that is, edge detection and ellipse matching are performed on the circular edges of the target objects in the left and right images.

[0014] Furthermore, the edge detection and ellipse matching of the target object in the left and right images are performed to obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively; including:

[0015] Performing edge detection on the left and right images to obtain contour curves of the target objects in the two images respectively;

[0016] Based on the parameters of the ellipse, each contour curve of the two images is matched respectively, and the contour curves that do not meet the ellipse parameters are screened out to obtain the ellipse contour lines of the target object edge projected on the plane in the left and right images respectively.

[0017] Furthermore, matching each contour curve of the two images and filtering out contour curves that do not satisfy the ellipse parameters includes:

[0018] The least squares method is used to fit each of the contour curves, and the fitting parameters are determined by the following formula:

[0019] f(x, y) = ax 2 +bxy+cy 2 +dx+ey+1=0

[0020] Among them, a, b, c, d, and e are the five parameters that need to be fitted, and x and y are the coordinate values;

[0021] Based on the discriminant, the point set of non-elliptical contour lines on the contour curve is screened out; the discriminant is as follows:

[0022] ac>b 2 .

[0023] Furthermore, the method for screening out the point set of non-elliptical contour lines on the contour curve based on the discriminant includes:

[0024] Let W = [a, b, c, d, e, 1]; Wherein, i is all points on the contour curve;

[0025] By taking the derivative of W i min‖W T X i ‖, get satisfaction∑ i min‖W T X i ‖W value, obtain the parameters of each contour curve, and filter out those that do not satisfy ac>b 2 The contour curve.

[0026] Furthermore, obtaining normal lines corresponding to the two circular cross sections of each of the elliptical cones includes:

[0027] Get the camera intrinsic parameter K; and convert the ellipse into the following matrix form:

[0028] f(x, y) = p t Q

[0029] where p = [x, y, 1],

[0030] The elliptical cone is converted into a standard elliptical cone by orthogonal transformation, wherein the minor axis of the standard elliptical cone is located on the x1 axis and the major axis is located on the y1 axis;

[0031] Get the normal vector of the circular section of the standard cone The normal vector Determined by the following equation:

[0032]

[0033] Among them, λ1, λ2, λ3 are K t *Q*K eigenvalues; p is the homogeneous coordinates of the ellipse points.

[0034] Further, the orthogonal transformation is determined by the following equation:

[0035] p c =K*p;

[0036] p1=[α1,α2,α3]*p c ;

[0037] p1=[x1,y1,z1];

[0038] λ1*x1 2 +λ2*y1 2 +λ3*z1 2 =0;

[0039] Among them, K is the camera internal parameter, α1, α2, α3 are K t *Q*K feature vector.

[0040] Further, the filtering out a unique normal from the normals of each image comprises:

[0041] Normal vectors for the left and right images: Compare and get the correct set of normal vectors

[0042] Furthermore, the normal vectors of the left and right images are: Compare and get the correct set of normal vectors include:

[0043] All the normal vectors are expressed as directions in the left camera coordinate system through coordinate transformation;

[0044] If there is a normal vector in the two normal vectors of the left image that has the same direction as any one of the two normal vectors of the right image, then the two normal vectors in the left and right images with the same direction are determined as a correct set of normal vectors.

[0045] Furthermore, the method for obtaining the space circle corresponding to each elliptical cone includes:

[0046] S1. For any image in the left or right image, obtain the projection straight line of the elliptical cone in the x1Oz1 coordinate system; there are three projection straight lines in total, and they intersect at two points p1 and p2;

[0047] S2. Get the midpoint of the connecting line of the two intersection points p1 and p2 as the first circle center;

[0048] S3. Obtain the first straight line from the center of the first circle to the optical center;

[0049] Repeat S1-S3 to obtain a first straight line from the first circle center to the optical center corresponding to another image;

[0050] S4. Take the intersection point P of the two first straight lines O =[x o ,y o ,z o ] is the center of the space circle; taking ‖p1-p2‖ as the radius of the space circle, the space circle is obtained.

[0051] Furthermore, the projection line of the elliptical cone in the x1Oz1 coordinate system satisfies the following equation:

[0052]

[0053] A binocular vision pose estimation device based on circle features, comprising:

[0054] Binocular camera, used to obtain left and right images of the target object;

[0055] The edge detection and ellipse matching module is used to perform edge detection and ellipse matching on the target object in the left and right images, and obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively;

[0056] A processing module is used to obtain the elliptical cone corresponding to each elliptical contour line in the left and right images respectively according to the elliptical contour line and the camera optical center; generate the normal line of the circular cross section of the elliptical cone, and screen out the unique normal line of each elliptical cone according to the mutual verification of the left and right images;

[0057] The space circle generating module is used to generate the space circle corresponding to each elliptical cone according to the elliptical cone and the unique normal line. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The accompanying drawings illustrate exemplary embodiments of the present invention and together with the description serve to explain the principles of the present invention. These drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of this specification.

[0059] Figure 1 It is a flowchart of the binocular vision pose estimation method based on circle features disclosed in the present invention; DETAILED DESCRIPTION

[0060] The present invention will be further described in detail below in conjunction with the accompanying drawings and implementations. It is to be understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present invention. It is also necessary to explain that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings.

[0061] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present invention can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments. Among them, the execution subject can be adjusted according to the specific case, such as a server, an electronic device, a computer, etc.

[0062] It should be noted that the step numbers in the text are only for the convenience of explaining the specific embodiment and do not limit the order of execution of the steps. The method provided in this embodiment can be executed by a related server, and the following description will be given by taking the server as the execution subject as an example.

[0063] Embodiment 1

[0064] Reference Figure 1 , this embodiment provides a binocular vision pose estimation method based on circle features, including:

[0065] Get the left and right images of the target object;

[0066] Performing edge detection and ellipse matching on the target object in the left and right images, and obtaining ellipse contours of the target object edge projected on the plane in the two images respectively;

[0067] Based on the ellipse contour line and the camera optical center, respectively obtain the ellipse cone corresponding to each ellipse contour line in the left and right images;

[0068] Respectively obtain the normal lines corresponding to the two circular cross sections of each of the elliptical cones;

[0069] The normal lines of the elliptical cones formed by the elliptical contour lines corresponding to the same edge in the left and right images are mutually verified to screen out the unique normal line of each elliptical cone;

[0070] Based on the elliptical cones and the unique normal, obtaining a space circle corresponding to each elliptical cone;

[0071] The position and posture features are acquired based on the features of the space circle.

[0072] The present invention collects left and right images of a target object through a camera. Preferably, the camera is a binocular camera to form binocular vision recognition. The elliptical contour line in the image is obtained through edge detection and matching of elliptical properties, and an elliptical cone can be formed according to the ellipse and the focus. It is known that there are two planes in the elliptical cone that can intercept the elliptical cone and obtain two circular sections. Based on this feature, the normals of the planes where the two circular sections are located can be obtained, and the binocular images can be used to verify each other to obtain a unique set of correct normals, and then the unique normals and the elliptical cone are used to obtain the center and radius of the spatial circle, which are used as the posture parameters of the target object for robot grasping.

[0073] As an optional implementation of the above embodiment, edge detection and ellipse matching are performed on the target object in the left and right images to obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively; including:

[0074] Perform edge detection on the left and right images to obtain the contour curves of the target objects in the two images respectively;

[0075] Based on the parameters of the ellipse, each contour curve of the two images is matched, and the contour curves that do not meet the ellipse parameters are screened out to obtain the ellipse contour lines of the target object edge projected on the plane in the left and right images respectively.

[0076] The left and right images of the target object are acquired through the camera; the circular features of the target object should be obtained. For example, if the target object is a glass, the circular edge of the top or bottom of the glass is used as the extracted feature. The present invention uses the circular curve of the circular edge of the target object such as the glass as a feature, which can be used as a feature for pose estimation more stably and efficiently.

[0077] As an optional implementation of the above embodiment, matching each contour curve of the two images and filtering out the contour curves that do not meet the ellipse parameters includes:

[0078] First, the least squares method is used to fit each contour curve.

[0079] The standard ellipse formula is:

[0080]

[0081] The general ellipse formula after taking into account rotation and translation is:

[0082]

[0083] Among them, (x0, y0) is the center of the ellipse, and θ is the rotation angle of the ellipse.

[0084] Expanding this equation into a general form, the fitting parameters are determined by the following formula:

[0085] f(x, y) = ax 2 +bxy+cy 2 +dx+ey+1=0

[0086] Among them, a, b, c, d, and e are the five parameters that need to be fitted, and x and y are the coordinate values;

[0087] Secondly, the non-elliptical contour point set on the contour curve is removed by the discriminant; the discriminant is as follows: ac>b 2 .

[0088] In this embodiment, edge extraction is performed on each image to obtain each contour curve of each image. The contour curve is actually a point set, that is, a set of all pixel points on each contour curve. According to the least squares fitting method, there are a total of five parameters that need to be fitted. Therefore, as long as the number of pixel points is greater than 5, an elliptical contour line can be determined.

[0089] As an optional implementation of the above embodiment, a method for removing a point set of a non-elliptical contour line on a contour curve by using a discriminant includes:

[0090] First, let W = [a, b, c, d, e, 1]; Among them, i is all points on the contour curve;

[0091] Secondly, by taking the derivative of W i min‖W T X i ‖, get satisfaction∑ i min‖W T X i ‖W value, obtain the parameters of each contour curve, and filter out those that do not satisfy ac>b 2 The contour curve.

[0092] As an optional implementation of the above embodiment, a method for obtaining normal lines corresponding to two circular cross sections of each elliptical cone includes:

[0093] Get the camera intrinsic parameter K; and convert the ellipse into the following matrix form:

[0094] f(x, y) = p t Q

[0095] where p = [x, y, 1],

[0096] The elliptical cone is converted into a standard elliptical cone through orthogonal transformation, the minor axis of the standard elliptical cone is located on the x1 axis, and the major axis is located on the y1 axis;

[0097] Get the normal vector of the circular section of the standard cone Normal vector Determined by the following equation:

[0098]

[0099] Among them, λ1, λ2, λ3 are K t *Q*K eigenvalues; p is the homogeneous coordinates of the ellipse points.

[0100] Furthermore, the orthogonal transformation is determined by the following equation:

[0101] p c =K*p;

[0102] p1=[α1,α2,α3]*p c ;

[0103] p1=[x1,y1,z1];

[0104] λ1*x1 2 +λ2*y1 2 +λ3*z1 2 =0;

[0105] Among them, K is the camera internal parameter, α1, α2, α3 are K t *Q*K feature vector.

[0106] The orthogonal transformation equations are determined by:

[0107] For each picture, find the elliptical cone formed by each elliptical line and the optical center O, through

[0108] f(x,y)=p t *Q*p

[0109] p c =K*p

[0110] get where p c =[x,y,z,1] is the coordinate in the camera coordinate system. K is the camera internal parameter. λ1,λ2,λ3 are K t The eigenvalue of *Q*K, if the quadratic surface is an elliptical cone, then λ1>λ2>0>λ3 is satisfied. If not, skip this curve.

[0111] There exists p1=[α1,α2,α3]*p c Make That is, λ1*x1 2 +λ2*y1 2 +λ3*z1 2 =0, where α1, α2, α3 are the corresponding eigenvectors.

[0112] As an optional implementation of the above embodiment, the unique normal among the normals of each image is screened out; comprising:

[0113] Normal vectors for the left and right images: Compare and get the correct set of normal vectors include:

[0114] All the normal vectors are expressed as directions in the left camera coordinate system through coordinate transformation;

[0115] If there is a normal vector in the two normal vectors of the left image that has the same direction as any one of the two normal vectors of the right image, then the two normal vectors in the left and right images with the same direction are determined as a correct set of normal vectors.

[0116] As an optional implementation of the above embodiment, a method for obtaining a space circle includes:

[0117] S1. For any image, obtain the projection lines of the elliptical cone in the x1Oz1 coordinate system; there are three projection lines in total, and they intersect at two points p1 and p2;

[0118] S2. Get the midpoint of the connecting line of the two intersection points p1 and p2 as the first circle center;

[0119] S3. Obtain the first straight line from the center of the first circle to the optical center;

[0120] Repeat S1-S3 to obtain a first straight line from the first circle center to the optical center corresponding to another image;

[0121] S4. Take the intersection point P of the two first straight lines O =[x o ,y o ,z o ] is the center of the space circle; take ‖p1-p2‖ as the radius of the space circle to obtain the space circle.

[0122] The projection line of the elliptical cone in the x1Oz1 coordinate system satisfies the following equation:

[0123]

[0124] Among them, the algorithm of p1 and p2 is as follows:

[0125] Suppose the plane projection of the circular section is Because the distance between the circular section and the camera is unknown, k is unknown. The three straight lines intersect at two points p1 and p2. The midpoint of the line connecting the two intersection points is the center of the circle. The direction of the straight line from the center of the circle to the optical center has nothing to do with k. Two straight lines are obtained through the left and right cameras, and their intersection is the three-dimensional coordinate P of the center of the circle. O =[x o ,y o ,z o ].

[0126] P O Substitution Find the value of k, and then find the values ​​of p1 and p2.

[0127] Through the above method of this embodiment, the space circle corresponding to each elliptical contour line can be obtained, and the parameters of the space circle are used as the posture parameters of the machine grasping.

[0128] The present invention reconstructs the ellipse contour line through the above method, and reconstructs the space circle based on the ellipse cone section. Through the binocular matching link, the present invention eliminates the directional ambiguity of the space circle, and can more stably find objects such as glasses with circular edges in complex environments.

[0129] Embodiment 2

[0130] A binocular vision pose estimation device based on circle features, comprising:

[0131] Binocular camera, used to obtain left and right images of the target object;

[0132] The edge detection and ellipse matching module is used to perform edge detection and ellipse matching on the target object in the left and right images, and obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively;

[0133] A processing module is used to obtain the elliptical cone corresponding to each elliptical contour line in the left and right images respectively according to the elliptical contour line and the camera optical center; generate the normal line of the circular cross section of the elliptical cone, and screen out the unique normal line of each elliptical cone according to the mutual verification of the left and right images;

[0134] The space circle generating module is used to generate the space circle corresponding to each elliptical cone according to the elliptical cone and the unique normal line.

[0135] The principles and effects of this embodiment are consistent with those of the first embodiment, and will not be described again in this embodiment.

[0136] It should be understood by those skilled in the art that the above embodiments are only for the purpose of clearly illustrating the present invention, and are not intended to limit the scope of the present invention. For those skilled in the art, other changes or modifications may be made based on the above invention, and these changes or modifications are still within the scope of the present invention.

Claims

1. A binocular vision pose estimation method based on circle features, characterized in that: include: Get the left and right images of the target object; Performing edge detection and ellipse matching on the target object in the left and right images, and obtaining ellipse contours of the target object edge projected on the plane in the two images respectively; Based on the ellipse contour line and the camera optical center, respectively obtain the ellipse cone corresponding to each ellipse contour line in the left and right images; Respectively obtain the normal lines corresponding to the two circular cross sections of each of the elliptical cones; The normal lines of the elliptical cones formed by the elliptical contour lines corresponding to the same edge in the left and right images are mutually verified to screen out the unique normal line of each elliptical cone; Based on the elliptical cones and the unique normal corresponding to the images, obtaining the space circles corresponding to the elliptical cones; Acquiring posture features based on the features of the space circle; The method of performing edge detection and ellipse matching on the target object in the left and right images to obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively comprises: Performing edge detection on the left and right images to obtain contour curves of the target objects in the two images respectively; Based on the parameters of the ellipse, each contour curve of the two images is matched respectively, and the contour curves that do not meet the ellipse parameters are screened out, so as to obtain the ellipse contour lines of the edge of the target object projected on the plane in the left and right images respectively; The matching of each contour curve of the two images and screening out the contour curves that do not satisfy the ellipse parameters includes: Performing least squares fitting on each of the contour curves, The fitting parameters are determined by the following formula: f(x,y)=ax 2 +bxy+cy 2 +dx+ey+1=0 Among them, a, b, c, d, and e are the five parameters that need to be fitted, and x and y are the coordinate values; The point set of non-elliptical contour lines on the contour curve is screened out based on the discriminant; the discriminant is as follows: and>b 2 ; Obtaining the normal lines corresponding to the two circular cross sections of each of the elliptical cones, including: Get the camera intrinsic parameter K; and convert the ellipse into the following matrix form: f(z,y)=p t Qp where p = [x, y, 1], The elliptical cone is converted into a standard elliptical cone by orthogonal transformation, wherein the minor axis of the standard elliptical cone is located on the x1 axis and the major axis is located on the y1 axis; Get the normal vector of the circular section of the standard cone The normal vector Determined by the following equation: Among them, λ1, λ2, λ3 are K t *Eigenvalues ​​of Q*K; p is the homogeneous coordinates of the ellipse points; The step of screening out a unique normal from the normals of each image comprises: Normal vectors for the left and right images: Compare and get the correct set of normal vectors The method for obtaining the space circle corresponding to each elliptical cone includes: S1. For any image in the left or right image, obtain the projection straight line of the elliptical cone in the x1Oz1 coordinate system; there are three projection straight lines in total, and they intersect at two points p1 and p2; S2. Get the midpoint of the connecting line of the two intersection points p1 and p2 as the first circle center; S3. Obtain the first straight line from the center of the first circle to the optical center; Repeat S1-S3 to obtain a first straight line from the first circle center to the optical center corresponding to another image; S4. Take the intersection point P of the two first straight lines O =[x o ,y o ,z o ] is the center of the space circle; taking ‖p1-p2‖ as the radius of the space circle, the space circle is obtained.

2. The binocular vision pose estimation method based on circle features as claimed in claim 1, characterized in that: The method for screening out the point set of non-elliptical contour lines on the contour curve based on the discriminant comprises: Let W = [a, b, c, d, e, 1]; Wherein, i is all points on the contour curve; By taking the derivative of W i min‖W T X i ‖, get satisfaction∑ i min‖W T X i ‖W value, obtain the parameters of each contour curve, and filter out those that do not satisfy ac>b 2 The contour curve.

3. The binocular vision pose estimation method based on circle features as claimed in claim 1, characterized in that: The orthogonal transformation is determined by the following equation: p c =K*p; p1=[α1,α2,α3]*p c ; p1=[x1,y1,z1]; λ1*x1 2 +λ2*y1 2 +λ3*z1 2 =0; Among them, K is the camera internal parameter, α1, α2, α3 are K t *Q*K feature vector.

4. The binocular vision pose estimation method based on circle features as claimed in claim 1, characterized in that: The projection line of the elliptical cone in the x1Oz1 coordinate system satisfies the following equation:

5. A binocular vision pose estimation device based on circle features, applied to the binocular vision pose estimation method based on circle features according to any one of claims 1 to 4, characterized in that: include: Binocular camera, used to obtain left and right images of the target object; The edge detection and ellipse matching module is used to perform edge detection and ellipse matching on the target object in the left and right images, and obtain the ellipse contour lines of the target object edge projected on the plane in the two images respectively; A processing module, used for obtaining the elliptical cone corresponding to each elliptical contour line in the left and right images respectively according to the elliptical contour line and the camera optical center; Generate the normal of the circular cross section of the elliptical cone, and select the unique normal of each elliptical cone based on the mutual verification of the left and right images; The space circle generating module is used to generate the space circle corresponding to each elliptical cone according to the elliptical cone and the unique normal line.

Citation Information

Patent Citations

  • Method and system for visually identifying direct-current charging socket of electric automobile

    CN111192326A

  • Embedded binocular non-cooperative target relative pose measurement method

    CN111536981A

Cited By

  • Binocular vision positioning method for catenary parts

    CN120374729A

  • A method for spatial ring detection and pose measurement in complex scenes based on trifocal vision

    CN120599054B