Recognition System
The recognition system accelerates position and orientation recognition by utilizing three-dimensional edge information extraction, enhancing processing speed and accuracy through efficient edge detection methods, suitable for robotic applications.
Patent Information
- Application Number
- JP2021030062
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-02-26
- Publication Date
- 2024-09-11
- Estimated Expiration
- 2041-02-26
AI Technical Summary
Existing recognition systems face challenges in achieving high-speed position and orientation recognition, particularly in processing two-dimensional and distance images, with a need for further improvements in accuracy and processing power.
A recognition system that includes a measurement unit to capture a surface image and calculate three-dimensional coordinates, a two-dimensional extraction unit to identify edge information, and a three-dimensional extraction unit to recognize position and orientation based on three-dimensional edge information, utilizing methods such as color phase shift for efficient edge detection.
Enables high-speed extraction of three-dimensional edge information, allowing for rapid recognition of position and orientation by reducing unnecessary calculations and adjusting accuracy and speed trade-offs, facilitating efficient use in robotic tasks.
Smart Images

Figure 0007549221000003 
Figure 0007549221000002 
Figure 0007549221000007
Abstract
Description
[Technical field]
[0001] The disclosure herein relates to recognition systems. [Background technology]
[0002] Patent Document 1 discloses a position and orientation measurement device capable of measuring position and orientation at high speed by using a two-dimensional image and a range image. The contents of the prior art document are incorporated by reference as explanations of technical elements in this specification. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2015-132523 A Summary of the Invention [Problem to be solved by the invention]
[0004] In the configuration of the prior art document, while capturing an image for distance measurement, processing of a two-dimensional image is performed in parallel, thereby speeding up overall processing. As processing of a two-dimensional image, processing of detecting edges from a two-dimensional image and obtaining approximate values of position and orientation is disclosed. In this manner, in position and orientation recognition, it is required to complete the recognition at high speed. However, there is not just one method for speeding up position and orientation recognition, and various methods can be adopted depending on the required accuracy, arithmetic processing power, etc. In the above-mentioned viewpoints, or in other viewpoints not mentioned, further improvement of the recognition system is required.
[0005] One disclosed object is to provide a recognition system capable of quickly recognizing a position and orientation. [Means for solving the problem]
[0006] The recognition system disclosed herein is a recognition system that performs position and orientation recognition for recognizing a position and orientation of a measurement object (41), a measurement unit (20, 220) that captures a surface image of a measurement object and calculates three-dimensional coordinates of positions corresponding to pixels of the surface image as a three-dimensional point cloud of the measurement object; a two-dimensional extraction unit (73) that extracts two-dimensional edge information that is information indicating the position of an edge portion in the measurement object based on the surface image; a three-dimensional extraction unit (74) that extracts three-dimensional edge information that is information indicating the positions of edge portions in the three-dimensional point cloud; A recognition execution unit (79) for recognizing a position and orientation of a measurement object based on three-dimensional edge information, The three-dimensional extraction unit extracts three-dimensional edge information from the three-dimensional point cloud based on the two-dimensional edge information. death, The measurement unit acquires distance information indicating a distance between the measurement target and the measurement unit for each pixel of the surface image; The two-dimensional extraction unit extracts two-dimensional edge information by determining whether the edge is an edge portion based on the distance information. do. The disclosed recognition system is a recognition system that performs position and orientation recognition for recognizing a position and orientation of a measurement object (41), a measurement unit (20, 220) that captures a surface image of a measurement object and calculates three-dimensional coordinates of positions corresponding to pixels of the surface image as a three-dimensional point cloud of the measurement object; a two-dimensional extraction unit (73) that extracts two-dimensional edge information that is information indicating the position of an edge portion in the measurement object based on the surface image; a three-dimensional extraction unit (74) that extracts three-dimensional edge information that is information indicating the positions of edge portions in the three-dimensional point cloud; A recognition execution unit (79) for recognizing a position and orientation of a measurement object based on three-dimensional edge information, The three-dimensional extraction unit extracts three-dimensional edge information from the three-dimensional point cloud based on the two-dimensional edge information; The measurement unit acquires, for each pixel of the surface image, luminance information indicating luminance and distance information indicating a distance between the measurement object and the measurement unit; The two-dimensional extraction unit determines whether or not an area is an edge portion from both the luminance information and the distance information, and extracts two-dimensional edge information.
[0007] The disclosed recognition system includes a three-dimensional extraction unit that extracts three-dimensional edge information from a three-dimensional point cloud based on two-dimensional edge information. Therefore, by extracting three-dimensional edge information using two-dimensional edge information, it is possible to extract three-dimensional edge information at higher speeds than when extracting three-dimensional edge information without using two-dimensional edge information. Therefore, extraction of three-dimensional edge information in control of position and orientation recognition can be completed at higher speeds. Therefore, it is possible to provide a recognition system that can recognize position and orientation at higher speeds.
[0008] The two-dimensional extraction unit may be configured to determine whether or not an edge portion is present from the luminance information and extract the two-dimensional edge information. In this case, it is not necessary to calculate the distance for each pixel of the surface image in the two-dimensional measurement and determine whether or not an edge portion is present from the difference in distance. Therefore, it is easy to extract the two-dimensional edge information at high speed.
[0009] The two-dimensional extraction unit may be configured to determine whether an area is an edge portion from distance information and extract two-dimensional edge information. In this case, it is possible to determine whether an area is an edge portion from information other than luminance information. In addition, by adjusting the edge distance difference used to determine whether an area is an edge portion, it is easy to adjust the amount of data for the two-dimensional edge information.
[0010] The two-dimensional extraction unit may be configured to extract two-dimensional edge information by determining whether or not an edge portion is present from both the luminance information and the distance information. In this case, it is easier to adjust the accuracy of determining whether or not an edge portion is present, compared to when determining whether or not an edge portion is present based on only one of the luminance information and the distance information. This makes it easier to adjust the balance between the accuracy of position and orientation recognition and the time required for position and orientation recognition.
[0011] The recognition system disclosed herein is a recognition system that performs position and orientation recognition for recognizing a position and orientation of a measurement object (41), A measurement unit (20, 220) capable of capturing a surface image of a measurement object and calculating a three-dimensional point cloud at positions corresponding to pixels of the surface image; A control unit (70) for controlling the recognition system, The control unit Perform shape measurement using the measurement unit death, Extracting two-dimensional edge information, which is information indicating the position of the edge part of the measurement target, based on the surface image death, Calculate 3D edge information, which is a 3D point cloud of the edge part death, Recognizes the position and orientation of the measurement target based on 3D edge information death, control the unit performs a two-dimensional measurement, which is a shape measurement for extracting two-dimensional edge information, and then performs a three-dimensional measurement, which is a shape measurement for calculating three-dimensional edge information; In 3D measurement Among the measurement objects, the edge part was determined based on the two-dimensional edge information. Pixels corresponding to pixels We calculated the 3D point cloud and determined that it was not an edge part. Pixels corresponding to pixels The 3D point cloud is not calculated.
[0012] The disclosed recognition system includes a three-dimensional calculation unit that calculates a three-dimensional point cloud of a portion of the measurement object that is determined to be an edge portion based on two-dimensional edge information, and does not calculate a three-dimensional point cloud of a portion that is determined not to be an edge portion. This makes it easier to calculate three-dimensional edge information at high speed compared to a case where a three-dimensional point cloud of the entire measurement object, including planar portions, is calculated and then three-dimensional edge information is extracted. This makes it possible to provide a recognition system that can quickly recognize position and orientation.
[0013] The measurement unit may also be configured to calculate a three-dimensional point cloud based on a color pattern light. In this case, it is not necessary to change the phase of the pattern light and repeat the projection and reception multiple times. Therefore, shape measurement in the control of position and orientation recognition can be completed quickly.
[0014] The measurement unit may be provided on a robot. In this case, the position of the measurement unit during shape measurement can be adjusted by controlling the movement of the robot. Therefore, there is no need to provide a dedicated device for adjusting the position of the measurement unit.
[0015] The various aspects disclosed in this specification adopt different technical means to achieve their respective objectives. The claims and the parenthetical symbols described in this section are merely illustrative of the corresponding relationship with the embodiments described below, and are not intended to limit the technical scope. The objectives, features, and effects disclosed in this specification will become clearer with reference to the following detailed description and the accompanying drawings. [Brief description of the drawings]
[0016] [Figure 1] FIG. 1 is a diagram showing a schematic configuration of a recognition system. [Diagram 2] FIG. 2 is a block diagram relating to control of the recognition system. [Diagram 3] 11 is a flowchart relating to control of the recognition system. [Figure 4] FIG. 11 is a configuration diagram showing a schematic configuration of a recognition system according to a second embodiment. [Diagram 5] 10 is a flowchart relating to control of a recognition system in a second embodiment. [Figure 6] FIG. 11 is a block diagram relating to control of a recognition system in a third embodiment. [Figure 7] 13 is a flowchart relating to control of a recognition system in a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] A number of embodiments will be described with reference to the drawings. In a number of embodiments, functionally and / or structurally corresponding and / or associated parts may be given the same reference numerals or reference numerals with different digits in the hundredths or more. For corresponding and / or associated parts, reference may be made to the description of other embodiments.
[0018] First embodiment 1, recognition system 1 is a system for recognizing the position and orientation of a measurement object 41, which has a known shape. The position and orientation of the measurement object 41 means the position and orientation of the measurement object 41. However, it is not always necessary to recognize both the position and orientation, and a configuration in which either the position or the orientation is recognized may be used.
[0019] The recognition system 1 performs shape measurement to calculate the three-dimensional coordinates of a measurement object 41 captured using the measurement unit 20 for a plurality of measurement points. Furthermore, the recognition system 1 holds model data which is data indicating the model shape of the measurement object 41. With this, the recognition system 1 matches the three-dimensional coordinates obtained by the shape measurement with the model data to recognize the position and orientation of the measurement object 41. The recognition system 1 may perform matching using a plurality of different types of model data. With this, it is possible to perform a discrimination task of discriminating which part the measurement object 41 is by specifying which model data the measurement object 41 matches. Details of the measurement unit 20 will be described later.
[0020] The recognition system 1 can be used for various tasks using the robot 10. Examples of tasks using the robot 10 include an assembly task for assembling a part in a specific location, a picking task for picking a part, an appearance inspection for checking whether the part is scratched or chipped, a gripping task for gripping a part, etc. However, the recognition system 1 may also be used for tasks that do not use the robot 10.
[0021] The robot 10 includes a base 11, a robot arm 15, and a robot hand 16. The robot 10 is a vertical articulated robot. However, a horizontal articulated robot or the like may also be used as the robot 10. The base 11 is fixed to the installation surface on which the robot 10 is installed using bolts or the like.
[0022] The robot arm 15 is configured by connecting a plurality of shaft parts 13 via joint parts 12. The joint parts 12 include a motor, and the angle of the joint part 12 can be freely controlled by controlling the motor. The plurality of shaft parts 13 are connected to each other via the joint parts 12 so as to be rotatable relative to each other. The robot arm 15 is connected to a base 11.
[0023] The robot hand 16 is attached to the tip of the robot arm 15. The robot hand 16 includes a motor. The robot hand 16 is configured to be capable of relative rotation around the axis of the shaft part 13 provided on the robot arm 15 by controlling the motor.
[0024] The robot hand 16 has a claw portion. This claw portion rotates around the rotation axis of the robot hand 16 as the center of rotation. The robot hand 16 is configured to be able to grip a measurement object 41 placed on the work table 31 by performing an opening and closing operation to expand and contract the distance between the claw portions. In addition, the robot 10 can move the robot arm 15 and the robot hand 16 in a state in which the robot hand 16 is gripping the measurement object 41. This makes it possible to change the position and orientation of the measurement object 41. However, in order to grip the measurement object 41, it is necessary to accurately recognize the position and orientation of the measurement object 41.
[0025] The measurement object 41 is placed on the work table 31. The work table 31 is a rectangular plate member. However, the type and shape of the work table 31 are not limited to the above example. A box-shaped parts box may be adopted as the work table 31. Also, a movable device such as a belt conveyor may be adopted as the work table 31. The number of measurement objects 41 placed on the work table 31 is not limited to one. For example, a plurality of measurement objects 41 may be placed on the work table 31 in a state where they overlap each other. The measurement object 41 is located at a standard position set at approximately the center of the work table 31. The standard position is a standard position where the measurement object 41 is placed. The standard position is set in advance in the recognition system 1.
[0026] Although an object of any shape can be used as the measurement object 41, as an example, an object having a shape of two disks with different diameters arranged side by side on the same axis is used. The measurement object 41 is placed on the work table 31 so that the disk part with the smaller diameter is located on the upper side.
[0027] The measurement unit 20 is a device for measuring the shape of the measurement object 41. The measurement unit 20 has a function of capturing a surface image of the measurement object 41 and a function of calculating a three-dimensional point cloud of the measurement object 41. The three-dimensional point cloud is data obtained by calculating the three-dimensional coordinates at a plurality of measurement points of the measurement object 41. In other words, the measurement points are each point expressing the coordinates of the measurement object 41. The three-dimensional coordinates have an X coordinate, a Y coordinate, and a Z coordinate as coordinate components.
[0028] Shape measurement by the measurement unit 20 includes two-dimensional measurement for obtaining a surface image and three-dimensional measurement for obtaining three-dimensional coordinates. The two-dimensional measurement and the three-dimensional measurement can be performed simultaneously in parallel with each other. As the measurement unit 20, for example, a distance image sensor that calculates distance using the principle of triangulation can be adopted.
[0029] In two-dimensional measurement, the measurement unit 20 captures a surface image of the upper surface of the measurement object 41. The amount of light reflected on the surface of the measurement object 41 varies depending on the shape of the measurement object 41. Therefore, the brightness in the surface image varies for each pixel depending on the shape of the measurement object 41. More specifically, at the edge portion of the measurement object 41, the brightness in the surface image varies greatly compared to the surrounding brightness. Also, at the flat portion of the measurement object 41, the brightness in the surface image varies very little compared to the surrounding brightness. An example of an edge portion is the outer edge portion of the measurement object 41. An example of an edge portion is a step portion such as a rib or an opening.
[0030] The surface image includes a set of two-dimensional coordinates and brightness information for each pixel constituting the image. Each pixel constituting the surface image corresponds to each measurement point of the measurement object 41. The brightness information is information on the brightness of the reflected light received by the measurement unit 20 out of the light reflected by the surface of the measurement object 41.
[0031] The information that the surface image has for each pixel in a set with two-dimensional coordinates is not limited to luminance information. For example, the surface image may have for each pixel a set of two-dimensional coordinates and distance information. The distance information is information on the distance from the reference point of the measurement unit 20 to the measurement point. For example, the surface image may have for each pixel a set of two-dimensional coordinates and edge information. The edge information is information indicating whether the measurement point is an edge portion. The surface image may also have a configuration in which multiple pieces of information, luminance information, distance information, and edge information, are provided in a set with two-dimensional coordinates.
[0032] The measurement unit 20 calculates a three-dimensional point cloud on the measurement object 41. The three-dimensional point cloud on the measurement object 41 can be acquired by a method using the principle of triangulation such as a phase shift method. When the phase shift method is adopted, the measurement unit 20 includes a light projecting device 21 that projects a pattern light on the measurement object 41, and a light receiving device 22 that receives the pattern light reflected by the measurement object 41. The details of the light projecting device 21 and the light receiving device 22 will be described later. In the phase shift method, a pattern light such as a stripe pattern is projected on the measurement object 41, and the pattern light reflected by the measurement object 41 is received. At this time, the phase of the projected pattern light is changed to repeat the projection and reception. As a result, the three-dimensional shape of the measurement object 41 is measured from the difference between the projected pattern light and the received pattern light.
[0033] As one type of phase shift method, a color phase shift method can be adopted in which a color pattern light is projected from the light projector 21. The color pattern light is a pattern light obtained by combining light of different wavelengths and different phases, such as red, green, and blue. In the monochromatic pattern light, the luminance of one of the colors red, green, and blue varies sinusoidally in one direction of the image, and the luminance is constant in a direction perpendicular to the one direction.
[0034] In addition, in the color pattern light, the phases of the three monochromatic pattern lights are shifted by a predetermined angle. As an example, the phase of the red monochromatic pattern light is the most advanced, and the phase of the green monochromatic pattern light is delayed by 2π / 3. The phase of the blue monochromatic pattern light is further delayed by 2π / 3 from the green monochromatic pattern light. In the color phase shift method, instead of repeating the projection and reception of the pattern light, the phase of the luminance in the direction of the luminance change of the color pattern light is changed to project and receive the light. The following describes an example of calculating three-dimensional coordinates using the color phase shift method.
[0035] The measurement unit 20 calculates the three-dimensional coordinates of the measurement points on the entire upper surface of the measurement object 41 to generate a three-dimensional point cloud. Therefore, the three-dimensional coordinates are calculated for a plurality of measurement points including the edge portion and the flat portion of the measurement object 41.
[0036] The angle of view at the time of imaging in the two-dimensional measurement is made to coincide with the angle of view at the time of imaging in the three-dimensional measurement. Furthermore, the position and orientation of the measurement target 41 at the time of imaging in the two-dimensional measurement is made to coincide with that at the time of imaging in the three-dimensional measurement. With this configuration, the surface image captured by the measurement unit 20 and the calculated three-dimensional coordinates are made to correspond to each other in a coordinate system of pixel units. In other words, the pixels of the surface image obtained by the two-dimensional measurement are made to correspond to the three-dimensional coordinates obtained by the three-dimensional measurement. For example, it can be said that the two-dimensional coordinates (x1, y1) of the surface image and the three-dimensional coordinates (x1, y1, z1) are made to correspond to each other in a coordinate system of pixel units. This is because the X-coordinate component of the surface image and the X-coordinate component of the three-dimensional coordinates match at x1, and the Y-coordinate component of the surface image and the Y-coordinate component of the three-dimensional coordinates match at y1.
[0037] The measuring unit 20 is provided on the robot hand 16. Therefore, the position of the measuring unit 20 can be adjusted by controlling the positions of the robot arm 15 and the robot hand 16. In other words, the light projection direction, light projection position, and light reception position of the measuring unit 20 can be adjusted by controlling the movement of the robot 10.
[0038] 2, a control unit 70 that controls the recognition system 1 is connected to the robot 10 and the measurement unit 20. The control unit 70 acquires the rotational position of each rotation axis of the robot 10. The control unit 70 also controls the movement of the robot 10.
[0039] The measurement unit 20 includes a light projecting device 21 and a light receiving device 22. A projector capable of projecting a color pattern light used in the color phase shift method can be used as the light projecting device 21. It is preferable that the light projected from the light projecting device 21 is distinguishable from fluorescent light and sunlight in terms of intensity and wavelength.
[0040] The light receiving device 22 may be a camera that captures an image of the measurement target 41 with color pattern light projected thereon. The light receiving device 22 may be a camera having a large number of photodetection elements such as photodiodes arranged vertically and horizontally on the light receiving surface. Each photodetection element of the light receiving device 22 corresponds to one pixel. The light receiving device 22 is a device that can receive light of at least the same wavelength as the wavelength of the light projected by the light projecting device 21.
[0041] In the measurement unit 20, the light projector 21 and the light receiver 22 are housed in one housing. Therefore, the distance between the light projector 21 and the light receiver 22 is always constant. However, the light projector 21 and the light receiver 22 may be housed in separate housings. In this case, it is possible to adopt a configuration in which only one of the light projector 21 and the light receiver 22 is provided on the robot 10. The control unit 70 acquires the measurement results of the shape measurement performed by the measurement unit 20. The control unit 70 controls the measurement unit 20 to perform the shape measurement.
[0042] The control unit 70 includes a measurement execution unit 71, a data acquisition unit 72, a two-dimensional extraction unit 73, a three-dimensional extraction unit 74, and a recognition execution unit 79. The measurement execution unit 71 executes shape measurement including two-dimensional measurement and three-dimensional measurement using the measurement unit 20. The data acquisition unit 72 acquires the measurement results of the shape measurement using the measurement unit 20. The measurement results include a surface image and a three-dimensional point cloud.
[0043] The two-dimensional extraction unit 73 extracts two-dimensional edge information from the surface image obtained by the two-dimensional measurement. The two-dimensional edge information is information indicating a portion of the captured image where the edge portion of the measurement object 41 is captured. The two-dimensional edge information does not include a portion where the planar portion of the measurement object 41 is captured. The three-dimensional extraction unit 74 extracts three-dimensional edge information from the three-dimensional point cloud obtained by the three-dimensional measurement. The three-dimensional edge information is information indicating a portion of the three-dimensional point cloud that constitutes the edge portion of the measurement object 41. The three-dimensional edge information does not include the three-dimensional coordinates that constitute the planar portion of the measurement object 41.
[0044] The recognition execution unit 79 performs position and orientation recognition by matching the three-dimensional coordinates of the three-dimensional edge information calculated by the three-dimensional extraction unit 74 with the model data. The more three-dimensional coordinates used for matching, the higher the matching accuracy. On the other hand, the fewer the three-dimensional coordinates used for matching, the shorter the time required for matching. For this reason, it is preferable to adjust the number of three-dimensional coordinates used for matching, taking into consideration the matching accuracy and the time required for matching.
[0045] The control unit 70 includes a robot operation unit 81. The robot operation unit 81 performs control such as opening and closing the claws of the robot hand 16, and performs operations such as gripping the measurement target object 41 whose position and orientation have been recognized.
[0046] The flow of position and orientation recognition for recognizing the position and orientation of the measurement object 41 using the recognition system 1 will be described below. In Fig. 3, when the power of the robot 10 is turned on by a user, for example, and control related to position and orientation recognition is started, the measurement execution unit 71 executes shape measurement of the measurement object 41 in step S101. More specifically, a surface image is captured by two-dimensional measurement, and a three-dimensional point cloud is calculated by three-dimensional measurement. In the following, an example will be described in which the surface image includes a set of two-dimensional coordinates and brightness information. After executing the shape measurement, the process proceeds to step S111.
[0047] In step S111, the data acquisition unit 72 acquires the measurement results obtained by the shape measurement. More specifically, the data of the surface image obtained by the two-dimensional measurement and the data of the three-dimensional point cloud obtained by the three-dimensional measurement are acquired. After acquiring the measurement results, the process proceeds to step S115.
[0048] In step S115, the two-dimensional extraction unit 73 extracts two-dimensional edge information from the surface image. More specifically, it is determined whether or not a pixel is an edge portion from the brightness of each pixel included in the surface image, and the pixels of the edge portion of the measurement object 41 are extracted. A portion where the brightness difference between adjacent pixels is equal to or greater than a predetermined edge brightness difference can be determined to be an edge portion, and a portion where the brightness difference is less than the edge brightness difference can be determined to be a plane portion. After extracting the two-dimensional edge information, the process proceeds to step S135.
[0049] In step S135, the three-dimensional extraction unit 74 extracts three-dimensional edge information, which is the three-dimensional coordinates of the edge portion, from the three-dimensional point cloud. Whether or not it is the three-dimensional coordinates of the edge portion is determined based on the two-dimensional edge information. More specifically, the three-dimensional coordinates of the positions corresponding to the pixels included in the two-dimensional edge information are left, and the other three-dimensional coordinates are removed from the three-dimensional point cloud to extract it as the three-dimensional edge information. After extracting the three-dimensional edge information, the process proceeds to step S141.
[0050] In step S141, the recognition execution unit 79 executes position and orientation recognition. More specifically, the three-dimensional edge information and the model data are matched. In this matching, the three-dimensional coordinates of the edge portion of the measurement object 41 are matched with the three-dimensional coordinates of the edge portion of the model data. For example, after matching the coordinates of one specific point, the process of matching the coordinates of the points adjacent to that point is repeated to match the coordinates of all points. However, since the three-dimensional edge information contains some measurement errors, it is not necessary to completely match the coordinates of each point. For example, the position and orientation in which the sum of the distances between corresponding points in the model data and the three-dimensional edge information is the smallest may be the matching result.
[0051] In the position and orientation recognition, the matching accuracy may be changed stepwise. For example, the position and orientation recognition can be performed in two steps by dividing it into first recognition and second recognition. The first recognition is a matching for recognizing a rough position and orientation of the measurement target object 41. The second recognition is a process performed after the completion of the first recognition, and is a matching for making fine adjustments from a rough position. This makes it easier to recognize the position and orientation smoothly and accurately compared to a configuration in which the matching accuracy is not changed stepwise. Since the first recognition uses three-dimensional edge information, it is easier to recognize the rough position and orientation with high accuracy compared to a case in which the rough position and orientation is recognized using two-dimensional edge information. In addition, since the second recognition uses three-dimensional edge information, it is easier to recognize the position and orientation quickly compared to a case in which fine adjustments are made using a three-dimensional point group including a planar portion. After the position and orientation recognition is performed, a series of controls related to the position and orientation recognition is terminated.
[0052] After the series of position and orientation recognition processes are completed, the robot operation unit 81 operates the robot 10 to perform the necessary tasks. More specifically, the robot operation unit 81 performs tasks such as gripping the measurement object 41 whose position and orientation have been recognized. After the task using the robot 10 is completed, if there is another measurement object 41 whose position and orientation should be recognized, control related to the position and orientation recognition is repeated.
[0053] The effects of the above-mentioned embodiment will be described below. According to the above-mentioned embodiment, the three-dimensional extraction unit 74 extracts three-dimensional edge information from the three-dimensional point cloud based on the two-dimensional edge information. As a method for determining whether or not an edge portion is present from three-dimensional coordinates without using two-dimensional edge information, a method of calculating the distance between adjacent measurement points for all measurement points in the three-dimensional point cloud can be assumed. However, the method of calculating the distance between adjacent measurement points for all measurement points in the three-dimensional point cloud requires a large amount of distance data to be calculated, and the processing load is likely to be large. For this reason, by extracting three-dimensional edge information using two-dimensional edge information, it is possible to extract three-dimensional edge information at high speed compared to the case where three-dimensional edge information is extracted without using two-dimensional edge information. Therefore, it is possible to complete the extraction of three-dimensional edge information in the control of position and orientation recognition at high speed. Therefore, it is possible to provide a recognition system 1 capable of recognizing position and orientation at high speed.
[0054] The two-dimensional extraction unit 73 extracts two-dimensional edge information by determining whether or not it is an edge part from the luminance information for each two-dimensional coordinate. Therefore, it is not necessary to calculate the distance for each pixel of the surface image in two-dimensional measurement and determine whether or not it is an edge part from the difference in distance. Therefore, two-dimensional edge information can be extracted at high speed. In particular, even if the unevenness of the edge part relative to the flat part is small, it is easy to accurately determine whether or not it is an edge part.
[0055] The measurement unit 20 calculates a three-dimensional point cloud based on the color pattern light received by the light receiving device 22. Therefore, it is not necessary to repeat the projection and reception of the pattern light multiple times by changing the phase of the pattern light. Therefore, shape measurement in the control of position and orientation recognition can be completed quickly.
[0056] The measuring unit 20 is provided on the robot 10. Therefore, the position of the measuring unit 20 during shape measurement can be adjusted by controlling the movement of the robot 10. Therefore, there is no need to provide a dedicated device for the purpose of adjusting the position of the measuring unit 20. Also, the position of the measuring unit 20 can be adjusted according to the size and position of the measurement object 41. Therefore, by placing the measuring unit 20 in a position where it is easy to measure the measurement object 41, it is easy to improve the accuracy of the shape measurement.
[0057] Furthermore, when the measuring unit 20 is provided on the robot 10, the robot 10 repeats movements for shape measurement and movements for tasks such as grasping. For this reason, quickly completing position and orientation recognition including shape measurement is very important in order to quickly start tasks such as grasping using the robot 10.
[0058] Second embodiment This embodiment is a modification based on the preceding embodiment, in which a two-dimensional extraction unit 73 determines whether an image is an edge portion from both the brightness information and the distance information for each two-dimensional coordinate, and extracts two-dimensional edge information.
[0059] 4, the measuring unit 220 is fixed to the upper side of the work table 31 and the measurement object 41 independently of the robot 10. Therefore, shape measurement can be performed using the measuring unit 220 regardless of the movement of the robot 10.
[0060] The flow of position and orientation recognition for recognizing the position and orientation of the measurement object 41 using the recognition system 1 will be described below. In Fig. 5, when the power of the robot 10 is turned on by a user, for example, and control related to position and orientation recognition is started, the measurement execution unit 71 executes shape measurement of the measurement object 41 in step S101. Then, the process proceeds to step S111, where the data acquisition unit 72 acquires the measurement result obtained by the shape measurement. Then, the process proceeds to step S212.
[0061] In step S212, the control unit 70 calculates distance information for each pixel of the surface image based on the three-dimensional coordinates. More specifically, the control unit 70 calculates the distance between the three-dimensional coordinates corresponding to the pixel of the surface image and the reference point of the measurement unit 220 for each pixel. As a result, the surface image includes a set of two-dimensional coordinates, brightness information, and distance information for each pixel. After calculating the distance information, the process proceeds to step S215.
[0062] In step S215, the two-dimensional extraction unit 73 extracts two-dimensional edge information from the surface image. More specifically, whether or not it is an edge portion is determined from both the brightness information and distance information included in the surface image, and pixels of the edge portion of the measurement object 41 are extracted. A portion where the brightness difference between adjacent pixels is equal to or greater than a predetermined edge brightness difference is highly likely to be an edge portion, and if it is less than the edge brightness difference, it can be determined that it is unlikely to be an edge portion. Also, a portion where the distance difference between adjacent pixels is equal to or greater than a predetermined edge distance difference is highly likely to be an edge portion, and if it is less than the edge distance difference, it can be determined that it is unlikely to be an edge portion.
[0063] A portion that is determined to be highly likely to be an edge portion based on both the luminance information and the distance information is determined to be an edge portion. On the other hand, a portion that is determined to be unlikely to be an edge portion based on both the luminance information and the distance information is determined to be a flat portion. Also, when the determination result based on the luminance information differs from the determination result based on the distance information, the portion is determined to be an unknown portion.
[0064] In extracting the two-dimensional edge information, the parts determined to be planar parts or unclear parts are removed, and only the parts determined to be edge parts are left, to extract the two-dimensional edge information. However, if the number of edge parts extracted as the two-dimensional edge information is extremely small, the recognition accuracy may be reduced. For this reason, the two-dimensional edge information may be extracted by removing the parts determined to be planar parts, and leaving the parts determined to be edge parts or unclear parts. After extracting the two-dimensional edge information, proceed to step S135.
[0065] In step S135, the three-dimensional extraction unit 74 extracts three-dimensional edge information, which is the three-dimensional coordinates of the edge portion, from the three-dimensional point group. Then, the process proceeds to step S141, where the recognition execution unit 79 executes position and orientation recognition. After executing the position and orientation recognition, the control related to the position and orientation recognition is terminated, and a task using the robot 10, such as a grasping task, is performed as necessary.
[0066] The effects of the above-described embodiment will be described below. According to the above-described embodiment, the two-dimensional extraction unit 73 extracts two-dimensional edge information by determining whether or not an edge portion is present from both the luminance information and the distance information for each two-dimensional coordinate. Therefore, it is easier to adjust the accuracy of determining whether or not an edge portion is present, compared to when determining whether or not an edge portion is present based on either the luminance information or the distance information. For example, by not including an unknown portion in an edge portion, it is possible to prevent a plane portion from being erroneously included in a portion determined to be an edge portion, and it is easy to increase the accuracy of the two-dimensional edge information. On the other hand, by including an unknown portion in an edge portion, it is easy to increase the number of measurement points determined to be an edge portion, and to secure a large amount of data for the two-dimensional edge information.
[0067] Although the description has been given taking an example of calculating distance information from three-dimensional coordinates, the measurement unit 220 may be configured to obtain brightness information and distance information by two-dimensional measurement. In this case, the brightness information and distance information can be obtained independently of the three-dimensional measurement.
[0068] Third embodiment This embodiment is a modification of the preceding embodiment. In this embodiment, the two-dimensional extraction unit 73 extracts two-dimensional edge information by determining whether or not an edge is present from both the luminance information and the distance information for each two-dimensional coordinate. In addition, the edge extracted as the two-dimensional edge information is measured in three dimensions to calculate three-dimensional edge information.
[0069] 6, the control unit 70 includes a three-dimensional calculation unit 374. The three-dimensional calculation unit 374 calculates a three-dimensional point group based on three-dimensional measurement performed only on the edge portion of the measurement object 41.
[0070] The flow of position and orientation recognition for recognizing the position and orientation of the measurement object 41 using the recognition system 1 will be described below. In Fig. 7, when the power of the robot 10 is turned on by a user, for example, and control related to position and orientation recognition is started, the measurement execution unit 71 executes two-dimensional measurement of the measurement object 41 in step S301. More specifically, a surface image is captured by the two-dimensional measurement. In the following, an example will be described in which the surface image includes a set of two-dimensional coordinates and distance information. After executing the shape measurement, the process proceeds to step S311.
[0071] In step S311, the data acquisition unit 72 acquires the measurement results obtained by the two-dimensional measurement. Since the surface image includes a set of two-dimensional coordinates and distance information, information on the distance from the reference point to the measurement point of the measurement unit 20 is obtained for each pixel. After acquiring the information measurement results, the process proceeds to step S315.
[0072] In step S315, the two-dimensional extraction unit 73 extracts two-dimensional edge information from the surface image. More specifically, it is determined whether or not an edge portion is present from distance information included in the surface image, and pixels of the edge portion are extracted from the measurement object 41. A portion where the difference in distance between adjacent pixels is equal to or greater than a predetermined edge distance difference is an edge portion, and a portion where the difference is less than the edge distance difference is determined to be a plane portion.
[0073] In determining whether or not an edge portion is present, the larger the edge distance difference is set, the less likely it is to be determined as an edge portion, and the smaller the data amount of the two-dimensional edge information. On the other hand, the smaller the edge distance difference is set, the more likely it is to be determined as an edge portion, and the larger the data amount of the two-dimensional edge information. For this reason, by adjusting the magnitude of the edge distance difference, it is possible to increase or decrease the portion determined as an edge portion. After extracting the two-dimensional edge information, proceed to step S321.
[0074] In step S321, the measurement execution unit 71 performs three-dimensional measurement on a portion determined to be an edge portion of the measurement object 41. In other words, three-dimensional measurement is performed on a portion of the measurement object 41, rather than on the entire measurement object 41. More specifically, the three-dimensional coordinates of a position corresponding to a pixel included in the two-dimensional edge information are calculated.
[0075] In step S335, the three-dimensional extraction unit 74 calculates three-dimensional edge information. Only the three-dimensional coordinates of pixels corresponding to pixels included in the two-dimensional edge information are calculated by the three-dimensional measurement. Therefore, the three-dimensional coordinates obtained by the three-dimensional measurement can be used as the three-dimensional edge information as is. After the three-dimensional edge information is calculated, the process proceeds to step S141.
[0076] In step S141, the recognition execution unit 79 executes position and orientation recognition by matching the three-dimensional edge information with the model data. After the control related to the position and orientation recognition is completed, a task using the robot 10, such as a grasping task, is performed as necessary.
[0077] The effects of the above-described embodiment will be described below. According to the above-described embodiment, the two-dimensional extraction unit 73 extracts two-dimensional edge information by determining whether or not an area is an edge part from distance information for each two-dimensional coordinate. Therefore, it is possible to determine whether or not an area is an edge part from information other than luminance information. In addition, by adjusting the edge distance difference used to determine whether or not an area is an edge part, it is easy to adjust the amount of data of the two-dimensional edge information.
[0078] The three-dimensional calculation unit 374 calculates a three-dimensional point cloud of a portion of the measurement object 41 that is determined to be an edge portion based on the two-dimensional edge information, and does not calculate a three-dimensional point cloud of a portion that is determined not to be an edge portion. Therefore, it is easier to calculate three-dimensional edge information at high speed compared to a case where a three-dimensional point cloud of the entire measurement object 41 including the planar portion is calculated and then three-dimensional edge information is extracted. Therefore, it is possible to provide a recognition system 1 that can recognize the position and orientation at high speed.
[0079] Other embodiments The disclosure in this specification and drawings, etc. is not limited to the exemplified embodiments. The disclosure includes the exemplified embodiments and modifications by those skilled in the art based thereon. For example, the disclosure is not limited to the combination of parts and / or elements shown in the embodiments. The disclosure can be implemented by various combinations. The disclosure can have additional parts that can be added to the embodiments. The disclosure includes the omission of parts and / or elements of the embodiments. The disclosure includes the substitution or combination of parts and / or elements between one embodiment and another embodiment. The disclosed technical scope is not limited to the description of the embodiments. Some disclosed technical scopes are indicated by the description of the claims, and should be interpreted as including all modifications within the meaning and scope equivalent to the description of the claims.
[0080] The disclosure in the specification and drawings is not limited by the claims. The disclosure in the specification and drawings includes the technical ideas described in the claims, and extends to more diverse and broader technical ideas than the technical ideas described in the claims. Therefore, various technical ideas can be extracted from the disclosure in the specification and drawings without being bound by the claims.
[0081] The control unit and the method described in the present disclosure may be implemented by a special-purpose computer having a processor programmed to execute one or more functions embodied in a computer program. Alternatively, the device and the method described in the present disclosure may be implemented by a special-purpose hardware logic circuit. Alternatively, the device and the method described in the present disclosure may be implemented by one or more special-purpose computers configured by a combination of a processor that executes a computer program and one or more hardware logic circuits. Also, the computer program may be stored in a computer-readable non-transitory tangible recording medium as instructions executed by the computer. [Explanation of symbols]
[0082] 1 recognition system, 10 robot, 12 joint part, 13 axis part, 15 robot arm, 16 robot hand, 20 measurement unit, 21 light projecting device, 22 light receiving device, 41 measurement object, 70 control unit, 71 measurement execution unit, 72 data acquisition unit, 73 two-dimensional extraction unit, 74 three-dimensional extraction unit, 79 recognition execution unit, 81 robot operation unit, 220 measurement unit, 374 three-dimensional calculation unit
Claims
1. A recognition system for performing position and orientation recognition for recognizing a position and orientation of a measurement object (41), comprising: a measurement unit (20, 220) that captures a surface image of the measurement object and calculates three-dimensional coordinates of positions corresponding to pixels of the surface image as a three-dimensional point cloud of the measurement object; a two-dimensional extraction unit (73) that extracts two-dimensional edge information that is information indicating a position of an edge portion in the measurement object based on the surface image; a three-dimensional extraction unit (74) that extracts three-dimensional edge information that is information indicating the position of the edge portion in the three-dimensional point cloud; a recognition execution unit (79) for recognizing a position and orientation of the measurement object based on the three-dimensional edge information; The three-dimensional extraction unit extracts the three-dimensional edge information from the three-dimensional point cloud based on the two-dimensional edge information, the measurement unit acquires distance information indicating a distance between the measurement object and the measurement unit for each pixel of the surface image; The two-dimensional extraction unit is a recognition system that determines whether or not an object is an edge portion from the distance information and extracts the two-dimensional edge information.
2. A recognition system for performing position and orientation recognition for recognizing a position and orientation of a measurement object (41), comprising: a measurement unit (20, 220) that captures a surface image of the measurement object and calculates three-dimensional coordinates of positions corresponding to pixels of the surface image as a three-dimensional point cloud of the measurement object; a two-dimensional extraction unit (73) that extracts two-dimensional edge information that is information indicating a position of an edge portion in the measurement object based on the surface image; a three-dimensional extraction unit (74) that extracts three-dimensional edge information that is information indicating the position of the edge portion in the three-dimensional point cloud; a recognition execution unit (79) for recognizing a position and orientation of the measurement object based on the three-dimensional edge information; The three-dimensional extraction unit extracts the three-dimensional edge information from the three-dimensional point cloud based on the two-dimensional edge information, the measurement unit acquires, for each pixel of the surface image, luminance information indicating luminance and distance information indicating a distance between the measurement object and the measurement unit; The two-dimensional extraction unit extracts the two-dimensional edge information by determining whether or not the object is an edge portion from both the luminance information and the distance information.
3. A recognition system for performing position and orientation recognition for recognizing a position and orientation of a measurement object (41), comprising: a measurement unit (20, 220) capable of capturing a surface image of the measurement object and calculating a three-dimensional point cloud at positions corresponding to pixels of the surface image; A control unit (70) that controls the recognition system, The control unit is A shape measurement is performed by the measurement unit; extracting two-dimensional edge information that is information indicating a position of an edge portion of the measurement object based on the surface image; Calculating three-dimensional edge information, which is the three-dimensional point cloud of the edge portion; Recognizing the position and orientation of the measurement object based on the three-dimensional edge information; The control unit performs two-dimensional measurement, which is the shape measurement to extract the two-dimensional edge information, and then performs three-dimensional measurement, which is the shape measurement to calculate the three-dimensional edge information, and calculates the three-dimensional point cloud of pixels corresponding to pixels of the measurement object in the three-dimensional measurement that are determined to be the edge portion based on the two-dimensional edge information, and does not calculate the three-dimensional point cloud of pixels corresponding to pixels that are determined not to be the edge portion.
4. 4. The recognition system according to claim 1, wherein the measurement unit includes a light-projecting device (21) that projects a color pattern light obtained by combining a plurality of lights having different wavelengths and different phases of luminance change onto the measurement object, and a light-receiving device (22) that receives the color pattern light reflected by the measurement object, and calculates the three-dimensional point cloud based on the color pattern light received by the light-receiving device.
5. The robot (10) includes a plurality of shaft parts (13) connected to each other via joint parts (12) so as to be capable of rotating relative to each other; The recognition system according to claim 1 , wherein the measurement unit is provided on the robot.
Citation Information
Patent Citations
Image processor and image processing method
JP2002117403A
Three-dimensional measuring method, three-dimensional measuring system, image processor, and computer program
JP2004167109A
Visual inspection device and three-dimensional measurement device
JP2004198263A
Information processing apparatus, and information processing method
JP2015090298A
Position / attitude measurement apparatus, position / attitude measurement method, and program
JP2015132523A
