[go: up one dir, main page]

JP2007140729A - Method and apparatus for detecting the position and orientation of an article - Google Patents

Method and apparatus for detecting the position and orientation of an article Download PDF

Info

Publication number
JP2007140729A
JP2007140729A JP2005331162A JP2005331162A JP2007140729A JP 2007140729 A JP2007140729 A JP 2007140729A JP 2005331162 A JP2005331162 A JP 2005331162A JP 2005331162 A JP2005331162 A JP 2005331162A JP 2007140729 A JP2007140729 A JP 2007140729A
Authority
JP
Japan
Prior art keywords
article
image
line segment
template
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005331162A
Other languages
Japanese (ja)
Inventor
Teruyuki Shima
輝行 島
Munehiko Maeda
宗彦 前田
Hideo Terada
英雄 寺田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IHI Corp
Original Assignee
Ishikawajima Harima Heavy Industries Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ishikawajima Harima Heavy Industries Co Ltd filed Critical Ishikawajima Harima Heavy Industries Co Ltd
Priority to JP2005331162A priority Critical patent/JP2007140729A/en
Publication of JP2007140729A publication Critical patent/JP2007140729A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

【課題】画像から目的とする物品の位置と姿勢を精密かつ確実に検出でき、かつFAなどに適用可能な高速処理ができる物品の位置及び姿勢を検出する方法および装置を提供する。
【解決手段】複数の同一物品1が同一平面上に並んだ画像3を撮像し、画像から物品の位置及び姿勢9を検出する。物品の形状データ4から画像上の物品の輪郭を示すテンプレート5を生成するテンプレート生成処理S1と、画像から物品の形状を強調した二値のエッジ画像6を作成するエッジ強調処理S2と、テンプレートとエッジ画像のベクトル相関により物品候補データ7を作成する粗サーチ処理S3と、エッジ画像からエッジを構成する線分データ8を作成する線分近似処理S4と、物品候補データと線分データから線分探索により物品の正確な位置と姿勢9を決定する精密サーチ処理S5とからなる。
【選択図】図2
A method and apparatus for detecting the position and orientation of an article that can accurately and reliably detect the position and orientation of a target article from an image and that can perform high-speed processing applicable to an FA or the like.
An image 3 in which a plurality of identical articles 1 are arranged on the same plane is captured, and the position and posture 9 of the article are detected from the images. Template generation processing S1 for generating a template 5 indicating the outline of an article on the image from the shape data 4 of the article, edge enhancement processing S2 for generating a binary edge image 6 in which the shape of the article is emphasized from the image, and a template A rough search process S3 for creating article candidate data 7 based on vector correlation of edge images, a line segment approximation process S4 for creating line segment data 8 constituting an edge from an edge image, and a line segment from article candidate data and line segment data It consists of a fine search process S5 for determining the exact position and posture 9 of the article by searching.
[Selection] Figure 2

Description

本発明は、物品の位置及び姿勢を検出する方法および装置に関する。   The present invention relates to a method and apparatus for detecting the position and orientation of an article.

画像上の物品の位置や姿勢を検出する手段としてテンプレートマッチングや領域分割法などが知られている。
テンプレートマッチングは、図6に模式的に示すように、位置(x,y)から開始されるテンプレートと同じ大きさの局所領域Sx,yを順にずらしながら、テンプレート画像Gi,jと探索画像Fi,jの相関値Mx,yを計算し、相関値が最も高い位置(x,y)をテンプレートが発見された位置として出力するものである。
また、領域分割法は、画像を領域分割して領域ごとの特徴から物品位置を推定するものである。
As means for detecting the position and posture of an article on an image, template matching, a region division method, and the like are known.
As schematically shown in FIG. 6, the template matching is performed by sequentially shifting the local areas Sx, y having the same size as the template starting from the position (x, y), while sequentially shifting the template image Gi, j and the search image Fi, The correlation value Mx, y of j is calculated, and the position (x, y) with the highest correlation value is output as the position where the template is found.
The area division method estimates an article position from a feature for each area by dividing an image into areas.

