Robotic arm hand-eye calibration method, system, computer and readable storage medium

Through the automated hand-eye calibration method, image sampling and PNP algorithms are used to calculate the relative posture of the camera and the end of the robotic arm, which solves the problems of requiring professional operation and low accuracy in the existing technology, and improves the calibration accuracy.

CN114952856BActive Publication Date: 2024-09-27JIANGXI INST OF INTELLIGENT IND TECH INNOVATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210682194.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2024-09-27
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

The hand-eye calibration process of the existing vision-guided robotic arm requires professional operations, and the relative position accuracy of the camera and the end of the robotic arm under manual control is not high, which affects the calibration accuracy.

Method used

By querying whether there is a calibration plate in the camera image, analyzing the spatial position of the calibration plate, adjusting the camera position, and constructing a concentric sampling sphere for image sampling, the pnp algorithm is used to calculate the relative pose of the camera and the end of the robotic arm to achieve automated hand-eye calibration.

Benefits of technology

Hand-eye calibration can be achieved without human participation, which reduces the impact of the robot arm's own errors on pose data and improves the accuracy of relative pose data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114952856B
    Figure CN114952856B
Patent Text Reader

Abstract

The present invention discloses a method, system, computer and readable storage medium for hand-eye calibration of a robotic arm. The method comprises: querying whether there is a calibration plate in the camera image; if so, analyzing and calculating the spatial position of the calibration plate and adjusting the position of the camera so that the camera is located above the calibration plate; constructing at least two concentric sampling spheres, driving the robotic arm to perform image sampling, obtaining point sampling images and a posture data set of the robotic arm at the corresponding point; calculating the corner points of the calibration plate in each point sampling image, and obtaining the spatial coordinate transformation between the point sampling images as a posture set; inputting the hand-eye calibration algorithm according to the posture data set and the posture set, and calculating the relative posture of the camera coordinate system relative to the coordinate system of the end of the robotic arm. The beneficial effect of the present application is that while achieving the purpose of automated hand-eye calibration of the robotic arm, the accuracy of hand-eye calibration is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of hand-eye calibration, and in particular to a robot arm hand-eye calibration method, system, computer and readable storage medium. Background Art

[0002] In the process of vision-guided robotic arm grasping, in addition to the measurement accuracy of the visual sensor and the movement accuracy of the robotic arm, the posture transformation from the visual sensor to the end of the robotic arm (including rotational and translational components) will also have a significant impact on the grasping accuracy. The hand-eye calibration process of the vision-guided robotic arm is used to obtain a more reliable posture transformation relationship.

[0003] During the vision-guided hand-on-eye calibration (i.e., hand-eye calibration), the camera is fixed to the flange at the end of the robotic arm through a connector. Currently, the vision-guided hand-eye calibration process of the robotic arm requires professional personnel to operate the robotic arm (remote control, drag and drop teaching) so that the calibration marker (calibration plate) is always in the camera's field of view. The entire calibration process requires the collection of about 20 calibration plate images at different angles, and the corresponding position of the robotic arm end for each image is recorded. The relative relationship (rotation, translation) between the camera and the robotic arm end is calculated through the above data.

[0004] However, the above method has certain requirements on the technical ability of professionals, and the relative relationship (relative posture) between the camera and the end of the robotic arm calculated by manual control is not very accurate. Summary of the invention

[0005] Based on this, one object of the present invention is to propose a robot arm hand-eye calibration method, system, computer and readable storage medium, which not only achieves the purpose of automated hand-eye calibration of the robot arm, but also improves the accuracy of hand-eye calibration.

[0006] In a first aspect, the present application proposes a robot hand-eye calibration method, which is applied to a robot device, wherein the robot device comprises a robot and a camera disposed at the end of the robot, and the method comprises the following steps:

[0007] Query whether there is a calibration plate in the image acquired by the camera;

[0008] If yes, then analyzing and calculating the spatial position of the calibration plate in the camera coordinate system;

[0009] Adjusting the position of the camera according to the spatial position of the calibration plate so that the camera is located above the calibration plate;

[0010] Construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points on each of the sampling spheres, and obtain point sampling images and a posture data set of the robotic arm at the corresponding points; wherein the sampling sphere takes the calibration plate as the center of the sphere;

[0011] Calculate the corner points of the calibration plate in each of the point sampling images, and obtain the spatial coordinate transformation between the point sampling images as a posture set through a pnp algorithm;

