JP2003303336A - Method of setting threshold for region extraction - Google Patents
Method of setting threshold for region extractionInfo
- Publication number
- JP2003303336A JP2003303336A JP2002109622A JP2002109622A JP2003303336A JP 2003303336 A JP2003303336 A JP 2003303336A JP 2002109622 A JP2002109622 A JP 2002109622A JP 2002109622 A JP2002109622 A JP 2002109622A JP 2003303336 A JP2003303336 A JP 2003303336A
- Authority
- JP
- Japan
- Prior art keywords
- value
- threshold value
- threshold
- inspection
- camera
- 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
Links
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、プリント配線板の
最終外観の品質を判定するために使用する、カラーカメ
ラにて撮影して得られた画像より所定の色情報を有する
任意の領域を抽出する為の閾値を決定する方法により任
意の領域を抽出する領域抽出閾値設定手法に関するもの
である。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention extracts an arbitrary area having predetermined color information from an image obtained by photographing with a color camera, which is used for judging the quality of the final appearance of a printed wiring board. The present invention relates to a region extraction threshold value setting method for extracting an arbitrary region by a method of determining a threshold value for
【0002】[0002]
【従来の技術】従来、ソルダレジスト印刷工程、シルク
印刷工程を終えた後のプリント配線板の最終外観を検査
するのに、目視による検査が行われている。しかし、こ
の目視による検査は検査を行う検査員の個人差で見逃し
等の検査ミスが発生したり、検査精度にばらつきが出
る。2. Description of the Related Art Conventionally, visual inspection is performed to inspect the final appearance of a printed wiring board after the solder resist printing process and the silk printing process. However, in this visual inspection, an inspection error such as an oversight may occur due to individual differences among the inspectors who perform the inspection, or the inspection accuracy may vary.
【0003】そのため、プリント配線板をカメラで撮影
し、画像処理を用いて自動的に検査するプリント基板検
査装置が実用化されている。しかし、ソルダレジスト印
刷工程、シルク印刷工程を終えた後のプリント配線板の
最終外観を検査する場合、その性格から面付けパッド・
ランド等の銅パターン部分とシルク印刷部分とソルダレ
ジスト印刷部分の領域を抽出し、各領域毎にそれぞれの
検査精度で行う必要がある。銅パターン部分とシルク印
刷部分とソルダレジスト印刷部分の各領域は異なった色
情報を有しているため、その色情報を特徴量として様々
な手法で領域の抽出が行われている。For this reason, a printed circuit board inspecting apparatus has been put into practical use in which a printed wiring board is photographed by a camera and automatically inspected by using image processing. However, when inspecting the final appearance of the printed wiring board after the solder resist printing process and silk printing process, the imposition pad
It is necessary to extract the areas of the copper pattern portion such as the land, the silk printing portion, and the solder resist printing portion, and perform the inspection accuracy for each area. Since each area of the copper pattern portion, the silk print portion, and the solder resist print portion has different color information, the area is extracted by various methods using the color information as a feature amount.
【0004】[0004]
【発明が解決しようとする課題】領域抽出の手法にカラ
ーカメラにて取り込んだ画像をR値、G値、B値の各情
報に分割し、画像上の各画素毎にR値、G値、B値それ
ぞれに予め設定された閾値の範囲内で抽出する方法や、
画像上の各画素毎のR値、G値、B値から色相、彩度、
輝度を計算し、画像上の各画素毎に色相、彩度、輝度そ
れぞれの値に予め設定された閾値の範囲内で抽出する手
法等があるが、R値、G値、B値それぞれの閾値を設定
するためにはオペレータが経験的に閾値を決定し、設定
するため、オペレータにより値が異なったり、値の決定
に多大な時間を要している。The image captured by the color camera in the area extraction method is divided into information of R value, G value and B value, and the R value, G value, A method of extracting within the range of the preset threshold for each B value,
From R value, G value, B value for each pixel on the image, hue, saturation,
There is a method of calculating the brightness and extracting it for each pixel on the image within the range of the preset thresholds for the hue, saturation, and brightness, but there are thresholds for the R, G, and B values. In order to set, the operator empirically determines and sets the threshold value, so that the value differs depending on the operator, and it takes a lot of time to determine the value.
【0005】この発明はこのような問題点を解決しよう
とするもので、カラーカメラにて撮影して得られた画像
より所定の色情報を有する任意の領域を抽出する為の閾
値を容易かつ正確に決定することを目的としている。ま
たこの発明はカラーカメラにて撮影して得られた画像よ
り所定の色情報を有する任意の領域を抽出する為の閾値
を決定する方法により任意の領域を抽出してプリント配
線板の最終外観の品質を判定するプリント配線板最終外
観検査装置において、閾値を容易かつ正確に決定するこ
とにより、検査における各領域抽出の問題点を解決する
ことを目的とする。The present invention is intended to solve such a problem, and it is easy and accurate to set a threshold value for extracting an arbitrary area having predetermined color information from an image obtained by photographing with a color camera. The purpose is to determine. In addition, the present invention extracts a desired area by a method of determining a threshold value for extracting a desired area having predetermined color information from an image obtained by photographing with a color camera to determine the final appearance of a printed wiring board. An object of the present invention is to solve the problem of each area extraction in the inspection by easily and accurately determining the threshold in the final appearance inspection apparatus for a printed wiring board that determines the quality.
【0006】[0006]
【課題を解決するための手段】本発明の請求項1に記載
の領域抽出閾値設定手法は、カラーカメラにて撮影した
カラー画像から任意の領域を抽出する手法によってカラ
ーカメラにて撮影したカラー画像をCRT画面上に表示
し、画面上に表示された画像上でポインティングデバイ
スで抽出するエリアを選択し、選択したエリア上のR値
の閾値、G値の閾値、B値の閾値にて構成される第1次
閾値を決定することを特徴とする。A region extraction threshold setting method according to claim 1 of the present invention is a color image photographed by a color camera by a method of extracting an arbitrary region from a color image photographed by a color camera. Is displayed on the CRT screen, an area to be extracted with the pointing device is selected on the image displayed on the screen, and the R value threshold value, G value threshold value, and B value threshold value on the selected area are configured. It is characterized by determining a first-order threshold value.
【0007】本発明の請求項2に記載の領域抽出閾値設
定手法は、請求項1に記載の領域抽出閾値設定手法にて
決定したR値の閾値、G値の閾値、B値の閾値をCRT
画面上で調整するとともに同CRT画面上にそれぞれの
閾値にて抽出された2値画像を表示し、第1次閾値を調
整することで第2次閾値を決定することを特徴とする。According to a second aspect of the present invention, there is provided a region extraction threshold value setting method, wherein the R value threshold value, the G value threshold value and the B value threshold value determined by the area extraction threshold value setting method according to the first aspect are CRT.
It is characterized in that the secondary image is adjusted on the screen and the binary images extracted by the respective thresholds are displayed on the CRT screen, and the secondary threshold is determined by adjusting the primary threshold.
【0008】[0008]
【発明の実施の形態】プリント配線板製造の最終工程に
おけるプリント配線板最終外観検査装置の領域抽出パラ
メータ設定に本発明を実施する。以下、本発明の実施形
態について、図面に基づき説明する。BEST MODE FOR CARRYING OUT THE INVENTION The present invention is applied to the area extraction parameter setting of the final appearance inspection apparatus for a printed wiring board in the final step of manufacturing the printed wiring board. Hereinafter, embodiments of the present invention will be described with reference to the drawings.
【0009】図1は本実施の形態に係わるプリント配線
板最終外観検査装置の構成の概略を示す図である。この
プリント配線板検査装置はソルダレジスト印刷工程、シ
ルク印刷工程を終えた後のプリント配線板をカラーカメ
ラにて撮影し、作成されたデータと良品と見られるプリ
ント配線板を撮影して作成されたマスター画像や、CA
Dデータから作成されたマスター画像から作成された基
準データとを比較するなどして、プリント配線板のソル
ダレジストと銅及びシルク印刷各パターンの自動検査を
目的とする自動最終外観検査装置であり、検査用カメラ
1、確認用カメラ2、制御処理部3、検査用モニタ4、
確認用モニタ5、カメラ駆動部6、ステージ7、駆動制
御部8などで構成される。FIG. 1 is a view showing the outline of the arrangement of a final appearance inspection apparatus for a printed wiring board according to this embodiment. This printed wiring board inspection device was created by taking a picture of the printed wiring board after the solder resist printing process and the silk printing process with a color camera, and taking a picture of the created data and a printed wiring board that is considered to be a good product. Master image, CA
An automatic final appearance inspection device for the purpose of automatically inspecting the solder resist of a printed wiring board and each pattern of copper and silk printing by comparing with reference data created from a master image created from D data, Inspection camera 1, confirmation camera 2, control processing unit 3, inspection monitor 4,
It is composed of a confirmation monitor 5, a camera drive unit 6, a stage 7, a drive control unit 8, and the like.
【0010】検査用カメラ1は、検査対象プリント配線
板画像の撮影、及び良品プリント配線板画像の撮影を行
う。確認用カメラ2は、検査終了後、検出された検査対
象プリント配線板の欠陥部分画像の撮影を行う。制御処
理部3は、画像処理、データ処理、メカ制御等を行い、
ステージ7の位置情報を取り込み、検査用カメラ1へ制
卸信号を送るカメラコントローラ9、検査用カメラにて
撮影した画像のRGBデータを処理する、画像入力・処
理部10、検査に使用する検査用基準データや検査パラ
メータ等の諸データ及び検査結果データの保存を行うデ
ータ格納部11を内蔵する。検査用モニタ4は検査にお
ける諸パラメータの設定等のマンマシンインターフェイ
スを行う。確認用モニタ5は確認用カメラで撮影した検
査対象プリント配線板の欠陥部分画像の表示を行う。カ
メラ駆動部6はカメラをX軸方向へ移動する。ステージ
7は検査対象プリント配線板、及び良品プリント配線板
を固定し、Y軸方向へ移動する。駆動制御部8は制御処
理部3からの指令により、カメラ駆動部6及びステージ
7の駆動制御を行う。The inspection camera 1 captures an image of a printed wiring board to be inspected and a non-defective printed wiring board image. After the inspection is completed, the confirmation camera 2 captures an image of the defective portion of the detected inspection-target printed wiring board. The control processing unit 3 performs image processing, data processing, mechanical control, etc.
A camera controller 9 that takes in positional information of the stage 7 and sends an inspection signal to the inspection camera 1, an image input / processing unit 10 that processes RGB data of an image captured by the inspection camera, and an inspection used for inspection A data storage unit 11 for storing various data such as reference data and inspection parameters and inspection result data is built in. The inspection monitor 4 performs a man-machine interface such as setting various parameters in the inspection. The confirmation monitor 5 displays a defective portion image of the inspection target printed wiring board taken by the confirmation camera. The camera drive unit 6 moves the camera in the X-axis direction. The stage 7 fixes the printed wiring board to be inspected and the non-defective printed wiring board, and moves in the Y-axis direction. The drive control unit 8 controls the drive of the camera drive unit 6 and the stage 7 according to a command from the control processing unit 3.
【0011】検査用カメラ1で撮影されたプリント配線
板の画像には銅パターン部分とシルク印刷部分とソルダ
レジスト印刷部分があり、各領域をR値、G値、B値の
閾値でそれぞれ抽出した画像でそれぞれ異なる検査精度
により検査を行っている。The image of the printed wiring board taken by the inspection camera 1 has a copper pattern portion, a silk printing portion, and a solder resist printing portion, and each area is extracted with R, G, and B value thresholds, respectively. The images are inspected with different inspection accuracy.
【0012】以下に、R値、G値、B値の閾値設定手法
について説明する。図2は第1次閾値を設定するための
表示である。検査用モニタに検査用カメラで撮影した検
査対象プリント配線板、及び良品プリント配線板の画像
を表示し、抽出する領域をポインティングデバイス12
を使用して矩形状に選択し、選択された領域の画素のR
値の最大値・最小値、G値の最大値・最小値、B値の最
大値・最小値をそれぞれ抽出する領域のR値の閾値、G
値の閾値、B値の閾値にて構成される第1次閾値として
メモリ上に保存する。A method of setting thresholds for R value, G value and B value will be described below. FIG. 2 is a display for setting the primary threshold value. An image of the printed wiring board to be inspected and the non-defective printed wiring board taken by the inspection camera is displayed on the inspection monitor, and the area to be extracted is designated by the pointing device 12.
To select a rectangle using
The maximum value / minimum value of the value, the maximum value / minimum value of the G value, the maximum value / minimum value of the B value, the threshold value of the R value of the area, G
It is stored in the memory as a primary threshold composed of a value threshold and a B value threshold.
【0013】図3は第2次閾値を調整決定するための表
示である。メモリ上に保存された第1次閾値を調整し、
第2次閾値を決定するためにCRT画面上にREDプレ
ーン、GREENプレーン、BLUEプレーン毎のヒス
トグラム13、第1次閾値を調整するスライダー14、
第1次閾値表示15及び上記第1次閾値設定手法により
決定された第1次閾値を反映した抽出画像16を表示
し、スライダー14のつまみ14aをポインティングデ
バイス17にて操作し、操作した閾値を反映した抽出画
像16を見ながら閾値の調整を行う。FIG. 3 is a display for adjusting and determining the secondary threshold value. Adjust the primary threshold stored in memory,
A RED plane, a GREEN plane, a histogram 13 for each BLUE plane on the CRT screen to determine the secondary threshold, a slider 14 for adjusting the primary threshold,
The primary threshold value display 15 and the extracted image 16 that reflects the primary threshold value determined by the primary threshold value setting method are displayed, and the knob 14a of the slider 14 is operated by the pointing device 17 to display the operated threshold value. The threshold value is adjusted while looking at the reflected extracted image 16.
【0014】[0014]
【発明の効果】この発明は上記の如く、領域を抽出する
ための閾値を容易かつ正確に決定することにより、検査
における各領域抽出の問題点を解決する。また、閾値設
定作業における労力の軽減及び時間の短縮を実現出来る
という効果を奏する。As described above, the present invention solves the problem of extracting each area in an inspection by easily and accurately determining the threshold value for extracting the area. Further, there is an effect that the labor and time can be reduced in the threshold setting work.
【図1】プリント配線板最終外観検査装置の構成を示す
説明図である。FIG. 1 is an explanatory diagram showing a configuration of a final appearance inspection device for a printed wiring board.
【図2】第1次閾値設定の説明図である。FIG. 2 is an explanatory diagram of primary threshold setting.
【図3】第2次閾値設定の説明図である。FIG. 3 is an explanatory diagram of secondary threshold value setting.
1 検査用カメラ 2 確認用カメラ 3 制御処理部 4 検査用モニタ 5 確認用モニタ 6 カメラ駆動部 7 ステージ 8 駆動制御部 9 カメラコントローラ 10 画像入力処理部 11 データ格納部 12 ポインティングデバイス 13 ヒストグラム 14 スライダー 14a スライダーのつまみ 15 第1次閾値表示 16 抽出画像 17 ポインティングデバイス 1 Inspection camera 2 Confirmation camera 3 Control processing unit 4 Inspection monitor 5 Confirmation monitor 6 camera drive 7 stages 8 Drive control unit 9 Camera controller 10 Image input processing unit 11 Data storage 12 pointing device 13 Histogram 14 Slider 14a Slider knob 15 First threshold display 16 Extracted image 17 pointing devices
───────────────────────────────────────────────────── フロントページの続き (72)発明者 米倉 浩一 福岡県古賀市天神三丁目20番1号 株式会 社正興電機製作所古賀事業所内 Fターム(参考) 5B057 AA03 BA02 BA30 CA01 CA08 CA12 CA16 CB01 CB06 CB12 CB16 CC01 CE12 DA17 DB02 DB06 DB09 DC19 ─────────────────────────────────────────────────── ─── Continued front page (72) Inventor Koichi Yonekura 3-20-1, Tenjin Stock Exchange, Koga City, Fukuoka Prefecture Inside the Shoga Electric Works Koga Plant F-term (reference) 5B057 AA03 BA02 BA30 CA01 CA08 CA12 CA16 CB01 CB06 CB12 CB16 CC01 CE12 DA17 DB02 DB06 DB09 DC19
Claims (2)
ら任意の領域を抽出する手法によってカラーカメラにて
撮影したカラー画像をCRT画面上に表示し、画面上に
表示された画像上でポインティングデバイスで抽出する
エリアを選択し、選択したエリア上のR値の閾値、G値
の閾値、B値の閾値にて構成される第1次閾値を決定す
ることを特徴とする領域抽出閾値設定手法。1. A color image photographed by a color camera is displayed on a CRT screen by a method of extracting an arbitrary region from a color image photographed by a color camera, and a pointing device is used on the image displayed on the screen. A region extraction threshold value setting method characterized in that an area to be extracted is selected and a primary threshold value composed of an R value threshold value, a G value threshold value, and a B value threshold value on the selected area is determined.
にて決定したR値の閾値、G値の閾値、B値の閾値をC
RT画面上で調整するとともに同CRT画面上にそれぞ
れの閾値にて抽出された2値画像を表示し、第1次閾値
を調整することで第2次閾値を決定することを特徴とす
る領域抽出閾値設定手法。2. An R value threshold value, a G value threshold value, and a B value threshold value, which are determined by the area extraction threshold value setting method according to claim 1, are set to C.
Area extraction characterized by adjusting on the RT screen and displaying a binary image extracted at each threshold value on the CRT screen and adjusting the primary threshold value to determine the secondary threshold value Threshold setting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002109622A JP2003303336A (en) | 2002-04-11 | 2002-04-11 | Method of setting threshold for region extraction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2002109622A JP2003303336A (en) | 2002-04-11 | 2002-04-11 | Method of setting threshold for region extraction |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2003303336A true JP2003303336A (en) | 2003-10-24 |
Family
ID=29393035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2002109622A Pending JP2003303336A (en) | 2002-04-11 | 2002-04-11 | Method of setting threshold for region extraction |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2003303336A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014081220A (en) * | 2012-10-15 | 2014-05-08 | Hitachi High-Technologies Corp | Pattern inspection and measurement device and program |
-
2002
- 2002-04-11 JP JP2002109622A patent/JP2003303336A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014081220A (en) * | 2012-10-15 | 2014-05-08 | Hitachi High-Technologies Corp | Pattern inspection and measurement device and program |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH02231510A (en) | Substrate inspection device | |
JP2010177293A (en) | Information display system and information display method for quality control of component-mounted substrate | |
CN110838149A (en) | Camera light source automatic configuration method and system | |
JPH0278937A (en) | Display method for substrate inspection device | |
JP2003303336A (en) | Method of setting threshold for region extraction | |
JP2000004079A (en) | Solder inspection equipment | |
JP2536127B2 (en) | Board inspection equipment | |
JP2001024321A (en) | Method for generating inspection data | |
JPH05256791A (en) | Inspecting apparatus of defect of board | |
JP2006284543A (en) | Method and device for inspecting mounted circuit board | |
JP3289070B2 (en) | Mounted parts inspection device | |
KR20000004289A (en) | Method for setting teaching data of pcb automatic test device and apparatus thereof | |
JP3250309B2 (en) | Teaching method of mounted part inspection data | |
JP2664141B2 (en) | Mounting board inspection equipment | |
JPH09152317A (en) | Method and apparatus for inspection of mounting component | |
JPH06201603A (en) | Method for generating inspection data in missing inspection of electronic component and method for detecting missing of the component | |
JP3447280B2 (en) | Inspection method of printed matter and its inspection device | |
JPH0526815A (en) | Method for teaching mounted parts inspection data | |
JP3189308B2 (en) | Method and apparatus for displaying soldering inspection results, method for correcting soldering failure, and soldering inspection apparatus | |
TWI768434B (en) | Circuit board information display method and device | |
JP2023107167A (en) | Inspection system, inspection method, and inspection program | |
JP3557814B2 (en) | Image inspection apparatus and method | |
JP2002019084A (en) | Method and apparatus for inspecting printing state of cream solder | |
JP2576815B2 (en) | Mounting board inspection equipment | |
JPH0274849A (en) | Inspection region setting method in board inspection apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20050408 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080604 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080613 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20081024 |