さらに、テンプレートマッチングや領域分割法と関連して種々の画像処理法が既に提案されている(例えば特許文献1〜5)。
特許文献1の「画像処理装置」は、領域分割後に各領域の特徴でマッチングを行うものである。
特許文献2の手段も、特許文献1と同様、領域分割後に各領域の特徴でマッチングを行うものである。
特許文献3の「画像認識による計算方法および記憶媒体」は、物体の重心をおおまかに求めた後、重心を中心にテンプレートを回転させる回転サーチに関するものである。
特許文献4の「物品の位置検出方法およびその装置」は、物品の二次元見え方モデルを準備しておき、その特徴部とステレオ視の各画像のマッチングを行うことで三次元位置を検出するものである。
特許文献5の「画像処理装置」は、回転粗テンプレートを用いて三値化画像を対象にテンプレートマッチングを行い、その後、部分テンプレートを用いて精密サーチを行うものである。
Furthermore, various image processing methods have already been proposed in connection with template matching and region division methods (for example, Patent Documents 1 to 5).
The “image processing apparatus” of Patent Document 1 performs matching using the characteristics of each area after dividing the area.
Similarly to Patent Document 1, the means of Patent Document 2 also performs matching with the features of each region after region division.
The “calculation method and storage medium based on image recognition” of Patent Document 3 relates to a rotation search in which a template is rotated around the center of gravity after the center of gravity of an object is roughly obtained.
Patent Document 4 “Article Position Detection Method and Device” prepares a two-dimensional appearance model of an article and detects a three-dimensional position by matching the feature portion with each stereo image. Is.
The “image processing apparatus” in Patent Document 5 performs template matching on a ternary image using a rotating coarse template, and then performs a precise search using a partial template.

特公平07−066440号、「画像処理装置」Japanese Patent Publication No. 07-066440, “Image processing device” 特開平11−203461号JP-A-11-203461 特開平11−167640号、「画像認識による計算方法および記憶媒体」Japanese Patent Application Laid-Open No. 11-167640, “Calculation Method by Image Recognition and Storage Medium” 特開平08−136220号、「物品の位置検出方法およびその装置」Japanese Patent Application Laid-Open No. 08-136220, “Article Position Detection Method and Apparatus” 特許第3212777号、「画像処理装置」Japanese Patent No. 3212777, “Image Processing Device”

上述したテンプレートマッチングは処理時間が長く、特に、画面上の物品の姿勢が不明なとき大幅に処理時間が長くなる。このため、FAなど高速処理が要求される分野に適用することは難しい。
また、領域分割手段は、物品位置の推定は比較的高速だが、領域分割手段は領域分割自体に失敗すると適切な結果が得られない問題点があった。
The template matching described above takes a long processing time, particularly when the posture of the article on the screen is unknown. For this reason, it is difficult to apply to fields where high-speed processing is required, such as FA.
In addition, although the area dividing unit is relatively fast in estimating the article position, there is a problem that an appropriate result cannot be obtained if the area dividing unit fails in the area dividing itself.

本発明は上述した種々の問題点を解決するために創案されたものである。すなわち、本発明の目的は、画像から目的とする物品の位置と姿勢を精密かつ確実に検出でき、かつFAなどに適用可能な高速処理ができる物品の位置及び姿勢を検出する方法および装置を提供することにある。   The present invention has been made to solve the various problems described above. That is, an object of the present invention is to provide a method and apparatus for detecting the position and orientation of an article that can accurately and reliably detect the position and orientation of the target article from an image, and that can perform high-speed processing applicable to an FA or the like. There is to do.

本発明によれば、複数の同一物品が同一平面上に並んだ画像を撮像し、該画像から物品の位置及び姿勢を検出する方法であって、
前記物品の形状データから前記画像上の物品の輪郭を示すテンプレートを生成するテンプレート生成処理と、
前記画像から物品の形状を強調した二値のエッジ画像を作成するエッジ強調処理と、
前記テンプレートとエッジ画像のベクトル相関により物品候補データを作成する粗サーチ処理と、
前記エッジ画像からエッジを構成する線分データを作成する線分近似処理と、
前記物品候補データと線分データから線分探索により物品の正確な位置と姿勢を決定する精密サーチ処理と、を有する、ことを特徴とする物品の位置及び姿勢を検出する方法が提供される。
According to the present invention, a method of capturing an image in which a plurality of identical articles are arranged on the same plane and detecting the position and orientation of the article from the images,
A template generation process for generating a template indicating the outline of the article on the image from the shape data of the article;
Edge enhancement processing for creating a binary edge image in which the shape of the article is enhanced from the image;
A rough search process for creating article candidate data by vector correlation between the template and the edge image;
Line segment approximation processing for creating line segment data constituting an edge from the edge image;
There is provided a method for detecting the position and orientation of an article, comprising: a precise search process for determining an accurate position and orientation of an article by line search from the article candidate data and line segment data.

本発明の好ましい実施形態によれば、前記テンプレートは、物品の形状データを基に前記画像と同一スケールの輪郭を示す閉じた折線又は曲線であり、図心を中心に回転させた複数の輪郭線から構成される。   According to a preferred embodiment of the present invention, the template is a closed fold line or curve showing an outline of the same scale as the image based on the shape data of the article, and a plurality of outlines rotated about the centroid. Consists of

