JP2001022940A - Method and device for image recognition - Google Patents

Method and device for image recognition

Info

Publication number
JP2001022940A
JP2001022940A JP11198296A JP19829699A JP2001022940A JP 2001022940 A JP2001022940 A JP 2001022940A JP 11198296 A JP11198296 A JP 11198296A JP 19829699 A JP19829699 A JP 19829699A JP 2001022940 A JP2001022940 A JP 2001022940A
Authority
JP
Japan
Prior art keywords
template
area
point
predetermined area
center
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
JP11198296A
Other languages
Japanese (ja)
Inventor
Yutaka Ogura
豊 小倉
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.)
Juki Corp
Original Assignee
Juki Corp
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 Juki Corp filed Critical Juki Corp
Priority to JP11198296A priority Critical patent/JP2001022940A/en
Publication of JP2001022940A publication Critical patent/JP2001022940A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide image recognizing method and device, capable of accurately recognizing the area of an object having point symmetry. SOLUTION: A 1st template 30 including a prescribed area 40a is prepared, an image 40 is subjected to template matching with the 1st template to recognize the prescribed area. An area 41, covering the recognized prescribed area, is cut out as a template and turned by 180 deg. to prepare a 2nd template 42, and template matching is performed by using the template 42 to recognize the prescribed area again. A center C of the prescribed area is operated from a reference point A on an area covering the prescribed area and a point B on the 2nd template, corresponding to a reference point of when the prescribed area is recognized again. In this configuration, the 1st template is defined as a template with which rough positioning is performed, the prescribed area can first be recognized with rough accuracy by using the template, and the center of the area which has point symmetry can be calculated with high accuracy because the 2nd template is an accurate template formed on the basis of a real image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像認識方法及び
装置、更に詳細には、プリント基板の電極あるいはステ
ンシルの電極のマスクなどのように連続して同じ形状が
存在する点対称な領域を認識するための画像認識方法及
び装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for recognizing an image, and more particularly to a method for recognizing a point-symmetric region in which the same shape exists continuously, such as an electrode of a printed circuit board or a mask of a stencil electrode. The present invention relates to an image recognition method and apparatus for performing the above.

【0002】[0002]

【従来の技術】従来、スクリーン印刷機においては、ス
テンシル(マスク)を介して半田をプリント基板に圧写
(スキーズ)することにより半田印刷を行っている。そ
の場合、プリント基板に半田を精度良く印刷するために
プリント基板とステンシルを所定の位置関係に合わせる
必要があるため、プリント基板とステンシルの基準とな
るマークや電極をCCDカメラなどの撮像装置で撮像
し、位置合わせを行っている。具体的には、プリント基
板はマークの上から、ステンシルはプリント基板と接触
する側から撮像され、画像認識によりマークの位置を認
識しプリント基板とステンシルを精度良く位置合わせを
行っている。
2. Description of the Related Art Conventionally, in a screen printing machine, solder printing is performed by pressing (squeezing) solder onto a printed board via a stencil (mask). In this case, it is necessary to align the printed circuit board and the stencil in a predetermined positional relationship in order to print the solder on the printed circuit board with high accuracy. And aligning. Specifically, the printed circuit board is imaged from above the mark, and the stencil is imaged from the side in contact with the printed circuit board. The position of the mark is recognized by image recognition, and the printed circuit board and the stencil are accurately positioned.