[0012] A hand-eye calibration algorithm is input according to the pose data set and the posture set to calculate the relative pose of the camera coordinate system with respect to the robot arm end coordinate system.

[0013] The robot hand-eye calibration method proposed in the present invention has the following beneficial effects: by constructing a double spherical image sampling surface, the collected posture data is less affected by the robot's own error, ensuring that the calibration plate appears at each position and angle in the point sampling image, thereby making the calculated relative posture data more accurate; and through the above steps and methods, the robot hand-eye calibration process can be achieved without human participation. This effectively overcomes the problem that the current hand-eye calibration requires the assistance of professionals and the hand-eye calibration error is affected by the operator's skills.

[0014] Preferably, in the robotic arm hand-eye calibration method described in the present application, the step of constructing at least two concentric sampling spheres and driving the robotic arm to make the camera perform image sampling along multiple points on each of the sampling spheres specifically includes:

[0015] A first spherical surface is constructed with the calibration plate as the sphere center and the first preset height as the radius, and the mechanical arm is driven to make the camera perform image sampling at multiple points on the first spherical surface;

[0016] A second spherical surface is constructed with the calibration plate as the sphere center and the second preset height as the radius, and the mechanical arm is driven to enable the camera to perform image sampling at multiple points on the second spherical surface.

[0017] Preferably, in the robotic arm hand-eye calibration method described in the present application, after the step of obtaining the point sampling image and the posture data set of the robotic arm at the corresponding point, it also includes:

[0018] Determine whether the number of the point sampling images meets a preset value;

[0019] If not, the process returns to the step of driving the mechanical arm to make the camera perform image sampling along a plurality of points on each sampling sphere.

[0020] Preferably, in the robotic arm hand-eye calibration method described in the present application, the hand-eye calibration algorithm adopts the OpenCV hand-eye calibration solution algorithm.

[0021] Preferably, in the robotic arm hand-eye calibration method described in the present application, the step of analyzing and calculating the spatial position of the calibration plate in the camera coordinate system specifically includes:

[0022] Using a target detection algorithm to detect pixel coordinates of the calibration plate in the image acquired by the camera;

[0023] The spatial position of the calibration plate in the camera coordinate system is calculated according to the data of the camera depth stream; wherein the data of the camera depth stream is obtained by calculating the image through a camera depth estimation algorithm to obtain the depth stream data of the camera about the calibration plate.

[0024] In a second aspect, the present application proposes a robot arm hand-eye calibration system, the system comprising:

[0025] Image query module: used to query whether there is a calibration plate in the image acquired by the camera;

[0026] Spatial position calculation module: used to analyze and calculate the spatial position of the calibration plate in the camera coordinate system;

[0027] Position adjustment module: used for adjusting the position of the camera according to the spatial position of the calibration plate, so that the camera is located above the calibration plate;

[0028] Sampling module: used to construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points of each sampling sphere, obtain point sampling images and the pose data set of the robotic arm at the corresponding point; wherein the sampling sphere takes the calibration plate as the sphere center;

[0029] Posture calculation module: used to calculate the corner points of the calibration plate in each of the point sampling images, and obtain the spatial coordinate transformation between the point sampling images as a posture set through the pnp algorithm;

[0030] Relative posture calculation module: used to calculate the relative posture of the camera coordinate system relative to the robot arm end coordinate system according to the posture data set and the posture set input hand-eye calibration algorithm.

[0031] Preferably, the sampling module specifically includes:

[0032] A first spherical surface sampling unit is used to construct a first spherical surface with the calibration plate as the sphere center and the first preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the first spherical surface;

[0033] The second spherical sampling unit is used to construct a second spherical surface with the calibration plate as the center and the second preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the second spherical surface.

[0034] Preferably, the system further comprises:

[0035] Judgment module: used to judge whether the number of the point sampling images meets the preset value;

[0036] Return module: when the number of the point sampling images does not meet the preset value, return to the step of driving the mechanical arm to make the camera perform image sampling along multiple points of each sampling sphere.

[0037] In a third aspect, the present application proposes a computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the robot arm hand-eye calibration method as described in the first aspect above is implemented.

[0038] In a fourth aspect, the present application proposes a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the robot arm hand-eye calibration method as described in the first aspect above.