また、前記粗サーチ処理において、エッジ画像からテンプレートによるベクトル相関値を求め、該ベクトル相関値が所定の閾値より大きい画像上の位置と姿勢を物品候補データとする。   In the coarse search process, a vector correlation value based on a template is obtained from the edge image, and a position and orientation on the image in which the vector correlation value is greater than a predetermined threshold value are used as article candidate data.

また、前記精密サーチ処理において、物品候補データの近傍に位置する線分データから線分探索により物品の正確な位置と姿勢を精密に検出する。   In the precise search process, the accurate position and orientation of the article are accurately detected by line segment search from line segment data located in the vicinity of the article candidate data.

また、本発明によれば、複数の同一物品が同一平面上に並んだ画像を撮像し、該画像から物品の位置及び姿勢を検出する装置であって、
前記画像を撮像する撮像装置と、前記画像を画像処理する画像処理装置とを備え、
該画像処理装置は、
前記物品の形状データから前記画像上の物品の輪郭を示すテンプレートを生成するテンプレート生成処理と、
前記画像から物品の形状を強調した二値のエッジ画像を作成するエッジ強調処理と、
前記テンプレートとエッジ画像のベクトル相関により物品候補データを作成する粗サーチ処理と、
前記エッジ画像からエッジを構成する線分データを作成する線分近似処理と、
前記物品候補データと線分データから線分探索により物品の正確な位置と姿勢を決定する精密サーチ処理と、を実行する、ことを特徴とする物品の位置及び姿勢を検出する装置が提供される。
In addition, according to the present invention, an apparatus that captures an image in which a plurality of identical articles are arranged on the same plane and detects the position and orientation of the article from the images,
An imaging device that captures the image; and an image processing device that performs image processing on the image;
The image processing apparatus includes:
A template generation process for generating a template indicating the outline of the article on the image from the shape data of the article;
Edge enhancement processing for creating a binary edge image in which the shape of the article is enhanced from the image;
A rough search process for creating article candidate data by vector correlation between the template and the edge image;
Line segment approximation processing for creating line segment data constituting an edge from the edge image;
An apparatus for detecting the position and orientation of an article is provided, which performs a precise search process for determining an accurate position and orientation of an article by line segment search from the article candidate data and line segment data. .

上記本発明の方法及び装置によれば、 物品の形状データからテンプレート生成処理により画像上の物品の輪郭を示すテンプレートを生成するので、ごく単純な形状データからテンプレートを自動作成できる。これにより、ユーザにテンプレート登録の負担をかけることなく、数多くの物品に対応できる。   According to the method and apparatus of the present invention, since a template indicating the outline of an article on an image is generated from the article shape data by template generation processing, the template can be automatically created from very simple shape data. Thereby, it can respond to many articles | goods, without putting the burden of template registration to a user.

また、テンプレートとエッジ画像のベクトル相関により物品候補データを作成する粗サーチ処理により、画面全体を少ない処理量でサーチでき、かつこれにより、見落しのない高速な探索を実施できる。   In addition, the rough search process for creating article candidate data based on the vector correlation between the template and the edge image allows the entire screen to be searched with a small amount of processing, thereby enabling a high-speed search without oversight.

物品候補データと線分データから線分探索により物品の正確な位置と姿勢を決定する精密サーチ処理により、粗サーチの結果得られた物品候補位置近傍に、線分探索処理を加えることで、物品の位置と姿勢を精密に検出できる。
従って、本発明の手段により、高速かつ精密に物品を抽出する画像処理装置を実現することができる。
By adding a line search process to the vicinity of the article candidate position obtained as a result of the coarse search, a precise search process that determines the exact position and orientation of the article by line search from the article candidate data and line segment data. Can accurately detect the position and posture.
Therefore, an image processing apparatus for extracting an article at high speed and accurately can be realized by the means of the present invention.

以下、本発明の好ましい実施形態を図面を参照して説明する。なお、各図において共通する部分には同一の符号を付し、重複した説明を省略する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the drawings. In addition, the same code | symbol is attached | subjected to the common part in each figure, and the overlapping description is abbreviate | omitted.

図1は、本発明の装置の全体構成図である。この図に示すように、本発明の装置は、 複数の同一物品1が同一平面上に並んだ画像3を撮像する撮像装置12と、撮像した画像3を画像処理する画像処理装置14とを備える。   FIG. 1 is an overall configuration diagram of an apparatus according to the present invention. As shown in the figure, the apparatus of the present invention includes an imaging device 12 that captures an image 3 in which a plurality of identical articles 1 are arranged on the same plane, and an image processing device 14 that performs image processing on the captured image 3. .

