JPH0981683A - Character symbol inspection device and method therefor - Google Patents

Character symbol inspection device and method therefor

Info

Publication number
JPH0981683A
JPH0981683A JP7257061A JP25706195A JPH0981683A JP H0981683 A JPH0981683 A JP H0981683A JP 7257061 A JP7257061 A JP 7257061A JP 25706195 A JP25706195 A JP 25706195A JP H0981683 A JPH0981683 A JP H0981683A
Authority
JP
Japan
Prior art keywords
inspection
image
character
template
symbol
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
JP7257061A
Other languages
Japanese (ja)
Inventor
Kazuhiko Sato
和彦 佐藤
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.)
Sony Corp
Original Assignee
Sony 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 Sony Corp filed Critical Sony Corp
Priority to JP7257061A priority Critical patent/JPH0981683A/en
Publication of JPH0981683A publication Critical patent/JPH0981683A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To judge the prioriety of an inspection character by a high-speed processing so as to match with the judgement standard of a human being. SOLUTION: Inspection images and reference images (MA) composed of image-picked-up multi-valued images are converted to binary images, the templates (20, 21 and 22) of plural different types to be comparison references modeling the image area of an inspection object are prepared from the reference images (MA) converted to the binary images, the defects of blotting, thinning or lacking are discriminated by comparison judgement using the templates (20, 21 and 22) and thus, an inspection is performed with high accuracy. At the time, by considering the line width of the inspection character, propriety judgement close to the judgement standard of the human being is performed. Further, by converting the inspection images to the binary images, extracting the differential area of the inspection images and the templates (20, 21 and 22) and performing the comparison judgement with judgement threshold values (N, H and K), the high-speed processing is performed.

Description

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

【0001】[0001]

【目次】以下の順序で本発明を説明する。 発明の属する技術分野 従来の技術 発明が解決しようとする課題 課題を解決するための手段 発明の実施の形態(図1〜図8) 発明の効果[Table of Contents] The present invention will be described in the following order. TECHNICAL FIELD OF THE INVENTION Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems Embodiments of the Invention (FIGS. 1 to 8)

【0002】[0002]

【発明の属する技術分野】本発明は文字記号検査装置及
びその方法に関し、例えば印刷された文字の形状検査を
するものに適用し得る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character and symbol inspection apparatus and method thereof, and can be applied to, for example, an apparatus for inspecting the shape of a printed character.

【0003】[0003]

【従来の技術】従来、印刷文字の形状検査は対象となる
検査文字をテレビカメラで撮像して一旦画像メモリに記
憶させ、画像メモリから読み出すマスタ文字の画像と比
較することによつて形状検査する。ここでいうマスタ文
字の画像とは、比較検査の基準とする検査文字をマスタ
画像フアイルに画像登録したものである。
2. Description of the Related Art Conventionally, the shape inspection of a printed character is performed by capturing an image of the inspection character to be inspected with a television camera, temporarily storing it in an image memory, and comparing it with an image of a master character read from the image memory. . The image of the master character referred to here is an image in which the inspection character used as the reference of the comparative inspection is registered in the master image file.

【0004】マスタ文字は、テレビカメラで検査の基準
となる文字を撮像することによつて登録される。このと
きマスタ文字の画像は、検査文字の各書体に応じて文字
毎に領域分割される。このように領域分割されたマスタ
文字とマスタ文字の分割形態と同じように領域分割され
た検査文字との間で分割された領域毎の比較検査が実行
される。
The master character is registered by taking an image of a character that serves as an inspection reference with a television camera. At this time, the image of the master character is divided into regions for each character according to each typeface of the inspection character. In this way, the comparison inspection is performed for each area divided between the area-divided master character and the area-divided inspection character in the same manner as the master character is divided.

【0005】比較検査は検査文字とマスタ文字との対応
する各分割領域との間で正規化相関に基づいてなされ
る。すなわちマスタ文字と検査文字の対応する領域間の
相関係数が所定値以上高い場合には良品と判定され、所
定値以下の場合には不良品と判定される。
The comparison check is performed based on the normalized correlation between the check character and each corresponding divided area of the master character. That is, if the correlation coefficient between the corresponding areas of the master character and the inspection character is higher than a predetermined value, it is determined as a good product, and if it is less than the predetermined value, it is determined as a defective product.

【0006】[0006]

【発明が解決しようとする課題】ところで安定した検査
を実行するためには、検査文字の書体に応じて検査文字
を領域分割するときの分割形態を設定する必要がある。
ところがその分割形態を設定する迄の検討時間が長くか
かるという問題があつた。さらに検査文字の各々に対し
て判定レベルをその都度設定することが必要であるため
手間がかかるという問題があつた。このように検査文字
毎にパラメータを設定する方法では手間と時間がかか
り、検査工程での検査効率を悪くさせるという問題があ
つた。
In order to carry out a stable inspection, it is necessary to set the division mode when the inspection character is divided into areas according to the typeface of the inspection character.
However, there is a problem in that it takes a long time to set the division mode. Further, it is necessary to set the judgment level for each of the inspection characters each time, which is troublesome. As described above, the method of setting the parameter for each inspection character takes time and labor, and there is a problem that the inspection efficiency in the inspection process is deteriorated.

