JPH11144057A - Device and method for image recognition - Google Patents

Device and method for image recognition

Info

Publication number
JPH11144057A
JPH11144057A JP9327144A JP32714497A JPH11144057A JP H11144057 A JPH11144057 A JP H11144057A JP 9327144 A JP9327144 A JP 9327144A JP 32714497 A JP32714497 A JP 32714497A JP H11144057 A JPH11144057 A JP H11144057A
Authority
JP
Japan
Prior art keywords
image
template
matching
recognition
recognition target
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
JP9327144A
Other languages
Japanese (ja)
Inventor
Tadahiro Kamijo
直裕 上条
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP9327144A priority Critical patent/JPH11144057A/en
Publication of JPH11144057A publication Critical patent/JPH11144057A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide the device and method for image recognition which can perform image recognition with good precision in a production line easily changing in environment. SOLUTION: In a template registering means 2, templates can be registered for one machine kind and one image to be recognized and when templates are registered for one machine kind and one image to be recognized, a product discriminating means 3 performs pattern matching against templates for the printed logo type on a product surface.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、製品の認識を画像
認識により行なう画像認識装置および画像認識方法に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image recognition apparatus and an image recognition method for recognizing a product by image recognition.

【0002】[0002]

【従来の技術】近年、例えば半導体業界において、製品
(電子部品)の表面に印字された文字を文字認識すること
で、製品の認識を行なう技術が着目されており、この種
の認識技術としては、製品の認識を、バーコードを用い
て行なうものや、製造番号を認識するもの等、さらに
は、印字されている文字の欠けや汚れ等に対応した認識
技術などもある。
2. Description of the Related Art In recent years, for example, in the semiconductor industry, products
Technology that recognizes products by character recognition of characters printed on the surface of (electronic components) has attracted attention, and this type of recognition technology uses barcodes to recognize products. In addition, there are recognition techniques for recognizing a production number, and further, recognition techniques for dealing with missing or stained printed characters.

【0003】例えば、特開平7−175894号には、
電子部品の表面に印字された文字をニューラルネットワ
ークを用いた認識方法で認識し、誤実装を防ぐほか、品
質,生産管理を同時に行なう技術が示されている。
For example, Japanese Patent Application Laid-Open No. 7-175894 discloses that
There is disclosed a technique for recognizing characters printed on the surface of an electronic component by a recognition method using a neural network, preventing erroneous mounting, and simultaneously controlling quality and production.

【0004】また、特開平6−44375号には、文字
等のマーキングされた材料の物質管理において、上流側
での画像データを下流の材料のデータと比較することに
より、異材を検出する技術が示されている。
Japanese Patent Application Laid-Open No. Hei 6-44375 discloses a technique for detecting a different material by comparing image data on the upstream side with data on the downstream material in the substance management of a material marked with characters or the like. It is shown.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上述し
た従来の技術では、製品の認識を、製品に印字されてい
る文字の認識のみで行なっており、多品種混合生産のラ
イン等で、ある程度の段階まで作り込まれてから文字を
印字して供給される部品などに対し、製品と印字されて
いる文字の整合までは検出できない。また、製品表面に
印字されるロゴなどは文字情報としての役割以上に製品
のアピールという点においてデザイン化されたパターン
として捉える必要があり、文字の規格との整合を取るこ
とは容易ではない。
However, in the prior art described above, the recognition of the product is performed only by the recognition of the characters printed on the product. It is not possible to detect even the matching between the product and the printed characters for parts that are printed and supplied with characters after they have been manufactured. In addition, a logo or the like printed on the surface of a product must be considered as a designed pattern in terms of appealing the product more than the role as character information, and it is not easy to match with the standard of characters.

【0006】また、ニューラルネットワーク等の学習機
能を用いて認識結果の検出を早めるための手法も数多く
なされてはいるが、多品種少量生産の製品を認識対象と
した場合、この認識対象を学習させるまでの期間内に、
生産が終了してしまう(打ち切られてしまう)場合も少な
くない。
There are many methods for speeding up the detection of recognition results using a learning function such as a neural network. However, when a product of high-mix low-volume production is to be recognized, the recognition target is learned. Within the period until
In many cases, production is terminated (cut off).

【0007】また、生産ラインの上流でテンプレートを
作成し、そのテンプレートを用いて、他の工程での認識
に用いる場合、環境照明の違いや途中の工程で汚れ等が
付着する可能性がある。
Further, when a template is created upstream of a production line and is used for recognition in another process using the template, there is a possibility that dirt or the like may be attached in a difference in environmental lighting or in a process in the middle.

【0008】本発明は、環境の変わりやすい生産ライン
での精度の良い画像認識が可能な画像認識装置および画
像認識方法を提供することを目的としている。
An object of the present invention is to provide an image recognition apparatus and an image recognition method capable of performing accurate image recognition on a production line in which the environment is easily changed.

【0009】特に、本発明は、容易にテンプレート登録
ができ、なおかつ、パターンマッチングを高精度に行な
う手法を提供し、予め認識対象の機種情報が知らされて
いるときはその照合がより有効となることの可能な画像
認識装置および画像認識方法を提供することを目的とし
ている。
In particular, the present invention provides a technique for easily registering a template and performing pattern matching with high accuracy, and when model information of a recognition target is known in advance, the matching becomes more effective. It is an object of the present invention to provide an image recognition device and an image recognition method that can perform the operation.

【0010】[0010]

【課題を解決するための手段】上記目的を達成するため
に、請求項1記載の発明は、生産ライン上を運搬される
製品表面の印字ロゴを撮像する画像撮像手段と、画像撮
像手段により撮像された印字ロゴ画像をテンプレートと
して登録するテンプレート登録手段と、生産ライン上を
運搬される以降の製品に対して、該製品表面の印字ロゴ
とテンプレート登録手段に登録されているテンプレート
とのパターンマッチングを行なうことにより製品識別を
行なう製品識別手段と、製品識別手段による製品識別結
果が認識閾値を超えない場合、現在識別スペースにある
製品のロゴ画像を新たなテンプレートとして登録するか
を提示する提示手段とを有し、前記テンプレート登録手
段には、1機種,1認識対象画像に対して複数のテンプ
レートが登録可能となっており、前記製品識別手段は、
1機種,1認識対象画像に対して複数のテンプレートが
登録されている場合に、製品表面の印字ロゴに対し、複
数のテンプレートとのパターンマッチングを行なうこと
を特徴としている。
In order to achieve the above-mentioned object, the invention according to claim 1 provides an image pickup means for picking up a printed logo on a surface of a product conveyed on a production line, and an image pickup means for picking up an image. Template registration means for registering the printed logo image as a template, and pattern matching between the printed logo on the surface of the product and the template registered in the template registration means for a product after being transported on the production line. Product identification means for performing product identification by performing, and presentation means for presenting whether to register a logo image of a product currently in the identification space as a new template if the product identification result by the product identification means does not exceed the recognition threshold. In the template registration means, a plurality of templates can be registered for one model and one recognition target image. It is, the product identification means,
When a plurality of templates are registered for one model and one recognition target image, pattern matching with a plurality of templates is performed on a printed logo on the product surface.

【0011】また、請求項2記載の発明は、生産ライン
上を運搬される製品表面の印字ロゴを撮像する画像撮像
手段と、画像撮像手段により撮像された印字ロゴ画像を
テンプレートとして登録するテンプレート登録手段と、
生産ライン上を運搬される以降の製品に対して、該製品
表面の印字ロゴとテンプレート登録手段に登録されてい
るテンプレートとのパターンマッチングを行なうことに
より製品識別を行なう製品識別手段とを有し、前記テン
プレート登録手段には、1機種,1認識対象画像に対し
て複数のテンプレートが登録可能となっており、前記テ
ンプレート登録手段は、製品識別手段による製品識別結
果が認識閾値を超えない場合、現在識別スペースにある
製品のロゴ画像を新たなテンプレートとして登録し、前
記製品識別手段は、1機種,1認識対象画像に対して複
数のテンプレートが登録されている場合に、製品表面の
印字ロゴに対し、複数のテンプレートとのパターンマッ
チングを行なうことを特徴としている。
According to a second aspect of the present invention, there is provided an image capturing means for capturing a printed logo on the surface of a product conveyed on a production line, and a template registration for registering a printed logo image captured by the image capturing means as a template. Means,
Product identification means for product identification by performing pattern matching between the printed logo on the surface of the product and the template registered in the template registration means, for products after being transported on the production line, A plurality of templates can be registered for one model and one recognition target image in the template registration means. If the product identification result by the product identification means does not exceed the recognition threshold, the template registration means The logo image of the product in the identification space is registered as a new template. When a plurality of templates are registered for one model and one image to be recognized, the product identification unit can register the logo on the product surface. The feature is that pattern matching with a plurality of templates is performed.

【0012】また、請求項3記載の発明は、請求項1ま
たは請求項2記載の画像認識装置において、前記テンプ
レート登録手段は、前記画像撮像手段によってテンプレ
ート登録用の画像が撮像された後、撮像された画像のラ
ベリングを行ない認識対象を各部品に分割し、各部品の
特徴量を検出し、各部品の特徴量が検出された各認識対
象に対して部品群からなるデータ構造体をテンプレート
として作成し、1機種,1認識対象画像中の各部品に対
して複数のテンプレートを準備するようになっており、
この場合、前記製品識別手段は、製品撮像画像中の各部
品に対して前記複数のテンプレートとパターンマッチン
グを行なうことを特徴としている。
According to a third aspect of the present invention, in the image recognition device according to the first or second aspect, the template registering means captures an image after the image for template registration is captured by the image capturing means. The recognition target is divided into components by performing labeling of the obtained image, the feature amount of each component is detected, and a data structure including a component group is used as a template for each recognition target in which the feature amount of each component is detected. Create and prepare multiple templates for each part in one model and one recognition target image.
In this case, the product identification means performs pattern matching with the plurality of templates for each component in the product captured image.

【0013】また、請求項4記載の発明は、請求項1ま
たは請求項2記載の画像認識装置において、前記テンプ
レート登録手段は、認識対象の各部品に対して既登録の
テンプレートとのパターンマッチングを行ない各部品の
認識閾値との比較を行なったときに、一致率の低い部品
に対してのみ、部品群からなるデータ構造体にテンプレ
ートとして登録することを特徴としている。
According to a fourth aspect of the present invention, in the image recognition apparatus according to the first or second aspect, the template registering means performs pattern matching for each component to be recognized with a registered template. When the comparison with the recognition threshold value of each component is performed, only a component having a low matching rate is registered as a template in a data structure including a component group.

【0014】また、請求項5記載の発明は、請求項1ま
たは請求項2記載の画像認識装置において、前記テンプ
レート登録手段は、認識対象画像とテンプレートとをパ
ターンマッチングさせた結果の一致率が他の認識対象候
補と近い場合、マッチングさせた結果をテンプレートと
して準備し、前記製品識別手段は、以降のパターンマッ
チングに、認識対象自体のマッチングと認識対象自体の
マッチング後の画像のマッチングとを行ない、認識対象
自体のマッチングにより形状が似通った認識対象群の中
からの識別を行なった後、さらに確認のために、認識対
象自体のマッチング後の画像のマッチングを行なうこと
を特徴としている。
According to a fifth aspect of the present invention, in the image recognition apparatus according to the first or second aspect, the template registration means determines that the matching rate of the result of pattern matching between the recognition target image and the template is different. If it is close to the recognition target candidate, the result of matching is prepared as a template, and the product identification unit performs matching of the recognition target itself and matching of the image after matching of the recognition target itself in the subsequent pattern matching, The method is characterized in that after performing recognition from a group of recognition targets having similar shapes by matching of the recognition target itself, matching of the image after matching of the recognition target itself is performed for further confirmation.

【0015】また、請求項6記載の発明は、請求項5記
載の画像認識装置において、前記テンプレート登録手段
は、認識対象自体のマッチング後の画像のマッチングの
一致率が、連続して高い値が得られる頻度を検出し、頻
度がある一定値を超えたとき、認識対象の入力画像を新
たなテンプレートとして登録する一方、これまでのテン
プレートを削除することを特徴としている。
According to a sixth aspect of the present invention, in the image recognition apparatus according to the fifth aspect, the template registration means determines that the matching rate of matching of the image after matching of the recognition target itself has a continuously high value. It is characterized in that the obtained frequency is detected, and when the frequency exceeds a certain value, the input image to be recognized is registered as a new template, while the previous template is deleted.

【0016】また、請求項7記載の発明は、請求項3ま
たは請求項5記載の画像認識装置において、前記製品識
別手段は、パターンマッチングを実行してマッチング画
像を得ると、マッチング画像のラベリングを行ないマッ
チング画像中の各部品の特徴量を検出し、マッチング画
像中、認識対象画像中の各部品の特徴量の比較により、
認識対象画像中の部品から新たな認識対象部品として選
別を行なって部品群よりなる新たなデータ構造体を作成
し、選別された部品のみに対してパターンマッチングを
行ない、形状が似通った認識対象群の画像中の認識対象
部品を選別することを特徴としている。
According to a seventh aspect of the present invention, in the image recognition apparatus of the third or fifth aspect, when the product identification means obtains a matching image by performing pattern matching, the product identification means performs labeling of the matching image. The feature amount of each part in the matching image is detected, and by comparing the feature amount of each part in the matching image and the recognition target image,
A new data structure consisting of a group of parts is created by selecting from the parts in the image to be recognized as a new part to be recognized, pattern matching is performed only on the selected parts, and a group of recognition objects with similar shapes Is characterized in that the parts to be recognized in the image are selected.

