Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0230065B2 - - Google Patents
[go: Go Back, main page]

JPH0230065B2 - - Google Patents

Info

Publication number
JPH0230065B2
JPH0230065B2 JP55121154A JP12115480A JPH0230065B2 JP H0230065 B2 JPH0230065 B2 JP H0230065B2 JP 55121154 A JP55121154 A JP 55121154A JP 12115480 A JP12115480 A JP 12115480A JP H0230065 B2 JPH0230065 B2 JP H0230065B2
Authority
JP
Japan
Prior art keywords
pattern
data
inspection
character
inspected
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.)
Expired - Lifetime
Application number
JP55121154A
Other languages
Japanese (ja)
Other versions
JPS5748163A (en
Inventor
Seiji Kashioka
Yoshihiro Shima
Riichi Yasue
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP55121154A priority Critical patent/JPS5748163A/en
Publication of JPS5748163A publication Critical patent/JPS5748163A/en
Publication of JPH0230065B2 publication Critical patent/JPH0230065B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 本発明はパターンの良否検査方法および装置に
関し、特に複数の文字や記号を所定の順序で配列
して構成される被検査パターンの自動的な良否検
査方法および検査装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a method and apparatus for inspecting the quality of a pattern, and more particularly to a method and apparatus for automatically inspecting a pattern to be inspected that is composed of a plurality of characters and symbols arranged in a predetermined order. It is something.

製品の種類やその製造記録を表示するため、製
品あるいはその付属物に特定の表示パターンを付
する行為は、例えば半導体製品をはじめとする各
種の電子部品の製造分野でよく行なわれている。
これらの表示パターンは、製品の表面あるいはそ
の付属物の表面に自動捺印装置により印されるの
が普通であり、その場合、捺印もれ、にじみ、消
え、2重印刷、インクの汚れ、傾き、等の不良を
生ずることがある。従つてその表示内容が製品の
性能、用途の限定などの点で特に重要な意味をも
つ場合には、自動捺印装置を経た全ての製品に対
して表示パターンの良否検査を施こす必要があ
る。現在これらのパターンの良否検査は肉眼によ
り行なわれており、多量な検査対象に対する単調
な検査作業から人手を省くため、その自動化が強
く望まれている。
BACKGROUND OF THE INVENTION The act of attaching a specific display pattern to a product or its accessories in order to indicate the type of product or its manufacturing record is often practiced in the field of manufacturing various electronic components such as semiconductor products.
These display patterns are usually stamped on the surface of the product or its accessories by an automatic marking device, and in that case, there are no problems such as leakage, bleeding, fading, double printing, ink stains, skewing, etc. This may result in defects such as Therefore, if the displayed content has a particularly important meaning in terms of product performance, limited use, etc., it is necessary to test the quality of the display pattern on all products that have passed through the automatic marking device. Currently, inspection of the quality of these patterns is performed with the naked eye, and there is a strong desire for automation in order to save manpower from the monotonous inspection work for a large number of inspection objects.

こうしたパターンの自動的な良否検査のために
提案された従来の方式の1つは、被検査パターン
に許容される最大幅寸法と最小幅寸法でそれぞれ
ネガテイブな標準パターンを用意しておき、被検
査パターンの像をこれらの標準パターンを重ね合
せ、被検査パターンが許容誤差内にあるか否かを
判定している(特開昭49−29533号)。
One of the conventional methods proposed for automatic pass/fail inspection of such patterns is to prepare negative standard patterns with the maximum and minimum width dimensions allowable for the pattern to be inspected. The image of the pattern is superimposed on these standard patterns to determine whether the pattern to be inspected is within tolerance (Japanese Patent Laid-Open No. 49-29533).

然るに上記従来方式によれば、表示パターンを
構成する文字あるいは記号の線幅の全体的な過不
足の存在と、或る文字あるいは記号部分に集中し
て生じた重大な欠陥の存在との差異を区別して検
出することが困難であり、後者の欠陥を見逃さな
いようにするためには、被検査パターンが標準パ
ターンとほぼ完全に一致する場合のみを良とする
厳しい判定基準を設定する必要がある。このた
め、肉眼では正しく判読できる良パターンでも自
動検査では不良と判定する確率が高くなるという
問題点を伴なう。また、上記従来方式によれば、
被検査パターンの全体像を標準パターンと比較し
て良否を判定しているため、検査対象の種類に応
じて固有の標準パターンを用意する必要があり、
その作成と部分的修正に手間どるという問題があ
る。
However, according to the above-mentioned conventional method, the difference between the existence of an overall excess or deficiency in the line width of characters or symbols constituting a display pattern and the existence of serious defects concentrated in a certain character or symbol part can be detected. It is difficult to distinguish and detect defects, and in order to avoid overlooking the latter defects, it is necessary to set strict judgment criteria that only accepts cases where the inspected pattern almost completely matches the standard pattern. . For this reason, a problem arises in that even a good pattern that can be correctly read with the naked eye has a high probability of being judged as defective by automatic inspection. Furthermore, according to the above conventional method,
Since the overall image of the inspected pattern is compared with the standard pattern to determine pass/fail, it is necessary to prepare a unique standard pattern depending on the type of inspection target.
There is a problem in that it takes time to create and partially modify.

本発明は、文字や記号により構成される被検査
パターンを肉眼に近い判定基準で自動的に良否検
査でき、且つ検査対象の種類に応じた標準パター
ンの変更が容易にできる新規なパターン良否自動
判定方法および装置を提供することを目的とす
る。
The present invention provides a novel automatic pattern pass/fail judgment that can automatically pass/fail test patterns made up of characters and symbols using judgment criteria close to those of the naked eye, and that can easily change the standard pattern according to the type of inspection target. An object of the present invention is to provide a method and apparatus.

上記目的を達成するために、本発明では、工業
的あるいは商業的に特定された分野で用いられる
表示パターンの印形が1組の活字を原形としてお
り、文字単位で観ると同一文字は同一の形状をし
ていることに着目し、文字あるいは記号(以下、
単に文字記号と言う)毎に予めよく整備された検
査規準を設定し、被検査パターンを個々の文字記
号単位で上記検査規準と照合することにより精度
よく良否判定することを原理とする。
In order to achieve the above object, in the present invention, a display pattern stamp used in a specific industrial or commercial field is based on a set of printed characters, and when viewed character by character, the same characters are the same. Focusing on the shape, letters or symbols (hereinafter referred to as
The principle is to set a well-prepared inspection standard for each character (simply referred to as a character symbol), and to accurately determine pass/fail by comparing the pattern to be inspected with the above inspection standard for each character symbol.

本発明によれば、被検査パターンと照合される
標準パターンに相当するデータとして、字種毎に
用意された上記検査規準を示すデータの他に、上
記被検査パターン中の文字配列を示すデータを用
いる。文字配列データは、例えば文字記号の種類
を示すデータをパターン中での文字記号の配列順
序に従つて記憶させた字種テーブル、および、各
文字記号の映像上での存在位置を示すデータを記
憶する位置テーブルの形で用意する。パターンの
検査は、先ず被検査パターンの映像を撮像装置を
介して画像メモリに取り込み、最初の検査文字に
ついての字種データと位置データとをそれぞれ上
記字種テーブルおよび位置テーブルから読み出
す。画像メモリからは、上記位置データで示され
る位置座標を基準点として、上記字種データに対
応する検査規準データの指定する部分的な映像デ
ータを読み出し、検査文字パターン中の欠陥の有
無を判定する。位置テーブルで指定された映像上
の全ての基準位置に対して、順次に字種テーブル
で対応づけられる検査規準データに従つて検査を
施こすことにより、被検査パターン全体について
の欠陥有無を判定できる。
According to the present invention, as data corresponding to the standard pattern to be compared with the pattern to be inspected, in addition to the data indicating the above-mentioned inspection criteria prepared for each character type, data indicating the character arrangement in the pattern to be inspected is used. use Character arrangement data includes, for example, a character type table that stores data indicating the types of character symbols according to the order in which the character symbols are arranged in a pattern, and data that indicates the location of each character symbol on the video. Prepare in the form of a position table. To inspect a pattern, first, an image of the pattern to be inspected is captured into an image memory via an imaging device, and character type data and position data for the first character to be examined are read from the character type table and position table, respectively. From the image memory, partial video data specified by the inspection standard data corresponding to the character type data is read out using the position coordinates indicated by the position data as a reference point, and the presence or absence of defects in the inspection character pattern is determined. . By sequentially inspecting all the reference positions on the image specified in the position table according to the inspection standard data associated with the character type table, it is possible to determine the presence or absence of defects in the entire pattern to be inspected. .

本発明によれば、複数種類の被検査パターンに
対して文字毎の検査規準データを共通に用いるよ
うにしたため、パターンの変更に対しては単に文
字の配列を指定する位置テーブル字種テーブルを
変更するだけでよい。従つて、本発明に従つて構
成された自動検査装置は、標準パターンに相当す
るデータの変更が極めて容易であり、新たな被検
査パターンに迅速に対処できるものである。
According to the present invention, since inspection standard data for each character is commonly used for multiple types of patterns to be inspected, when a pattern is changed, the position table and character type table that specify the arrangement of characters are simply changed. Just do it. Therefore, the automatic inspection apparatus configured according to the present invention can extremely easily change the data corresponding to the standard pattern, and can quickly handle new patterns to be inspected.

以下、本発明の1実施例を図面を参照して詳細
に説明する。
Hereinafter, one embodiment of the present invention will be described in detail with reference to the drawings.

第1図はある製品に印刷をし、その印刷の結果
を検査し良否によつて選別するシステムの全体構
成を示したものである。製品供給機1から供給さ
れた製品Aは捺印機2で表示パターンが印刷され
た後、個別送り装置3で1個ずつTVカメラ4の
視野に供給される。検査装置5は送り装置3の出
力70に応答してTVカメラ4の映像信号71を
入力し、製品表面に印刷されたパターンの検査を
行なう。検査装置5はパターンの良否に従つて制
御信号72を出力し、仕分け装置6の方向を決め
た後、個別送り装置3に送り指令73を与える。
これにより次の製品がTVカメラの視野に供給さ
れるとともに、検査済みの製品は良品受箱8aあ
るいは不良品受箱8bに自動的に振り分けられ
る。
FIG. 1 shows the overall configuration of a system that prints on a certain product, inspects the printing results, and sorts them according to their quality. After a display pattern is printed on the products A supplied from the product supply machine 1 by the stamping machine 2, the products A are supplied one by one to the field of view of the TV camera 4 by the individual feeding device 3. The inspection device 5 inputs the video signal 71 of the TV camera 4 in response to the output 70 of the feeding device 3, and inspects the pattern printed on the surface of the product. The inspection device 5 outputs a control signal 72 according to the quality of the pattern, determines the direction of the sorting device 6, and then gives a feed command 73 to the individual feed device 3.
As a result, the next product is supplied to the field of view of the TV camera, and the inspected products are automatically sorted to the non-defective product receiving box 8a or the defective product receiving box 8b.

検査装置5は、操作卓8と上述した個別送り装
置3あるいは仕分け装置6にそれぞれインタフエ
イス回路を介して結合させた、例えばマイクロコ
ンピユータあるいはミニコンピユータの如きプロ
グラム動作する汎用のデータ処理装置(以下、単
に計算機と言う)10と、この計算機10にデー
タバス20を介して接続されたメモリ30および
映像データ処理回路40とからなつている。計算
機10はデータメモリ11を内蔵し、このメモリ
11には、被検査パターン内の文字あるいは記号
の配列関係を示すための字種データ記憶テーブル
11aと位置データ記憶テーブル11bとが割り
当てられる。メモリ30は検査規準データを記憶
するためのものである。この例では検査規準デー
タを映像データ処理回路40に高速に読み出すた
めに、メモリ30を計算機10の外部に専用回路
として設けているが、高速画像処理を要しないシ
ステムでは上記メモリ30を計算機10の内部メ
モリ11で代用してもよい。映像データ処理回路
40はTVカメラ4に結合され、被検査パターン
を映し出した映像データを1時的に保持するため
のメモリ42を内蔵する。(映像データ処理回路
40の詳細な構造については後で説明する。) 第2図、第3図はそれぞれ字種テーブル11a
と位置テーブル11bの基本的な構成例を示す。
字種テーブル11aは、製品の表面に表示された
被検査パターンを形成するi個の文字記号の種類
を示すデータK1〜Kiを配列順に記憶し、最終の
文字データKiの次に文字配列の終りを示す特別の
データ(end)を記憶する。一方、位置テーブル
11bは字種テーブル内の各文字データに対応し
て記憶エリアを有し、被検査パターンの個々の文
字の中心位置座標(X1、Y1)〜(Xi、Yi)を記
憶している。
The inspection device 5 includes a program-operated general-purpose data processing device (hereinafter referred to as "microcomputer" or "minicomputer"), which is connected to the operation console 8 and the above-mentioned individual feeding device 3 or sorting device 6 through interface circuits, respectively. 10 (simply referred to as a computer), a memory 30 and a video data processing circuit 40 connected to the computer 10 via a data bus 20. The computer 10 has a built-in data memory 11, and this memory 11 is allocated with a character type data storage table 11a and a position data storage table 11b for indicating the arrangement relationship of characters or symbols in a pattern to be inspected. Memory 30 is for storing inspection standard data. In this example, the memory 30 is provided as a dedicated circuit outside the computer 10 in order to read the inspection standard data to the video data processing circuit 40 at high speed, but in a system that does not require high-speed image processing, the memory 30 is The internal memory 11 may be used instead. The video data processing circuit 40 is coupled to the TV camera 4 and includes a built-in memory 42 for temporarily holding video data showing the pattern to be inspected. (The detailed structure of the video data processing circuit 40 will be explained later.) FIGS. 2 and 3 each show a character type table 11a.
An example of the basic configuration of the position table 11b is shown below.
The character type table 11a stores data K 1 to K i indicating the types of i character symbols forming the pattern to be inspected displayed on the surface of the product in the order of arrangement, and stores the characters next to the final character data K i . Stores special data (end) indicating the end of the array. On the other hand, the position table 11b has a storage area corresponding to each character data in the character type table, and has center position coordinates (X 1 , Y 1 ) to (X i , Y i ) of each character of the pattern to be inspected. I remember.

第4図はメモリ30に割り付ける検査規準デー
タ記憶エリア30−1〜30−nを示す。データ
記憶エリアは文字あいは記号の種類に対応した数
だけ用意され、各エリアには例えば第5図に示す
1連のデータで記述された文字毎の検査規準が記
憶される。
FIG. 4 shows inspection standard data storage areas 30-1 to 30-n allocated to the memory 30. A number of data storage areas are prepared corresponding to the types of characters or symbols, and each area stores an inspection standard for each character described by a series of data as shown in FIG. 5, for example.

第5図に示す例では、検査規準データは2つの
データストリング、と当該文字についてのデ
ータの終了を示す記号「9」とから成つている。
これらのデータストリング、に記述される検
査規準の意味を第6図を参照して説明しよう。
In the example shown in FIG. 5, the inspection criterion data consists of two data strings and a symbol "9" indicating the end of data for the character.
The meaning of the inspection criteria described in these data strings will be explained with reference to FIG.

第6図は、1例として白地に黒で印刷された英
文字「C」の検査原理を図示したもので、(X0
Y0)は文字の中心位置座標、黒丸Q1〜Q21は文字
「C」の線芯に沿つて離散的に設定された検査点、
白丸P1〜P38は文字「C」の周辺に設定された検
査点を示す。TVカメラに入力された被検査パタ
ーン中の文字「C」の中心を上記(X0、Y0)に
重ね合せた場合、もし被検査文字「C」が正確か
つ鮮明に印刷されたものであれば、検査点Q1
Q21に相当する位置の映像データは全て暗レベ
ル、検査点P1〜P38に相当する位置の映像データ
は全て明レベルにあるはずである。しかし、被検
査文字「C」の線芯の一部が途切れていれば、
Q1〜Q21のいずれかの検査点で映像データが明レ
ベルとなる。逆に被検査文字の線が異常に太くな
つたり、線芯の周囲にインクがはみ出していれ
ば、検査点P1〜P38での映像データが暗レベルを
示すことになる。従つて、入力映像中の黒丸Q1
〜Q21に対応する部分の映像を検査して明レベル
となつている箇所を計数し、白丸P1〜P38に対応
する部分を検査して暗レベルとなつている箇所を
計数し、この2つの計数値をそれぞれ文字「C」
に対して予め設定されているしきい値と比較する
ようにすれば、どちらかの値がしきい値を越えた
とき不良文字と判定できることになる。
FIG. 6 illustrates, as an example, the inspection principle for the English letter "C" printed in black on a white background.
Y 0 ) is the center position coordinate of the character, black circles Q 1 to Q 21 are inspection points set discretely along the core of the character “C”,
White circles P1 to P38 indicate inspection points set around the letter "C". If the center of the letter “C” in the pattern to be inspected inputted into the TV camera is superimposed on the above (X 0 , Y 0 ), even if the letter “C” to be inspected is printed accurately and clearly. For example, inspection point Q 1 ~
All the video data at the position corresponding to Q 21 should be at the dark level, and all the video data at the positions corresponding to the inspection points P 1 to P 38 should be at the bright level. However, if part of the core of the character to be inspected "C" is broken,
The video data becomes a bright level at any of the inspection points Q 1 to Q 21 . Conversely, if the line of the character to be inspected becomes abnormally thick or if ink protrudes around the line core, the video data at inspection points P 1 to P 38 will show a dark level. Therefore, the black circle Q 1 in the input image
~ Inspect the part of the video corresponding to Q 21 and count the parts that are at a bright level, examine the parts corresponding to white circles P 1 to P 38 and count the parts that are at a dark level, and then Letter “C” for each of the two counts.
By comparing the characters with a preset threshold value, if either value exceeds the threshold value, it can be determined that the character is a defective character.

第5図に示した検査規準データはこの考え方を
採用したものであり、各ストリング、の最初
のデータは明暗区分(例えば“0”は黒、“1”
は白)、2番目のデータn1、n2はその後に続く検
査点の数、3番目以降には検査点の座標を示すデ
ータ(ΔX11、ΔY11)〜(ΔX1o1、ΔY1o1)、
(ΔX21、ΔY21)〜(ΔX2o2、ΔY2o2)、各ストリ
ングの最後には許容される明暗反転箇所のしきい
値数を示している。この場合、各ストリングの最
初の座標点(ΔX11、ΔY11)、(ΔX21、ΔY21)を
各文字の中心座標(X0、Y0)からの相対値で示
し、それ以降の座標点を先行する座標からの相対
値で表示するようにすれば、映像中の文字の実際
の位置に関係なく且つ短かいデータで全ての検査
点を表示することができる。パターンの検査精度
は上述した検査規準によつて変わるので、検査規
準データは文字毎に十分吟味されたものを用意す
ることが必要である。1たんメモリ30に記憶さ
せた検査規準データは通常変更することはないの
で、メモリ30には読み出し専用記憶素子を用い
てもよい。適用製品が異なつたりして文字のデザ
インが変更になつたときには交換すればよい。
The inspection standard data shown in FIG.
is white), the second data n 1 and n 2 are the number of inspection points that follow, and the third and subsequent data are data indicating the coordinates of the inspection points (ΔX 11 , ΔY 11 ) to (ΔX 1o1 , ΔY 1o1 ),
(ΔX 21 , ΔY 21 ) to (ΔX 2o2 , ΔY 2o2 ), and at the end of each string, the threshold number of permissible brightness/dark inversion points is shown. In this case, the first coordinate points (ΔX 11 , ΔY 11 ), (ΔX 21 , ΔY 21 ) of each string are expressed as relative values from the center coordinates (X 0 , Y 0 ) of each character, and the subsequent coordinate points By displaying the value relative to the preceding coordinate, all inspection points can be displayed with short data regardless of the actual position of the character in the video. Since pattern inspection accuracy varies depending on the above-mentioned inspection criteria, it is necessary to prepare inspection criteria data that has been carefully examined for each character. Since the inspection standard data once stored in the memory 30 is usually not changed, the memory 30 may be a read-only storage element. If the design of the letters changes due to a different product being used, you can simply replace it.