【0007】ところで検査文字に欠けやにじみが生じる
と、検査文字の線幅を変えてしまうが、この文字の線幅
は人間の感覚では検査文字の不良部を判定する基準の一
つとなつている。一方、従来の検査方法では文字の線幅
を考慮した人間の判断基準に近い検査判定が困難である
という問題があつた。本発明は以上の点を考慮してなさ
れたもので、検査文字を高速な処理でかつ、人間の判断
基準に合うように良否判定することのできる文字記号検
査装置及びその方法を提案しようとするものである。
[0007] By the way, when the inspection character is missing or bleeding, the line width of the inspection character is changed, and the line width of this character is one of the criteria for judging the defective portion of the inspection character by human sense. . On the other hand, the conventional inspection method has a problem that it is difficult to perform an inspection determination that is close to a human determination standard in consideration of the line width of a character. The present invention has been made in consideration of the above points, and intends to propose a character symbol inspection apparatus and a method therefor capable of performing a high-speed processing of an inspection character and determining whether the inspection character is good or bad so as to meet a human criterion. It is a thing.

【0008】[0008]

【課題を解決するための手段】かかる課題を解決するた
め本発明においては、印刷又は表示された文字や記号で
なる検査対象を撮像して画像処理することにより得られ
る検査画像を比較基準となる基準画像と比較することに
より検査する文字記号検査装置において、撮像した多値
画像でなる検査画像及び基準画像を2値画像に変換する
と共に、2値画像に変換した基準画像より検査対象の画
像領域を型取つた比較基準となる複数の異なる型のテン
プレートを作成する画像処理手段と、検査画像とテンプ
レートとを重ね合わせて差分領域を抽出し、判定閾値と
比較することによつて良否判定する比較判定手段とを備
える。
In order to solve such a problem, in the present invention, an inspection image obtained by picking up and processing an image of an inspected object consisting of printed or displayed characters or symbols is used as a comparison reference. In a character and symbol inspection device for inspecting by comparing with a reference image, an inspection image and a reference image which are captured multi-valued images are converted into a binary image, and an image area of an inspection target from the reference image converted into the binary image Image processing means for creating a plurality of different template types as a comparison reference, and the inspection image and the template are overlapped to extract a difference area, and a pass / fail judgment is made by comparing with a determination threshold value. And a determining means.

【0009】テンプレートを用いた比較判定によりにじ
み、細み又は欠けの不良を識別して検査することができ
るようになり、従来に比して格段に検査精度を向上し得
る。さらにテンプレートを用いて検査文字の線幅を考慮
して良否判定するようにしたことになり、より人間の判
断基準に近い不良判定がなし得る。さらに検査画像を2
値画像に変換して検査画像とテンプレートとの差分を抽
出して判定閾値と比較判定することにより高速処理がで
きる。
It becomes possible to identify and inspect defects such as bleeding, thinning, or chipping by comparison and determination using a template, and the inspection accuracy can be significantly improved compared to the conventional case. Further, the template is used to make a pass / fail determination in consideration of the line width of the inspection character, and a defect determination closer to a human determination standard can be made. 2 more inspection images
High-speed processing can be performed by converting the image into a value image, extracting the difference between the inspection image and the template, and comparing and judging with the judgment threshold value.

【0010】[0010]

【発明の実施の形態】以下図面について、本発明の一実
施例を詳述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings.

【0011】図1において、1は全体として文字記号検
査装置を示し、画像処理するための画像処理ボード2
と、検査対象となる文字が印刷された半導体装置を搬送
するベースマシン(図示せず)を制御するシーケンサ3
との間で画像入力信号や判定信号の送受信を行うI/O
ボード4とがCPUボード5に接続されている。この画
像処理ボード2にはCCDカメラ6によつて撮像される
検査文字が取り込まれ、モニタ7によつて画像表示する
ことができる。このモニタ7を参照しながらI/Oボー
ド4に接続されたマウス8を操作することによつて検査
パラメータを設定することができる。
In FIG. 1, reference numeral 1 indicates a character / symbol inspection apparatus as a whole, and an image processing board 2 for image processing.
And a sequencer 3 for controlling a base machine (not shown) that conveys a semiconductor device on which characters to be inspected are printed.
I / O for sending and receiving image input signals and judgment signals to and from
The board 4 is connected to the CPU board 5. An inspection character imaged by the CCD camera 6 is captured in the image processing board 2, and an image can be displayed by the monitor 7. The inspection parameters can be set by operating the mouse 8 connected to the I / O board 4 while referring to the monitor 7.

【0012】一方、CPUボード5には記憶装置として
ハードデイスク9及びフロツピーデイスク10が接続さ
れる。ハードデイスク9には装置全体を制御するための
システム制御プログラムと文字検査に用いる文字検査プ
ログラム及び文字検査プログラムのメニユープログラム
と検査文字のマスタ画像をフアイルしたマスタ画像フア
イルが記憶されている。さらにフロツピーデイスク10
に各フアイルのバツクアツプフアイルが格納される。文
字検査プログラムが実行されるに先立つて、文字記号検
査装置1はCCDカメラ6によつて撮像した検査対象の
文字の比較基準となる文字をマスタ文字として、ハード
デイスク9のマスタ画像フアイルに登録する。
On the other hand, a hard disk 9 and a floppy disk 10 are connected to the CPU board 5 as storage devices. The hard disk 9 stores a system control program for controlling the entire apparatus, a character inspection program used for character inspection, a menu program of the character inspection program, and a master image file in which a master image of the inspection character is filed. Floppy Pie Disk 10
The backup file of each file is stored in. Prior to the execution of the character inspection program, the character / symbol inspection device 1 registers, in the master image file of the hard disk 9, a character serving as a reference for comparison of characters to be inspected by the CCD camera 6 as a master character.