【0017】また、請求項8記載の発明は、請求項5ま
たは請求項7記載の画像認識装置において、前記テンプ
レート登録手段は、各部品ごとのパターンマッチングの
一致率の低い部品に対してマッチング後の画像をテンプ
レートとしてデータ構造体に付加する一方、形状が似通
った認識対象群の画像中の認識対象部品を選別し、テン
プレートの候補数を減らすことを特徴としている。
According to an eighth aspect of the present invention, in the image recognition apparatus according to the fifth or seventh aspect, the template registering means performs the matching after matching the parts having a low matching rate of the pattern matching for each part. Is added to the data structure as a template, while recognition target parts in the images of the recognition target group having similar shapes are selected to reduce the number of template candidates.

【0018】また、請求項9記載の発明は、請求項1記
載の画像認識装置において、前記テンプレート登録手段
は、前記画像撮像手段により生産ライン上を運搬される
製品表面の印字ロゴを撮像し、撮像された認識対象画像
としての印字ロゴ画像とテンプレート画像とのパターン
マッチングを行ない、認識対象画像とテンプレートの機
種が一致している場合には、印字ロゴ画像とテンプレー
ト画像との不一致部分を削除領域として登録する一方、
認識対象画像とテンプレートの機種が一致していない場
合には、印字ロゴ画像とテンプレート画像との一致部分
を削除領域として登録し、両者の削除領域を認識対象の
機種固有の削除領域として、パターンマッチングを行な
う前に認識対象画像とテンプレート画像から削除するこ
とを特徴としている。
According to a ninth aspect of the present invention, in the image recognition apparatus according to the first aspect, the template registration unit captures a print logo on a surface of a product conveyed on a production line by the image capture unit, Performs pattern matching between the captured logo image as the recognition target image and the template image, and if the recognition target image and the model of the template match, deletes the mismatched part between the printing logo image and the template image. While registering as
If the model of the recognition target image does not match the model of the template, the matching part between the printed logo image and the template image is registered as a deletion area, and the deletion areas of both are set as deletion areas specific to the model to be recognized. Is performed before the recognition target image and the template image are deleted.

【0019】また、請求項10記載の発明は、請求項1
記載の画像認識装置において、前記テンプレート登録手
段は、先ず、代表的テンプレートを作成し、これを第1
のテンプレートとして登録し、前記製品識別手段による
認識対象とテンプレートとのパターンマッチングをした
結果を、第2のテンプレートとして登録することを特徴
としている。
The invention according to claim 10 is the first invention.
In the image recognition device described above, the template registration unit first creates a representative template and stores the representative template in a first template.
Is registered as a second template, and the result of pattern matching between the recognition target and the template by the product identification means is registered as a second template.

【0020】また、請求項11記載の発明は、請求項
1,請求項2または請求項7記載の画像認識装置におい
て、前記テンプレート登録手段は、複数回のパターンマ
ッチングの結果、高い一致度が得られない場合、複数パ
ターンにおいて各パターン内でラベリングを行ない、各
部品ごとのマッチングを行ない、各部品において最適な
マッチングを行なった後、それらを合成した画像を1つ
のテンプレートとして登録することを特徴としている。
According to the eleventh aspect of the present invention, in the image recognition apparatus according to the first, second or seventh aspect, the template registering means obtains a high degree of matching as a result of a plurality of pattern matchings. If it is not possible, labeling is performed in each pattern in a plurality of patterns, matching is performed for each component, optimal matching is performed in each component, and an image obtained by combining them is registered as one template. I have.

【0021】また、請求項12記載の発明は、請求項1
0記載の画像認識装置において、前記テンプレート登録
手段は、全ての機種の認識対象画像の共通部分の画像を
代表的テンプレートとして登録し、新たな認識対象画像
に対して、新たな認識対象画像と代表的テンプレート画
像との共通部分の画像を新たな代表的テンプレート画像
として生成するようになっており、また、認識対象画像
とテンプレート画像とのパターンマッチングによる結果
画像をその認識対象に対する固有のテンプレート画像と
して登録し、前記製品識別手段は、代表的テンプレート
とパターンマッチングを行なった結果画像を固有のテン
プレートとパターンマッチングさせることを特徴として
いる。
The invention according to claim 12 is the first invention.
0, the template registration unit registers an image of a common part of the recognition target images of all models as a representative template, and registers a new recognition target image and a representative image for a new recognition target image. The image of the common part with the target template image is generated as a new representative template image, and a result image obtained by pattern matching between the recognition target image and the template image is used as a unique template image for the recognition target. The product identification means is registered, and the result of pattern matching with the representative template is subjected to pattern matching with the unique template.

【0022】また、請求項13記載の発明は、請求項1
記載の画像認識装置において、前記テンプレート登録手
段は、前記画像撮像手段が正しい位置で認識対象画像を
取得し、パターンマッチングにより画像中の認識対象を
検出すると、検出した認識対象を画像中より削除し、認
識対象を削除した画像を基本画像として、画像撮像手段
による撮像画像から基本画像を差し引いた画像をテンプ
レートとして取得することを特徴としている。
Further, the invention according to claim 13 is based on claim 1
In the image recognition device described above, the template registration unit deletes the detected recognition target from the image when the image capturing unit acquires a recognition target image at a correct position and detects a recognition target in the image by pattern matching. An image obtained by subtracting a basic image from an image captured by an image capturing unit is obtained as a template, using an image from which a recognition target has been deleted as a basic image.

【0023】[0023]

【発明の実施の形態】以下、本発明の実施形態を図面に
基づいて説明する。図1は本発明に係る画像認識装置の
構成例を示す図である。図1を参照すると、この画像認
識装置は、生産ライン上を運搬される製品表面の印字ロ
ゴを撮像する画像撮像手段1と、画像撮像手段1により
撮像された印字ロゴ画像をテンプレートとして登録する
テンプレート登録手段2と、生産ライン上を運搬される
以降の製品に対して、該製品表面の印字ロゴとテンプレ
ート登録手段2に登録されているテンプレートとのパタ
ーンマッチングを行なうことにより製品識別を行なう製
品識別手段3と、製品識別手段3による製品識別結果が
認識閾値を超えない場合、現在識別スペースにある製品
のロゴ画像を新たなテンプレートとして登録するかを提
示する提示手段4とを有し、前記テンプレート登録手段
2には、1機種,1認識対象画像に対して複数のテンプ
レートが登録可能となっており、前記製品識別手段3
は、1機種,1認識対象画像に対して複数のテンプレー
トが登録されている場合に、製品表面の印字ロゴに対
し、複数のテンプレートとのパターンマッチングを行な
うようになっている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a configuration example of an image recognition device according to the present invention. Referring to FIG. 1, the image recognition apparatus includes an image capturing unit 1 for capturing a printed logo on the surface of a product conveyed on a production line, and a template for registering a printed logo image captured by the image capturing unit 1 as a template. Product identification for registering the product by performing pattern matching between the printed logo on the product surface and the template registered in the template registration means 2 for the registration means 2 and the products conveyed on the production line. And means for presenting whether a logo image of a product currently in the identification space is to be registered as a new template when the result of product identification by the product identification means does not exceed the recognition threshold value. The registration means 2 can register a plurality of templates for one model and one recognition target image. Another means 3
When a plurality of templates are registered for one model and one recognition target image, pattern matching with a plurality of templates is performed on a printed logo on the product surface.

【0024】図2は図1の画像処理装置の処理動作を説
明するためのフローチャートである。なお、図2の説明
においては、簡単のため、製品として、機種A,Bの2
種類の機種のものが製造されるとする。図2を参照する
と、製品が機種A,Bのいずれのものであるかを認識さ
せるため、オペレータは、この画像認識装置に対して機
種情報(例えば、機種A,機種Bについての情報)を入力
する(ステップS1)。また、機種A,Bについての機種
情報の入力とともに、テンプレート登録手段2には機種
A,Bごとにそれぞれテンプレートが登録されていると
する。例えば、図3に示すように、機種Aのテンプレー
トとしてimage1,image2,…が登録され、
また、機種Bのテンプレートとしてimage1’,i
mage2’,…が登録されているとする。
FIG. 2 is a flowchart for explaining the processing operation of the image processing apparatus of FIG. In the description of FIG. 2, for simplicity, two types of models A and B are used as products.
It is assumed that different types of models are manufactured. Referring to FIG. 2, the operator inputs model information (for example, information on model A and model B) to the image recognition apparatus in order to recognize whether the product is of model A or B. (Step S1). It is also assumed that templates are registered in the template registration means 2 for each of the models A and B together with the input of model information on the models A and B. For example, as shown in FIG. 3, image1, image2,.
In addition, image1 ′, i
.. are registered.

【0025】このような初期設定を行なった後、生産ラ
イン上を運搬される製品表面の印字ロゴを画像撮像手段
1によって撮像し、この画像に対して、前処理を施す
(ステップS2)。しかる後、前処理を施した画像とテン
プレート登録手段2に登録されているテンプレートとの
パターンマッチングを行なう(ステップS3)。
After such initial setting, a print logo on the surface of the product conveyed on the production line is picked up by the image pick-up means 1, and the image is subjected to preprocessing.
(Step S2). Thereafter, pattern matching is performed between the preprocessed image and the template registered in the template registration means 2 (step S3).

【0026】いまの場合、テンプレート登録手段2に
は、図3に示すように、機種Aのテンプレートとしてi
mage1,image2,…が登録され、また、機種
Bのテンプレートとしてimage1’,image
2’,…が登録されているので、前処理を施した画像と
テンプレートimage1,image2,…,ima
ge1’,image2’,…とのパターンマッチング
を行なう。
In the present case, as shown in FIG.
are registered as image1, image2,..., and image1 ', image1
Since 2 ′,... Are registered, the preprocessed image and the template image1, image2,.
pattern matching is performed with ge1 ′, image2 ′,.

【0027】この結果、いま撮像した画像と各テンプレ
ートimage1,image2,…,image
1’,image2’,…との一致度がいずれも、認識
閾値よりも低いときには(一致度(類似度)が低いときに
は)(ステップS4)、いま撮像した画像を機種A,Bの
いずれかのテンプレートとして登録するかをオペレータ
に提示する(ステップS5)。
As a result, the image just captured and each template image1, image2,..., Image
When all the degrees of coincidence with 1 ′, image2 ′,... Are lower than the recognition threshold (when the degree of coincidence (similarity) is low) (step S4), the image that has just been picked up is selected from either model A or B. Whether to register as a template is presented to the operator (step S5).

【0028】これにより、オペレータがこれを例えば機
種Aのテンプレートとして登録するとしたときには、こ
れを機種Aのテンプレートとして新たに登録する(ステ
ップS6)。
Thus, when the operator registers this as a template of the model A, for example, it is newly registered as a template of the model A (step S6).

【0029】これに対し、ステップS5でオペレータが
テンプレートとして登録しないと判断したときには、い
ま撮像した画像を再認識させる(ステップS7)。
On the other hand, when it is determined in step S5 that the operator does not register the image as a template, the currently captured image is re-recognized (step S7).

【0030】このように、図1の画像処理装置では、機
種Aの認識対象画像に対するテンプレートをimage
1,image2,…、機種Bの認識対象画像に対する
テンプレートをimage1’,image2’,…と
して、1機種につき複数のテンプレートを持ち、図2の
フローチャートのステップS3でパターンマッチングを
行なう際、一致率の閾値を設定しておき、全てのテンプ
レートとのパターンマッチングを行ない、各テンプレー
トとのパターンマッチング結果(一致度)の全てが閾値を
超えない場合(全てのテンプレートと類似していないと
判断されるとき)、この認識対象画像を新たなテンプレ
ートとして加えることができる。
As described above, in the image processing apparatus of FIG. 1, the template for the recognition target image of the model A is stored in the image
, Image2,..., The template for the recognition target image of model B is image1 ′, image2 ′,..., Each model has a plurality of templates, and when performing pattern matching in step S3 of the flowchart of FIG. Set a threshold value, perform pattern matching with all templates, and if all of the pattern matching results (matching degrees) with each template do not exceed the threshold value (when it is determined that all templates are not similar) ), This recognition target image can be added as a new template.

【0031】図1の画像認識装置は、生産の合理化等に
よる部品の共通化に伴なう部品の組み付け間違いを防
ぎ、また作業者の介入しづらい暗室の設定や柔軟性のな
い光学系の固定をすることなく(人が介在しにくい閉じ
た光学系を用いることなく)、手組み中心の生産ライン
でも応用できる。すなわち、安定しにくい環境照明下や
製品成形の金型の精度、製造元の違い等による表面形状
の粗さの非統一性から影響を受ける撮像画像(入力画像)
のばらつきに対して、一機種について複数のテンプレー
トを用意することにより、誤認識,誤判定,過剰認識を
行なうことなく、製品の精度良い認識が可能となる。
The image recognition apparatus shown in FIG. 1 prevents mistakes in assembling parts due to the common use of parts due to rationalization of production, etc., setting of a dark room where it is difficult for an operator to intervene, and fixing of an inflexible optical system. It can also be applied to production lines that focus on manual assembly without the need to use closed optical systems that are difficult for humans to intervene. In other words, the captured image (input image) that is affected by the unevenness of the surface shape roughness due to environmental lighting that is difficult to stabilize, the accuracy of the mold for product molding, the difference of the manufacturer, etc.
By preparing a plurality of templates for one model with respect to the variation of, it is possible to accurately recognize the product without performing erroneous recognition, erroneous determination, and excessive recognition.