尚、各文字の中心座標(X0、Y0)は位置テー
ブル11bから与えられ、各検査規準の格納エリ
アのアドレスA1〜A7は字種テーブル11a内
のデータK1〜Kiで指定される。データK1〜Ki
アドレスA1〜Anを直接示す値としてもよいが、
検査規準データの記憶エリア30−1〜30−n
が同一のスペース(Nワード)を有する場合、字
種データK1〜Kiを文字の種類に対応した1連の
番号とし、アドレスA1〜Anを上記番号に一定
値Nを掛けた値として求めるようにしてもよい。
また、上記記憶エリア30−1,〜30−nの長
さが不均一である場合、字種データを一連番号と
し、別に用意したアドレス変換テーブルにおいて
記憶エリアのアドレスA1〜Anを求めるように
してもよい。
The center coordinates (X 0 , Y 0 ) of each character are given from the position table 11b, and the addresses A1 to A7 of the storage area for each inspection standard are specified by data K 1 to K i in the character type table 11a. . The data K 1 to K i may be values that directly indicate the addresses A1 to An, but
Inspection standard data storage areas 30-1 to 30-n
have the same space (N words), the character type data K 1 to K i are a series of numbers corresponding to the character types, and the addresses A1 to An are obtained by multiplying the above numbers by a constant value N. You can do it like this.
In addition, if the lengths of the storage areas 30-1, ~30-n are uneven, the character type data is used as a serial number, and the addresses A1 ~ An of the storage areas are determined using a separately prepared address conversion table. Good too.

