A calibration and material taking method and calibration system based on a manipulator

Through the N-point calibration method and visual inspection technology based on the robot, the problems of low efficiency and insufficient accuracy of the existing calibration mode are solved, efficient and flexible calibration and retrieval operations are realized, and the automation level of the flexible feeding system is improved.

CN117656066BActive Publication Date: 2024-10-11SHENZHEN CHANGYUAN ELECTRIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311692399.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2024-10-11
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

The existing industrial automation calibration mode is inefficient, especially in flexible feeding systems, where the number of calibration points is limited and it is impossible to accurately identify products that overlap and are close to each other, resulting in inconvenient operation and low efficiency.

Method used

The N-point calibration method based on the manipulator is adopted, and through the mutual conversion of pixel coordinates and mechanism coordinates, combined with visual detection and image processing technology, it realizes photo identification and screening of workpieces, calculates offsets and generates coordinate compensation, and supports NinePointCalib and CircleCalib calibration types. , improve calibration accuracy and flexibility.

Benefits of technology

It achieves more efficient calibration and retrieval operations, avoids overlapping and products that are close to each other, improves the retrieval rate and overall efficiency of the robot, enhances calibration accuracy and flexibility, and reduces maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117656066B_ABST
    Figure CN117656066B_ABST
Patent Text Reader

Abstract

The present invention discloses a calibration and material picking method and a calibration system based on a manipulator. The setting of step S2 of the calibration and material picking method of this case can realize N-point calibration, and is no longer limited to ordinary 9-point or 12-point calibration, so as to improve pixel accuracy. The setting of step S3 is to identify whether the workpiece is removable before moving it, avoid taking overlapping or close products and output and output the current number of removable products and the pixel coordinates of the removable products, which is conducive to improving the material picking rate and overall efficiency of the manipulator. Through the setting of step S4, the pixel coordinates of the removable workpiece are converted into the mechanical coordinates of the manipulator. Through the setting of steps S5 and S6, the offset is calculated according to the current workpiece position and angle and the target position angle, and the coordinate compensation is automatically generated to improve the material picking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a calibration and material taking method based on a manipulator, and a calibration system. Background Art

[0002] In the era of constant replacement and iteration, industrial automation is also constantly upgrading. In the current market, there are visual and robot calibration modes, most of the calibration blocks used are hollow in the middle, and require manual support to move the calibration block with the robot, which is inefficient and not conducive to meeting today's automation needs.

[0003] like Figure 1 The figure shows a calibration device based on a manipulator, which includes a calibration module and a manipulator 2. The calibration module includes a calibration platform 11, a calibration block 12, and a visual detector 13 for visually calibrating the calibration block 12 downward. The manipulator 2 is equipped with a suction component 3 for sucking the calibration block 12 downward and moving it to the calibration platform 11. In this way, the manipulator can suck the calibration block 12 to a designated place on the calibration platform 11 for taking pictures, thereby ensuring the calibration effect and improving the calibration efficiency.

[0004] China Publication No. CN113352323A discloses a method for multi-point mobile calibration of a horizontal robot mobile camera, wherein a calibration plate (2) is provided with a center point (21) and at least nine primary calibration points (22) and secondary calibration points (23) arranged around the center point (21), wherein the secondary calibration points (23) are located at the periphery of the primary calibration points (22), the calibration plate (2) is located below the probe (4) and the camera, and the calibration plate (2) is within the motion range of the horizontal robot (1); the method can realize one-button automatic multi-point calibration action, and can gradually realize the rough calibration and fine calibration steps of the mobile camera parameters, and has the advantages of simple setting and automatic calibration, and the on-site maintenance engineer can solve the point calibration problem with one button, and the calibration efficiency is high and the maintenance cost is low. However, the existing flexible loading systems on the market have many inconvenient operations. For example, the number of calibration points is too limited, and only 9-point and 12-point calibration can be performed; and the camera cannot accurately identify situations such as product overlap and two products being close to each other.

[0005] Therefore, how to overcome the above-mentioned defects has become an important issue to be solved urgently by those skilled in the art. Summary of the invention

[0006] The present invention overcomes the shortcomings of the above-mentioned technology and provides a calibration and material taking method based on a manipulator and a calibration system.

[0007] To achieve the above object, the present invention provides a calibration and material taking method based on a manipulator in a first aspect, comprising the following steps:

[0008] S1. The manipulator places the calibration block on the calibration platform according to the preset program;

[0009] S2. Use N-point calibration method to realize the mutual conversion between pixel coordinates and mechanism coordinates;