[0039] As can be seen from the above, the robotic arm hand-eye calibration method provided by the present application, after determining that there is a calibration plate in the image acquired by the camera, calculates the spatial position of the calibration plate in the camera, and drives the robotic arm so that the camera is located above the robotic arm, and constructs multiple sampling spheres by taking the distance between the camera and the calibration plate as the radius and the center of the calibration plate as the sphere, and performs image sampling on multiple sampling spheres respectively to obtain a posture data set, and then solves the spatial coordinate transformation between the point sampling images as a posture set through an algorithm. Through the above steps and methods, the hand-eye calibration process can be realized without the participation of personnel, which effectively overcomes the problem that the hand-eye calibration at this stage requires the assistance of professionals and the hand-eye calibration error is affected by the operator's technology. In addition, in the method of obtaining the posture data set, at least two sampling spheres are constructed for image sampling, which effectively reduces the influence of the collected posture data on the robot's own errors, and at the same time ensures that the calibration plate appears at each position and angle in the point sampling image, so that the calculated relative posture data is more accurate.

[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0042] Figure 1 is a flow chart of the robot arm hand-eye calibration method proposed in the first embodiment of the present invention;

[0043] Figure 2 It is a flowchart of constructing at least two concentric sampling spheres and driving the robotic arm to make the camera perform image sampling along multiple points on each sampling sphere in the robotic arm hand-eye calibration method proposed in the first embodiment of the present invention;

[0044] Figure 3 It is a structural schematic diagram of multi-point image sampling in the robot arm hand-eye calibration method proposed in the first embodiment of the present invention;

[0045] Figure 4 It is a flowchart after the step of obtaining a point sampling image and a posture data set of the robot arm at the corresponding point in the robot hand-eye calibration method proposed in the first embodiment of the present invention;

[0046] Figure 5 is a flow chart for analyzing and calculating the spatial position of the calibration plate in the camera coordinate system in the first embodiment of the present invention;

[0047] Figure 6 It is a schematic diagram of the structure of a robotic arm hand-eye calibration system according to the second embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0049] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0050] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0051] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantity limitation, and may indicate the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0052] At present, the hand-eye calibration process of the vision-guided robotic arm requires professional personnel to operate the robotic arm (remote control, drag and drop teaching) so that the calibration marker (calibration plate) is always in the camera's field of view. The entire calibration process requires the collection of about 20 calibration plate images at different angles, and the corresponding robotic arm end posture of each image is recorded. The relative relationship between the camera and the robotic arm end (rotation, translation) is calculated through the above data. However, the above method has certain requirements for the technical ability of professionals, and the relative relationship (relative posture) between the camera and the robotic arm end calculated by manual control is not very accurate.

[0053] To this end, the present invention proposes a robot arm hand-eye calibration method, system, computer and readable storage medium to overcome the problems existing in the prior art.

[0054] See also Figure 1, which is a robot hand-eye calibration method proposed in the first embodiment of the present invention, is applied to a robot arm device, wherein the robot arm device includes a robot arm and a camera arranged at the end of the robot arm.

[0055] The robot arm hand-eye calibration method comprises the following steps:

[0056] Step S11, query whether there is a calibration plate in the image acquired by the camera.

[0057] The calibration plate is a black and white grid. When the calibration process starts, the calibration plate may be at a random position in the image acquired by the camera. Before querying whether the calibration plate exists in the image acquired by the camera, the camera needs to perform a self-check to determine whether the camera can acquire the image normally. If the calibration plate does not exist in the image acquired by the camera, it means that the hand-eye calibration has failed and the hand-eye calibration ends.

[0058] Step S12: If yes, analyze and calculate the spatial position of the calibration plate in the camera coordinate system.

[0059] It can be understood that in the embodiment of the present invention, the image acquired by the camera and the position of the calibration plate are determined by establishing a coordinate system.

[0060] Step S13: adjust the position of the camera according to the spatial position of the calibration plate so that the camera is located above the calibration plate.

[0061] In an embodiment of the present invention, after determining the position information of the calibration plate in the image acquired by the camera, the camera is moved to the top of the calibration plate by controlling the driving robotic arm, so that the calibration plate is perpendicular to the direction of the optical center axis of the camera, and the intersection of the optical center axis and the plane of the calibration plate is located within the calibration plate area, which is convenient for subsequent point image sampling calculations.

[0062] Step S14, construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points on each sampling sphere, and obtain point sampling images and a posture data set of the robotic arm at the corresponding points.

[0063] The sampling sphere has the calibration plate as its center.

[0064] It is understandable that the error directions of the robot arm in different areas of space may be different. In the embodiment of the present invention, multiple concentric spheres are used as sampling spheres to effectively reduce the influence of the error of the robot arm's own coordinate parameters on the final sampled posture data during the sampling process, making the posture data more accurate.

