JP2003196641A - Article recognition device and method - Google Patents

Article recognition device and method

Info

Publication number
JP2003196641A
JP2003196641A JP2001391176A JP2001391176A JP2003196641A JP 2003196641 A JP2003196641 A JP 2003196641A JP 2001391176 A JP2001391176 A JP 2001391176A JP 2001391176 A JP2001391176 A JP 2001391176A JP 2003196641 A JP2003196641 A JP 2003196641A
Authority
JP
Japan
Prior art keywords
image
article
character string
electronic component
pattern matching
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
JP2001391176A
Other languages
Japanese (ja)
Inventor
Takuya Hayashi
琢也 林
Masatsugu Oyabu
正嗣 大藪
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.)
Aisin AW Co Ltd
Original Assignee
Aisin AW 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 Aisin AW Co Ltd filed Critical Aisin AW Co Ltd
Priority to JP2001391176A priority Critical patent/JP2003196641A/en
Publication of JP2003196641A publication Critical patent/JP2003196641A/en
Pending legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Character Discrimination (AREA)
  • Supply And Installment Of Electrical Components (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To accurately recognize the existence, the position, the angle, the direction or the inclination of an article even if a print of a character string or the illuminance of an illumination has dispersion, by recognizing the character string printed on the article. <P>SOLUTION: This device has an imaging device 11 for photographing an article image, a storage part for storing a model image, and a recognition processing part 14 for performing pattern matching by comparing the image of the character string included in the article image with the model image, and detecting the existence, the position, the angle, the direction or the inclination of the article. <P>COPYRIGHT: (C)2003,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、物品認識装置及び
方法に関するものである。
TECHNICAL FIELD The present invention relates to an article recognition apparatus and method.

【0002】[0002]

【従来の技術】従来、電子装置の製造ラインにおいて
は、プリント配線板等の基板上に実装されたコンデンサ
等のチップ状の電子部品があらかじめ定められた方向に
半田付けされているか否かを検査するために、画像処理
を利用した物品認識装置が採用され、前記電子部品に形
成されている極性マークに基づいて、前記電子部品の方
向を判別するようになっている。
2. Description of the Related Art Conventionally, in an electronic device manufacturing line, it is inspected whether a chip-shaped electronic component such as a capacitor mounted on a substrate such as a printed wiring board is soldered in a predetermined direction. In order to do so, an article recognition device utilizing image processing is adopted, and the direction of the electronic component is determined based on the polarity mark formed on the electronic component.

【0003】この場合、コンデンサ等の電子部品は、正
負の端子を有しており、該端子が基板上の取付用端子
(ランド)に半田付けされることによって、実装される
ようになっている。そのため、電子部品の向いている方
向、すなわち、向きが間違っていると、正負の極性が逆
になってしまうので、前記電子部品が実装された基板に
よって構成される電子装置が正しく作動しなくなってし
まう。
In this case, an electronic component such as a capacitor has positive and negative terminals and is mounted by soldering the terminals to mounting terminals (lands) on the board. . Therefore, if the direction in which the electronic component is facing, that is, if the direction is wrong, the positive and negative polarities will be reversed, and the electronic device composed of the board on which the electronic component is mounted will not operate correctly. I will end up.

【0004】一般に、チップ状の電子部品は極めて小型
で、外形から端子の極性を判別することが困難なので、
端子の極性を示すための極性マークが、電子部品の表面
における正又は負の端子に近い端部に印刷されている。
そこで、前記従来の物品認識装置は、表面に印刷されて
いる極性マークを画像処理によって認識して電子部品の
向きを判別するようになっている。そして、間違った向
きの電子部品が実装された基板は、物品認識装置によっ
て不良品として検出され、作業者等によって取り除かれ
るので、製造ラインの後工程へ送られないようになって
いる。
In general, a chip-shaped electronic component is extremely small, and it is difficult to determine the polarity of the terminal from the outer shape.
A polarity mark for indicating the polarity of the terminal is printed on the end of the surface of the electronic component near the positive or negative terminal.
Therefore, the conventional article recognition device is configured to recognize the polarity mark printed on the surface by image processing and determine the orientation of the electronic component. The board on which the electronic component having the wrong orientation is mounted is detected as a defective product by the article recognition device and is removed by an operator or the like, so that it cannot be sent to the subsequent process of the manufacturing line.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、前記従
来の物品認識装置においては、極性マークを認識して電
子部品の向き判別するので、該電子部品の向きを誤って
判別し、該電子部品が正常に実装された基板を不良品と
して誤検出してしまうことが多かった。
However, in the conventional article recognition device, since the polarity mark is recognized to determine the orientation of the electronic component, the orientation of the electronic component is erroneously determined, and the electronic component is normal. In many cases, the board mounted on the board was erroneously detected as a defective product.

【0006】一般に、チップ状の電子部品は極めて小型
なので、該電子部品の表面における正又は負の端子に近
い端部に印刷されている極性マークは、極めて小さなも
のとなってしまう。また、極性マークは極めて単純な形
状を有している。そのため、印刷がわずかでも不鮮明で
あったり、電子部品を照らす照明の照度がわずかでもば
らついたりすると、極性マークを正しく認識することが
できなくなってしまうためである。
Generally, since the chip-shaped electronic component is extremely small, the polarity mark printed on the end of the surface of the electronic component near the positive or negative terminal becomes extremely small. Moreover, the polar mark has an extremely simple shape. Therefore, if the print is slightly unclear or the illuminance of the illumination for illuminating the electronic component varies even slightly, the polarity mark cannot be correctly recognized.

【0007】このように、電子部品の向きが誤って判別
されると、間違った向きの電子部品が実装された基板が
製造ラインの後工程へ送られたり、すべての電子部品が
正常に実装された基板が不良品として誤検出されたりし
てしまうので、製造ラインの不良品率が上昇したり、ス
ループットが低下したりしてしまう。
As described above, when the orientation of the electronic component is erroneously determined, the substrate on which the electronic component having the incorrect orientation is mounted is sent to the subsequent process of the manufacturing line, or all the electronic components are normally mounted. In addition, the defective board may be erroneously detected as a defective product, resulting in an increase in the defective product rate in the manufacturing line or a decrease in throughput.

【0008】本発明は、前記従来の物品認識装置の問題
点を解決して、物品に印刷された文字列を認識すること
によって、該文字列の印刷や照明の照度にばらつきがあ
っても、前記物品の有無、位置、角度、向き、又は、傾
きを正しく認識することができる物品認識装置及び方法
を提供することを目的とする。
The present invention solves the problems of the conventional article recognition device and recognizes a character string printed on an article, so that even if the character string is printed or the illuminance of illumination varies, It is an object of the present invention to provide an article recognition device and method capable of correctly recognizing the presence / absence, position, angle, direction, or inclination of the article.

【0009】[0009]

【課題を解決するための手段】そのために、本発明の物
品認識装置においては、物品の画像を撮影する撮像装置
と、モデル画像を格納する記憶部と、前記物品の画像に
含まれる文字列の画像を前記モデル画像と比較してパタ
ーンマッチングを行い、前記物品の有無、位置、角度、
向き、又は、傾きを検出する認識処理部とを有する。
Therefore, in the article recognition apparatus of the present invention, an image pickup apparatus for taking an image of an article, a storage section for storing a model image, and a character string included in the image of the article are provided. Performing pattern matching by comparing the image with the model image, presence or absence of the article, position, angle,
And a recognition processing unit that detects an orientation or an inclination.

【0010】本発明の他の物品認識装置においては、さ
らに、前記認識処理部は、前記文字列の画像を1つのモ
デル画像と比較してパターンマッチングを行った後に、
前記文字列の画像を複数のモデル画像と比較してパター
ンマッチングを行う。
In another article recognition apparatus of the present invention, the recognition processing unit further compares the image of the character string with one model image and performs pattern matching,
Pattern matching is performed by comparing the image of the character string with a plurality of model images.

【0011】本発明の更に他の物品認識装置において
は、さらに、前記認識処理部は、照明照度を変更して前
記パターンマッチングを再度行う。
In still another article recognition apparatus of the present invention, the recognition processing section changes the illumination illuminance and performs the pattern matching again.

【0012】本発明の更に他の物品認識装置において
は、前記文字列は複数の文字から成る。
In still another article recognition device of the present invention, the character string comprises a plurality of characters.

【0013】本発明の更に他の物品認識装置において
は、前記物品は基板上に実装された電子部品であり、前
記文字列は前記電子部品に印刷された文字列である。
In still another article recognition device of the present invention, the article is an electronic component mounted on a substrate, and the character string is a character string printed on the electronic component.

【0014】本発明の物品認識方法においては、物品の
画像を撮影し、該物品の画像に含まれる文字列の画像を
モデル画像と比較してパターンマッチングを行い、前記
物品の有無、位置、角度、向き、又は、傾きを検出す
る。
In the article recognition method of the present invention, an image of an article is photographed, an image of a character string included in the image of the article is compared with a model image to perform pattern matching, and the presence / absence, position, and angle of the article are detected. , Direction, or inclination is detected.

【0015】本発明の他の物品認識方法においては、さ
らに、前記文字列の画像を1つのモデル画像と比較して
パターンマッチングを行った後に、前記文字列の画像を
複数のモデル画像と比較してパターンマッチングを行
う。
In another article recognition method of the present invention, the image of the character string is further compared with one model image to perform pattern matching, and then the image of the character string is compared with a plurality of model images. Pattern matching is performed.

【0016】本発明の更に他の物品認識方法において
は、さらに、照明照度を変更して前記パターンマッチン
グを再度行う。
In still another article recognition method of the present invention, the illumination illuminance is changed and the pattern matching is performed again.

【0017】本発明の更に他の物品認識方法において
は、さらに、前記文字列は複数の文字から成る。
In still another article recognition method of the present invention, the character string further comprises a plurality of characters.

【0018】本発明の更に他の物品認識方法において
は、さらに、前記物品は基板上に実装された電子部品で
あり、前記文字列は前記電子部品に印刷された文字列で
ある。
In still another article recognition method of the present invention, the article is an electronic component mounted on a substrate, and the character string is a character string printed on the electronic component.

【0019】[0019]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照しながら詳細に説明する。なお、本発明の
物品認識装置及び方法は、例えば、電気製品、自動車部
品等を収容する段ボール箱や木箱、テレビ、ラジオ等の
工業製品等、いかなる形状、大きさの物品であっても認
識することができるものであるが、説明の都合上、ここ
では、物品がプリント配線板等の基板上に実装されたコ
ンデンサ等のチップ状の電子部品である場合について説
明する。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. The article recognition apparatus and method of the present invention recognizes articles of any shape and size, such as cardboard boxes and wooden boxes for housing electrical products and automobile parts, industrial products such as televisions and radios. However, for convenience of explanation, here, a case where the article is a chip-shaped electronic component such as a capacitor mounted on a substrate such as a printed wiring board will be described.

【0020】図2は本発明の実施の形態における電子部
品を示す斜視図である。
FIG. 2 is a perspective view showing an electronic component according to the embodiment of the present invention.

【0021】図において、21は、例えば、車両用ナビ
ゲーション装置、自動車用エンジン制御装置、ラジオ、
携帯端末機器、コンピュータ等の電子装置に組み込まれ
るプリント配線板等の基板、22は該基板21上に半
田、導電性接着剤等の手段によって固定され実装された
電子部品である。ここで、該電子部品22は、例えば、
IC、LSI等の能動素子、抵抗器、コイル、コンデン
サ等の受動素子等であるが、いかなる種類のものであっ
てもよい。なお、本実施の形態においては、説明の都合
上、前記基板21上に形成されている回路や、実装され
ている多数の電子部品は省略され、電子部品22とし
て、アルミ電解コンデンサ22a、該アルミ電解コンデ
ンサ22aよりも小型のアルミ電解コンデンサ22b、
及び、タンタルコンデンサ22cが図示されている。
In the figure, reference numeral 21 indicates, for example, a vehicle navigation device, an automobile engine control device, a radio,
A substrate such as a printed wiring board incorporated in an electronic device such as a mobile terminal device or a computer, and 22 are electronic components fixed and mounted on the substrate 21 by means such as solder or a conductive adhesive. Here, the electronic component 22 is, for example,
Although it is an active element such as an IC or LSI, a passive element such as a resistor, a coil, or a capacitor, it may be of any type. In the present embodiment, for convenience of description, the circuit formed on the substrate 21 and a large number of mounted electronic components are omitted, and the electronic components 22 include the aluminum electrolytic capacitor 22a and the aluminum electrolytic capacitor 22a. An aluminum electrolytic capacitor 22b, which is smaller than the electrolytic capacitor 22a,
Also, a tantalum capacitor 22c is shown.

【0022】そして、前記アルミ電解コンデンサ22
a、22b、及び、タンタルコンデンサ22cは、それ
ぞれ、例えば、正の電極端子23a、23b及び23c
を備え、該電極端子23a、23b及び23cが基板2
1の表面上に形成されている回路における取付用端子で
ある図示されないランドに半田、導電性接着剤等によっ
て導通可能に接続されている。なお、前記アルミ電解コ
ンデンサ22a、22b、及び、タンタルコンデンサ2
2cは、それぞれ、前記電極端子23a、23b及び2
3cと反対側に、反対の極性を備えた図示されない、例
えば、負の電極端子を備えている。
Then, the aluminum electrolytic capacitor 22
The a, 22b and the tantalum capacitor 22c are, for example, positive electrode terminals 23a, 23b and 23c, respectively.
And the electrode terminals 23a, 23b and 23c are provided on the substrate 2
1 is electrically connected to a land (not shown), which is a mounting terminal in a circuit formed on the surface of 1, by solder, a conductive adhesive, or the like. The aluminum electrolytic capacitors 22a and 22b and the tantalum capacitor 2 are used.
2c is the electrode terminals 23a, 23b and 2 respectively.
On the side opposite to 3c, a negative electrode terminal (not shown) having an opposite polarity is provided.

【0023】また、前記アルミ電解コンデンサ22a、
22b、及び、タンタルコンデンサ22cの上端面に
は、製品名、部品番号、種類、規格、性能等を表示する
文字列24a、24b及び24cが印刷されている。な
お、本実施の形態において、文字列とは複数の文字から
成るものであり、また、該文字とは、ひらがな、カタカ
ナ、アルファベット、漢字等の文字だけでなく、ローマ
数字、アラビア数字、漢数字等の数字、+、−、×、√
等の学術記号、%、mm、cm等の単位記号、?、!、
〜等の記述記号、@、〒等の一般記号等の各種記号も含
むものである。
Further, the aluminum electrolytic capacitor 22a,
Character strings 24a, 24b, and 24c indicating a product name, a part number, a type, a standard, a performance, and the like are printed on the upper end surface of the 22b and the tantalum capacitor 22c. In the present embodiment, the character string is made up of a plurality of characters, and the characters are not only characters such as hiragana, katakana, alphabets, and kanji, but also Roman numerals, Arabic numerals, and Chinese numerals. Numbers such as +,-, x, √
Academic symbols such as, unit symbols such as%, mm, cm ,? ,! ,
It also includes various symbols such as descriptive symbols such as ~ and general symbols such as @ and 〒.

【0024】さらに、前記上端面には、例えば、負の極
性を備えた図示されない電極端子が位置する側を示す極
性マーク25a、25b及び25cが印刷されている。
これにより、前記アルミ電解コンデンサ22a、22
b、及び、タンタルコンデンサ22cが取り付けられた
向きを判別することができる。
Further, for example, polarity marks 25a, 25b and 25c are printed on the upper end surface to indicate the side on which an electrode terminal (not shown) having negative polarity is located.
As a result, the aluminum electrolytic capacitors 22a, 22
It is possible to determine the direction in which b and the tantalum capacitor 22c are attached.

【0025】次に、本発明の実施の形態における物品認
識装置の構成を説明する。
Next, the configuration of the article recognition device according to the embodiment of the present invention will be described.

【0026】図1は本発明の実施の形態における物品認
識装置の構成を示す概念図である。
FIG. 1 is a conceptual diagram showing the structure of an article recognition device according to an embodiment of the present invention.

【0027】図において、23は、電子部品22が実装
された基板21が載置される載置台であり、11は該載
置台23の上方に配設された撮像装置である。ここで、
該撮像装置11は、例えば、工業用テレビカメラである
が、CCD(ChargeCoupled Devic
e)、撮像管等の撮像手段を備え、前記電子部品22等
の画像を撮影することができるものであれば、いかなる
ものであってもよい。また、前記撮像装置11は、載置
台23に対して相対的に移動することができ、該載置台
23上に載置された基板21における各箇所を順次撮影
して、それぞれの電子部品22の上端面の画像を順次撮
影することができるようになっている。この場合、撮像
装置11を移動させてもよいし、載置台23を移動させ
てもよい。
In the figure, 23 is a mounting table on which the substrate 21 on which the electronic component 22 is mounted is mounted, and 11 is an image pickup device disposed above the mounting table 23. here,
The image pickup device 11 is, for example, an industrial television camera, but has a CCD (Charge Coupled Device).
e), any device may be used as long as it has an image pickup means such as an image pickup tube and can take an image of the electronic component 22 or the like. Further, the image pickup device 11 can be moved relative to the mounting table 23, and sequentially captures each part of the substrate 21 mounted on the mounting table 23 to detect each electronic component 22. Images of the upper end surface can be sequentially taken. In this case, the imaging device 11 may be moved, or the mounting table 23 may be moved.