【0013】実際の文字記号検査は、図2に示す文字記
号検査シーケンスに従つて実行される。すなわち検査シ
ステムが立ち上げられると、文字記号検査シーケンスは
先ずステツプSP1において、CPUボード5のCPU
制御により、CCDカメラ6で撮像した文字画像から検
査文字の基準画像となるマスタ画像を作成する。或いは
すでにマスタ画像が登録されている場合、CPUボード
5のCPU制御によつてハードデイスク9又はフロツピ
ーデイスク10よりマスタ画像を読み出し、画像処理ボ
ード2の画像メモリ(図示せず)に書き込む。
The actual character / symbol check is executed according to the character / symbol check sequence shown in FIG. That is, when the inspection system is started up, the character / symbol inspection sequence starts with the CPU of the CPU board 5 in step SP1.
By control, a master image that is a reference image of the inspection character is created from the character image captured by the CCD camera 6. Alternatively, when the master image is already registered, the master image is read from the hard disk 9 or the floppy disk 10 under the CPU control of the CPU board 5 and written in the image memory (not shown) of the image processing board 2.

【0014】次のステツプSP2では、画像処理ボード
2においてCPU制御によりマスタ画像より検査文字の
画像領域を型取りした画像比較の基準となる各種のテン
プレートを作成する。次にステツプSP3において、ハ
ードデイスク9より読み出したメニユープログラム上で
マウス8の操作によつて文字記号検査の検査パラメータ
を設定する。すなわち検査パラメータとして検査判定レ
ベル及び再検査回数等を設定し、文字記号検査装置1に
よる検査が可能な状態にする。
In the next step SP2, the CPU of the image processing board 2 is controlled by the CPU to create various templates as a reference for image comparison in which the image area of the inspection character is modeled from the master image. Next, in step SP3, the inspection parameter for the character symbol inspection is set by operating the mouse 8 on the menu program read from the hard disk 9. That is, the inspection determination level, the number of re-inspections, etc. are set as the inspection parameters, and the inspection by the character / symbol inspection device 1 is made possible.

【0015】続くステツプSP4において、CPUがI
/Oボード4を介してシーケンサ3からの画像の取り込
み信号を受信すると文字記号検査を開始する。CPU
は、ステツプSP5でCCDカメラ6によつて撮像した
検査画像を画像処理ボード2の画像メモリに取り込み、
ステツプSP6で検査画像の中から検査文字を切り出
す。次にステツプSP7で画像処理ボード2において1
文字ずつマスタ文字と検査文字を位置合わせして、続く
ステツプSP8でテンプレートを用いた文字記号検査を
実行する。
At the subsequent step SP4, the CPU
When the image capture signal from the sequencer 3 is received via the / O board 4, the character / symbol inspection is started. CPU
Captures the inspection image captured by the CCD camera 6 in step SP5 into the image memory of the image processing board 2,
At step SP6, the inspection character is cut out from the inspection image. Next, at step SP7, 1 is set on the image processing board 2.
The master character and the inspection character are aligned character by character, and the character symbol inspection using the template is executed in the subsequent step SP8.

【0016】ステツプSP9では、検査プログラムに基
づいたCPUのマスタ文字と検査文字の比較判定結果に
基づいて検査文字が良品の場合は、ステツプSP10に
移る。ここで検査対象文字列の全ての文字の検査が終了
した場合、続くステツプSP11に移り良品を表す判定
信号を送出した後、ステツプSP4に戻り、次の検査文
字列の画像を取り込み、以降ステツプSP5−SP6−
SP7−SP8−SP9の検査シーケンスを実行する。
またステツプSP10で検査文字列の全ての文字の検査
が終了していない場合、ステツプSP7に戻り、検査画
像の次の検査文字の位置合わせから以降の文字記号検査
シーケンスを実行する。
At step SP9, if the inspection character is a non-defective product based on the comparison judgment result of the CPU master character and the inspection character based on the inspection program, the operation proceeds to step SP10. When the inspection of all the characters in the inspection target character string is completed, the process proceeds to the following step SP11, after which a determination signal indicating a non-defective product is sent out, and then the process returns to step SP4 to capture the image of the next inspection character string, and thereafter, step SP5. -SP6-
The inspection sequence of SP7-SP8-SP9 is executed.
If the inspection of all the characters in the inspection character string is not completed in step SP10, the process returns to step SP7 to execute the subsequent character symbol inspection sequence from the alignment of the next inspection character in the inspection image.

【0017】またステツプSP9において、CPUの判
定比較によつて検査文字が不良であると判定された場合
は、ステツプSP12に移る。ここで再検査が指定され
ていない場合、ステツプSP11に移り直ちに不良を表
す判定信号を送出する。これに対して再検査が指定され
ている場合、ステツプSP13に移り再検査が指定回数
まで行われたか否か判断する。ここで再検査が指定回数
まで終了していない場合、CPU制御はステツプSP1
4に移り位置合わせの開始位置を変更した後、ステツプ
SP7に移り再度、検査文字の位置合わせからステツプ
SP8−SP9の文字記号検査シーケンスを実行する。
If it is determined in step SP9 that the inspection character is defective according to the determination comparison of the CPU, the process proceeds to step SP12. If the re-inspection is not designated here, the process proceeds to step SP11 to immediately send a determination signal indicating a defect. On the other hand, if the reinspection is designated, the process moves to step SP13 to judge whether or not the reinspection has been performed up to the designated number of times. If the reinspection has not been completed the specified number of times, the CPU control proceeds to step SP1.
After shifting to step 4, the start position of the alignment is changed, and then the process proceeds to step SP7 to execute the character symbol inspection sequence of steps SP8 to SP9 again from the alignment of the inspection character.