第7図は検査装置5、特に映像データ処理回路
40の更に具体的な回路構成の1例を示す図であ
る。図において、41はTVカメラ4からの映像
信号71を2値化するための回路、42はデイジ
タル化された映像データを記憶するための映像メ
モリ、43は映像データ処理回路の動作シーケン
スを制御するコントローラ、44は明暗区分(白
黒の別)を記憶するためのレジスタ、45は検査
点カウンタ、46はアドレス演算回路、47は明
暗が反転している点の数(欠陥のある検査点の
数)をカウントするためのカウンタ、48は検査
結果を示すフラツグ用のレジスタ、49は内部デ
ータバスを示す。計算機10はこれらの回路に対
し、データバス20を介してパラメータおよび起
動信号の供給を行ない、レジスタ48からの演算
結果の読み取りを行なう。また、コントローラ4
3は制御信号90a〜90nを出力し、これによ
つて映像データ処理回路の各要素の動作を制御す
る。
FIG. 7 is a diagram showing an example of a more specific circuit configuration of the inspection device 5, particularly the video data processing circuit 40. In the figure, 41 is a circuit for binarizing the video signal 71 from the TV camera 4, 42 is a video memory for storing digitized video data, and 43 is a circuit for controlling the operation sequence of the video data processing circuit. Controller, 44 is a register for storing bright/dark divisions (black and white), 45 is an inspection point counter, 46 is an address calculation circuit, 47 is the number of points where the brightness is reversed (the number of defective inspection points) 48 is a register for a flag indicating the test result, and 49 is an internal data bus. The computer 10 supplies parameters and activation signals to these circuits via the data bus 20, and reads operation results from the register 48. Also, controller 4
3 outputs control signals 90a to 90n, thereby controlling the operation of each element of the video data processing circuit.

第8図は計算機10およびコントローラ43の
制御のもとに遂行される検査装置5の一連の動作
フローを示す。計算機10は個別送り装置3から
の送り完了信号70を監視しており(ルーチン
100)、送り完了信号70が入力されると、2値化
回路41に映像データ取り込みを指令する信号8
1を出力する(ルーチン101)。この後、計算機1
0は信号82によりフラツグ用のレジスタ48を
クリアすると共にテーブル11a,11bをアド
レスするパラメータiを初期値(1)に設定し(ルー
チン102)、字種テーブル11aのi番目のデータ
を読み、これをアドレスデータ83として検査規
準メモリ30のアドレスカウンタに送り込む(ル
ーチン103)。計算機10は更に位置テーブル11
bのi番目のデータ(Xi、Yi)を読み、これを文
字の中心座標データ84としてアドレス演算回路
46に送り(ルーチン104)、コントローラ43に
対して起動信号85を与える。ルーチン105に相
当する動作は、コントローラ23の制御のもとに
行なわれるため、起動信号85を出力した後、計
算機10はコントローラ23からの映像データ処
理終了信号85′を持つことになる。
FIG. 8 shows a series of operational flows of the inspection device 5 performed under the control of the computer 10 and the controller 43. The computer 10 monitors the feed completion signal 70 from the individual feeder 3 (routine
100), when the feed completion signal 70 is input, the signal 8 instructs the binarization circuit 41 to capture video data.
Outputs 1 (routine 101). After this, calculator 1
0 clears the flag register 48 by the signal 82, sets the parameter i that addresses tables 11a and 11b to the initial value (1) (routine 102), reads the i-th data of the character type table 11a, and is sent to the address counter of the inspection standard memory 30 as address data 83 (routine 103). The calculator 10 further includes a position table 11
The i-th data (X i , Y i ) of b is read and sent to the address calculation circuit 46 as character center coordinate data 84 (routine 104), and an activation signal 85 is given to the controller 43. Since the operation corresponding to the routine 105 is performed under the control of the controller 23, after outputting the activation signal 85, the computer 10 receives the video data processing end signal 85' from the controller 23.