物品1はこの例ではパレット2の上に積層されている。本発明の装置は、パレット上の物品のうち、最上段の物品のみを対象とし、画像3から最上段の物品の位置及び姿勢を検出するものである。   The article 1 is laminated on the pallet 2 in this example. The apparatus of the present invention is intended for only the uppermost article among the articles on the pallet, and detects the position and orientation of the uppermost article from the image 3.

撮像装置12は、例えばデジタル画像が取得できるデジタルスチールカメラ又はデジタルビデオカメラである。なお、これらのカメラは、少なくとも最上段の物品すべてを撮像でき、かつ各物品を識別できる分解能を有する。
撮像装置12は、物品までの距離を検出できるように、一定の間隔を隔てたステレオカメラとすることもできる。なお本発明は、最上段の物品をその他の物品と識別する手法について特に限定しない。
The imaging device 12 is, for example, a digital still camera or a digital video camera that can acquire a digital image. Note that these cameras have a resolution capable of imaging at least all the uppermost articles and identifying each article.
The imaging device 12 may be a stereo camera with a certain interval so that the distance to the article can be detected. Note that the present invention does not particularly limit the method for distinguishing the uppermost article from other articles.

画像処理装置14は、この例では画像処理PC(コンピュータ)であり、ホストコンピュータ15、ケース情報データベース16とLANで接続されている。ケース情報データベース16には、物品の形状データが予め入力されている。   In this example, the image processing apparatus 14 is an image processing PC (computer), and is connected to the host computer 15 and the case information database 16 via a LAN. The case information database 16 is preliminarily input with article shape data.

画像処理装置14は、撮像装置12で撮像した画像から、物品までの距離等を基準にして最上段の物品以外の画像を消去する。次いで、本発明の画像処理装置14は、後述するテンプレート生成処理、エッジ強調処理、粗サーチ処理、線分近似処理、及び精密サーチ処理を実行する。   The image processing device 14 erases images other than the uppermost article from the image taken by the imaging device 12 on the basis of the distance to the article or the like. Next, the image processing apparatus 14 of the present invention executes template generation processing, edge enhancement processing, rough search processing, line segment approximation processing, and fine search processing, which will be described later.

図2は、本発明の方法の全体フロー図であり、図3は、本発明の方法の模式図である。本発明の方法は、複数の同一物品1が同一平面上に並んだ画像3を撮像し、この画像3から物品の位置及び姿勢を検出する方法である。図3Aのような物品の画像3は、最上段の物品およびその近傍を抽出することで図3Bのような画像となる。   FIG. 2 is an overall flow diagram of the method of the present invention, and FIG. 3 is a schematic diagram of the method of the present invention. The method of the present invention is a method of capturing an image 3 in which a plurality of identical articles 1 are arranged on the same plane, and detecting the position and orientation of the article from this image 3. The image 3 of the article as shown in FIG. 3A becomes an image as shown in FIG. 3B by extracting the uppermost article and its vicinity.

図2において、本発明の方法は、テンプレート生成処理S1、エッジ強調処理S2、粗サーチ処理S3、線分近似処理S4及び精密サーチ処理S5からなる。   In FIG. 2, the method of the present invention comprises a template generation process S1, an edge enhancement process S2, a rough search process S3, a line segment approximation process S4, and a fine search process S5.

テンプレート生成処理S1では、物品1の形状データ4から画像3上の物品の輪郭を示すテンプレート5(図3D参照)を生成する。
エッジ強調処理S2では、画像3から物品の形状を強調した二値のエッジ画像6(図3C参照)を作成する。
粗サーチ処理S3では、テンプレート5とエッジ画像6のベクトル相関により物品候補データ7を作成する。
線分近似処理S4では、エッジ画像6からエッジを構成する線分データ8を作成する。
精密サーチ処理S5では、図3Eに示すように、物品候補データ7と線分データ8から線分探索により物品の正確な位置と姿勢9を決定する。
In the template generation process S1, a template 5 (see FIG. 3D) indicating the outline of the article on the image 3 is generated from the shape data 4 of the article 1.
In the edge enhancement processing S2, a binary edge image 6 (see FIG. 3C) in which the shape of the article is enhanced is created from the image 3.
In the coarse search process S3, the article candidate data 7 is created by the vector correlation between the template 5 and the edge image 6.
In the line segment approximation process S4, line segment data 8 constituting an edge is created from the edge image 6.
In the precise search process S5, as shown in FIG. 3E, an accurate position and orientation 9 of the article are determined by line segment search from the article candidate data 7 and the line segment data 8.