【0032】従って、例えば、不規則な多品種少量生産
をされている製品の前面に印字されたロゴの認識を、手
組み主体の生産ライン(例えば、天井、ラインサイド、
隣の天井、隣のラインサイドそれぞれに独立に操作され
る環境照明が設置されている生産ライン)で行なう場合
などに有用である。
Therefore, for example, recognition of a logo printed on the front of a product that is being irregularly produced in a large variety and in small quantities is performed by a production line mainly composed of hands (for example, ceiling, line side,
This is useful in a case where the lighting is performed on a production line where environmental lighting that is independently operated is installed on the next ceiling and the next line side.

【0033】なお、図1の画像処理装置では、生産ライ
ン上を複数種の製品(例えば2種類の製品A,B)が運搬
されるとしており、これにより、撮像画像をいずれかの
機種のテンプレートとして登録するかをオペレータに提
示して判断させる必要があったが(提示手段4を必要と
したが)、例えば、生産ライン上を1種類の製品(例えば
製品A)だけが運搬されるような場合などには、テンプ
レートとしては、1つの機種のものだけが登録され、撮
像画像とテンプレートとのパターンマッチングの結果、
その一致度が認識閾値よりも低いときには(一致度が低
いときには)、この撮像画像を1つの機種のテンプレー
トとして自動的に登録させることができる。そして、こ
の場合には、画像認識装置は、図1のかわりに、図4の
構成のものにすることができる。すなわち、提示手段4
は、設けられる必要はない。
In the image processing apparatus shown in FIG. 1, a plurality of types of products (for example, two types of products A and B) are conveyed on a production line. It was necessary to present to the operator whether or not to register as (registering means 4 was required). However, for example, only one type of product (for example, product A) is transported on the production line. In such cases, only one model is registered as a template, and as a result of pattern matching between the captured image and the template,
When the degree of coincidence is lower than the recognition threshold (when the degree of coincidence is low), the captured image can be automatically registered as a template of one model. In this case, the image recognition device can be configured as shown in FIG. 4 instead of FIG. That is, the presentation means 4
Need not be provided.

【0034】また、図1あるいは図4の画像認識装置に
おいて、テンプレート登録手段2は、より詳細には、画
像撮像手段1によってテンプレート登録用の画像が撮像
された後、撮像された画像のラベリングを行ない認識対
象を各部品に分割し、各部品の特徴量を検出し、各部品
の特徴量が検出された各認識対象に対して部品群からな
るデータ構造体をテンプレートとして作成し、1機種,
1認識対象画像中の各部品に対して複数のテンプレート
を準備することができ、この場合、製品識別手段3は、
製品撮像画像中の各部品に対して複数のテンプレートと
パターンマッチングを行なうようになっている。
In the image recognition apparatus shown in FIG. 1 or FIG. 4, the template registration means 2 more specifically, after the image for template registration is captured by the image capturing means 1, performs labeling of the captured image. The recognition target is divided into components, the feature amount of each component is detected, and a data structure including a component group is created as a template for each recognition target in which the feature amount of each component is detected.
A plurality of templates can be prepared for each component in one recognition target image. In this case, the product identification unit 3
Pattern matching with a plurality of templates is performed on each component in a product captured image.

【0035】例えば、機種Aの製品に付されたロゴが図
5に示すようなα,β,γよりなるロゴであるとする
と、このロゴ(認識対象としてのロゴ)は、全体として、
image1として捉えられ、image1は、3つの
部品α,β,γの各々の画像image1α,imag
e1β,image1γからなるものとして捉えられ
る。また、機種Aの製品に付されたロゴが図6に示すよ
うなα,β,γよりなるロゴであるとすると、このロゴ
(認識対象としてのロゴ)は、全体として、image2
として捉えられ、image2は、3つの部品α,β,
γの各々の画像image2α,image2β,im
age2γからなるものとして捉えられる。
For example, assuming that the logo attached to the product of the model A is a logo composed of α, β, and γ as shown in FIG.
image1 is image1, image1 of each of the three parts α, β, γ, image1α, image
e1β and image1γ. If the logo attached to the product of the model A is a logo composed of α, β, and γ as shown in FIG.
(Logo as recognition target) is, as a whole, image2
Image2 has three parts α, β,
Each image image2α, image2β, im of γ
age2γ.

【0036】このように、図5のロゴを機種Aのima
ge1のimage1α,image1β,image
1γとして、また、図6に示すようなα,β,γよりな
るロゴを機種Aのimage2のimage2α,im
age2β,image2γとして、図7に示すような
機種Aをタグとするデータ構造体で登録することができ
る。テンプレートが図7に示すようなデータ構造体で登
録されている場合、各部品について独立にパターンマッ
チングを行ない、全体の一致率の高さから、検出結果を
タグである機種Aとする。
Thus, the logo of FIG.
image1α, image1β, image of ge1
As 1γ, a logo composed of α, β, and γ as shown in FIG. 6 is used as image2α, im of image2 of model A.
The data can be registered as age2β and image2γ in a data structure having the model A as a tag as shown in FIG. If the template is registered in a data structure as shown in FIG. 7, pattern matching is performed independently for each component, and the detection result is set as a tag, model A, based on the overall matching rate.

【0037】図7に示すようなデータ構造体が用いられ
る場合には、認識対象の画像が複数の部品からなると
き、複数のテンプレート画像中の部品を分解し、各々認
識することにより、認識対象中の部品のばらつきに対応
し、また、環境からの影響が画像中の部品ごとに作用す
る場合でも、一機種の認識対象画像を各部品に分離し、
データ構造体として扱い構造体中の部品の一致度を見る
ことにより、誤認識率、誤判定率、過剰認識率を低減で
きる。
When a data structure as shown in FIG. 7 is used, when the image to be recognized is composed of a plurality of parts, the parts in the plurality of template images are decomposed and recognized, thereby recognizing each of the parts. In order to cope with the variation of the components in the image and to separate the recognition target image of one model into each component,
The misrecognition rate, the misjudgment rate, and the overrecognition rate can be reduced by treating the data structure as a data structure and checking the degree of coincidence of components in the structure.

【0038】また、図1あるいは図4の画像認識装置に
おいて、テンプレート登録手段2は、上記のような登録
方式のかわりに、認識対象の各部品に対して既登録のテ
ンプレートとのパターンマッチングを行ない各部品の認
識閾値との比較を行なったときに、一致率の低い部品に
対してのみ、部品群からなるデータ構造体にテンプレー
トとして登録することもできる。すなわち、図7のよう
なテンプレート(機種ごとのデータ構造体)のかわりに、
例えば、図8に示すように、テンプレートを各部品中心
のデータ構造体のものにし(imageαのデータ構
造,imageβのデータ構造,imageγのデータ
構造体にし)、それぞれの部品のデータ構造image
α,imageβ,imageγに対してテンプレート
の登録を行なっても良い。この場合には、安定して高い
一致率が得られる部品に対しては(図2の例では、im
ageβに対しては)、テンプレートの登録数が少なく
て済み、例えば図9のようにノイズが偏った部品にだけ
影響し安定して得られない場合、多くのテンプレートを
用意して過剰認識を防ぐ。
In the image recognition apparatus shown in FIG. 1 or FIG. 4, the template registration means 2 performs pattern matching of each component to be recognized with a registered template instead of the above-described registration method. When a comparison with the recognition threshold value of each component is performed, only a component having a low matching rate can be registered as a template in a data structure including a component group. That is, instead of a template (a data structure for each model) as shown in FIG.
For example, as shown in FIG. 8, the template is made to have a data structure of each component center (a data structure of imageα, a data structure of imageβ, and a data structure of imageγ), and the data structure of each component is image.
A template may be registered for α, imageβ, and imageγ. In this case, for a part for which a high matching rate is stably obtained (in the example of FIG. 2, im
(for age β), the number of registered templates is small. For example, as shown in FIG. 9, when only noise-biased parts are affected and cannot be obtained stably, many templates are prepared to prevent excessive recognition. .

【0039】このように、テンプレートとして図8に示
すようなデータ構造体が用いられる場合、一機種をタグ
とするデータ構造体をとっている各部品群からなるテン
プレートの数を一様とせず、それぞれのパターンマッチ
ングによる一致率の低い部品に対してのみ新たにテンプ
レートとしてデータ構造体に登録することで、余計にテ
ンプレート数を増加させることなく、画像記憶装置の容
量を削減するが可能となり、同時に、認識候補数を抑え
ることにより認識時間を短縮させることが可能となる。
As described above, when a data structure as shown in FIG. 8 is used as a template, the number of templates composed of each component group having a data structure with one model as a tag is not uniform. By registering a new template as a template only for a part having a low matching rate by each pattern matching, it is possible to reduce the capacity of the image storage device without increasing the number of templates. By reducing the number of recognition candidates, the recognition time can be reduced.

【0040】また、図1あるいは図4の画像認識装置に
おいて、テンプレート登録手段2は、認識対象画像とテ
ンプレートとをパターンマッチングさせた結果の一致率
が他の認識対象候補と近い場合、マッチングさせた結果
をテンプレートとして準備し、製品識別手段3は、以降
のパターンマッチングに認識対象自体のマッチングと認
識対象自体のマッチング後の画像のマッチングとを行な
い、認識対象自体のマッチングにより形状が似通った認
識対象群の中からの識別を行なった後、さらに確認のた
めに、認識対象自体のマッチング後の画像のマッチング
を行なうようになっていても良い。
In the image recognition apparatus shown in FIG. 1 or FIG. 4, the template registration means 2 matches the recognition target image and the template when the matching rate of the result of pattern matching is close to other recognition target candidates. The result is prepared as a template, and the product identification unit 3 performs matching of the recognition target itself and matching of the image after matching of the recognition target itself in the subsequent pattern matching, and the recognition target having a similar shape due to the matching of the recognition target itself. After the identification from the group, the matching of the image after the matching of the recognition target itself may be performed for further confirmation.

【0041】例えば図10がある機種についての認識対
象画像であり、図11がその機種に対するテンプレート
であり、図12が異なる機種のテンプレートであるとす
る場合、先ず、図10の認識対象画像と図11,図12
のテンプレートとをそれぞれパターンマッチングする。
なお、これらのパターンマッチングは、2値化画像で行
ない、マッチングは画像中の対象を1(図中 黒)、背景
を0(図中 白)として、排他的論理和(ex−OR)画像
をとり(不一致部分を1として残し)、これから、一致度
を求めることによってなされる。具体的に、認識対象画
像の画素数をu、テンプレート画像の画素数をv、マッ
チング後の画像の画素数をwとすると、一致度xは、次
式のように求められる。
For example, assuming that FIG. 10 is a recognition target image for a certain model, FIG. 11 is a template for the model, and FIG. 12 is a template for a different model, first, the recognition target image of FIG. 11, FIG.
And each of the templates is subjected to pattern matching.
Note that these pattern matchings are performed on a binarized image, and the matching is performed by setting an object in the image to 1 (black in the figure) and setting a background to 0 (white in the figure), and forming an exclusive OR (ex-OR) image. This is done by taking a match (leaving the unmatched part as 1) and then determining the degree of match. Specifically, assuming that the number of pixels of the image to be recognized is u, the number of pixels of the template image is v, and the number of pixels of the image after matching is w, the degree of coincidence x is obtained by the following equation.

【0042】[0042]

【数1】 x=100×(u+v−w)/(u+v) 「%」X = 100 × (u + v−w) / (u + v) “%”

【0043】数1において、類似する画像では、(u+
v)>>wとなり、大きなS/Nが得られないため、一
致度が低い場合には、認識対象画像とそのテンプレート
との間のパターンマッチングによる結果画像,すなわち
図13の結果画像をテンプレートとしてさらに登録し、
他の機種との結果画像,すなわち図14の結果画像とこ
のテンプレート(図13の結果画像)のマッチングを行な
い、上式より一致度を求めて、認識を行なうことができ
る(マッチング後の画像を用いた確認ルーチンを行なう
ことができる)。
In Equation 1, for similar images, (u +
v) >> w, and a large S / N cannot be obtained. If the matching degree is low, the result image obtained by pattern matching between the recognition target image and the template, that is, the result image in FIG. Register more,
The result image of another model, that is, the result image of FIG. 14 is matched with the template (the result image of FIG. 13), and the matching degree is obtained from the above equation to perform recognition (the image after the matching is obtained). The used confirmation routine can be performed).

【0044】例えば、生産ラインと画像撮像手段1との
光学距離が、経時変化等により変化したり、製品自体の
光学系と垂直な軸周りに回転した場合、パターンマッチ
ングの一致率が低下し、製品のロゴ等は仕様の違い程度
ではロゴ自体に大差がないため、ほかの認識対象との一
致率と差がなくなる。そこで、図13のようなマッチン
グ後の画像をテンプレートとして用いることにより、一
致部分を取り除いた、S/Nを向上させたパターンマッ
チングを行なうことが可能となる。すなわち、似通った
画像とのパターンマッチングは画像中に不一致部分も多
いが一致部分も多くS/Nが悪い。そこで、確認ルーチ
ンとして一致していないはずであろう、不一致部分のテ
ンプレートを準備することにより、S/Nを向上するこ
とを可能にする。また、経時変化等によりいつも一定の
不一致部分が得られるような過剰認識の場合、その不一
致部分の画像の繰り返し誤差をテンプレートとして正し
いずれ方を検出し、確認ルーチンとして精度高い経時変
化に強いパターンマッチングが可能となる。
For example, when the optical distance between the production line and the image pickup means 1 changes over time or the like, or when the product is rotated around an axis perpendicular to the optical system of the product itself, the matching rate of pattern matching decreases. Since there is no great difference in the logo of a product or the like in the degree of the difference in specifications, there is no difference in the matching rate with other recognition targets. Therefore, by using the image after the matching as shown in FIG. 13 as a template, it is possible to perform pattern matching with the S / N improved with the matching portion removed. That is, in pattern matching with a similar image, there are many unmatched portions in the image, but there are many matched portions and the S / N is poor. Therefore, it is possible to improve the S / N by preparing a template of a mismatched portion that would not match as a confirmation routine. Also, in the case of over-recognition where a certain mismatched part is always obtained due to changes over time, etc., a pattern matching method is used that detects the correct shift using the repetition error of the image of the mismatched part as a template and performs a pattern matching that is highly resistant to highly accurate changes over time as a confirmation routine. Becomes possible.

【0045】また、上記のようにマッチング後の画像を
テンプレートとして用いることにより、一致部分を取り
除いた、S/Nを向上させたパターンマッチングを行な
う場合、テンプレート登録手段2は、認識対象自体のマ
ッチング後の画像のマッチングの一致率が、連続して高
い値が得られる頻度を検出し、頻度がある一定値を超え
たとき、認識対象の入力画像を新たなテンプレートとし
て登録する一方、これまでのテンプレートを削除するよ
うにしても良い。
Further, when using the image after the matching as a template as described above to perform the pattern matching with the S / N improved by removing the matching part, the template registration means 2 performs matching of the recognition target itself. The matching rate of subsequent image matching detects the frequency at which continuously high values are obtained, and when the frequency exceeds a certain value, the input image to be recognized is registered as a new template. The template may be deleted.

【0046】例えば認識対象画像が図10に示すような
ものであり、その機種に対するテンプレートが図11の
ものであるとき、各認識対象画像について、図13に示
すパターンマッチングの結果画像が高い頻度で得られる
ならば、テンプレート画像から図11のものを削除し、
認識対象画像である図10をテンプレートとして登録し
ても良い。
For example, if the recognition target image is as shown in FIG. 10 and the template for the model is that of FIG. 11, the pattern matching result image shown in FIG. If it is obtained, delete the thing of FIG. 11 from the template image,
The recognition target image shown in FIG. 10 may be registered as a template.

【0047】このように、不一致部分をテンプレートと
したパターンマッチング時の一致率が高く、またその頻
度が高い場合には、当初登録したテンプレートとは異な
り現在の入力画像である認識対象の画像が繰り返して得
られると判断し、これをテンプレートとして新たに登録
することで、前述のようなマッチング後の画像を用いた
確認ルーチンを省くことができ、認識速度を早めること
が可能となる。また、これまで用いていたテンプレート
を削除することにより記憶装置の容量を削除することが
可能となる。また、このようなテンプレートのリフレッ
シュは自動的に行なうことができる。なお、テンプレー
トの自動更新は、頻度を限定することにより行なうよう
にしても良い。
As described above, when the matching rate at the time of pattern matching using an unmatched part as a template is high and the frequency is high, the image to be recognized, which is the current input image, is different from the initially registered template. It is determined that the image is obtained as a template, and this is newly registered as a template, whereby the confirmation routine using the image after matching as described above can be omitted, and the recognition speed can be increased. Further, by deleting the template used so far, the capacity of the storage device can be deleted. Further, such a template refresh can be automatically performed. The automatic updating of the template may be performed by limiting the frequency.

【0048】また、テンプレート登録手段2および製品
識別手段3は、パターンマッチングを実行してマッチン
グ画像を得ると、マッチング画像のラベリングを行ない
マッチング画像中の各部品の特徴量を検出し、マッチン
グ画像中、認識対象画像中の各部品の特徴量の比較によ
り、認識対象画像中の部品から新たな認識対象部品とし
て選別を行なって部品群よりなる新たなデータ構造体を
作成し、選別された部品のみに対してパターンマッチン
グを行ない、形状が似通った認識対象群の画像中の認識
対象部品を選別するようになっていても良い。
When the template registration means 2 and the product identification means 3 obtain a matching image by executing pattern matching, the template registration means 2 performs labeling of the matching image, detects the feature amount of each component in the matching image, and detects the feature amount in the matching image. By comparing the feature amounts of each part in the recognition target image, the parts in the recognition target image are selected as new recognition target parts to create a new data structure consisting of a part group, and only the selected parts , Pattern matching may be performed on the recognition target parts in the images of the recognition target group having a similar shape.

【0049】例えば、認識対象画像が図10に示すもの
であり、図12に示すような新たな認識対象とのマッチ
ング画像を図14として、結果画像中のラベリングを行
ない、面積と重心を検出し、これら検出値から新たな認
識対象中のどの部品が異なる部品かを判断して、新たな
機種名をタグにしてデータ構造体を作成するようにする
ことができる。なお、上記手順で検出されない、一致率
の高い部品についてはそのまま共用し、検出された部品
に対してのみ新たなデータ構造体のメンバーとして登録
することもできる。
For example, the image to be recognized is shown in FIG. 10, and a matching image with a new object to be recognized as shown in FIG. 12 is shown in FIG. 14, labeling is performed in the resulting image, and the area and the center of gravity are detected. It is possible to determine which component in the new recognition target is a different component from these detected values, and create a data structure using the new model name as a tag. Note that parts having a high matching rate that are not detected in the above procedure can be shared as they are, and only the detected parts can be registered as members of a new data structure.

【0050】図15には、このようにして作成された新
たなデータ構造体の一例が示されている。図15におい
て、上記手順で検出された部品をimage1’γとし
て、image1αとimage1’αには同一の部品
の画像ファイル名を、image1βとimage1’
βも同一の部品の画像ファイル名を登録し、どちらも同
一の部品の画像を参照できるようにしておくことによ
り、膨大な容量の画像ファイルを削除できる。
FIG. 15 shows an example of a new data structure created in this way. In FIG. 15, the parts detected in the above procedure are assumed to be image1′γ, image1α and image1′α are image file names of the same part, and image1β and image1 ′.
By registering the image file name of the same part as β, and making it possible to refer to the image of the same part in both cases, it is possible to delete a huge amount of image files.

【0051】このように、パターンマッチングにより得
られた結果画像から認識対象中のどの部品が一致率が低
いかを判断し、データ構造体のテンプレートから一致率
の低い部品のみの認識を行ない、高い一致率が得られな
い場合、新たに現在の認識対象である製品名(図15の
例では、B)をタグとしたデータ構造体を作成すること
により、機種ごとのロゴの一致部分を共用したテンプレ
ートを作成し、記憶装置の容量を圧倒的に削除すること
が可能となり、また、共用部品を持つ機種間の識別にお
いては非共用部品においてのみ認識を行なうことにより
S/Nを向上したマッチングが可能となる。
As described above, it is determined which component in the recognition target has a low matching rate from the result image obtained by the pattern matching, and only the component having a low matching rate is recognized from the template of the data structure to obtain a high matching rate. If the matching rate cannot be obtained, the matching part of the logo for each model is shared by creating a new data structure with the product name (B in the example of FIG. 15) of the current recognition target as a tag. Templates can be created and the capacity of the storage device can be overwhelmingly deleted. In addition, in the identification between models having shared parts, matching with improved S / N is realized by performing recognition only on non-shared parts. It becomes possible.

【0052】また、テンプレート登録手段2は、各部品
ごとのパターンマッチングの一致率の低い部品に対して
マッチング後の画像をテンプレートとしてデータ構造体
に付加する一方、形状が似通った認識対象群の画像中の
認識対象部品を選別し、テンプレートの候補数を減らす
ようにしても良い。
The template registration means 2 adds an image after matching to a data structure as a template for a part having a low matching rate of pattern matching for each part, and an image of a recognition target group having a similar shape. The components to be recognized may be selected and the number of template candidates may be reduced.

【0053】例えば、認識対象製品(ロゴ)が図10と図
12で示される2機種のみのとき、S/N向上のために
もimage1αとimage1’α、image1β
とimage1’βに関するパターンマッチングをしな
いほうが良いため、非共用部分であるimage1γと
image1’γのみを両者のテンプレートとしてパタ
ーンマッチングに利用し、新たな認識対象製品に対して
のみ、共用部分を含めたテンプレートを用いて共用部分
を検出するというように、パターンマッチングに使うテ
ンプレートを限定することもできる。
For example, when the recognition target product (logo) is only the two models shown in FIGS. 10 and 12, image1α, image1′α, and image1β are also used to improve the S / N ratio.
Since it is better not to perform pattern matching on image1 and image1'β, only image1γ and image1'γ, which are non-common parts, are used for pattern matching as templates for both, and the common part is included only for a new recognition target product. It is also possible to limit the templates used for pattern matching, such as detecting a common part using a template.

【0054】このように、形状が似通った認識対象同上
の認識において、共用部分をテンプレート構造体から削
除し、認識対象候補を削減することにより、より高速
で、S/Nを向上させ、さらに記憶装置の容量を削除す
ることが可能となる。
As described above, in the recognition of the recognition target having the similar shape, the common part is deleted from the template structure to reduce the number of recognition target candidates, thereby improving the S / N at a higher speed and further storing. The capacity of the device can be deleted.

【0055】また、テンプレート登録手段2は、画像撮
像手段1により生産ライン上を運搬される製品表面の印
字ロゴを撮像し、撮像された認識対象画像としての印字
ロゴ画像とテンプレート画像とのパターンマッチングを
行ない、認識対象画像とテンプレートの機種が一致して
いる場合には、印字ロゴ画像とテンプレート画像との不
一致部分を削除領域として登録する一方、認識対象画像
とテンプレートの機種が一致していない場合には、印字
ロゴ画像とテンプレート画像との一致部分を削除領域と
して登録し、両者の削除領域を認識対象の機種固有の削
除領域として、パターンマッチングを行なう前に認識対
象画像とテンプレート画像から削除するようになってい
ても良い。
The template registration means 2 captures a printed logo on the surface of the product conveyed on the production line by the image capturing means 1, and performs pattern matching between the captured logo image as a recognition target image and the template image. If the recognition target image and the template model match, register the mismatched part between the printed logo image and the template image as the deletion area, but if the recognition target image and the template model do not match Register the matching part between the printed logo image and the template image as a deletion area, and delete both of the deletion areas from the recognition target image and the template image before performing pattern matching, as a deletion area specific to the model to be recognized. It may be.

【0056】例えば生産管理にバーコード情報を用いて
いる場合、バーコード情報と製品の機種との照合が重要
であり、認識対象画像とテンプレート画像が限定でき、
機種が一致していると仮定できる場合、図13に示され
るような不一致部分を画像の座標値で削除領域として、
前処理の段階で認識対象画像とテンプレート画像から削
除し、パターンマッチングを行なう。また、認識対象画
像とテンプレート画像が限定でき、機種が一致していな
いと仮定できる場合、図16に示すような両者の一致部
分を画像の座標値で削除領域として、前処理の段階で認
識対象画像とテンプレート画像から削除し、パターンマ
ッチングを行なう。
For example, when barcode information is used for production management, it is important to match the barcode information with the product model, and the recognition target image and the template image can be limited.
If it can be assumed that the models match, a non-matching part as shown in FIG.
In the preprocessing stage, the image is deleted from the recognition target image and the template image, and pattern matching is performed. If the recognition target image and the template image can be limited and it can be assumed that the models do not match, the matching part between the two as shown in FIG. Delete from the image and the template image and perform pattern matching.

【0057】このように、認識対象画像中に削除領域を
設けて、特徴差が少ない共通部分や、形状が微細、複雑
により認識、一致しづらい部分を削除して、パターンマ
ッチングを行なうことで、S/N、一致率を向上させ、
誤認識率、誤判定率、過剰認識率を低減することが可能
となる。
As described above, the pattern matching is performed by providing the deletion area in the recognition target image and deleting the common part having a small characteristic difference and the part which is difficult to recognize and match due to the minute and complicated shape. Improve S / N, matching rate,
It is possible to reduce the erroneous recognition rate, erroneous determination rate, and excessive recognition rate.

【0058】また、テンプレート登録手段2は、代表的
テンプレートを作成し、これを第1のテンプレートとし
て先ず登録し、しかる後、製品識別手段3による認識対
象とテンプレートとのパターンマッチングをした結果
を、第2のテンプレートとして登録するようになってい
ても良い。
The template registering means 2 creates a representative template, registers it first as a first template, and then stores the result of pattern matching between the object to be recognized by the product identifying means 3 and the template. It may be registered as a second template.

【0059】具体的に、例えば認識対象画像とテンプレ
ート画像との論理積(AND)画像を代表的なテンプレー
トとして、両者の画像からパターンマッチングによりA
ND画像を削除しておき、削除後の両者の画像を新たな
認識対象画像とテンプレート画像としてパターンマッチ
ングを行ない、数1を用いて一致度を評価することがで
きる。
More specifically, for example, a logical product (AND) image of a recognition target image and a template image is used as a representative template, and A
The ND image is deleted, pattern matching is performed using the two images after deletion as a new recognition target image and a template image, and the degree of coincidence can be evaluated using Equation 1.

【0060】このように、代表的なテンプレートを登録
し、そのテンプレートとのパターンマッチングを行な
い、得られた結果画像を真のテンプレートとすることに
より、不一致部分のみをパターンマッチングに用いるこ
とができるため、S/Nを向上させ、さらにテンプレー
トを登録する記憶装置の容量を大幅に削減することが可
能となる。
As described above, by registering a typical template, performing pattern matching with the template, and using the obtained result image as a true template, only the mismatched portion can be used for pattern matching. , S / N can be improved, and the capacity of the storage device for registering the template can be significantly reduced.

【0061】また、テンプレート登録手段2は、複数回
のパターンマッチングの結果、高い一致度が得られない
場合、複数パターンにおいて各パターン内でラベリング
を行ない、各部品ごとのマッチングを行ない、各部品に
おいて最適なマッチングを行なった後、それらを合成し
た画像を1つのテンプレートとして登録し、周期的に上
記作業を行なうようになっていても良い。
If a high degree of matching cannot be obtained as a result of the pattern matching a plurality of times, the template registration means 2 performs labeling in each pattern in a plurality of patterns, performs matching for each component, and performs After performing the optimal matching, an image obtained by synthesizing them may be registered as one template, and the above operation may be performed periodically.

【0062】例えば図3で示されるテンプレートを用い
たパターンマッチングにより高い一致率が得られた場合
には、認識回数を減少させることができるが、高い一致
率が得られない場合には、図7における各部品ごとのパ
ターンマッチングを行ない、それぞれの部品で高い一致
率が得られたものを組み合わせ、一つのテンプレートと
して図3で示されるテンプレート群に付加することがで
きる。
For example, when a high matching rate is obtained by pattern matching using the template shown in FIG. 3, the number of times of recognition can be reduced. However, when a high matching rate cannot be obtained, FIG. The pattern matching is performed for each of the components described above, and those having a high matching rate obtained for each component can be combined and added to the template group shown in FIG. 3 as one template.

【0063】このように、登録されているテンプレート
に対しパターンマッチングを行ない、すべての登録済み
テンプレートに対して高い一致率が得られない場合、そ
れらのテンプレート中の各部品ごとにパターンマッチン
グを行ない、一致率の高い部品を組み合わせてテンプレ
ートを作成し登録することにより、認識対象画像中の各
部品個々に独立に影響するノイズ等に対応した基本的な
テンプレートが作成可能となり、テンプレート全体とし
て高い一致率が得られる。すなわち、テンプレート全体
に対しては得られない一致率を、各部品に対して最適な
部品ごとのテンプレートを作成し、それらを組み合わせ
ることによって得ることができ、テンプレート全体とし
ての一致率を向上させ、誤認識率、誤判定率、過剰認識
率を低減させることができる。これにより、環境照明の
方向に依存した影響や、認識対象の製品の傾きの変化な
どに対応することができる。
As described above, pattern matching is performed on registered templates, and when a high matching rate cannot be obtained for all registered templates, pattern matching is performed for each component in those templates. By creating and registering a template by combining parts with a high matching rate, it is possible to create a basic template corresponding to noise that independently affects each part in the recognition target image, and a high matching rate as a whole template Is obtained. That is, a matching rate that cannot be obtained for the entire template can be obtained by creating an optimum template for each component for each component and combining them, thereby improving the matching rate of the entire template, An erroneous recognition rate, an erroneous determination rate, and an overrecognition rate can be reduced. Thereby, it is possible to cope with the influence depending on the direction of the environmental lighting, a change in the inclination of the recognition target product, and the like.

【0064】また、テンプレート登録手段2は、例えば
全ての機種の認識対象画像の共通部分の画像を代表的テ
ンプレートとして登録し、新たな認識対象画像に対し
て、新たな認識対象画像と代表的テンプレート画像との
共通部分の画像を新たな代表的テンプレート画像として
生成し、また、認識対象画像とテンプレート画像とのパ
ターンマッチングによる結果画像をその認識対象に対す
る固有のテンプレート画像として登録し、製品識別手段
3は、代表的テンプレートとパターンマッチングを行な
った結果画像を固有のテンプレートとパターンマッチン
グさせて製品を識別するようになっていても良い。
The template registration means 2 registers, for example, an image of a common part of the recognition target images of all models as a representative template, and registers a new recognition target image and a representative template for a new recognition target image. An image of a common part with the image is generated as a new representative template image, and a result image obtained by pattern matching between the recognition target image and the template image is registered as a unique template image for the recognition target. Alternatively, the product may be identified by pattern-matching an image resulting from pattern matching with a representative template with a unique template.

【0065】テンプレート登録手段2が上記のような構
成となっている場合には、認識対象画像とテンプレート
画像との論理積(AND)画像を代表的なテンプレートと
して毎回自動更新していく。また、認識対象画像と代表
的テンプレートとの排他的論理和(ex−OR)によるパ
ターンマッチングの結果画像を、その認識対象の製品固
有のテンプレートとして登録する。この際、代表的なテ
ンプレートが更新されるとき、固有のテンプレートも毎
回更新され、製品識別手段3の認識時には、代表的なテ
ンプレートによるパターンマッチングとその結果画像と
固有のテンプレートとのパターンマッチングにより、数
1を用いて一致率を評価することができる。
When the template registration means 2 has the above configuration, a logical product (AND) image of the recognition target image and the template image is automatically updated as a representative template every time. In addition, an image obtained as a result of pattern matching by exclusive OR (ex-OR) between the recognition target image and the representative template is registered as a template unique to the recognition target product. At this time, when the representative template is updated, the unique template is also updated each time. At the time of recognition by the product identification means 3, pattern matching using the representative template and pattern matching between the resulting image and the unique template are performed. Equation 1 can be used to evaluate the matching rate.

【0066】このように、すべての機種の認識対象画像
の共通部分を代表的テンプレートとし、この代表的テン
プレートは新たな機種に対しては自動更新が可能であ
り、認識時に最初に代表的テンプレートと認識対象画像
との不一致部分をパターンマッチングにより取得して、
画像認識を容易にすることができる。
As described above, the common part of the recognition target images of all the models is used as a representative template, and this representative template can be automatically updated for a new model. By acquiring the part that does not match the image to be recognized by pattern matching,
Image recognition can be facilitated.

【0067】また、テンプレート登録手段2は、画像撮
像手段1が正しい位置で認識対象画像を取得し、パター
ンマッチングにより画像中の認識対象を検出すると、検
出した認識対象を画像中より削除し、認識対象を削除し
た画像を基本画像として、画像撮像手段1による撮像画
像から基本画像を差し引いた画像をテンプレートとして
取得するようになっていても良い。
Further, when the image capturing means 1 obtains a recognition target image at a correct position and detects a recognition target in the image by pattern matching, the template registration means 2 deletes the detected recognition target from the image and performs the recognition. The image obtained by subtracting the basic image from the image captured by the image capturing unit 1 may be obtained as a template, using the image from which the target has been deleted as the basic image.

【0068】例えば認識対象が図17のように陰影があ
る場合、この新たな認識対象に対し、その認識対象画像
を取得しテンプレートとして、認識対象画像とパターン
マッチングし、排他的論理和(ex−OR)をとることに
より、図18に示すような背景の陰影のみの画像が得ら
れ、これを背景画像のテンプレートとして図7に示すデ
ータ構造体に加え、製品識別手段3の認識前に認識対象
画像との排他的論理和(ex−OR)をとることによりノ
イズを除去できる。
For example, when the recognition target has a shadow as shown in FIG. 17, for the new recognition target, the recognition target image is obtained, and is subjected to pattern matching with the recognition target image as a template. OR), an image having only the background shadow as shown in FIG. 18 is obtained. This is added to the data structure shown in FIG. Noise can be removed by taking an exclusive OR (ex-OR) with the image.