[0010] S3, photographing and identifying the workpieces on the vibration plate and screening them to determine the number of workpieces that can be taken and obtain the pixel coordinates of the workpieces that can be taken;

[0011] S4, generating pixel coordinates according to the method of step S2 from the pixel coordinates obtained in step S3, and converting them into mechanism coordinates;

[0012] S5, comparing the current position and angle of the workpiece in step S3 or S4 with the actual position and angle that need to be adjusted to calculate the offset;

[0013] S6. Generate corresponding coordinate compensation according to the offset calculated in S5.

[0014] Preferably, the conversion between pixel coordinates and mechanism coordinates using the N-point calibration method described in step S2 includes:

[0015] S21, define the calibration type, and divide the calibration type into NinePointCalib calibration type and CircleCalib calibration type;

[0016] S22, performing different calibration steps according to different selected calibration types to perform coordinate conversion;

[0017] S221. When the calibration type is selected as NinePointCalib, perform the following calibration steps:

[0018] Define the number of calibration points as N, and generate a second calibration instruction;

[0019] In response to the second calibration instruction, the robot moves the pre-processed calibration blocks to N designated photographing points respectively;

[0020] Every time the robot moves to a point and moves away, it triggers the camera to take a photo, and saves the N pixel coordinates and N mechanism coordinates taken by the camera to generate N sets of calibration data;

[0021] Send the generated N groups of calibration data to the N-point calibration tool;

[0022] Use the N-point calibration tool to analyze N groups of calibration data, calculate the coordinates of N identical points in the camera coordinate system and the robot coordinate system, obtain the conversion matrix between pixel coordinates and mechanism coordinates, and calculate the calibration parameters for storage;

[0023] When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between the pixel coordinates and the mechanism coordinates;

[0024] S222. When the calibration type is selected as CircleCalib, perform the following calibration steps:

[0025] Define the number of calibration points as N, and generate the first calibration instruction;

[0026] In response to the first calibration instruction, the robot moves the calibration block with the circular mark to the designated photographing point;

[0027] The robot moves to the calibration point and then moves away, triggering the camera to rotate and take pictures at different angles, so as to take N pictures of the calibration block with circular marks at different angles;

[0028] Extract the image of the circular mark from N photos, and use image processing technology to obtain the center position of the mark;

[0029] Calculate the rotation center based on the marked center position;

[0030] According to the positional relationship between the rotation center and the camera coordinate system, the transformation matrix between the pixel coordinates and the mechanism coordinates is obtained, and the calibration parameters are calculated and stored;

[0031] When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between pixel coordinates and mechanism coordinates.

[0032] Preferably, the step S3 of "photographing, identifying and screening the workpieces on the vibration plate to determine the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken" includes:

[0033] S31, taking photos of the workpieces on the vibration plate to identify them and obtain the parameters of each workpiece;

[0034] S32, inputting the acquired workpiece parameters into the intersection detection tool and selecting a corresponding intersection mode;

[0035] S33, generating different intersection detection instructions according to different intersection modes;

[0036] S34, in response to the intersection detection instruction and the input workpiece parameters, determining the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken;

[0037] The different intersection modes include: Center intersection detection mode and IntersectAndCenter intersection detection mode.

[0038] Preferably, the intersection detection tool comprises:

[0039] A first screening module is used to quickly match the multiple workpieces, screen out the workpieces that meet the quick matching conditions and generate quick matching data;

[0040] The second screening module is used to perform Blob analysis on multiple artifacts, filter out artifacts that meet Blob analysis conditions and generate data after Blob analysis;

[0041] The third screening module is used to perform intersection detection on the quick matching data of the workpiece obtained by the first screening module and the data after Blob analysis of the workpiece obtained in the second screening module, screen out the workpieces that meet the intersection detection conditions, and obtain the current number of available workpieces and the pixel coordinates of the optimal available workpiece.

[0042] Preferably, the quick matching conditions include:

[0043] Condition 1: The similarity between the contour of the workpiece photographed by the camera and the predefined contour of the workpiece is greater than a preset similarity value;

[0044] Condition 2: The rotation angle of the workpiece profile captured by the camera is within the predefined angle range;

[0045] If both condition 1 and condition 2 are met, the quick matching condition is met.

[0046] Preferably, the blob analysis condition is that a certain workpiece and another workpiece have a connected area consisting of similar features such as color and texture in the image, that is, a certain workpiece and another workpiece have an overlapping part.

[0047] Preferably, the method of "intersecting the quick matching data of the workpiece obtained by the first screening module and the data of the workpiece obtained by the second screening module after Blob analysis, screening out the workpieces that meet the intersection detection conditions, and obtaining the number of currently available workpieces and the pixel coordinates of the available optimal workpiece" includes:

[0048] Create a Param1 box and a Param2 box, input the quick matching data obtained by the first screening module into the Param1 box, and use it as comparison parameter A;

[0049] At the same time, the data obtained by the second screening module after Blob analysis is input into the Param2 box and used as the comparison parameter B;

[0050] Compare the workpieces that satisfy both comparison parameter A and comparison parameter B to obtain the similarity of the workpieces corresponding to the two parameters;

[0051] The workpieces meeting the preset similarity value are judged as meeting the intersection detection condition and are screened out as the removable workpieces, thereby obtaining the current number of removable workpieces;

[0052] The workpiece with the highest quick matching score is determined as the optimal workpiece, and its pixel coordinates are obtained;

[0053] The fast matching data includes: a fast matching score, a fast matching angle, and a fast matching rectangular frame parameter;

[0054] The data after Blob analysis includes: rectangular frame parameters after Blob analysis.

[0055] A second aspect of the present invention provides a calibration system, comprising:

[0056] An N-point calibration module (100) is used to perform N-point calibration to achieve pixel calibration and mechanism coordinate conversion;

[0057] A workpiece identification and output module (200), used to identify whether a workpiece is removable, determine the number of workpieces that can be taken, and generate pixel coordinates of the optimal removable workpiece;

[0058] A calibration conversion module (300) converts the pixel coordinates of the workpiece that can be taken in the workpiece identification and output module (200) into mechanism coordinates using the N-point calibration module (100);

[0059] The single-point alignment module (400) performs a separate comparison based on the current position and angle of the removable workpiece and the position and angle that actually need to be adjusted, so as to calculate the offset, and generates corresponding coordinate compensation based on the offset.

[0060] Preferably, the N-point calibration module (100) comprises:

[0061] An input unit (101) for inputting the number of calibrations required, N, the calibration type, and generating a corresponding N-point calibration instruction;

[0062] An execution unit (102) performs an N-point calibration action according to an N-point calibration instruction, and records the N-point pixel coordinates and the N-point mechanism coordinates to generate a conversion matrix and obtain a result;

[0063] The storage unit (103) stores the result generated by the execution unit (102) from the transformation matrix, so as to facilitate the subsequent use of the result for coordinate transformation.

[0064] Preferably, the workpiece identification and output module (200) comprises:

[0065] A first recognition unit (201) is used to recognize the contour of a target workpiece, and to determine whether the similarity between the contour of the target workpiece and the contour of a preset workpiece satisfies a preset similarity value, and at the same time to determine whether the rotation angle of the contour of the target workpiece satisfies a preset angle range;

[0066] A second recognition unit (202) is used to recognize whether the workpieces overlap and filter out the overlapping workpieces;

[0067] A third recognition unit (203) is used to combine the data of the first recognition unit (201) and the second recognition unit (202) to further screen out the best possible workpiece and its pixel coordinates;

[0068] The output unit (204) is used to output the number of available workpieces and the pixel coordinates of the optimal available workpiece.

[0069] Compared with the prior art, the present invention has the following beneficial effects:

[0070] 1. The setting of step S2 in the first embodiment of the present case can realize N-point calibration, which is no longer limited to the ordinary 9-point or 12-point calibration, so as to improve the pixel accuracy. The setting of step S3 is to identify whether the workpiece is removable before moving it, avoid taking overlapping or close products and outputting and outputting the current number of removable products and the pixel coordinates of the removable products, which is conducive to improving the material taking rate and overall efficiency of the manipulator. Through the setting of step S4, the pixel coordinates of the removable workpiece are converted into the mechanical coordinates of the manipulator. Through the setting of steps S5 and S6, the offset is calculated according to the current workpiece position and angle and the target position angle, and the coordinate compensation is automatically generated to improve the material taking efficiency.

[0071] 2. This case divides the calibration types into NinePointCalib and CircleCalib. The NinePointCalib calibration has high accuracy, strong versatility, and does not require a special calibration plate. The NinePointCalib calibration is easy to operate, has low requirements for feature points, and can simultaneously determine the rotation center and coordinate system transformation, so that it can be flexibly selected according to the specific working environment and production task requirements in actual production. By collecting N groups of different calibration point data to generate different transformation matrices, N-point calibration is achieved to improve calibration accuracy.

[0072] 3. In this case, the workpieces are screened by setting up an intersection detection tool and its three screening modules to ensure that only the workpieces that meet the screening conditions are picked up and the pixel coordinates of the optimal workpiece are output, avoiding clamping of overlapping workpieces and workpieces that are inconvenient to clamp at angles, thereby improving the efficiency and accuracy of material picking.