【0003】この場合、図1(A)に示すように、プリ
ント基板あるいはステンシル1の各々に基準マーク1a
が存在する場合は、基準マークを撮像し、その画像から
重心を計算したり、あるいは基準マークの画像を予め登
録してテンプレートを作成し、基準マークの撮像画像を
登録したテンプレートでテンプレートマッチングを行い
プリント基板あるいはステンシルの位置決めを行ってい
る。また、図1(B)に示すようにプリント基板あるい
はステンシル2の各々に位置決めを行うための基準マー
クが存在しない場合は、ICの電極2aなどを基準マー
クとし、これを予め基準マークとして登録し、テンプレ
ートマッチングを各々実行してプリント基板とステンシ
ルの位置決めを行っている。また、ICの電極2aを基
準マークとしテンプレートを登録する際、図1(C)に
示すように、電極2aがテンプレートの中心にくるよう
にテンプレート3を登録すると、他のIC電極と混同し
誤認識するため、図1(D)に示すようにように電極2
a以外の部分も含むテンプレート4を作成し、他の電極
と混同しないようなテンプレート登録が行われている。
In this case, as shown in FIG. 1A, a reference mark 1a is provided on each of a printed circuit board and a stencil 1.
If exists, the reference mark is imaged, the center of gravity is calculated from the image, or the image of the reference mark is registered in advance to create a template, and template matching is performed using the template in which the captured image of the reference mark is registered. The printed circuit board or stencil is positioned. If there is no reference mark for positioning the printed circuit board or stencil 2 as shown in FIG. 1B, the electrode 2a of the IC is used as a reference mark, and this is registered in advance as a reference mark. , The template matching is executed to position the printed circuit board and the stencil. When registering a template using the electrode 2a of the IC as a reference mark, if the template 3 is registered so that the electrode 2a is located at the center of the template as shown in FIG. For recognition, as shown in FIG.
A template 4 including a portion other than a is created and registered as a template so as not to be confused with other electrodes.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、図1
(F)に示すように撮像されたプリント基板やステンシ
ル6に傾きがある場合、電極2a自身の位置ずれも大き
くなり精度の良い位置決めができないという問題点があ
る。このずれが大きくなる原因として、図1(D)に示
すにようにテンプレート4内に位置決めを行いたい電極
以外の部分を含める場合、電極2aの中心がテンプレー
ト4の中心と一致するようなテンプレートを抽出すると
どうしても他の電極と類似してしまうため、電極2aの
中心位置はテンプレートの中心から△X、△Yのオフセ
ットをもつようなパターンからテンプレートが作成され
ることにある(図1(D)で示すパターンは△Yは殆ど
0として見なされる)。そして、図1(F)に示される
ようにプリント基板またはステンシル6に傾きが発生
し、この状態ですでに登録したテンプレートにおいてテ
ンプレートマッチングを行うと、点線で示される位置を
認識する(最初に登録したテンプレートに最も類似して
いる形状を見つける)。点線で示される位置を認識する
と電極2aの位置は中心から△X、△Yとして見なすた
め、認識結果は図1(F)に示される△x、△yの誤差
が発生する。
However, FIG.
As shown in (F), when the printed circuit board or the stencil 6 imaged has an inclination, there is a problem that the displacement of the electrode 2a itself becomes large and accurate positioning cannot be performed. As a cause of the increase, when a portion other than the electrode to be positioned is included in the template 4 as shown in FIG. 1D, a template in which the center of the electrode 2a matches the center of the template 4 is used. When extracted, the electrode 2a is inevitably similar to the other electrodes. Therefore, the center position of the electrode 2a is created from a pattern having an offset of △ X and △ Y from the center of the template (FIG. 1D). In the pattern indicated by, ΔY is regarded as almost 0). Then, as shown in FIG. 1 (F), the printed board or the stencil 6 is inclined. If template matching is performed on the template already registered in this state, the position indicated by the dotted line is recognized (first registration). Find the shape that most closely resembles the template that was created). When the position indicated by the dotted line is recognized, the position of the electrode 2a is regarded as △ X and △ Y from the center. Therefore, the recognition result includes △ x and △ y errors shown in FIG.

【0005】また、図1(E)に示すように、テンプレ
ート5と電極2aの中心が一致していたとしても、テン
プレートとして点対称形状でない場合、一致量は異なる
がずれは発生する。また、図1(C)に示されるように
電極2aの中心とテンプレート3の中心が一致している
場合には、テンプレート中心からのオフセットは存在せ
ず電極そのものを対象として位置決めをおこなうため傾
きが発生した場合の誤差は最小となる。
Further, as shown in FIG. 1E, even if the center of the template 5 and the center of the electrode 2a match, if the template is not point-symmetrical, the matching amount differs but a shift occurs. When the center of the electrode 2a is coincident with the center of the template 3 as shown in FIG. 1 (C), there is no offset from the center of the template, and positioning is performed with respect to the electrode itself. If it occurs, the error will be minimal.