【0069】このように、新たな機種を認識対象に加え
る場合、認識対象のテンプレートと認識対象画像とのパ
ターンマッチングを行ない、認識対象画像を検出し、こ
れを入力画像から削除して第2のテンプレートとし、製
品識別手段の認識時の初期の段階で入力画像から第2の
テンプレートを削除することにより、製品の表面形状等
による陰影の影響を削除し、誤認識、誤判定、過剰認識
の確率を低減できる。
As described above, when a new model is added to the recognition target, pattern matching between the recognition target template and the recognition target image is performed, the recognition target image is detected, and this is deleted from the input image to remove the second model. As a template, the second template is deleted from the input image at an early stage of the recognition of the product identification means, thereby eliminating the influence of shadows due to the surface shape of the product and the likelihood of erroneous recognition, erroneous determination, and excessive recognition. Can be reduced.

【0070】図19は図1あるいは図4の画像認識装置
のハードウェア構成例を示す図である。図19を参照す
ると、この画像認識装置は、例えばパーソナルコンピュ
ータ等で実現され、全体を制御するCPU21と、CP
U21の制御プログラム等が記憶されているROM22
と、CPU21のワークエリア等として使用されるRA
M23と、生産ライン上を運搬される製品表面の印字ロ
ゴを撮像する撮像装置24と、撮像装置24で撮像され
た認識対象画像が記憶される認識対象画像ファイル25
と、テンプレートが登録されるテンプレート登録ファイ
ル26と、製品の識別を行なった結果の情報を出力する
結果出力装置(例えば、ディスプレイやプリンタ)27と
を有している。
FIG. 19 is a diagram showing an example of a hardware configuration of the image recognition apparatus shown in FIG. 1 or FIG. Referring to FIG. 19, this image recognition device is realized by, for example, a personal computer or the like, and includes a CPU 21 that controls the entire system,
ROM 22 storing the control program of U21 and the like
And RA used as a work area or the like of the CPU 21.
M23, an imaging device 24 for imaging a printed logo on the surface of a product conveyed on the production line, and a recognition target image file 25 in which a recognition target image captured by the imaging device 24 is stored.
And a template registration file 26 in which a template is registered, and a result output device (for example, a display or a printer) 27 for outputting information on the result of product identification.