[0073] 4. In this case, the quick matching data obtained by the first screening module is input into the Param1 box, and the data obtained by the second screening module after Blob analysis is input into the Param2 box for intersection detection, so as to facilitate parameter comparison and workpiece identification. Through this comparison, the similarity or matching degree between the workpiece and the reference parameters can be evaluated, thereby realizing automatic identification and judgment, so as to obtain the number of available workpieces and the pixel coordinates of the optimal workpiece, thereby improving calibration efficiency.

[0074] 5. The calibration system of the second embodiment of the present case can realize N-point calibration and improve pixel accuracy through the setting of the N-point calibration module (100). At the same time, the setting of the workpiece identification and output module (200) can automatically and accurately determine whether the workpiece is removable, avoid taking overlapping or close products and outputting them, and can output the current number of removable products and the pixel coordinates of the removable products, which is conducive to improving the material taking rate and overall efficiency of the manipulator. In addition, the calibration conversion module (300) is used to achieve flexible conversion between pixel coordinates and mechanism coordinates. The setting of the single-point alignment module (400) calculates the offset according to the current workpiece position and angle and the target position angle, automatically generates coordinate compensation, and improves the material taking accuracy and efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] Figure 1 It is a schematic diagram of the three-dimensional structure of the calibration device.

[0076] Figure 2 It is a step flow chart of the first embodiment of this case.

[0077] Figure 3 It is a structural diagram of the calibration system of Example 2 of this case.

[0078] Figure 4 It is a structural diagram of the N-point calibration module in this case.

[0079] Figure 5 It is a structural diagram of the workpiece identification and output module in this case. DETAILED DESCRIPTION

[0080] The features of the present invention and other related features are further described in detail below through embodiments to facilitate understanding by those skilled in the art:

[0081] Embodiment 1

[0082] like Figure 2 As shown, a calibration and material taking method based on a manipulator is applied to a calibration system, comprising the following steps:

[0083] S1. The manipulator places the calibration block on the calibration platform according to the preset program;

[0084] S2. Use N-point calibration method to realize the mutual conversion between pixel coordinates and mechanism coordinates;

[0085] S3, photographing and identifying the workpieces on the vibration plate and screening them to determine the number of workpieces that can be taken and obtain the pixel coordinates of the workpieces that can be taken;

[0086] S4, generating pixel coordinates according to the method of step S2 from the pixel coordinates obtained in step S3, and converting them into mechanism coordinates;

[0087] S5, comparing the current position and angle of the workpiece in step S3 or S4 with the actual position and angle that need to be adjusted to calculate the offset;

[0088] S6. Generate corresponding coordinate compensation according to the offset calculated in S5.

[0089] As described above, according to the setting of step S2, N-point calibration can be achieved, which is no longer limited to ordinary 9-point or 12-point calibration, so as to improve pixel accuracy. The setting of step S3 is to identify whether the workpiece is removable before moving it, avoid taking overlapping or close products and outputting and outputting the current number of removable products and the pixel coordinates of the removable products, which is conducive to improving the material taking rate and overall efficiency of the manipulator. Through the setting of step S4, the pixel coordinates of the removable workpiece are converted into the mechanical coordinates of the manipulator. Through the setting of steps S5 and S6, the offset is calculated according to the current workpiece position and angle and the target position angle, and the coordinate compensation is automatically generated to improve the material taking efficiency.

[0090] As a preferred implementation, in specific implementation, the "using the N-point calibration method to achieve the mutual conversion between pixel coordinates and mechanism coordinates" described in step S2 includes:

[0091] S21, define the calibration type, and divide the calibration type into NinePointCalib calibration type and CircleCalib calibration type;

[0092] S22, performing different calibration steps according to different selected calibration types to perform coordinate conversion;

[0093] S221. When the calibration type is selected as NinePointCalib, perform the following calibration steps:

[0094] Define the number of calibration points as N, and generate a second calibration instruction;

[0095] In response to the second calibration instruction, the robot moves the pre-processed calibration blocks to N designated photographing points respectively;

[0096] Every time the robot moves to a point and moves away, it triggers the camera to take a photo, and saves the N pixel coordinates and N mechanism coordinates taken by the camera to generate N sets of calibration data;

[0097] Send the generated N groups of calibration data to the N-point calibration tool;

[0098] Use the N-point calibration tool to analyze N groups of calibration data, calculate the coordinates of N identical points in the camera coordinate system and the robot coordinate system, obtain the conversion matrix between pixel coordinates and mechanism coordinates, and calculate the calibration parameters for storage;