【0006】以上のようにプリント基板やステンシルの
電極を基準マークとして用いると電極をテンプレートの
中心としかつ点対称形状にすることができないため、傾
きが顕著になると認識精度の誤差が大きくなるという問
題点があった。
As described above, when electrodes on a printed circuit board or a stencil are used as reference marks, the electrodes cannot be formed in the center of the template and in a point-symmetrical shape. There was a point.

【0007】従って、本発明はこのような問題点に鑑み
てなされたもので、点対称な対象物の領域を正確に認識
することが可能な画像認識方法及び装置を提供すること
をその課題とする。
SUMMARY OF THE INVENTION Accordingly, it is an object of the present invention to provide an image recognition method and apparatus capable of accurately recognizing a point-symmetric object region. I do.

【0008】[0008]

【課題を解決するための手段】上記課題を解決する本発
明は、対象物を撮像して対象物内の点対称な所定領域を
認識する画像認識方法及び装置において、所定領域を含
む第1のテンプレートを作成して、対象物の画像を前記
第1のテンプレートでテンプレートマッチングして前記
所定領域を認識すること、認識された所定領域を覆う領
域をテンプレートとして切り出し180度回転して第2
のテンプレートを作成し、この第2のテンプレートを用
いてテンプレートマッチングを行い前記所定領域を再度
認識すること、前記所定領域を覆う領域上の点と、所定
領域が再度認識されたときの該点に対応する第2のテン
プレート上の点から前記所定領域の中心を演算すること
を特徴としている。
According to the present invention, there is provided an image recognition method and apparatus for recognizing a point-symmetric predetermined area in an object by imaging the object. Creating a template, recognizing the predetermined area by performing template matching of the image of the target object with the first template, cutting out an area covering the recognized predetermined area as a template, rotating it 180 degrees,
And re-recognizing the predetermined area by performing template matching using the second template. A point on the area covering the predetermined area and a point when the predetermined area is recognized again The center of the predetermined area is calculated from a corresponding point on the second template.

【0009】このような構成では、第1のテンプレート
を粗い位置決めを行うテンプレートとし、このテンプレ
ートを用いて所定領域を粗い精度でまず認識することが
できる。そして、この認識された所定領域を覆う領域を
テンプレートとして切り出して180度回転することに
より得られる第2のテンプレートを用いて再度所定領域
を認識して所定領域の中心を求めるようにしているの
で、第2のテンプレートが実画像に基づいて形成された
正確なテンプレートであることから、点対称な領域の中
心を精度よく求めることができる。
In such a configuration, the first template can be used as a template for rough positioning, and a predetermined area can be first recognized with coarse accuracy using this template. Then, the region covering the recognized predetermined region is cut out as a template, and the predetermined region is recognized again using the second template obtained by rotating by 180 degrees, and the center of the predetermined region is obtained. Since the second template is an accurate template formed based on the real image, the center of the point-symmetric region can be obtained with high accuracy.

【0010】[0010]

【発明の実施の形態】以下、図面に示す実施の形態に基
づいて本発明を詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the present invention will be described in detail based on embodiments shown in the drawings.

【0011】以下の説明では、スクリーン印刷機のプリ
ント基板の位置補正、ステンシルの位置補正、各々の位
置決め、印刷という処理の流れにおいて、位置決め、印
刷直前のプリント基板の基準位置の認識、ステンシルの
基準位置の認識として実施され、スクリーン印刷機が本
発明による認識方法を有することでプリント基板、ステ
ンシルに基準マークが存在しない場合でもより信頼性の
高い位置決めを実現することができる。しかし、本発明
はこの実施形態に限定されるものでなく、種々の対象物
の位置決め時に、基準位置ないし領域の認識あるいはそ
の位置補正に利用できるものである。
In the following description, in the flow of processing of correcting the position of a printed circuit board of a screen printing machine, correcting the position of a stencil, positioning and printing each, positioning, recognition of a reference position of a printed circuit board immediately before printing, stencil reference It is implemented as position recognition, and the screen printer has the recognition method according to the present invention, so that more reliable positioning can be realized even when there is no reference mark on the printed circuit board or stencil. However, the present invention is not limited to this embodiment, and can be used for recognizing a reference position or area or correcting the position when positioning various objects.