【0028】また、10は、前記撮像装置11によって
撮影された画像に基づいて物品を認識する物品認識装置
としての制御装置であり、CPU、MPU等の演算手
段、半導体メモリ、磁気ディスク等の記憶手段、キーボ
ード、マウス等の入力手段、CRT、液晶ディスプレイ
等の表示手段、通信インターフェイス等を備える。そし
て、前記制御装置10は、前記撮像装置11によって撮
影された画像を格納する検査画像記憶部12、物品を認
識するための基準となるモデル画像を格納する記憶部と
してのモデル画像記憶部13、物品を認識する処理を実
行する認識処理部14、及び、後述される照明装置16
を制御する照明制御部15を有する。ここで、前記認識
処理部14は、前記検査画像記憶部12に格納されてい
る前記撮像装置11によって撮影された画像をモデル画
像記憶部13に格納されているモデル画像と比較して、
その類似度を正規化相関演算によって算出する、すなわ
ち、正規化相関によるパターンマッチングを行うように
なっている。なお、正規化相関によるパターンマッチン
グは、周知の技術である(特開昭63−98070号公
報及び特開平5−189570号公報参照)。
Reference numeral 10 is a control device as an article recognition device for recognizing an article based on an image taken by the image pickup device 11, and is a storage unit such as a CPU, an MPU or the like, a semiconductor memory, a magnetic disk or the like. Means, keyboard, input means such as mouse, CRT, display means such as liquid crystal display, communication interface and the like. Then, the control device 10 stores an inspection image storage unit 12 that stores an image captured by the imaging device 11, a model image storage unit 13 that stores a model image that serves as a reference for recognizing an article, A recognition processing unit 14 that executes a process of recognizing an article, and a lighting device 16 described later.
The lighting control unit 15 for controlling the. Here, the recognition processing unit 14 compares the image captured by the imaging device 11 stored in the inspection image storage unit 12 with the model image stored in the model image storage unit 13,
The degree of similarity is calculated by the normalized correlation calculation, that is, pattern matching is performed by the normalized correlation. The pattern matching by the normalized correlation is a well-known technique (see JP-A-63-98070 and JP-A-5-189570).

【0029】そして、照明装置16は載置台23の上方
に配設される。ここで、前記照明装置16は、例えば、
白熱電球、蛍光灯、ハロゲンランプ等であってもよい
が、照度制御における応答性に優れたLED(Ligh
t Emitting Diode)から成り、発光面
がリング状(環状)に形成されたリング状照明ユニット
16−1及び16−2であることが望ましい。この場
合、上段のリング状照明ユニット16−1の外径は、下
段のリング状照明ユニット16−2の内径よりも小さく
なっている。また、上段のリング状照明ユニット16−
1及び下段のリング状照明ユニット16−2の照明光の
色は同一である。これにより、前記電子部品22の上端
面が異なった角度で入射する照明光によって照らされる
ので、前記上端面の微小な傾き、該上端面に存在する微
小な傷、切り込み等が認識されないようになる。なお、
前記リング状照明ユニットは、3段以上であってもよ
い。また、一つのリング状照明ユニットを擬似同軸照明
ユニットとしてもよい。また、照明装置16と撮像装置
11の相対的位置関係は、変化しないことが望ましい。
The lighting device 16 is disposed above the mounting table 23. Here, the lighting device 16 is, for example,
It may be an incandescent lamp, a fluorescent lamp, a halogen lamp, or the like, but an LED (Light that has excellent responsiveness in illuminance control)
It is desirable that the ring-shaped illumination units 16-1 and 16-2 are formed of a ring-shaped (ring-shaped) light emitting surface and are formed of a t emitting diode. In this case, the outer diameter of the upper ring-shaped lighting unit 16-1 is smaller than the inner diameter of the lower ring-shaped lighting unit 16-2. In addition, the ring-shaped lighting unit 16-
The color of the illumination light of the ring-shaped illumination unit 16-2 of the first and the lower stage is the same. As a result, the upper end surface of the electronic component 22 is illuminated by the illumination light incident at different angles, so that the minute inclination of the upper end surface, the minute scratches, the cuts and the like existing on the upper end surface are not recognized. . In addition,
The ring-shaped illumination unit may have three or more stages. Further, one ring-shaped lighting unit may be a pseudo coaxial lighting unit. Moreover, it is desirable that the relative positional relationship between the illumination device 16 and the imaging device 11 does not change.