[0099] When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between the pixel coordinates and the mechanism coordinates;

[0100] S222. When the calibration type is selected as CircleCalib, perform the following calibration steps:

[0101] Define the number of calibration points as N, and generate the first calibration instruction;

[0102] In response to the first calibration instruction, the robot moves the calibration block with the circular mark to the designated photographing point;

[0103] The robot moves to the calibration point and then moves away, triggering the camera to rotate and take pictures at different angles, so as to take N pictures of the calibration block with circular marks at different angles;

[0104] Extract the image of the circular mark from N photos, and use image processing technology to obtain the center position of the mark;

[0105] Calculate the rotation center based on the marked center position;

[0106] According to the positional relationship between the rotation center and the camera coordinate system, the transformation matrix between the pixel coordinates and the mechanism coordinates is obtained, and the calibration parameters are calculated and stored;

[0107] When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between the pixel coordinates and the mechanism coordinates. Wherein, N is an integer and N≥4. In specific implementation, the N-point calibration tool is a tool for machine vision and image processing, which is mainly used to determine the internal parameters (such as focal length, optical center, distortion coefficient, etc.) and external parameters (such as rotation angle, translation distance, etc.) of a camera or image acquisition system.

[0108] As mentioned above, by dividing the calibration types into NinePointCalib and CircleCalib, NinePointCalib has high accuracy, strong versatility, and does not require a special calibration plate; NinePointCalib is easy to operate, has low requirements for feature points, and can simultaneously determine the rotation center and coordinate system transformation, so that it can be flexibly selected according to the specific working environment and production task requirements in actual production. By collecting N groups of different calibration point data to generate different transformation matrices, N-point calibration is achieved to improve calibration accuracy.

[0109] As a preferred embodiment, in specific implementation, the step S3 of "photographing, identifying and screening the workpieces on the vibration plate to determine the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken" includes:

[0110] S31, taking photos of the workpieces on the vibration plate to identify them and obtain the parameters of each workpiece;

[0111] S32, inputting the acquired workpiece parameters into the intersection detection tool and selecting a corresponding intersection mode;

[0112] S33, generating different intersection detection instructions according to different intersection modes;

[0113] S34, in response to the intersection detection instruction and the input workpiece parameters, determining the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken;

[0114] The different intersection modes include: Center intersection detection mode and IntersectAndCenter intersection detection mode. In specific implementation, Center intersection of Center intersection detection mode indicates whether the center points of two input rectangle parameters overlap, while IntersectAndCenter intersection indicates whether the edges and center points of two input rectangle box parameters intersect. IntersectAndCenter intersection is stricter than Center intersection.

[0115] In this way, by setting different intersection modes, generating different intersection detection instructions, and entering the Center intersection detection mode or the IntersectAndCenter intersection detection mode, different intersection modes can be flexibly selected to adapt to different application scenarios and requirements.

[0116] In specific implementation, the intersection detection tool includes:

[0117] A first screening module is used to quickly match the multiple workpieces, screen out the workpieces that meet the quick matching conditions and generate quick matching data;

[0118] The second screening module is used to perform Blob analysis on multiple artifacts, filter out artifacts that meet Blob analysis conditions and generate data after Blob analysis;

[0119] The third screening module is used to perform intersection detection on the quick matching data of the workpiece obtained by the first screening module and the data after Blob analysis of the workpiece obtained in the second screening module, screen out the workpieces that meet the intersection detection conditions, and obtain the current number of available workpieces and the pixel coordinates of the optimal available workpiece.

[0120] The quick matching conditions include:

[0121] Condition 1: The similarity between the contour of the workpiece photographed by the camera and the predefined contour of the workpiece is greater than a preset similarity value; for example, if the similarity between the contour of the workpiece photographed and the predefined contour of the workpiece is 95% and the preset similarity value is 90%, then condition 1 is satisfied.

[0122] Condition 2: The rotation angle of the workpiece contour photographed by the camera is within a predefined angle range; for example, if the rotation angle of the workpiece contour photographed is 90 degrees and the predefined angle range is 45-135 degrees, then condition 2 is satisfied.

[0123] If both condition 1 and condition 2 are met, the quick matching condition is met.

[0124] The blob analysis condition is that a workpiece and another workpiece have a connected area consisting of similar color, texture and other features in the image, that is, a workpiece and another workpiece have an overlapping part, that is, the two workpieces are stacked.

[0125] In practice, Blob is the process of detecting, locating or analyzing target objects in image regions where pixels are of finite grayscale. Blob analysis refers to extracting product features, such as existence, quantity, location, shape, orientation and other information.