図4は、本発明におけるベクトル相関の説明図である。
ベクトル相関は、二値画像(エッジ画像)中から、テンプレートと類似した幾何形状の位置を探索する手法の1つである。そのアルゴリズムの概要は以下のとおり。
(1) 探索したいテンプレート画像(例として図4A)の輪郭位置を始点とし、図形の重心等の一点(図4A中の点C)を終点とするベクトルを作成する(図4B)。
(2) 探索を行うエッジ画像と同じサイズの投票画像を準備する。投票画像とは、画素の値が整数であり、後に示す投票作業の結果を累積的に保存するためのものである。また、投票画像の初期値は0としておく。
(3) 探索を行うエッジ画像中の、エッジのある画素上(図4C中の点P)において、(1)で作成した複数本のベクトルの始点を点Pとして、すべてのベクトルを配置する(図4C)。
(4) 配置したベクトルの終点位置を投票位置とし、その位置に対応する投票画像上の画素に投票(画素値に1を加算)していく。
(5) (3)〜(4)の作業を、探索を行うエッジ画像上のすべてのエッジ位置について行う。
(6) 投票終了後の投票マップにおける、値の最も大きな(投票数ウォータジェットの最も多い)画素位置が、テンプレート画像の(1)で与えた重心などの一点の位置に対応する。
(7) 探索を行うエッジ画像上に複数の探索対象図形が存在する場合には、投票数の多いピーク部が複数発生する。それらは、物品候補位置に対応する。
FIG. 4 is an explanatory diagram of vector correlation in the present invention.
Vector correlation is one of the techniques for searching for a position of a geometric shape similar to a template from a binary image (edge image). The outline of the algorithm is as follows.
(1) Create a vector starting from the contour position of the template image to be searched (for example, FIG. 4A) and ending at one point (point C in FIG. 4A) such as the center of gravity of the figure (FIG. 4B).
(2) Prepare a voting image having the same size as the edge image to be searched. The voting image has a pixel value that is an integer, and is used for cumulatively storing the results of voting operations described later. The initial value of the voting image is set to 0.
(3) On the edge image (point P in FIG. 4C) in the edge image to be searched, all the vectors are arranged with the point P as the start point of the plurality of vectors created in (1) ( FIG. 4C).
(4) The end point position of the arranged vector is set as a voting position, and voting is performed on the pixels on the voting image corresponding to the position (1 is added to the pixel value).
(5) The operations (3) to (4) are performed for all edge positions on the edge image to be searched.
(6) The pixel position having the largest value (the largest number of voted water jets) in the voting map after the voting ends corresponds to the position of one point such as the center of gravity given in (1) of the template image.
(7) When there are a plurality of search target figures on the edge image to be searched, a plurality of peak portions with a large number of votes are generated. They correspond to the article candidate positions.

粗サーチ処理S3において、このベクトル相関値が所定の閾値より大きい画像上の位置と姿勢を物品候補データ7とする。例えば、上記の例で、総和Sが8又は8に近い場合には、テンプレート5と画像3上の図がほぼ一致していることになる。   In the coarse search process S3, the position and orientation on the image in which the vector correlation value is larger than a predetermined threshold value are set as the article candidate data 7. For example, in the above example, when the total sum S is 8 or close to 8, the figure on the template 5 and the image 3 are almost the same.

上述した粗サーチ処理S3を画像3上の任意の点に対して走査して全画面について行うことにより、画像上に存在するテンプレート5と一致するすべての物品候補データを検出することができる。
また、この操作を図4Aに示した複数のテンプレートについて行うことにより、テンプレートが回転した状態の物品候補データをすべて検出することができる。
また、上述したように、粗サーチ処理S3では、ベクトル相関値を用い、そのマッチングを複数の点についてのみ行うので、画面全体を少ない処理量でサーチでき、かつこれにより、見落しのない高速な探索を実施でき、FAなどに適用可能な高速処理ができる。
By scanning the above-described rough search process S3 for an arbitrary point on the image 3 for the entire screen, all the article candidate data that matches the template 5 existing on the image can be detected.
Further, by performing this operation for a plurality of templates shown in FIG. 4A, all the article candidate data in a state where the templates are rotated can be detected.
Further, as described above, in the coarse search process S3, since the vector correlation value is used and matching is performed only for a plurality of points, the entire screen can be searched with a small amount of processing, and thereby, a high-speed that is not overlooked. Search can be performed, and high-speed processing applicable to FA and the like can be performed.