コントローラ43は、制御信号90aによりメ
モリ30を読み出し動作させると共に、読み出し
動作の都度、上記メモリに内蔵されるアドレスカ
ウンタを1づつ進める。メモリ30から読み出さ
れる最初のデータは、第5図で説明したように、
検査点の正常のデータが白か黒かを示す明暗区分
データである。コントローラ43はこの明暗区分
データをレジスタ44にセツトする。メモリ30
から次に読み出されるデータは検査点の数を示す
値であり、このデータはカウンタ45にセツトさ
れる。この後、メモリ30から次々と読み出され
るデータは増分表示で示された座標データであ
る。コントローラはこれらの座標データを順次に
アドレス演算回路46に読み出し、その都度、カ
ウンタ45を1づつ減算する。アドレス演算回路
は読み出されたデータを既に記憶している座標デ
ータに加え、検査すべき映像空間の位置座標を
次々と算出する。この位置座標は映像メモリ42
にアドレス信号91として与えられ、これによつ
て映像メモリからは検査点の映像データ92が出
力される。カウンタ47は明暗区分データの読み
出し時点でクリアされており、映像メモり42か
らの信号入力の都度、これをレジスタ44の出力
と比較し、不一致の場合にその内容を1づつ進め
る。コントローラ43は、カウンタ45の内容が
零になるまでアドレス演算回路46とカウンタ4
7を動作させる。カウンタ45の内容が零になつ
たとき、メモリ30から次に読み出されるデータ
は許容できる欠陥点数のしきい値を示している。
この時、コントローラ43はフラツグ用のレジス
タ48を動作させ、カウンタ47の値とメモリ3
0からの読み出しデータとを比較して、もしカウ
ンタ47の値が許容しきい値を越えていれば、フ
ラツグ用のレジスタ48に欠陥有を示す不良フラ
ツグを立てる。コントローラ43は、1つのデー
タストリングの読み出し後も引続いてメモリ30
からデータを読み、終了を示すデータ(第5図で
は符号9)が現われるまで上述の動作制御を繰り
返す。これによつて、メモリ30内のデータスト
リング、に沿つたパターンの検査が行なわ
れ、終了データが読み出されたとき、コントロー
ラ43はデータバス20を介して計算機10に映
像データ処理終了信号85′を与える。
The controller 43 causes the memory 30 to perform a read operation using a control signal 90a, and increments an address counter built in the memory by one each time the read operation is performed. The first data read from the memory 30 is as explained in FIG.
This is light/dark classification data that indicates whether the normal data at the inspection point is white or black. The controller 43 sets this light/dark classification data in the register 44. memory 30
The next data read out is a value indicating the number of inspection points, and this data is set in the counter 45. Thereafter, the data successively read from the memory 30 is the coordinate data indicated in the incremental display. The controller sequentially reads these coordinate data to the address arithmetic circuit 46 and decrements the counter 45 by 1 each time. The address calculation circuit adds the read data to already stored coordinate data and successively calculates position coordinates in the video space to be inspected. These position coordinates are stored in the video memory 42.
is given as an address signal 91 to output the image data 92 of the inspection point from the image memory. The counter 47 is cleared at the time of reading the light/dark classification data, and each time a signal is input from the video memory 42, it is compared with the output of the register 44, and if they do not match, the contents are incremented by one. The controller 43 operates the address calculation circuit 46 and the counter 4 until the contents of the counter 45 become zero.
Operate 7. When the contents of counter 45 reach zero, the next data read from memory 30 represents the threshold number of acceptable defect points.
At this time, the controller 43 operates the flag register 48 and records the value of the counter 47 and the memory 3.
The data read from 0 is compared, and if the value of the counter 47 exceeds the permissible threshold, a defective flag indicating the presence of a defect is set in the flag register 48. The controller 43 continues to read the memory 30 after reading one data string.
The above-mentioned operation control is repeated until data indicating the end (indicated by reference numeral 9 in FIG. 5) appears. As a result, the pattern along the data string in the memory 30 is inspected, and when the end data is read out, the controller 43 sends a video data processing end signal 85' to the computer 10 via the data bus 20. give.

計算機10は、上記映像データ処理終了信号8
5′が入力されると、フラツグレジスタ48の内
容82′を読み取り(ルーチン106)、不良フラツ
グが立つていれば仕分機を不良品側に動作させる
信号72を出力(ルーチン110)し、そうでなけ
ればパラメータiを1だけ増やし(ルーチン
107)、更新されたパラメータで字種テーブル11
aのi番目のデータを読み取つてこのデータが終
了符号か否かを判定する(ルーチン108)。もし上
記データが終了符号でなければ、動作シーケンス
はルーチン103に戻り、次の文字について上述し
たと同様の良否検査が行なわれる。字種テーブル
の読み出しデータが終了符号であれば、被検査パ
ターンを構成する全ての文字、記号についての検
査が終了し、しかも不良フラツグがなかつたこと
を意味する。従つて、計算機は仕分機6を良品側
に動作させるよう制御信号72を出力し(ルーチ
ン109)、個別送り装置3に製品を1個送り出すよ
う指令73を出力する(ルーチン111)。仕分機が
不良品側に動作した(ルーチン110)後も上記ル
ーチン111が実行され、その後、計算機は最初の
動作シーケンス(ルーチン100)に戻つて、送り
装置からの送り完了信号70を期待する。
The computer 10 receives the video data processing end signal 8.
When 5' is input, the contents 82' of the flag register 48 are read (routine 106), and if the defective flag is set, a signal 72 is output to operate the sorting machine toward defective products (routine 110). Otherwise, increase the parameter i by 1 (routine
107), character type table 11 with updated parameters
The i-th data of a is read and it is determined whether this data is an end code (routine 108). If the data is not a termination code, the operating sequence returns to routine 103 and the same pass/fail test as described above is performed for the next character. If the read data from the character type table is a termination code, it means that the inspection of all the characters and symbols constituting the pattern to be inspected has been completed and there are no defective flags. Therefore, the computer outputs a control signal 72 to operate the sorting machine 6 toward non-defective products (routine 109), and outputs a command 73 to the individual feeder 3 to send out one product (routine 111). The above routine 111 is executed even after the sorting machine operates on the defective product side (routine 110), and then the computer returns to the initial operation sequence (routine 100) and expects a feeding completion signal 70 from the feeding device.

尚、上記した制御手順では、TVカメラが検査
すべき表示パターンを位置ずれなく撮像すること
を前提としている。しかしながら、実際のシステ
ムでは、捺印機における捺印パターンの位置ず
れ、あるいは個別送り装置の性能上の限界から、
TVカメラに入力される表示パターン位置に或る
程度のばらつきを許容せざるを得ない。
Note that the above control procedure is based on the premise that the TV camera images the display pattern to be inspected without positional deviation. However, in actual systems, due to misalignment of the stamping pattern in the stamping machine or performance limitations of the individual feeding device,
It is necessary to allow some degree of variation in the position of the display pattern input to the TV camera.

このような撮像パターンの位置のばらつきに対
しては、本発明者等が既に特願昭55−54165号で
提案したように、映像上でパターンの位置を少し
づつずらしながらパターンを照合する手法を採用
すればよい。
In order to deal with such variations in the position of the imaged pattern, a method of matching the pattern while gradually shifting the position of the pattern on the video, as proposed by the present inventors in Japanese Patent Application No. 55-54165, has been proposed. Just adopt it.