【0071】ここで、撮像装置24は、図1あるいは図
4の画像撮像手段1に対応している。また、CPU21
は、図1のテンプレート登録手段2,製品識別手段3,
提示手段4の機能を有している。
Here, the image pickup device 24 corresponds to the image pickup means 1 of FIG. 1 or FIG. Also, the CPU 21
Are the template registration means 2, the product identification means 3,
It has the function of the presentation means 4.

【0072】なお、CPU21におけるこのようなテン
プレート登録手段2,製品識別手段3,提示手段4等と
しての機能は、例えばソフトウェアパッケージ(具体的
には、CD−ROM等の情報記録媒体)の形で提供する
ことができる。
The functions of the CPU 21 as the template registering means 2, the product identifying means 3, the presenting means 4, and the like are implemented, for example, in the form of a software package (specifically, an information recording medium such as a CD-ROM). Can be provided.

【0073】換言すれば、本発明の画像認識装置は、撮
像装置,ディスプレイ等を備えた汎用の計算機システム
にCD−ROM等の情報記録媒体に記録されたプログラ
ムを読み込ませて、この汎用計算機システムのマイクロ
プロセッサにテンプレート登録処理,製品識別処理を実
行させる装置構成においても実施することが可能であ
る。この場合、本発明のテンプレート登録処理,製品識
別処理を実行するためのプログラム(すなわち、ハード
ウェアシステムで用いられるプログラム)は、媒体に記
録された状態で提供される。プログラムなどが記録され
る情報記録媒体としては、CD−ROMに限られるもの
ではなく、ROM,RAM,フレキシブルディスク,メ
モリカード等が用いられても良い。媒体に記録されたプ
ログラムは、ハードウェアシステムに組み込まれている
記憶装置、例えばハードディスク装置にインストールさ
れることにより、このプログラムを実行して、テンプレ
ート登録手段2,製品識別手段3,提示手段4の機能を
実現することができる。
In other words, the image recognition apparatus of the present invention causes a general-purpose computer system having an imaging device, a display, and the like to read a program recorded on an information recording medium such as a CD-ROM, and It can also be implemented in an apparatus configuration in which a microprocessor performs template registration processing and product identification processing. In this case, the program for executing the template registration process and the product identification process of the present invention (that is, the program used in the hardware system) is provided in a state recorded on a medium. The information recording medium on which the program or the like is recorded is not limited to a CD-ROM, but may be a ROM, a RAM, a flexible disk, a memory card, or the like. The program recorded on the medium is installed in a storage device incorporated in the hardware system, for example, a hard disk device, so that the program is executed and the template registration unit 2, the product identification unit 3, and the presentation unit 4 are executed. Function can be realized.

【0074】また、本発明のテンプレート登録手段2,
製品識別手段3,提示手段4の機能を実現するためのプ
ログラムは、媒体の形で提供されるのみならず、通信に
よって(例えばサーバによって)提供されるものであって
も良い。
The template registration means 2 of the present invention
The program for realizing the functions of the product identification means 3 and the presentation means 4 may be provided not only in the form of a medium but also by communication (for example, by a server).

【0075】[0075]

【発明の効果】以上に説明したように、請求項1記載の
発明によれば、生産ライン上を運搬される製品表面の印
字ロゴを撮像する画像撮像手段と、画像撮像手段により
撮像された印字ロゴ画像をテンプレートとして登録する
テンプレート登録手段と、生産ライン上を運搬される以
降の製品に対して、該製品表面の印字ロゴとテンプレー
ト登録手段に登録されているテンプレートとのパターン
マッチングを行なうことにより製品識別を行なう製品識
別手段と、製品識別手段による製品識別結果が認識閾値
を超えない場合、現在識別スペースにある製品のロゴ画
像を新たなテンプレートとして登録するかを提示する提
示手段とを有し、前記テンプレート登録手段には、1機
種,1認識対象画像に対して複数のテンプレートが登録
可能となっており、前記製品識別手段は、1機種,1認
識対象画像に対して複数のテンプレートが登録されてい
る場合に、製品表面の印字ロゴに対し、複数のテンプレ
ートとのパターンマッチングを行なうので、環境の変化
により受けるノイズの影響、誤認識率、過剰認識率を低
減させることができ、環境の変わりやすい生産ラインで
の精度の良い画像認識が可能となる。すなわち、固有の
閉じた光学系を特別に設定することなく、環境変化等に
対応した誤認識率、誤判定率、過剰認識率を低減したパ
ターンマッチングが可能となる。
As described above, according to the first aspect of the present invention, an image pickup means for picking up a print logo on the surface of a product conveyed on a production line, and a print picked up by the image pickup means. A template registration unit for registering a logo image as a template, and by performing pattern matching between a printed logo on the surface of the product and a template registered in the template registration unit for a product to be transported on a production line. Product identification means for performing product identification, and presentation means for presenting whether to register a logo image of a product currently in the identification space as a new template when a product identification result by the product identification means does not exceed the recognition threshold. The template registration means can register a plurality of templates for one model and one recognition target image. When a plurality of templates are registered for one model and one recognition target image, the product identification means performs pattern matching with the plurality of templates for a printed logo on the product surface. The influence of noise, false recognition rate, and excessive recognition rate can be reduced, and high-precision image recognition can be performed on a production line where the environment is easily changed. That is, it is possible to perform pattern matching with a reduced erroneous recognition rate, erroneous determination rate, and excessive recognition rate corresponding to an environmental change or the like without specially setting a unique closed optical system.