【0012】図2には、本発明の一実施形態を示す画像
認識装置の構成が図示されている。同図において、符号
10で示すものはステンシル(半田印刷を行う為のマス
ク)で、このステンシル10に形成されたパターン10
aを介してスクリーン印刷機(不図示)により半田がプ
リント基板11に印刷パターン11aとして印刷され
る。精度よく印刷するために、ステンシル10とプリン
ト基板11の位置合わせが行われる。
FIG. 2 shows the configuration of an image recognition apparatus according to an embodiment of the present invention. In the figure, reference numeral 10 denotes a stencil (mask for performing solder printing), and a pattern 10 formed on the stencil 10 is used.
The solder is printed as a print pattern 11a on the printed circuit board 11 by a screen printing machine (not shown) via a. For accurate printing, the stencil 10 and the printed board 11 are aligned.

【0013】このために、撮像装置12を用いて基準マ
ークあるいは電極が撮像される。撮像装置12は、ステ
ンシル用照明装置13、ステンシル光路用プリズム1
4、ステンシル用CCDカメラ15、プリント基板用照
明装置16、プリント基板光路用プリズム17、プリン
ト基板用CCDカメラ18から構成され、照明装置13
で照明されたステンシルは、プリズム14を介してCC
Dカメラ15で撮像され、また照明装置16で照明され
たプリント基板は、プリズム17を介してCCDカメラ
18でそれぞれ撮像される。
For this purpose, the reference mark or the electrode is imaged using the imaging device 12. The imaging device 12 includes a stencil illumination device 13 and a stencil optical path prism 1.
4. A stencil CCD camera 15, a printed circuit board illumination device 16, a printed circuit board optical path prism 17, and a printed circuit board CCD camera 18;
The stencil illuminated by the
The printed circuit board imaged by the D camera 15 and illuminated by the illumination device 16 is imaged by the CCD camera 18 via the prism 17.

【0014】CCDカメラ15、18で撮像された画像
は、画像処理装置20のCPU21の制御のもとにA/
Dコンバータ22でデジタル信号に変換されて、画像メ
モリ23に格納される。また、画像処理装置にはテンプ
レートメモリ24が設けられ、予め登録された画像がテ
ンプレートとして格納される。また、画像処理装置20
には、モニタ25が接続され、入力された画像、テンプ
レート画像、あるいは処理ないし認識画像を表示できる
ようになっている。
The images picked up by the CCD cameras 15 and 18 are A / A under the control of the CPU 21 of the image processing device 20.
The data is converted into a digital signal by the D converter 22 and stored in the image memory 23. Further, the image processing apparatus is provided with a template memory 24, in which images registered in advance are stored as templates. Also, the image processing device 20
Is connected to a monitor 25 so that an input image, a template image, or a processed or recognized image can be displayed.

【0015】このように構成された装置において画像認
識の流れを以下に説明する。
The flow of image recognition in the apparatus having the above-described configuration will be described below.

【0016】まず、図3に図示したように、前処理とし
てティーチング作業を行う。図1(B)に示すようにプ
リント基板、ステンシルに基準マークが存在しない場
合、撮像装置12はティーチング作業者が選択したプリ
ント基板11の電極の上方に移動し、撮像装置12内の
プリント基板用照明装置16が点灯され、プリント基板
光路用プリズム17を介してプリント基板11がプリン
ト基板用CCDカメラ18により撮像され、その画像デ
ータが画像メモリ23に取り込まれる。
First, as shown in FIG. 3, a teaching operation is performed as preprocessing. As shown in FIG. 1B, when the reference mark does not exist on the printed circuit board and the stencil, the imaging device 12 moves above the electrode of the printed circuit board 11 selected by the teaching operator, and the printed circuit board in the imaging device 12 The illumination device 16 is turned on, the printed board 11 is imaged by the printed board CCD camera 18 via the printed board optical path prism 17, and the image data is taken into the image memory 23.