第13図は、第8図の制御手順に上記手法をと
り入れたものであり、ルーチン104〜106がルーチ
ン112〜117に置き換えられている。第13図の制
御手順では、ルーチン112で位置テーブルのi番
目の位置データ(Xi、Yi)を読んだ後、ルーチン
113において、座標Xi、YiをそれぞれΔX、ΔYず
つ変化させ、これを検査処理部に送り込む。
ΔX、ΔYは入力パターンの位置ずれの許容範囲
(±f)内で中心座標(Xi、Yi)をずらすための
値である。ルーチン114でフラツグ用レジスタ4
8をクリアした後、映像データ処理回路40が起
動され、これによつて変更後の座標値X、Yを中
心値としてルーチン115が実行される。このルー
チン115は第8図のルーチン105と同じもので、こ
のルーチンによつて文字パターンに欠陥があれば
フラツグレジスタ48に不良フラツグ“1”がた
てられる。計算機10は映像データ処理終了信号
85′を受けると、フラツグ用レジスタ48の内
容を読み取り(ルーチン116)、不良ならばルーチ
ン117に進んでΔX、ΔYが終了値か否かをチエツ
クする。もし終了値ならば、許容された位置ずれ
範囲の全ての位置で正常な文字パターンが見つか
らなかつたことを意味するから、ルーチン110に
進んで仕分機を不良側にセツトする。ルーチン
117でΔX、ΔYが終了値でなければ、許容範囲内
の他の位置を中心座標として再度検査を試みるた
めに、ルーチン113に戻る。判定ルーチン116で不
良フラツグがたつていなければ、上述した位置ず
れ許容範囲内のどこかに正常文字が検出されたこ
かを意味する。従つてプログラムはルーチン107
に進み、以後、第8図と同様の手順で制御を進行
させる。
FIG. 13 shows the control procedure of FIG. 8 incorporating the above method, in which routines 104-106 are replaced with routines 112-117. In the control procedure shown in FIG. 13, after reading the i-th position data (X i , Y i ) of the position table in routine 112, the routine
In step 113, the coordinates X i and Y i are changed by ΔX and ΔY, respectively, and sent to the inspection processing section.
ΔX and ΔY are values for shifting the center coordinates (X i , Y i ) within the tolerance range (±f) of positional shift of the input pattern. Flag register 4 in routine 114
After clearing 8, the video data processing circuit 40 is activated, thereby executing the routine 115 using the changed coordinate values X and Y as center values. This routine 115 is the same as the routine 105 in FIG. 8, and if there is a defect in the character pattern, a defective flag "1" is set in the flag register 48 by this routine. When the computer 10 receives the video data processing end signal 85', it reads the contents of the flag register 48 (routine 116), and if it is defective, it proceeds to routine 117 and checks whether .DELTA.X and .DELTA.Y are the end values. If it is the end value, it means that normal character patterns were not found at all positions within the allowable positional deviation range, so the routine proceeds to routine 110 and the sorting machine is set to the defective side. routine
If ΔX and ΔY are not the end values in step 117, the process returns to routine 113 to try testing again using another position within the allowable range as the center coordinate. If the defective flag is not raised in the determination routine 116, it means that a normal character has been detected somewhere within the above-mentioned positional deviation tolerance range. Therefore the program is routine 107
After that, the control proceeds in the same manner as in FIG.

以上、検査基準データと文字配列データとを用
いて、文字記号からなるパターンを検査する本発
明の検査方法の実施例について説明した。実際の
応用においては、パターンの変更、すなわち文字
の組合せの変更が生じたとき、これに対応する文
字配列データをいかに容易に作成するかが問題と
なる。
The embodiments of the inspection method of the present invention for inspecting patterns made of character symbols using inspection reference data and character arrangement data have been described above. In actual applications, when a pattern is changed, that is, a combination of characters is changed, the problem is how to easily create character arrangement data corresponding to this change.

文字配列データは、一般に検査規準データより
データ量が小さいため、被検査パターンの種類が
限定されている場合には、例えば全てのパターン
の配列データを予め計算機10のメモリに記憶し
ておき、操作盤8の指定により必要なものを選択
する方法をとれる。この場合、文字配列データを
計算機10に付属する二次メモリに記憶してお
き、必要なものを主メモリに読出して使用するよ
うにしてもよい。文字配列データのメモリへの格
納は、操作卓8のキイーボードあるいはテープリ
ーダなどの入力装置を利用できる。
Since the amount of character array data is generally smaller than the inspection standard data, if the types of patterns to be inspected are limited, for example, the array data of all patterns may be stored in advance in the memory of the computer 10 and then manipulated. You can choose what you need by specifying on board 8. In this case, the character arrangement data may be stored in a secondary memory attached to the computer 10, and necessary data may be read out to the main memory for use. The character array data can be stored in the memory using an input device such as a keyboard on the console 8 or a tape reader.

本発明の実施例に必要な字種データは、予め用
意される検査基準データと対応づけて、事前に操
作者に知らせることができ、一方、位置データ
は、パターンの設計値、または、被検査パターン
の標準サンプルの写真から読取つて作成すること
ができる。TVカメラの映像モニタに、電子的に
位置を制御できる十字線を重ねて表示し、作業者
が各文字の中心に合わせて、所定のボタン操作を
行なうことにより、自動的に位置を読取り、位置
データ記憶部に書込むようにしてもよい。尚、多
くの応用においては、位置データが共用でき、字
種データだけ入れかえれば済む場合もある。この
ような場合には、全ての種類の位置データを予め
用意しておき、この中から被検査パターンの文字
に対応させて必要なデータを選択すればよい。
The character type data necessary for the embodiment of the present invention can be associated with inspection standard data prepared in advance and notified to the operator in advance, while the position data can be the design value of the pattern or It can be created by reading a photo of a standard pattern sample. A crosshair whose position can be controlled electronically is displayed superimposed on the TV camera's video monitor, and when the worker aligns it with the center of each character and presses a designated button, the position is automatically read and It may also be written to a data storage unit. Note that in many applications, position data can be shared, and it may be sufficient to replace only the character type data. In such a case, all types of position data may be prepared in advance, and necessary data may be selected from among them in correspondence with the characters of the pattern to be inspected.

サンプルとなる被検査パターンから、各文字の
中心位置データを求める実用的な方法は、前述の
検査装置を用い、字種データの入力の後、検査装
置の動作を通して自動的に位置データを探索させ
る方法である。この場合、文字は1行または複数
行に並んでいるものとし、字種の指定は、例え
ば、上の行から順に、行内では一定の方向(例え
ば左から右へ)の順で入力していくものとし、行
の変わり目は改行コードにより報らせる等の約束
をしておけばよい。このような前提条件は、ほと
んどの応用例で成立するものと考えられる。
A practical method for determining the center position data of each character from a sample pattern to be inspected is to use the above-mentioned inspection device, and after inputting character type data, automatically search for position data through the operation of the inspection device. It's a method. In this case, the characters are assumed to be lined up in one or more lines, and the character types are entered, for example, from the top line and in a certain direction within the line (for example, from left to right). All you need to do is to make a promise, such as using line feed codes to indicate line changes. Such preconditions are considered to hold true in most application examples.

第9図は上記の考え方に基づいて、位置データ
を自動的に求め、求められた位置データを操作者
が確認できるように改良した検査装置の構成の一
例を示すものである。この装置は、第1図に示し
た装置にモニタ回路50とテレビモニタ51とを
追加し、計算機のプログラムを変更したものであ
る。モニタ回路50は、データバス20を介して
計算機10から十字線スケールの中心位置座標8
6を受けて画面上に十字線スケールを発生させる
回路と、映像データ処理装置40からの2値化映
像信号87をこの十字線スケールとを合成してテ
レビモニタに送り出す回路とからなる。
FIG. 9 shows an example of the configuration of an inspection device that has been improved based on the above idea to automatically obtain position data and allow the operator to confirm the obtained position data. This device is obtained by adding a monitor circuit 50 and a television monitor 51 to the device shown in FIG. 1, and changing the computer program. The monitor circuit 50 receives the center position coordinates 8 of the crosshair scale from the computer 10 via the data bus 20.
6 and generates a crosshair scale on the screen, and a circuit that combines the binary video signal 87 from the video data processing device 40 with the crosshair scale and sends it to the television monitor.

第10図A,Bは、操作者が字種をキイーイン
する毎に被検査パターン中の対応する文字の中心
位置を自動的に求め、操作者がその結果を確認で
きるように上記検査装置を動作させる計算機10
の制御手順を示すフローチヤートである。また第
11図A〜Cは、キイーインにより指定された文
字の位置探索範囲をテレビモニタの画面上で示し
た図である。
Figures 10A and 10B show that each time the operator keys in a character type, the center position of the corresponding character in the pattern to be inspected is automatically determined, and the above-mentioned inspection device is operated so that the operator can confirm the result. Calculator 10
2 is a flowchart showing a control procedure. Further, FIGS. 11A to 11C are diagrams showing the position search range of the character specified by the key-in on the screen of the television monitor.

以下、第10図、第11図を参照し、ルーチン
番号に従つて計算機10による制御手順を説明を
する。
Hereinafter, the control procedure by the computer 10 will be explained in accordance with the routine numbers with reference to FIGS. 10 and 11.

201:TVカメラからの映像を検査装置に取り込
む。映像は良好なパターンをもつ製品サンプル
を映し出したものでなくてはならない。
201: Capture the image from the TV camera into the inspection device. The video must show a product sample with a good pattern.

202:字種テーブルの文字配列の順位を示すパラ
メータiをoとする。
202: Let o be the parameter i that indicates the order of the character arrangement in the character type table.

203:文字位置の探索範囲を次のように最大値に
セツトする。
203: Set the character position search range to the maximum value as follows.

W1≦X≦W2 V1≦Y≦V2 この範囲は、第11図Aに示す如く、入力画
面全体を各辺から、1/2文字分だけ内側に寄せ
た領域に相当する。
W 1 ≦X≦W 2 V 1 ≦Y≦V 2 As shown in FIG. 11A, this range corresponds to an area where the entire input screen is moved inward by 1/2 character from each side.