【0076】また、請求項2記載の発明によれば、生産
ライン上を運搬される製品表面の印字ロゴを撮像する画
像撮像手段と、画像撮像手段により撮像された印字ロゴ
画像をテンプレートとして登録するテンプレート登録手
段と、生産ライン上を運搬される以降の製品に対して、
該製品表面の印字ロゴとテンプレート登録手段に登録さ
れているテンプレートとのパターンマッチングを行なう
ことにより製品識別を行なう製品識別手段とを有し、前
記テンプレート登録手段には、1機種,1認識対象画像
に対して複数のテンプレートが登録可能となっており、
前記テンプレート登録手段は、製品識別手段による製品
識別結果が認識閾値を超えない場合、現在識別スペース
にある製品のロゴ画像を新たなテンプレートとして登録
し、前記製品識別手段は、1機種,1認識対象画像に対
して複数のテンプレートが登録されている場合に、製品
表面の印字ロゴに対し、複数のテンプレートとのパター
ンマッチングを行なうので、環境の変化により受けるノ
イズの影響、誤認識率、過剰認識率を低減させることが
でき、環境の変わりやすい生産ラインでの精度の良い画
像認識が可能となる。すなわち、固有の閉じた光学系を
特別に設定することなく、環境変化等に対応した誤認識
率、誤判定率、過剰認識率を低減したパターンマッチン
グが可能となる。
According to the second aspect of the present invention, an image pickup means for picking up a print logo on the surface of a product conveyed on a production line, and a print logo image picked up by the image pickup means are registered as a template. For template registration means and products after being transported on the production line,
Product identification means for performing product identification by performing pattern matching between the printed logo on the product surface and a template registered in the template registration means; the template registration means includes one model and one recognition target image; Multiple templates can be registered for
If the product identification result by the product identification means does not exceed the recognition threshold, the template registration means registers the logo image of the product currently in the identification space as a new template, and the product identification means is one model, one recognition target. When multiple templates are registered for an image, pattern matching with multiple templates is performed on the printed logo on the product surface, so the effects of noise due to environmental changes, false recognition rate, and excessive recognition rate , And accurate image recognition can be performed on a production line where the environment is easily changed. That is, it is possible to perform pattern matching with a reduced erroneous recognition rate, erroneous determination rate, and excessive recognition rate corresponding to an environmental change or the like without specially setting a unique closed optical system.

【0077】また、請求項3記載の発明によれば、請求
項1または請求項2記載の画像認識装置において、前記
テンプレート登録手段は、前記画像撮像手段によってテ
ンプレート登録用の画像が撮像された後、撮像された画
像のラベリングを行ない認識対象を各部品に分割し、各
部品の特徴量を検出し、各部品の特徴量が検出された各
認識対象に対して部品群からなるデータ構造体をテンプ
レートとして作成し、1機種,1認識対象画像中の各部
品に対して複数のテンプレートを準備するようになって
おり、この場合、前記製品識別手段は、製品撮像画像中
の各部品に対して前記複数のテンプレートとパターンマ
ッチングを行ない(認識対象画像中の各部品に対して構
造体構造をとるテンプレートの各部品ごとにパターンマ
ッチングし)、そのタグとしての機種名を出力とするこ
とから、環境からの影響が位置的に一定でない場合で
も、部品ごとに独立に対応し、誤判定率、誤認識率、過
剰認識率を低減したパターンマッチングが可能となる。
According to a third aspect of the present invention, in the image recognition device according to the first or second aspect, the template registering unit is configured to execute the method after the template image is captured by the image capturing unit. Then, the recognition target is divided into each component by performing labeling of the captured image, the feature amount of each component is detected, and a data structure including a component group is formed for each recognition target in which the feature amount of each component is detected. A template is prepared and a plurality of templates are prepared for each part in one model and one recognition target image. In this case, the product identification unit performs processing for each part in the product captured image. Perform pattern matching with the plurality of templates (pattern matching for each part of the template that has a structure structure for each part in the recognition target image), Since the model name is output as a tag, even if the influence from the environment is not constant in position, it is possible to respond independently to each component and perform pattern matching with reduced false recognition rate, false recognition rate, and excessive recognition rate. Becomes

【0078】また、請求項4記載の発明によれば、請求
項1または請求項2記載の画像認識装置において、前記
テンプレート登録手段は、認識対象の各部品に対して既
登録のテンプレートとのパターンマッチングを行ない各
部品の認識閾値との比較を行なったときに、一致率の低
い部品に対してのみ、部品群からなるデータ構造体にテ
ンプレートとして登録するようにしており、テンプレー
ト登録時にデータ構造体のテンプレート中の各部品のテ
ンプレート数を一様とせず、部品ごとの一致率から登録
の可否を決定することから、画像の記憶容量の削減とマ
ッチング候補を削減でき、無駄なルーチンを省いた高速
なパターンマッチングが可能となる。すなわち、登録テ
ンプレート数を抑えて画像記憶容量を低減できる。
According to a fourth aspect of the present invention, in the image recognition apparatus according to the first or second aspect, the template registering means stores the pattern of each component to be recognized with a registered template. When performing matching and comparing with the recognition threshold of each component, only the component having a low matching rate is registered as a template in the data structure including the component group, and the data structure is registered when the template is registered. The number of templates for each component in the template is not uniform, and whether or not registration is possible is determined based on the matching rate of each component. Therefore, it is possible to reduce the image storage capacity and the number of matching candidates, and to eliminate unnecessary routines. Pattern matching becomes possible. That is, the number of registered templates can be suppressed, and the image storage capacity can be reduced.

【0079】また、請求項5記載の発明によれば、請求
項1または請求項2記載の画像認識装置において、前記
テンプレート登録手段は、認識対象画像とテンプレート
とをパターンマッチングさせた結果の一致率が他の認識
対象候補と近い場合、マッチングさせた結果をテンプレ
ートとして準備し、前記製品識別手段は、以降のパター
ンマッチングに、認識対象自体のマッチングと認識対象
自体のマッチング後の画像のマッチングとを行ない、認
識対象自体のマッチングにより形状が似通った認識対象
群の中からの識別を行なった後、さらに確認のために、
認識対象自体のマッチング後の画像のマッチングを行な
うことにより(マッチング後の画像をテンプレートとし
て用いることにより)、一致部分を取り除いた、S/N
を向上させたパターンマッチングを行なうことが可能と
なる。
According to a fifth aspect of the present invention, in the image recognition apparatus according to the first or second aspect, the template registration unit determines a matching rate of a result of pattern matching between the recognition target image and the template. Is close to another recognition target candidate, a result of the matching is prepared as a template, and the product identification unit performs subsequent pattern matching by matching the recognition target itself and matching the image after the recognition target itself is matched. After performing recognition and matching from the recognition target group whose shape is similar by matching the recognition target itself, for further confirmation,
By performing matching of the image after matching of the recognition target itself (using the image after matching as a template), the S / N in which the matching part is removed is obtained.
Can be performed with improved pattern matching.

【0080】また、請求項6記載の発明によれば、請求
項5記載の画像認識装置において、前記テンプレート登
録手段は、認識対象自体のマッチング後の画像のマッチ
ングの一致率が、連続して高い値が得られる頻度を検出
し、頻度がある一定値を超えたとき、認識対象の入力画
像を新たなテンプレートとして登録する一方、これまで
のテンプレートを削除するので、認識速度を早めること
が可能となる。また、これまで用いていたテンプレート
を削除することにより記憶装置の容量を削除することが
可能となる。また、テンプレートのリフレッシュを自動
的に行なうことができる。すなわち、認識対象画像とし
て認識されるべき画像に対し、その機種のテンプレート
との不一致部分が多く、また確認ルーチンでのマッチン
グ画像を用いたパターンマッチングが高い一致度で頻度
よく得られる場合、経時変化等の影響により非可逆的な
環境の推移があったと仮定して、テンプレートを現在の
認識対象画像を登録して随時テンプレートを更新するこ
とが可能となる。換言すれば、システムの一定方向への
位置ずれなど非可逆的な経時変化などによる誤認識率や
過剰認識率を低減させることができる。
According to a sixth aspect of the present invention, in the image recognition apparatus of the fifth aspect, the template registering means has a continuously high matching rate of matching of the image after matching of the recognition target itself. When the frequency at which the value is obtained is detected and the frequency exceeds a certain value, the input image to be recognized is registered as a new template, while the previous template is deleted, so that the recognition speed can be increased. Become. Further, by deleting the template used so far, the capacity of the storage device can be deleted. Further, the template can be automatically refreshed. In other words, if the image to be recognized as an image to be recognized has many portions that do not match the model of the model, and if pattern matching using the matching image in the confirmation routine is frequently obtained with a high degree of matching, changes over time Assuming that there has been an irreversible transition in the environment due to the influence of the above, the template can be registered at the current recognition target image and the template can be updated at any time. In other words, it is possible to reduce an erroneous recognition rate and an overrecognition rate due to irreversible temporal changes such as a displacement of the system in a certain direction.

【0081】また、請求項7記載の発明によれば、請求
項3または請求項5記載の画像認識装置において、前記
製品識別手段は、パターンマッチングを実行してマッチ
ング画像を得ると、マッチング画像のラベリングを行な
いマッチング画像中の各部品の特徴量を検出し、マッチ
ング画像中、認識対象画像中の各部品の特徴量の比較に
より、認識対象画像中の部品から新たな認識対象部品と
して選別を行なって部品群よりなる新たなデータ構造体
を作成し、選別された部品のみに対してパターンマッチ
ングを行ない、形状が似通った認識対象群の画像中の認
識対象部品を選別するので、テンプレートとして新たな
認識対象全体を登録することなく、テンプレートの共用
部分をもつことにより、記憶装置の容量を削減すること
が可能となる。また、共用部分を持つ認識対象同士の認
識において、非共用部分の認識のみを行なうことによ
り、S/Nを向上させた認識が可能となる。
According to a seventh aspect of the present invention, in the image recognition device according to the third or fifth aspect, the product identification means obtains a matching image by executing pattern matching. Labeling is performed to detect the feature amount of each component in the matching image, and by comparing the feature amounts of each component in the matching image and the recognition target image, the components in the recognition target image are selected as new recognition target components. Create a new data structure consisting of a group of parts, perform pattern matching only on the selected parts, and select the recognition target parts in the images of the recognition target group with similar shapes. By having a common part of the template without registering the entire recognition target, the capacity of the storage device can be reduced. In addition, in recognition between recognition targets having a shared portion, only recognition of a non-shared portion is performed, thereby enabling recognition with an improved S / N.

【0082】また、請求項8記載の発明によれば、請求
項5または請求項7記載の画像認識装置において、前記
テンプレート登録手段は、各部品ごとのパターンマッチ
ングの一致率の低い部品に対してマッチング後の画像を
テンプレートとしてデータ構造体に付加する一方、形状
が似通った認識対象群の画像中の認識対象部品を選別
し、テンプレートの候補数を減らすようになっており、
似通った認識対象同士の認識において、共用部分をテン
プレート中から削除することにより、記憶装置の容量の
削減と、S/Nの向上を可能にし、高速性を増加させる
ことができる。すなわち、高速に、テンプレートの画像
記憶装置の容量を削除し、S/Nを向上させてマッチン
グを行なうことができる。
According to an eighth aspect of the present invention, in the image recognition apparatus according to the fifth or seventh aspect, the template registering means is provided for a component having a low matching rate of pattern matching for each component. While adding the image after the matching as a template to the data structure, the recognition target parts in the image of the recognition target group having similar shapes are selected, and the number of template candidates is reduced,
In the recognition between similar recognition targets, by deleting the common part from the template, the capacity of the storage device can be reduced, the S / N can be improved, and the speed can be increased. That is, the matching can be performed at high speed by deleting the capacity of the image storage device of the template and improving the S / N.

【0083】また、請求項9記載の発明によれば、請求
項1記載の画像認識装置において、前記テンプレート登
録手段は、前記画像撮像手段により生産ライン上を運搬
される製品表面の印字ロゴを撮像し、撮像された認識対
象画像としての印字ロゴ画像とテンプレート画像とのパ
ターンマッチングを行ない、認識対象画像とテンプレー
トの機種が一致している場合には、印字ロゴ画像とテン
プレート画像との不一致部分を削除領域として登録する
一方、認識対象画像とテンプレートの機種が一致してい
ない場合には、印字ロゴ画像とテンプレート画像との一
致部分を削除領域として登録し、両者の削除領域を認識
対象の機種固有の削除領域として、パターンマッチング
を行なう前に認識対象画像とテンプレート画像から削除
することにより(認識対象画像中の特徴が少ない部分や
パターンマッチングにおいて高い一致率が得られない部
分などを除去することにより)、S/Nを向上させ、誤
認識率、誤判定率、過剰認識率を低減することができ
る。
According to the ninth aspect of the present invention, in the image recognition apparatus according to the first aspect, the template registration unit captures a print logo on a surface of a product conveyed on a production line by the image capture unit. Then, pattern matching is performed between the captured logo image as the recognition target image and the template image, and when the model of the recognition target image and the template match, the mismatched portion between the printing logo image and the template image is determined. If the recognition target image does not match the model of the template while registering it as the deletion area, the matching part between the print logo image and the template image is registered as the deletion area, and both deletion areas are unique to the recognition target model. By deleting from the recognition target image and the template image before performing pattern matching, To improve the S / N and reduce the false recognition rate, false determination rate, and excessive recognition rate by removing parts with few features in the recognition target image and parts where a high matching rate cannot be obtained in pattern matching). Can be.