【0030】次に、前記構成の物品認識装置の動作につ
いて説明する。
Next, the operation of the article recognition apparatus having the above-mentioned structure will be described.

【0031】図3は本発明の実施の形態における撮像装
置によって撮影された画像を示す図、図4は本発明の実
施の形態における画像の輝度のノイズを除去する方法を
示す図、図5は本発明の実施の形態におけるモデル画像
の例を示す第1の図、図6は本発明の実施の形態におけ
るモデル画像の例を示す第2の図、図7は本発明の実施
の形態における物品認識処理を示すフローチャートであ
る。
FIG. 3 is a diagram showing an image photographed by the image pickup device according to the embodiment of the present invention, FIG. 4 is a diagram showing a method for removing noise of luminance of the image according to the embodiment of the present invention, and FIG. FIG. 1 is a first diagram showing an example of a model image in the embodiment of the present invention, FIG. 6 is a second diagram showing an example of the model image in the embodiment of the present invention, and FIG. 7 is an article in the embodiment of the present invention. It is a flowchart which shows a recognition process.

【0032】ここでは、本実施の形態における物品認識
装置が、電子装置等の製造ラインにおいて、基板21上
に実装された電子部品22の向きを判別して、間違った
向きの電子部品22が実装された基板21を不良品とし
て検出するための検査工程において使用される場合につ
いて説明する。
Here, the article recognition device according to the present embodiment discriminates the orientation of the electronic component 22 mounted on the substrate 21 in the manufacturing line of the electronic device or the like, and the electronic component 22 having the wrong orientation is mounted. A case will be described in which it is used in the inspection process for detecting the defective substrate 21 as a defective product.

【0033】まず、半田リフロー等の工程を経て、多数
の電子部品22が固定され、実装された基板21が載置
台23上に載置される。すると、撮像装置11及び照明
装置16が、図示されないロボットハンド、X−Y移動
装置等の移動手段によって、前記基板21上に存在する
前記多数の電子部品22のうちの1つの上に移動させら
れる。ここでは、前記載置台23は移動せず、前記照明
装置16が一体的に取り付けられた撮像装置11が前記
移動手段によって、前記載置台23に対して移動させら
れる場合について説明する。
First, through a process such as solder reflow, a large number of electronic components 22 are fixed, and the mounted substrate 21 is mounted on the mounting table 23. Then, the imaging device 11 and the illumination device 16 are moved onto one of the multiple electronic components 22 existing on the substrate 21 by a moving means such as a robot hand or an XY moving device (not shown). . Here, a case will be described in which the mounting table 23 does not move, and the imaging device 11 to which the illumination device 16 is integrally attached is moved by the moving unit with respect to the mounting table 23.

【0034】そして、前記撮像装置11は、上方から電
子部品22の上端面の画像を撮影する。これにより、図
3に示されるような画像が撮影され、パターンマッチン
グの対象となる検査画像として検査画像記憶部12に格
納される。ここで、図3に示される画像は、前記電子部
品22がアルミ電解コンデンサである場合の例であり、
文字列24及び極性マーク25が含まれている。この場
合、検査画像の輝度におけるばらつきを低減するため
に、まず、空間フィルタを使用して、検査画像の平滑化
処理が行われる。これにより、画像がぼけた状態とな
り、微小なノイズ成分が画像から除去される。
Then, the image pickup device 11 takes an image of the upper end surface of the electronic component 22 from above. As a result, an image as shown in FIG. 3 is captured and stored in the inspection image storage unit 12 as an inspection image to be subjected to pattern matching. Here, the image shown in FIG. 3 is an example when the electronic component 22 is an aluminum electrolytic capacitor,
The character string 24 and the polarity mark 25 are included. In this case, in order to reduce the variation in the brightness of the inspection image, a spatial filter is first used to perform the smoothing process on the inspection image. As a result, the image becomes blurred and minute noise components are removed from the image.

【0035】続いて、認識処理部14は、所定の範囲以
上及び以下の輝度の成分をカットする背景カット処理を
行う。これにより、前記範囲外における輝度のノイズを
除去し、検査画像の輝度におけるばらつきをさらに低減
することができる。本実施の形態においては、正規化相
関によるパターンマッチングを行うようになっている。
そして、正規化相関によるパターンマッチングの場合、
検査画像における輝度にばらつきが少ない方が、すなわ
ち、輝度のノイズが少ない方が、安定した相関値を得る
ことができ、安定したパターンマッチングの結果を得る
ことができる。そのため、図4に示されるように、所定
の範囲、例えば、輝度が200以上及び80以下の輝度
の成分をカットするようになっている。
Subsequently, the recognition processing section 14 carries out a background cutting process for cutting luminance components above and below a predetermined range. As a result, it is possible to remove the noise of the luminance outside the range and further reduce the variation in the luminance of the inspection image. In the present embodiment, pattern matching based on normalized correlation is performed.
And in the case of pattern matching by normalized correlation,
When the variation in luminance in the inspection image is small, that is, when the luminance noise is small, a stable correlation value can be obtained, and a stable pattern matching result can be obtained. Therefore, as shown in FIG. 4, a predetermined range, for example, a luminance component having a luminance of 200 or more and 80 or less is cut.

【0036】ここで、背景カット処理を行う前の検査画
像の輝度分布は、例えば、図4(a)に示されるように
なっている。なお、図4(a)において横軸には、撮像
装置11によって撮影された検査画像の輝度が示されて
いるが、該輝度の数値は、相対的なものであり、最大値
を255、最小値を0として、256段階に設定された
ものである。この場合、撮像装置11におけるCCD、
撮像管等の撮像手段の感度、アンプの増幅度等によって
得られる最大の輝度を255として設定することが通常
である。しかし、所定の輝度を255として設定するこ
ともできる。例えば、前記最大の輝度の80〔%〕の輝
度を最大値255として設定し、それ以上の輝度はすべ
て255として表すようにしてもよい。また、最小値に
ついても同様であり、前記撮像手段の感度、アンプの増
幅度等によって得られる最低の輝度を0として設定する
ことが通常であるが、適宜設定することができる。ま
た、図4(a)において縦軸には、撮像装置11によっ
て撮影された検査画像中の各輝度の画素の頻出する度
合、すなわち、頻度が示されている。なお、該頻度は、
全画素数に対する各輝度の画素の割合であってもよい
し、各輝度の画素の数であってもよい。
Here, the brightness distribution of the inspection image before the background cutting process is, for example, as shown in FIG. 4 (a). Note that, in FIG. 4A, the horizontal axis represents the brightness of the inspection image captured by the imaging device 11, but the numerical values of the brightness are relative and the maximum value is 255 and the minimum value is 255. The value is set to 0 and is set in 256 steps. In this case, the CCD in the image pickup device 11,
It is usual to set the maximum brightness obtained by the sensitivity of the image pickup means such as the image pickup tube and the amplification degree of the amplifier to 255. However, the predetermined brightness can be set as 255. For example, the brightness of 80% of the maximum brightness may be set as the maximum value 255, and all the brightness higher than the maximum brightness may be represented as 255. The same applies to the minimum value, and it is usual to set 0 as the lowest luminance obtained by the sensitivity of the image pickup means, the amplification degree of the amplifier, etc., but it can be set appropriately. Further, in FIG. 4A, the vertical axis indicates the degree of frequent occurrence of pixels of each luminance in the inspection image captured by the imaging device 11, that is, the frequency. The frequency is
It may be the ratio of pixels of each luminance to the total number of pixels, or the number of pixels of each luminance.

【0037】そして、図4(a)には、図3に示される
ような検査画像における輝度の分布例が示されている。
ここで、分布範囲27aは背景としての電子部品22の
本体部分に対応する画素の輝度分布を示し、分布範囲2
7bは文字列24及び極性マーク25に対応する画素の
輝度分布を示している。電子部品22がアルミ電解コン
デンサ等である場合、背景となる本体部分はアルミニウ
ム合金の地金であるため、照明装置16からの照明光の
反射率が高いので、輝度が高くなる。また、前記文字列
24及び極性マーク25は、前記アルミニウム合金の地
金に印刷されているため、照明装置16からの照明光の
反射率が前記アルミニウム合金の地金よりも低いので、
輝度が低くなる。
Then, FIG. 4A shows an example of the luminance distribution in the inspection image as shown in FIG.
Here, the distribution range 27a indicates the luminance distribution of the pixels corresponding to the main body of the electronic component 22 as the background, and the distribution range 2a
7b shows the luminance distribution of the pixels corresponding to the character string 24 and the polarity mark 25. When the electronic component 22 is an aluminum electrolytic capacitor or the like, the background main body portion is an aluminum alloy base metal, and therefore the reflectance of the illumination light from the illumination device 16 is high, so that the brightness is high. Since the character string 24 and the polar mark 25 are printed on the aluminum alloy ingot, the reflectance of the illumination light from the lighting device 16 is lower than that of the aluminum alloy ingot.
The brightness becomes low.

【0038】この場合、輝度が200に対応する上限ラ
イン28a及び輝度が80に対応する下限ライン28b
を設定して、前記上限ライン28a以上の範囲及び下限
ライン28b以下の範囲をカットし、前記上限ライン2
8aと下限ライン28bとの間の範囲を抽出する。そし
て、横軸のスケールを調整して、前記上限ライン28a
に対応する輝度を255に設定し、前記下限ライン28
bに対応する輝度を0に設定することにより、背景カッ
ト処理が行われた画像を得ることができる。ここで、該
背景カット処理が行われた検査画像の輝度分布は、図4
(b)に示されるようになる。
In this case, the upper limit line 28a corresponding to a luminance of 200 and the lower limit line 28b corresponding to a luminance of 80
Is set to cut the range above the upper limit line 28a and the range below the lower limit line 28b, and the upper limit line 2
The range between 8a and the lower limit line 28b is extracted. Then, by adjusting the scale of the horizontal axis, the upper limit line 28a
Is set to 255, and the lower limit line 28
By setting the brightness corresponding to b to 0, it is possible to obtain an image subjected to background cut processing. Here, the luminance distribution of the inspection image subjected to the background cut processing is shown in FIG.
As shown in (b).