【0017】続いて、ステップS1において、図4
(A)に示すように検出したい電極30a以外の部分を
含むようにテンプレート30を登録する。次にステップ
S2において、図4(B)に示すように登録したテンプ
レート30内の電極30aのみの局所領域にサーチウィ
ンドウ31を設定する。続いて、ステップS3におい
て、図4(C)に示すように、設定した局所領域31内
の電極30aの重心位置GをCPU21にて演算し、ス
テップS4において、図4(D)に示すようにテンプレ
ート中心Oから電極の重心Gまでのオフセット△X、△
Yを登録する(図4(D)における△Yは0であるため
非表示)。同様に、ステンシル10の電極を含むテンプ
レートの登録も行う。
Subsequently, in step S1, FIG.
The template 30 is registered so as to include a portion other than the electrode 30a to be detected as shown in FIG. Next, in step S2, as shown in FIG. 4B, a search window 31 is set in a local region of only the electrode 30a in the registered template 30. Subsequently, in step S3, as shown in FIG. 4C, the center of gravity G of the electrode 30a in the set local region 31 is calculated by the CPU 21, and in step S4, as shown in FIG. Offset {X,} from template center O to electrode center of gravity G
Y is registered (not displayed because ΔY in FIG. 4D is 0). Similarly, registration of a template including the electrodes of the stencil 10 is also performed.

【0018】生産動作において、まず最初にステンシル
の位置決めを行う。図5のフローに示すように、CPU
21は、認識する手順としてステンシルの電極を位置決
めする指令をホスト(不図示)から受けるとテンプレー
トメモリ24に上記のようにして作成されたステンシル
用のテンプレート30を設定する(ステップS10)。
In the production operation, first, the stencil is positioned. As shown in the flow of FIG.
When receiving a command for positioning the electrodes of the stencil from a host (not shown) as a recognition procedure, the 21 sets the stencil template 30 created as described above in the template memory 24 (step S10).

【0019】また、予め設定されている電極に関する情
報をホストより受け取り、これを自身のメモリ(不図
示)に設定する。この時、すでに撮像装置12はホスト
の指令により電極が存在する所定の位置に移動してい
る。ステップS11で認識するための条件設定が終了す
ると、CPU21により、ステンシル用照明装置13が
点灯され、電極の存在するステンシル部分の画像が、ス
テンシル光路用プリズム14を介してステンシル用CC
Dカメラ15により撮像され、その画像データがA/D
コンバータ22を介して画像メモリ23に取り込まれる
(ステップS12)。このように取り込まれる画像40
が図6(A)に図示されている。
Further, information about electrodes set in advance is received from the host, and the information is set in its own memory (not shown). At this time, the imaging device 12 has already been moved to a predetermined position where the electrodes are present by a command from the host. When the condition setting for recognition in step S11 is completed, the stencil lighting device 13 is turned on by the CPU 21, and the image of the stencil portion where the electrodes are present is transmitted through the stencil light path prism 14 to the stencil CC.
An image is captured by the D camera 15 and the image data is A / D
The data is taken into the image memory 23 via the converter 22 (step S12). The image 40 thus captured
Is shown in FIG. 6 (A).