【0018】またステツプSP13で再検査が指定回数
まで終了していた場合、CPU制御はステツプSP11
に移り、直ちに不良を表す判定信号を送出し、以下ステ
ツプSP4−SP5−SP6−SP7−SP8−SP9
の文字記号検査シーケンスを実行する。
If the re-inspection has been completed up to the specified number of times at step SP13, the CPU control is made at step SP11.
Then, the judgment signal indicating the defect is immediately sent out, and then the steps SP4-SP5-SP6-SP7-SP8-SP9 are executed.
Perform the character-sign check sequence of.

【0019】マスタ文字の登録及びテンプレートの作成
は、図3に示すマスタ文字登録及びテンプレートの作成
手順に従つて実行される。先ずステツプSP20におい
て、マウス8によつてマスタ画像内での文字列をウイン
ドウで取り囲む。これによりステツプSP21で文字検
査プログラムの中のマスタ画像登録プログラムによつて
ウインドウ内の文字が水平及び垂直プロフアイルによつ
て切り出される。
Registration of the master character and creation of the template are executed in accordance with the master character registration and template creation procedure shown in FIG. First, in step SP20, the character string in the master image is surrounded by a window with the mouse 8. As a result, in step SP21, the characters in the window are cut out by the horizontal and vertical profiles by the master image registration program in the character inspection program.

【0020】ここで他にも登録する文字があれば、ステ
ツプSP22からステツプSP20に戻つて同様の処理
を実行する。また文字の登録が終了したならば、ステツ
プSP23に進む。ステツプSP23では図4に示すよ
うに、マスタ画像MAを2値画像に変換して標準テンプ
レート20を作成する。続くステツプSP24では、標
準テンプレート20に対して文字の輪郭を1画素ずつ太
らせる膨張処理を施すことによつてにじみ検査用の膨張
テンプレート21を作成する。次のステツプSP25で
は、標準テンプレート20に対して文字の輪郭を1画素
ずつ細らせる収縮処理を施すことによつて文字の細み検
査用の収縮テンプレート22を作成する。このようにし
て作成された各テンプレートは、画像処理ボード2の画
像メモリに記憶される。なお膨張処理及び収縮処理の回
数は、メニユープログラムによつて選択設定することが
できるので、膨張処理及び収縮処理の回数を変えること
により、にじみと細みの不良限界を想定した検査ができ
る。
If there are other characters to be registered, the process returns from step SP22 to step SP20 and the same processing is executed. When the character registration is completed, the process proceeds to step SP23. In step SP23, as shown in FIG. 4, the master image MA is converted into a binary image to create the standard template 20. In the subsequent step SP24, the expansion template 21 for bleeding inspection is created by performing expansion processing for thickening the contour of the character by one pixel on the standard template 20. In the next step SP25, the contraction template 22 for character thinning inspection is created by subjecting the standard template 20 to contraction processing for narrowing the contour of the character pixel by pixel. Each template created in this way is stored in the image memory of the image processing board 2. Since the number of expansion and contraction processes can be selectively set by the menu program, the number of expansion and contraction processes can be changed to perform an inspection assuming the limit of defective bleeding and fineness.

【0021】次にテンプレートによる文字記号検査を図
5に示す検査部の検査シーケンスに従つて説明する。検
査シーケンスは、先ずステツプSP30において、検査
文字を2値化処理した後、ステツプSP31のにじみ判
定、ステツプSP32の細み判定及びステツプSP33
の欠け判定の処理を実行する。以下検査文字「I」を例
にしてにじみ、細み又は欠けを有するそれぞれの検査文
字30、40及び50について各ステツプの処理を説明
する。
Next, the character / symbol inspection by the template will be described according to the inspection sequence of the inspection unit shown in FIG. In the inspection sequence, first, in step SP30, the inspection character is binarized, and then bleeding determination in step SP31, fineness determination in step SP32, and step SP33.
The process for determining the lack of is executed. Hereinafter, the process of each step will be described with respect to each of the inspection characters 30, 40, and 50 having bleeding, fineness, or lacking by using the inspection character "I" as an example.

【0022】先ず、ステツプSP31のにじみ判定を図
6に示すにじみ判定シーケンスに従つて説明する。にじ
み判定は、ステツプSP41において2値化処理した膨
張テンプレート21及び検査文字30の差分をとる。こ
れにより検査文字30の膨張テンプレート21の外側に
でるにじみ部31を抽出する。次のステツプSP42で
抽出したにじみ部31の面積を画素数より算出する。続
いてステツプSP43でCPU制御により、抽出したに
じみ部31の面積がにじみ判定の閾値N以上か又は未満
かを比較判定する。
First, the bleeding determination in step SP31 will be described according to the bleeding determination sequence shown in FIG. In the bleeding determination, the difference between the dilated template 21 and the inspection character 30 binarized in step SP41 is calculated. As a result, the bleeding portion 31 of the inspection character 30 which is outside the expansion template 21 is extracted. The area of the bleeding portion 31 extracted in the next step SP42 is calculated from the number of pixels. Then, in step SP43, the CPU control is performed to compare and determine whether the area of the extracted bleeding portion 31 is equal to or more than the threshold N for bleeding determination or less.