【0039】なお、前記上限ライン28a及び下限ライ
ン28bの対応する輝度の値は、適宜設定することがで
きる。例えば、図4(a)に示される例において、分布
範囲27bがより縦軸に近い位置にある場合、すなわ
ち、文字列24及び極性マーク25に対応する画素の輝
度分布がより低い輝度範囲にある場合には、下限ライン
28bをより低い輝度の値に対応させることが望まし
い。この場合、文字列24において最も印刷の薄い部分
が検出することができるように、下限ライン28bの対
応する輝度の値を設定することが望ましい。
The corresponding luminance values of the upper limit line 28a and the lower limit line 28b can be set appropriately. For example, in the example shown in FIG. 4A, when the distribution range 27b is closer to the vertical axis, that is, the brightness distribution of the pixels corresponding to the character string 24 and the polarity mark 25 is in the lower brightness range. In this case, it is desirable that the lower limit line 28b corresponds to a lower brightness value. In this case, it is desirable to set the corresponding luminance value of the lower limit line 28b so that the lightest printed portion of the character string 24 can be detected.

【0040】続いて、認識処理部14は、1つのモデル
画像を参照して、該モデル画像が検査画像中のどの位置
にあるかを見出すために第1パターンマッチング処理を
行う。ここで、物品を認識するための基準となるモデル
画像が、前記物品毎にあらかじめ作成され、モデル画像
記憶部13に格納されている。前記モデル画像は、さら
に、それぞれの物品に対して複数作成されていることが
望ましい。例えば、図3に示されるような上端面の画像
を有する電子部品22に対しては、図5に示されるよう
に、文字列を構成する文字の太さが異なる4つのモデル
画像があらかじめ作成され、モデル画像記憶部13に格
納されている。なお、図5に示されるモデル画像は、文
字列に加えて、電子部品22の上端面の輪郭線及び極性
マークを含んでいるが、前記電子部品22の上端面の輪
郭線及び極性マークは省略することができる。さらに、
前記文字列も全部でなく、一部分の文字列だけがモデル
画像に含まれていてもよい。なお、後述されるパターン
マッチング処理において、モデル画像に含まれる各種画
像の中から、必要な文字列の部分だけを抽出して、パタ
ーンマッチングのためのモデル画像とすることもでき
る。
Subsequently, the recognition processing section 14 refers to one model image and performs a first pattern matching process in order to find out at which position in the inspection image the model image is located. Here, a model image serving as a reference for recognizing an article is created in advance for each article and stored in the model image storage unit 13. It is desirable that a plurality of the model images be further created for each article. For example, for the electronic component 22 having the image of the upper end surface as shown in FIG. 3, four model images having different thicknesses of characters forming the character string are created in advance as shown in FIG. , Which are stored in the model image storage unit 13. The model image shown in FIG. 5 includes a contour line and a polarity mark on the upper end surface of the electronic component 22 in addition to the character string, but the contour line and the polarity mark on the upper end surface of the electronic component 22 are omitted. can do. further,
Not all of the character strings but only a part of the character strings may be included in the model image. In a pattern matching process described later, only a necessary character string portion may be extracted from various images included in the model image and used as a model image for pattern matching.

【0041】また、前記電子部品22がタンタルコンデ
ンサである場合には、図6に示されるように、文字列を
構成する文字の太さが異なる2つのモデルがあらかじめ
作成され、モデル画像記憶部13に格納されている。そ
して、図6に示されるモデル画像も、図5に示される画
像と同様に、文字列に加えて、電子部品22の上端面の
輪郭線及び極性マークを含んでいるが、前記電子部品2
2の上端面の輪郭線及び極性マークは省略することがで
きる。さらに、前記文字列も全部でなく、一部分の文字
列だけがモデル画像に含まれていてもよい。
If the electronic component 22 is a tantalum capacitor, as shown in FIG. 6, two models in which the characters forming the character string have different thicknesses are created in advance, and the model image storage unit 13 is created. It is stored in. As with the image shown in FIG. 5, the model image shown in FIG. 6 also includes the outline of the upper end surface of the electronic component 22 and the polarity mark, in addition to the character string.
The contour line and the polarity mark on the upper end surface of 2 can be omitted. Further, not all of the character strings but only a part of the character strings may be included in the model image.

【0042】そして、第1パターンマッチング処理にお
いては、それぞれの物品に対して作成されている複数の
モデル画像の中から1つのモデル画像が選択され、該1
つのモデル画像を参照して、該モデル画像が検査画像中
のどの位置にあるかを見出すためのパターンマッチング
処理が行われる。ここでは、図5(a)に示されるモデ
ル画像が選択された場合について説明する。この場合、
文字列の中の所定の範囲26が抽出されて、パターンマ
ッチングのためのモデル画像とされる場合について説明
する。なお、前記範囲26はすべての文字列を含むよう
に設定されてもよいし、少ない数の文字から成る文字
列、例えば、「16v」だけを含むように設定されても
よい。なお、アラビア数字の1、漢数字の一等のよう
に、極めて単純な形状の文字だけから成る文字列を前記
パターンマッチングのためのモデル画像とすることは避
けることが望ましい。もっとも、個々の文字の形状が単
純であっても、文字列全体としての形状があまり単純に
ならなければ、前記パターンマッチングのためのモデル
画像として選択するのに相応しい。
In the first pattern matching process, one model image is selected from a plurality of model images created for each article, and the
A pattern matching process is performed with reference to one model image to find out where the model image is located in the inspection image. Here, the case where the model image shown in FIG. 5A is selected will be described. in this case,
A case where a predetermined range 26 in the character string is extracted and used as a model image for pattern matching will be described. The range 26 may be set to include all character strings, or may be set to include only a character string composed of a small number of characters, for example, “16v”. It should be noted that it is desirable to avoid using a character string consisting of characters of extremely simple shapes as the model image for the pattern matching, such as the Arabic numeral 1 and the Chinese numeral 1. However, even if the shape of each character is simple, if the shape of the entire character string is not so simple, it is suitable to be selected as the model image for the pattern matching.

【0043】続いて、認識処理部14は、図5(a)に
示されるモデル画像の範囲26に含まれる文字列をパタ
ーンマッチングのためのモデル画像として参照し、図3
に示されるような検査画像と比較する。この場合、認識
処理部14は、正規化相関によるパターンマッチングを
行い、類似度としての相関値を算出し、前記範囲26に
含まれる文字列が前記検査画像のどの位置に存在するか
を探し出して、前記範囲26に含まれる文字列の前記検
査画像における位置座標及び回転角度を算出する。な
お、第1パターンマッチング処理は前記範囲26に含ま
れる文字列の前記検査画像における位置座標及び回転角
度を予備的に決定するために行われるものなので、第1
パターンマッチング処理における前記相関値の閾(しき
い)値は低い値に設定される。これにより、認識処理部
14の処理負担が軽減され、第1パターンマッチング処
理の処理時間が短縮される。
Subsequently, the recognition processing unit 14 refers to the character string included in the range 26 of the model image shown in FIG. 5A as a model image for pattern matching,
The inspection image as shown in FIG. In this case, the recognition processing unit 14 performs pattern matching by the normalized correlation, calculates the correlation value as the similarity, and finds out in which position of the inspection image the character string included in the range 26 exists. The position coordinates and the rotation angle of the character string included in the range 26 in the inspection image are calculated. The first pattern matching process is performed in order to preliminarily determine the position coordinates and the rotation angle of the character string included in the range 26 in the inspection image.
The threshold value of the correlation value in the pattern matching process is set to a low value. This reduces the processing load on the recognition processing unit 14 and shortens the processing time of the first pattern matching processing.

【0044】続いて、認識処理部14は、第1パターン
マッチング処理によって算出された範囲26に含まれる
文字列の検査画像における位置座標及び回転角度に関し
て確認するために第2パターンマッチング処理を行う。
この場合、それぞれの物品に対して複数作成されモデル
画像記憶部13に格納されているモデル画像をすべて参
照して、パターンマッチングが行われる。したがって、
認識処理部14は、図5(a)〜(d)に示されるモデ
ル画像の範囲26に含まれる文字列をパターンマッチン
グのためのモデル画像として順次参照し、図3に示され
るような検査画像と比較する。
Subsequently, the recognition processing section 14 carries out the second pattern matching processing in order to confirm the position coordinates and the rotation angle in the inspection image of the character string included in the range 26 calculated by the first pattern matching processing.
In this case, the pattern matching is performed with reference to all the model images created for each article and stored in the model image storage unit 13. Therefore,
The recognition processing unit 14 sequentially refers to the character string included in the range 26 of the model image shown in FIGS. 5A to 5D as a model image for pattern matching, and the inspection image as shown in FIG. Compare with.

【0045】電子部品の場合、表面に印刷されている製
品名、部品番号、種類、規格、性能等を表示するための
文字列は、その色や線幅が、印刷状態によって、わずか
ずつではあるが、異なっていることが多い。そのため、
モデル画像記憶部13には、図5(a)〜(d)に示さ
れるように、文字列の線幅が少しずつ相違する4つのモ
デル画像が格納されている。
In the case of electronic parts, the character string for displaying the product name, part number, type, standard, performance, etc. printed on the front surface is slightly different in color and line width depending on the printing state. However, they are often different. for that reason,
As shown in FIGS. 5A to 5D, the model image storage unit 13 stores four model images in which the line widths of the character strings are slightly different.

【0046】そして、認識処理部14は、図5(a)〜
(d)に示されるモデル画像の範囲26に含まれる文字
列をパターンマッチングのためのモデル画像として参照
し、図3に示されるような検査画像と順次比較する。こ
の場合、認識処理部14は、正規化相関によるパターン
マッチングを行い類似度としての相関値を算出し、最も
相関値の高いモデル画像を選択する。なお、第1パター
ンマッチング処理によって、範囲26に含まれる文字列
の前記検査画像における位置座標及び回転角度が予備的
に決定されているため、正規化相関によるパターンマッ
チングを行っても、認識処理部14の処理負担がさほど
大きくなることはなく、処理時間も長くなることがな
い。ここでは、図5(a)に示されるモデル画像の範囲
26に含まれる文字列をパターンマッチングのためのモ
デル画像とした場合に、最も高い相関値を得ることがで
きたものとする。
Then, the recognition processing section 14 is shown in FIG.
The character string included in the range 26 of the model image shown in (d) is referred to as a model image for pattern matching, and sequentially compared with the inspection image as shown in FIG. In this case, the recognition processing unit 14 performs pattern matching by the normalized correlation to calculate the correlation value as the similarity, and selects the model image having the highest correlation value. Since the position coordinates and the rotation angle of the character string included in the range 26 in the inspection image are preliminarily determined by the first pattern matching process, even if the pattern matching by the normalized correlation is performed, the recognition processing unit The processing load of 14 does not increase so much, and the processing time does not increase. Here, it is assumed that the highest correlation value can be obtained when the character string included in the range 26 of the model image shown in FIG. 5A is used as the model image for pattern matching.