【0020】撮像終了すると、CPU21はステップS
13において登録したテンプレート30と撮像した画像
40とによりテンプレートマッチングを実行し、ステッ
プS14において認識結果により電極40aの中心座標
を演算する。このとき、図6(B)に示すように、ステ
ンシル画像40に傾きが発生していた場合、図1(F)
に示すようにテンプレートマッチングを実施した後、中
心からのオフセットを換算すると本来の電極の中心から
若干ずれた位置を認識する。この誤差による検出精度の
劣化を回避するために、図6(C)に示したようにこの
ずれた位置から予め設定された電極のサイズを考慮し電
極40aを覆うことが可能なエリア41を設定する(ス
テップS15)。例えば電極40aのサイズが横h、縦
vとすると、設定された領域が図6(D)に拡大して図
示されている。このとき、この領域の左上の基準点Aの
座標を演算基準座標(1)として登録する(ステップS
16)。
When the imaging is completed, the CPU 21 proceeds to step S
In step 13, template matching is performed using the registered template 30 and the captured image 40, and in step S14, the center coordinates of the electrode 40a are calculated based on the recognition result. At this time, as shown in FIG. 6B, if the stencil image 40 is tilted, FIG.
After the template matching is performed as shown in (1), when the offset from the center is converted, a position slightly shifted from the original center of the electrode is recognized. In order to avoid the deterioration of the detection accuracy due to this error, an area 41 capable of covering the electrode 40a is set from the shifted position in consideration of the preset electrode size as shown in FIG. 6C. (Step S15). For example, assuming that the size of the electrode 40a is h in the horizontal direction and v in the vertical direction, the set area is enlarged and shown in FIG. At this time, the coordinates of the reference point A at the upper left of this area are registered as the calculation reference coordinates (1) (step S1).
16).

【0021】次に、設定した領域41をその中心点を中
心に180度回転し(ステップS17)、図6(E)に
示したように回転した領域をテンプレート42としてテ
ンプレートメモリ24に登録する。そして、この180
度回転させたテンプレート42と撮像した画像40によ
り再びテンプレートマッチングを実行する(ステップS
18、S19)。この時、テンプレートマッチングを行
う領域はテンプレートの中心をほぼ把握しているため広
範囲にわたる必要はなくテンプレートを取得した周辺で
隣の電極が入らない程度の範囲でよい。
Next, the set area 41 is rotated 180 degrees around its center point (step S17), and the rotated area is registered as a template 42 in the template memory 24 as shown in FIG. And this 180
The template matching is performed again using the template 42 rotated by degrees and the captured image 40 (step S).
18, S19). At this time, the region for performing the template matching does not need to cover a wide area because the center of the template is almost grasped, and may be a range in which the neighboring electrode does not enter near the template acquisition.

【0022】図6(F)に示したように、再度のテンプ
レートマッチングで電極40aの位置が認識されたとき
テンプレート42の右下の点B(基準点Aの180度回
転した点に対応)の座標を演算基準座標(2)として登
録する(ステップS20)。そして、ステップS21で
先に登録した演算基準座標(1)と演算基準座標(2)
の中点を電極40aの中心座標として演算する。このよ
うに求められた電極40aの中心が図6(G)にCとし
て図示されている。
As shown in FIG. 6F, when the position of the electrode 40a is recognized in the template matching again, the point B at the lower right of the template 42 (corresponding to the point rotated 180 degrees from the reference point A) is determined. The coordinates are registered as calculation reference coordinates (2) (step S20). Then, the calculation reference coordinates (1) and the calculation reference coordinates (2) previously registered in step S21.
Is calculated as the center coordinates of the electrode 40a. The center of the electrode 40a thus obtained is shown as C in FIG. 6 (G).

【0023】なお、テンプレートを180度回転して得
られるテンプレートを用いて再びテンプレートマッチン
グを行い、各々テンプレートの位置の中点を対象の中心
とする考え方は、特公平8−12050号公報にも記載
されており、テンプレートの中心と認識対象(電極)の
中心とのオフセットを相殺して認識対象の中心位置を精
度よく認識できるもので、認識対象が点対称であれば、
その形状及び大きさは任意なものである。また、基準点
Aは必ずしも領域の周辺に限定されるものでなく、領域
内の任意の点でよいが、AとB間の距離が長いほど精度
よく中心位置が求められるものである。
The concept of performing template matching again using a template obtained by rotating the template by 180 degrees, and setting the center of the template position as the center of the object is also described in Japanese Patent Publication No. 8-12050. The offset between the center of the template and the center of the recognition target (electrode) can be canceled to accurately recognize the center position of the recognition target. If the recognition target is point symmetric,
Its shape and size are arbitrary. The reference point A is not necessarily limited to the periphery of the area, but may be any point in the area. However, the longer the distance between A and B, the more accurate the center position is obtained.