[0065] Step S15, calculating the corner points of the calibration plate in each point sampling image, and solving the spatial coordinate transformation between the point sampling images by the pnp algorithm as a posture set.

[0066] Step S16: input the hand-eye calibration algorithm according to the pose data set and the posture set to calculate the relative pose of the camera coordinate system relative to the robot arm end coordinate system.

[0067] In summary, the robotic arm hand-eye calibration method provided by the present invention, through the above-mentioned method, after determining that there is a calibration plate in the image acquired by the camera, calculates the spatial position of the calibration plate in the camera, and drives the robotic arm so that the camera is located above the robotic arm, and constructs multiple sampling spheres by taking the distance between the camera and the calibration plate as the radius and the center of the calibration plate as the sphere, and performs image sampling on the multiple sampling spheres respectively to obtain a posture data set, and then solves the posture set of the camera in the calibration plate coordinate system under the current point sampling image through an algorithm. Through the above-mentioned steps and methods, the hand-eye calibration process can be realized without the participation of personnel, which effectively overcomes the problem that the hand-eye calibration at this stage requires the assistance of professionals and the hand-eye calibration error is large. In addition, in the method of obtaining the posture data set, at least two sampling spheres are constructed for image sampling, so that the collected posture data is less affected by the robot's own error, and at the same time, it ensures that the calibration plate appears at each position and angle in the point sampling image, so that the calculated relative posture data is more accurate.

[0068] In the embodiment of the present invention, the hand-eye calibration algorithm specifically adopts the OpenCV hand-eye calibration solution algorithm.

[0069] See also Figure 2 In the robotic arm hand-eye calibration method proposed in the first embodiment of the present invention, the steps of constructing at least two concentric sampling spheres and driving the robotic arm to make the camera perform image sampling along multiple points on each sampling sphere include:

[0070] Step S21, constructing a first spherical surface with the calibration plate as the sphere center and the first preset height as the radius, and driving the mechanical arm to make the camera perform image sampling at multiple points on the first spherical surface.

[0071] Step S22: construct a second spherical surface with the calibration plate as the sphere center and the second preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the second spherical surface.

[0072] Specific as Figure 3 As shown, the first preset height is set to 50 cm, the second preset height is 60 cm, the camera is set to 9 sampling points on each sampling sphere, a total of 18 images are collected, and the sampling point angles of each sampling sphere are different. Through the above method, the calibration quality of the camera when shooting the calibration plate can be effectively improved.

[0073] For further information, see Figure 4 In the robot hand-eye calibration method proposed in the second embodiment of the present invention, after the step of obtaining the point sampling image and the posture data set of the robot at the corresponding point, the method further includes:

[0074] Step S41: determine whether the number of point sampling images meets a preset value.

[0075] Step S42: If not, return to the step of driving the mechanical arm to make the camera perform image sampling along multiple points on each sampling sphere.

[0076] by Figure 3 For example, in the embodiment of the present invention, the number of point sampling images is 18. The point sampling images are obtained by driving the robotic arm to drive the camera to shoot along the sampling points of the two sampling spheres. When the number of shots does not meet 18, it is determined that there is a missed shot, and the step of point image acquisition needs to be repeated. Through the above steps, it is ensured that the number of sampled images is sufficient, and the influence of the robotic arm motion error on the calibration result is effectively reduced. At the same time, the calibration plate images at various angles are collected to improve the calibration accuracy.

[0077] For further information, see Figure 5 , in the first embodiment of the present invention, the step of analyzing and calculating the spatial position of the calibration plate in the camera coordinate system specifically includes:

[0078] Step S51: Use a target detection algorithm to detect the pixel coordinates of the calibration plate in the image acquired by the camera.

[0079] The target detection algorithm can effectively extract the calibration plate from the image acquired by the camera, and use the captured image as the coordinate system to calculate the pixel coordinates (u, v) of the calibration plate in the image.

[0080] Step S52: Calculate the spatial position of the calibration plate in the camera coordinate system according to the data of the camera depth stream.

[0081] The camera depth stream data is obtained by calculating the image through the camera depth estimation algorithm, and the camera depth stream data about the calibration plate is obtained. Combined with the pixel coordinates (u, v), the spatial position (x, y, z) of the calibration plate in the camera coordinate system is finally derived.