【0023】次にステツプSP32の細み判定を図7に
示す細み判定シーケンスに従つて説明する。細み判定は
先ず、ステツプSP51において2値化処理した収縮テ
ンプレート22及び検査文字40の差分をとる。これに
より検査文字40の収縮テンプレート22の内側にはい
る細み部41を抽出する。次のステツプSP52では抽
出した細み部41の面積を画素数より算出する。続いて
ステツプSP53でCPU制御により、抽出した細み部
41の面積が細み判定の閾値N以上か又は未満かを比較
判定する。ここで細み判定閾値Hは、細み部41の面積
のマスタ文字全体の面積に対する割合で設定する。
Next, the thinness determination of step SP32 will be described in accordance with the thinness determination sequence shown in FIG. In the thinness determination, first, the difference between the contraction template 22 and the inspection character 40 that has been binarized in step SP51 is calculated. As a result, the thin portion 41 of the inspection character 40 that is inside the contraction template 22 is extracted. At the next step SP52, the area of the extracted thin portion 41 is calculated from the number of pixels. Subsequently, in step SP53, the CPU controls to compare and determine whether the area of the extracted thin portion 41 is equal to or more than the threshold N for thin determination or less. Here, the thinness determination threshold value H is set as a ratio of the area of the thin portion 41 to the area of the entire master character.

【0024】最後に、ステツプSP33の欠け判定を図
8に示す欠け判定シーケンスに従つて説明する。欠け判
定は先ず、ステツプSP61において2値化処理した標
準テンプレート20及び検査文字50の差分をとる。こ
れにより検査文字50の標準テンプレート20の内側に
はいる不良部51を抽出する。次にステツプSP62で
抽出した不良部51の画像に収縮処理を施して厚みのな
い部分を削除した収縮処理画像52を生成する。この収
縮処理画像52に対してステツプSP63で膨張処理を
施すことにより、欠け部53のみを抽出する。
Lastly, the chipping determination in step SP33 will be described according to the chipping determination sequence shown in FIG. In the determination of the missing portion, first, the difference between the standard template 20 and the inspection character 50 binarized in step SP61 is calculated. As a result, the defective portion 51 of the inspection character 50 inside the standard template 20 is extracted. Next, the image of the defective portion 51 extracted in step SP62 is subjected to shrinkage processing to generate a shrinkage-processed image 52 in which a portion having no thickness is deleted. The contraction processing image 52 is subjected to expansion processing at step SP63 to extract only the missing portion 53.

【0025】次のステツプSP64では抽出した欠け部
53の面積を画素数より算出する。続いてステツプSP
65においてCPU制御により抽出した欠け部53の面
積が欠け判定の閾値K以上か又は未満かを比較判定す
る。このとき欠け判定閾値Kはマスタ文字の線幅を一辺
とした正方形の面積を基準として、該正方形の面積に対
する欠けの面積の割合で設定する。これは、「かたま
り」として発生する欠け不良については、検査文字の線
幅を一辺とする正方形の面積を良否の判定基準として比
較判定すると都合がよいことによる。ここで用いる検査
文字の線幅は、マスタ文字の登録時(SP1)に標準テ
ンプレート20を用いて予め算出しておいたものを用い
る。
In the next step SP64, the area of the extracted missing portion 53 is calculated from the number of pixels. Then step SP
At 65, it is determined by comparison whether the area of the chipped portion 53 extracted by the CPU control is equal to or larger than the threshold value K for chipping determination or smaller. At this time, the chipping determination threshold value K is set by the ratio of the chipping area to the area of the square, with the area of the square having the line width of the master character as one side. This is because it is convenient to compare and determine a chipping defect that occurs as a “lump” by using the area of a square having the line width of the inspection character as one side to determine whether the quality is good or bad. The line width of the inspection character used here is that which has been calculated in advance using the standard template 20 when the master character is registered (SP1).

【0026】ここでにじみ判定、細み判定及び欠け判定
の各々の閾値N、閾値H、及び閾値Kは、メニユープロ
グラムによつて設定することができる。このようにマス
タ文字を基に作成したテンプレートと検査文字とを2値
化処理して差分をとる簡易な比較判定によつて文字記号
検査を高速に処理することができる。また標準テンプレ
ート20、膨張テンプレート21及び収縮テンプレート
22の3種類のテンプレートを用いてにじみ、細み又は
欠けの不良を識別して検査することにより、検査精度を
格段に向上し得る。さらにテンプレートを用いて検査文
字の線幅を考慮しながら検査することにより人間の判断
基準に近い不良判定がなし得る。
Here, the threshold value N, the threshold value H, and the threshold value K for the bleeding determination, the fineness determination, and the chipping determination can be set by a menu program. In this way, the character / symbol inspection can be processed at high speed by the simple comparison and determination in which the template created based on the master character and the inspection character are binarized to obtain the difference. Further, by using three types of templates, the standard template 20, the expansion template 21 and the contraction template 22, to identify and inspect defects such as bleeding, thinning or chipping, it is possible to significantly improve the inspection accuracy. Further, by using the template and inspecting while considering the line width of the inspection character, it is possible to make a defect determination close to a human criterion.

【0027】以上の構成において、文字記号検査は先
ず、文字記号検査シーケンスのステツプSP1において
マスタ画像を作成して画像処理ボード2の画像メモリに
書き込む。また、このときすでにマスタ画像が登録され
ている場合、CPU制御によりハードデイスク9又はフ
ロツピーデイスク10を通じてマスタ画像を読み出す。
In the character / symbol inspection, the master image is first created and written in the image memory of the image processing board 2 in step SP1 of the character / symbol inspection sequence. If the master image is already registered at this time, the master image is read out through the hard disk 9 or the floppy disk 10 under the control of the CPU.