[0126] As described above, the workpieces are screened by setting up the intersection detection tool and its three screening modules to ensure that only the workpieces that meet the screening conditions are picked up and the pixel coordinates of the optimal workpiece are output, avoiding clamping of overlapping workpieces and workpieces that are inconvenient to clamp at angles, thereby improving the efficiency and accuracy of material picking.

[0127] As a preferred implementation, the method of "intersecting the quick matching data of the workpiece obtained by the first screening module and the data of the workpiece obtained by the second screening module after Blob analysis, screening out the workpieces that meet the intersection detection conditions, and obtaining the number of currently available workpieces and the pixel coordinates of the available optimal workpiece" includes:

[0128] Create a Param1 box and a Param2 box, input the quick matching data obtained by the first screening module into the Param1 box, and use it as comparison parameter A;

[0129] At the same time, the data obtained by the second screening module after Blob analysis is input into the Param2 box and used as the comparison parameter B;

[0130] Compare the workpieces that satisfy both comparison parameter A and comparison parameter B to obtain the similarity of the workpieces corresponding to the two parameters;

[0131] The workpieces meeting the preset similarity value are judged as meeting the intersection detection condition and are screened out as the removable workpieces, thereby obtaining the current number of removable workpieces;

[0132] The workpiece with the highest quick matching score is determined as the optimal workpiece, and its pixel coordinates are obtained;

[0133] The fast matching data includes: a fast matching score, a fast matching angle, and a fast matching rectangular frame parameter;

[0134] The data after Blob analysis includes: the parameters of the rectangular frame after Blob analysis, specifically including: the coordinates of the center point of Blob, the area of ​​Blob, the aspect ratio of the Blob's circumscribed rectangle, and the angle between the Blob's circumscribed rectangle and the horizontal axis.

[0135] Specifically, the score of the fast match represents the degree of feature similarity of the workpieces. The more similar, the higher the score. The angle of the fast match can be used to rotate the image or feature points to better align or match the target object. Rectangular box parameters of fast match: Rectangular box parameters can be used to extract the region of interest (ROI) in the image, or to locate the bounding box of the target object. For example, in target detection or object positioning, the rectangular box parameters can be used to extract the position and size information of the target object.

[0136] In short, inputting the fast matching scores, angles, and rectangular box parameters into the corresponding data structure or algorithm can help us better process and analyze image data and improve the accuracy and efficiency of tasks such as target detection, object recognition, and image registration.

[0137] As described above, the quick matching data obtained by the first screening module is input into the Param1 box, and the data obtained by the second screening module after Blob analysis is input into the Param2 box for intersection detection, so as to facilitate parameter comparison and workpiece identification. Through this comparison, the similarity or matching degree between the workpiece and the reference parameters can be evaluated, thereby realizing automatic identification and judgment, so as to obtain the number of available workpieces and the pixel coordinates of the optimal workpiece, thereby improving calibration efficiency.

[0138] Embodiment 2

[0139] like Figure 3 As shown, a calibration system; characterized in that it includes:

[0140] An N-point calibration module (100) is used to perform N-point calibration to achieve pixel calibration and mechanism coordinate conversion;

[0141] A workpiece identification and output module (200), used to identify whether a workpiece is removable, determine the number of workpieces that can be taken, and generate pixel coordinates of the optimal removable workpiece;

[0142] A calibration conversion module (300) converts the pixel coordinates of the workpiece that can be taken in the workpiece identification and output module (200) into mechanism coordinates using the N-point calibration module (100);

[0143] The single-point alignment module (400) performs a separate comparison based on the current position and angle of the removable workpiece and the position and angle that actually need to be adjusted, so as to calculate the offset, and generates corresponding coordinate compensation based on the offset.

[0144] like Figure 4 As shown, in a specific implementation, the N-point calibration module (100) includes:

[0145] An input unit (101) for inputting the number of calibrations required, N, the calibration type, and generating a corresponding N-point calibration instruction;

[0146] An execution unit (102) performs an N-point calibration action according to an N-point calibration instruction, and records the N-point pixel coordinates and the N-point mechanism coordinates to generate a conversion matrix and obtain a result;

[0147] The storage unit (103) stores the result generated by the execution unit (102) and obtained from the conversion matrix.

[0148] like Figure 5 As shown, in a specific implementation, the workpiece identification and output module (200) includes:

[0149] A first recognition unit (201) is used to recognize the contour of a target workpiece, and to determine whether the similarity between the contour of the target workpiece and the contour of a preset workpiece satisfies a preset similarity value, and at the same time to determine whether the rotation angle of the contour of the target workpiece satisfies a preset angle range;

