LABELING METHOD, LABELING DEVICE USING THE SAME, PICK-AND-PLACE SYSTEM USING THE SAME, PICK-AND-PLACE METHOD USING THE SAME AND NON-TRANSITORY COMPUTER READABLE MEDIUM USING THE SAME
20220044471 · 2022-02-10
Assignee
Inventors
Cpc classification
B65C2009/408
PERFORMING OPERATIONS; TRANSPORTING
G06V20/647
PHYSICS
G06V20/46
PHYSICS
G06V10/25
PHYSICS
B65C9/02
PERFORMING OPERATIONS; TRANSPORTING
G06T19/00
PHYSICS
International classification
B65C9/02
PERFORMING OPERATIONS; TRANSPORTING
Abstract
A method further includes the following steps. Firstly, a three-dimensional picture under a generated background condition is generated, wherein the three-dimensional picture includes a three-dimensional object image. Then, a two-dimensional picture of the three-dimensional picture is captured, wherein the two-dimensional picture includes a two-dimensional object image of the three-dimensional object image. Then, an object region of the two-dimensional object image is recognized. Then, an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region is obtained. Then, whether the exposed ratio is greater than a preset ratio is determined. Then the exposed region is defined as the pick-and-place region when the exposed ratio is greater than the preset ratio.
Claims
1. A method for automatically generating a picture and labeling a pick-and-place region in the picture, comprising: generating a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image; capturing a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image; recognizing an object region of the two-dimensional object image; obtaining an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region; determining whether the exposed ratio is greater than a preset ratio; and defining the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio.
2. The method according to claim 1, further comprises: determining whether a pick-and-place area of a pick-and-place port of a pick-and-place device is completely located within the exposed region; wherein step of defining the exposed region as the pick-and-place region further comprises: defining the exposed region as the pick-and-place area when the pick-and-place area is completely located within the exposed region.
3. The method according to claim 1, further comprises: outputting an object name of the pick-and-place region and a coordinate of each of a plurality of pixels of the first pick-and-place region to a robotic arm.
4. The method according to claim 1, further comprises: determining whether a depth of the three-dimensional object image is greater than a preset depth; and when the depth of the three-dimensional object image is greater than the preset depth, for the object region whose the depth is higher than the preset depth, performing step of recognizing the object region of the two-dimensional object image, step of obtaining the exposed ratio, step of determining whether the exposed ratio is greater than the preset ratio, and step of defining the exposure region as the first pick-and-place region.
5. The method according to claim 1, wherein step of generating the three-dimensional picture, step of capturing the two-dimensional picture of the three-dimensional picture, step of recognizing the object region of the two-dimensional object image, step of obtaining the exposed ratio, step of determining whether the exposed ratio is greater than the preset ratio, and step of defining the exposure region as the first pick-and-place region are automatically performed by a device.
6. The method according to claim 1, further comprises: after defining the exposed region as the pick-and-place region, changing the generated background condition, and then returning to step of generating the three-dimensional picture.
7. The method according to claim 1, further comprises: when the exposure ratio is not greater than the preset ratio, changing the generated background condition, and then returning to step of generating the three-dimensional picture.
8. A device for automatically generating a picture and labeling pick-and-place region in the picture, comprising: a generator configured to generate a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image; a device camera configured to capture a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image; and a labeling element configured to: recognize an object region of the two-dimensional object image; obtain an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region; determine whether the exposed ratio is greater than a preset ratio; and define the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio.
9. The device according to claim 8, wherein the labeling element is further configured to: determine whether a pick-and-place area of a pick-and-place port of a pick-and-place device is completely located within the exposed region; and define the exposed region as the pick-and-place area when the pick-and-place area is completely located within the exposed region.
10. The device according to claim 8, wherein the labeling element is further configured to: output an object name of the pick-and-place region and a coordinate of each of a plurality of pixels of the first pick-and-place region to a robotic arm.
11. The device according to claim 8, wherein the labeling element is further configured to: determine whether a depth of the three-dimensional object image is greater than a preset depth; and when the depth of the three-dimensional object image is greater than the preset depth, for the object region whose the depth is higher than the preset depth, performing step of recognizing the object region of the two-dimensional object image, step of obtaining the exposed ratio, step of determining whether the exposed ratio is greater than the preset ratio, and step of defining the exposure region as the first pick-and-place region.
12. The device according to claim 8, wherein the generator is further configured to: after defining the exposed region as the pick-and-place region, changing the generated background condition, and then generating another new three-dimensional picture.
13. The device according to claim 8, wherein the generator is further configured to: when the exposure ratio is not greater than the preset ratio, changing the generated background condition, and then generating another new three-dimensional picture.
14. A pick-and-place system, comprises: a device for automatically generating a picture and labeling pick-and-place region in the picture, comprising: a generator configured to generate a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image; a device camera configured to capture a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image; and a labeling element configured to: recognize an object region of the two-dimensional object image; obtain an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region; determine whether the exposed ratio is greater than a preset ratio; and define the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio; a system camera configured to capture a two-dimensional picture of a physical object, wherein the two-dimensional picture comprises a two-dimensional object image; a robotic arm; and a controller electrically connected to the device and configured to: analyze the two-dimensional object image, and obtain a second pick-and-place region of the two-dimensional object image according to information of the first pick-and-place region obtained by the device; and control the robotic arm to pick and place a pick-and-place portion of the physical object corresponding to the second pick-and-place region.
15. A pick-and-place method, comprises: generating a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image; capturing a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image; recognizing an object region of the two-dimensional object image; obtaining an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region; determining whether the exposed ratio is greater than a preset ratio; defining the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio; capturing a two-dimensional picture of a physical object, wherein the two-dimensional picture comprises a two-dimensional object image; analyzing the two-dimensional object image, and obtain a second pick-and-place region of the two-dimensional object image according to information of the first pick-and-place region obtained by the device; and controlling a robotic arm to pick and place a pick-and-place portion of the physical object corresponding to the second pick-and-place region.
16. The pick-and-place method according to claim 15, wherein before generating the three-dimensional picture, the pick-and-place system further comprises: disposing a pick-and-place system, wherein the pick-and-place system comprises a device for automatically generating a picture and labeling pick-and-place region in the picture, a system camera, a robotic arm and a controller, the device comprises a generator, a device camera and a labeling element; wherein the generator is configured to generate a three-dimensional picture under a generated background condition, the device camera is configured to capture the two-dimensional picture of the three-dimensional picture, the labeling element is configured to recognize an object region of the two-dimensional object image, the system camera is configured to capture the two-dimensional picture of the physical object, the controller is electrically connected to the device and configured to analyze the two-dimensional object image and obtain the second pick-and-place region of the two-dimensional object image according to information of the first pick-and-place region obtained by the device, and control the robotic arm to pick and place the pick-and-place portion of the physical object corresponding to the second pick-and-place region.
17. A non-transitory computer readable medium storing a program causing a device for automatically generating a picture and labeling pick-and-place region in the picture to execute a method for automatically generating a picture and labeling a pick-and-place region in the picture, and the method comprises: generating a three-dimensional picture under a generated background condition, wherein the three-dimensional picture comprises a three-dimensional object image; capturing a two-dimensional picture of the three-dimensional picture, wherein the two-dimensional picture comprises a two-dimensional object image of the three-dimensional object image; recognizing an object region of the two-dimensional object image; obtaining an exposed ratio of an exposed area of an exposed region of the object region to an object area of the object region; determining whether the exposed ratio is greater than a preset ratio; and defining the exposed region as the pick-and-place region when the exposed ratio is greater than the preset ratio.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0010]
[0011]
[0012]
[0013]
[0014]
[0015]
[0016]
[0017]
[0018]
[0019] In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the disclosed embodiments. It will be apparent, however, that one or more embodiments may be practiced without these specific details. In other instances, well-known structures and devices are schematically shown in order to simplify the drawing.
DETAILED DESCRIPTION
[0020] Referring to
[0021] As shown in
[0022] The generator 110 is configured to generate the three-dimensional picture P.sub.3D, wherein the three-dimensional picture P.sub.3D includes at least one three-dimensional object image M.sub.3D. The device camera 120 is configured to capture the two-dimensional picture P.sub.2D of the three-dimensional picture P.sub.3D, wherein the two-dimensional picture P.sub.2D includes the two-dimensional object image M.sub.2D of the three-dimensional object image M.sub.3D. The labeling element 130 is configured to: (1) recognize an object region M.sub.OR of the two-dimensional object image M.sub.2D; (2) obtain an exposed ratio R of an exposed area A.sub.ER of an exposed region M.sub.ER of the object region M.sub.OR to an object area A.sub.OR of the object region M.sub.OR; (3). determine whether the exposed ratio R is greater than a preset ratio; and (4). define the exposed region M.sub.ER as a first pick-and-place region when the exposed ratio R is greater than the preset ratio. The aforementioned object area A.sub.OR of the object region M.sub.OR is, for example, the area surrounded by an outer boundary of the image of the object region M.sub.OR. Compared with manual labeling, the present embodiment of the present disclosure uses the device 100 to label the first pick-and-place region of the two-dimensional object image.
[0023] As shown in
[0024] The labeling element 130 recognizes the range (or scope) of the object region M.sub.OR,1, the range (or scope) of the object region M.sub.OR,2, the range (or scope) of the covered region M.sub.SR of the object region M.sub.OR,2, the range (or scope) of the exposed region M.sub.ER1 and the exposed region M.sub.ER2 through the image analysis technology, and obtains (or calculate) the area of the object region M.sub.OR,1, the area of the object region M.sub.OR,2, the area of the covered region M.sub.SR of the object region M.sub.OR,2, the area of the exposed region M.sub.ER1 and the area of the exposed region M.sub.ER2. The aforementioned “recognizes the range” is, for example, “obtains of the coordinate of each of several pixels in the image of the region”.
[0025] After obtaining the area, the labeling element 130 could obtain the exposed ratio R of the exposed area A.sub.ER of an exposed region M.sub.ER to the object area A.sub.OR of the object region M.sub.OR, and define the exposed region M.sub.ER with the exposed ratio R greater than the preset ratio as the first pick-and-place region. For example, in
[0026] The embodiment of the present disclosure does not limit the value of the aforementioned preset ratio, which could be arbitrary real number between 20% and 80%, or less than 20%, such as 0%, or more than 80%, such as 100%. When the preset ratio is set to 0%, in the actual pick-and-place process, any physical objects with the exposed region could be picked and placed. When the default ratio is set to 100%, in the actual pick-and-place process, only the physical object which completely exposed could be picked and placed.
[0027] The preset ratio depends on the type of the object and/or the environment in which the object is located, and it is not limited in the embodiment of the disclosure.
[0028] In an embodiment, as shown in
[0029] In an embodiment, the labeling element 130 is further configured to: (1) determine whether a depth of the three-dimensional object image M.sub.3D is greater than a preset depth; (2). when the depth of the three-dimensional object image M.sub.3D is greater than the preset depth, for the object region M.sub.OR whose the depth is higher than the preset depth, perform the step of recognizing the object region M.sub.OR of the two-dimensional object image M.sub.2D, the step of obtaining the exposed ratio R, the step of determining whether the exposed ratio R is greater than the preset ratio, and the step of defining the exposure region M.sub.ER as the first pick-and-place region.
[0030] For example, as shown in
[0031] In addition,
[0032] In the case of the application of information D of the first pick-and-place region, as shown in
[0033] As shown in
[0034] In the present embodiment, the device camera 120 is, for example, a virtual camera. In detail, the device camera 120 is not a physical camera. The image generated by the generator 110 is the three-dimensional picture P.sub.3D, which includes at least one three-dimensional object image M.sub.3D. The device 100 could capture the two-dimensional object image M.sub.2D of the three-dimensional object image M.sub.3D through the device camera 120 to facilitate subsequent analysis of the first pick-and-place region of the two-dimensional object image M.sub.2D.
[0035] In addition, the device 100 could analyze the first pick-and-place region under a generated background condition. The generated background condition include the type of light source, the number of light source, the posture of the light source, the illumination angle of the light source, the type of object, the number of object, the surface texture of the object, the posture of the object, the background environment, the viewing angle of the device camera 120 and/or the distance between the device camera 120 and the object or various simulated (or similar) environmental parameters of the actual environment in which the pick-and-place system 10 is located. The labeling element could execute random algorithms, based on any combination of the aforementioned environmental parameters, to generates, in a simulated scene of the light source, a plurality of virtual objects with the change of light-shadow in real time according to the randomly generated parameters.
[0036] In terms of light source parameters, the light source parameters are, for example, one of a directional light, a point light, a spot light, and a sky light.
[0037] In addition, different light source postures could cause the virtual object (three-dimensional object image M.sub.3D) to produce different change of light-shadow due to different lighting positions. In terms of the object posture parameter, the object posture parameter could be, for example, a combination of location information, a rotation information and a scale information represented by values of X, Y and Z axis, and the aforementioned location information could be expressed as, for example, (x, y, z) or (x, y, z, r.sub.x, r.sub.y, r.sub.z), wherein x, y and z are the coordinate values of the X, Y and Z axes, and r.sub.x, r.sub.y, r.sub.z are the physical quantities that the rotations around the X, Y and/or Z axes (r represents rotation), such as an angle value.
[0038] When randomly generating the aforementioned object posture parameters, if the labeling element (simulator) being Unreal engine is taken as an example, it could use random algorithm including, for example, Random Rotator, Random Rotator from Stream, Random Float in Range, Random Float in Range from Stream, Random Point in Bounding Box to randomly generate object posture parameters of each virtual object. If the labeling element (simulator) being Unreal engine is taken as an example, the random algorithm provided by the labeling element including, for example, Random Integer, Random Integer From Stream, Random Integer in Range, Random Integer In Range From Stream; however, such exemplification is not meant to be for limiting. As long as function that could produce random output values, it could be applied to the present embodiment of the present disclosure.
[0039] In terms of environmental object parameters, the environmental object parameters are, for example, a background object located in the field of view of the device camera, such as a basket or a cart, wherein the basket itself also has defined object posture parameters, object type parameters and/or material parameters, so that the color, texture and/or size of the basket could be defined by/in the labeling element, and the type and/or size of the basket could also be a portion of the labeling information given to the basket.
[0040] Since the generated background conditions are as close to the actual environment in which the pick-and-place system 10 is located as possible, the information D of the first pick-and-place region obtained by analysis could increase the success rate (the higher the recognition accuracy rate of the first pick-and-place region is, the higher the success rate of actual pick-and-place is) of the pick-and-place system 10 actually picking and placing the physical objects.
[0041] The three-dimensional picture P.sub.3D in
[0042] Referring to
[0043] In step S110, as shown in
[0044] In step S120, as shown in
[0045] In step S130, the labeling element 130 recognizes the object region M.sub.OR of the two-dimensional object image M.sub.2D. Taking the two two-dimensional object images M.sub.2D,1 and M.sub.2D,.sub.2 in
[0046] In step S140, the labeling element 130 obtains the exposed ratio R of the exposed area A.sub.ER of the exposed region M.sub.ER of the object region M.sub.OR to the object area A.sub.OR of the object region M.sub.OR. Taking the two-dimensional object image M.sub.2D,2 in
[0047] In step S150, the labeling element 130 determines whether the exposed ratio R is greater than the preset ratio. If yes, the process proceeds to step S160; if not, the generator 110 changes at least one of the aforementioned generated background conditions, and then the process returns to step S110. In an embodiment, the generator 110 could randomly change at least one of the aforementioned generated background conditions, or change at least one of the aforementioned generated background conditions according to the aforementioned set conditions, and then return to step S110. In an embodiment, after the analysis for all the two-dimensional object images M.sub.2D in the two-dimensional picture P.sub.2D is completed, or after the analysis for all the two-dimensional object images M.sub.2D higher than the preset depth H1 is completed, the process returns to step S110.
[0048] In step S160, the labeling element 130 defines the exposed region M.sub.ER as the first pick-and-place region. Taking the two-dimensional object image M.sub.2D,2 of
[0049] Then, the generator 110 could randomly change at least one of the aforementioned generated background conditions, or change at least one of the aforementioned generated background conditions according to the aforementioned set conditions, and then the process returns to step S110. In another embodiment, the labeling element 130 could output the object name of the first pick-and-place region and the coordinate of each of several pixels of the first pick-and-place region to the robotic arm 12 (shown in
[0050] As described above, the device 100 continuously analyzes several three-dimensional pictures P.sub.3D under different generated background conditions. The more the number of analyzed three-dimensional pictures P.sub.3D is (the more the number of samples), the higher the pick-and-place success rate of the pick-and-place system 10 is when actually picking and placing objects. The embodiment of the present disclosure does not limit the number of three-dimensional picture P.sub.3D analyzed by the device 100, and it could be any positive integer equal to or greater than one.
[0051] In an embodiment, steps S110 to S160 are automatically and/or actively completed by the device 100, and manual processing is not required in the process.
[0052] Referring to
[0053] M.sub.O,2D captured by the pick-and-place system 10 of
[0054] Firstly, a pick-and-place system 10 is provided. As shown in
[0055] As shown in
[0056] As shown in
[0057] control the pick-and-place device 11 to pick and place the physical object O1.
[0058] In step S210, the controller 14 receives the information D of the pick-and-place region from the device 100.
[0059] In step S220, the system camera 13 captures the two-dimensional picture P.sub.O,2D of the physical object O1, wherein the two-dimensional picture P.sub.O, 2D includes at least one two-dimensional object image M.sub.O,2D, such as the two-dimensional object images M.sub.O,2D,1 and M.sub.O,2D,2 as shown in
[0060] In step S230, the controller 14 analyzes the two-dimensional object image M.sub.O,2D, and obtains the second pick-and-place region of each two-dimensional object image M.sub.O,2D according to the information D of the first pick-and-place region provided by the device 100. Taking the two-dimensional object image M.sub.O,2D,2 of
[0061] Since the device 100 has provided the controller 14 with the information D of at least one first pick-and-place region, the controller 14 could not need or could omit the complicated image analysis for the two-dimensional object image M.sub.O,2D, and thus it could quickly obtain the information of the second pick-and-place region C1 of the two-dimensional object image M.sub.O,2D, such as size and/or location, etc.
[0062] In step S240, the controller 14 controls the robotic arm 12 to move above or around the pick-and-place portion O11 (shown in
[0063] In step S250, the controller 14 controls the pick-and-place device 11 to suck the pick-and-place portion O11 of the pick-and-place device 11. In detail, the pick-and-place device 11 picks and places the physical object O1 through the pick-and-place portion O11.
[0064] In an embodiment, before step S240 in
[0065] In addition, in an embodiment, the processes shown in
[0066] In summary, in the present embodiment of the present disclosure, the device which could automatically generate a picture and label the pick-and-place region in the image could automatically generate at least one image under different background conditions, and label the first pick-and-place region in the image. The information in the first pick-and-place region could be output as a digital file or provided to the pick-and-place system for being used by the pick-and-place system. For example, the pick-and-place system captures a two-dimensional object image of a physical object, and obtains the second pick-and-place region of the two-dimensional object image according to the information of the first pick-and-place region. As a result, the physical object could be picked and placed through the pick-and-place portion of the physical object corresponding to the second pick-and-place region.
[0067] It will be apparent to those skilled in the art that various modifications and variations could be made to the disclosed embodiments. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims and their equivalents.