【0028】次にステツプSP2で、CPU制御により
マスタ画像から標準テンプレート20、膨張テンプレー
ト21及び収縮テンプレート22を作成する。ここで標
準テンプレート20は、マスタ画像を2値化処理するこ
とによつて作成される。またにじみ検査用のテンプレー
トとして標準テンプレート20に膨張処理を施した膨張
テンプレート21が作成され、さらに細み検査用のテン
プレートとして標準テンプレート20に収縮処理を施し
た収縮テンプレート22が作成される。
Next, in step SP2, the standard template 20, the expansion template 21 and the contraction template 22 are created from the master image by the CPU control. Here, the standard template 20 is created by binarizing the master image. Further, an expansion template 21 obtained by performing expansion processing on the standard template 20 is created as a template for bleeding inspection, and a shrinkage template 22 obtained by performing shrinkage processing on the standard template 20 is created as a template for fineness inspection.

【0029】文字記号検査シーケンスは、続いて検査パ
ラメータを設定(SP3)した後、画像取り込み信号を
受信(SP4)すると、検査画像を取り込む(SP
5)。続いて検査文字を切り出し(SP6)、文字の位
置合わせをした後(SP7)、ステツプSP8でテンプ
レートを用いた検査を実行する。ステツプSP8では、
多値画像として入力された検査文字を2値画像に変換し
てにじみ判定、細み判定及び欠け判定を実行する。先
ず、にじみ判定は、膨張テンプレート21と検査文字3
0との差分から膨張テンプレート21の外側にでるにじ
み部31を抽出してにじみ判定の閾値Nとの比較によつ
て良否判定する。
In the character / symbol inspection sequence, after the inspection parameters are set (SP3), when the image capture signal is received (SP4), the inspection image is captured (SP).
5). Subsequently, the inspection character is cut out (SP6), the characters are aligned (SP7), and then the inspection using the template is executed in step SP8. In step SP8,
The inspection character input as a multi-valued image is converted into a binary image, and bleeding determination, fineness determination, and chipping determination are executed. First, the bleeding determination is performed by the expansion template 21 and the inspection character
The bleeding portion 31 extending outside the expansion template 21 is extracted from the difference from 0 and compared with the bleeding determination threshold value N, and the quality is determined.

【0030】次に細み判定は、収縮テンプレート22と
検査文字40との差分から収縮テンプレート22の内側
にでるにじみ部41を抽出して細み判定の閾値Hとの比
較によつて良否判定する。さらに欠け判定は、標準テン
プレート20と検査文字50との差分から標準テンプレ
ート20の内側に入る欠け部と細み部よりなる不良部5
1を抽出した後、収縮処理を施して厚みのない部分を削
除した欠け部のみの収縮処理画像52を生成する。この
収縮処理画像52に対して膨張処理を施すことにより、
欠け部53のみを抽出して欠け部53の面積を計算し、
検査文字の線幅を基準とした欠け判定の閾値Kとの比較
によつて検査文字50を良否判定する。
Next, in the thinness determination, a pass / fail portion 41 that is inside the shrinkable template 22 is extracted from the difference between the shrinkage template 22 and the inspection character 40, and a pass / fail judgment is made by comparison with a thinning determination threshold value H. Further, the determination of chipping is performed based on the difference between the standard template 20 and the inspection character 50.
After 1 is extracted, shrinkage processing is performed to generate a shrinkage-processed image 52 of only the defective portion in which the portion having no thickness is deleted. By performing expansion processing on the contraction processing image 52,
The area of the notch 53 is calculated by extracting only the notch 53,
The quality of the inspection character 50 is determined by comparing it with the threshold value K for the defect determination based on the line width of the inspection character.

【0031】以上の構成によれば、標準テンプレート2
0、膨張テンプレート21及び収縮テンプレート22の
3種類のテンプレートを用いた検査によつてにじみ、細
み又は欠けの不良を識別して検査するようにしたことに
より、従来に比して格段に向上した検査精度を実現でき
る共に、検査の信頼性を高めることができる。さらに本
発明によれば、テンプレートを用いたことにより検査文
字の線幅を考慮した判定基準を設定することができ、こ
れにより人間の判断基準に近い不良判定がなし得る。
According to the above configuration, the standard template 2
0, an expansion template 21 and a contraction template 22 are used to identify and inspect defects such as bleeding, thinning or chipping by inspection using three types of templates, which is a significantly improved inspection compared to the conventional one. The accuracy can be realized and the reliability of the inspection can be improved. Further, according to the present invention, the template can be used to set a criterion in consideration of the line width of the inspection character, and thus a defect determination close to the human criterion can be made.

【0032】さらに本発明によれば、検査文字の画像を
2値画像に変換して処理することによつて高速に画像処
理ができる。さらにテンプレートを用いたマツチング処
理により、検査文字の不良部を差分領域から容易に抽出
することができる。また差分領域の面積を比較判定のパ
ラメータとしたことにより、判定基準が簡単に設定でき
るようになり判定閾値を容易に設定することができる。
これにより従来の検査プログラムのアルゴリズムを数十
パーセント以上短縮することができ、文字記号検査の高
速化がなし得る。
Furthermore, according to the present invention, image processing can be performed at high speed by converting the image of the inspection character into a binary image and processing it. Further, by the matching process using the template, the defective portion of the inspection character can be easily extracted from the difference area. Further, by using the area of the difference region as a parameter for comparison and determination, the determination standard can be easily set, and the determination threshold value can be easily set.
As a result, the algorithm of the conventional inspection program can be shortened by several tens of percent or more, and the speed of character symbol inspection can be increased.