図5は本発明における線分探索の説明図である。
線分近似処理S4において、エッジ画像6からエッジを構成する線分データ8を作成する。
精密サーチ処理S5では、図5に示すように、物品候補データ7を探索基準多角形とし、その内側及び外側に探索幅を設けた領域を探索範囲とする。
続いて、探索基準多角形の各辺に相当する探索範囲ごとに、線分データ8が成す直線を決定する。この直線は、各線分の端点から直線までの距離の二乗和が最小になる直線(最小二乗直線)を求めることで決定する。その際、長さが短い線分の影響を抑えるため、線分の長さによる重み付けを行っている。
この処理を探索基準多角形の各辺ごとに実施し、その結果得られた複数の直線を組み合わせることで、多角形の位置を精密に決定する。
また、確信度として、(精密サーチで決定した多角形に射影した線分長)/(精密サーチで決定した多角形の周囲長)を定義し、この確信度が高い(例えば0.75以上)の場合、その位置に物品が存在する、と判定することで、物品の誤検出を防ぐことができる。
FIG. 5 is an explanatory diagram of line segment search in the present invention.
In line segment approximation processing S4, line segment data 8 constituting an edge is created from the edge image 6.
In the fine search process S5, as shown in FIG. 5, the article candidate data 7 is set as a search reference polygon, and areas having search widths inside and outside thereof are set as search ranges.
Subsequently, a straight line formed by the line segment data 8 is determined for each search range corresponding to each side of the search reference polygon. This straight line is determined by obtaining a straight line (minimum square line) that minimizes the sum of squares of the distance from the end point of each line segment to the straight line. At that time, in order to suppress the influence of the line segment having a short length, weighting by the length of the line segment is performed.
This process is performed for each side of the search reference polygon, and the position of the polygon is precisely determined by combining a plurality of straight lines obtained as a result.
Further, as the certainty factor, (the line segment length projected onto the polygon determined by the fine search) / (the perimeter length of the polygon decided by the fine search) is defined, and this certainty factor is high (for example, 0.75 or more). In this case, it is possible to prevent erroneous detection of an article by determining that the article exists at that position.

上述した本発明の方法及び装置によれば、 物品の形状データ4からテンプレート生成処理S1により画像上の物品の輪郭を示すテンプレート5を生成するので、ごく単純な形状データからテンプレート5を自動作成できる。これにより、ユーザにテンプレート登録の負担をかけることなく、数多くの物品に対応できる(数万種類以上を想定)。   According to the method and apparatus of the present invention described above, the template 5 indicating the outline of the article on the image is generated from the article shape data 4 by the template generation process S1, and therefore the template 5 can be automatically created from very simple shape data. . Thereby, it can respond to many articles | goods, without putting the burden of template registration to a user (supposing tens of thousands or more types).

また、テンプレート5とエッジ画像6のベクトル相関により物品候補データ7を作成する粗サーチ処理S3により、画面全体を少ない処理量でサーチでき、かつこれにより、見落しのない高速な探索を実施できる。   Further, the rough search process S3 for creating the article candidate data 7 based on the vector correlation between the template 5 and the edge image 6 allows the entire screen to be searched with a small amount of processing, and thereby a high-speed search without oversight can be performed.

また、物品候補データ7と線分データ8から線分探索により物品1の正確な位置と姿勢を決定する精密サーチ処理S5により、粗サーチの結果得られた物品候補位置近傍に、線分探索処理を加えることで、物品の位置と姿勢を精密に検出できる。
従って、本発明の手段により、高速かつ精密に物品を抽出する画像処理装置を実現することができる。
Further, a line search process is performed in the vicinity of the article candidate position obtained as a result of the rough search by the fine search process S5 for determining the accurate position and orientation of the article 1 by the line search from the article candidate data 7 and the line segment data 8. The position and posture of the article can be detected accurately.
Therefore, an image processing apparatus for extracting an article at high speed and accurately can be realized by the means of the present invention.

なお、本発明は上述した実施例及び実施形態に限定されず、本発明の要旨を逸脱しない範囲で種々変更できることは勿論である。   In addition, this invention is not limited to the Example and embodiment mentioned above, Of course, it can change variously in the range which does not deviate from the summary of this invention.

本発明の装置の全体構成図である。It is a whole block diagram of the apparatus of this invention. 本発明の方法の全体フロー図である。1 is an overall flow diagram of a method of the present invention. 本発明の方法の模式図である。FIG. 2 is a schematic diagram of the method of the present invention. 本発明におけるベクトル相関の説明図である。It is explanatory drawing of the vector correlation in this invention. 本発明における線分探索の説明図である。It is explanatory drawing of the line segment search in this invention. 従来のテンプレートマッチングの説明図である。It is explanatory drawing of the conventional template matching.

符号の説明Explanation of symbols

1 物品、2 パレット、3 画像、4 形状データ、5 テンプレート、
6 エッジ画像、7 物品候補データ、8 線分データ、9 位置と姿勢、
12 撮像装置、14 画像処理装置、
15 ホストコンピュータ、16 ケース情報データベース
1 article, 2 palettes, 3 images, 4 shape data, 5 templates,
6 edge image, 7 article candidate data, 8 line segment data, 9 position and orientation,
12 imaging device, 14 image processing device,
15 host computer, 16 case information database