【0084】また、請求項10記載の発明によれば、請
求項1記載の画像認識装置において、前記テンプレート
登録手段は、先ず、代表的テンプレートを作成し、これ
を第1のテンプレートとして登録し、前記製品識別手段
による認識対象とテンプレートとのパターンマッチング
をした結果を、第2のテンプレートとして登録するよう
にしており、似通った認識対象の一致部分を極力削除で
きるようなテンプレートを作成して、そのテンプレート
とのパターンマッチングにより不一致部分を検出し、不
一致部分について再度パターンマッチングをすることに
より、S/Nを向上させ、テンプレートを登録する記憶
装置の容量を大幅に削減することが可能となる。すなわ
ち、2回のパターンマッチングを行なうことにより、S
/Nの向上した精度の高い認識が可能となる。
According to a tenth aspect of the present invention, in the image recognition apparatus according to the first aspect, the template registering means first creates a representative template and registers it as a first template. The result of pattern matching between the recognition target and the template by the product identification means is registered as a second template, and a template is created so that a matching part of a similar recognition target can be deleted as much as possible. By detecting a mismatched portion by pattern matching with the template and performing pattern matching again on the mismatched portion, the S / N can be improved, and the capacity of the storage device for registering the template can be significantly reduced. That is, by performing pattern matching twice, S
/ N can be recognized with high accuracy.

【0085】また、請求項11記載の発明によれば、請
求項1,請求項2または請求項7記載の画像認識装置に
おいて、前記テンプレート登録手段は、複数回のパター
ンマッチングの結果、高い一致度が得られない場合、複
数パターンにおいて各パターン内でラベリングを行な
い、各部品ごとのマッチングを行ない、各部品において
最適なマッチングを行なった後、それらを合成した画像
を1つのテンプレートとして登録するので、認識対象画
像中の各部品個々に独立に影響するノイズ等に対応した
基本的なテンプレートが作成可能となり、テンプレート
全体として高い一致率が得られる。
According to the eleventh aspect of the present invention, in the image recognition apparatus according to the first, second or seventh aspect, the template registration means may obtain a high matching score as a result of a plurality of pattern matchings. Is not obtained, labeling is performed within each pattern in a plurality of patterns, matching is performed for each component, and after performing optimal matching for each component, an image obtained by combining them is registered as one template. A basic template corresponding to noise or the like that independently affects each component in the recognition target image can be created, and a high matching rate can be obtained for the entire template.

【0086】また、請求項12記載の発明によれば、請
求項10記載の画像認識装置において、前記テンプレー
ト登録手段は、全ての機種の認識対象画像の共通部分の
画像を代表的テンプレートとして登録し、新たな認識対
象画像に対して、新たな認識対象画像と代表的テンプレ
ート画像との共通部分の画像を新たな代表的テンプレー
ト画像として生成するようになっており、また、認識対
象画像とテンプレート画像とのパターンマッチングによ
る結果画像をその認識対象に対する固有のテンプレート
画像として登録し、前記製品識別手段は、代表的テンプ
レートとパターンマッチングを行なった結果画像を固有
のテンプレートとパターンマッチングさせるようになっ
ており、すべての認識対象画像に対して共通部分を削除
することにより、S/Nを向上させるための代表的テン
プレートを自動生成することが可能となる。すなわち、
全認識対象に共通な部分を削除したS/Nの向上したパ
ターンマッチングが可能となる。
According to the twelfth aspect of the present invention, in the image recognition apparatus according to the tenth aspect, the template registration unit registers an image of a common part of the recognition target images of all the models as a representative template. For a new recognition target image, an image of a common part between the new recognition target image and the representative template image is generated as a new representative template image. The result image obtained by pattern matching is registered as a unique template image for the object to be recognized, and the product identification unit performs pattern matching of the result image obtained by performing pattern matching with the representative template with the unique template. , By removing the common part for all recognition target images, / N it is possible to automatically generate a representative template to improve. That is,
Pattern matching with improved S / N by removing a part common to all recognition targets can be performed.

【0087】また、請求項13記載の発明によれば、請
求項1記載の画像認識装置において、前記テンプレート
登録手段は、前記画像撮像手段が正しい位置で認識対象
画像を取得し、パターンマッチングにより画像中の認識
対象を検出すると、検出した認識対象を画像中より削除
し、認識対象を削除した画像を基本画像として、画像撮
像手段による撮像画像から基本画像を差し引いた画像を
テンプレートとして取得するので、認識対象画像とは異
なるが、誤認識、誤判定の原因となりうる環境照明や製
品の表面形状よりなる陰影等のノイズを除去することが
でき、パターンマッチングの精度を向上することが可能
となる。すなわち、認識対象製品の表面形状による陰影
や認識対象部品以外の部品を認識対象として誤認識率を
低減することができる。
According to a thirteenth aspect of the present invention, in the image recognition device according to the first aspect, the template registration unit acquires the recognition target image at a correct position by the image pickup unit, and performs image matching by pattern matching. When the recognition target in the image is detected, the detected recognition target is deleted from the image, and the image obtained by subtracting the basic image from the image captured by the image capturing unit is obtained as a template, using the image from which the recognition target has been deleted as a basic image. Although different from the recognition target image, noises such as environmental illumination and shadows formed by the surface shape of the product which can cause erroneous recognition and erroneous determination can be removed, and the accuracy of pattern matching can be improved. That is, it is possible to reduce a false recognition rate by setting a target other than a shadow due to the surface shape of the recognition target product or a recognition target component as a recognition target.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明に係る画像認識装置の構成例を示す図で
ある。
FIG. 1 is a diagram showing a configuration example of an image recognition device according to the present invention.

【図2】図1の画像認識装置の処理動作を説明するため
のフローチャートである。
FIG. 2 is a flowchart illustrating a processing operation of the image recognition device of FIG. 1;

【図3】テンプレートの登録例を示す図である。FIG. 3 is a diagram illustrating a registration example of a template.

【図4】本発明に係る画像認識装置の他の構成例を示す
図である。
FIG. 4 is a diagram showing another configuration example of the image recognition device according to the present invention.

【図5】製品に付されたロゴの例を示す図である。FIG. 5 is a diagram showing an example of a logo attached to a product.

【図6】製品に付されたロゴの例を示す図である。FIG. 6 is a diagram showing an example of a logo attached to a product.

【図7】テンプレートの登録例を示す図である。FIG. 7 is a diagram showing a registration example of a template.

【図8】テンプレートの登録例を示す図である。FIG. 8 is a diagram illustrating a registration example of a template.

【図9】撮像されたロゴの画像例を示す図である。FIG. 9 is a diagram illustrating an example of a captured logo image.

【図10】ある機種についての認識対象画像の例を示す
図である。
FIG. 10 is a diagram illustrating an example of a recognition target image for a certain model.

【図11】図10と同じ機種に対するテンプレートを示
す図である。
FIG. 11 is a diagram showing a template for the same model as in FIG. 10;

【図12】図10と異なる機種に対するテンプレートを
示す図である。
FIG. 12 is a diagram showing a template for a model different from FIG. 10;

【図13】図10の認識対象画像と図11のテンプレー
トとをパターンマッチングした結果の結果画像を示す図
である。
13 is a diagram showing a result image as a result of pattern matching between the recognition target image in FIG. 10 and the template in FIG. 11;

【図14】図10の認識対象画像と図12のテンプレー
トとをパターンマッチングした結果の結果画像を示す図
である。
14 is a diagram showing a result image as a result of pattern matching between the recognition target image in FIG. 10 and the template in FIG. 12;

【図15】テンプレートの登録例を示す図である。FIG. 15 is a diagram illustrating a registration example of a template.

【図16】テンプレートの一例を示す図である。FIG. 16 is a diagram illustrating an example of a template.

【図17】認識対象の一例を示す図である。FIG. 17 is a diagram illustrating an example of a recognition target.

【図18】図17の認識対象から抽出されるテンプレー
トの一例を示す図である。
18 is a diagram illustrating an example of a template extracted from the recognition target in FIG. 17;

【図19】図1あるいは図4の画像認識装置のハードウ
ェア構成例を示す図である。
19 is a diagram illustrating an example of a hardware configuration of the image recognition device of FIG. 1 or FIG. 4;

【符号の説明】[Explanation of symbols]

1 画像撮像手段 2 テンプレート登録手段 3 製品識別手段 4 提示手段 21 CPU 22 ROM 23 RAM 24 撮像装置 25 認識対象画像ファイル 26 テンプレート登録ファイル 27 結果出力装置 DESCRIPTION OF SYMBOLS 1 Image imaging means 2 Template registration means 3 Product identification means 4 Presentation means 21 CPU 22 ROM 23 RAM 24 Imaging device 25 Recognition image file 26 Template registration file 27 Result output device

Claims (13)