204:操作者からの字種データのキーインを待つ。204: Waits for key-in of character type data from the operator.

205、206:キーインされたデータが「改行」か否
かを調べ、もし「改行」であれば探索範囲を次
のように変更する。
205, 206: Check whether the keyed-in data is a "line feed" or not, and if it is a "line feed", change the search range as follows.

W1≦X≦W2、Yi+d<Y≦V2 この範囲は、第11図Bに示す如く、直前に
求められた文字の中心位置(Xi、Yi)から一定
値dだけY方向に縮小した領域に相当し、dは
同じ行に属する文字間の中心Y座標のバラツキ
の最大値に相当する値である。
W 1 ≦X≦W 2 , Y i +d<Y≦V 2 As shown in FIG. 11B, this range is Y by a constant value d from the center position (X i , Y This corresponds to an area reduced in the direction, and d is a value corresponding to the maximum value of variation in the center Y coordinate between characters belonging to the same line.

207:パラメータiを+1する。207: Add 1 to parameter i.

208、209:キーインされたデータが「終了」を示
すものであるか否かを調べ、もし「終了」キー
のデータであれば、字種テーブルのi番目に終
了コードを記入し、配列データ作成を完了とす
る。
208, 209: Check whether the keyed-in data indicates "end" and if it is data for the "end" key, write the end code in the i-th position of the character type table and create array data. is complete.

210:「改行」、「終了」のいずれのコードにも該当
しないとき、字種テーブルのi番目にキーから
の入力データ(字種コード)を格納する。
210: When neither the "line break" nor the "end" code applies, the input data (character type code) from the key is stored in the i-th position of the character type table.

211:検査規準メモリに字種コードに相当するア
ドレスを出力する。
211: Outputs the address corresponding to the character type code to the inspection standard memory.

212:設定された探索範囲の全てのX、Y座標を
文字の中心座標(X0、Y0)に当てはめ、検査
規準データに従つて文字パターンの良否判定を
行ない、「良」となつた位置を当該文字の中心
座標(X0、Y0)の候補点として計算機の内蔵
メモリに登録する。
212: All X and Y coordinates of the set search range are applied to the center coordinates (X 0 , Y 0 ) of the character, and the character pattern is judged to be good or bad according to the inspection standard data, and the position is determined to be "good". is registered in the built-in memory of the computer as a candidate point for the center coordinates (X 0 , Y 0 ) of the character.

213:メモリ上に記憶された候補点データの位置
関係を調べ、相互に隣接関係でつながつたグル
ープがあれば、その重心位置にもつとも近い1
点を残し、グループ内の他のデータは消去す
る。
213: Check the positional relationship of the candidate point data stored in the memory, and if there is a group that is connected to each other in an adjacent relationship, find the one closest to the center of gravity.
Leave the point and delete other data in the group.

214、215:候補点が1点でもあるか否かを調べ、
もし零ならば、キーインされた字種コードが検
査パターンに含まれない文字を指定したものと
判断し、エラー表示をした後、処理を終了す
る。
214, 215: Check whether there is even one candidate point,
If it is zero, it is determined that the keyed-in character type code specifies a character that is not included in the test pattern, an error is displayed, and the process ends.

216:候補点データの中から次の優先順位判定ル
ールに従つて最優先候補点を選択する。すなわ
ち、2つの点(X、Y)(X′、Y′)について次
の優先順位判定を行なう。
216: Select the highest priority candidate point from the candidate point data according to the following priority order determination rule. That is, the following priority ranking is determined for the two points (X, Y) (X', Y').

|Y−Y′|>dならYの小さい方を優先す
る。
If |Y−Y′|>d, give priority to the smaller Y.

|Y−Y′|≦dならばXの小さい方を優先
する。
If |Y−Y′|≦d, the smaller X is given priority.

最優先候補点の選択の手順は、先ず2つの候
補で優先順位を比較し、優先した方を残し、こ
れと次の候補点とを比較する。こうした最後の
候補点まで比較処理を繰り返すと、最後まで残
つた1つの座標が最優先の位置にある候補点と
なる。この最優先候補点を文字の中心を示す仮
位置とする。
The procedure for selecting the highest priority candidate point is to first compare the priorities of the two candidates, keep the one with priority, and compare it with the next candidate point. When the comparison process is repeated until the last candidate point, the single coordinate that remains until the end becomes the candidate point at the highest priority position. This highest priority candidate point is set as a temporary position indicating the center of the character.

217:仮位置の座標データをモニタ回路に出力し、
テレビモニタに十字線スケールを発生させる。
217: Output the coordinate data of the temporary position to the monitor circuit,
Generates a crosshair scale on the TV monitor.

218:操作者からのキーインを待つ。操作者はモ
ニタの表示を見て十字線スケールと実際の文字
パターンの位置関係から、仮位置の座標が適当
か否かを判断する。この判断結果に基づき、操
作者は正、誤のいずれかのコードをキーインす
る。
218: Waits for key-in from the operator. The operator looks at the display on the monitor and determines whether the coordinates of the temporary position are appropriate based on the positional relationship between the crosshair scale and the actual character pattern. Based on this judgment result, the operator keys in either a correct or incorrect code.

219、220:キーインされたデータを判定し、誤の
キーが入力されたときには、メモリ内の仮位置
の候補点データを消去し、ルーチン214に戻つ
て残る候補点の中から最優先の位置データを見
つける。
219, 220: Determines the keyed-in data, and if an incorrect key is input, erases the temporary position candidate point data in the memory, returns to routine 214, and selects the highest priority position data from the remaining candidate points. Find.

221:ルーチン219の判定において、もし正のコー
ドが入力されていれば仮位置データを、正規の
位置データとして位置テーブルのi番目に格納
する。
221: In the judgment of routine 219, if a positive code is input, the temporary position data is stored in the i-th position of the position table as regular position data.

222:1つの文字位置が確定したことに伴ない探
索範囲を次のように変更した後、ルーチン204
に戻る。
222: After one character position has been determined, the search range is changed as follows, and then routine 204
Return to

Xi+e≦X≦W2、Yi−d≦Y≦Yi+d 変更後の範囲は、第11図Cに示す如く、次
の文字の中心位置が確定文字と同じ行で且つ座
標(Xi、Yi)よりも1文字分(e)だけ右側に来る
ものと仮定している。
X i + e i , Y i ) by one character (e) to the right.

以上、自動的に検出された文字中心位置を操作
者が確認しながら文字配列データをテーブルに設
定できる方法を示したが、検査装置による位置探
索の信頼度が高く、操作者による確認の必要がな
い場合には、第9図のモニタ回路50および、テ
レビモニタ51は不要となる。また、第10図の
制御フローでルーチン217、218、219、220の処理
が不要となり、ルーチン216から221へ直ちに移る
ようにすればよい。
The method described above allows the operator to set character arrangement data in a table while checking the automatically detected character center position. If not, the monitor circuit 50 and television monitor 51 shown in FIG. 9 are unnecessary. Further, in the control flow shown in FIG. 10, the processing of routines 217, 218, 219, and 220 is not necessary, and the routine can immediately proceed from routine 216 to 221.

次に、検査装置5を用いて計算機制御のもとに
配列データの全てを自動的に作成する方法につい
て述べる。
Next, a method for automatically creating all array data under computer control using the inspection device 5 will be described.

第12図は、計算機10が行なう制御手順のフ
ローチヤートである。以下図中のルーチン番号に
沿つて動作説明する。
FIG. 12 is a flowchart of the control procedure performed by the computer 10. The operation will be explained below according to the routine numbers in the figure.

301:TVカメラからの映像を検査装置に取り込
む。
301: Capture the image from the TV camera into the inspection device.

302:文字種類を示す番号(字種番号)を1とす
る。
302: Set the number indicating the character type (character type number) to 1.

303:字種番号に対応する検査規準データのメモ
リアドレスを求め、メモリ30のアドレスカウ
ンタ回路にセツトする。
303: Find the memory address of the inspection standard data corresponding to the character type number and set it in the address counter circuit of the memory 30.

304:文字位置の探索範囲を最大値(第11図A
参照)にセツトし、メモリ30から読出される
検査規準に従つて上記探索範囲の全ての文字位
置でパターンの良否検査を行ない、良と判断さ
れた位置データを候補点として記憶する。
304: Set the character position search range to the maximum value (Fig. 11A
), the pattern is inspected for quality at all character positions in the search range in accordance with the inspection criteria read out from the memory 30, and position data determined to be acceptable are stored as candidate points.

305:候補点記憶エリア内の候補点の有無をチエ
ツクし、もし候補点がなければルーチン308の
処理に移る。
305: Check whether there is a candidate point in the candidate point storage area, and if there is no candidate point, proceed to routine 308.