Claims (5)

複数の同一物品が同一平面上に並んだ画像を撮像し、該画像から物品の位置及び姿勢を検出する方法であって、
前記物品の形状データから前記画像上の物品の輪郭を示すテンプレートを生成するテンプレート生成処理と、
前記画像から物品の形状を強調した二値のエッジ画像を作成するエッジ強調処理と、
前記テンプレートとエッジ画像のベクトル相関により物品候補データを作成する粗サーチ処理と、
前記エッジ画像からエッジを構成する線分データを作成する線分近似処理と、
前記物品候補データと線分データから線分探索により物品の正確な位置と姿勢を決定する精密サーチ処理と、を有する、ことを特徴とする物品の位置及び姿勢を検出する方法。
A method of capturing an image in which a plurality of identical articles are arranged on the same plane, and detecting the position and orientation of the article from the images,
A template generation process for generating a template indicating the outline of the article on the image from the shape data of the article;
Edge enhancement processing for creating a binary edge image in which the shape of the article is enhanced from the image;
A rough search process for creating article candidate data by vector correlation between the template and the edge image;
Line segment approximation processing for creating line segment data constituting an edge from the edge image;
A method for detecting the position and orientation of an article, comprising: a precise search process for determining an accurate position and orientation of an article from the article candidate data and line segment data by line segment search.
前記テンプレートは、物品の形状データを基に前記画像と同一スケールの輪郭を示す閉じた折線又は曲線であり、図心を中心に回転させた複数の輪郭線から構成される、ことを特徴とする請求項1に記載の物品の位置及び姿勢を検出する方法。   The template is a closed fold line or curve showing an outline of the same scale as the image based on the shape data of the article, and is composed of a plurality of outlines rotated about the centroid. A method for detecting the position and orientation of an article according to claim 1. 前記粗サーチ処理において、エッジ画像からテンプレートによるベクトル相関値を求め、該ベクトル相関値が所定の閾値より大きい画像上の位置と姿勢を物品候補データとする、ことを特徴とする請求項1に記載の物品の位置及び姿勢を検出する方法。   2. The rough search process, wherein a vector correlation value based on a template is obtained from an edge image, and a position and orientation on an image in which the vector correlation value is larger than a predetermined threshold value are used as article candidate data. Of detecting the position and posture of an article. 前記精密サーチ処理において、物品候補データの近傍に位置する線分データから線分探索により物品の正確な位置と姿勢を精密に検出する、ことを特徴とする請求項1に記載の物品の位置及び姿勢を検出する方法。   2. The article position according to claim 1, wherein in the precision search process, an accurate position and posture of the article are accurately detected by line segment search from line segment data located in the vicinity of the article candidate data. How to detect posture. 複数の同一物品が同一平面上に並んだ画像を撮像し、該画像から物品の位置及び姿勢を検出する装置であって、
前記画像を撮像する撮像装置と、前記画像を画像処理する画像処理装置とを備え、
該画像処理装置は、
前記物品の形状データから前記画像上の物品の輪郭を示すテンプレートを生成するテンプレート生成処理と、
前記画像から物品の形状を強調した二値のエッジ画像を作成するエッジ強調処理と、
前記テンプレートとエッジ画像のベクトル相関により物品候補データを作成する粗サーチ処理と、
前記エッジ画像からエッジを構成する線分データを作成する線分近似処理と、
前記物品候補データと線分データから線分探索により物品の正確な位置と姿勢を決定する精密サーチ処理と、を実行する、ことを特徴とする物品の位置及び姿勢を検出する装置。
An apparatus for capturing an image in which a plurality of identical articles are arranged on the same plane and detecting the position and orientation of the article from the images,
An imaging device that captures the image; and an image processing device that performs image processing on the image;
The image processing apparatus includes:
A template generation process for generating a template indicating the outline of the article on the image from the shape data of the article;
Edge enhancement processing for creating a binary edge image in which the shape of the article is enhanced from the image;
A rough search process for creating article candidate data by vector correlation between the template and the edge image;
Line segment approximation processing for creating line segment data constituting an edge from the edge image;
An apparatus for detecting the position and orientation of an article, comprising: executing an accurate search process for determining an accurate position and orientation of an article from the article candidate data and line segment data by a line segment search.
JP2005331162A 2005-11-16 2005-11-16 Method and apparatus for detecting the position and orientation of an article Pending JP2007140729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005331162A JP2007140729A (en) 2005-11-16 2005-11-16 Method and apparatus for detecting the position and orientation of an article

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005331162A JP2007140729A (en) 2005-11-16 2005-11-16 Method and apparatus for detecting the position and orientation of an article