[0082] In summary, this application adopts the above-mentioned robot arm hand-eye calibration method, and by constructing a double spherical image adopting surface, the collected posture data is less affected by the robot arm's own errors, ensuring that the calibration plate appears at various positions and angles in the point sampling image, thereby making the calculated relative posture data more accurate; and through the above-mentioned steps and methods, the hand-eye calibration process can be achieved without human participation. It effectively overcomes the problem that the current hand-eye calibration requires the assistance of professionals and the hand-eye calibration error is affected by the operator's skills.

[0083] See also Figure 6, is a robot arm hand-eye calibration system proposed in the second embodiment of the present invention. Specifically, the robot arm hand-eye calibration system includes.

[0084] Image query module 61: used to query whether there is a calibration plate in the image acquired by the camera.

[0085] The spatial position calculation module 62 is used to analyze and calculate the spatial position of the calibration plate in the camera coordinate system.

[0086] Position adjustment module 63: used for adjusting the position of the camera according to the spatial position of the calibration plate, so that the camera is located above the calibration plate.

[0087] Sampling module 64: used to construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points of each sampling sphere, obtain point sampling images and a posture data set of the robotic arm at the corresponding point; wherein the sampling sphere takes the calibration plate as the center.

[0088] The posture calculation module 65 is used to calculate the corner points of the calibration plate in each of the point sampling images, and obtain the spatial coordinate transformation between the point sampling images as a posture set through the pnp algorithm.

[0089] The relative posture calculation module 66 is used to calculate the relative posture of the camera coordinate system relative to the robot end coordinate system according to the posture data set and the posture set input hand-eye calibration algorithm.

[0090] Furthermore, the sampling module 64 specifically includes:

[0091] The first spherical sampling unit is used to construct a first spherical surface with the calibration plate as the sphere center and the first preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the first spherical surface.

[0092] The second spherical sampling unit is used to construct a second spherical surface with the calibration plate as the center and the second preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the second spherical surface.

[0093] Furthermore, the spatial position calculation module 62 includes:

[0094] Pixel coordinate calculation unit: used to detect the pixel coordinates of the calibration plate in the image acquired by the camera using a target detection algorithm.

[0095] Spatial position calculation unit: used to calculate the spatial position of the calibration plate in the camera coordinate system according to the data of the camera depth stream.

[0096] Furthermore, the system also includes:

[0097] Judgment module: used to judge whether the number of the point sampling images meets the preset value;

[0098] Return module: when the number of the point sampling images does not meet the preset value, return to the step of driving the mechanical arm to make the camera perform image sampling along multiple points of each sampling sphere.

[0099] The robot hand-eye calibration system provided by the present invention is combined with the above-mentioned robot hand-eye calibration method, and by constructing a double spherical image adopting surface, the collected posture data is less affected by the robot's own error, ensuring that the calibration plate appears at each position and angle in the point sampling image, so that the calculated relative posture data is more accurate; and through the above-mentioned steps and methods, the hand-eye calibration process can be achieved without human participation. It effectively overcomes the problem that the current hand-eye calibration requires the assistance of professionals and the hand-eye calibration error is affected by the operator's skills.

[0100] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0101] In addition, combined Figure 1 The described robot arm hand-eye calibration method of the embodiment of the present application can be implemented by a computer device. The computer device may include a processor and a memory storing computer program instructions.

[0102] Specifically, the processor may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0103] Among them, the memory may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory may include a removable or non-removable (or fixed) medium. Where appropriate, the memory may be inside or outside the data processing device. In a specific embodiment, the memory is a non-volatile memory. In a specific embodiment, the memory includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM) or a flash memory (FLASH), or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0104] The memory may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor.

[0105] The processor implements any one of the robot arm hand-eye calibration methods in the above embodiments by reading and executing computer program instructions stored in the memory.

[0106] The computer device may also include a communication interface and a bus, wherein the processor, the memory, and the communication interface are connected through the bus and communicate with each other.

[0107] The communication interface is used to realize the communication between the modules, devices, units and / or equipment in the embodiments of the present application. The communication interface can also realize data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0108] The bus includes hardware, software or both, and couples the components of the computer device to each other. The bus includes but is not limited to at least one of the following: data bus, address bus, control bus, expansion bus, and local bus. By way of example and not limitation, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, the bus may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0109] The computer device can execute the robot hand-eye calibration method in the embodiment of the present application based on the acquired data information, thereby realizing the combination Figure 1 Describe the robotic arm hand-eye calibration method.

[0110] In addition, in combination with the robot hand-eye calibration method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the robot hand-eye calibration methods in the above embodiment is implemented.