【0033】なお上述の実施例においては、形状検査す
る対象を半導体装置の表面に印刷された文字とした場合
について述べたが、本発明はこれに限らず、画像表示さ
れる文字や、或いは数字、記号、図形等2値化画像処理
によつて形状が判別できるものであれば上述した場合と
同様の効果が得られる。
In the above embodiment, the case where the shape inspection target is a character printed on the surface of the semiconductor device has been described, but the present invention is not limited to this, and a character or a number to be displayed as an image is displayed. If the shape can be discriminated by binary image processing such as symbols and figures, the same effect as the above case can be obtained.

【0034】[0034]

【発明の効果】上述のように本発明によれば、複数の異
なる型のテンプレートを用いてにじみ、細み又は欠けの
不良を識別して検査することができるようになり、従来
に比して格段に検査精度を向上し得る。またテンプレー
トを用いて検査文字の線幅を考慮して不良判定すること
により、より人間の判断基準に近い不良判定がなし得
る。さらに、検査画像を2値画像に変換した後、テンプ
レートを用いて、差分領域を抽出して不良部を検出する
簡易な検査により文字記号検査の高速化がなし得る文字
記号検査装置及びその方法を実現できる。
As described above, according to the present invention, it becomes possible to identify and inspect defective defects such as bleeding, fineness or chipping by using a plurality of different template types, which is far superior to the prior art. The inspection accuracy can be improved. Further, by using the template to determine the defect in consideration of the line width of the inspection character, it is possible to make the defect determination closer to the human criterion. Further, a character and symbol inspection apparatus and method capable of speeding up the character and symbol inspection by a simple inspection of converting a test image into a binary image and then extracting a difference area by using a template to detect a defective portion. realizable.

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

【図1】本発明の一実施例による文字記号検査装置の全
体構成を示す略線図である。
FIG. 1 is a schematic diagram showing an overall configuration of a character / symbol inspection apparatus according to an embodiment of the present invention.

【図2】文字記号検査シーケンスを示すフローチヤート
である。
FIG. 2 is a flow chart showing a character / symbol check sequence.

【図3】マスタ文字登録及びテンプレートの作成手順を
示すフローチヤートである。
FIG. 3 is a flowchart showing a procedure for registering a master character and creating a template.

【図4】テンプレートの作成の説明に供する略線図であ
る。
FIG. 4 is a schematic diagram for explaining the creation of a template.

【図5】検査部の検査シーケンスを示すフローチヤート
である。
FIG. 5 is a flow chart showing an inspection sequence of an inspection unit.

【図6】にじみ判定シーケンスを示すフローチヤートで
ある。
FIG. 6 is a flow chart showing a bleeding determination sequence.

【図7】細み判定シーケンスを示すフローチヤートであ
る。
FIG. 7 is a flow chart showing a fineness determination sequence.

【図8】欠け判定シーケンスを示すフローチヤートであ
る。
FIG. 8 is a flow chart showing a defect determination sequence.

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