Publications (1)

Publication Number Publication Date
JP2007140729A true JP2007140729A (en) 2007-06-07

Family

ID=38203527

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005331162A Pending JP2007140729A (en) 2005-11-16 2005-11-16 Method and apparatus for detecting the position and orientation of an article

Country Status (1)

Country Link
JP (1) JP2007140729A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010032258A (en) * 2008-07-25 2010-02-12 Ihi Corp Apparatus and method for recognizing position of work for depalletizing
JP2010064202A (en) * 2008-09-11 2010-03-25 Ihi Corp Picking device and method
JP2012014475A (en) * 2010-07-01 2012-01-19 Hitachi High-Technologies Corp Pattern matching method, image processor and computer program
US20160189360A1 (en) * 2014-12-30 2016-06-30 Tsinghua University Systems and methods for inspecting cargoes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04180183A (en) * 1990-11-15 1992-06-26 Mitsubishi Electric Corp Picture processing system
JPH09128547A (en) * 1995-11-01 1997-05-16 Matsushita Electric Ind Co Ltd Mounted parts inspection equipment
JP2001291105A (en) * 2000-04-04 2001-10-19 Kawasaki Heavy Ind Ltd Pattern recognition method and apparatus
JP2004235582A (en) * 2003-01-31 2004-08-19 Omron Corp Method for inspection of mounting error, and substrate inspection apparatus using this method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04180183A (en) * 1990-11-15 1992-06-26 Mitsubishi Electric Corp Picture processing system
JPH09128547A (en) * 1995-11-01 1997-05-16 Matsushita Electric Ind Co Ltd Mounted parts inspection equipment
JP2001291105A (en) * 2000-04-04 2001-10-19 Kawasaki Heavy Ind Ltd Pattern recognition method and apparatus
JP2004235582A (en) * 2003-01-31 2004-08-19 Omron Corp Method for inspection of mounting error, and substrate inspection apparatus using this method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010032258A (en) * 2008-07-25 2010-02-12 Ihi Corp Apparatus and method for recognizing position of work for depalletizing
JP2010064202A (en) * 2008-09-11 2010-03-25 Ihi Corp Picking device and method
JP2012014475A (en) * 2010-07-01 2012-01-19 Hitachi High-Technologies Corp Pattern matching method, image processor and computer program
US9141879B2 (en) 2010-07-01 2015-09-22 Hitachi High-Technologies Corporation Pattern matching method, image processing device, and computer program
US20160189360A1 (en) * 2014-12-30 2016-06-30 Tsinghua University Systems and methods for inspecting cargoes
KR101811270B1 (en) 2014-12-30 2017-12-21 칭화대학교 Method and system for checking goods
US10074166B2 (en) * 2014-12-30 2018-09-11 Tsinghua University Systems and methods for inspecting cargoes

Similar Documents

Publication Publication Date Title
JP6430064B2 (en) Method and system for aligning data
US9177404B2 (en) Systems and methods of merging multiple maps for computer vision based tracking
JP5940453B2 (en) Method, computer program, and apparatus for hybrid tracking of real-time representations of objects in a sequence of images
JP5096776B2 (en) Image processing apparatus and image search method
JP5877053B2 (en) Posture estimation apparatus and posture estimation method
JP2008107860A (en) Method for estimating conversion between image pairs, method for representing an image, device for the method, control device, and computer program
JP4709668B2 (en) 3D object recognition system
CN109493384B (en) Camera pose estimation method, system, device and storage medium
CN105009170A (en) Object identification device, method, and storage medium
CN110546651A (en) object recognition
CN113095187A (en) Examination paper correction method based on image feature matching alignment
JP6017343B2 (en) Database generation device, camera posture estimation device, database generation method, camera posture estimation method, and program
JP2014134856A (en) Subject identification device, subject identification method, and subject identification program
JP2002063567A (en) Device and method for estimating body position and attitude, method for feature point extraction method using the same, and image collating method
JP2009129237A (en) Image processing apparatus and method
JP2009216503A (en) Three-dimensional position and attitude measuring method and system
JP2002133413A (en) Method and apparatus for identifying a three-dimensional object using image processing
JP2011107878A (en) Position detection apparatus and position detection method
JP6946912B2 (en) Estimator program, estimator, and estimation method
JP2007140729A (en) Method and apparatus for detecting the position and orientation of an article
JP5993100B2 (en) Image processing apparatus and specific figure detection method
CN109254663B (en) A kind of use method of children's book assisted reading robot
JP6393495B2 (en) Image processing apparatus and object recognition method
Bui et al. A texture-based local soft voting method for vanishing point detection from a single road image
JP2017091202A (en) Object recognition method and object recognition apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080929

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110104

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110426