[0111] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0112] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A robot hand-eye calibration method, applied to a robot device, wherein the robot device comprises a robot and a camera disposed at the end of the robot, characterized in that: The method comprises: Query whether there is a calibration plate in the image acquired by the camera; If yes, then analyzing and calculating the spatial position of the calibration plate in the camera coordinate system; Adjusting the position of the camera according to the spatial position of the calibration plate so that the camera is located above the calibration plate; Construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points on each of the sampling spheres, and obtain point sampling images and a pose data set of the robotic arm at the corresponding points; wherein the sampling sphere has the center of the calibration plate as the sphere center; Calculate the corner points of the calibration plate in each of the point sampling images, and obtain the spatial coordinate transformation between the point sampling images as a posture set through a pnp algorithm; A hand-eye calibration algorithm is input according to the pose data set and the posture set to calculate the relative pose of the camera coordinate system with respect to the robot arm end coordinate system.

2. The robot arm hand-eye calibration method according to claim 1, characterized in that: The step of constructing at least two concentric sampling spheres and driving the mechanical arm to make the camera perform image sampling along multiple points on each of the sampling spheres specifically includes: A first spherical surface is constructed with the calibration plate as the sphere center and the first preset height as the radius, and the mechanical arm is driven to make the camera perform image sampling at multiple points on the first spherical surface; A second spherical surface is constructed with the calibration plate as the sphere center and the second preset height as the radius, and the mechanical arm is driven to enable the camera to perform image sampling at multiple points on the second spherical surface.

3. The robot arm hand-eye calibration method according to claim 1, characterized in that: After the step of obtaining the point sampling image and the posture data set of the robot arm at the corresponding point, the method further includes: Determine whether the number of the point sampling images meets a preset value; If not, the process returns to the step of driving the mechanical arm to make the camera perform image sampling along a plurality of points on each sampling sphere.

4. The robot arm hand-eye calibration method according to claim 1, characterized in that: The hand-eye calibration algorithm adopts the OpenCV hand-eye calibration solution algorithm.

5. The robot arm hand-eye calibration method according to claim 1, characterized in that: The step of analyzing and calculating the spatial position of the calibration plate in the camera coordinate system specifically includes: Using a target detection algorithm to detect pixel coordinates of the calibration plate in the image acquired by the camera; The spatial position of the calibration plate in the camera coordinate system is calculated according to the data of the camera depth stream; wherein the data of the camera depth stream is obtained by calculating the image through a camera depth estimation algorithm to obtain the depth stream data of the camera about the calibration plate.

6. A robotic arm hand-eye calibration system, characterized in that: The system comprises: Image query module: used to query whether there is a calibration plate in the image acquired by the camera; Spatial position calculation module: used to analyze and calculate the spatial position of the calibration plate in the camera coordinate system; Position adjustment module: used for adjusting the position of the camera according to the spatial position of the calibration plate, so that the camera is located above the calibration plate; Sampling module: used to construct at least two concentric sampling spheres, drive the robotic arm to make the camera perform image sampling along multiple points of each sampling sphere, obtain point sampling images and the pose data set of the robotic arm at the corresponding point; wherein the sampling sphere takes the calibration plate as the sphere center; Posture calculation module: used to calculate the corner points of the calibration plate in each of the point sampling images, and obtain the spatial coordinate transformation between the point sampling images as a posture set through the pnp algorithm; Relative posture calculation module: used to calculate the relative posture of the camera coordinate system relative to the robot arm end coordinate system according to the posture data set and the posture set input hand-eye calibration algorithm.

7. The robot arm hand-eye calibration system according to claim 6, characterized in that: The sampling module specifically includes: A first spherical surface sampling unit is used to construct a first spherical surface with the calibration plate as the sphere center and the first preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the first spherical surface; The second spherical sampling unit is used to construct a second spherical surface with the calibration plate as the center and the second preset height as the radius, and drive the mechanical arm to make the camera perform image sampling at multiple points on the second spherical surface.

8. The robot arm hand-eye calibration system according to claim 6, characterized in that: The system further comprises: Judgment module: used to judge whether the number of the point sampling images meets the preset value; Return module: when the number of the point sampling images does not meet the preset value, return to the step of driving the mechanical arm to make the camera perform image sampling along multiple points of each sampling sphere.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the robot arm hand-eye calibration method according to any one of claims 1 to 5 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the robot arm hand-eye calibration method as described in any one of claims 1 to 5 is implemented.