【0047】続いて、認識処理部14は、第2パターン
マッチング処理によって選択されたモデル画像の相関
値、すなわち、最も高い相関値が、あらかじめ設定され
た閾値以上であるか否かを判定する相関値判定処理を行
う。この場合、前記閾値は、第1パターンマッチング処
理において設定された相関値の閾値よりも高い値に設定
される。そして、前記相関値が閾値以上である場合、認
識処理部14は、電子部品22が正しく認識されたもの
と判断して、範囲26に含まれる文字列の検査画像にお
ける位置座標及び回転角度に基づいて、前記電子部品2
2が存在することを確認し、該電子部品22の位置、角
度、向き、傾き等を算出して出力する。これにより、制
御装置10は、前記電子部品22の向きを判別して、該
電子部品22が基板21上に正しく実装されたか否かを
判断することができる。
Subsequently, the recognition processing unit 14 determines whether or not the correlation value of the model image selected by the second pattern matching processing, that is, the highest correlation value is equal to or more than a preset threshold value. Perform value determination processing. In this case, the threshold value is set to a value higher than the correlation value threshold value set in the first pattern matching process. Then, when the correlation value is equal to or more than the threshold value, the recognition processing unit 14 determines that the electronic component 22 is correctly recognized, and based on the position coordinates and the rotation angle of the character string included in the range 26 in the inspection image. The electronic component 2
2 is confirmed, the position, angle, direction, inclination, etc. of the electronic component 22 are calculated and output. Thereby, the control device 10 can determine the orientation of the electronic component 22 and determine whether the electronic component 22 is correctly mounted on the substrate 21.

【0048】一方、前記相関値が閾値未満である場合、
認識処理部14は、照明照度変更処理を行う。ここで、
撮像装置11によって撮影された検査画像中の文字列の
線幅は、照明装置16からの照明光の照度、すなわち、
照明照度によって変化し、明るい背景中に暗い色で印刷
された文字列の線幅は、前記照明照度が強くなると細く
なる。これは、前記文字列の線の周囲の背景から反射さ
れて撮像装置11に入射する照明光が強くなり、文字列
の線幅を浸食するためである。そのため、所定の照明照
度において撮影された検査画像中の文字列の線幅が、例
えば、図5(d)に示されるように太い場合でも、照明
照度を強くすると、例えば、図5(a)に示されるよう
に、細くなってしまう。
On the other hand, when the correlation value is less than the threshold value,
The recognition processing unit 14 performs an illumination illuminance changing process. here,
The line width of the character string in the inspection image captured by the imaging device 11 is the illuminance of the illumination light from the illumination device 16, that is,
The line width of a character string printed in a dark color on a light background changes depending on the illumination intensity, and becomes narrower as the illumination intensity increases. This is because the illumination light reflected from the background surrounding the line of the character string and incident on the image pickup device 11 becomes strong and erodes the line width of the character string. Therefore, even if the line width of the character string in the inspection image photographed at a predetermined illumination illuminance is thick as shown in FIG. 5D, if the illumination illuminance is increased, for example, FIG. As shown in, it becomes thinner.

【0049】また、暗い背景中に明るい色で印刷された
文字列の線幅は、前記照明照度が強くなると太くなる。
この場合、所定の照明照度において撮影された検査画像
中の文字列の線幅が、例えば、図6(a)に示されるよ
うに細い場合でも、照明照度を強くすると、例えば、図
6(b)に示されるように、太くなってしまう。
Further, the line width of a character string printed in a bright color on a dark background becomes thicker as the illumination illuminance becomes stronger.
In this case, even if the line width of the character string in the inspection image taken at a predetermined illumination illuminance is thin as shown in FIG. 6A, if the illumination illuminance is increased, for example, as shown in FIG. ), It becomes thicker.

【0050】そこで、認識処理部14は、照明制御部1
5に指令を送信し、照明装置16を制御して、照明照度
をあらかじめ設定された変化量だけ変化させて、再度、
電子部品22の上端面の画像を撮像装置11に撮影させ
る。そして、前述された検査画像の平滑化処理、背景カ
ット処理、第1パターンマッチング処理、第2パターン
マッチング処理及び相関値判定処理が行われる。
Therefore, the recognition processing section 14 includes the illumination control section 1
5, the lighting device 16 is controlled to change the illumination illuminance by a preset change amount, and again,
The image pickup device 11 is caused to take an image of the upper end surface of the electronic component 22. Then, the above-described inspection image smoothing process, background cutting process, first pattern matching process, second pattern matching process, and correlation value determination process are performed.

【0051】そして、該相関値判定処理において、第2
パターンマッチング処理によって算出された最も高い相
関値が、あらかじめ設定された閾値以上であると判定さ
れた場合は、前述されたように、電子部品22の位置、
角度、向き、傾き等が算出されて出力される。一方、前
記相関値が閾値未満である場合、前記照明照度変更処理
が再度行われるようにしてもよいし、前記電子部品22
についての処理を終了して、該電子部品22の検出不能
を確認して出力してもよい。なお、前記照明照度変更処
理が何度も行われるように設定することは可能である
が、基板21の検査工程のスループットが低下するの
で、1、2度行われるように設定することが望ましい。
Then, in the correlation value judgment processing, the second
If it is determined that the highest correlation value calculated by the pattern matching process is equal to or greater than the preset threshold value, as described above, the position of the electronic component 22,
The angle, direction, inclination, etc. are calculated and output. On the other hand, when the correlation value is less than the threshold value, the illumination illuminance changing process may be performed again, or the electronic component 22.
It is also possible to end the processing of (1) and confirm that the electronic component 22 cannot be detected, and output the electronic component 22. Although it is possible to set the illumination illuminance changing process to be performed many times, it is desirable to set it to be performed once or twice because the throughput of the inspection process of the substrate 21 is reduced.

【0052】このようにして、制御装置10が、前記電
子部品22の向きを判別して、該電子部品22が基板2
1上に正しく実装されたか否かを判断すると、撮像装置
11が前記基板21上の他の電子部品22の上に移動さ
せられ、該他の電子部品22に対して前述された検査画
像の平滑化処理、背景カット処理、第1パターンマッチ
ング処理、第2パターンマッチング処理及び相関値判定
処理が行われる。そして、前記基板21上のすべての電
子部品22の向きが判別され、該電子部品22が基板2
1上に正しく実装されたか否かが判断される。
In this way, the control device 10 determines the orientation of the electronic component 22, and the electronic component 22 determines that the substrate 2
When it is determined whether or not it is correctly mounted on the board 1, the imaging device 11 is moved onto the other electronic component 22 on the board 21 and the inspection image is smoothed with respect to the other electronic component 22. Conversion processing, background cutting processing, first pattern matching processing, second pattern matching processing, and correlation value determination processing. Then, the orientations of all electronic components 22 on the substrate 21 are determined, and the electronic components 22 are
It is determined whether or not it has been correctly mounted on 1.

【0053】次に、フローチャートについて説明する。
ステップS1 検査画像の輝度におけるばらつきを低減
するために、空間フィルタを使用して平滑化処理を行
い、微小なノイズ成分を除去する。ステップS2 検査
画像の輝度におけるばらつきを低減するために、所定の
範囲以上又は以下の輝度の成分をカットし、前記範囲外
の輝度のノイズを除去する。ステップS3 一つのモデ
ルを参照し、該モデルが検査画像のどの位置にあるか探
し、位置座標及び回転角度を算出する。ステップS4
算出された位置座標及び回転角度から、複数のモデルの
中で最も相関値が高いものを選択する。ステップS5
選択されたモデルの相関値が閾値以上であるか否かを判
定する相関値判定処理を行う。ステップS6 相関値が
閾値未満である場合は、照明照度変更処理を行う。ステ
ップS7 相関値が閾値以上である場合は、電子部品2
2が正しく認識されたと判断し、再度、照明照度変更処
理を行っても相関値が閾値未満である場合は電子部品2
2が認識されないとして処理を終了する。
Next, the flow chart will be described.
Step S1 In order to reduce the variation in the brightness of the inspection image, a smoothing process is performed using a spatial filter to remove minute noise components. Step S2 In order to reduce the variation in the brightness of the inspection image, the brightness component above or below a predetermined range is cut, and the noise of the brightness outside the range is removed. Step S3 Referring to one model, the position of the model in the inspection image is searched, and the position coordinates and the rotation angle are calculated. Step S4
From the calculated position coordinates and rotation angles, the model having the highest correlation value among the plurality of models is selected. Step S5
Correlation value determination processing is performed to determine whether the correlation value of the selected model is equal to or greater than the threshold value. Step S6 If the correlation value is less than the threshold value, the illumination illuminance changing process is performed. Step S7: If the correlation value is greater than or equal to the threshold value, the electronic component 2
2 is correctly recognized, and if the correlation value is less than the threshold value even after performing the illumination illuminance changing process again, the electronic component 2
The process ends as 2 is not recognized.

【0054】ところで、検査画像にノイズが含まれない
ようにして文字列の形状を認識するためには、背景の輝
度と印刷部分である文字列の輝度との差が大きいことが
望ましい。そのため、本実施の形態においては、背景の
輝度と文字列、すなわち、印刷部分の輝度との差が最大
となるように照明照度があらかじめ設定されるようにな
っている。
By the way, in order to recognize the shape of the character string so that the inspection image does not include noise, it is desirable that the difference between the brightness of the background and the brightness of the character string that is the printed portion is large. Therefore, in the present embodiment, the illumination illuminance is set in advance so that the difference between the background brightness and the character string, that is, the brightness of the printed portion is maximized.

【0055】図8は本発明の実施の形態における照明照
度を設定する方法を示す図、図9は本発明の実施の形態
における照明照度の変化に対する画像の輝度変化の実測
値を示す図である。
FIG. 8 is a diagram showing a method of setting the illumination illuminance in the embodiment of the present invention, and FIG. 9 is a diagram showing an actual measurement value of the luminance change of the image with respect to the change of the illumination illuminance in the embodiment of the present invention. .