[0150] A second recognition unit (202) is used to recognize whether the workpieces overlap and filter out the overlapping workpieces;

[0151] A third recognition unit (203) is used to combine the data of the first recognition unit (201) and the second recognition unit (202) to further screen out the best possible workpiece and its pixel coordinates;

[0152] The output unit (204) is used to output the number of available workpieces and the pixel coordinates of the optimal available workpiece.

[0153] As described above, the calibration system of this case can realize N-point calibration and improve pixel accuracy through the setting of N-point calibration module (100). At the same time, the setting of workpiece identification and output module (200) can automatically and accurately determine whether the workpiece is removable, avoid taking overlapping or close products and outputting them, and can output the current number of removable products and the pixel coordinates of the removable products, which is conducive to improving the material taking rate and overall efficiency of the manipulator. In addition, the calibration conversion module (300) is used to achieve flexible conversion between pixel coordinates and mechanism coordinates. The setting of the single-point alignment module (400) calculates the offset according to the current workpiece position and angle and the target position angle, automatically generates coordinate compensation, and improves the material taking accuracy and efficiency.

[0154] As mentioned above, this case protects a robot-based calibration and material picking method and calibration system. All technical solutions that are the same or similar to this case should be deemed to fall within the scope of protection of this case.

Claims

1. A calibration and material taking method based on a manipulator, applied to a calibration system, characterized in that: The following steps are involved: S1. The manipulator places the calibration block on the calibration platform according to the preset program; S2. Use N-point calibration method to realize the mutual conversion between pixel coordinates and mechanism coordinates; S3, photographing and identifying the workpieces on the vibration plate and screening them to determine the number of workpieces that can be taken and obtain the pixel coordinates of the workpieces that can be taken; S4, generating pixel coordinates according to the method of step S2 from the pixel coordinates obtained in step S3, and converting them into mechanism coordinates; S5, comparing the current position and angle of the workpiece in step S3 or S4 with the actual position and angle that need to be adjusted to calculate the offset; S6, generating corresponding coordinate compensation according to the offset calculated in S5; Wherein, the "using the N-point calibration method to achieve the mutual conversion between pixel coordinates and mechanism coordinates" described in step S2 includes: S21, define the calibration type, and divide the calibration type into NinePointCalib calibration type and CircleCalib calibration type; S22, performing different calibration steps according to different selected calibration types to perform coordinate conversion; S221. When the calibration type is selected as NinePointCalib, perform the following calibration steps: Define the number of calibration points as N, and generate a second calibration instruction; In response to the second calibration instruction, the robot moves the pre-processed calibration blocks to N designated photographing points respectively; Every time the robot moves to a point and moves away, it triggers the camera to take a photo, and saves the N pixel coordinates and N mechanism coordinates taken by the camera to generate N sets of calibration data; Send the generated N groups of calibration data to the N-point calibration tool; Use the N-point calibration tool to analyze N groups of calibration data, calculate the coordinates of N identical points in the camera coordinate system and the robot coordinate system, obtain the conversion matrix between pixel coordinates and mechanism coordinates, and calculate the calibration parameters for storage; When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between the pixel coordinates and the mechanism coordinates; S222. When the calibration type is selected as CircleCalib, perform the following calibration steps: Define the number of calibration points as N, and generate the first calibration instruction; In response to the first calibration instruction, the robot moves the calibration block with the circular mark to the designated photographing point; The robot moves to the calibration point and then moves away, triggering the camera to rotate and take pictures at different angles, so as to take N pictures of the calibration block with circular marks at different angles; Extract the image of the circular mark from N photos, and use image processing technology to obtain the center position of the mark; Calculate the rotation center based on the marked center position; According to the positional relationship between the rotation center and the camera coordinate system, the transformation matrix between the pixel coordinates and the mechanism coordinates is obtained, and the calibration parameters are calculated and stored; When the pixel coordinates of a workpiece are obtained, the calibration parameters are called to realize the mutual conversion between pixel coordinates and mechanism coordinates.

2. A calibration and material removal method based on a manipulator according to claim 1, characterized in that The step S3 of "photographing, identifying and screening the workpieces on the vibration plate to determine the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken" includes: S31, taking photos of the workpieces on the vibration plate to identify them and obtain the parameters of each workpiece; S32, inputting the acquired workpiece parameters into the intersection detection tool and selecting a corresponding intersection mode; S33, generating different intersection detection instructions according to different intersection modes; S34, in response to the intersection detection instruction and the input workpiece parameters, determining the number of workpieces that can be taken and obtaining the pixel coordinates of the workpieces that can be taken; The different intersection modes include: Center intersection detection mode and IntersectAndCenter intersection detection mode.