306:候補点記憶エリア内の位置データの関係を
調べ、互いにつながつた候補点のグループがあ
れば、重心に最も近い1点を残し、グループ内
の他のデータは消去する。
306: Examine the relationship between position data in the candidate point storage area, and if there is a group of mutually connected candidate points, leave one point closest to the center of gravity and delete other data in the group.

307:候補点記憶エリアに残された候補点データ
の全てを順次、字種番号と対応させて位置テー
ブルおよび字種テーブルに配列データとして登
録する。
307: All the candidate point data left in the candidate point storage area are registered in the position table and the character type table as array data in sequence in correspondence with the character type numbers.

308:字種番号を1だけ進める。308: Advance the character type number by 1.

309:字種番号が予定値を越えたか否かをチエツ
クし、越えていなければ303の処理に戻る。
309: Check whether the character type number exceeds the expected value, and if it does not, return to the process of 303.

310:字種番号が予定値を越えた場合であり、終
了コードを字種テーブルに格納し、配列データ
作成処理を終了する。この方法は十分良好なパ
ターと、厳しい検査規準を用いることが前提と
なる。
310: This is the case when the character type number exceeds the expected value, the end code is stored in the character type table, and the array data creation process is ended. This method requires the use of a sufficiently good putter and strict testing standards.

以上、本発明による表示パターンの検査方法と
この方法を実施する検査装置の実施例について説
明した。これらの実施例では、文字記号の配列を
規定する字種テーブルと位置テーブルを固定のも
のとし、汎用的な検査規準データと組み合せ、同
一の表示パターンをもつ多数の製品を自動的に供
給しつつ表示パターンの良否検査を行なつた。し
かしながら、検査装置の応用分野によつては、例
えば連続した製造番号を含む場合の如く、表示パ
ターン中の文字記号の配列が対象毎に1個あるい
は数個ずつで変化していく場合がある。このよう
な用途においても、もし文字配列の変化に一定の
規則がある場合には、本発明によれば文字配列の
データを自動的に修正しつつ、表示パターンの良
否検査を迅速に行なうことができる。多くの場
合、字種パターンの変更のみで対処できる。
The embodiments of the display pattern inspection method according to the present invention and the inspection apparatus that implements this method have been described above. In these embodiments, the character type table and position table that define the arrangement of character symbols are fixed, and are combined with general-purpose inspection standard data to automatically supply a large number of products with the same display pattern. The display pattern was inspected for quality. However, depending on the field of application of the inspection device, the arrangement of characters and symbols in the display pattern may change by one or several characters for each object, as in the case where consecutive serial numbers are included, for example. Even in such applications, if there is a certain rule for changing the character arrangement, according to the present invention, it is possible to automatically correct the character arrangement data and quickly check the quality of the display pattern. can. In many cases, the issue can be resolved simply by changing the font pattern.

本発明は、表示パターンの良否の判定を、この
表示パターンの構成単位である文字あるいは記号
毎に行なつているため、パターンの良否判定に文
字記号の重要度による重み付けを加えることも可
能である。例えば、字種テーブルに字種データと
共にその文字記号のもつ重要度に応じた重み係数
データを記憶しておき、検査の結果が不良となつ
た文字についての重み係数を累計し、全ての文字
記号の検査が終了したとき、上記累計値から表示
パターン全体としての良否を決定するようにすれ
ばよい。重要な文字については、例えば係数を
「3」とし、他の文字については係数を「1」と
して、係数累計値が「3」以上となつた場合は不
良パターンと判断するようにすれば、重要文字に
ついては1文字の不良も許さず、他の文字につい
ては2個までの不良を許容するパターン検査を行
なうことができる。
Since the present invention determines whether a display pattern is good or bad for each character or symbol that is a constituent unit of the display pattern, it is also possible to weight the pattern quality judgment based on the importance of the character symbol. . For example, by storing weighting coefficient data according to the importance of each character symbol along with character type data in a character type table, the weighting coefficients for characters with poor inspection results are accumulated, and all character symbols are When the inspection is completed, the quality of the display pattern as a whole may be determined based on the cumulative value. For example, for important characters, set the coefficient to ``3'', for other characters, set the coefficient to ``1'', and if the cumulative coefficient value is ``3'' or more, it will be judged as a defective pattern. Pattern inspection can be performed that does not allow even a single character to be defective, but allows up to two defects for other characters.

尚、実施例では、システムの全体動作を制御す
る計算機10の外部にメモリ30と映像データ処
理回路40を設け、文字毎の良否判定の規準を与
える検査規準データを上記メモリに記憶し、これ
を映像データ処理回路で高速に読み出してパター
ンの良否検査を行なうようにした。しかしなが
ら、検査システムが特に高速性を必要としない用
途においては、上記メモリ30を計算機10に付
属したメモリに格納し、映像データ処理回路の1
部の機能を上記計算機のプログラム動作に置き換
えるよう変更してもよい。また、表示パターンの
検査を文字あるいは符号単位で行なうことを原理
とする本発明の基本思想によれば、文字毎の良否
判定の規準を与えるデータは実施例に示した形態
のものに限定されるものではなく、撮像装置から
入力された被検査パターンの1文字分に相当する
局部映像データと直接比較できる二次元的なパタ
ーンデータ、更には電子的記憶形態をとらない規
準映像など他の形式のデータも上記検査規準とな
りうる。
In the embodiment, a memory 30 and a video data processing circuit 40 are provided outside the computer 10 that controls the overall operation of the system, and inspection standard data that provides standards for determining the quality of each character is stored in the memory. The image data processing circuit reads out the pattern at high speed and checks whether the pattern is good or bad. However, in applications where the inspection system does not particularly require high speed, the memory 30 is stored in a memory attached to the computer 10, and one part of the video data processing circuit is used.
The functions of the computer may be changed to replace the functions of the computer with the program operations of the computer. Furthermore, according to the basic idea of the present invention, which is based on the principle of inspecting the display pattern on a character or code basis, the data that provides the criteria for determining the quality of each character is limited to the format shown in the example. Two-dimensional pattern data that can be directly compared with local image data corresponding to one character of the pattern to be inspected inputted from an imaging device, as well as other formats such as standard images that do not take the form of electronic storage. Data can also serve as the above inspection criteria.

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

第1図は本発明による検査システムの全体構成
の1例を示す図、第2図、第3図、第4図はそれ
ぞれ字種データを記憶するテーブル、文字の位置
データを記憶するテーブル、検査規準データを記
憶するテーブルの構造の1例を示す図、第5図は
検査規準データの1例を示す図、第6図は1つの
文字についての良否判定原理の1例を説明するた
めの図、第7図は検査装置、特に第1図の映像デ
ータ処理回路40の更に詳細な構成の1例を示す
図、第8図は本発明による検査システムの制御手
順の1例を示すフローチヤート、第9図は検査対
象に合せて文字の配列データを変更するための装
置構成の1例を示す図、第10図AおよびBは上
記第9図の装置を用いた配列データ変更のための
制御手順の1例を示すフローチヤート、第11図
A,B,Cは上記第10図の制御過程での文字位
置の探索範囲についての説明図、第12図は文字
の配列データを変更するための他の実施例を示す
制御フローチヤート、第13図は第8図の変形例
を示すフローチヤートである。 第1図において、1は製品の供給機、2は表示
パターンの捺印機、3は製品の個別送り装置、4
は表示パターンの映像を入力するためのTVカメ
ラ、5は表示パターンの良否を判定する検査装
置、6は良否の判定結果に応じて製品を振分ける
仕分装置、8は操作卓、10は計算機、20はデ
ータバス、30は検査基準データを格納するメモ
リ、40は映像データ処理回路、11は字種テー
ブルおよび位置テーブルを記憶するためのメモリ
を示す。
FIG. 1 is a diagram showing an example of the overall configuration of an inspection system according to the present invention, and FIGS. 2, 3, and 4 are a table for storing character type data, a table for storing character position data, and an inspection system, respectively. FIG. 5 is a diagram showing an example of the structure of a table that stores standard data. FIG. 5 is a diagram showing an example of inspection standard data. FIG. , FIG. 7 is a diagram showing an example of a more detailed configuration of the inspection apparatus, particularly the video data processing circuit 40 of FIG. 1, and FIG. 8 is a flowchart showing an example of the control procedure of the inspection system according to the present invention. Fig. 9 is a diagram showing an example of a device configuration for changing character arrangement data according to the object to be inspected, and Fig. 10 A and B are controls for changing arrangement data using the apparatus shown in Fig. 9 above. A flowchart showing an example of the procedure, Figures 11A, B, and C are explanatory diagrams of the search range of character positions in the control process of Figure 10 above, and Figure 12 is a flowchart for changing character arrangement data. A control flowchart showing another embodiment, FIG. 13 is a flowchart showing a modification of FIG. 8. In FIG. 1, 1 is a product feeding machine, 2 is a display pattern stamping machine, 3 is a product individual feeding device, and 4 is a product feeding machine.
5 is a TV camera for inputting images of the display pattern; 5 is an inspection device for determining the quality of the display pattern; 6 is a sorting device for sorting products according to the results of the quality determination; 8 is a console; 10 is a calculator; 20 is a data bus, 30 is a memory for storing inspection reference data, 40 is a video data processing circuit, and 11 is a memory for storing a character type table and a position table.