【0056】ここで、照明照度を変化させると、背景の
輝度及び印刷部分の輝度は、図8に示されるように変化
する。図8において横軸には、照明装置16からの照明
光の照度、すなわち、照明照度が示され、縦軸には撮像
装置11によって撮影された検査画像の輝度が示されて
いる。該輝度の数値は、図4(a)における輝度と同様
に、相対的なものであり、最大値を255、最小値を0
として、256段階に設定されたものである。この場
合、撮像装置11におけるCCD、撮像管等の撮像手段
の感度、アンプの増幅度等によって得られる最大の輝度
を255として設定することが通常であるが、所定の輝
度を255として設定することもできる。例えば、前記
最大の輝度の80〔%〕の輝度を最大値255として設
定し、それ以上の輝度はすべて255として表すように
してもよい。また、最小値についても同様であり、前記
撮像手段の感度、アンプの増幅度等によって得られる最
低の輝度を0として設定することが通常であるが、適宜
設定することができる。
Here, when the illumination illuminance is changed, the brightness of the background and the brightness of the printed portion change as shown in FIG. In FIG. 8, the horizontal axis represents the illuminance of the illumination light from the illumination device 16, that is, the illumination illuminance, and the vertical axis represents the brightness of the inspection image captured by the imaging device 11. The numerical value of the luminance is relative, like the luminance in FIG. 4A, and the maximum value is 255 and the minimum value is 0.
Is set in 256 steps. In this case, it is usual to set the maximum luminance obtained by the sensitivity of the image pickup means such as the CCD and the image pickup tube of the image pickup device 11 and the amplification degree of the amplifier as 255, but set the predetermined luminance as 255. You can also For example, the brightness of 80% of the maximum brightness may be set as the maximum value 255, and all the brightness higher than the maximum brightness may be represented as 255. The same applies to the minimum value, and it is usual to set 0 as the lowest luminance obtained by the sensitivity of the image pickup means, the amplification degree of the amplifier, etc., but it can be set appropriately.

【0057】そして、図3に示されるような検査画像の
ように、背景が明るい色で反射率が高く、印刷部分が暗
い色で反射率が低い場合、照明照度を変化させると、背
景の輝度及び印刷部分の輝度は、図8において線31及
び線32で示されるように変化する。ここで、線31は
前記背景の輝度の変化を示し、線32は印刷部分の輝度
の変化を示している。また、線33は輝度の最大値25
5を示している。そして、照明照度を変化させた場合、
背景の輝度と印刷部分の輝度との差は線分34の長さで
示される。
When the background is a bright color and the reflectance is high and the printed portion is a dark color and the reflectance is low as in the inspection image as shown in FIG. 3, when the illumination illuminance is changed, the luminance of the background is changed. And the brightness of the printed portion changes as shown by lines 31 and 32 in FIG. Here, the line 31 shows the change in the brightness of the background, and the line 32 shows the change in the brightness of the printed portion. Also, the line 33 has a maximum value of 25
5 is shown. And when the illumination illuminance is changed,
The difference between the background brightness and the printed part brightness is indicated by the length of the line segment 34.

【0058】図8において、線分34が最長となるの
は、該線分34の上端が線31及び線33の交点に位置
する場合であることが分かる。なお、該交点に対応する
照明照度の値は矢印35で示される。このことから、背
景の輝度が最大となるように照明照度を設定した場合、
すなわち、照明照度の値を矢印35で示される値とした
場合に、背景の輝度と印刷部分の輝度との差が最大とな
ることが判明した。なお、図3に示されるように、背景
の輝度よりも印刷部分の輝度が高い場合は、印刷部分の
輝度が最大となるように照明照度を設定する。
In FIG. 8, it is understood that the line segment 34 has the longest length when the upper end of the line segment 34 is located at the intersection of the line 31 and the line 33. The value of the illumination illuminance corresponding to the intersection is indicated by arrow 35. From this, when the illumination illuminance is set so that the background brightness becomes maximum,
That is, it was found that when the value of the illumination illuminance was set to the value indicated by the arrow 35, the difference between the brightness of the background and the brightness of the printed portion was the maximum. Note that, as shown in FIG. 3, when the brightness of the printed portion is higher than the brightness of the background, the illumination illuminance is set so that the brightness of the printed portion is maximized.

【0059】ここで、背景の輝度と印刷部分の輝度との
差が大きいと、画像に含まれるノイズを確実に除去する
ことができる。すなわち、通常のノイズフィルタは、画
像に含まれるノイズの値よりも十分に大きな閾値を設定
して、該閾値以下の信号をすべて除去するようにして、
ノイズを除去することができる。この場合でも、背景の
輝度と印刷部分の輝度との差が大きいので、背景と印刷
部分とを明確に識別することができる。
Here, if the difference between the brightness of the background and the brightness of the printed portion is large, noise included in the image can be reliably removed. That is, a normal noise filter sets a threshold value sufficiently larger than the value of noise included in an image so as to remove all signals below the threshold value,
Noise can be removed. Even in this case, there is a large difference between the brightness of the background and the brightness of the printed portion, so that the background and the printed portion can be clearly identified.

【0060】これに対し、背景の輝度と印刷部分の輝度
との差が小さい場合には、前記閾値を大きくすることが
できないので、ノイズを確実に除去することができなく
なってしまう。そのため、背景と印刷部分とを明確に識
別することができなくなってしまう。また、前記閾値を
大きくするとノイズも除去されるが、背景又は印刷部分
を示す信号も除去されてしまうので、背景と印刷部分と
を明確に識別することができなくなってしまう。
On the other hand, when the difference between the brightness of the background and the brightness of the printed portion is small, the threshold value cannot be increased and noise cannot be reliably removed. Therefore, the background and the printed portion cannot be clearly identified. Further, if the threshold value is increased, noise is also removed, but since a signal indicating the background or the printed portion is also removed, the background and the printed portion cannot be clearly discriminated.

【0061】したがって、撮像装置11によって撮影さ
れた検査画像における背景又は印刷部分のうちの輝度の
高い方の輝度が最大となるように照明制御部15が照明
装置16を制御することによって、通常のノイズフィル
タを使用しても、画像に含まれるノイズを確実に除去す
ることができる最適な照明照度を設定することができ
る。
Therefore, the illumination control section 15 controls the illumination device 16 so that the higher luminance of the background or the printed portion in the inspection image photographed by the image pickup device 11 becomes the maximum, so that the normal illumination is performed. Even if the noise filter is used, it is possible to set the optimum illumination illuminance that can reliably remove the noise included in the image.

【0062】なお、検査画像が、図6に示されるよう
に、背景が暗い色で反射率が低く、印刷部分が明るい色
で反射率が高い場合には、図8において、前記背景の輝
度は線32のような変化を示し、印刷部分の輝度は線3
1のような変化を示す。したがって、撮像装置11によ
って撮影された検査画像における印刷部分の輝度が最大
となるように照明制御部15が照明装置16を制御する
ことによって、最適な照明照度を設定することができ
る。
As shown in FIG. 6, when the inspection image has a dark background and a low reflectance and the printed portion has a bright color and a high reflectance, the luminance of the background in FIG. It shows a change like the line 32, and the brightness of the printed part is line 3
It shows a change like 1. Therefore, the illumination controller 15 controls the illumination device 16 so that the brightness of the printed portion in the inspection image captured by the imaging device 11 is maximized, so that the optimal illumination illuminance can be set.

【0063】図9には、照明照度の変化に対する輝度変
化の実測値を表す「照明照度−CCD感度特性」が示さ
れている。図9において横軸には、照明装置16からの
照明光の照度、すなわち、照明照度が示され、縦軸には
撮像装置11によって撮影された検査画像の輝度として
のCCD感度が示されている。
FIG. 9 shows "illumination illuminance-CCD sensitivity characteristic" which represents the actual measurement value of the luminance change with respect to the illumination illuminance change. In FIG. 9, the horizontal axis represents the illuminance of the illumination light from the illumination device 16, that is, the illumination illuminance, and the vertical axis represents the CCD sensitivity as the brightness of the inspection image captured by the imaging device 11. .

【0064】ここで、前記照明照度の数値は、相対的な
ものであり、最大値を255、最小値を0として、25
6段階に設定されたものであり、照明装置16の出力を
制御可能な最大出力とした場合の照明照度を255とし
て設定し、照明装置16の出力を制御可能な最小出力と
した場合の照明照度を0として設定したものである。ま
た、前記CCD感度は、撮像装置11の撮像手段である
CCDの出力値であり、検査画像における輝度に比例す
る値である。そして、前記CCD感度の数値も、相対的
なものであり、得られる最大値を255として設定し、
最低の値を0として設定したものである。
Here, the numerical value of the illumination illuminance is a relative value, and the maximum value is 255 and the minimum value is 0.
The illumination illuminance when the output of the lighting device 16 is set to the maximum controllable output is set to 255 and the output of the lighting device 16 is set to the controllable minimum output. Is set as 0. Further, the CCD sensitivity is an output value of the CCD which is the image pickup means of the image pickup device 11, and is a value proportional to the luminance in the inspection image. The CCD sensitivity value is also a relative value, and the maximum value obtained is set to 255,
The lowest value is set as 0.

【0065】また、図9における線36は、照明装置1
6からの照明光を電子部品22としてのタンタルコンデ
ンサの上端面のタンタル合金の地金に入射させた場合の
反射光のCCD感度特性を示している。また、線37
は、照明装置16からの照明光を電子部品22としての
アルミ電解コンデンサの上端面のアルミニウム合金の地
金に入射させた場合の反射光のCCD感度特性を示して
いる。さらに、線38は、照明装置16からの照明光を
電子部品22としてのアルミ電解コンデンサ及びタンタ
ルコンデンサの上端面に印刷された文字に入射させた場
合の反射光のCCD感度特性を示している。
The line 36 in FIG. 9 indicates the lighting device 1.
6 shows CCD sensitivity characteristics of reflected light when the illumination light from 6 is incident on the base metal of the tantalum alloy on the upper end surface of the tantalum capacitor as the electronic component 22. Also, line 37
Shows the CCD sensitivity characteristic of the reflected light when the illumination light from the illuminating device 16 is incident on the aluminum alloy base metal on the upper end surface of the aluminum electrolytic capacitor as the electronic component 22. Further, the line 38 shows the CCD sensitivity characteristic of the reflected light when the illumination light from the illumination device 16 is made incident on the characters printed on the upper end surfaces of the aluminum electrolytic capacitor and the tantalum capacitor as the electronic component 22.

【0066】なお、いずれの場合も、照明照度が0であ
っても、CCD感度が0となっていないが、これは照明
装置16の出力を制御可能な最小出力としても、若干の
照明光が照射されるためであると考えられる。また、タ
ンタルコンデンサのタンタル合金の地金からの反射光
は、照明装置16の出力を制御可能な最大出力として
も、CCD感度の最大値に到達しないことが分かる。さ
らに、アルミ電解コンデンサの上端面のアルミニウム合
金の地金からの反射光、及び、印刷された文字からの反
射光のCCD感度特性は、上限近傍が判然としていな
い。
In each case, even if the illumination illuminance is 0, the CCD sensitivity is not 0. However, even if the output of the illumination device 16 is the minimum output that can be controlled, some illumination light will not be emitted. It is considered that this is because it is irradiated. Further, it can be seen that the reflected light from the base metal of the tantalum alloy of the tantalum capacitor does not reach the maximum value of CCD sensitivity even if the output of the illumination device 16 is the maximum output that can be controlled. Further, the CCD sensitivity characteristics of the reflected light from the aluminum alloy base metal on the upper end surface of the aluminum electrolytic capacitor and the reflected light from the printed characters are not clear near the upper limit.