3. A calibration and material taking method based on a manipulator according to claim 2, characterized in that The intersection detection tool includes: A first screening module is used to quickly match the multiple workpieces, screen out the workpieces that meet the quick matching conditions and generate quick matching data; The second screening module is used to perform Blob analysis on multiple artifacts, filter out artifacts that meet Blob analysis conditions and generate data after Blob analysis; The third screening module is used to perform intersection detection on the quick matching data of the workpiece obtained by the first screening module and the data after Blob analysis of the workpiece obtained in the second screening module, screen out the workpieces that meet the intersection detection conditions, and obtain the current number of available workpieces and the pixel coordinates of the optimal available workpiece.

4. A calibration and material taking method based on a manipulator according to claim 3, characterized in that: The quick matching conditions include: Condition 1: The similarity between the contour of the workpiece photographed by the camera and the predefined contour of the workpiece is greater than a preset similarity value; Condition 2: The rotation angle of the workpiece profile captured by the camera is within the predefined angle range; If both condition 1 and condition 2 are met, the quick matching condition is met.

5. A calibration and material taking method based on a manipulator according to claim 3, characterized in that: The blob analysis condition is that a certain workpiece and another workpiece have a connected area consisting of similar features such as color and texture in the image, that is, a certain workpiece and another workpiece have overlapping parts.

6. A calibration and material taking method based on a manipulator according to any one of claims 3 to 5, characterized in that: The method of "intersecting the quick matching data of the workpiece obtained by the first screening module and the data of the workpiece obtained by the second screening module after Blob analysis, screening out the workpieces that meet the intersection detection conditions, and obtaining the number of currently available workpieces and the pixel coordinates of the available optimal workpiece" includes: Create a Param1 box and a Param2 box, input the quick matching data obtained by the first screening module into the Param1 box, and use it as comparison parameter A; At the same time, the data obtained by the second screening module after Blob analysis is input into the Param2 box and used as the comparison parameter B; Compare the workpieces that satisfy both comparison parameter A and comparison parameter B to obtain the similarity of the workpieces corresponding to the two parameters; The workpieces meeting the preset similarity value are judged as meeting the intersection detection condition and are screened out as the removable workpieces, thereby obtaining the current number of removable workpieces; The workpiece with the highest quick matching score is determined as the optimal workpiece, and its pixel coordinates are obtained; The fast matching data includes: a fast matching score, a fast matching angle, and a fast matching rectangular frame parameter; The data after Blob analysis includes: rectangular frame parameters after Blob analysis.

7. A calibration system, characterized in that: The calibration and material collection method according to claim 1 comprises: An N-point calibration module (100) is used to perform N-point calibration to achieve pixel calibration and mechanism coordinate conversion; A workpiece identification and output module (200), used to identify whether a workpiece is removable, determine the number of workpieces that can be taken, and generate pixel coordinates of the optimal removable workpiece; A calibration conversion module (300) converts the pixel coordinates of the workpiece that can be taken in the workpiece identification and output module (200) into mechanism coordinates using the N-point calibration module (100); The single-point alignment module (400) performs a separate comparison based on the current position and angle of the removable workpiece and the position and angle that actually need to be adjusted, so as to calculate the offset, and generates corresponding coordinate compensation based on the offset.

8. A calibration system according to claim 7, characterized in that: The N-point calibration module (100) comprises: An input unit (101) for inputting the number of calibrations required, N, the calibration type, and generating a corresponding N-point calibration instruction; An execution unit (102) performs an N-point calibration action according to an N-point calibration instruction, and records the N-point pixel coordinates and the N-point mechanism coordinates to generate a conversion matrix and obtain a result; The storage unit (103) stores the result generated by the execution unit (102) and obtained from the conversion matrix.

9. A calibration system according to claim 7, characterized in that: The workpiece identification and output module (200) comprises: A first recognition unit (201) is used to recognize the contour of a target workpiece, and to determine whether the similarity between the contour of the target workpiece and the contour of a preset workpiece satisfies a preset similarity value, and at the same time to determine whether the rotation angle of the contour of the target workpiece satisfies a preset angle range; A second recognition unit (202) is used to recognize whether the workpieces overlap and filter out the overlapping workpieces; A third recognition unit (203) is used to combine the data of the first recognition unit (201) and the second recognition unit (202) to further screen out the best possible workpiece and its pixel coordinates; The output unit (204) is used to output the number of available workpieces and the pixel coordinates of the optimal available workpiece.