Processing device and program
The processing device's recognition unit uses machine learning to accurately identify container openings and inner edges, enhancing robotic control for efficient pick-and-place operations by providing precise positional and shape data.
Patent Information
- Application Number
- PCT/JP2024/012398
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-31
- Filing Date
- 2024-03-27
- Publication Date
- 2024-10-03
AI Technical Summary
Existing technologies face challenges in accurately recognizing the position and shape of containers and their openings for robotic pick-and-place operations, leading to inefficiencies in object handling and placement.
A processing device equipped with a recognition unit that acquires camera images of container openings and uses machine learning to identify the shape and inner edges of containers, generating mask images to determine precise positions and shapes for robotic control.
The solution enables precise robotic control for accurate pick-and-place operations, improving handling and placement efficiency by providing detailed recognition of container openings and inner surfaces.
Smart Images

Figure JP2024012398_03102024_PF_FP_ABST
Abstract
Description
Processing device and program
[0001] The present disclosure relates to a technology for recognizing a container.
[0002] Patent Document 1 describes a technology for recognizing the position of an item in a container.
[0003] Japanese Patent Application Laid-Open No. 2002-68103
[0004] In one embodiment, the processing device includes a recognition unit that acquires a camera image of an opening of a container in which an object to be worked by a robot is placed, and recognizes the shape of the opening based on the acquired camera image.
[0005] In one embodiment, the processing device includes a recognition unit that recognizes the inner bottom surface of the opening of the container in which the work object of the robot is placed based on a camera image.
[0006] In one embodiment, the program causes a computer device to function as the processing device.
[0007] FIG. 1 is a schematic diagram showing an example of a processing device; FIG. 2 is a schematic diagram showing an example of a robot and an example of the state around the robot; FIG. 3 is a schematic diagram showing an example of a container; FIG. 4 is a flowchart showing an example of the operation of a recognition unit; FIG. 5 is a schematic diagram for explaining an example of the operation of the recognition unit; FIG. 6 is a flowchart showing an example of the operation of the recognition unit; FIG. 7 is a schematic diagram for explaining an example of the operation of the recognition unit; FIG. 8 is a schematic diagram for explaining an example of the operation of the recognition unit;
[0008] 1 is a schematic diagram showing an example of the configuration of a processing device 1. The processing device 1 is capable of recognizing, for example, a container 40 in which a work target 100 of a robot 10 is placed. For example, the processing device 1 is capable of recognizing an opening 400 of the container 40. The processing device 1 is then capable of controlling the robot 10 based on, for example, the recognition result of the opening 400 of the container 40. In this example, the processing device 1 can also be said to be a robot control device that controls the robot 10. The processing device 1 is capable of recognizing, for example, each opening 400 of a plurality of containers 40.
[0009] 2 is a schematic diagram showing an example of the robot 10 and an example of the surroundings of the robot 10. The plurality of containers 40 are placed, for example, on the upper surface 75 of the work table 70. The plurality of containers 40 include a first container 40a in which the robot 10 holds the work object 100 therein, and a second container 40b in which the robot 10 places the work object 100 held by the robot 10.
[0010] For example, multiple work targets 100 are placed in the first container 40a. The robot 10 performs an operation of, for example, holding one work target 100 in the first container 40a, moving the held work target 100 to the second container 40b, and placing it in the second container 40b. This operation is called, for example, pick-and-place. The robot 10 repeatedly performs this pick-and-place operation to move multiple work targets 100 in the first container 40a into the second container 40b. Hereinafter, the operation of the robot 10 holding the target 100 in the first container 40a may be referred to as a pick operation. Furthermore, the operation of the robot 10 placing the held target 100 in the second container 40b may be referred to as a place operation.
[0011] The first container 40a may be disposed apart from the second container 40b as shown in Fig. 2, or may be disposed adjacent to the second container 40b. Furthermore, the plurality of containers 40 may include a plurality of first containers 40a, or may include a plurality of second containers 40b. Furthermore, the first container 40a and the second container 40b may be disposed on different work tables. Hereinafter, the work target 100 may be simply referred to as the target 100.
[0012] The robot 10 includes, for example, an arm 11 and an end effector 15 connected to the arm 11. The end effector 15 is capable of holding an object 100. The arm 11 includes, for example, a plurality of joints. The posture of the arm 11 changes as the amount of rotation of at least one of the plurality of joints changes. The change in posture of the arm 11 changes the position and posture of the end effector 15. The change in posture of the arm 11 also changes the position and posture of the object 100 held by the end effector 15. The end effector 15 is capable of, for example, grasping and holding the object 100 with a plurality of fingers. Note that the end effector 15 may hold the object 100 by suction.
[0013] The robot 10, for example, holds the object 100 in the first container 40a with the end effector 15, moves the arm 11 (in other words, changes the posture of the arm 11), and moves the held object 100 to the second container 40b and places it in the second container 40b.
[0014] The robot 10 is fixed to, for example, a stand 80. One end of a holding arm 60 that holds a camera 50 is attached to the stand 80. The camera 50 is fixed to the other end of the holding arm 60. The camera 50 is capable of photographing a plurality of containers 40 on a work table 70. The relative positional relationship between the camera 50 and the robot 10 is fixed. The camera 50 may be held by a holding arm extending from the work table 70.
[0015] The camera 50, for example, photographs the container 40 from above the container 40. The camera 50 is, for example, a three-dimensional camera. The camera 50 photographs a photographing range including the plurality of containers 40 on the workbench 70 and generates a camera image 500 (see FIG. 1 ). The camera image 500 includes, for example, a color image 510 and a depth image 520 (see FIG. 1 ). The camera 50 outputs the generated camera image 500 to the processing device 1.
[0016] The color image 510 is an image that two-dimensionally represents color information at each measurement point included in the shooting range. Each pixel value of the color image 510 is color information at the measurement point corresponding to the pixel value. The multiple pixels that make up the color image 510 correspond to different measurement points, and the pixel positions of the multiple pixels correspond to different measurement points. Each pixel value of the color image includes, for example, an R component (red component), a G component (green component), and a B component (blue component). Such a color image 510 is also called an RGB image. The color image 510 captures the state of the shooting range. The color image 510 captures multiple containers 40.
[0017] The depth image 520 is an image that two-dimensionally represents the distance from the camera 50 to each measurement point included in the shooting range. The depth image 520 is also called a distance image. Each pixel value of the depth image 520 indicates the distance from the camera 50 to the measurement point corresponding to that pixel value. The multiple pixels that make up the depth image 520 correspond to different measurement points, and the pixel positions of the multiple pixels correspond to different measurement points. The depth image may be acquired, for example, by a stereo method, a ToF (Time of Flight) method, or another method.
[0018] The number of pixels in the row direction (in other words, the horizontal direction) and column direction (in other words, the vertical direction) of the color image 510 matches the number of pixels in the row direction and column direction (in other words, the vertical direction), respectively, of the depth image 520. The pixel value (in other words, color information) of a certain pixel position in the color image 510 and the pixel value (in other words, distance) of the same pixel position in the depth image 520 correspond to the same measurement point. In other words, the color information of a certain measurement point in the color image 510 and the distance to the certain measurement point in the depth image 520 correspond to the pixel at the same pixel position. It can also be said that the color information of a certain measurement point within the shooting range and the distance to the certain measurement point are represented by the pixel values of pixels at the same pixel position in the color image 510 and the depth image 520.
[0019] A camera coordinate system 55 is set for the camera 50. The camera coordinate system 55 is, for example, an xyz Cartesian coordinate system set for the camera 50. The camera coordinate system 55 is a coordinate system that expresses the real space viewed from the camera 50 as a coordinate space. The z direction of the camera coordinate system 55 is set, for example, in a direction perpendicular to the top surface 75 of the workbench 70. The xy plane of the camera coordinate system 55 is set, for example, parallel to the top surface 75 of the workbench 70. The +z direction of the camera coordinate system 55 is set, for example, in a direction from the camera 50 toward the top surface 75 of the workbench 70. Each pixel value in the depth image 520 indicates, for example, the distance from the camera 50 to the measurement point in the z direction of the camera coordinate system 55.
[0020] The robot 10 includes, for example, a camera 16 similar to the camera 50. The camera 16 is, for example, a three-dimensional camera. As shown in Fig. 2, the camera 16 is fixed to, for example, the end effector 15. The imaging range of the camera 16 changes depending on the posture of the end effector 15. Since the posture of the end effector 15 changes depending on the posture of the arm 11, the imaging range of the camera 16 changes depending on the posture of the arm 11.
[0021] When the end effector 15 holds the object 100 in the first container 40a, the camera 16 photographs the first container 40a from above the first container 40a. In this case, the photographing range of the camera 16 includes multiple objects 100 in the first container 40a. On the other hand, when the object 100 held by the end effector 15 is placed in the second container 40b, the camera 16 photographs the second container 40b from above the second container 40b.
[0022] Like the camera 50, the camera 16 captures an image of the capture range and generates a camera image 160 (see FIG. 1 ) including, for example, a color image and a depth image. When the robot 10 performs a picking operation, the color image included in the camera image 160 captures the first container 40a and the state inside the first container 40a. The color image captures multiple objects 100 inside the first container 40a. On the other hand, when the robot 10 performs a placing operation, the color image captures the second container 40b and the state inside the second container 40b. The camera 16 outputs the generated camera image 160 to the processing device 1. The processing device 1 controls the robot 10 based on the camera image 160 to cause the robot 10 to repeatedly perform pick-and-place operations.
[0023] Fig. 3 is a schematic diagram showing an example of the container 40. Fig. 3 shows the container 40 as viewed from above. The orientation of the container 40 captured in a color image 510 generated by the camera 50 is, for example, as shown in Fig. 3.
[0024] The container 40 has an outer shape that is, for example, roughly a rectangular parallelepiped with an open top. The container 40 includes, for example, a plate-shaped bottom 46 and a peripheral wall 45 that stands on the peripheral edge of the upper surface of the bottom 46. The peripheral wall 45 stands, for example, perpendicular to the bottom 46. The peripheral wall 45 stands, for example, perpendicularly from the bottom 46. The outer shape of the bottom 46 in a plan view is, for example, a rounded rectangle. The peripheral wall 45 is curved, for example, in the shape of a rounded rectangle, along the edge of the upper surface of the bottom 46.
[0025] The bottom 46 and the peripheral wall 45 form the opening 400 of the container 40. The upper surface of the bottom 46 forms an inner bottom surface 420 of the opening 400. The upper end surface of the peripheral wall 45 forms an edge portion 410 of the opening 400. The shape of the inner bottom surface 420 is, for example, a rounded rectangle. Furthermore, the shapes of the inner edge 411 and outer edge 412 of the edge portion 410 are, for example, rounded rectangles. The object 100 is placed into the container 40 through an opening surface 430 surrounded by the inner edge 411 of the edge portion 410. The shape of the opening surface 430 is, for example, a rounded rectangle, similar to the shape of the inner edge 411 of the edge portion 410.
[0026] Hereinafter, the opening 400, edge portion 410, inner edge 411, outer edge 412, inner bottom surface 420, and opening surface 430 of the first container 40a may be referred to as the first opening 400a, first edge portion 410a, first inner edge 411a, first outer edge 412a, first inner bottom surface 420a, and first opening surface 430a, respectively. Also, the opening 400, edge portion 410, inner edge 411, outer edge 412, inner bottom surface 420, and opening surface 430 of the second container 40b may be referred to as the second opening 400b, second edge portion 410b, second inner edge 411b, second outer edge 412b, second inner bottom surface 420b, and second opening surface 430b, respectively.
[0027] The camera 50 captures an image of the first opening 400a of the first container 40a and the second opening 400b of the second container 40b. A color image 510 generated by the camera 50 captures the first opening 400a and the second opening 400b.
[0028] In the picking operation, the target object 100 is held in the first opening 400a of the first container 40a. In the placing operation, the target object 100 is placed in the second opening 400b of the second container 40b. The first opening 400a can be considered to be the work area for the picking operation, i.e., the area where the picking operation is performed. The second opening 400b can be considered to be the work area for the placing operation, i.e., the area where the placing operation is performed.
[0029] <Configuration Example of Processing Device> The processing device 1 is, for example, a type of computer device. As shown in Fig. 1, the processing device 1 includes, for example, a control unit 2, a storage unit 3, an interface 4, and an interface 5. The processing device 1 can also be considered, for example, a processing circuit.
[0030] The interface 4 is capable of communicating with the camera 50. The control unit 2 can acquire the camera image 500 generated by the camera 50 through the interface 4. The interface 4 can also be referred to as, for example, an interface circuit, a communication unit, or a communication circuit. The interface 4 may communicate with the camera 50 via wired or wireless communication.
[0031] The interface 5 is capable of communicating with the robot 10. The control unit 2 is capable of controlling the robot 10 through the interface 5. The interface 5 may also be referred to as, for example, an interface circuit, a communication unit, or a communication circuit. The interface 5 may communicate with the robot 10 via wired or wireless communication. The control unit 2 is capable of acquiring, through the interface 5, a camera image 160 generated by a camera 16 provided in the robot 10.
[0032] The control unit 2 can generally manage the operation of the processing device 1 by controlling the other components of the processing device 1. The control unit 2 can also be referred to as a control circuit, for example. The control unit 2 includes at least one processor to provide control and processing power for performing various functions, as described in more detail below.
[0033] According to various embodiments, the at least one processor may be implemented as a single integrated circuit (IC) or as multiple communicatively connected integrated circuits ICs and / or discrete circuits. The at least one processor may be implemented according to various known techniques.
[0034] In one embodiment, a processor includes one or more circuits or units configured to perform one or more data computational procedures or processes, for example, by executing instructions stored in associated memory. In other embodiments, a processor may be firmware (e.g., discrete logic components) configured to perform one or more data computational procedures or processes.
[0035] According to various embodiments, the processor may include one or more processors, controllers, microprocessors, microcontrollers, application specific integrated circuits (ASICs), digital signal processors, programmable logic devices, field programmable gate arrays, or any combination of these devices or configurations, or other known devices and configurations, to perform the functions described below.
[0036] The control unit 2 may include, for example, a CPU (Central Processing Unit) as a processor. The storage unit 3 may include a non-transitory recording medium readable by the CPU of the control unit 2, such as a ROM (Read Only Memory) and a RAM (Random Access Memory). The storage unit 3 stores, for example, a program 30 for controlling the processing device 1. Various functions of the control unit 2 are realized, for example, by the CPU of the control unit 2 executing the program 30 in the storage unit 3.
[0037] The configuration of the control unit 2 is not limited to the above example. For example, the control unit 2 may include multiple CPUs. The control unit 2 may also include at least one DSP (Digital Signal Processor). All or some of the functions of the control unit 2 may be realized by a hardware circuit that does not require software to realize the function. The storage unit 3 may also include a computer-readable non-transitory recording medium other than ROM and RAM. The storage unit 3 may also include, for example, a small hard disk drive or SSD (Solid State Drive).
[0038] The control unit 2 includes, for example, a robot control unit 20 that controls the robot 10 and a recognition unit 21 that recognizes the opening 400 of the container 40 based on the camera image 500. The robot control unit 20 controls the robot 10 through the interface 5. The robot control unit 20 and the recognition unit 21 are functional blocks formed in the control unit 2, for example, when the CPU of the control unit 2 executes a program 30 in the storage unit 3. Note that all or some of the functions of the robot control unit 20 may be realized by a hardware circuit that does not require software to realize the function. The same applies to the recognition unit 21.
[0039] The recognition unit 21 recognizes the first opening 400a of the first container 40a and the second opening 400b of the second container 40b based on the camera image 500. The recognition unit 21 recognizes, for example, the opening shape of the first container 40a and the opening shape of the second container 40b. Recognition of the first opening 400a of the first container 40a can also be said to be recognition of the work area for the picking operation of the robot 10. Recognition of the second opening 400b of the second container 40b can also be said to be recognition of the work area for the placing operation of the robot 10. The robot control unit 20 controls the robot 10 based on the recognition results of the recognition unit 21 of the openings 400 of each container 40 and the camera image 160 from the robot 10, causing the robot 10 to perform pick-and-place. A specific example of a process in which the robot control unit 20 controls the robot 10 based on the recognition results of the recognition unit 21 and the camera image 160 will be described later.
[0040] <Example of a Method for Recognizing Container Openings> FIG. 4 is a flowchart showing an example of the operation of the recognition unit 21. As shown in FIG. 4 , in step s1, the recognition unit 21 recognizes the edge portion 410 of each of the openings 400 of the first container 40a and the second container 40b based on a camera image 500. The recognition unit 21 recognizes the opening shape of the first container 40a by recognizing the edge portion 410 of the first container 40a, and recognizes the opening shape of the second container 40b by recognizing the edge portion 410 of the second container 40b. The recognition unit 21 recognizes the edge portions 410 of the first container 40a and the second container 40b, for example, using machine learning with the camera image 500 as input data. The recognition unit 21 has, for example, a neural network that realizes instance segmentation and recognizes the edge portion 410 of each container 40 using the neural network. As the neural network that realizes instance segmentation, for example, Mask Scoring R-CNN is adopted. R-CNN is an abbreviation for Region Based Convolutional Neural Networks. The recognition unit 21 recognizes the edge portion 410 using instance segmentation.
[0041] The recognition unit 21 inputs a color image 510 included in a camera image 500 to the input layer of the trained neural network. The color image 510 shows the openings 400 of the first container 40a and the second container 40b. The color image 510 may or may not show the work object 100. The trained neural network recognizes the edge portion 410 of each container 40 based on the color image 510, and outputs the recognition results of the edge portion 410 of each container 40 from the output layer. The trained neural network is trained to be able to recognize the edge portion 410 of the container 40 based on the color image showing the openings 400 of the container 40.
[0042] The trained neural network outputs, as a recognition result of the edge portion 410 of each container 40, for example, a mask image 600 representing the position and shape of the edge portion 410 of each container 40. FIG. 5 is a schematic diagram showing an example of the mask image 600.
[0043] The mask image 600 is, for example, a binary image. The number of pixels in the row and column directions of the mask image 600 is, for example, the same as the number of pixels in the row and column directions of the color image 510, respectively. In the mask image 600, for example, each pixel value of a first partial image 610 corresponding to the first edge portion 410a of the first container 40a is "1." In the mask image 600, for example, each pixel value of a second partial image 620 corresponding to the second edge portion 410b of the second container 40b is "1." In the mask image 600, each pixel value of partial images other than the first partial image 610 and the second partial image 620 is "0." Hereinafter, the first partial image 610 may be referred to as the first edge portion-equivalent image 610, and the second partial image 620 may be referred to as the second edge portion-equivalent image 620.
[0044] The position and shape of the first edge portion equivalent image 610 in the mask image 600 are similar to the position and shape of the partial image in which the first edge portion 410a appears in the color image 510. The position and shape of the first edge portion equivalent image 610 in the mask image 600 represent the position and shape of the first edge portion 410a. Furthermore, the position and shape of the second edge portion equivalent image 620 in the mask image 600 are similar to the position and shape of the partial image in which the second edge portion 410b appears in the color image 510. The position and shape of the second edge portion equivalent image 620 in the mask image 600 represent the position and shape of the second edge portion 410b.
[0045] The recognition unit 21 can distinguish and identify the first edge portion equivalent image 610 and the second edge portion equivalent image 620 in the mask image 600 based on, for example, input information from a user. The processing device 1 includes an input unit that accepts input information from a user. The input unit may include a touch sensor that accepts touch operations by the user, or may include a mouse and a keyboard.
[0046] For example, consider a case where a user inputs information to the processing device 1 indicating that pick-and-place is to be performed from the left container 40 to the right container 40. In this case, the left container 40 is the first container 40a, and the right container 40 is the second container 40b. The mask image 600 includes two partial images (also referred to as mask partial images) with pixel values of "1." Of the two mask partial images, the recognition unit 21 determines the left mask partial image as the first edge portion equivalent image 610, and the right mask partial image as the second edge portion equivalent image 620.
[0047] As another example, consider a case where a red container 40 and a blue container 40 are placed on the workbench 70, and the user inputs information to the processing device 1 indicating that pick-and-place is to be performed from the red container 40 to the blue container 40. In this case, the red container 40 is the first container 40a, and the blue container 40 is the second container 40b. For each of the two mask partial images included in the mask image 600, the recognition unit 21 identifies the color of the pixel of the partial image (also referred to as the color partial image) that is located at the same position as the mask partial image in the color image 510. The recognition unit 21 determines the mask partial image located at the same position as the color partial image containing red pixels as the first edge portion equivalent image 610, and the mask partial image located at the same position as the color partial image containing blue pixels as the second edge portion equivalent image 620.
[0048] Step s2 is executed after the mask image 600 is generated and the edge portion 410 of each container 40 is recognized in step s1. In step s2, the recognition unit 21 recognizes the inner edge 411 of the edge portion 410 of each container 40 based on the recognition result of the edge portion 410 of each container 40. For example, the recognition unit 21 recognizes the inner edge 411 of the edge portion 410 of each container 40 based on the mask image 600 as the recognition result of the edge portion 410 of each container 40.
[0049] Fig. 6 is a flowchart showing an example of a process for recognizing the first inner edge 411a of the first container 40a in the recognition unit 21. In step s2, a series of processes shown in Fig. 6 is executed.
[0050] As shown in FIG. 6 , in step s21, the recognition unit 21 extracts the contour of a first edge portion equivalent image 610 included in the mask image 600. Specifically, the recognition unit 21 determines the position coordinates in an image coordinate system for a plurality of pixels in the mask image 600 that represent the contour of the first edge portion equivalent image 610. The image coordinate system is an xy Cartesian coordinate system set for the image. The origin of the image coordinate system is set, for example, at the pixel position of the pixel in the upper left corner of the image, and the +x direction of the image coordinate system is set to the rightward direction, and the +y direction of the image coordinate system is set to the downward direction. Hereinafter, unless otherwise specified, the position coordinates of a pixel refer to the position coordinates in the image coordinate system.
[0051] Next, in step s22, the recognition unit 21 extracts position coordinates of a plurality of pixels representing the inner contour of the first edge portion equivalent image 610 from the position coordinates of a plurality of pixels representing the contour of the first edge portion equivalent image 610 in the mask image 600. Hereinafter, each of the plurality of pixels representing the inner contour of the first edge portion equivalent image 610 in the mask image 600 may be referred to as a first inner contour pixel.
[0052] Next, in step s23, the recognition unit 21 approximates the position coordinates of the plurality of first inner contour pixels representing the inner contour of the first edge portion equivalent image 610 with a smaller number of position coordinates. These smaller number of position coordinates are, for example, the position coordinates of a plurality of representative points of the inner contour of the first edge portion equivalent image 610. Hereinafter, each of the position coordinates of the plurality of representative points of the inner contour of the first edge portion equivalent image 610 will be referred to as a first inner contour representative point coordinate. The recognition unit 21 approximates the position coordinates of the plurality of first inner contour pixels representing the inner contour of the first edge portion equivalent image 610 with a smaller number of first inner contour representative point coordinates.
[0053] For example, four corners (in other words, four corners) of the inner contour of the first edge portion equivalent image 610 are used as the multiple representative points of the inner contour of the first edge portion equivalent image 610. In this case, the multiple first inner contour representative point coordinates are the position coordinates of the four corners of the inner contour of the first edge portion equivalent image 610. The recognition unit 21 approximates the position coordinates of the multiple first inner contour pixels with the position coordinates of the four corners of the inner contour of the first edge portion equivalent image 610. Hereinafter, the position coordinates of each corner of the inner contour of the first edge portion equivalent image 610 may be referred to as first inner corner coordinates.
[0054] The multiple first inner contour representative point coordinates represent the position and shape of the inner contour of the first edge portion equivalent image 610. Four first inner corner coordinates, as an example of the multiple first inner contour representative point coordinates, represent the positions of four corners of the first inner edge 411a of the first edge portion 410a of the first container 40a. It can be said that the recognition unit 21 recognizes multiple positions of the first inner edge 411a based on the recognition result of the first edge portion 410a in step s1. The multiple first inner contour representative point coordinates represent the position and shape of the first inner edge 411a. The recognition unit 21 obtains, for example, four first inner corner coordinates as the recognition result of the first inner edge 411a. It can also be said that the recognition unit 21 recognizes the first inner edge 411a by identifying the position and shape of the inner contour of the first edge portion equivalent image 610.
[0055] The recognition unit 21 sets the coordinates of the multiple first inner contour representative points as the position coordinates of multiple representative points of the first inner edge 411a. For example, the four corners of the first inner edge 411a are used as the multiple representative points of the first inner edge 411a. The coordinates of the multiple first inner contour representative points can also be said to be the position coordinates of the four corners of the first inner edge 411a. The recognition unit 21 obtains the position coordinates of the multiple representative points of the first inner edge 411a as a recognition result of the first inner edge 411a. Hereinafter, the position coordinates of the representative points of the first inner edge 411a may be referred to as first inner edge representative point coordinates. The first inner edge representative point coordinates obtained in step s2 are position coordinates in the image coordinate system.
[0056] In step s2, the recognition unit 21 similarly extracts the contour of the second edge portion equivalent image 620 included in the mask image 600. Specifically, the recognition unit 21 obtains position coordinates of a plurality of pixels in the mask image 600 that represent the contour of the second edge portion equivalent image 620. Then, the recognition unit 21 extracts position coordinates of a plurality of pixels that represent the inner contour of the second edge portion equivalent image 620 from the obtained plurality of position coordinates. Hereinafter, each of the plurality of pixels that represent the inner contour of the second edge portion equivalent image 620 in the mask image 600 may be referred to as a second inner contour pixel.
[0057] Next, the recognition unit 21 approximates the position coordinates of the plurality of second inner contour pixels representing the inner contour of the second edge portion equivalent image 620 with a smaller number of position coordinates. These smaller number of position coordinates are, for example, the position coordinates of a plurality of representative points of the inner contour of the second edge portion equivalent image 620. Hereinafter, each of the position coordinates of the plurality of representative points of the inner contour of the second edge portion equivalent image 620 will be referred to as second inner contour representative point coordinates. The recognition unit 21 approximates the position coordinates of the plurality of second inner contour pixels representing the inner contour of the second edge portion equivalent image 620 with a smaller number of second inner contour representative point coordinates.
[0058] For example, four corners of the inner contour of the second edge portion equivalent image 620 are used as the multiple representative points of the inner contour of the second edge portion equivalent image 620. In this case, the multiple second inner contour representative point coordinates are the position coordinates of the four corners of the inner contour of the second edge portion equivalent image 620. The recognition unit 21 approximates the position coordinates of the multiple second inner contour pixels with the position coordinates of the four corners of the inner contour of the second edge portion equivalent image 620. Hereinafter, the position coordinates of each corner of the inner contour of the second edge portion equivalent image 620 may be referred to as second inner corner coordinates.
[0059] The multiple second inner contour representative point coordinates represent the position and shape of the inner contour of the second edge portion equivalent image 620. Four second inner corner coordinates, as an example of the multiple second inner contour representative point coordinates, represent the positions of four corners of the second inner edge 411b of the second edge portion 410b of the second container 40b. It can be said that the recognition unit 21 recognizes multiple positions of the second inner edge 411b based on the recognition result of the second edge portion 410b in step s1. The multiple second inner contour representative point coordinates represent the position and shape of the second inner edge 411b. The recognition unit 21 obtains, for example, four second inner corner coordinates as the recognition result of the second inner edge 411b. It can also be said that the recognition unit 21 recognizes the second inner edge 411b by identifying the position and shape of the inner contour of the second edge portion equivalent image 620.
[0060] The recognition unit 21 sets the coordinates of the multiple second inner contour representative points as the position coordinates of multiple representative points of the second inner edge 411b. For example, the four corners of the second inner edge 411b are used as the multiple representative points of the second inner edge 411b. The coordinates of the multiple second inner contour representative points can also be said to be the position coordinates of the four corners of the second inner edge 411b. The recognition unit 21 obtains the position coordinates of the multiple representative points of the second inner edge 411b as the recognition result of the second inner edge 411b. Hereinafter, the position coordinates of the representative points of the second inner edge 411b may be referred to as second inner edge representative point coordinates. The second inner edge representative point coordinates obtained in step s2 are position coordinates in the image coordinate system.
[0061] 6 is a schematic diagram showing an example of a contour 660 of a first edge portion equivalent image 610 and a contour 670 of a second edge portion equivalent image 620 in a mask image 600. In step s2, the recognition unit 21 sets, for example, the position coordinates of four corners 661a of an inner contour 661 in the contour 660 of the first edge portion equivalent image 610 (i.e., four first inner corner coordinates) as the position coordinates of four corners of the first inner edge 411a of the first container 40a (in other words, multiple representative points). Also, in step s2, the recognition unit 21 sets the position coordinates of four corners 671a of an inner contour 671 in the contour 670 of the second edge portion equivalent image 620 (i.e., four second inner corner coordinates) as the position coordinates of four corners of the second inner edge 411b of the second container 40b (in other words, multiple representative points).
[0062] Once the inner edge 411 of the opening 400 of each container 40 has been recognized in step s2, step s3 is executed. In step s3, the recognition unit 21 recognizes the second inner bottom surface 420b of the second container 40b based on the recognition result of the second edge portion 410b of the second container 40b and the depth image 520 included in the camera image 500. In step s3, the recognition unit 21 recognizes, for example, the outer edge of the second inner bottom surface 420b.
[0063] Fig. 8 is a flowchart showing an example of the details of step s3. As shown in Fig. 8, in step s31, the recognition unit 21 recognizes the height of the second edge portion 410b based on the recognition result of the second edge portion 410b and the depth image 520. Specifically, the recognition unit 21 recognizes the height of the second edge portion 410b based on the depth image 520 and the second edge portion equivalent image 620 as the recognition result of the second edge portion 410b.
[0064] Here, each pixel in the depth image 520 is referred to as a first pixel, and each pixel in the mask image 600 is referred to as a second pixel. The recognition unit 21 calculates an average value (also referred to as a first average value) of pixel values of a plurality of first pixels in the depth image 520 that are located at the same position coordinates as a plurality of second pixels that constitute the image 620 corresponding to the second edge portion of the mask image 600. The first average value represents the distance from the camera 50 to the second edge portion 410b.
[0065] The recognition unit 21 also identifies the center of the region surrounded by the inner contour 671 of the second edge portion equivalent image 620 in the mask image 600. The identified center is composed of, for example, a plurality of second pixels arranged in a matrix. The recognition unit 21 then calculates the average value (also referred to as the second average value) of pixel values of a plurality of first pixels in the depth image 520 that are located at the same position coordinates as the plurality of second pixels that constitute the identified center of the mask image 600. The second average value represents the distance from the camera 50 to the second inner bottom surface 420b of the second container 40b.
[0066] Next, the recognition unit 21 determines the value obtained by subtracting the first average value (in other words, the distance from the camera 50 to the second edge portion 410b) from the second average value (in other words, the distance from the camera 50 to the second inner bottom surface 420b) as the height of the second edge portion 410b. In this way, the height of the second edge portion 410b is recognized. The height of the second edge portion 410b is, for example, the distance from the second inner bottom surface 420b to the second edge portion 410b.
[0067] Once the height of the second edge portion 410b has been recognized in step s31, step s32 is executed. In step s32, the recognition unit 21 recognizes the second inner bottom surface 420b of the second opening 400b based on the recognition results of the second edge portion 410b and the height of the second edge portion 410b.
[0068] In step s32, the recognition unit 21 first converts the coordinates of each second inner edge representative point in the image coordinate system (in other words, the coordinates of each second inner contour representative point) obtained in step s2 into position coordinates in the camera coordinate system 55. Here, each pixel in the color image 510 is referred to as a third pixel. Converting a second inner edge representative point coordinate in the image coordinate system into a position coordinate in the camera coordinate system 55 can be said to be calculating the position coordinate in the camera coordinate system 55 of a measurement point corresponding to a third pixel that is located at the same position coordinate as the second inner edge representative point coordinate in the color image 510. Then, for each second inner edge representative point coordinate in the camera coordinate system 55, the recognition unit 21 adds the height of the second edge portion 410b to the z coordinate, and determines this as the position coordinate of the representative point of the outer edge of the second inner bottom surface 420b (also referred to as the second inner bottom surface representative point coordinate).
[0069] For example, suppose that one second inner edge representative point coordinate (in other words, one second inner contour representative point coordinate) in the camera coordinate system 55 is (x0, y0, z0), and the height of the second edge portion 410b is h. In this case, (x0, y0, z0 + h) becomes one second inner bottom surface representative point coordinate in the camera coordinate system 55. The multiple second inner bottom surface representative point coordinates in the camera coordinate system 55 represent the position and shape of the second inner bottom surface 420b of the second container 40b. When the multiple second inner edge representative point coordinates are the position coordinates of the four corners of the second inner edge 411b, the representative points of the outer edge of the second inner bottom surface 420b are the corners of the outer edge of the second inner bottom surface 420b, and the multiple second inner bottom surface representative point coordinates in the camera coordinate system 55 are the position coordinates of the four corners of the outer edge of the second inner bottom surface 420b. The coordinates of the multiple second inner bottom surface representative points in the camera coordinate system 55 can also be said to represent the positions of multiple points on the outer edge of the second inner bottom surface 420b.
[0070] Next, the recognition unit 21 converts each of the multiple second inner bottom surface representative point coordinates in the camera coordinate system 55 into position coordinates in the image coordinate system. Converting a certain second inner bottom surface representative point coordinate in the camera coordinate system 55 into position coordinates in the image coordinate system can also be said to be determining the position coordinates in the image coordinate system of a third pixel corresponding to a measurement point in the color image 510 that is located at the position of the certain second inner bottom surface representative point coordinate in the camera coordinate system 55. When the multiple second inner edge representative point coordinates are position coordinates of the four corners of the second inner edge 411b, the multiple second inner bottom surface representative point coordinates in the image coordinate system are position coordinates of four pixels in the color image 510 where the four corners of the second inner bottom surface 520b are respectively depicted. The multiple second inner bottom surface representative point coordinates in the image coordinate system represent the positions of the four pixels in the color image 510 where the four corners of the second inner bottom surface 520b are respectively depicted. The recognition unit 21 obtains, for example, a plurality of second inner bottom surface representative point coordinates in the image coordinate system as a recognition result of the second inner bottom surface 520b. When step s32 is executed, step s3 ends, and the recognition process of the openings 400 of the first container 40a and the second container 40b ends.
[0071] Fig. 9 is a schematic diagram showing an example of the mask image 600 shown in Fig. 7 , showing positions 675 of a plurality of second inner bottom surface representative point coordinates in the image coordinate system. Fig. 10 is a schematic diagram showing an example of the color image 510 used in recognizing the opening 400 of each container 40, showing positions 675 of a plurality of second inner bottom surface representative point coordinates in the image coordinate system, positions 666 of a plurality of first inner edge representative point coordinates in the image coordinate system, and positions 676 of a plurality of second inner edge representative point coordinates in the image coordinate system.
[0072] Positions 666 of the coordinates of the plurality of first inner edge representative points obtained as a result of the recognition of the first inner edge 411a of the first container 40a are, for example, similar to the positions where the four corners of the first inner edge 411a appear in the color image 510. Positions 676 of the coordinates of the plurality of second inner edge representative points obtained as a result of the recognition of the second inner edge 411b of the second container 40b are, for example, similar to the positions where the four corners of the second inner edge 411b appear in the color image 510. Positions 675 of the coordinates of the plurality of second inner bottom surface representative points obtained as a result of the recognition of the second inner bottom surface 420b of the second container 40b are, for example, similar to the positions where the four corners of the outer edge of the second inner bottom surface 420b appear in the color image 510.
[0073] When the execution of step s3 is completed, the recognition unit 21 notifies the robot control unit 20 of the recognition results of the openings 400 of each container 40. For example, the recognition unit 21 outputs a plurality of first inner edge representative point coordinates to the robot control unit 20 as the recognition results of the first opening 400a of the first container 40a, and outputs a plurality of second inner bottom surface representative point coordinates to the robot control unit 20 as the recognition results of the second opening 400b of the second container 40b.
[0074] The robot control unit 20 converts the coordinates of each first inner edge representative point in the image coordinate system received from the recognition unit 21 into position coordinates in the robot coordinate system. Converting a certain first inner edge representative point coordinate in the image coordinate system into position coordinates in the robot coordinate system can be said to be calculating the position coordinates in the robot coordinate system of a measurement point corresponding to a third pixel located at the same position coordinates as the certain first inner edge representative point coordinate in the color image 510. The robot control unit 20 also converts the coordinates of each second inner bottom surface representative point in the image coordinate system received from the recognition unit 21 into position coordinates in the robot coordinate system. The robot control unit 20 then controls the robot 10 based on the coordinates of the multiple first inner edge representative points in the robot coordinate system, the coordinates of the multiple second inner bottom surface representative points in the robot coordinate system, and the camera image 160, causing the robot 10 to perform, for example, pick-and-place. The robot coordinate system is an xyz Cartesian coordinate system set for the robot 10. The robot coordinate system is a coordinate system that represents the real space as seen by the robot 10 as a coordinate space. Hereinafter, unless otherwise specified, position coordinates when describing the operation of the robot control unit 20 are position coordinates in the robot coordinate system.
[0075] When causing the robot 10 to perform a picking operation, the robot control unit 20, for example, identifies the center position of the first opening surface 430a of the first container 40a based on the coordinates of the multiple first inner edge representative points. For example, the robot control unit 20 calculates the average values of the x-coordinate, y-coordinate, and z-coordinate of the four first inner corner coordinates as the coordinates of the multiple first inner edge representative points. Then, the robot control unit 20 sets the calculated average values of the x-coordinate, y-coordinate, and z-coordinate as the x-coordinate, y-coordinate, and z-coordinate of the center position of the first opening surface 430a of the first container 40a, respectively. This identifies the center position of the first opening surface 430a.
[0076] Next, the robot control unit 20 controls the posture of the arm 11 of the robot 10 so that the end effector 15 is positioned above the center position of the identified first opening surface 430a and so that the entire first edge portion 410a of the first container 40a is captured as large as possible by the camera 16. Then, the robot control unit 20 identifies the position and posture of each object 100 inside the first opening 400a of the first container 40a based on the camera image 160 generated by the camera 16, and recognizes each object 100.
[0077] Next, the robot control unit 20 determines an object 100 to be approached by the end effector 15 from among the multiple objects 100 within the first opening 400a based on the recognition results of each object 100 within the first opening 400a. If the robot control unit 20 determines, based on the determined position and orientation of a certain object 100, that at least a portion of the certain object 100 is located outside the first inner edge 411a of the first edge portion 410a of the first opening 400a, the robot control unit 20 determines that the certain object 100 has been erroneously recognized and does not select the certain object 100 as an approach target. The robot control unit 20 can determine the position and shape of the first inner edge 411a based on the coordinates of the multiple first inner edge representative points. The robot control unit 20 controls the robot 10 so that the end effector 15 approaches and holds the object 100 determined as the approach target. This completes the picking operation.
[0078] Furthermore, when causing the robot 10 to perform a placing operation, the robot control unit 20 identifies the position and shape of the second inner bottom surface 420b of the second opening 400b of the second container 40b, for example, based on the coordinates of multiple second inner bottom surface representative points. Then, based on the identified position and shape of the second inner bottom surface 420b, the robot control unit 20 controls the robot 10 so that the target object 100 held by the robot 10 is placed in a specific area of the second inner bottom surface 420b. In this way, the placing operation is performed.
[0079] In the above example, the first inner edge 411a of the first edge portion 410a of the first container 40a is represented by four first inner edge representative point coordinates representing the positions of the four corners of the first inner edge 411a. That is, the first inner edge 411a is represented by four position coordinates. The number of position coordinates representing the first inner edge 411a is not limited to this and may be less than four or five or more. Furthermore, the multiple position coordinates representing the first inner edge 411a may include position coordinates of positions other than the corners of the first inner edge 411a. Similarly, the second inner edge 411b may be represented by less than four position coordinates or five or more position coordinates. Furthermore, the multiple position coordinates representing the second inner edge 411b may include position coordinates of positions other than the corners of the second inner edge 411b.
[0080] In the above example, the second inner bottom surface 420b of the second opening 400b of the second container 40b is represented by four second inner bottom surface representative point position coordinates that represent the positions of the four corners of the outer edge of the second inner bottom surface 420b. That is, the second inner bottom surface 420b is represented by four position coordinates. The number of position coordinates representing the second inner bottom surface 420b is not limited to this and may be less than four or may be five or more. Furthermore, the multiple position coordinates representing the second inner bottom surface 420b may include position coordinates of positions other than the corners of the outer edge of the second inner bottom surface 420b.
[0081] Furthermore, in the above example, the recognition unit 21 outputs position coordinates in the image coordinate system to the robot control unit 20, but it may also output position coordinates in the camera coordinate system 55 to the robot control unit 20, or position coordinates in the robot coordinate system to the robot control unit 20.
[0082] For example, the recognition unit 21 may convert the coordinates of the first inner edge representative point in the image coordinate system into position coordinates in the camera coordinate system 55, and output the coordinates of the first inner edge representative point in the camera coordinate system 55 to the robot control unit 20. In this case, the robot control unit 20 may convert the coordinates of the first inner edge representative point in the camera coordinate system 55 into position coordinates in the robot coordinate system, for example. The recognition unit 21 may also convert the coordinates of the first inner edge representative point in the image coordinate system into position coordinates in the robot coordinate system, and output the coordinates of the first inner edge representative point in the robot coordinate system to the robot control unit 20.
[0083] The recognition unit 21 may also convert the coordinates of the second inner bottom surface representative point in the image coordinate system into position coordinates in the camera coordinate system 55, and output the coordinates of the second inner bottom surface representative point in the camera coordinate system 55 to the robot control unit 20. In this case, the robot control unit 20 may convert, for example, the coordinates of the second inner bottom surface representative point in the camera coordinate system 55 into position coordinates in the robot coordinate system. The recognition unit 21 may also convert the coordinates of the second inner bottom surface representative point in the image coordinate system into position coordinates in the robot coordinate system, and output the coordinates of the second inner bottom surface representative point in the robot coordinate system to the robot control unit 20.
[0084] The recognition unit 21 may recognize the first inner bottom surface 420a of the first container 40a in the same manner as when recognizing the second inner bottom surface 420b of the second container 40b, and may, for example, determine the position coordinates of multiple representative points (e.g., four corners) on the outer edge of the first inner bottom surface 420a. In this case, the robot control unit 20 may identify the center position of the first inner bottom surface 420a based on the position coordinates of the four corners of the outer edge of the first inner bottom surface 420a determined by the recognition unit 21. Then, when causing the robot 10 to perform a picking operation, the robot control unit 20 may control the posture of the arm 11 of the robot 10 so that the end effector 15 is positioned above the identified center position of the first inner bottom surface 420a. Furthermore, if the robot control unit 20 determines, based on the position and posture identified when recognizing a certain object 100, that at least a portion of the certain object 100 is located outside the outer edge of the first inner bottom surface 420a, it may consider the certain object 100 to have been misrecognized and may not treat the certain object 100 as an approach target.
[0085] Furthermore, the recognition unit 21 does not need to recognize the second inner bottom surface 420b. In this case, the robot control unit 20 may, for example, identify the position and shape of the second inner edge 411b of the second container 40b based on the coordinates of multiple second inner edge representative points obtained by the recognition unit 21. When causing the robot 10 to perform a placing task, the robot control unit 20 may control the robot 10 so that the target object 100 held by the robot 10 is placed inside the second inner edge 411b based on the identified position and shape of the second inner edge 411b.
[0086] As described above, in this example, the recognition unit 21 recognizes the opening 400 of the container 40 in which the work target 100 of the robot 10 is placed, based on the camera image 500. As a result, the recognition result of the opening 400 by the recognition unit 21 is used in controlling the robot 10, thereby improving the controllability of the robot 10. For example, when the robot 10 is controlled so that the robot 10 holds the work target 100 in the opening 400, the recognition result of the opening 400 by the recognition unit 21 is used, making it easier to control the robot 10. Furthermore, for example, when the robot 10 is controlled so that the robot 10 places the work target 100 in the opening 400, the recognition result of the opening 400 by the recognition unit 21 is used, making it easier to control the robot 10.
[0087] Furthermore, as in this example, when the recognition unit 21 recognizes the edge portion 410 of the opening 400 of the container 40 based on the camera image 500, as described above, the robot 10 is controlled to hold the object 100 within the opening 400 based on the recognition result of the edge portion 410 by the recognition unit 21, thereby allowing the robot 10 to properly hold the object 100 within the opening 400.
[0088] In addition, in this example, the recognition unit 21 recognizes the edge portion 410 of the opening 400 of the container 40 using machine learning with the camera image 500 as input data, and therefore the recognition result of the edge portion 410 can be obtained immediately.
[0089] In addition, in this example, the recognition unit 21 uses machine learning to generate a mask image 600 of the edge portion 410 of the container 40, and therefore, for example, the inner edge of the edge portion 410 can be easily recognized based on the mask image 600.
[0090] Furthermore, as in this example, when the recognition unit 21 recognizes the inner edge 411 of the edge portion 410 based on the recognition result of the edge portion 410, it is possible to easily identify, for example, a misrecognition of the object 100 in the opening 400 based on the camera image 160 based on the recognition result of the inner edge 411 by the recognition unit 21.
[0091] Furthermore, in this example, the recognition unit 21 recognizes the inner bottom surface 420 of the opening 400 of the container 40 based on the camera image 500. As a result, for example, as described above, the robot 10 is controlled to place the object 100 on the inner bottom surface 420 based on the recognition result of the inner bottom surface 420 by the recognition unit 21, thereby enabling the robot 10 to properly place the object 100 on the inner bottom surface 420.
[0092] In the above example, a neural network that realizes instance segmentation is used to recognize the opening 400 of the container 40. However, other neural networks may also be used. For example, the recognition unit 21 may include a neural network that realizes semantic segmentation instead of a neural network that realizes instance segmentation. As shown in FIG. 2 , when the first container 40a and the second container 40b are disposed relatively far apart, the neural network that realizes semantic segmentation can distinguish and recognize the first opening 400a of the first container 40a and the second opening 400b of the second container 40b, just like the neural network that realizes instance segmentation. As a neural network that realizes semantic segmentation, for example, a fully convolutional network (FCN) is used.
[0093] The recognition unit 21 may also recognize the opening 400 of the container 40 using a method other than instance segmentation and semantic segmentation. For example, the recognition unit 21 uses a neural network that realizes object detection, such as Faster R-CNN, to obtain a bounding box that surrounds the portion of the color image 510 in which the container 40 appears. Next, the recognition unit 21 cuts out a partial image surrounded by the bounding box from the color image 510. The opening 400 of the container 40 appears in this cut-out partial image. Next, the recognition unit 21 performs edge detection on the cut-out partial image to generate an edge image, which is a binary image. Next, the recognition unit 21 performs, for example, a Hough transform on the edge image to detect straight lines. Then, based on the results of the Hough transform, the recognition unit 21 identifies, for example, four straight lines that form a rectangle that corresponds to the inner edge 411 of the edge portion 410 of the opening 400 of the container 40. This identifies the position and shape of the inner edge 411 of the edge portion 410 and recognizes the inner edge 411 of the edge portion 410.
[0094] Furthermore, for example, if at least one of the color and shape differs between the first container 40a and the second container 40b, the recognition unit 21 may be provided with a first neural network that recognizes the first opening 400a of the first container 40a and a second neural network that recognizes the second opening 400b of the second container 40b separately.
[0095] For example, consider a case where each of the first neural network and the second neural network is a neural network that realizes instance segmentation. In this case, the recognition unit 21 may recognize the first inner edge 411a of the first edge portion 410a based on a first mask image of the first edge portion 410a output by the first neural network based on the color image 510. The recognition unit 21 may also recognize the second inner edge 411b of the second edge portion 410b based on a second mask image of the second edge portion 410b output by the second neural network based on the color image 510. The recognition unit 21 may then recognize the second inner bottom surface 420b of the second container 40b based on the recognition result of the second inner edge 411b, the second mask image, and the depth image 520.
[0096] Furthermore, in the above example, the recognition unit 21 recognizes the edge portion 410 of the container 40 and recognizes the inner edge 411 of the edge portion 410 based on the recognition result of the edge portion 410 (e.g., the mask image 600). However, the recognition unit 21 may directly recognize the inner edge 411 of the edge portion 410 based on the color image 510. In this case, the recognition unit 21 may have, for example, a trained neural network that has been trained to recognize the inner edge 411 of the edge portion 410 based on the color image 510, and the trained neural network may output a mask image of the inner edge 411 of the edge portion 410. The recognition unit 21 may then recognize the inner bottom surface 420 of the container 40 based on the mask image of the inner edge 411 and the depth image 520.
[0097] Furthermore, the recognition unit 21 may directly recognize the inner bottom surface 420 of the container 40 based on the color image 510. In this case, the recognition unit 21 may have, for example, a trained neural network that has been trained to recognize the inner bottom surface 420 based on the color image 510.
[0098] In the above example, the recognition unit 21 recognizes the opening 400 of the container 40 based on the camera image 500 generated by the camera 50, but it may also recognize the opening 400 of the container 40 based on the camera image 160 that shows the opening 400 of the container 40 and is generated by the camera 16 on the robot 10 side.
[0099] Furthermore, in the above example, the container 40 is a tray-shaped container, but the shape of the container 40 is not limited to this. For example, the container 40 may be a deep container. Furthermore, the shape of the container 40 may be a quadrangular prism other than a rectangular parallelepiped with an open top surface (in other words, one of the inner bottom surfaces), a triangular prism with an open top surface, a polygonal prism other than a triangular prism or a quadrangular prism with an open top surface, or a cylinder with an open top surface.
[0100] Furthermore, in the above example, the processing device 1 can control the robot 10, but a robot control device provided separately from the processing device 1 may control the robot 10 based on the recognition result of the container 40 by the processing device 1. In this case, the processing device 1 may communicate with the robot control device via wired or wireless communication to notify the robot control device of the recognition result of the opening 400 of each container 40.
[0101] Although the processing device has been described in detail above, the above description is merely illustrative in all respects, and the present disclosure is not limited thereto. Furthermore, the various examples described above can be combined and applied as long as they are not mutually inconsistent. It is understood that countless examples not illustrated can be envisioned without departing from the scope of the present disclosure.
[0102] This disclosure includes the following:
[0103] In one embodiment, (1) the processing device is equipped with a recognition unit that acquires a camera image of the opening of a container in which an object to be worked on by the robot is placed, and recognizes the opening shape of the opening based on the acquired camera image.
[0104] (2) In the processing device of (1) above, the recognition unit recognizes the opening shape by recognizing the edge portion of the opening based on the camera image.
[0105] (3) In the processing device of (2) above, the recognition unit recognizes the edge portion using machine learning with the camera image as input data.
[0106] (4) In the processing device of (3) above, the recognition unit generates a mask image of the edge portion using the machine learning.
[0107] (5) In the processing device according to any one of (2) to (4) above, the recognition unit recognizes the inner edge of the edge portion based on the recognition result of the edge portion.
[0108] (6) In the processing device of (5) above, the recognition unit recognizes the positions of a plurality of points on the inner edge based on the recognition result of the edge portion.
[0109] (7) In the processing device of (6) above, the plurality of locations includes at least one corner of the inner edge.
[0110] (8) In any one of the processing devices described in (2) to (7) above, the recognition unit recognizes the edge portion of the container in which the robot performs the work of holding the work object based on the camera image.
[0111] (9) In any one of the processing devices (2) to (8) above, the camera image includes a depth image, and the recognition unit recognizes the height of the edge portion based on the recognition result of the edge portion and the depth image.
[0112] (10) In the processing device of (9) above, the recognition unit recognizes the inner bottom surface of the container based on the recognition results of the edge portion and the height.
[0113] (11) In the processing device of (1) above, the recognition unit recognizes the inner bottom surface of the opening based on the camera image.
[0114] (12) In the processing device of (11) above, the recognition unit recognizes the outer edge of the inner bottom surface based on the camera image.
[0115] (13) In the processing device of (12) above, the recognition unit recognizes the positions of a plurality of points on the outer edge based on the camera image.
[0116] (14) In the processing device of (13) above, the plurality of locations includes at least one corner of the outer edge.
[0117] (15) In the processing device of any one of (11) to (14) above, the recognition unit recognizes the inner bottom surface of the container in which the robot performs the work of placing the work object.
[0118] (16) The processing device includes a recognition unit that recognizes the inner bottom surface of the opening of the container in which the robot's work object is placed based on a camera image.
[0119] (17) The program is a program for causing a computer device to function as any one of the processing devices (1) to (16) above.
[0120] REFERENCE SIGNS LIST 1 Processing device 10 Robot 21 Recognition unit 30 Program 40 Container 40a First container 40b Second container 100 Work object 400 Opening 400a First opening 400b Second opening 410 Edge portion 410a First edge portion 410b Second edge portion 411 Inner edge 411a First inner edge 411b Second inner edge 420 Inner bottom surface 420a First inner bottom surface 420b Second inner bottom surface 500 Camera image 520 Depth image 600 Mask image
Claims
1. A processing device having a recognition unit that acquires a camera image of the opening of a container in which an object to be worked on by a robot is placed, and recognizes the opening shape of the opening based on the acquired camera image.
2. A processing device according to claim 1, wherein the recognition unit recognizes the opening shape by recognizing an edge portion of the opening based on the camera image.
3. A processing device according to claim 2, wherein the recognition unit recognizes the edge portion using machine learning with the camera image as input data.
4. A processing device according to claim 3, wherein the recognition unit uses the machine learning to generate a mask image of the edge portion.
5. A processing device according to any one of claims 2 to 4, wherein the recognition unit recognizes an inner edge of the edge portion based on a recognition result of the edge portion.
6. A processing device according to claim 5, wherein the recognition unit recognizes the positions of a plurality of points on the inner edge based on the recognition result of the edge portion.
7. A processing device according to claim 6, wherein said plurality of locations includes at least one corner of said inner edge.
8. A processing device according to any one of claims 2 to 7, wherein the recognition unit recognizes, based on the camera image, the edge portion of the container in which the robot performs the task of holding the work object therein.
9. A processing device according to any one of claims 2 to 8, wherein the camera image includes a depth image, and the recognition unit recognizes the height of the edge portion based on the recognition result of the edge portion and the depth image.
10. A processing device according to claim 9, wherein the recognition unit recognizes the inner bottom surface of the container based on the recognition results of the edge portion and the height.
11. A processing device according to claim 1, wherein the recognition unit recognizes the inner bottom surface of the opening based on the camera image.
12. A processing device according to claim 11, wherein the recognition unit recognizes the outer edge of the inner bottom surface based on the camera image.
13. A processing device according to claim 12, wherein the recognition unit recognizes the positions of a plurality of points on the outer edge based on the camera image.
14. The processing device of claim 13, wherein said plurality of locations includes at least one corner of said outer edge.
15. A processing device according to any one of claims 11 to 14, wherein the recognition unit recognizes the inner bottom surface of the container in which the robot performs the task of placing the work object.
16. A processing device having a recognition unit that recognizes the inner bottom surface of the opening of a container in which an object to be worked on by the robot is placed based on a camera image.
17. A program for causing a computer device to function as the processing device according to any one of claims 1 to 16.
Citation Information
Patent Citations
Apparatus for filling fluid into container
JP2002068103A
Article taking-out device
JP2004160567A
Information processing apparatus, container shape estimation method, work-piece picking system, and program
JP2016091053A
Workpiece picking device and method
JP2019155535A
Control device of robot system, control method of robot system, computer control program and robot system
JP2021115693A