【特許請求の範囲】[Claims] 【請求項1】 生産ライン上を運搬される製品表面の印
字ロゴを撮像する画像撮像手段と、画像撮像手段により
撮像された印字ロゴ画像をテンプレートとして登録する
テンプレート登録手段と、生産ライン上を運搬される以
降の製品に対して、該製品表面の印字ロゴとテンプレー
ト登録手段に登録されているテンプレートとのパターン
マッチングを行なうことにより製品識別を行なう製品識
別手段と、製品識別手段による製品識別結果が認識閾値
を超えない場合、現在識別スペースにある製品のロゴ画
像を新たなテンプレートとして登録するかを提示する提
示手段とを有し、前記テンプレート登録手段には、1機
種,1認識対象画像に対して複数のテンプレートが登録
可能となっており、前記製品識別手段は、1機種,1認
識対象画像に対して複数のテンプレートが登録されてい
る場合に、製品表面の印字ロゴに対し、複数のテンプレ
ートとのパターンマッチングを行なうことを特徴とする
画像認識装置。
1. An image pickup means for picking up a printed logo on a surface of a product conveyed on a production line, a template registering means for registering a printed logo image picked up by the image pickup means as a template, and a conveyed on the production line. For the subsequent products, product identification means for performing product identification by performing pattern matching between the printed logo on the product surface and the template registered in the template registration means, and the product identification result by the product identification means Presenting means for presenting whether the logo image of the product currently in the identification space is to be registered as a new template when the recognition threshold is not exceeded, wherein the template registering means has one model, one recognition target image; And a plurality of templates can be registered, and the product identification means is provided for one model and one recognition target image. An image recognition apparatus characterized in that when a plurality of templates are registered, pattern matching with a plurality of templates is performed on a printed logo on a product surface.
【請求項2】 生産ライン上を運搬される製品表面の印
字ロゴを撮像する画像撮像手段と、画像撮像手段により
撮像された印字ロゴ画像をテンプレートとして登録する
テンプレート登録手段と、生産ライン上を運搬される以
降の製品に対して、該製品表面の印字ロゴとテンプレー
ト登録手段に登録されているテンプレートとのパターン
マッチングを行なうことにより製品識別を行なう製品識
別手段とを有し、前記テンプレート登録手段には、1機
種,1認識対象画像に対して複数のテンプレートが登録
可能となっており、前記テンプレート登録手段は、製品
識別手段による製品識別結果が認識閾値を超えない場
合、現在識別スペースにある製品のロゴ画像を新たなテ
ンプレートとして登録し、前記製品識別手段は、1機
種,1認識対象画像に対して複数のテンプレートが登録
されている場合に、製品表面の印字ロゴに対し、複数の
テンプレートとのパターンマッチングを行なうことを特
徴とする画像認識装置。
2. An image pickup means for picking up a printed logo on a surface of a product conveyed on a production line, a template registering means for registering a printed logo image picked up by the image pickup means as a template, and a conveyed on the production line. And product identification means for performing product matching by performing pattern matching between the printed logo on the product surface and the template registered in the template registration means for the subsequent products. Can register a plurality of templates for one model and one recognition target image. If the product identification result by the product identification means does not exceed the recognition threshold, the template registration means Is registered as a new template, and the product identification means matches one model and one recognition target image. An image recognition apparatus characterized in that when a plurality of templates are registered, pattern matching with a plurality of templates is performed on a printed logo on a product surface.
【請求項3】 請求項1または請求項2記載の画像認識
装置において、前記テンプレート登録手段は、前記画像
撮像手段によってテンプレート登録用の画像が撮像され
た後、撮像された画像のラベリングを行ない認識対象を
各部品に分割し、各部品の特徴量を検出し、各部品の特
徴量が検出された各認識対象に対して部品群からなるデ
ータ構造体をテンプレートとして作成し、1機種,1認
識対象画像中の各部品に対して複数のテンプレートを準
備するようになっており、この場合、前記製品識別手段
は、製品撮像画像中の各部品に対して前記複数のテンプ
レートとパターンマッチングを行なうことを特徴とする
画像認識装置。
3. The image recognition apparatus according to claim 1, wherein the template registration unit performs labeling of the captured image after the image for template registration is captured by the image capturing unit. The object is divided into components, the feature amount of each component is detected, and a data structure including a component group is created as a template for each recognition target in which the feature amount of each component is detected. A plurality of templates are prepared for each component in the target image. In this case, the product identification unit performs pattern matching with the plurality of templates for each component in the product captured image. An image recognition device characterized by the above-mentioned.
【請求項4】 請求項1または請求項2記載の画像認識
装置において、前記テンプレート登録手段は、認識対象
の各部品に対して既登録のテンプレートとのパターンマ
ッチングを行ない各部品の認識閾値との比較を行なった
ときに、一致率の低い部品に対してのみ、部品群からな
るデータ構造体にテンプレートとして登録することを特
徴とする画像認識装置。
4. The image recognition apparatus according to claim 1, wherein the template registration unit performs pattern matching of each component to be recognized with a template already registered, and performs a pattern matching with a recognition threshold of each component. An image recognition apparatus characterized in that, when a comparison is made, only a component having a low matching rate is registered as a template in a data structure composed of a component group.
【請求項5】 請求項1または請求項2記載の画像認識
装置において、前記テンプレート登録手段は、認識対象
画像とテンプレートとをパターンマッチングさせた結果
の一致率が他の認識対象候補と近い場合、マッチングさ
せた結果をテンプレートとして準備し、前記製品識別手
段は、以降のパターンマッチングに、認識対象自体のマ
ッチングと認識対象自体のマッチング後の画像のマッチ
ングとを行ない、認識対象自体のマッチングにより形状
が似通った認識対象群の中からの識別を行なった後、さ
らに確認のために、認識対象自体のマッチング後の画像
のマッチングを行なうことを特徴とする画像認識装置。
5. The image recognition apparatus according to claim 1, wherein the template registering unit determines that a matching rate of a result of pattern matching between the recognition target image and the template is close to another recognition target candidate. The result of matching is prepared as a template, and the product identification unit performs matching of the recognition target itself and matching of the image after matching of the recognition target itself in the subsequent pattern matching, and the shape is determined by matching of the recognition target itself. An image recognition apparatus, comprising: performing identification from a group of similar recognition targets, and then, for further confirmation, matching of the image after matching of the recognition target itself.
【請求項6】 請求項5記載の画像認識装置において、
前記テンプレート登録手段は、認識対象自体のマッチン
グ後の画像のマッチングの一致率が、連続して高い値が
得られる頻度を検出し、頻度がある一定値を超えたと
き、認識対象の入力画像を新たなテンプレートとして登
録する一方、これまでのテンプレートを削除することを
特徴とする画像認識装置。
6. The image recognition device according to claim 5, wherein
The template registration unit detects a frequency at which the matching rate of matching of the image after matching of the recognition target itself continuously obtains a high value, and when the frequency exceeds a certain value, the input image of the recognition target is detected. An image recognizing apparatus characterized in that a new template is registered while a previous template is deleted.
【請求項7】 請求項3または請求項5記載の画像認識
装置において、前記製品識別手段は、パターンマッチン
グを実行してマッチング画像を得ると、マッチング画像
のラベリングを行ないマッチング画像中の各部品の特徴
量を検出し、マッチング画像中、認識対象画像中の各部
品の特徴量の比較により、認識対象画像中の部品から新
たな認識対象部品として選別を行なって部品群よりなる
新たなデータ構造体を作成し、選別された部品のみに対
してパターンマッチングを行ない、形状が似通った認識
対象群の画像中の認識対象部品を選別することを特徴と
する画像認識装置。
7. The image recognition device according to claim 3, wherein the product identification unit performs pattern matching to obtain a matching image, performs labeling of the matching image, and performs labeling of the matching image. A new data structure consisting of a group of parts is detected by detecting the feature quantity, comparing the feature quantities of each part in the matching image and the recognition target image, and sorting out the parts in the recognition target image as new recognition target parts. And performing pattern matching only on the selected components to select the recognition target components in the images of the recognition target group having similar shapes.
【請求項8】 請求項5または請求項7記載の画像認識
装置において、前記テンプレート登録手段は、各部品ご
とのパターンマッチングの一致率の低い部品に対してマ
ッチング後の画像をテンプレートとしてデータ構造体に
付加する一方、形状が似通った認識対象群の画像中の認
識対象部品を選別し、テンプレートの候補数を減らすこ
とを特徴とする画像認識装置。
8. The image recognition apparatus according to claim 5, wherein said template registering means uses, as a template, an image after matching for a part having a low matching rate of pattern matching for each part as a template. An image recognition apparatus for selecting recognition target components in an image of a recognition target group having a similar shape while reducing the number of template candidates.
【請求項9】 請求項1記載の画像認識装置において、
前記テンプレート登録手段は、前記画像撮像手段により
生産ライン上を運搬される製品表面の印字ロゴを撮像
し、撮像された認識対象画像としての印字ロゴ画像とテ
ンプレート画像とのパターンマッチングを行ない、認識
対象画像とテンプレートの機種が一致している場合に
は、印字ロゴ画像とテンプレート画像との不一致部分を
削除領域として登録する一方、認識対象画像とテンプレ
ートの機種が一致していない場合には、印字ロゴ画像と
テンプレート画像との一致部分を削除領域として登録
し、両者の削除領域を認識対象の機種固有の削除領域と
して、パターンマッチングを行なう前に認識対象画像と
テンプレート画像から削除することを特徴とする画像認
識装置。
9. The image recognition apparatus according to claim 1, wherein
The template registration unit captures a printed logo on the surface of a product conveyed on a production line by the image capturing unit, performs pattern matching between the captured logo image as a captured recognition target image and the template image, and When the model of the image and the template match, the part where the print logo image and the template image do not match is registered as the deletion area, while when the model of the recognition target image and the template do not match, the print logo A matching part between the image and the template image is registered as a deletion area, and both of the deletion areas are set as deletion areas specific to the recognition target model, and are deleted from the recognition target image and the template image before performing pattern matching. Image recognition device.
【請求項10】 請求項1記載の画像認識装置におい
て、前記テンプレート登録手段は、先ず、代表的テンプ
レートを作成し、これを第1のテンプレートとして登録
し、前記製品識別手段による認識対象とテンプレートと
のパターンマッチングをした結果を、第2のテンプレー
トとして登録することを特徴とする画像認識装置。
10. The image recognition apparatus according to claim 1, wherein said template registering means first creates a representative template, registers it as a first template, and stores a template to be recognized by said product identifying means and a template. An image recognition device for registering a result of the pattern matching of (1) as a second template.
【請求項11】 請求項1,請求項2または請求項7記
載の画像認識装置において、前記テンプレート登録手段
は、複数回のパターンマッチングの結果、高い一致度が
得られない場合、複数パターンにおいて各パターン内で
ラベリングを行ない、各部品ごとのマッチングを行な
い、各部品において最適なマッチングを行なった後、そ
れらを合成した画像を1つのテンプレートとして登録す
ることを特徴とする画像認識装置。
11. The image recognition apparatus according to claim 1, wherein the template registration unit determines each of a plurality of patterns when a high degree of matching is not obtained as a result of a plurality of pattern matchings. An image recognition apparatus characterized by performing labeling in a pattern, performing matching for each component, performing optimal matching for each component, and registering an image obtained by combining them as one template.
【請求項12】 請求項10記載の画像認識装置におい
て、前記テンプレート登録手段は、全ての機種の認識対
象画像の共通部分の画像を代表的テンプレートとして登
録し、新たな認識対象画像に対して、新たな認識対象画
像と代表的テンプレート画像との共通部分の画像を新た
な代表的テンプレート画像として生成するようになって
おり、また、認識対象画像とテンプレート画像とのパタ
ーンマッチングによる結果画像をその認識対象に対する
固有のテンプレート画像として登録し、前記製品識別手
段は、代表的テンプレートとパターンマッチングを行な
った結果画像を固有のテンプレートとパターンマッチン
グさせることを特徴とする画像認識装置。
12. The image recognition apparatus according to claim 10, wherein the template registration unit registers an image of a common part of the recognition target images of all models as a representative template, and An image of a common part between the new recognition target image and the representative template image is generated as a new representative template image, and a result image obtained by pattern matching between the recognition target image and the template image is recognized. An image recognizing apparatus, wherein the image is registered as a unique template image for an object, and wherein the product identification unit performs pattern matching with the unique template after performing pattern matching with the representative template.
【請求項13】 請求項1記載の画像認識装置におい
て、前記テンプレート登録手段は、前記画像撮像手段が
正しい位置で認識対象画像を取得し、パターンマッチン
グにより画像中の認識対象を検出すると、検出した認識
対象を画像中より削除し、認識対象を削除した画像を基
本画像として、画像撮像手段による撮像画像から基本画
像を差し引いた画像をテンプレートとして取得すること
を特徴とする画像認識装置。
13. The image recognition device according to claim 1, wherein the template registration unit detects when the image capturing unit acquires a recognition target image at a correct position and detects a recognition target in the image by pattern matching. An image recognition apparatus wherein a recognition target is deleted from an image, and an image obtained by subtracting the basic image from an image captured by an image capturing unit is obtained as a template, using the image from which the recognition target has been deleted as a basic image.
JP9327144A 1997-11-12 1997-11-12 Device and method for image recognition Pending JPH11144057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9327144A JPH11144057A (en) 1997-11-12 1997-11-12 Device and method for image recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9327144A JPH11144057A (en) 1997-11-12 1997-11-12 Device and method for image recognition

Publications (1)

Publication Number Publication Date
JPH11144057A true JPH11144057A (en) 1999-05-28

Family

ID=18195812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9327144A Pending JPH11144057A (en) 1997-11-12 1997-11-12 Device and method for image recognition

Country Status (1)

Country Link
JP (1) JPH11144057A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246722A (en) * 2003-02-14 2004-09-02 Fasl Japan 株式会社 Image pattern analysis method
JP2014127186A (en) * 2012-12-27 2014-07-07 Ricoh Co Ltd Image processing apparatus, image processing method, and program
US8959081B2 (en) 2012-03-19 2015-02-17 Ricoh Company, Ltd. Content creation assist device, content creation assist method, and non-transitory computer readable recording medium storing content creation assist program
JPWO2014080966A1 (en) * 2012-11-22 2017-01-05 株式会社湯山製作所 Drug inspection device
CN108573273A (en) * 2017-03-10 2018-09-25 欧姆龙株式会社 Image processing apparatus, image processing method, template implementing device, object identification processing unit and recording medium
WO2019123983A1 (en) * 2017-12-19 2019-06-27 オムロン株式会社 Authentication system and data processing method
CN112967168A (en) * 2019-11-28 2021-06-15 株式会社日立制作所 Medical image processing apparatus, medical image analysis apparatus, and standard image creation program
WO2021125019A1 (en) * 2019-12-17 2021-06-24 株式会社Preferred Networks Information system, information processing method, information processing program and robot system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004246722A (en) * 2003-02-14 2004-09-02 Fasl Japan 株式会社 Image pattern analysis method
US8959081B2 (en) 2012-03-19 2015-02-17 Ricoh Company, Ltd. Content creation assist device, content creation assist method, and non-transitory computer readable recording medium storing content creation assist program
JPWO2014080966A1 (en) * 2012-11-22 2017-01-05 株式会社湯山製作所 Drug inspection device
JP2014127186A (en) * 2012-12-27 2014-07-07 Ricoh Co Ltd Image processing apparatus, image processing method, and program
CN108573273A (en) * 2017-03-10 2018-09-25 欧姆龙株式会社 Image processing apparatus, image processing method, template implementing device, object identification processing unit and recording medium
JP2018151748A (en) * 2017-03-10 2018-09-27 オムロン株式会社 Image processing device, image processing method, template generation device, object recognition processing device, and program
CN108573273B (en) * 2017-03-10 2022-02-18 欧姆龙株式会社 Image processing device, image processing method, template creation device, object recognition processing device, and recording medium
WO2019123983A1 (en) * 2017-12-19 2019-06-27 オムロン株式会社 Authentication system and data processing method
JP2019109731A (en) * 2017-12-19 2019-07-04 オムロン株式会社 Authentication system and data processing method
CN112967168A (en) * 2019-11-28 2021-06-15 株式会社日立制作所 Medical image processing apparatus, medical image analysis apparatus, and standard image creation program
CN112967168B (en) * 2019-11-28 2024-03-29 富士胶片医疗健康株式会社 Medical image processing device, medical image analysis device, and computer program product including standard image creation program
WO2021125019A1 (en) * 2019-12-17 2021-06-24 株式会社Preferred Networks Information system, information processing method, information processing program and robot system

Similar Documents

Publication Publication Date Title
JP2821348B2 (en) Fingerprint collation device
US20060110029A1 (en) Pattern recognizing method and apparatus
Nandi et al. Traffic sign detection based on color segmentation of obscure image candidates: a comprehensive study
US11568629B2 (en) System and method for finding and classifying patterns in an image with a vision system
Islam et al. Text detection and recognition using enhanced MSER detection and a novel OCR technique
Caldeira et al. Industrial optical character recognition system in printing quality control of hot-rolled coils identification
US20210149931A1 (en) Scalable form matching
CN112749606A (en) Text positioning method and device
CN110942063B (en) Certificate text information acquisition method and device and electronic equipment
CN112308046A (en) Method, device, server and readable storage medium for positioning text region of image
JPH11144057A (en) Device and method for image recognition
US7106896B2 (en) ID recognition apparatus and ID recognition sorter system for semiconductor wafer
CN111461143A (en) Picture copying identification method and device and electronic equipment
US6975761B1 (en) Image processing for clustering related text objects
Kalina et al. Application of template matching for optical character recognition
WO2021220829A1 (en) Individual identification system, individual identification program, and recording medium
CN113034492A (en) Printing quality defect detection method and storage medium
CN112613367A (en) Bill information text box acquisition method, system, equipment and storage medium
JP6976158B2 (en) Sorting device and sorting system
Peng et al. Document image matching based on component blocks
JP3087727B2 (en) Identification device, identification method, and transport device
CN114267038B (en) Nameplate type identification method and device, storage medium and equipment
JP6941331B2 (en) Image recognition system
US20240004972A1 (en) Authentication system and tracking system
Harbuzariu et al. Official Document Text Extraction using Templates and Optical Character Recognition