Information generation system
The information generation system uses elemental figures to stabilize marker detection by scanning intermediate areas, reducing false detections and enabling high-speed processing for precise positional information.
Patent Information
- Application Number
- JP2023046635
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-10-04
AI Technical Summary
Conventional markers are difficult to stably detect from camera images due to false detection risks with simple shapes and insufficient resolution with complex shapes, leading to unstable marker detection.
An information generation system using elemental figures with a contour figure, center figure, and intermediate area, allowing for stable detection by scanning predetermined areas and decoding information based on image processing techniques.
Stable marker detection is achieved with reduced false positives and negatives, enabling high-speed processing without the need for template matching, and accurate positional information generation.
Smart Images

Figure 2024135773000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a marker that can be read by an imaging device, and a system using the marker. [Background technology]
[0002] In recent years, mobile robots (also called mobile manipulators) that use manipulators to perform specific tasks have been developed. Examples of tasks that can be performed by such mobile robots include picking up and transporting containers, cases, etc. stored on shelves in a warehouse, and storing transported containers, cases, etc. on shelves.
[0003] Incidentally, when performing work using a manipulator, positioning can be performed by recognizing markers on the work object using a camera provided on the manipulator or the main body, etc., allowing the work to be performed with high precision.
[0004] Various figures may be used as figures constituting this type of marker. For example, a circular figure filled with black (i.e., a black circle) or a black circular figure with a white circle in the center (i.e., a white circle) may be adopted as a simple figure that is easy to find in an image (e.g., Figure 4.1 in Non-Patent Document 1). In addition, for example, a figure with an increased number of concentric circles or a figure with more complex characters or figures as patterns within a circle may be adopted as a more complex figure (e.g., Figure 2.2 in Non-Patent Document 1). [Prior art documents] [Patent documents]
[0005] [Non-Patent Document 1] Michael Loipfuhrer, "Efficient and Robust Circle Grids for Fiducial Detection", [online], May 16, 2020, TECHNISCHE UNIVERSITAT MUNCHEN, [Retrieved March 13, 2020], Internet<URL: https: / / cvg.cit.tum.de / _media / members / demmeln / loipfuehrer2022ma.pdf> Summary of the Invention [Problem to be solved by the invention]
[0006] However, with the conventional configuration, it was difficult to stably detect the markers from the images captured by the camera.
[0007] For example, if the above-mentioned simple figures (such as black circles or white circles) are used, there is a risk of false detection of figures that are not markers, because these figures are common within the field of view of the camera or in the environment.
[0008] Furthermore, if more complex marker figures are used to reduce false detection of markers, the patterns will become finer, which can lead to insufficient camera resolution, blurring of focus, insufficient contrast, etc., and the marker may be missed.
[0009] The present invention has been made in consideration of the above-mentioned technical background, and has as its object to provide a marker that can be stably detected from a camera image, and a technique for generating decoded information for the marker. [Means for solving the problem]
[0010] The above-mentioned technical problem can be solved by an information generation system having the following configuration.
[0011] In other words, the information generation system of the present invention is an information generation system comprising: a marker including two or more types of element figures, the element figures encoding predetermined information in units of a predetermined number; an imaging device generating an image by imaging the element figures in units of the predetermined number or more; and an information generation unit decoding the marker based on the image to generate decoded information, wherein the element figures comprise: a contour figure that is the contour of the element figure; a central figure that is inside the contour figure and has a common center with the contour figure; and a division unit that divides an intermediate region that is outside the central figure and inside the contour figure, and the information generation unit detects the element figures by scanning an area of the image that may correspond to the intermediate region, and generates the decoded information based on the detection results.
[0012] According to such a configuration, element figures can be detected based on parts having shapes that are relatively unlikely to exist in the environment. Therefore, the risk of erroneous detection of element figures is reduced, and stable marker detection can be performed. In addition, since the configuration of the element figures is not unnecessarily detailed, it is possible to reduce the number of element figure detection misses, and stable marker detection can be performed. Furthermore, since the element figures can be identified by only scanning a specified area in the image, template matching and the like are not required, the detection load for element figures is small, and high-speed processing and the like are possible.
[0013] The contour figure may be a circle.
[0014] According to such a configuration, the center of a figure can be easily detected, and image processing can be easily performed.
[0015] The central shape may be a circle or a polygon.
[0016] With this configuration, it is possible to prevent the figure inside the contour figure from becoming complicated.
[0017] The information generating unit may perform the scan by reading out the color or pixel values of an area of the image that may correspond to the intermediate area.
[0018] According to this configuration, the state of the intermediate region can be inferred from the pixels of the intermediate region, and element graphics can be detected.
[0019] The information generating section may detect element graphics by detecting a predetermined edge in an area that may correspond to the intermediate area.
[0020] According to this configuration, whether or not the intermediate region is in a predetermined divided state can be inferred based on the presence or absence of a predetermined edge in the intermediate region, and element graphics can be detected.
[0021] The dividing portion may be a straight line or a curved line dividing the intermediate region.
[0022] According to this configuration, element graphics can be detected based on intermediate regions that are divided linearly or curvedly.
[0023] The image forming apparatus may further include a central graphic determining unit for determining the type of the element graphic by determining the color of the central graphic.
[0024] With this configuration, more complex codes can be decoded by determining the color of the central figure.
[0025] The image forming apparatus may further include an intermediate region determining unit that determines the type of the element graphic by determining the color of the intermediate region.
[0026] With this configuration, it is possible to decode more complex codes by determining the color of the intermediate region.
[0027] The information generating section may generate the decode information based on the detection result and layout information relating to an arrangement of the element graphics.
[0028] According to this configuration, by using the layout information, it is possible to more reliably extract only the target element graphics.
[0029] The layout information may be defined based on a diameter of a region in the image that corresponds to the element graphic.
[0030] According to this configuration, the element figure can be extracted based on the actual diameter of the area corresponding to the element figure in the acquired image, and the marker can be detected stably.
[0031] The layout information may be a ratio of a distance between the element graphics.
[0032] According to this configuration, the element graphic can be stably detected regardless of fluctuations in pixel size of the area corresponding to the element graphic in the acquired image.
[0033] The contour figure and the central figure may both be circles, the diameter of the contour figure is approximately three times the diameter of the central figure, and the intermediate region may be equally divided into six regions by the dividing portion.
[0034] According to such a configuration, if there is a resolution that allows the diameter of the central figure to be identified, it is guaranteed that each divided area of the intermediate area can be identified, so that stable marker detection can be achieved.
[0035] The central figure may be a polygon, and the divided portions may be line segments extending from each side of the polygon.
[0036] This configuration allows for a design that has little effect on human psychology.
[0037] The information generation unit may further generate, based on the decoded information, three-dimensional position information indicating a relative positional relationship in a three-dimensional space between the imaging device and the marker.
[0038] According to this configuration, by capturing an image of the marker, the relative positional relationship between the imaging device and the marker can be obtained.
[0039] The marker may be a one-dimensional marker.
[0040] With this configuration, it is possible to arrange the markers in a limited area such as a strip-shaped area.
[0041] The element graphic may be composed of two colors, black and white.
[0042] With this configuration, the stability of marker detection can be further improved.
[0043] The information generation system may further include a base configured to be movable, and a manipulator attached to the base, and the imaging device may be attached to the manipulator.
[0044] According to this configuration, the imaging device can be placed in a desired position and orientation by operating the manipulator.
[0045] From another perspective, the present invention is a system comprising a marker including two or more types of element figures, the element figures encoding predetermined information in units of a predetermined number, and a mobile manipulator, the mobile manipulator comprising: a base configured to be movable; a multi-joint manipulator attached to the base; an imaging device attached to the multi-joint manipulator and generating an image by imaging the element figures in units of the predetermined number or more; and an information generation unit decoding the marker based on the image to generate decoded information, the element figures comprising: a contour figure that is the contour of the element figure; a central figure that is inside the contour figure and has a common center with the contour figure; and an intermediate region that is outside the central figure and inside the contour figure, the information generation unit detecting the element figures by scanning an area of the image that may correspond to the intermediate region, and generating the decoded information based on the detection result. Effect of the Invention
[0046] According to the present invention, it is possible to provide a marker that can be stably detected from a camera image, and a technique for generating decoded information for the marker. [Brief description of the drawings]
[0047] [Figure 1] FIG. 1 is a diagram showing the overall configuration of a system including a mobile manipulator and a shelf. [Diagram 2] FIG. 2 is an explanatory diagram of a one-dimensional marker. [Diagram 3] FIG. 3 is a general flowchart of the operation of the mobile manipulator when picking up a target object from a shelf. [Figure 4] FIG. 4 is a conceptual diagram showing the mobile manipulator after the camera has been moved. [Diagram 5] FIG. 5 is a detailed flowchart of the decoding process. [Figure 6] FIG. 6 shows an example of an image corresponding to an element figure after conversion processing into a perfect circle shape. [Figure 7] FIG. 7 is an explanatory diagram relating to an example of setting a virtual circle. [Figure 8] FIG. 8 is a conceptual explanatory diagram of the scanning process. [Figure 9] FIG. 9 is an explanatory diagram of an example of a layout of element graphics. [Figure 10] FIG. 10 is an explanatory diagram of another example of the layout of element graphics. [Figure 11] FIG. 11 is an explanatory diagram showing the relationship between a camera, an image plane (P) related to the camera, and element figures constituting a one-dimensional marker. [Figure 12] FIG. 12 is an explanatory diagram regarding transformation of a coordinate system. [Figure 13] FIG. 13 is a diagram showing the principle of capturing an image of an element figure by a stereo camera (second embodiment). [Figure 14] FIG. 14 is a diagram showing the principle of capturing an image of an element figure using a pinhole camera model (second embodiment). [Figure 15] FIG. 15 shows another example of the color scheme of element graphics. [Figure 16] FIG. 16 shows another example of the configuration of element figures. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0048] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.
[0049] 1. First Embodiment As a first embodiment, an operation (or task) will be described in which the mobile manipulator 1 recognizes a one-dimensional marker 55 attached to a shelf 5 and picks up an object 60 on a shelf board 51 with high accuracy. As will be apparent to those skilled in the art, placing an object 60 on the shelf board 51 can also be performed by substantially the same process.
[0050] In this embodiment, an example in which the present invention is applied to a mobile manipulator 1 will be described, but the present invention can be applied to any situation in which it is necessary to specify the relative positional relationship between a camera and a marker. Therefore, it is needless to say that the present invention can be applied to various other objects. For example, the present invention can be applied to a robot that does not have a moving function or a robot that does not have a manipulator.
[0051] (1.1 System Configuration) 1 is an overall configuration diagram of a system including a mobile manipulator 1 and a shelf 5. As is clear from the figure, the mobile manipulator 1 includes a base 10 and a multi-joint robot arm 20 attached to the top surface of the base 10. A moving mechanism 11 is provided on the bottom surface of the base 10, and a LiDAR unit 12 is provided at the rear end of the top surface of the base 10. An information processing device is provided inside the base 10 (not shown) and controls the mobile manipulator 1.
[0052] In this embodiment, the moving mechanism 11 is an omnidirectional moving mechanism. This moving mechanism allows the mobile manipulator to move in any direction. In this embodiment, an omniwheel is used as the omnidirectional moving mechanism.
[0053] In this embodiment, an omni-wheel is used as a mechanism for moving in all directions, but the present invention is not limited to this configuration. Therefore, other configurations that enable omnidirectional movement, such as a Mecanum wheel, may be used. Furthermore, the moving mechanism is not limited to an omnidirectional moving mechanism. Therefore, other moving mechanisms with limited moving orientations and directions (for example, light races using a differential two-wheel mechanism) may be used. Furthermore, the moving mechanism is not limited to a mechanism for moving on the ground, and may be a mechanism for moving while suspended from the ceiling or a mechanism for moving in the air by flying.
[0054] The LiDAR unit 12 detects the distance and direction to surrounding objects using laser light, and can autonomously move through the environment using this LiDAR unit 12. Although the LiDAR unit 12 is used as the environmental detection means, other sensor units may also be used.
[0055] The robot arm 20 has multiple drive joints, and is provided at its tip with a gripper 22. With this configuration, the robot arm 20 can reach a target position from any angle and grasp or release an object 60 with the gripper.
[0056] A camera 21 is provided at a predetermined angle near the gripper 22 to recognize an object or a section on which the object is placed, or to recognize a one-dimensional marker 55 described below. This camera 21 recognizes the one-dimensional marker 55 and performs the processing described below, enabling highly accurate positioning. In this embodiment, the camera 21 is a monocular camera. This camera 21 may also be attached to the base 10.
[0057] A configuration including such a monocular camera can reduce costs compared to a stereo camera or the like.
[0058] The information processing device (not shown) includes a control unit (CPU, etc.) that executes a program, a storage unit (ROM, RAM, flash memory, etc.) that stores the program and data (described later), and a communication unit, which are connected via a bus. The storage unit stores information required for performing various processes (described later), such as information about a target (target object or target position), information about the height of a shelf board 51 to which a one-dimensional marker 55 is attached, code information for verification, optical parameters about the camera 21, information about the kinematics of the mobile manipulator 1, layout information about elemental figures, etc. The information processing device is connected to actuators (not shown) and various sensors (not shown) provided at each joint of the robot arm 20, the camera 21, the gripper 22, the moving mechanism 11, the LiDAR unit 12, etc., and transmits and receives information between these devices or controls these devices.
[0059] In this embodiment, the shelf 5 is a three-tiered shelf having three shelves (51 to 53), and three objects 60 are placed at regular intervals on the top shelf 51. In this embodiment, the objects 60 are containers, and various objects are stored in the containers. Note that the objects 60 do not have to be containers, and can be set arbitrarily depending on the task.
[0060] A one-dimensional marker 55 is horizontally arranged on the side surface of the top shelf 51 facing the mobile manipulator 1. This shelf 51 is configured with a small thickness, and is therefore not suitable for arranging a two-dimensional marker. That is, the side surface of the shelf 15 is a long and narrow surface (or a strip-shaped surface) in which there is a sufficient area on its long side (the longitudinal direction of the shelf 51) in which a marker can be arranged, but there is not enough of such an area on the short side (the thickness direction of the shelf 51) perpendicular to the long side, and the length of the short side is smaller than the length of one side of a two-dimensional marker large enough to be recognized by imaging. As will be described later, the relative positional relationship between the camera 21 and the one-dimensional marker 55 can be determined by imaging the one-dimensional marker 55 using the camera 21.
[0061] 2 is an explanatory diagram of a one-dimensional marker 55. As is clear from the drawing, the one-dimensional marker 55 according to this embodiment is a band-shaped marker configured by arranging a total of 16 element figures in a straight line.
[0062] Each element figure has a small diameter circle (small diameter circle) that is the central figure, and its center is aligned (or concentric) with the center of the circle (large diameter circle) that is the contour figure. In addition, in the intermediate region, which is the region outside the central figure and inside the contour figure, six black line segments are arranged that extend radially from points on the circumference that divide the circumference of the small diameter circle into six equal parts to points on the circumference of the large diameter circle, and equally divide the intermediate region. In the example of the figure, the element figures include two types of element figures: a first element figure whose small diameter circle is filled with black, and a second element figure whose small diameter circle is filled with white. Note that the line segments may be any type that can divide the intermediate region, and may be, for example, straight lines or curves.
[0063] By using a marker made up of white and black in this way, it is possible to improve the accuracy of detecting element figures during image processing, which will be described later.
[0064] In this embodiment, the intervals between these element figures (the distance L between the centers of the circles) are constant.
[0065] According to such a configuration in which the distance between element graphics is constant, the calculation described below becomes easier, and the marker can be recognized more easily. Note that the distance between element graphics does not have to be constant.
[0066] Since this one-dimensional marker 55 shows a unique pattern when four adjacent consecutive element figures are extracted, it encodes the unique position information (ID) of the element figures with four element figures as a unit. A sequence in which a unique pattern is observed by observing a predetermined number of adjacent figures in this way is sometimes called a De Brujin sequence. For example, in the example of Figure 2, if the pattern "(first element figure) → (first element figure) → (second element figure) → (second element figure)" is extracted, it can be uniquely identified that element figures with IDs of 5 to 8 have been extracted.
[0067] In this embodiment, the one-dimensional marker is a long, narrow strip with a plurality of element figures arranged on a white background, and can be attached to any target object. The attachment method may be, for example, pasting like a sticker, or fixing via a fastener such as a bolt. It is not necessary to form all the element figures as one set into a strip, and for example, the element figures may be printed directly on the target object, or the element figures may be represented by coloring.
[0068] According to this configuration, the markers can be easily attached, so that highly accurate positioning between a predetermined object and the imaging device can be easily performed.
[0069] In this embodiment, the imaginary circumscribing figure of the element figure is a square.
[0070] According to this configuration, it becomes easy to calculate the center position of the element figure by image processing, and the recognition accuracy of the marker can be improved. Note that, as another shape of the element figure whose virtual circumscribing figure is a square, for example, a square can be adopted.
[0071] In this embodiment, the graphic form that forms the outline of the element graphic is a circle.
[0072] According to such a configuration, calculation of center coordinates and the like becomes easy, and image processing becomes easy.
[0073] In this embodiment, the central figure inside the contour figure is a circle.
[0074] According to such a configuration, it is possible to prevent element figures from becoming unnecessarily complicated, and it becomes unnecessary to increase the resolution of the imaging device.
[0075] The central figure does not have to be a circle, and may be, for example, a polygon, as will be described later.
[0076] (1.2 Mobile manipulator operation) 3 is a general flowchart regarding the operation of the mobile manipulator 1 when taking out a target object 60 from a shelf 5. Note that the mobile manipulator 1 may determine itself which object or position in space to target, or it may be provided by an external device such as a host system or another device.
[0077] When the process starts, the mobile manipulator 1 controls the moving mechanism 11 to move autonomously to the front of the target object 60, that is, to the front of the shelf 5 storing the object 60 (S11). The autonomous movement may be performed by estimating the self-position by comparing a pre-stored environmental map with the detection result of the LiDAR unit 12.
[0078] After this movement, the mobile manipulator 1 controls the robot arm 20 to move the camera 21 so that at least a predetermined number of element figures are included within the angle of view (S12). Here, the process of moving the camera 21 may be, for example, a process of moving the tip of the robot arm 20 to the height of the shelf board 51 to which the one-dimensional marker 55 is attached, which is stored in advance. In this embodiment, the predetermined number is four, which is a unit for encoding unique position information.
[0079] 4 is a conceptual diagram showing the mobile manipulator 1 after the camera 21 has been moved. As shown in the figure, by controlling the robot arm 20, the camera 21 is oriented horizontally and faces the one-dimensional marker 55. In addition, the four element figures of the one-dimensional marker 55 are included within the angle of view of the camera 21.
[0080] Returning to Fig. 3, after moving the camera 21, the mobile manipulator 1 captures an image using the camera 21 and acquires the image (S13). The mobile manipulator 1 decodes a part of the one-dimensional marker 55 from the acquired image and acquires the coded information, i.e., the ID of each element graphic (S13).
[0081] 5 is a detailed flowchart of the decoding process. As is clear from the figure, when the process starts, the mobile manipulator 1 performs imaging processing using the camera 21 to obtain an image (S131).
[0082] After the image acquisition process, the control unit of the information processing device provided in the mobile manipulator 1 performs binarization process on the acquired image to convert it into two colors, black and white (S132).
[0083] After the binarization process, the control unit performs an ellipse detection process on the binarized image (S133). By this ellipse detection process, an ellipse including a large diameter circle and a small diameter circle that make up each element figure is detected from the image.
[0084] Such a configuration for detecting an ellipse enables detection processing that is robust to the marker orientation.
[0085] After the ellipse detection process, the control unit performs a process to remove contained ellipses using a known image processing technique known to those skilled in the art (S134). This process makes it possible to remove small circles within large circles. Also, although an area surrounded by radial lines, small circles, and large circles is not actually an ellipse, it may be detected as an ellipse if the edges in the image are blurred. This process of removing contained ellipses makes it possible to remove such erroneously detected elliptical figures.
[0086] After removing the enclosed oval shapes, the control unit performs a process of converting each oval into a perfect circle using a known image processing technique known to those skilled in the art (S135). For example, after rotating each oval shape by a predetermined amount, the control unit performs a process of converting the oval shape so that the aspect ratio of the circumscribing rectangle becomes 1:1.
[0087] Fig. 6 is an example of an image corresponding to an element figure after conversion processing to a perfect circle shape. In the example of this figure, a small diameter circle whose diameter is 1 / 3 of the large diameter circle is placed at the center of a large diameter circle (outermost circle) with a diameter of L', with the small diameter circle being placed at the same center (i.e., concentrically). In addition, in an annular area (hereinafter sometimes referred to as an intermediate area) outside the small diameter circle but inside the large diameter circle, six black line segments are placed radially from points on the circumference that divide the small diameter circle into six equal parts in the circumferential direction to points on the circumference of the large diameter circle.
[0088] Returning to Fig. 5, after the conversion process to a perfect circle shape, the control unit sets a virtual circle at a position where each perfect circle overlaps with the small diameter circle, and performs a process of determining the color inside the virtual circle (S136). The color inside the virtual circle can be determined by various methods known to those skilled in the art, but for example, the color inside the virtual circle may be determined by majority vote of the colors of each pixel inside the small diameter circle. Note that the determination may be based on pixel values instead of colors.
[0089] FIG. 7 is an explanatory diagram of an example of setting virtual circles. In the example of the figure, the diameter of the outermost large diameter circle (C1) is L', and the diameter of the small diameter circle is L. The diameter L of the small diameter circle is 1 / 3 of the diameter L' of the large diameter circle. In this case, the virtual circle (C2) is set so as to be concentric with the large diameter circle (C1) and have a diameter 1 / 3 of the large diameter circle (C1). By setting in this way, it is possible to judge the color within the area corresponding to the small diameter circle.
[0090] According to such a configuration, it is possible to determine the color inside the small diameter circle, and therefore it is possible to determine whether the element graphic candidate is a candidate for the first element graphic or a candidate for the second element graphic. Note that this process (S136) may be performed at a later stage of the element graphic extraction process.
[0091] 5, after the color judgment process for the virtual circle, the control unit performs a process of scanning the large diameter circle for one revolution at a predetermined radius, and performs a process of judging whether or not it is an element figure (i.e., a process of detecting an element figure) depending on whether or not the scan result satisfies a predetermined condition (S137). In this embodiment, the predetermined radius is a radius larger than the radius of the small diameter circle (1 / 2×L) and smaller than the radius of the large diameter circle (3 / 2×L), for example, L.
[0092] Fig. 8 is a conceptual diagram of the scanning process. As is clear from Fig. 8(A), in this embodiment, the control unit performs a process of scanning one revolution around a circumference of a circle with a radius (=L) larger than the radius of the small diameter circle and smaller than the radius of the large diameter circle, as indicated by the arrow. Fig. 8(B) is a conceptual diagram in which pixel data for one revolution thus scanned is arranged.
[0093] In this way, when a process of scanning one revolution around the large diameter circle with a predetermined radius (= L) is performed, a series of patterns of consecutively arranged white or black pixels with a length of 2πL (≒6L) is obtained as a result of the scan. Here, since this series of patterns is divided into six equal parts in this embodiment, it is guaranteed that each section has a length equal to or greater than the diameter L of the small diameter circle.
[0094] According to this configuration, if the camera resolution is such that the diameter of the small diameter circle, which is the central figure, can be identified, it is guaranteed that each divided area of the intermediate area can be scanned, so that stable marker detection can be realized. Note that, in order to guarantee that each divided area of the intermediate area can be scanned, it is not necessary to make the diameter of the large diameter circle three times the diameter of the small diameter circle. In short, it is sufficient to adjust the diameter of the small diameter circle (L) or the large diameter circle (L') and the number of divisions of the intermediate area so that the length of each divided area of the pixel data string obtained by scanning with a predetermined radius that is the intermediate value between the radius of the small diameter circle and the radius of the large diameter circle is larger than the diameter of the small diameter circle.
[0095] Next, depending on whether or not the series of patterns satisfies a predetermined condition, it is determined whether or not the figure is an element figure constituting the one-dimensional marker 55. The predetermined condition is, for example, "whether or not there are more white pixels than black pixels," "whether or not a black edge appears a predetermined number of times (six times in this embodiment) against a white background," "whether or not black edges appear at equal intervals against a white background," etc. By determining whether or not one, two, or all of these conditions are satisfied, a process of determining whether or not the reference figure corresponds to an element figure is performed. Note that the more the number of essential conditions is increased, the more erroneous detection is suppressed, and therefore the reliability of the detection result can be improved.
[0096] According to this configuration, it is possible to estimate the division state of the intermediate region based on the detected color or pixel value fluctuation (particularly, edges).
[0097] In addition, element figures can be detected based on parts having shapes that are relatively unlikely to exist in the environment (i.e., divided intermediate regions). This reduces the risk of erroneous detection of element figures, enabling stable marker detection (good marker precision). In addition, because the configuration of element figures is not unnecessarily detailed, it is possible to reduce detection misses of element figures, enabling stable marker detection (good marker recall (or sensitivity)). Furthermore, because element figures can be identified by simply scanning a specified area in an image, template matching and the like are not required, the load on element figure detection is small, and high-speed processing and the like are possible.
[0098] Returning to FIG. 5, after the element graphic determination process, the control unit performs a process of extracting (or detecting) an element graphic string corresponding to a one-dimensional code based on the graphic determined to be an element graphic and the layout information (S138). Here, the layout information is information regarding the position where each element graphic should be placed in the one-dimensional marker 55. The element graphic string extraction process is performed based on the central pixel position (u i ,v i ) acquisition process.
[0099] By using the layout information in this manner, the target element graphic can be detected more reliably.
[0100] 9 is an explanatory diagram of an example of the layout of element figures. In the example of the figure, the layout information is set so that each element figure is arranged in a straight line with the diameter L' of the element figure as a reference. More specifically, the element figures are arranged so that the distance from the center of the leftmost element figure to the center of the second element figure from the left is 2L', the distance from the center of the second element figure from the left to the center of the third element figure from the left is 3L', and the distance from the center of the third element figure from the left to the center of the fourth element figure from the left is 2L'. By extracting element figures based on such layout information, it is possible to extract element figures to be used for decoding.
[0101] According to this configuration, the element figure can be extracted based on the actual diameter of the area corresponding to the element figure in the acquired image, thereby enabling stable marker detection.
[0102] Fig. 10 is an explanatory diagram of another example of the layout of element figures. In the example of this figure, the layout information is set so that the element figures are arranged in a straight line based on the distance between one element figure. More specifically, the element figures are arranged in a ratio such that the distance from the center of the leftmost element figure to the center of the second element figure from the left is 2, the distance from the center of the second element figure from the left to the center of the third element figure from the left is 4, and the distance from the center of the third element figure from the left to the center of the fourth element figure from the left is 1. By extracting element figures based on such layout information, it is possible to extract element figures to be used for decoding.
[0103] According to this configuration, the element graphic can be stably detected regardless of fluctuations in pixel size of the area corresponding to the element graphic in the acquired image.
[0104] As described above, various configurations are possible for the layout of element figures, but in this embodiment, the element figures are arranged in a straight line at equal intervals.
[0105] Returning to Fig. 5, when the extraction of the element graphic string is completed, the control unit performs a process of matching the extracted element graphic string with a previously stored known DeBrown string (decoding process) and a process of identifying the ID of each element graphic (S139). For example, when the element graphic string of "(first element graphic) -> (first element graphic) -> (second element graphic) -> (second element graphic)" is extracted, it can be uniquely identified that the element graphics with IDs 5 to 8 in Fig. 2 have been extracted. After the ID of each element graphic is identified, the process ends.
[0106] Returning to FIG. 3, after the decoding process, the mobile manipulator 1 calculates the central pixel position (u i ,v i), and using a pinhole camera model, the three-dimensional position of each element figure of the one-dimensional marker 55 and the direction of the longitudinal axis of the one-dimensional marker 55 are calculated (S15). Note that in this embodiment, the longitudinal axis is a straight line passing through the center of each element figure constituting the one-dimensional marker 55.
[0107] The process of calculating the three-dimensional position of each element figure of the one-dimensional marker 55 and the direction of the longitudinal axis of the one-dimensional marker 55 will be described in detail.
[0108] 11 is an explanatory diagram showing the relationship between the camera 21, the image plane (P) related to the camera 21, and element figures constituting the one-dimensional marker 55. Here, the element figures are referred to as m1, m, and m2 from the left.
[0109] In the figure, (x c ,y c ,z c ) represents the coordinate system of the camera 21. (u,v) represents the pixel position on the two-dimensional image plane. (x,y,z) represents the three-dimensional position of the element figure m in the camera coordinate system. Also, θ is the y c The amount of rotation around the axis, φ, is z c It represents the amount of rotation around the axis. Furthermore, L represents the distance between the center coordinates of the element figures.
[0110] In this figure, a pinhole camera model is used for the camera 21. c Regarding rotation around the axis (ξ (see FIG. 12)), it is assumed that shelf 5 is arranged standing perfectly vertically with respect to the floor, and is treated as having no rotation from the vertical axis.
[0111] Assuming the above state, the three-dimensional position of each element figure (m1, m, m2) in the camera coordinate system is expressed as follows:
[0112]
number
[0113] When these coordinates are projected onto the image plane (P), each coordinate (u, v) becomes as follows.
[0114]
number
[0115] Here, f is a pre-stored optical parameter, specifically, a value obtained by dividing the focal length of the lens by the physical size of one pixel of the sensor.
[0116] Since the values of the central pixel positions (u1, u, u2, v1, v, v2) of the element graphics are known, solving Equation 2 for θ gives the following:
[0117]
number
[0118] Similarly, solving equation 2 for φ gives:
[0119]
number
[0120] In other words, if the two-dimensional central pixel position (u, v) and the optical parameter f can be acquired, the direction (θ, φ) of the longitudinal axis of the one-dimensional marker 55 can be calculated.
[0121] As is clear from Equation 2, the three-dimensional position of the element figure can be expressed as follows using the two-dimensional central pixel position (u, v) and the optical parameter f.
[0122]
number
[0123] Based on Equation 2 and Equation 5, solving for z gives us:
[0124]
number
[0125] Since the values of f, L, θ, φ, u1, u, and u2 are all known, the value of z can be found from the above formula. In addition, by substituting the value of z into formula 5, the values of x and y can also be found.
[0126] That is, if the two-dimensional central pixel position (u, v) can be acquired, the three-dimensional position (x, y, z) of each element graphic constituting the one-dimensional marker 55 in the camera coordinate system can be obtained.
[0127] In the actual calculation process (S15), the above calculations may be performed every time, or only the final calculation formulas (for example, formulas 3, 4, 5, and 6) may be stored and the three-dimensional position of each element graphic may be calculated appropriately from the pixel position.
[0128] Returning to FIG. 3, after calculating the three-dimensional position of each element figure of the one-dimensional marker 55 and the direction of the longitudinal axis of the one-dimensional marker 55, the mobile manipulator 1 calculates a homogeneous transformation matrix from the marker coordinate system to the camera coordinate system based on the information on the axis direction (θ, φ). m T c (S16) Various known methods can be used to calculate the homogeneous transformation matrix.
[0129] After this homogeneous transformation matrix calculation process, the mobile manipulator 1 calculates a homogeneous transformation matrix from the camera coordinate system to the robot coordinate system based on the kinematics of the structure of the mobile manipulator 1. c T r Various known methods can be used to calculate this homogeneous transformation matrix. After this calculation process, the position and orientation of the target area expressed in the marker coordinate system stored in advance are calculated using two homogeneous transformation matrices m T c ,c T r to convert it into a value in the robot coordinate system (S17).
[0130] FIG. 12 is an explanatory diagram of the transformation of the coordinate system. In the diagram, (x m ,y m ,z m ) represents the marker coordinate system. (x c ,y c ,z c ) represents the camera coordinate system. (x r ,y r ,z r ) represents the robot coordinate system. In the example shown in the figure, the origin of the marker coordinate system is located at a predetermined position on the longitudinal axis of the one-dimensional marker 55, in particular, at the center position of the element graphic with an ID of 0.
[0131] The position and orientation of the target area (P) are defined in the marker coordinate system. However, by the above process, the homogeneous transformation matrix from the marker coordinate system to the camera coordinate system is m T c and the homogeneous transformation matrix from the camera coordinate system to the robot coordinate system c T r Therefore, the position and orientation of the target area (P) can be converted into an expression in the robot coordinate system.
[0132] According to such a configuration, the position and orientation defined in the marker coordinate system can be converted into the camera coordinate system or the robot coordinate system, so that the task can be executed with high accuracy.
[0133] 3, after the transformation process to the robot coordinate system, the control unit controls the robot arm 20 based on the position and orientation (P) of the target section in the robot coordinate system to perform a process of picking up the object 60, which is at a predetermined position and orientation in the target section, using the gripper 22 (S18). After this operation, the object pick-up operation is completed.
[0134] According to this configuration, when a band-shaped area exists on the object where a region where a marker can be placed exists in the longitudinal direction but no such region exists in the direction perpendicular to the longitudinal direction, the one-dimensional marker 55 that can be used can be used to calculate the relative positional relationship in three-dimensional space between the camera 21 and the one-dimensional marker 55. That is, according to this configuration, even in a scene where the region where a marker can be placed on the object is limited, the one-dimensional marker 55 and the camera 21 can be positioned with high accuracy.
[0135] 2. Second Embodiment In the first embodiment, a monocular camera is used as the camera 21. In the present embodiment, an example in which a stereo camera is used as the camera 21 will be described.
[0136] The configuration of the mobile manipulator 1 according to this embodiment is substantially the same as that of the first embodiment, except that the camera 21 is a stereo camera, and therefore detailed description will be omitted (see FIGS. 1 and 2).
[0137] The operation of the mobile manipulator 1 (FIG. 3) is also substantially the same, except that the method of calculating the three-dimensional position of each element figure and the axial direction of the one-dimensional marker 55 (S15) is different because the camera 21 is a stereo camera. Therefore, only the method of calculating the three-dimensional position of each element figure and the axial direction of the one-dimensional marker 55 using the camera 21, which is a stereo camera, will be described in detail.
[0138] Fig. 13 is a diagram showing the principle of capturing images of elemental figures using stereo cameras. The left and right camera positions are depicted as points at the bottom of the figure, and the distance between the left and right cameras is represented by B. The cameras are arranged parallel to each other on the same plane. The two cameras may be physically arranged parallel to each other, or may be mathematically transformed for rectification.
[0139] When observing an element figure at a given position (Q) at depth Z from the left and right camera positions, the two-dimensional camera images (L, R) shown in the upper part of the figure are observed at the focal length f of each camera. At this time, a parallax d occurs between the left and right camera images. This parallax d is calculated by dividing the pixel position u in the horizontal direction of the image by the distance u. L , u R It is expressed as follows using
[0140]
number
[0141] Here, the depth Z can be expressed as follows using the inter-camera distance B and the focal length f.
[0142]
number
[0143] Therefore, according to Equation 7 and Equation 8, the depth Z is determined by the pixel positions (u L , u R ), can be calculated using the known camera distance B and focal length f.
[0144] FIG. 14 shows the principle of imaging element figures using a pinhole camera model. In the figure, (x c ,y c ,z c ) represents the coordinate system of the camera 21. (u,v) represents a pixel position on the two-dimensional image plane. (x,y,z) represent the three-dimensional position of the element figure in the camera coordinate system.
[0145] In this case, the center coordinates (x, y, z) of the reference element figure can be expressed as follows using the pixel position (u, v) on the image plane and the depth Z (=z).
[0146]
number
[0147] Therefore, by calculating the formulas 7 to 9 for each element graphic, the three-dimensional position (x, y, z) of each element graphic can be calculated.
[0148] In addition, after calculating the three-dimensional position of each element figure, a straight line passing through multiple element figures can be obtained by a method such as the least squares method. c The amount of rotation around the axis θ and z c The amount of rotation around the axis φ can be determined.
[0149] That is, the three-dimensional position of the element figure, y c Amount of rotation around the axis θ and z c Since the amount of rotation around the axis φ can be obtained, the homogeneous transformation matrix from the marker coordinate system to the camera coordinate system is then calculated in the same manner as in the first embodiment. m T c etc. can be obtained.
[0150] According to such a configuration, by using the stereo camera, it is possible to perform highly accurate recognition of element graphics, thereby improving the accuracy of the work.
[0151] (3. Modifications) The present invention can be implemented in various modified forms.
[0152] In the above embodiment, a concentric small circle filled with white or black was placed as a central figure at the center of a circular outline figure with a black outline and a white background. In addition, radially extending line segments were placed in the intermediate area between the small circle and the large circle so as to divide the area into six equal parts. Furthermore, the code employed was a one-dimensional code in which unique information was coded using a predetermined number of two types of element figures. However, the present invention is not limited to such a configuration and can be implemented in various modifications.
[0153] For example, the background color within an element graphic does not have to be white, and another color, such as black, may be used.
[0154] 15 shows another example of the color scheme of element figures. As shown in (A) and (B) of the same figure, the basic background color within the large diameter circle may be black, and the outline may be white. In this case, the color inside the small diameter circle may be white ((A) of the same figure) or black ((B) of the same figure). Such element figures can also be decoded by a method similar to the method (S13) in the above embodiment, except that the color of the detection target is changed.
[0155] Information may be coded using four element figures having the same shape, namely, the two types of element figures in the embodiment (white background and white or black center), the element figure in Fig. 15(A), and the element figure in Fig. 15(B). In this case, the extracted pattern is matched with the De Brown sequence using four symbols.
[0156] Also, as shown in Fig. 8C, the color scheme of the intermediate region between the small diameter circle and the large diameter circle may be partially changed. In such a configuration, the expected number of edge appearances (S137, see Fig. 8) and the like may be adjusted in advance to a suitable value.
[0157] The shape of the element figures may also be changed. For example, the central figure may be another figure, such as a polygon (or a convex hull figure), instead of a small diameter circle. Furthermore, in the intermediate region between the central figure and the contour figure, the shape and arrangement of the line segments dividing the region may be appropriately changed. For example, the line segments used for division may be arranged along each side of the central figure.
[0158] Figure 16 shows another example of the configuration of the shape of element figures. In the example in this figure, the central figure of the element figures is a hexagon that shares a common center with the large diameter circle. The color of the intermediate region is basically black (Figures (A) and (B)) or white (Figures (C) and (D)), and the hexagon inside is white in the examples in Figures (A) and (C), and black in the examples in Figures (B) and (D). Information can be coded using these four element figures.
[0159] The area outside the hexagon but inside the circle (i.e., the middle area) is divided by line segments extending from each side of the hexagon. Such element figures can also be decoded by a method similar to the method (S13) in the above embodiment.
[0160] According to this configuration, when a large number of element figures each having a circle as a central figure are arranged, the shape of the element may evoke the human eye and cause anxiety to the viewer, but since the central figure is a hexagon, such psychological effect can be reduced.
[0161] In the above embodiment, the colors constituting each element graphic are white or black, but the present invention is not limited to such a configuration and other colors may be used. Also, processing may be performed simply based on pixel values.
[0162] In the above embodiment, each element graphic is applied to the one-dimensional marker 55, but the present invention is not limited to such a configuration. Therefore, the present invention may be applied to other markers, for example, higher dimensional markers such as two-dimensional markers.
[0163] In the above embodiment, a one-dimensional code using two types of element figures is configured to encode unique information using four element figures, but the present invention is not limited to such a configuration. Therefore, for example, information may be encoded using a plurality of other element figures. Furthermore, three or more types of figures may be used as the types of element figures.
[0164] Although the embodiments of the present invention have been described above, the above embodiments merely show some of the application examples of the present invention, and the technical scope of the present invention is not limited to the specific configurations of the above embodiments. Moreover, the above embodiments can be appropriately combined within a range where no contradiction occurs. [Industrial Applicability]
[0165] The present invention can be used in industries that manufacture markers or systems using markers. [Explanation of symbols]
[0166] 1 Mobile Manipulator 10 Base 11 Moving mechanism 12 LiDAR units 20 Robot Arm 21 Camera 22 Gripper 5 Shelves 51 Shelf (upper) 52 Shelf (interrupted) 53 Shelf (lower) 55 Marker (1D marker) 60 Object
Claims
1. A marker including two or more kinds of element figures, the element figures encoding predetermined information in units of a predetermined number; an imaging device that generates an image by imaging the element figures of the number unit or more; an information generating unit that decodes the marker based on the image to generate decoded information, The element figure is A contour figure which is a contour of the element figure; a central figure that is inside the contour figure and has a common center with the contour figure; a dividing unit that divides an intermediate region that is an area outside the central figure and inside the contour figure, The information generating system, wherein the information generating unit detects element graphics by scanning an area of the image that may correspond to the intermediate area, and generates the decoded information based on the detection result.
2. The information generating system according to claim 1 , wherein the contour figure is a circle.
3. The information generating system according to claim 1 , wherein the central figure is a circle or a polygon.
4. The information generating system according to claim 1 , wherein the information generating unit performs scanning by reading out colors or pixel values of areas of the image that may correspond to the intermediate area.
5. The information generating system according to claim 1 , wherein the information generating section detects element graphics by detecting a predetermined edge in an area that may correspond to the intermediate area.
6. The information generating system according to claim 1 , wherein the dividing portion is a straight line or a curved line that divides the intermediate region.
7. The information generating system according to claim 1 , further comprising a central graphic determining unit that determines a type of the element graphic by determining a color of the central graphic.
8. The information generating system according to claim 1 , further comprising an intermediate area determining unit that determines a type of the element graphic by determining a color of the intermediate area.
9. The information generating system according to claim 1 , wherein the information generating section generates the decode information based on the detection result and layout information relating to an arrangement of the element graphics.
10. The information generating system according to claim 9 , wherein the layout information is defined based on a diameter of a region in the image that corresponds to the element graphic.
11. The information generating system according to claim 9 , wherein the layout information is a ratio of a distance between the element graphics.
12. 2. The information generating system of claim 1, wherein the contour figure and the central figure are both circles, the diameter of the contour figure is approximately three times the diameter of the central figure, and the intermediate region is divided into six equal regions by the dividing unit.
13. The information generating system according to claim 1 , wherein the central figure is a polygon, and the divided portions are line segments extending from each side of the polygon.
14. The information generating system according to claim 1 , wherein the information generating unit further generates, based on the decoded information, three-dimensional position information indicating a relative positional relationship in a three-dimensional space between the imaging device and the marker.
15. The information generating system according to claim 1 , wherein the marker is a one-dimensional marker.
16. 2. The information generating system according to claim 1, wherein the element graphics are formed in two colors, black and white.
17. The information generating system further comprises: A base configured to be movable; a manipulator attached to the base; The information generating system of claim 1 , wherein the imaging device is attached to the manipulator.
18. A system including a marker and a mobile manipulator, the marker including two or more kinds of element figures, the element figures encoding predetermined information in a predetermined number of units, The mobile manipulator comprises: A base configured to be movable; an articulated manipulator attached to the base; an imaging device attached to the articulated manipulator and configured to capture an image of at least one of the element figures; an information generating unit that generates decoded information by decoding the marker based on the image, The element figure is A contour figure which is a contour of the element figure; a central figure that is inside the contour figure and has a common center with the contour figure; a dividing unit that divides an intermediate region that is an area outside the central figure and inside the contour figure, The information generation unit detects element graphics by scanning an area of the image that may correspond to the intermediate area, and generates the decoded information based on the detection result.
Citation Information
Patent Citations
Kikaikadokukirokubaitai
JP1976054334A
Code system
JP1988273184A
Powdered medicine inspecting device
JP1999114026A
Three-dimensional position posture sensing device
JP2000227309A
Badge identification method
JP2002109540A