【0067】しかし、照明照度の数値もCCD感度の数
値も相対的なものであり、スケールを調整することが可
能なので、縦軸及び横軸のスケールを適切に調整するこ
とによって、図8に示されるような直線的な関係を得る
ことができる。
However, since the values of the illumination illuminance and the values of the CCD sensitivity are relative and the scale can be adjusted, the values shown in FIG. 8 can be obtained by appropriately adjusting the scales on the vertical axis and the horizontal axis. It is possible to obtain a linear relationship as shown below.

【0068】なお、照明照度と輝度との関係は、照明装
置16からの照明光を反射する部分の色合いや表面の粗
さだけでなく、照明装置16及び撮像装置11からの距
離、すなわち、照明光の光路長によっても変化する。そ
して、載置台23と、照明装置16及び撮像装置11と
の高さ関係は、通常、変化させないようになっているの
で、電子部品22の高さが相違すると、同種の部品であ
り同様の上端面を有する場合であっても、照明照度と輝
度との関係が変化してしまう。
The relationship between the illumination illuminance and the luminance is not limited to the hue and the surface roughness of the part that reflects the illumination light from the illumination device 16, but also the distance from the illumination device 16 and the image pickup device 11, that is, the illumination. It also changes depending on the optical path length of light. The height relationship between the mounting table 23 and the lighting device 16 and the image pickup device 11 is normally set so as not to change. Even if it has an end face, the relationship between illumination illuminance and brightness changes.

【0069】そこで、あらかじめ、それぞれの電子部品
22に関して、背景の輝度と印刷部分の輝度との差が最
大となる場合の照明照度の値、すなわち、矢印35で示
される値を設定し、制御装置10の記憶手段に格納して
おくことが望ましい。この場合、背景又は印刷部分のう
ちの輝度の高い方の輝度が最大となる場合の証明照度の
値を設定するだけでよいので、それぞれの電子部品22
に関して、容易に前記照明照度の値を設定することがで
きる。そして、基板21上に実装された電子部品22の
向きを判別する際に、撮像装置11が基板21上の電子
部品22の上に移動させられ、該電子部品22の上端面
の画像を撮影する時に、照明照度が前記電子部品22に
関して設定された値となるように照明制御部15が照明
装置16を制御するようにする。
Therefore, for each electronic component 22, the value of the illumination illuminance when the difference between the brightness of the background and the brightness of the printed portion is maximized, that is, the value indicated by arrow 35 is set in advance, and the control device is set. It is desirable to store it in 10 storage means. In this case, since it is only necessary to set the value of the proof illuminance in the case where the higher brightness of the background or the printed part has the maximum brightness, the respective electronic components 22
With respect to, it is possible to easily set the value of the illumination illuminance. Then, when determining the orientation of the electronic component 22 mounted on the board 21, the imaging device 11 is moved onto the electronic component 22 on the board 21, and an image of the upper end surface of the electronic component 22 is captured. At some times, the illumination control unit 15 controls the illumination device 16 so that the illumination illuminance becomes the value set for the electronic component 22.

【0070】なお、背景の輝度と印刷部分の輝度との差
が最大となる場合の照明照度の値をあらかじめ設定して
おかずに、基板21上に実装された電子部品22の向き
を判別する際に、設定することもできる。この場合、撮
像装置11が基板21上の電子部品22の上に移動させ
られ、それぞれの電子部品22の上端面の画像を撮影す
る時に、照明照度を変化させて、背景の輝度の変化を測
定する。そして、それぞれの電子部品22に関して背景
又は印刷部分のうちの輝度の高い方の輝度が最大となる
場合の照明照度の値を設定するだけでよいので、それぞ
れの電子部品22に関して、容易に、かつ、短時間で前
記照明照度の値を設定することができる。
When the orientation of the electronic component 22 mounted on the board 21 is determined without presetting the illumination illuminance value when the difference between the background brightness and the printed part brightness is maximum. Can also be set. In this case, the imaging device 11 is moved onto the electronic component 22 on the substrate 21, and when the image of the upper end surface of each electronic component 22 is captured, the illumination illuminance is changed and the change in the background brightness is measured. To do. Then, since it is only necessary to set the value of the illumination illuminance in the case where the higher brightness of the background or the printed part has the maximum brightness for each electronic component 22, it is possible to easily and easily The value of the illumination illuminance can be set in a short time.

【0071】このように、本実施の形態において、物品
認識装置の認識処理部14は、電子部品22の上端面の
画像に含まれる文字列の画像を前記モデル画像と比較し
てパターンマッチングを行い、前記電子部品22の有
無、位置、角度、向き、傾き等を算出して出力する、す
なわち、検出するようになっている。この場合、形状が
複雑な文字列の画像によってパターンマッチングを行う
ので、文字列の印刷や照明照度にばらつきがあっても、
前記電子部品22の有無、位置、角度、向き、傾き等を
検出することができる。そのため、制御装置10は、前
記電子部品22の向きを判別して、該電子部品22が基
板21上に正しく実装されたか否かを確実に判断するこ
とができる。
As described above, in the present embodiment, the recognition processing unit 14 of the article recognition device compares the image of the character string included in the image of the upper end surface of the electronic component 22 with the model image to perform pattern matching. The presence or absence of the electronic component 22, the position, the angle, the orientation, the inclination, etc. are calculated and output, that is, detected. In this case, since pattern matching is performed by using an image of a character string with a complicated shape, even if the character string is printed or the illumination illuminance varies,
The presence / absence, position, angle, direction, inclination, etc. of the electronic component 22 can be detected. Therefore, the control device 10 can determine the orientation of the electronic component 22 and reliably determine whether the electronic component 22 is correctly mounted on the substrate 21.

【0072】また、認識処理部14は、所定の範囲以上
及び以下の輝度の成分をカットする背景カット処理を行
うので、前記範囲外の輝度のノイズを除去し、検査画像
の輝度におけるばらつきを効果的に低減することができ
る。
Further, since the recognition processing unit 14 performs the background cutting processing for cutting the components of the luminance above and below the predetermined range, the noise of the luminance outside the above range is removed, and the variation in the luminance of the inspection image is effective. Can be reduced.

【0073】さらに、認識処理部14は、一つのモデル
画像を参照して、該モデル画像が検査画像中のどの位置
にあるかを見出すための第1パターンマッチング処理を
行った後に、該第1パターンマッチング処理の結果に基
づき、複数のモデル画像を参照して、より精密な第2パ
ターンマッチング処理を行う。そのため、認識処理部1
4の処理負担が軽減され、処理時間も短縮される。
Further, the recognition processing unit 14 refers to one model image, performs the first pattern matching process for finding out the position of the model image in the inspection image, and then performs the first pattern matching process. Based on the result of the pattern matching process, a more precise second pattern matching process is performed with reference to the plurality of model images. Therefore, the recognition processing unit 1
The processing load of 4 is reduced, and the processing time is also shortened.

【0074】さらに、認識処理部14は、照明照度を変
更してパターンマッチングを再度行うための照明照度変
更処理を行う。そのため、照明照度にばらつきがあって
も、適切にパターンマッチングを行うことができる。
Further, the recognition processing section 14 performs the illumination illuminance changing process for changing the illumination illuminance and performing the pattern matching again. Therefore, even if the illumination illuminance varies, pattern matching can be appropriately performed.

【0075】なお、本実施の形態においては、物品がプ
リント配線板等の基板21上に実装されたコンデンサ等
のチップ状の電子部品22である場合について説明した
が、本発明の物品認識装置及び方法は、例えば、電気製
品、自動車部品等を収容する段ボール箱や木箱、テレ
ビ、ラジオ等の工業製品等、いかなる形状、大きさの物
品であっても認識することができ、前記物品の有無、位
置、角度、向き、傾き等を正確に検出することができ
る。
Although the case where the article is the chip-shaped electronic component 22 such as the capacitor mounted on the substrate 21 such as the printed wiring board has been described in the present embodiment, the article recognition device and the article recognition apparatus of the present invention are described. The method can recognize any shape and size of an article such as a cardboard box or a wooden box for housing an electric product or an automobile part, an industrial product such as a television or a radio, and the presence or absence of the article. , Position, angle, direction, inclination, etc. can be accurately detected.

【0076】また、本発明は前記実施の形態に限定され
るものではなく、本発明の趣旨に基づいて種々変形させ
ることが可能であり、それらを本発明の範囲から排除す
るものではない。
The present invention is not limited to the above-mentioned embodiments, but can be variously modified within the scope of the present invention, and they are not excluded from the scope of the present invention.

【0077】[0077]

【発明の効果】以上詳細に説明したように、本発明にお
いて、物品認識装置は、物品の画像を撮影する撮像装置
と、モデル画像を格納する記憶部と、前記物品の画像に
含まれる文字列の画像を前記モデル画像と比較してパタ
ーンマッチングを行い、前記物品の有無、位置、角度、
向き、又は、傾きを検出する認識処理部とを有する。
As described in detail above, in the present invention, the article recognition apparatus includes an image pickup apparatus for taking an image of an article, a storage section for storing a model image, and a character string included in the image of the article. The image of is compared with the model image to perform pattern matching, the presence or absence of the article, the position, the angle,
And a recognition processing unit that detects an orientation or an inclination.

【0078】また、物品認識方法は、物品の画像を撮影
し、該物品の画像に含まれる文字列の画像をモデル画像
と比較してパターンマッチングを行い、前記物品の有
無、位置、角度、向き、又は、傾きを検出する。
In the article recognition method, an image of an article is photographed, an image of a character string included in the image of the article is compared with a model image to perform pattern matching, and the presence / absence, position, angle, direction of the article are detected. Alternatively, the tilt is detected.

【0079】この場合、形状が複雑な文字列の画像によ
ってパターンマッチングを行うので、文字列の印刷や照
明照度にばらつきがあっても、物品の有無、位置、角
度、向き、傾き等を検出することができる。
In this case, since the pattern matching is performed by the image of the character string having a complicated shape, the presence or absence of the article, the position, the angle, the direction, the inclination, etc. are detected even if the character string is printed or the illumination illuminance varies. be able to.

【0080】また、前記物品は基板上に実装された電子
部品であり、前記文字列は該電子部品に印刷された文字
列である場合、前記電子部品の向きを判別して、該電子
部品が基板上に正しく実装されたか否かを確実に判断す
ることができる。
When the article is an electronic component mounted on a substrate and the character string is a character string printed on the electronic component, the orientation of the electronic component is determined and the electronic component is It is possible to surely determine whether or not the board is correctly mounted on the board.

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

【図1】本発明の実施の形態における物品認識装置の構
成を示す概念図である。
FIG. 1 is a conceptual diagram showing a configuration of an article recognition device according to an embodiment of the present invention.

