JPH09147108A - Method and device for inspecting print character - Google Patents
Method and device for inspecting print characterInfo
- Publication number
- JPH09147108A JPH09147108A JP7299388A JP29938895A JPH09147108A JP H09147108 A JPH09147108 A JP H09147108A JP 7299388 A JP7299388 A JP 7299388A JP 29938895 A JP29938895 A JP 29938895A JP H09147108 A JPH09147108 A JP H09147108A
- Authority
- JP
- Japan
- Prior art keywords
- image data
- character image
- character
- reduced
- expanded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ファクトリーオー
トメーション(FA)分野における印字文字の検査方法
に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for inspecting printed characters in the field of factory automation (FA).
【0002】[0002]
【従来の技術】ファクトリーオートメーション(FA)
分野、例えば工場における自動生産ラインには、物品に
インクジェットプリンタなどの印字装置により自動的に
印字が行われるとともに、この印字された文字に、例え
ば文字の抜け、かすれ、汚れなどの欠陥があるかどうか
が検査されている。2. Description of the Related Art Factory automation (FA)
In the field, for example, in an automatic production line in a factory, an article is automatically printed by a printing device such as an inkjet printer, and whether the printed characters have defects such as missing characters, faint marks, and stains. Something is being inspected.
【0003】従来、この印字文字の検査を行う場合、カ
メラ装置で印字文字を画像データとして取り込むととも
に、この取り込まれた文字画像データと、予め、記憶さ
れている正しい文字画像データとのパターンマッチング
を行い、その良否を判定していた。Conventionally, when the print character is inspected, the print character is captured as image data by a camera device, and the captured character image data is subjected to pattern matching with the correct character image data stored in advance. It was done and the quality was judged.
【0004】[0004]
【発明が解決しようとする課題】上述したように、取り
込まれた文字画像データと、正しい文字画像データとの
パターンマッチングによると、人間の目で見ると問題が
ない文字でも、コンピュータによるパターンマッチング
では不良となってしまう場合があり、経済性に問題があ
った。As described above, according to the pattern matching between the captured character image data and the correct character image data, even if the characters are harmless to human eyes, the pattern matching by the computer is not possible. There were cases where it became defective, and there was a problem in economic efficiency.
【0005】そこで、本発明は、文字の良否を判定する
際に、柔軟性を持たせるようにした印字文字の検査方法
および検査装置を提供することを目的とする。Therefore, it is an object of the present invention to provide a method and an apparatus for inspecting a printed character, which has flexibility in determining the quality of the character.
【0006】[0006]
【課題を解決するための手段】上記課題を解決するた
め、本発明の印字文字の検査方法は、この基準文字を撮
影して得られた文字画像データに基づき、この基準文字
画像データより膨らませた膨張化文字画像データと、基
準文字画像データより縮小された縮小化文字画像データ
とを作成し、これら作成された膨張化文字画像データお
よび縮小化文字画像データと被検査物の印字文字を撮影
して得られた印字文字画像データとを比較して、印字文
字の良否を判定する方法である。In order to solve the above problems, the method for inspecting printed characters according to the present invention is based on the character image data obtained by photographing this reference character and inflates the reference character image data. The inflated character image data and the reduced character image data reduced from the reference character image data are created, and the created inflated character image data and the reduced character image data and the printed characters of the inspection object are photographed. This is a method of comparing the print character image data obtained by the above with the quality of the print character.
【0007】また、上記検査方法において、膨張率およ
び/または縮小率を変更し得る方法である。上記課題を
解決するため、本発明の印字文字の検査装置は、文字を
撮影するカメラ装置と、このカメラ装置により撮影して
得られた基準文字の基準文字画像データより膨らませた
膨張化文字画像データおよび基準文字画像データより縮
小された縮小化文字画像データを作成する変換処理部
と、これら変換された膨張化文字画像データおよび縮小
化文字画像データとカメラ装置により被検査物の印字文
字を撮影して得られた印字文字画像データとを入力して
その重なり程度を比較判定する判定部とから構成したも
のである。Further, in the above inspection method, the expansion rate and / or the contraction rate can be changed. In order to solve the above-mentioned problems, a printed character inspection device of the present invention is a camera device for photographing a character, and expanded character image data expanded from the reference character image data of the reference character obtained by the camera device. And a conversion processing unit that creates reduced character image data that is reduced from the reference character image data, and the converted inflated character image data and reduced character image data and the camera device that captures the printed characters of the inspection object. The print character image data obtained as a result is input and a determination unit for comparing and determining the degree of overlap is formed.
【0008】また、上記検査装置において、変換処理部
における膨張率および/または縮小率を変更し得る変換
率設定器を具備したものである。上記の各構成による
と、予め、検査する基準文字の大きい膨張化文字画像デ
ータと小さい縮小化文字画像データとを作成しておき、
これら変換された文字画像データと実際に被検査物の印
字文字を撮影して得られた文字画像データとを比較判定
する際に、その判定範囲に幅を持たせることができるの
で、例えば正確な印字文字と判定する場合に比べて、そ
の判定度に柔軟性を持たせることができる。また、変換
処理部における膨張率および/または縮小率を変更する
ことができるので、検査する側において、印字文字の良
否の判定基準を自由に調節することができる。Further, the above-mentioned inspection apparatus is provided with a conversion rate setting device capable of changing the expansion rate and / or the reduction rate in the conversion processing section. According to each of the above configurations, a large expanded character image data and a small reduced character image data of a reference character to be inspected are created in advance,
When comparing and determining the converted character image data and the character image data obtained by actually photographing the printed characters of the object to be inspected, it is possible to give a range to the determination range. The degree of determination can be made more flexible than in the case of determination as a print character. Further, since the expansion rate and / or the reduction rate in the conversion processing unit can be changed, the inspecting side can freely adjust the criterion for determining the quality of the printed character.
【0009】[0009]
【発明の実施の形態】以下、本発明の実施の形態を図1
〜図3に基づき説明する。まず、図1に基づき、印字文
字の検査装置について説明する。FIG. 1 is a block diagram showing an embodiment of the present invention.
This will be described with reference to FIG. First, a printing character inspection device will be described with reference to FIG.
【0010】すなわち、この検査装置1は、被検査物2
の表面に印刷された印字文字3を撮影するビデオカメラ
装置11と、このカメラ装置11により撮影されたビデ
オ信号をディジタル信号に変換するA/D変換器12
と、このA/D変換器12により変換されたディジタル
信号に2値化処理を施す2値化処理回路13と、この2
値化処理回路13で2値化して得られた文字画像データ
を入力して文字の傾きを検出する文字傾き検出回路14
と、この文字傾き検出回路14で検出された文字の傾き
データを入力するとともに2値化処理回路13から入力
された文字画像データを入力して所定の基準線(例えば
水平線)に沿うように文字に回転および/または移動処
理を行わせるアフィン変換回路15と、このアフィン変
換処理が施されて水平にされた文字画像データを入力す
るとともにこの文字画像データを膨らませて膨張化文字
画像データを得る膨張化処理回路(変換処理部)16
と、同じく上記アフィン変換回路15からの文字画画像
データを入力するとともにこの文字画像データを縮小
(または細線化ともいう)させて縮小化文字画像データ
を得る縮小化処理回路17と、これら変換作成された変
換文字画像データを記憶する第1および第2記憶部1
8,19およびこれら各記憶部18,19に記憶された
各変換文字画像データを入力して、これら膨張化文字画
像データおよび縮小化文字画像データとアフィン変換回
路15より入力された被検査物2の印字文字3の印字文
字画像データとを比較判定する判定回路(判定部)20
と、この判定回路20で得られた良否の判定結果を表示
する表示部(例えば、ディスプレイ装置)21と、上記
各処理回路16,17における変換率(パラメータ)す
なわち膨張率および縮小率を変更設定するための変換率
設定器22とから構成されている。That is, the inspection device 1 is provided with the inspection object 2
A video camera device 11 for photographing the printed characters 3 printed on the surface of the device, and an A / D converter 12 for converting a video signal photographed by the camera device 11 into a digital signal.
And a binarization processing circuit 13 for binarizing the digital signal converted by the A / D converter 12,
A character inclination detection circuit 14 for inputting character image data obtained by binarization in the binarization processing circuit 13 and detecting the inclination of the character.
And the character inclination data detected by the character inclination detection circuit 14 and the character image data input from the binarization processing circuit 13 to input the character image along a predetermined reference line (eg, horizontal line). An affine transformation circuit 15 for performing rotation and / or movement processing on the input, and character image data which has been subjected to the affine transformation processing and is horizontal, and at the same time expands the character image data to obtain expanded character image data. Conversion processing circuit (conversion processing unit) 16
Similarly, the character image data from the affine transformation circuit 15 is input, and at the same time, the character image data is reduced (also referred to as thinning) to obtain reduced character image data, and a conversion processing circuit 17 for creating these conversions. First and second storage units 1 for storing the converted character image data
8 and 19 and the respective converted character image data stored in the respective storage units 18 and 19, and the inflated character image data and the reduced character image data and the inspection object 2 input from the affine conversion circuit 15 are input. Determination circuit (determination unit) 20 for comparing and determining the print character image data of the print character 3 of
And a display unit (for example, a display device) 21 that displays the quality determination result obtained by the determination circuit 20, and the conversion rate (parameter) in each of the processing circuits 16 and 17, that is, the expansion rate and the reduction rate are changed and set. And a conversion rate setting device 22 for performing the operation.
【0011】次に、印字文字の検査方法について説明す
る。まず、最初に、検査対象である文字の基準文字をカ
メラ装置11にて撮影する。この撮影された基準文字画
像データは、A/D変換器12および2値化処理回路1
3を介して、文字傾き検出回路14に入力され、ここで
基準文字の傾きが検出され、アフィン変換回路15に入
力されて、基準文字が基準線例えば水平線に沿って並ぶ
ように回転および/または移動が行われる。Next, a method of inspecting printed characters will be described. First, the reference character of the character to be inspected is photographed by the camera device 11. The photographed reference character image data is processed by the A / D converter 12 and the binarization processing circuit 1.
3 is input to the character inclination detection circuit 14, where the inclination of the reference character is detected, and is input to the affine transformation circuit 15 to rotate and / or rotate the reference character so as to be aligned along a reference line, for example, a horizontal line. The move is done.
【0012】次に、このアフィン変換が施された基準文
字画像データが膨張化および縮小化処理回路16,17
に入力され、ここでそれぞれの変換率でもって、図2に
示すように、膨張化および縮小化されて膨張化文字画像
データおよび縮小化文字画像データが作成される。そし
て、これらの変換された文字画像データが、それぞれ記
憶部18,19に記憶される。Next, the reference character image data subjected to the affine transformation is expanded and reduced processing circuits 16 and 17.
2, and the expanded character image data and the reduced character image data are expanded and reduced with the respective conversion rates, as shown in FIG. Then, these converted character image data are stored in the storage units 18 and 19, respectively.
【0013】次に、実際に、被検査物2に印刷された印
字文字3の検査を行う場合、この印字文字3をカメラ装
置11にて撮影する。この撮影されたビデオ信号はA/
D変換器12でディジタル信号に変換され、2値化処理
回路13で2値化されて文字画像データが得られ、そし
て基準文字のときと同様に、アフィン変換により、水平
線に沿うように変換処理される。Next, when actually inspecting the print character 3 printed on the inspection object 2, the print character 3 is photographed by the camera device 11. This captured video signal is A /
The D converter 12 converts it into a digital signal, and the binarization processing circuit 13 binarizes it to obtain character image data. Then, as in the case of the reference character, the conversion processing is performed along the horizontal line by the affine conversion. To be done.
【0014】そして、図2に示すように、この変換処理
された文字画像データ31は、判定回路20に入力さ
れ、ここで記憶部18,19より入力された膨張化文字
画像データ32および縮小化画像データ33との比較、
例えば重ね合わせによる比較が行われる。As shown in FIG. 2, the converted character image data 31 is input to the determination circuit 20, and the expanded character image data 32 and the reduced character image input from the storage units 18 and 19 are input. Comparison with image data 33,
For example, comparison by superposition is performed.
【0015】具体的に説明すれば、図3(a)に示すよ
うに、被検査物2の印字文字3の文字画像データ(斜線
で示す)が、膨張化文字画像データの範囲からはみ出る
と、印字文字にずれが生じていることが分かり、また逆
に、図3(b)に示すように、縮小化文字画像データの
方が、被検査物2の印字文字3の文字画像データ(斜線
で示す)からはみ出た場合には、印字文字に抜けが生じ
ていることが分かる。More specifically, as shown in FIG. 3A, when the character image data (indicated by diagonal lines) of the print character 3 of the inspection object 2 is out of the range of the expanded character image data, It can be seen that the printed characters are misaligned, and conversely, as shown in FIG. 3B, the reduced character image data is the character image data of the printed characters 3 of the inspection object 2 (indicated by diagonal lines). If it is out of the range (shown), it can be seen that the printed characters are missing.
【0016】すなわち、印字文字3の文字画像データ
が、縮小化文字画像データを全て覆う状態でかつ膨張化
文字画像データからはみ出ない場合に、その印字文字3
が正しく印刷されており、良品であると判定される。That is, when the character image data of the print character 3 covers all the reduced character image data and does not extend from the expanded character image data, the print character 3 is printed.
Is printed correctly and is judged to be a good product.
【0017】そして、その判定結果は、表示部21に表
示される。このように、検査される基準文字を、予め、
大きい膨張化文字画像データと小さい縮小化文字画像デ
ータとを作成しておき、その判定範囲に所定の幅を持た
せるようにしているので、従来のように、正確な印字文
字と判定する場合に比べて、その判定度に柔軟性を持た
せることができ、したがって経済的な判定を行うことが
できる。Then, the determination result is displayed on the display unit 21. In this way, the reference character to be inspected
Since a large expanded character image data and a small reduced character image data are created so that the judgment range has a predetermined width, when it is judged as an accurate printed character as in the conventional case. In comparison, the degree of determination can be made flexible, and therefore economical determination can be performed.
【0018】また、画像文字データを判定する際に、各
画像文字データを、文字傾き検出回路14でその文字デ
ータの傾きを検出し、そしてアフィン変換回路15で所
定の基準線例えば水平線に沿うように回転および/また
は移動処理が行われるため、正確な判定を行うことがで
きる。Further, when determining the image character data, each image character data is detected by the character inclination detection circuit 14 to detect the inclination of the character data, and the affine conversion circuit 15 follows the predetermined reference line, for example, a horizontal line. Since the rotation and / or movement processing is performed on, accurate determination can be performed.
【0019】さらに、変換率設定器22により、膨張率
および縮小率を変更することができるので、ユーザ側に
おいて、印字文字の良否の判定基準を自由に調節するこ
とができる。Further, since the expansion rate and the reduction rate can be changed by the conversion rate setting device 22, the user can freely adjust the criteria for judging the quality of the printed characters.
【0020】[0020]
【発明の効果】以上のように本発明の構成によると、予
め、検査する基準文字の大きい膨張化文字画像データと
小さい縮小化文字画像データとを作成しておき、これら
変換された文字画像データと実際に被検査物の印字文字
を撮影して得られた文字画像データとを比較して判定す
る際に、その判定範囲に幅を持たせることができるの
で、従来のように、正確な印字文字と判定する場合に比
べて、その判定度に柔軟性を持たせることができ、した
がって経済的な判定を行うことができる。As described above, according to the configuration of the present invention, the expanded character image data having a large reference character to be inspected and the reduced character image data having a small reference character are created in advance, and these converted character image data are created. Since the judgment range can be widened when the judgment is made by comparing with the character image data obtained by actually photographing the printed characters of the inspected object, it is possible to perform accurate printing as in the past. The degree of determination can be made more flexible than in the case of determining that it is a character, and therefore economical determination can be performed.
【0021】また、膨張率および/または縮小率を変更
することができるので、検査する側において、印字文字
の良否の判定基準を自由に調節することができる。Further, since the expansion rate and / or the reduction rate can be changed, it is possible for the inspection side to freely adjust the criteria for judging the quality of the printed characters.
【図1】本発明の実施の形態における検査装置の概略構
成を示すブロック図である。FIG. 1 is a block diagram showing a schematic configuration of an inspection device according to an embodiment of the present invention.
【図2】同実施の形態における文字画像データの膨張化
および縮小化の状態を示す図である。FIG. 2 is a diagram showing a state of expansion and contraction of character image data according to the same embodiment.
【図3】同実施の形態における文字画像データの判定方
法を説明する図である。FIG. 3 is a diagram illustrating a method of determining character image data according to the same embodiment.
1 検査装置 2 被検査物 3 印字文字 11 カメラ装置 15 アフィン変換回路 16 膨張化処理回路 17 縮小化処理回路 18 第1記憶部 19 第2記憶部 20 判定回路 22 変換率設定器 DESCRIPTION OF SYMBOLS 1 Inspection device 2 Inspected object 3 Printed character 11 Camera device 15 Affine conversion circuit 16 Expansion processing circuit 17 Reduction processing circuit 18 1st memory | storage part 19 2nd memory | storage part 20 Judgment circuit 22 Conversion rate setting device
Claims (4)
タに基づき、この基準文字画像データより膨らませた膨
張化文字画像データと、この基準文字画像データより縮
小された縮小化文字画像データとを作成し、これら作成
された膨張化文字画像データおよび縮小化文字画像デー
タと被検査物の印字文字を撮影して得られた印字文字画
像データとを比較して、印字文字の良否を判定すること
を特徴とする印字文字の検査方法。1. Expanded character image data expanded from the reference character image data based on character image data obtained by photographing a reference character, and reduced character image data reduced from the reference character image data. To determine the quality of the printed characters by comparing the created expanded character image data and the reduced character image data with the printed character image data obtained by photographing the printed characters of the inspection object. A method for inspecting printed characters, which is characterized in that
ことを特徴とする請求項1記載の印字文字の検査方法。2. The method for inspecting printed characters according to claim 1, wherein the expansion rate and / or the reduction rate can be changed.
装置により撮影して得られた基準文字の基準文字画像デ
ータより膨らませた膨張化文字画像データおよび基準文
字画像データより縮小された縮小化文字画像データを作
成する変換処理部と、これら変換された膨張化文字画像
データおよび縮小化文字画像データとカメラ装置により
被検査物の印字文字を撮影して得られた印字文字画像デ
ータとを入力してその重なり程度を比較判定する判定部
とから構成したことを特徴とする印字文字の検査装置。3. A camera device for photographing a character, expanded character image data expanded from the reference character image data of a reference character obtained by photographing with the camera device, and a reduced character reduced from the reference character image data. Input the conversion processing unit that creates image data, the converted inflated character image data and the reduced character image data, and the print character image data obtained by photographing the print characters of the inspection object by the camera device. An inspection device for printed characters, comprising: a judgment unit for judging the degree of overlap between the characters.
縮小率を変更し得る変換率設定器を具備したことを特徴
とする請求項3記載の印字文字の検査装置。4. The printed character inspection apparatus according to claim 3, further comprising a conversion rate setting device capable of changing an expansion rate and / or a reduction rate in the conversion processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7299388A JPH09147108A (en) | 1995-11-17 | 1995-11-17 | Method and device for inspecting print character |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7299388A JPH09147108A (en) | 1995-11-17 | 1995-11-17 | Method and device for inspecting print character |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH09147108A true JPH09147108A (en) | 1997-06-06 |
Family
ID=17871918
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7299388A Pending JPH09147108A (en) | 1995-11-17 | 1995-11-17 | Method and device for inspecting print character |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH09147108A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008009868A (en) * | 2006-06-30 | 2008-01-17 | Saxa Inc | Image processor |
US7831099B2 (en) | 2006-06-02 | 2010-11-09 | Fuji Xerox Co., Ltd. | Pattern matching device, image encoder, image decoder, image processing system, computer readable media storing programs, and computer data signal |
-
1995
- 1995-11-17 JP JP7299388A patent/JPH09147108A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7831099B2 (en) | 2006-06-02 | 2010-11-09 | Fuji Xerox Co., Ltd. | Pattern matching device, image encoder, image decoder, image processing system, computer readable media storing programs, and computer data signal |
JP2008009868A (en) * | 2006-06-30 | 2008-01-17 | Saxa Inc | Image processor |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0437273B1 (en) | Method of matching patterns and apparatus therefor | |
US5377279A (en) | Method and apparatus for displaying defect in central area of monitor | |
JPH0731137B2 (en) | Inner / outer surface inspection device | |
JPH09147108A (en) | Method and device for inspecting print character | |
JP3204876B2 (en) | Print inspection equipment | |
JP3243541B2 (en) | Tablet appearance inspection method | |
JP3771329B2 (en) | Electronic component mounting direction inspection method | |
JP4546607B2 (en) | Non-defective pattern registration method and pattern inspection method | |
JPH09131951A (en) | Printing quality judging device | |
JP3207931B2 (en) | Image inspection equipment | |
JPH09147107A (en) | Method and device for evaluating image position | |
JP2002318997A (en) | Two-dimensional code reader | |
JPH06147855A (en) | Image inspection method | |
JP2725469B2 (en) | Micro defect detector | |
JPH10289311A (en) | Check method and device for printed matter | |
JP2022131467A (en) | Inspection apparatus and inspection method | |
JP2850601B2 (en) | Printed circuit board pattern inspection equipment | |
JPS61881A (en) | Method and device for picture inspection | |
JP2541006Y2 (en) | Binary image expansion processing device | |
JPH06275686A (en) | Method and device for manufacturing semiconductor device | |
JP2836535B2 (en) | Panel display state recognition device | |
JPH06265482A (en) | Matching pattern signal generating method in pattern matching inspection and device thereof | |
JPH03252546A (en) | Wiring pattern inspection device | |
JPH05172548A (en) | Data output method and work surface inspection device | |
JPH0783836A (en) | Method for detecting and processing defective |