Claims (1)

【特許請求の範囲】 1 複数個の文字記号の配列からなる被検査パタ
ーンの良否を検査するパターンの良否検査装置に
おいて、 上記被検査パターンの文字記号を含む複数種類
の文字記号について、文字記号の種類毎に、該文
字記号の線部分及びその周辺部の複数の検査点と
それらの状態を定義した検査規準データを記憶す
る第1の記憶手段と、 上記被検査パターンを構成する各文字記号の種
類を特定するためのコード情報を上記文字記号の
配列順に記憶する第2の記憶手段と、 上記被検査パターンを構成する各文字記号の映
像上での基準位置を示す位置データを上記文字記
号の配列順に記憶する第3の記憶手段と、 検査対象物が保有する被検査パターンの各文字
記号の映像データを一時的に保持する保持手段
と、 上記第1、第2及び第3の記憶手段から読み出
される検査規準データ、コード情報及び位置デー
タに基づいて、上記保持手段に保持された映像デ
ータ中に含まれる上記被検査パターンの文字記号
毎の良否を判定する判定手段とを有し、 上記判定手段は、上記第2及び第3の記憶手段
から上記被検査パターンを構成する文字記号の配
列順に各文字記号と対応する1組のコード情報と
位置データを順次読み出すとともに、上記読み出
されたコード情報に対応する検査規準データを上
記第1の記憶手段から読み出し、上記読み出され
た位置データと検査規準データに基づいて、上記
映像中に含まれる上記検査規準データで定義され
た検査点と対応する特定の画素の状態が上記検査
規準データで定義された状態に合致しているか否
かを判定し、その判定結果に基づいて上記検査対
象物が保有する被検査パターンの良否の判定を行
なうことをことを特徴とするパターンの良否検査
装置。 2 上記保持手段に保持される被検査パターンの
映像データは、上記検査対象物を搬送手段により
順次搬送し、その搬送された検査対象物が保有す
る被検査パターンを撮像手段により順次撮像して
取り込まれることをことを特徴とする特許請求の
範囲第1項記載のパターンの良否検査装置。 3 上記判定手段の判定結果に基づいて、上記搬
送手段により順次搬送される上記検査対象物を仕
分けする仕分け手段を制御することをことを特徴
とする特許請求の範囲第2項記載のパターンの良
否検査装置。
[Scope of Claims] 1. In a pattern inspection device for inspecting the quality of a pattern to be inspected consisting of an arrangement of a plurality of character symbols, the character symbols of a plurality of types including the character symbols of the pattern to be inspected are a first storage means for storing inspection standard data defining a plurality of inspection points on the line portion of the character symbol and its surrounding area and their states for each type; a second storage means for storing code information for identifying the type in the order in which the character symbols are arranged; and position data indicating the reference position on the video of each character symbol constituting the pattern to be inspected. a third storage means for storing in the arrangement order; a storage means for temporarily storing video data of each character symbol of the pattern to be inspected held by the object to be inspected; and from the first, second and third storage means. a determining means for determining the quality of each character symbol of the pattern to be inspected included in the video data held in the holding means, based on the inspection standard data, code information, and position data read out; The means sequentially reads from the second and third storage means a set of code information and position data corresponding to each character symbol in the order of arrangement of the character symbols constituting the pattern to be inspected, and reads the read code. Inspection standard data corresponding to the information is read from the first storage means, and based on the read position data and inspection standard data, correspondence is determined with the inspection point defined by the inspection standard data included in the image. determining whether or not the state of a specific pixel in the test conforms to the state defined by the inspection standard data, and determining whether the pattern to be inspected held by the object to be inspected is good or bad based on the determination result. A pattern quality inspection device characterized by: 2 The image data of the pattern to be inspected held in the holding means is obtained by sequentially transporting the object to be inspected by a transporting means and sequentially capturing images of the pattern to be inspected held by the transported object by an imaging means. A pattern quality inspection device according to claim 1, characterized in that: 3. The quality of the pattern as set forth in claim 2 is characterized in that, based on the determination result of the determination means, a sorting means for sorting the inspection objects sequentially conveyed by the conveyance means is controlled. Inspection equipment.
JP55121154A 1980-09-03 1980-09-03 Method and device for inspection of pattern Granted JPS5748163A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP55121154A JPS5748163A (en) 1980-09-03 1980-09-03 Method and device for inspection of pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP55121154A JPS5748163A (en) 1980-09-03 1980-09-03 Method and device for inspection of pattern

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP1078233A Division JPH02138675A (en) 1989-03-31 1989-03-31 Reference positioning method in pattern quality inspection equipment

Publications (2)

Publication Number Publication Date
JPS5748163A JPS5748163A (en) 1982-03-19
JPH0230065B2 true JPH0230065B2 (en) 1990-07-04

Family

ID=14804180

Family Applications (1)

Application Number Title Priority Date Filing Date
JP55121154A Granted JPS5748163A (en) 1980-09-03 1980-09-03 Method and device for inspection of pattern

Country Status (1)

Country Link
JP (1) JPS5748163A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60130191A (en) * 1983-12-16 1985-07-11 松下電器産業株式会社 Reference signal generation device for printed wiring board inspection equipment
JPS6149281A (en) * 1984-08-17 1986-03-11 Fuji Electric Co Ltd Pattern inspection device
JPS6261390A (en) * 1985-09-11 1987-03-18 興和株式会社 Method and apparatus for inspecting printed board
JPH0782542B2 (en) * 1988-01-29 1995-09-06 株式会社スキャンテクノロジー Print inspection method, print inspection device, and automatic printed matter distribution system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS49131543A (en) * 1973-04-20 1974-12-17
JPS594071B2 (en) * 1977-03-28 1984-01-27 株式会社日立製作所 character recognition device
JPS541413A (en) * 1977-06-06 1979-01-08 Nippon Steel Corp Cylindrical vertical tank
JPS541413U (en) * 1977-06-07 1979-01-08
JPS5574667A (en) * 1978-11-29 1980-06-05 Nec Home Electronics Ltd Pattern discrimination method

Also Published As

Publication number Publication date
JPS5748163A (en) 1982-03-19

Similar Documents

Publication Publication Date Title
US5889885A (en) Method and apparatus for separating foreground from background in images containing text
CA1160347A (en) Method for recognizing a machine encoded character
JP4251690B2 (en) Electronic circuit quality and manufacturing status monitoring system
US5157740A (en) Method for background suppression in an image data processing system
EP1388738B1 (en) Inspection data producing method and board inspection apparatus using the method
CN110533660B (en) Method for detecting silk-screen defect of electronic product shell
JPH01194079A (en) Printing inspection instrument using ink jet printer
CN114723706A (en) Welding spot detection and positioning method based on machine vision
JP3906780B2 (en) Data registration method for component code conversion table, board inspection data creation device, registration processing program, and storage medium thereof
JP2004362400A (en) Image recognition device and image recognition method, and teaching device and teaching method of image recognition device
CN114842275A (en) Circuit board defect identification method, training method, device, equipment and storage medium
US6320977B1 (en) Method and apparatus for positional detection using pattern matching process
CN113012097A (en) Image rechecking method, computer device, and storage medium
JPH0230065B2 (en)
US20060099553A1 (en) Automatic teaching method for printed circuit board inspection system
JP3107264B2 (en) Printed board inspection method and apparatus and printed board intensive inspection system
JPH0410114B2 (en)
CN114820613B (en) Incoming material measuring and positioning method for SMT (surface mount technology) patch processing
JP2007033126A (en) Substrate inspection apparatus, parameter adjustment method thereof, and parameter adjustment apparatus
TWI758134B (en) System for using image features corresponding to component identification for secondary inspection and method thereof
CN116645314B (en) Teacher data generation device, teacher data generation method, and recording medium containing program
JPH04161841A (en) Optical printed board inspecting apparatus
JP3557814B2 (en) Image inspection apparatus and method
JP2831537B2 (en) Mark inspection equipment
KR100249808B1 (en) Automatic Visual Inspection Device and Method for Lead Spacing of IC Lead Frame