Image processing device, image processing method, robot system, article manufacturing method, imaging device, control method of imaging device, program and recording medium
By employing a dual-density point group strategy for interference determination, the image processing device efficiently assesses and corrects the position of workpieces, reducing processing time and enhancing the success rate of holding operations in bulk picking systems.
Patent Information
- Application Number
- JP2023060244
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing methods for interference determination in bulk picking devices require significant processing time due to large amounts of point data, which can lead to increased cycle times and potential failures in holding workpieces.
An image processing device sets a point group of first and second densities to efficiently determine interference, using a lower-density point group for initial interference assessment and a higher-density group for precise positioning, reducing the time required for collision detection.
This approach significantly reduces the time needed for interference determination, improving the success rate of holding workpieces and shortening the overall cycle time of the bulk picking process.
Smart Images

Figure 2024147313000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to image processing. [Background technology]
[0002] In a production line, there is a bin picking device that recognizes and holds binned workpieces using a robot vision system using a camera and a recognition algorithm. In order to increase the success rate of holding the target workpiece in such bin picking, it is necessary to recognize not only the position and orientation of the target workpiece but also the state around the target workpiece and perform interference judgment so that the robot does not interfere with the surrounding state. The following Patent Document 1 discloses a method in which a three-dimensional shape acquisition unit 26 detects the position and orientation of the target workpiece and judges interference using point data that is three-dimensional shape data. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2010-207989 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in the method of Patent Document 1, if there is a large number of point data when performing interference detection, the process of interference detection may take a long time.
[0005] The present invention reduces the time required for collision detection processing. [Means for solving the problem]
[0006] The present invention employs an image processing device that processes an image of a workpiece using an imaging unit that images the workpiece, wherein a processing unit sets a point cloud of a first density in the image, sets a point cloud of a second density higher than the first density in the image, and determines, based on the point cloud of the first density, whether or not interference will occur in the holding unit when the workpiece is held by the holding unit. Effect of the Invention
[0007] According to the present invention, it is possible to reduce the time required for collision detection processing. [Brief description of the drawings]
[0008] [Figure 1] FIG. 1 is a schematic diagram of a robot system 200 according to an embodiment. [Diagram 2] FIG. 2 is a schematic diagram of an image processing device 201 according to an embodiment. [Diagram 3] FIG. 2 is a control block diagram of an image processing device 201 and a robot controller 210 in the embodiment. [Figure 4] FIG. 2 is an explanatory diagram of a workpiece 206 in the embodiment. [Diagram 5] 2A to 2C are diagrams for explaining a three-dimensional point group and interference determination when holding a workpiece 206 in an embodiment. [Figure 6] 2A to 2C are diagrams for explaining a three-dimensional point group and interference determination when holding a workpiece 206 in an embodiment. [Figure 7] 2A to 2C are diagrams for explaining a three-dimensional point group and interference determination when holding a workpiece 206 in an embodiment. [Figure 8] 3 is a control flowchart according to the embodiment. [Figure 9] 10A to 10C are diagrams for explaining processes from point cloud generation to interference determination in an embodiment. [Figure 10] FIG. 2 is a diagram of a Gray code pattern in an embodiment. [Figure 11]13 is an example diagram of an image of a workpiece to be removed when a pattern is irradiated in the embodiment. FIG. [Figure 12] 1A and 1B are diagrams for explaining interference determination using point clouds in a conventional method. [Figure 13] FIG. 4 is a diagram showing details of a comparison result between the first embodiment and a conventional example. [Figure 14] 3 is a control flowchart according to the embodiment. [Figure 15] 10A to 10C are diagrams for explaining processes from point cloud generation to interference determination in an embodiment. [Figure 16] FIG. 11 is a diagram showing details of a comparison result between the first embodiment and the second embodiment. [Figure 17] FIG. 12 is an example diagram showing a setting screen 1200 for setting a point cloud density in the embodiment. [Figure 18] FIG. 13 is an example diagram showing a display screen 1300 that displays the result of acquiring the position and orientation by matching and the result of collision detection in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Hereinafter, the embodiment for carrying out the present invention will be described with reference to the embodiment shown in the attached drawings. Note that the embodiment shown below is merely an example, and for example, the detailed configuration can be appropriately changed by a person skilled in the art within the scope of the present invention. Also, the numerical values taken up in the present embodiment are reference numerical values and do not limit the present invention. Note that in the following drawings, the arrows X, Y, and Z in the figure indicate the overall coordinate system of the robot system. In general, the XYZ three-dimensional coordinate system indicates the world coordinate system of the entire installation environment. In addition, a local coordinate system may be appropriately used for the robot hand, fingers, joints, etc., depending on the convenience of control.
[0010] (First embodiment) 1 is an explanatory diagram showing a schematic configuration of a robot system 200 according to a first embodiment. The robot system 200 includes a robot (robot manipulator) 202, an image processing device 201, a robot controller 210 which is an example of a control device, and an imaging device. The robot 202 is an industrial robot that is placed on a production line and used to manufacture goods.
[0011] The robot 202 is a manipulator and includes a robot hand 211 as a holding unit. A container 207 with an open top and a mounting table 208 are arranged around the robot 202. A plurality of workpieces 206 are bulk-piled in the container 207. Each of the workpieces 206 is, for example, a part. The plurality of workpieces 206 in the container 207 are held one by one by the robot 202 and transported to a predetermined position on the mounting table 208. The plurality of workpieces 206 have the same shape, size, and color, and are arranged randomly in the container 207.
[0012] The robot 202 and the robot controller 210 are communicatively connected by wires. The robot controller 210 and the image processing device 201 are communicatively connected by wires. The stereo camera consisting of the imaging units 203 and 204, the irradiation unit 205, and the image processing device 201 are communicatively connected by wire or wirelessly.
[0013] The robot 202 has a robot arm 212 and a robot hand 211, that is, a robot hand that is an example of a holding mechanism. The robot arm 212 is a vertical multi-joint robot arm. The robot hand 211 is supported by the robot arm 212.
[0014] The robot hand 211 is attached to a predetermined portion of the robot arm 212, for example, to the tip of the robot arm 212. The robot hand 211 is configured to be able to hold the workpiece 206. Note that, although a case where the holding mechanism is a robot hand will be described, this is not limiting, and for example, the holding mechanism may be a suction mechanism capable of holding the workpiece by suction. In this embodiment, the robot hand 211 is configured to be able to grasp the workpiece 206 with the fingers.
[0015] With the above configuration, the robot arm 212 can move the robot hand 211 to an arbitrary position to perform a desired task. For example, by using the workpiece 206 and another workpiece as materials and performing a process of assembling the workpiece 206 and the other workpiece, an assembled workpiece can be manufactured as a result. In the above manner, an article can be manufactured by the robot 202. Note that, although the present embodiment has been described with reference to an example in which an article is manufactured by assembling a workpiece by the robot 202, the present invention is not limited to this. For example, a tool such as a cutting tool or a polishing tool may be provided as an end effector of the robot arm 212, and an article may be manufactured by processing the workpiece.
[0016] The robot 202 is also equipped with a stereo camera consisting of imaging units 203 and 204 that are optically calibrated to each other, and an irradiation unit 205 that irradiates an arbitrary pattern within the common field of view of the stereo cameras. The imaging units 203 and 204 and the irradiation unit 205 are connected to an image processing device 201. The image processing device 201 sets the irradiation pattern of the irradiation unit 205, sets various parameters of the imaging units 204 and 205, receives imaging data, and performs calculation processing of a three-dimensional point cloud and estimation processing of the position and / or posture of a target workpiece.
[0017] The imaging units 204 and 205 are attached to a predetermined portion of the robot 202, for example, the robot hand 211, and are thereby supported by the robot 202. The imaging positions of the imaging units 204 and 205, i.e., the imaging areas imaged by the imaging units 204 and 205, can be freely changed according to the posture of the robot 202. Specifically, the imaging units 204 and 205 can be moved by the operation of the robot 202 to positions closer to the multiple workpieces 206 stacked in a container 207 than the imaging units 204 and 205. The imaging units 204 and 205 can be moved by the operation of the robot 202 to above the workpiece 206 that is the object to be held by the robot 202, among the multiple workpieces 206.
[0018] In this embodiment, the image processing device 201 is configured with a computer. The image processing device 201 sets various parameters of the imaging units 203, 204, and 209, sets an irradiation pattern of the irradiation unit 205, and receives imaging data. In addition, the image processing device 201 generates a three-dimensional point cloud, measures the position and orientation of the workpiece to be taken out, and judges interference, and instructs the robot controller 210 to hold the workpiece to be taken out. The image processing device 201 can send an imaging command to the imaging units 203 and 204 and the irradiation unit 205 to cause the imaging units 203 and 204 to take images. The image processing device 201 is configured to be able to acquire images generated by the imaging units 203 and 204, and is configured to be able to process the acquired images. FIG. 2 is an explanatory diagram of the image processing device 201 according to this embodiment. The image processing device 201 has a main body 201a, a display 201b which is an example of a display device (display unit) connected to the main body 201a, and a keyboard 201c and a mouse 201d which are examples of input devices connected to the main body 201a. Here, the image processing device 201 is, for example, a personal computer external to the robot, and information is displayed on a monitor and operated via input devices such as a keyboard and a mouse. However, the processor and storage unit may be integrated into the robot, either inside or outside. Also, the functions of the image processing device 201 may be provided in an imaging device.
[0019] 3 is a block diagram of a computer system in the image processing device 201 and the robot controller 210 according to this embodiment. The main body 201a of the image processing device 201 includes a CPU (Central Processing Unit) 201e, which is an example of a processor. The CPU 201e is an example of an image processing unit. The main body 201a also includes a ROM (Read Only Memory) 201f, a RAM (Random Access Memory) 201g, and a HDD (Hard Disk Drive) 201h as storage units. The main body 201a also includes a recording disk drive 201j, and an interface 201k, which is an input / output interface. The CPU 201e, the ROM 201f, the RAM 201g, the HDD 201h, the recording disk drive 201j, and the interface 201k are connected to each other via a bus so as to be able to communicate with each other.
[0020] The ROM 201f stores basic programs related to the operation of the computer. The RAM 201g is a storage device that temporarily stores various data such as the results of the arithmetic processing of the CPU 201e. The HDD 201h stores the results of the arithmetic processing of the CPU 201e and various data acquired from the outside, and also stores a program 201m for causing the CPU 201e to execute various processes. The program 201m is application software that can be executed by the CPU 201e.
[0021] The CPU 201e executes the program 201m recorded in the HDD 201h, thereby enabling the execution of image processing, which will be described later. The recording disk drive 201j can read out various data and programs recorded in the recording disk 201i.
[0022] In the first embodiment, the non-transient recording medium readable by a computer is the HDD 201h, and the program 201m is recorded in the HDD 201h, but this is not limited thereto. The program 201m may be recorded in any recording medium as long as it is a non-transient recording medium readable by a computer. As a recording medium for supplying the program 201m to a computer, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a magnetic tape, a non-volatile memory, etc. may be used. Also, an SSD (Solid State Drive) may be used.
[0023] The robot controller 210 includes a CPU 210e, which is an example of a processor. The CPU 210e is an example of a control unit. The CPU 210e also includes a ROM 210f, a RAM 210g, and a HDD 210h as storage units. The robot controller 210 also includes a recording disk drive 210j, and an interface 210k, which is an input / output interface. The CPU 210e, the ROM 210f, the RAM 210g, the HDD 210h, the recording disk drive 210j, and the interface 210k are connected by a bus so as to be able to communicate with each other.
[0024] The ROM 210f stores basic programs related to the operation of the computer. The RAM 210g is a storage device that temporarily stores various data such as the results of the arithmetic processing of the CPU 210e. The HDD 210h records the results of the arithmetic processing of the CPU 210e and various data acquired from the outside, and also records (stores) a program 210m for causing the CPU 210e to execute various processes. The program 210m is application software that can be executed by the CPU 210e.
[0025] The CPU 210e executes a control process by executing a program 210m recorded in the HDD 210h, and is able to control the operation of the robot 202 in Fig. 1. The recording disk drive 210j is able to read out various data, programs, etc. recorded in the recording disk 210i.
[0026] In this embodiment, the non-transient recording medium readable by a computer is the HDD 210h, and the program 210m is recorded in the HDD 210h, but this is not limited to the above. The program 210m may be recorded in any recording medium as long as it is a non-transient recording medium readable by a computer. As a recording medium for supplying the program 210m to a computer, for example, a flexible disk, a hard disk, an optical disk, a magneto-optical disk, a magnetic tape, a non-volatile memory, etc. may be used. An SSD may also be used.
[0027] In this embodiment, the image processing and control processing are executed by a plurality of computers, i.e., a plurality of CPUs 201e and 210e, but this is not limited thereto. The image processing and control processing may be executed by one computer, i.e., one CPU. In this case, it is sufficient to configure the one CPU to function as both the image processing unit and the control unit.
[0028] The CPU 201e executes the program 201m to capture an image of an area where a plurality of workpieces 206 exist using the imaging units 203, 204, 209 and the irradiation unit 205, and to detect a removable workpiece 206 from the image obtained by the imaging. The CPU 251 also executes the program 261 to capture an image of an area in real space using a camera, and to measure the position and orientation of the workpiece 206 by pattern matching processing, which is an example of image processing.
[0029] The CPU 210e executes the program 210m to control the robot 202 and move the imaging units 203, 204, 209 and the irradiation unit 205 to predetermined positions in real space. The CPU 210e also executes the program 210m to move the robot hand 211 to a position for holding the workpiece 206 measured by the CPU 210e. The CPU 210e also executes the program 210m to cause the robot hand 211 to hold the workpiece 206 and transfer the workpiece 206 to the mounting table 208.
[0030] Fig. 4 is a diagram for explaining the holding positions of the workpiece 206 in this embodiment. As shown in Fig. 4, holding positions 301 and 302 at which the workpiece 206 is held by the robot hand 211 are set in advance on the workpiece 206. There are at least two holding positions. Based on information acquired by the image processing device 201, the robot controller 210 controls the robot arm 212 and the robot hand 211 so that the workpiece is held by the robot hand 211 at the holding positions 301 and 302. Information on the holding positions 301 and 302 is registered in the image processing device 201 in advance.
[0031] 5 to 7 are diagrams for explaining the three-dimensional point cloud and interference judgment when holding the workpiece 206 in this embodiment. Although the workpiece 206 is shown in FIGS. 5 to 7, different numbers may be used for convenience of explanation. First, as shown in FIG. 5, the three-dimensional point cloud is a set of points expressed in three dimensions of XYZ. In the example of FIG. 5, the point cloud shows a state in which the workpiece 401 to be taken out, which is the workpiece to be held among the workpieces 206, and other workpieces 402 and 403 surrounding the workpiece to be taken out are overlapped and placed in the container 207. The wall 404 is the inner wall of the container 207.
[0032] The interference determination in this embodiment refers to reducing interference between the holding position of the target workpiece 401 and other workpieces 402 and 403 or the wall 404 when the workpiece 206 is held from the container 207 by the robot hand 211 and the robot arm 212. This can reduce failure to hold the workpiece 206, and can improve the success rate of holding the workpiece 206.
[0033] As shown in FIG. 6 and FIG. 7, when the fingers of the robot hand 211 move to a position where they can be held at the holding position set for the workpiece 401 to be taken out, it is determined whether the fingers interfere with the surroundings. Then, the robot hand 211 and the robot arm 212 are controlled so as to hold the holding position when there is no interference. In FIG. 6, in the interference determination, the fingers of the robot hand 211 move to a position where they can be held. Then, it is determined whether the fingers interfere with another workpiece 402 or 403 other than the workpiece to be taken out, and the holding position 301 is acquired as a holding position where there is no interference. FIG. 7 shows a case where the fingers of the robot hand 211 move to a position where they can be held at the holding position 302, it is determined whether the fingers interfere with another workpiece 402 or 403 other than the workpiece to be taken out, and it is acquired that the tip of the fingers interferes with the other workpiece 402.
[0034] In this manner, interference judgment is performed for the holding positions 301, 302 of the workpiece 401 to be taken out, and the robot 202 is controlled so as to hold the workpiece to be taken out at the holding position 302 where it can be held without the fingers interfering with the periphery of the workpiece. Note that the interference judgment uses shape information of the fingers of the robot hand 211 and information of the holding positions 301, 302, and this information is stored in the image processing device 201 in advance. Note that, in this embodiment, the explanation has been given taking interference with the fingers of the robot hand 211 as an example, but the present invention is not limited to this, and interference between the entire robot hand 211 and the periphery, or interference between the robot arm 212 and the periphery may also be judged.
[0035] Here, in selecting the workpiece to be taken out, an imaging unit 209 capable of taking an image of the container 207 from above is used. Based on the imaging data acquired by the imaging unit 209, the workpiece to be taken out is selected, and the approximate position of the workpiece to be taken out is measured (acquired). Then, the imaging units 203 and 204 are moved by the robot 202 to a position where the workpiece to be taken out and its surroundings can be imaged. A known means may be used to select the workpiece to be taken out. For example, a method may be used in which learning-based object detection using deep learning is used to select the workpiece to be taken out from the bulk workpieces based on factors such as the exposure degree, scattering degree, and height of the workpieces. In addition, a method of selecting the workpiece to be taken out using pattern matching using images, or a method of manually selecting the workpiece to be taken out from the bulk workpieces using a GUI (Graphical User Interface) may also be used.
[0036] In FIG. 1, the imaging units 203 and 204 and the irradiation unit 205 are installed on the robot 202, but the approximate position of the workpiece 206 may be measured by the imaging unit 209 located at a bird's-eye view position above the container 207, and may be used to move the robot 202. In other words, the position and orientation of the workpiece 206 may be acquired and the robot 202 may be controlled only by the imaging unit 209. In this case, imaging and workpiece recognition are possible while the robot 202 is moving above the mounting table 208, which is advantageous in terms of cycle time. In addition, the measurement means by the imaging unit 209 may be a two-dimensional image or a three-dimensional point cloud. In addition, the imaging units 203 and 204 and the irradiation unit 205 may be fixed to the position of the imaging unit 209.
[0037] Also, the imaging units 203, 204 and the irradiation unit 205 may be installed at two locations, the robot 202 and an overhead position (the position of the imaging unit 209), and three-dimensional measurement may be performed from each of these positions to estimate the position and orientation of the workpiece 206. In this case as well, while the robot 202 is moving in the air above the mounting table 208, the workpiece 206 can be recognized using the imaging units 203, 204 and the irradiation unit 205 at the overhead position, which is advantageous in terms of cycle time.
[0038] The irradiation unit 205 may be of any type as long as it can irradiate an arbitrary pattern, and may be a DLP (Digital Light Processing) projector, a liquid crystal projector, or a device that projects pattern light using a mask on which a pattern is drawn. Cameras are used as the imaging units 204 and 205, but the acquired images may be monochrome or color images. In addition, the light to be irradiated and imaged is not limited to visible light, and an embodiment in which the influence of disturbances caused by visible light is avoided by irradiating and image-capturing infrared light, for example, is also possible.
[0039] Cameras are used as the imaging units 203, 204, and 209, but the acquired images may be monochrome or color images. The light used for irradiation and imaging is not limited to visible light, and an embodiment is also possible in which the effects of disturbances caused by visible light are avoided by irradiating and imaging with infrared light, for example. The method for generating a three-dimensional point cloud is a method in which a pattern light is projected multiple times and images are acquired multiple times, such as a coded pattern method or a phase shift method.
[0040] Fig. 8 is a control flowchart in this embodiment. Fig. 9 is a diagram for explaining the process from point cloud generation to interference determination in this embodiment. Note that the control flow in this embodiment is executed by the CPU 201e of the image processing device 201 and the CPU 210e of the robot controller 210 executing each process and communicating with each other.
[0041] As shown in FIG. 8, first, in step S100, a workpiece to be removed is selected. In this embodiment, a learning-based object detection using deep learning is used to determine the workpiece to be removed from the piled up workpieces and detect its approximate position and orientation. The imaging unit 209 can obtain a grayscale image and is equipped with a ToF (Time of Flight) height sensor as a height detection unit. After the image processing device 201 obtains the approximate position of the workpiece to be removed using the imaging unit 209, the robot controller 210 controls the robot 202 to move the imaging units 203 and 204 to an upper position where the workpiece to be removed and the surrounding conditions can be imaged.
[0042] Next, in step S101, the irradiation unit 205 irradiates the gray code pattern shown in Fig. 10 onto the workpiece to be taken out and its surroundings, and images of the workpiece to be taken out when each pattern is irradiated as shown in Fig. 11 are acquired by the imaging units 203 and 204. This operation is repeated until the imaging of the set patterns is completed.
[0043] Next, in step S102, a first density point cloud is generated. FIG. 9(a) is a diagram showing a first density point cloud generated on an image of a workpiece. The first density point cloud is generated using a pattern enclosed by a solid line frame in FIG. 10. According to a general coding pattern method, the acquired left and right images are binarized by light and dark and expressed in binary numbers starting from the most significant bit, thereby generating one left and right code image each. In this embodiment, a negative-positive inverted pattern is irradiated, and the difference between the captured images is taken during the binarization process to emphasize the light and dark boundary, and finally an 8-bit code image is generated from a total of 16 captured images. Therefore, in this first density generation stage, a code image in which the upper 6 bits are input from 12 patterns of captured images is obtained.
[0044] In this case, an embodiment is also possible in which an 8-bit code image is generated from the difference between each of the captured images of a total of eight patterns and a captured image without irradiating the pattern, without using an inverted image. In the above case, the calculation cost is low, so that the code image can be generated at a higher speed. After the code image is obtained, the boundary where the pixel value changes in the code image is extracted, the left and right images are associated with each other, and the distance is measured by the principle of triangulation to generate a first density point cloud with a relatively low density. The first density point cloud is then used to determine whether the fingers of the robot hand 211 interfere with the periphery of the workpiece to be removed. For this reason, the resolution of the first density point cloud is set to be smaller than the width 701 and thickness 702 of the fingers of the robot hand 211, as shown in FIG. 9(d).
[0045] Next, in step S103, a point cloud of the second density is generated. FIG. 9(b) is a diagram showing a point cloud generated in the second density from an image of a workpiece. Here, the remaining four pattern images not used in step S102 are binarized, input to the remaining lower bits of step S102, superimposed, and a point cloud is further added to the point cloud of the first density, thereby generating 8-bit left and right code images that are finer than those in step S102. As in step S102, the boundary where the pixel values in the code image change is extracted, the left and right images are associated with each other, and distance measurement is performed according to the principle of triangulation, thereby generating a point cloud of the second density, which is denser than the first density of step S102, in step S103.
[0046] Next, in step S104, matching is performed to detect the position and orientation of the workpiece to be taken out using the second density point cloud obtained in step S103. FIG. 9(c) is a diagram showing matching of the workpiece to be taken out using the second density point cloud. In FIG. 9(c), the color of the workpiece to be taken out is shown different from the color of the other workpieces. In this embodiment, matching is a process of collating a reference model acquired (created) from a known CAD model of the workpiece with data such as a point cloud, and acquiring (calculating) a position and orientation that increases the degree of match. In addition, edge information of the three-dimensional point cloud may be extracted during matching to capture the characteristics of the workpiece and reduce the possibility of matching with an incorrect position and orientation. Alternatively, edge information of a two-dimensional image acquired from either the left or right imaging unit may be used to capture the characteristics of the workpiece and reduce the possibility of matching with an incorrect position and orientation.
[0047] Next, in step S105, interference determination is performed using the first density point cloud generated in step S102, the position and orientation of the workpiece to be removed obtained in step S104, the holding position information of the workpiece, and the shape information of the fingers. Then, a holding position where the fingers do not interfere with the periphery of the workpiece to be removed is determined. The image processing device 201 transmits information of the determined holding position to the robot controller 210.
[0048] Then, in step S106, the robot controller 210 controls the robot 202 so that the holding position determined in step S105 is held by the robot hand 211. Then, holding of the workpiece to be picked up is executed.
[0049] Here, the interference judgment between the finger part and the periphery of the workpiece to be taken out using the point cloud in the conventional method will be described in detail. Fig. 12 is a diagram for explaining the interference judgment using the point cloud in the conventional method. Fig. 12(a) is a diagram when the point cloud is generated, Fig. 12(b) is a diagram showing the execution of matching of the workpiece to be taken out based on the generated point cloud, and Fig. 12(c) is a diagram showing the execution of the interference judgment between the finger part and the periphery of the workpiece to be taken out based on the generated point cloud. Fig. 13 is a diagram showing the details of the comparison result between this embodiment and the conventional example.
[0050] As shown in Figures 12(a), (b), and (c), in the conventional method, the point cloud data generated to acquire the position and orientation of the workpiece to be taken out is used directly for interference detection. When acquiring the position and orientation of the workpiece to be taken out, it is necessary to acquire the data with high accuracy so that the holding position can be reliably held by the robot hand, and the number of point cloud data becomes large. Therefore, if the point cloud data generated to acquire the position and orientation of the workpiece to be taken out is used for interference detection, the amount of data to be processed in the interference detection increases, and the time required for the interference detection process increases.
[0051] However, in this embodiment, a point cloud with a relatively low density is generated first. Then, when acquiring the position and orientation of the workpiece to be taken out, a second density higher than the first density is used, and when determining whether the workpiece to be taken out interferes with the surroundings, the point cloud with a relatively low density of the first density is used.
[0052] Therefore, as shown in FIG. 13, when comparing the total processing time, there is no difference in processing time because the same operations are divided for the parts of pattern irradiation, photography, image coding, point cloud generation, and matching. However, it can be seen that the time required for processing the interference determination in this embodiment is shorter than that of the conventional example. This is because, in this embodiment, in the interference determination, a first density point cloud, which is smaller in density than the second density and relatively low in density, is used, so the number of point clouds used in the interference determination is reduced. Therefore, this embodiment can perform interference determination faster than the conventional example. In addition, in acquiring the position and orientation of the workpiece to be taken out, a second density point cloud, which is larger in density than the first density and relatively high in density, is used, as in the conventional example. Therefore, it is possible to acquire the position and orientation with the same accuracy as the conventional example, and to reduce the processing time required for the interference determination.
[0053] When picking up a workpiece, the robot cannot pick up the workpiece until it has determined whether the robot hand or the fingers of the robot hand will interfere with the periphery of the workpiece to be picked and has determined the holding position, resulting in a waiting time. However, this embodiment can reduce the time required for interference detection processing, which can also reduce the cycle time of the device.
[0054] Second embodiment Next, the second embodiment will be described in detail. In this embodiment, information on the approximate position and orientation of the workpiece to be taken out is obtained by the first density, and the area for more detailed matching is specified by the second density. In the following, the basic parts of the hardware configuration and the display screen configuration are assumed to be the same as those of the above-mentioned embodiment, and detailed descriptions thereof will be omitted. In the following embodiments, the same reference numerals are used for the same or substantially the same members, and detailed descriptions thereof will be omitted.
[0055] Fig. 14 is a control flowchart in this embodiment. Fig. 15 is a diagram for explaining the process from point cloud generation to interference determination in this embodiment. As shown in Fig. 14, the selection of the workpiece to be removed in step S1000 is similar to step S100 in the first embodiment. The process content of acquiring image data in step S1001 is similar to step S101 in the first embodiment. The process content of generating a point cloud of the first density in step S1002 is similar to step S102 in the first embodiment (Fig. 15(a)).
[0056] Next, in step S1003, matching is performed using the relatively low-density first density point cloud obtained in step S1002, and the approximate position and orientation of the workpiece to be removed is detected (FIG. 15(b)). In step S1003, matching is performed using the relatively low-density first density point cloud, so matching can be performed more quickly.
[0057] Next, in step S1004, interference is detected using the approximate position and orientation of the workpiece to be removed obtained in step S1003 and the first density point cloud obtained in step S1002, and the holding position by the fingers is determined (FIG. 15(b)).
[0058] Next, in step S1005, a second density point cloud, which is denser than the first density, is generated. In this case, the second density point cloud is generated from the approximate position and orientation information of the workpiece to be removed obtained in step S1003, limited to the periphery of the workpiece to be removed (FIG. 15(c)). This reduces the calculation cost for generating the second density point cloud, making it possible to generate the second density point cloud more quickly.
[0059] Next, in step S1006, the position and orientation of the workpiece to be removed is measured again with high accuracy using the point cloud of the second density. In this case, if there is a deviation from the position and orientation measured at the first density in step S1003, the holding position by the fingers acquired in step S1004 is also corrected according to the position and orientation measured again in step S1006. The holding position corrected in step S1006 is used as the holding position for controlling the robot 202.
[0060] Then, in step S1007, the robot controller 210 controls the robot 202 so that the holding position corrected in step S1006 is held by the robot hand 211. Then, holding of the workpiece to be picked up is executed.
[0061] FIG. 16 is a diagram showing a comparison of each processing time between the first embodiment and this embodiment. As shown in FIG. 16, there is no difference in processing time for the parts of pattern irradiation, photography, image coding, first density point cloud generation, and interference judgment. However, in the second density point cloud generation of this embodiment, matching is performed using the first density point cloud, the approximate position and orientation of the work to be taken out is detected, and the area for generating the second density point cloud is narrowed. As a result, in this embodiment, the processing time required for generating the second density point cloud can be shortened. In addition, since the high density second density point cloud is reduced, the processing time required for matching can also be shortened. In addition, the various embodiments and modified examples described above may be implemented in combination with this embodiment and / or this modified example.
[0062] (Third embodiment) Next, the third embodiment will be described in detail. In this embodiment, the GUI for setting the first density point cloud, the second density point cloud, and the GUI for displaying the results of matching and interference detection, which were used in the first and second embodiments described above, will be described. In the following, it is assumed that the basic parts of the hardware configuration and the display screen configuration are the same as those of the above embodiments, and detailed descriptions thereof will be omitted. Furthermore, in the following embodiments, the same reference numerals will be used for the same or substantially the same members, and detailed descriptions thereof will be omitted.
[0063] FIG. 17 is a diagram showing a setting screen 1200 of the point cloud density in this embodiment. The setting screen 1200 is displayed on the display 201b. As shown in FIG. 17, the first density point cloud display area 1201 displays a first density point cloud set by the user, and the density is set in the first density point cloud input section 1202. Similarly, the second density point cloud display area 1203 displays a second density point cloud set by the user, and the density is set in the second density point cloud input section 1204. The left side of the first density point cloud display area 1201 is an image displaying the first density point cloud, and the right side of the first density point cloud display area 1201 is an image before the first density point cloud is displayed. Similarly, the left side of the second density point cloud display area 1203 is an image displaying the second density point cloud, and the right side of the second density point cloud display area 1203 is an image before the second density point cloud is displayed.
[0064] The input to the point cloud input section 1202 can be performed by selecting the type of numerical value such as a constant or inputting a numerical value using the arrow displayed on the point cloud input section 1202. In the example of FIG. 17, a constant is selected and 1.00 dot / mm is set. The input may be performed using the keyboard 201c. Similarly, the input to the point cloud input section 1204 can be performed by selecting the type of numerical value such as a constant or inputting a numerical value using the arrow displayed on the point cloud input section 1204. In the example of FIG. 17, a constant is selected and 3.00 dot / mm is set. The input may be performed using the keyboard 201c. The above-mentioned GUI allows the user to visually grasp the point clouds of the first density and the second density, and allows the user to appropriately set the point cloud according to the workpiece to be recognized. In this embodiment, the point cloud input section 1202 may be referred to as the first input section, and the point cloud input section 1204 may be referred to as the second input section.
[0065] Furthermore, finger width 1208 and thickness 1209 are inputted by finger width input section 1205 and finger thickness input section 1206, respectively, and the finger is displayed in first density point cloud display area 1201. In this embodiment, the finger is displayed in first density point cloud display area 1201, but it may be displayed in second density point cloud display area 1203, or it may be displayed in both first density point cloud display area 1201 and second density point cloud display area 1203. In this embodiment, finger width input section 1205 and finger thickness input section 1206 may be referred to as a third input section.
[0066] An input to the finger width input section 1205 can be performed by selecting a type of value such as a constant or inputting a value using the arrows displayed in the finger width input section 1205. In the example of FIG. 17, a constant is selected and 8.0 mm is set. This may also be set using the keyboard 201c. Similarly, an input to the finger thickness input section 1206 can be performed by selecting a type of value such as a constant or inputting a value using the arrows displayed in the finger thickness input section 1206. In the example of FIG. 17, a constant is selected and 10.0 mm is set. This may also be set using the keyboard 201c.
[0067] The GUI that can execute settings related to the shape of the finger part allows the user to visually confirm that the resolution of the first density point cloud is smaller than the width and thickness of the finger part, and can execute generation of an appropriate point cloud. Also, if the resolution of the first or second density point cloud is larger than the width 1208 and thickness 1209 of the finger part, a warning may be issued, or the first or second density, or the width or pressure of the finger part may not be set.
[0068] 18 shows a display screen 1300 that displays the results of obtaining the position and orientation through matching and the collision detection results. The display screen 1300 is assumed to be displayed on the display 201b. A position and orientation result display area 1301 displays the results of matching the position and orientation of the workpiece to be taken out using the first density point cloud or the second density point cloud. The left side of the position and orientation result display area 1301 is an image displaying the first density point cloud, the center is an image displaying the second density point cloud, and the right side is a two-dimensional image after obtaining the position and orientation of the workpiece to be taken out.
[0069] In FIG. 18, the matching result is displayed by superimposing a dotted line on the image displaying the second density point cloud. The matching result may be displayed by superimposing the image displaying the first density point cloud, or may be displayed by superimposing the image displaying both the first density point cloud and the second density point cloud. Although the matching result is displayed by dotted lines in this embodiment, various display forms such as transparent display may be used. This allows the user to visually confirm the deviation of the matching result and easily determine whether the density of the first density point cloud and the second density point cloud is required to be adjusted.
[0070] Next, the interference detection result can be confirmed in the interference detection result display area 1302. In the interference detection result display area 1302, the first density point cloud used in the interference detection, the workpiece to be removed detected by matching, and the fingers of the robot hand are displayed superimposed. The left side of the interference detection display area is an image displaying the first density point cloud, and the right side is a two-dimensional image after interference detection. From the interference detection result display area 1302, the user can easily determine whether the currently set point cloud density and finger shape need to be adjusted.
[0071] According to the present embodiment, the position and orientation of the workpiece to be removed and each point cloud density used when performing interference determination can be visually grasped, and the validity of each set point cloud density can be easily determined. In addition, the result of acquiring the position and orientation and the result of interference determination can also be visually grasped, and the validity of each set point cloud density can be examined in more detail. In addition, the above-mentioned various embodiments and modified examples may be implemented in combination with this embodiment and / or this modified example.
[0072] (Other embodiments) The processing procedures of the above-described embodiments are specifically executed by each CPU. Therefore, it is also possible to configure the system to read out and execute a recording medium on which a software program capable of executing the above-described functions is recorded. In this case, the program itself read out from the recording medium realizes the functions of each of the above-described embodiments, and the program itself and the recording medium on which the program is recorded constitute the present invention.
[0073] In each embodiment, the computer-readable recording medium is a ROM, a RAM, or a flash ROM, and the program is stored in the ROM, the RAM, or the flash ROM. However, the present invention is not limited to such an embodiment. The program for carrying out the present invention may be recorded in any recording medium as long as it is a computer-readable recording medium. Also, the program may be carried out by an imaging device equipped with the functions of the image processing device 201.
[0074] In the above-mentioned various embodiments, the robot arm 212 is an articulated robot arm having a plurality of joints, but the number of joints is not limited to this. Although a vertical multi-axis configuration has been shown as the type of robot arm, the same configuration as above can be implemented with different types of joints, such as a horizontal multi-joint type, a parallel link type, or an orthogonal robot.
[0075] Furthermore, the various embodiments described above can be applied to machines that can automatically perform movements such as extension, contraction, bending, vertical movement, horizontal movement, or rotation, or a combination of these movements, based on information stored in a memory device provided in the control device.
[0076] The present invention is not limited to the above-described embodiment, and many modifications are possible within the technical concept of the present invention. The effects described in the embodiments of the present invention are merely a list of the most preferable effects resulting from the present invention, and the effects of the present invention are not limited to those described in the embodiments of the present invention. The above-described various embodiments and modifications may be combined and implemented.
[0077] The disclosure of this embodiment also includes the following configurations and methods.
[0078] (Configuration 1) An image processing device that processes an image of a workpiece by an imaging unit that images the workpiece, The processing unit: Setting a first density point cloud in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 13. An image processing device comprising:
[0079] (Configuration 2) In the image processing device according to configuration 1, adding a point cloud having a further density to the point cloud of the first density to set the point cloud of the second density; Acquire information regarding the position and orientation of the workpiece based on the second density point cloud; determining whether or not the interference has occurred based on information relating to the position and posture of the workpiece, the first density point cloud, and information relating to the shape of the holder; 13. An image processing device comprising:
[0080] (Configuration 3) In the image processing device according to configuration 2, Acquire information regarding a holding position of the workpiece based on information regarding the position and orientation of the workpiece; determining whether interference occurs in the holding portion when the workpiece is held using the holding position; 13. An image processing device comprising:
[0081] (Configuration 4) In the image processing device according to configuration 3, There are at least two of the holding positions; determining whether interference occurs in the holding portion at each of the holding positions; 13. An image processing device comprising:
[0082] (Configuration 5) In the image processing device according to any one of configurations 1 to 4, Identifying an area in which the workpiece exists based on the first density point cloud; setting the second density point cloud in the region; 13. An image processing device comprising:
[0083] (Configuration 6) In the image processing device according to configuration 5, adding a point cloud having a further density to the point cloud of the first density in the region to set the point cloud of the second density; 13. An image processing device comprising:
[0084] (Configuration 7) In the image processing device according to the fifth or sixth aspect, Acquire information regarding a holding position of the workpiece based on the first density point cloud; Acquire information regarding the position and orientation of the workpiece based on the second density point cloud; correcting the acquired information about the holding position based on the information about the position and orientation; 13. An image processing device comprising:
[0085] (Configuration 8) In the image processing device according to any one of configurations 1 to 7, A resolution of the first density or the second density is smaller than a width or a thickness of the holding portion. 13. An image processing device comprising:
[0086] (Configuration 9) In the image processing device according to any one of configurations 1 to 8, displaying a setting screen on which the first density or the second density can be set by a user; 13. An image processing device comprising:
[0087] (Configuration 10) In the image processing device according to configuration 9, displaying the first density point cloud or the second density point cloud set by a user; 13. An image processing device comprising:
[0088] (Configuration 11) In the image processing device according to configuration 10, displaying the first density point cloud or the second density point cloud set by a user on an image of the workpiece; 13. An image processing device comprising:
[0089] (Configuration 12) In the image processing device according to the tenth or eleventh aspect, displaying information about the holding portion together with the first density point cloud or the second density point cloud; 13. An image processing device comprising:
[0090] (Configuration 13) In the image processing device according to configuration 12, and displaying the shape of the holding portion by superimposing it on the first density point cloud or the second density point cloud. 13. An image processing device comprising:
[0091] (Configuration 14) In the image processing device according to any one of configurations 9 to 13, displaying a first input section in which the first density can be set, a second input section in which the first density can be set, and a third input section in which information relating to a shape of the holding portion can be set; 13. An image processing device comprising:
[0092] (Configuration 15) In the image processing device according to configuration 14, The third input unit can set the width or thickness of the holding portion. 13. An image processing device comprising:
[0093] (Configuration 16) In the image processing device according to any one of configurations 1 to 15, Displaying a result of acquiring information about the position and orientation of the workpiece based on the first density or the second density. 13. An image processing device comprising:
[0094] (Configuration 17) In the image processing device according to configuration 16, displaying the first density point cloud or the second density point cloud on an image of the workpiece, and displaying a matching result when information regarding the position and orientation of the workpiece is acquired; 13. An image processing device comprising:
[0095] (Configuration 18) In the image processing device according to configuration 17, The matching result is displayed by being superimposed on an image of the workpiece on which the first density point cloud or the second density point cloud is displayed. 13. An image processing device comprising:
[0096] (Configuration 19) 19. In the image processing device according to any one of configurations 1 to 18, displaying the results of said interference; 13. An image processing device comprising:
[0097] (Configuration 20) In the image processing device according to configuration 19, Displaying the interference result together with an image of the workpiece in which the point cloud of the first density is displayed. 13. An image processing device comprising:
[0098] (Configuration 21) In the image processing device according to configuration 20, The result of the interference is displayed by being superimposed on an image of the workpiece on which the point cloud of the first density is displayed. 13. An image processing device comprising:
[0099] (Configuration 22) A robot system including a robot whose operation is controlled based on the image processing device according to any one of configurations 1 to 21.
[0100] (Method 23) A method for manufacturing an article, comprising the steps of: manufacturing an article using the robot system according to claim 22.
[0101] (Method 24) An image processing method for processing an image of a workpiece by an imaging unit that images the workpiece, The processing unit: Setting a first density point cloud in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 13. An image processing method comprising:
[0102] (Configuration 25) An imaging device capable of imaging a workpiece and processing an image of the workpiece, The processing unit: Setting a first density point cloud in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 1. An imaging device comprising:
[0103] (Method 26) A control method for an imaging device capable of imaging a workpiece and processing an image of the workpiece, comprising: The processing unit: Setting a first density point cloud in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; A control method comprising:
[0104] (Configuration 27) A program capable of executing the image processing method according to method 24 or the control method according to method 26 by a computer.
[0105] (Configuration 28) A computer-readable recording medium storing the program according to configuration 27. [Explanation of symbols]
[0106] 200 Robot System 201 Image processing device 202 Robot (Robot Manipulator) 203, 204 Imaging unit 205 Irradiation unit 206 Work 207 Container 208 Placement table 209 Overhead position 210 Robot Controller 211 Robot Hand 212 Robot Arm 301, 302 holding position 401 Work to be removed 402, 403 Other works 404 Wall 701 Width 702 Thickness 1200 Setting screen 1201, 1203 Point cloud display area 1202, 1204 Point cloud input section 1205 Finger width input section 1206 Finger thickness input section 1300 display screen 1301 Position / orientation result display area 1302 Collision detection result display area
Claims
1. An image processing device that processes an image of a workpiece by an imaging unit that images the workpiece, The processing unit: determining a first density of points in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 13. An image processing device comprising:
2. 2. The image processing device according to claim 1, adding a point cloud having a further density to the point cloud of the first density to set the point cloud of the second density; Acquire information regarding the position and orientation of the workpiece based on the second density point cloud; determining whether or not the interference has occurred based on information regarding the position and posture of the workpiece, the first density point cloud, and information regarding the shape of the holder; 13. An image processing device comprising:
3. 3. The image processing device according to claim 2, Acquire information regarding a holding position of the workpiece based on information regarding the position and orientation of the workpiece; determining whether interference occurs in the holding portion when the workpiece is held using the holding position; 13. An image processing device comprising:
4. 4. The image processing device according to claim 3, There are at least two of the retention positions; determining whether interference occurs in the holding portion at each of the holding positions; 13. An image processing device comprising:
5. 2. The image processing device according to claim 1, Identifying an area in which the workpiece exists based on the first density point cloud; setting the second density point cloud in the region; 13. An image processing device comprising:
6. 6. The image processing device according to claim 5, setting the second density point cloud by adding a point cloud having a further density to the first density point cloud in the region; 13. An image processing device comprising:
7. 6. The image processing device according to claim 5, Acquire information regarding a holding position of the workpiece based on the first density point cloud; Acquire information regarding the position and orientation of the workpiece based on the second density point cloud; correcting the acquired information about the holding position based on the information about the position and orientation; 13. An image processing device comprising:
8. 2. The image processing device according to claim 1, A resolution of the first density or the second density is smaller than a width or a thickness of the holding portion.
13. An image processing device comprising:
9. 2. The image processing device according to claim 1, displaying a setting screen on which the first density or the second density can be set by a user; 13. An image processing device comprising:
10. 10. The image processing device according to claim 9, displaying the first density point cloud or the second density point cloud set by a user; 13. An image processing device comprising:
11. 11. The image processing device according to claim 10, displaying the first density point cloud or the second density point cloud set by a user on an image of the workpiece; 13. An image processing device comprising:
12. 11. The image processing device according to claim 10, displaying information about the holding portion together with the first density point cloud or the second density point cloud; 13. An image processing device comprising:
13. 13. The image processing device according to claim 12, and displaying the shape of the holding portion by superimposing it on the first density point cloud or the second density point cloud.
13. An image processing device comprising:
14. 10. The image processing device according to claim 9, displaying a first input section in which the first density can be set, a second input section in which the first density can be set, and a third input section in which information relating to a shape of the holding portion can be set; 13. An image processing device comprising:
15. 15. The image processing device according to claim 14, The third input unit can set the width or thickness of the holding portion.
13. An image processing device comprising:
16. 2. The image processing device according to claim 1, displaying a result of acquiring information about the position and orientation of the workpiece based on the first density or the second density; 13. An image processing device comprising:
17. 17. The image processing device according to claim 16, displaying the first density point cloud or the second density point cloud on an image of the workpiece, and displaying a matching result when information regarding the position and orientation of the workpiece is acquired; 13. An image processing device comprising:
18. 18. The image processing device according to claim 17, The matching result is displayed by being superimposed on an image of the workpiece on which the first density point cloud or the second density point cloud is displayed.
13. An image processing device comprising:
19. 2. The image processing device according to claim 1, displaying the results of said interference; 13. An image processing device comprising:
20. 20. The image processing device according to claim 19, Displaying the interference result together with an image of the workpiece in which the point cloud of the first density is displayed.
13. An image processing device comprising:
21. 21. The image processing device according to claim 20, The result of the interference is displayed by being superimposed on an image of the workpiece on which the point cloud of the first density is displayed.
13. An image processing device comprising:
22. A robot system comprising a robot whose operation is controlled based on the image processing device according to any one of claims 1 to 21.
23. A method for manufacturing an article, comprising the steps of: manufacturing an article by using the robot system according to claim 22;
24. An image processing method for processing an image of a workpiece by an imaging unit that images the workpiece, The processing unit: determining a first density of points in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 13. An image processing method comprising:
25. An imaging device capable of imaging a workpiece and processing an image of the workpiece, The processing unit: determining a first density of points in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; 1. An imaging device comprising:
26. A control method for an imaging device capable of imaging a workpiece and processing an image of the workpiece, comprising: The processing unit: determining a first density of points in the image; A point cloud having a second density higher than the first density is set in the image; determining whether interference occurs at a holding unit when the workpiece is held by a holding unit based on the first density point cloud; A control method comprising:
27. A program enabling a computer to execute the image processing method according to claim 24 or the control method according to claim 26.
28. A computer-readable recording medium storing the program according to claim 27.
Citation Information
Patent Citations
Holding system of object and method of detecting interference in the same system
JP2010207989A
Cited By
Control device, control system, robot system, control method, and computer program
WO2026210589A1