【0024】[0024]

【発明の効果】以上説明したように、本発明によれば、
第1のテンプレートを粗い位置決めを行うテンプレート
とし、このテンプレートを用いて所定領域を粗い精度で
まず認識することができる。そして、この認識された所
定領域を覆う領域をテンプレートとして切り出して18
0度回転することにより得られる第2のテンプレートを
用いて再度所定領域を認識して所定領域の中心を求める
ようにしているので、第2のテンプレートが実画像に基
づいて形成された正確なテンプレートであることから、
点対称な領域の中心を精度よく求めることができる。
As described above, according to the present invention,
The first template is a template for rough positioning, and a predetermined area can be first recognized with coarse accuracy by using the template. Then, an area covering the recognized predetermined area is cut out as a template, and 18
Since the predetermined area is again recognized and the center of the predetermined area is obtained by using the second template obtained by rotating by 0 degree, an accurate template formed based on the real image is obtained. From
The center of the point-symmetric region can be obtained with high accuracy.

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

【図1】プリント基板あるいはステンシルの電極の位置
を認識する問題点を説明する説明図である。
FIG. 1 is an explanatory diagram for explaining a problem of recognizing a position of an electrode of a printed circuit board or a stencil.

【図2】本発明の画像認識装置の構成を示した構成図で
ある。
FIG. 2 is a configuration diagram showing a configuration of an image recognition device of the present invention.

【図3】前処理としてテンプレートを作成する過程を示
したフローチャート図である。
FIG. 3 is a flowchart illustrating a process of creating a template as preprocessing.

【図4】前処理としてテンプレートを作成する過程を示
した説明図である。
FIG. 4 is an explanatory diagram showing a process of creating a template as preprocessing.

【図5】テンプレートマッチングで対称物の領域を認識
する過程を示したフローチャート図である。
FIG. 5 is a flowchart illustrating a process of recognizing a region of a symmetric object by template matching.

【図6】テンプレートマッチングで対称物の領域を認識
する過程を示した説明図である。
FIG. 6 is an explanatory diagram showing a process of recognizing a region of a symmetric object by template matching.

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