1……文字記号検査装置、2……画像処理ボード、3…
…シーケンサ、4……I/Oボード、5……CPUボー
ド、6……CCDカメラ、7……モニタ、8……マウ
ス、9……ハードデイスク、10……フロツピーデイス
ク。
1 ... Character / symbol inspection device, 2 ... Image processing board, 3 ...
... Sequencer, 4 ... I / O board, 5 ... CPU board, 6 ... CCD camera, 7 ... Monitor, 8 ... Mouse, 9 ... Hard disk, 10 ... Flotpie disk.

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】印刷又は表示された文字や記号でなる検査
対象を撮像して画像処理することにより得られる検査画
像を比較基準となる基準画像と比較することにより検査
する文字記号検査装置において、 撮像した多値画像でなる上記検査画像及び上記基準画像
を2値画像に変換する画像変換部及び、2値画像に変換
した上記基準画像より上記検査対象の画像領域を型取つ
た比較基準となる複数の異なる型のテンプレートを作成
するテンプレート作成部とを有する画像処理手段と、 上記検査画像と上記テンプレートとを重ね合わせて差分
領域を抽出し、判定閾値と比較することによつて良否判
定する比較判定手段とを具えることを特徴とする文字記
号検査装置。
1. A character / symbol inspection device for inspecting by comparing an inspection image obtained by picking up an image of an inspection object formed of printed or displayed characters or symbols and performing image processing with a reference image as a comparison reference, An image conversion unit that converts the inspection image and the reference image, which are captured multi-valued images, into a binary image, and a comparison reference in which the image area of the inspection target is modeled from the reference image converted into the binary image. An image processing unit having a template creating unit for creating a plurality of different template types, and a difference region is extracted by superimposing the inspection image and the template on each other, and is compared with a determination threshold value to make a pass / fail judgment comparison. A character and symbol inspection device comprising: a determination means.
【請求項2】上記テンプレートは、上記検査対象のにじ
みを抽出するための膨張テンプレート及び、上記検査対
象の細みを抽出するための収縮テンプレート及び、上記
検査対象の欠けを抽出するための標準テンプレートとを
有することを特徴とする請求項1に記載の文字記号検査
装置。
2. The template includes an expansion template for extracting a blur of the inspection target, a contraction template for extracting a fineness of the inspection target, and a standard template for extracting a chip of the inspection target. The character symbol inspection apparatus according to claim 1, further comprising:
【請求項3】印刷又は表示された文字や記号でなる検査
対象を撮像して画像処理することにより得られる検査画
像を比較基準となる基準画像と比較することにより検査
する文字記号検査方法において、 撮像した多値画像でなる上記検査画像及び上記基準画像
を2値画像に変換する画像変換ステツプと、 2値画像に変換した上記基準画像より上記検査対象の画
像領域を型取つた比較基準となる複数の異なる型のテン
プレートを作成するテンプレート作成ステツプと、 上記検査画像と上記テンプレートとを重ね合わせて差分
領域を抽出し、判定閾値と比較することによつて良否判
定する比較判定ステツプとを具えることを特徴とする文
字記号検査方法。
3. A character and symbol inspection method for inspecting by comparing an inspection image obtained by picking up an image of an inspection target made up of printed or displayed characters and symbols and performing image processing with a reference image serving as a comparison reference, An image conversion step for converting the inspection image and the reference image, which are captured multi-valued images, into a binary image, and a comparison reference in which the image area of the inspection target is modeled from the reference image converted into the binary image. It comprises a template creation step for creating a plurality of different template types, and a comparison judgment step for judging the quality by superposing the inspection image and the template to extract a difference area and comparing the difference area with a judgment threshold value. Character and symbol inspection method characterized by the following.
【請求項4】上記テンプレート作成ステツプは、 膨張テンプレートと上記検査画像との差分をとり、上記
膨張テンプレートの外側にでる上記検査対象のにじみを
差分領域として抽出するにじみ抽出ステツプと、 収縮テンプレートと上記検査画像との差分をとり、上記
収縮テンプレートの内側にでる上記検査対象の細みを差
分領域として抽出する細み抽出ステツプと、 標準テンプレートと上記検査画像との差分をとり、上記
標準テンプレートの内側に入る不良部を抽出し、当該不
良部に収縮処理を施した後、厚みのない部分を削除して
膨張処理を施して欠けを差分領域として抽出する欠け抽
出ステツプとを有することを特徴とする請求項3に記載
の文字記号検査方法。
4. The template creation step includes a blur extraction step for calculating a difference between an expansion template and the inspection image, and extracting a blur of the inspection target outside the expansion template as a difference area, a contraction template and the above The difference between the standard image and the inspection image is obtained by taking the difference between the standard image and the standard image and the fineness extraction step that extracts the fineness of the target to be inspected inside the contraction template as a difference area. A defect extraction step of extracting a defective portion, performing shrinkage processing on the defective portion, deleting a portion having no thickness, and performing expansion processing to extract the defective portion as a difference area. The character and symbol inspection method described in 3.
JP7257061A 1995-09-08 1995-09-08 Character symbol inspection device and method therefor Pending JPH0981683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7257061A JPH0981683A (en) 1995-09-08 1995-09-08 Character symbol inspection device and method therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7257061A JPH0981683A (en) 1995-09-08 1995-09-08 Character symbol inspection device and method therefor

Publications (1)

Publication Number Publication Date
JPH0981683A true JPH0981683A (en) 1997-03-28

Family

ID=17301202

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7257061A Pending JPH0981683A (en) 1995-09-08 1995-09-08 Character symbol inspection device and method therefor

Country Status (1)

Country Link
JP (1) JPH0981683A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013174954A (en) * 2012-02-23 2013-09-05 Fuji Xerox Co Ltd Information processing apparatus and program
CN116129435A (en) * 2023-04-14 2023-05-16 歌尔股份有限公司 Character defect detection method, device, equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013174954A (en) * 2012-02-23 2013-09-05 Fuji Xerox Co Ltd Information processing apparatus and program
CN116129435A (en) * 2023-04-14 2023-05-16 歌尔股份有限公司 Character defect detection method, device, equipment and storage medium
CN116129435B (en) * 2023-04-14 2023-08-08 歌尔股份有限公司 Character defect detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
JP7004145B2 (en) Defect inspection equipment, defect inspection methods, and their programs
US20080175469A1 (en) Pattern Inspection Apparatus and Semiconductor Inspection System
JP3572750B2 (en) Automatic evaluation method for concrete defects
JP3265595B2 (en) Image processing method and apparatus
JP2006170921A (en) Visual inspection method and its apparatus
WO2014103617A1 (en) Alignment device, defect inspection device, alignment method, and control program
JPH0981683A (en) Character symbol inspection device and method therefor
JP2768344B2 (en) Pattern inspection apparatus and inspection method thereof
JP2002207996A (en) Method and device for detecting pattern defect
JP2004132950A (en) Appearance inspection apparatus and appearance inspection method
JP4956077B2 (en) Defect inspection apparatus and defect inspection method
JPS6115343A (en) Method of optically inspecting and analyzing integrated circuit
TWI689869B (en) Image inspection method
JP4162386B2 (en) Inspection method for voids in solder bumps
JP3919505B2 (en) Pattern inspection apparatus and method
TWI273216B (en) Method for inspecting patterns
JP2000321038A (en) Method for detecting fault of pattern
JP6652593B2 (en) Inspection device, inspection method, and inspection program
JP2004085543A (en) System and method for visual inspection
JP3409695B2 (en) Surface defect inspection method
JPH07218343A (en) Visual inspection device for printed circuit board
JP2001343338A (en) Method and device for inspecting printed wiring board
JP2001021502A (en) Flaw inspecting method and system therefor
JP2003149165A (en) Defect examining method
JPH06161378A (en) Inspecting device for liquid crystal display device