【図2】本発明の実施の形態における電子部品を示す斜
視図である。
FIG. 2 is a perspective view showing an electronic component according to an embodiment of the present invention.

【図3】本発明の実施の形態における撮像装置によって
撮影された画像を示す図である。
FIG. 3 is a diagram showing an image captured by the image capturing apparatus according to the embodiment of the present invention.

【図4】本発明の実施の形態における画像の輝度のノイ
ズを除去する方法を示す図である。
FIG. 4 is a diagram showing a method for removing noise of luminance of an image according to the embodiment of the present invention.

【図5】本発明の実施の形態におけるモデル画像の例を
示す第1の図である。
FIG. 5 is a first diagram showing an example of a model image in the embodiment of the present invention.

【図6】本発明の実施の形態におけるモデル画像の例を
示す第2の図である。
FIG. 6 is a second diagram showing an example of a model image according to the embodiment of the present invention.

【図7】本発明の実施の形態における物品認識処理を示
すフローチャートである。
FIG. 7 is a flowchart showing an article recognition process in the embodiment of the present invention.

【図8】本発明の実施の形態における照明照度を設定す
る方法を示す図である。
FIG. 8 is a diagram showing a method for setting illumination illuminance in the embodiment of the present invention.

【図9】本発明の実施の形態における照明照度の変化に
対する画像の輝度変化の実測値を示す図である。
FIG. 9 is a diagram showing an actually measured value of a change in image brightness with respect to a change in illumination illuminance in the embodiment of the present invention.

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

10 制御装置 11 撮像装置 13 モデル画像記憶部 14 認識処理部 21 基板 22 電子部品 24、24a、24b、24c 文字列 10 Control device 11 Imaging device 13 Model image storage 14 Recognition processing unit 21 board 22 Electronic components 24, 24a, 24b, 24c Character string

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 2G051 AA65 AB11 AB14 BB01 BC01 CA04 EB01 EC02 5B057 AA03 BA02 CA12 CA16 DA01 DB02 DC08 DC34 5B064 AA05 BA01 DB07 DB10 DB18 EA34 5L096 BA03 BA17 FA67 HA07 JA03   ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 2G051 AA65 AB11 AB14 BB01 BC01                       CA04 EB01 EC02                 5B057 AA03 BA02 CA12 CA16 DA01                       DB02 DC08 DC34                 5B064 AA05 BA01 DB07 DB10 DB18                       EA34                 5L096 BA03 BA17 FA67 HA07 JA03

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 (a)物品の画像を撮影する撮像装置
と、(b)モデル画像を格納する記憶部と、(c)前記
物品の画像に含まれる文字列の画像を前記モデル画像と
比較してパターンマッチングを行い、前記物品の有無、
位置、角度、向き、又は、傾きを検出する認識処理部と
を有することを特徴とする物品認識装置。
1. An image pickup device for photographing an image of an article, (b) a storage unit for storing a model image, and (c) an image of a character string included in the image of the article is compared with the model image. Pattern matching is performed, and the presence or absence of the article,
An article recognition device, comprising: a recognition processing unit that detects a position, an angle, a direction, or an inclination.
【請求項2】 前記認識処理部は、前記文字列の画像を
1つのモデル画像と比較してパターンマッチングを行っ
た後に、前記文字列の画像を複数のモデル画像と比較し
てパターンマッチングを行う請求項1に記載の物品認識
装置。
2. The recognition processing unit compares the image of the character string with one model image to perform pattern matching, and then compares the image of the character string with a plurality of model images to perform pattern matching. The article recognition device according to claim 1.
【請求項3】 前記認識処理部は、照明照度を変更して
前記パターンマッチングを再度行う請求項1又は2に記
載の物品認識装置。
3. The article recognition device according to claim 1, wherein the recognition processing unit changes the illumination illuminance and performs the pattern matching again.
【請求項4】 前記文字列は複数の文字から成る請求項
1〜3のいずれか1項に記載の物品認識装置。
4. The article recognition device according to claim 1, wherein the character string includes a plurality of characters.
【請求項5】 前記物品は基板上に実装された電子部品
であり、前記文字列は前記電子部品に印刷された文字列
である請求項1〜4のいずれか1項に記載の物品認識装
置。
5. The article recognition device according to claim 1, wherein the article is an electronic component mounted on a substrate, and the character string is a character string printed on the electronic component. .
【請求項6】 (a)物品の画像を撮影し、(b)該物
品の画像に含まれる文字列の画像をモデル画像と比較し
てパターンマッチングを行い、前記物品の有無、位置、
角度、向き、又は、傾きを検出することを特徴とする物
品認識方法。
6. (a) capturing an image of an article, (b) comparing an image of a character string included in the image of the article with a model image to perform pattern matching,
An article recognition method characterized by detecting an angle, a direction, or an inclination.
【請求項7】 前記文字列の画像を1つのモデル画像と
比較してパターンマッチングを行った後に、前記文字列
の画像を複数のモデル画像と比較してパターンマッチン
グを行う請求項6に記載の物品認識方法。
7. The pattern matching according to claim 6, wherein the image of the character string is compared with one model image to perform pattern matching, and then the image of the character string is compared to a plurality of model images to perform pattern matching. Item recognition method.
【請求項8】 照明照度を変更して前記パターンマッチ
ングを再度行う請求項6又は7に記載の物品認識方法。
8. The article recognition method according to claim 6, wherein the pattern matching is performed again by changing illumination illuminance.
【請求項9】 前記文字列は複数の文字から成る請求項
6〜8のいずれか1項に記載の物品認識方法。
9. The article recognition method according to claim 6, wherein the character string includes a plurality of characters.
【請求項10】 前記物品は基板上に実装された電子部
品であり、前記文字列は前記電子部品に印刷された文字
列である請求項6〜9のいずれか1項に記載の物品認識
方法。
10. The article recognition method according to claim 6, wherein the article is an electronic component mounted on a substrate, and the character string is a character string printed on the electronic component. .
JP2001391176A 2001-12-25 2001-12-25 Article recognition device and method Pending JP2003196641A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001391176A JP2003196641A (en) 2001-12-25 2001-12-25 Article recognition device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001391176A JP2003196641A (en) 2001-12-25 2001-12-25 Article recognition device and method

Publications (1)

Publication Number Publication Date
JP2003196641A true JP2003196641A (en) 2003-07-11

Family

ID=27598844

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001391176A Pending JP2003196641A (en) 2001-12-25 2001-12-25 Article recognition device and method

Country Status (1)

Country Link
JP (1) JP2003196641A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005172499A (en) * 2003-12-09 2005-06-30 Hitachi Ltd Substrate visual inspection apparatus
JP2006250536A (en) * 2005-03-08 2006-09-21 Matsushita Electric Ind Co Ltd Pattern recognition device and pattern recognition method
JP2008282288A (en) * 2007-05-11 2008-11-20 Honda Motor Co Ltd Character recognition method
JP2010178269A (en) * 2009-02-02 2010-08-12 Seiko Instruments Inc Image processor and image processing program
WO2012081654A1 (en) * 2010-12-15 2012-06-21 日本特殊陶業株式会社 Inspection device for article being inspected, spark plug inspection method, and method for manufacturing spark plug
WO2017145249A1 (en) * 2016-02-22 2017-08-31 富士機械製造株式会社 Image processing system and image processing method
CN114073177A (en) * 2019-07-16 2022-02-18 株式会社富士 Working machine

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005172499A (en) * 2003-12-09 2005-06-30 Hitachi Ltd Substrate visual inspection apparatus
JP2006250536A (en) * 2005-03-08 2006-09-21 Matsushita Electric Ind Co Ltd Pattern recognition device and pattern recognition method
JP4635651B2 (en) * 2005-03-08 2011-02-23 パナソニック株式会社 Pattern recognition apparatus and pattern recognition method
JP2008282288A (en) * 2007-05-11 2008-11-20 Honda Motor Co Ltd Character recognition method
JP2010178269A (en) * 2009-02-02 2010-08-12 Seiko Instruments Inc Image processor and image processing program
WO2012081654A1 (en) * 2010-12-15 2012-06-21 日本特殊陶業株式会社 Inspection device for article being inspected, spark plug inspection method, and method for manufacturing spark plug
JP5596786B2 (en) * 2010-12-15 2014-09-24 日本特殊陶業株式会社 Inspection device for inspection object, method for inspecting spark plug, and method for manufacturing spark plug
US9432635B2 (en) 2010-12-15 2016-08-30 Ngk Spark Plug Co., Ltd. Inspection device for article being inspected, spark plug inspection method, and method for manufacturing spark plug
WO2017145249A1 (en) * 2016-02-22 2017-08-31 富士機械製造株式会社 Image processing system and image processing method
JPWO2017145249A1 (en) * 2016-02-22 2018-12-13 株式会社Fuji Image processing system and image processing method
CN114073177A (en) * 2019-07-16 2022-02-18 株式会社富士 Working machine
CN114073177B (en) * 2019-07-16 2023-07-18 株式会社富士 Working machine

Similar Documents

Publication Publication Date Title
JP2003270173A (en) Method for inspecting surface state and substrate inspection device
JP4511942B2 (en) POSITION DETECTION DEVICE, POSITION DETECTION METHOD, AND ELECTRONIC COMPONENT CONVEYING DEVICE
JP2003196641A (en) Article recognition device and method
JP3266429B2 (en) Pattern detection method
JP2003196642A (en) Image processing noise removing device and method
JP2003222598A (en) Surface state inspection method of curved-surface body and board inspection method
KR101897043B1 (en) Optical inspection apparatus for performing automatic illumination processing and optical inspection method using the apparatus
JPS61243303A (en) Visual inspection system for mounted substrate
JP2003227801A (en) Method of inspecting curved surface and device for inspecting printed circuit board using the method
JP2002243655A (en) Method and equipment for visual inspection of electronic component
JP2012189685A (en) Light quantity adjustment guidance device used for flat panel display assembling device
JPH08152311A (en) Profile inspection equipment for object
JP2003207461A (en) Solder inspection method and board inspection apparatus using the same
JP2003097916A (en) Method and apparatus for recognizing substrate mark
JP2775411B2 (en) Lighting equipment for printed wiring board inspection equipment
JP2006210531A (en) Image recognition device of component mounting machine
JP3098847B2 (en) Component recognition method
JP3182936B2 (en) Lead end detection method
JP2933109B2 (en) Component mounting method and device
KR0141154B1 (en) The test method of inserting for electronic elements on pcb(printed circuit board)
JP6751567B2 (en) Electronic component inspection method, electronic component mounting method, and electronic component mounting device
JPH0510719A (en) Electronic part&#39;s position detecting method
JPH06204700A (en) Chip component mount inspecting apparatus
JP2000249517A (en) Inspection method between mounted parts and its device
JP2000311245A (en) Method and edge discriminating device for circuit pattern

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071113

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080311