10 ステンシル 11 プリント基板 12 撮像装置 13 ステンシル用照明装置 15 ステンシル用CCDカメラ 16 プリント基板用照明装置 18 プリント基板用CCDカメラ 20 画像処理装置 21 CPU 23 画像メモリ 24 テンプレートメモリ Reference Signs List 10 stencil 11 printed board 12 imaging device 13 stencil lighting device 15 stencil CCD camera 16 printed board lighting device 18 printed board CCD camera 20 image processing device 21 CPU 23 image memory 24 template memory

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 対象物を撮像して対象物内の点対称な所
定領域を認識する画像認識方法において、 前記所定領域を含む第1のテンプレートを作成し、 対象物の画像を前記第1のテンプレートでテンプレート
マッチングして前記所定領域を認識し、 前記認識された所定領域を覆う領域をテンプレートとし
て切り出し180度回転して第2のテンプレートを作成
し、 前記第2のテンプレートを用いてテンプレートマッチン
グを行い前記所定領域を再度認識し、 前記所定領域を覆う領域上の点と、所定領域が再度認識
されたときの該点に対応する第2のテンプレート上の点
から前記所定領域の中心を演算することを特徴とする画
像認識方法。
1. An image recognition method for recognizing a point-symmetric predetermined area in an object by imaging the object, creating a first template including the predetermined area, and converting the image of the object into the first image. A template matching is performed with a template to recognize the predetermined area, an area covering the recognized predetermined area is cut out as a template, rotated 180 degrees to create a second template, and template matching is performed using the second template. The predetermined area is recognized again, and the center of the predetermined area is calculated from a point on the area covering the predetermined area and a point on the second template corresponding to the point when the predetermined area is recognized again. An image recognition method characterized in that:
【請求項2】 対象物を撮像して対象物内の点対称な所
定領域を認識する画像認識装置において、 前記所定領域を含む第1のテンプレートを用いて対象物
の画像に対してテンプレートマッチングを行い前記所定
領域を認識する手段と、 前記所定領域を覆う領域をテンプレートとして切り出し
180度回転して得られる第2のテンプレートを用いて
テンプレートマッチングを行い前記所定領域を再度認識
する手段と、 前記所定領域を覆う領域上の点と、所定領域が再度認識
されたときの該点に対応する第2のテンプレート上の点
から前記所定領域の中心を演算する手段と、 を有することを特徴とする画像認識装置。
2. An image recognition apparatus for recognizing a point-symmetric predetermined area in an object by imaging the object, wherein template matching is performed on an image of the object using a first template including the predetermined area. Means for performing the template matching using a second template obtained by cutting out an area covering the predetermined area as a template and rotating it by 180 degrees, and re-recognizing the predetermined area; A point on an area covering the area, and means for calculating the center of the predetermined area from a point on the second template corresponding to the point when the predetermined area is recognized again. Recognition device.
JP11198296A 1999-07-13 1999-07-13 Method and device for image recognition Pending JP2001022940A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11198296A JP2001022940A (en) 1999-07-13 1999-07-13 Method and device for image recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11198296A JP2001022940A (en) 1999-07-13 1999-07-13 Method and device for image recognition

Publications (1)

Publication Number Publication Date
JP2001022940A true JP2001022940A (en) 2001-01-26

Family

ID=16388780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11198296A Pending JP2001022940A (en) 1999-07-13 1999-07-13 Method and device for image recognition

Country Status (1)

Country Link
JP (1) JP2001022940A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04361104A (en) * 1991-06-07 1992-12-14 Juki Corp Detecting system of position of substrate mark
JPH10141920A (en) * 1996-11-08 1998-05-29 Oki Electric Ind Co Ltd Method and device for positioning parts

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04361104A (en) * 1991-06-07 1992-12-14 Juki Corp Detecting system of position of substrate mark
JPH10141920A (en) * 1996-11-08 1998-05-29 Oki Electric Ind Co Ltd Method and device for positioning parts

Similar Documents

Publication Publication Date Title
JP2008036918A (en) Screen printing equipment, and method for image recognition and alignment
JP2007220837A (en) Method and device for mounting electronic component
JP4707423B2 (en) Component position detection method and apparatus
JP2001022940A (en) Method and device for image recognition
JP2633147B2 (en) Component mounting method
JP3661468B2 (en) Screen mask alignment method in screen printing
JP2007090789A (en) Screen printing equipment
JP3763229B2 (en) Position detection method by image recognition
JP4860452B2 (en) Mark positioning method and apparatus using template matching
JP4566686B2 (en) Method and apparatus for determining shape of object
JP2003156311A (en) Method and apparatus for detection and registration of alignment mark
JPH08181053A (en) Position detecting method
JP2000099159A (en) Mechanism and method for matching work with mask
JPH03201454A (en) Aligning method for semiconductor device
JP2000190452A (en) Creamy solder printing machine
JP4011966B2 (en) Printing position inspection method and apparatus
JP3326444B2 (en) Positioning method and pattern joining accuracy measuring method
JPH10141920A (en) Method and device for positioning parts
TWI795211B (en) Control circuit device
JPH11328404A (en) Image recognizing device and method therefor
JP2000223896A (en) Method and device for mounting electronic part
JP2002361843A (en) Method for automatically aligning color printing original according to plate and its system
JPH07121576B2 (en) Positioning method and device for printing screen and substrate
JPH0674714A (en) Substrate position detecting method
KR20240073761A (en) Alignment apparatus, and alignment method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060706

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20070209

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20070209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090930

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091006

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20100323