JPH07159340A - Inspection apparatus for printed object - Google Patents

Inspection apparatus for printed object

Info

Publication number
JPH07159340A
JPH07159340A JP5311719A JP31171993A JPH07159340A JP H07159340 A JPH07159340 A JP H07159340A JP 5311719 A JP5311719 A JP 5311719A JP 31171993 A JP31171993 A JP 31171993A JP H07159340 A JPH07159340 A JP H07159340A
Authority
JP
Japan
Prior art keywords
image
character
extracted
corrected
characters
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.)
Granted
Application number
JP5311719A
Other languages
Japanese (ja)
Other versions
JP3473068B2 (en
Inventor
Takahiro Kubota
隆弘 窪田
Yoshitsugu Okamura
吉嗣 岡村
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.)
Toyobo Co Ltd
Original Assignee
Toyobo Co 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 Toyobo Co Ltd filed Critical Toyobo Co Ltd
Priority to JP31171993A priority Critical patent/JP3473068B2/en
Publication of JPH07159340A publication Critical patent/JPH07159340A/en
Application granted granted Critical
Publication of JP3473068B2 publication Critical patent/JP3473068B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Character Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To provide an inspection apparatus for a printed object, which can inspect the quality of a printed character with high accuracy even when an object to be measured, on which a character has been printed, is being conveyed. CONSTITUTION:Light is projected to an object S to be measured from a light source 21, its reflected light is detected by an image input sensor 22, its binarized data is stored in an image memory 16, and light-and-shade image data is stored in an image memory 17. A CPU 11 detects the position and the inclination of a ruled-line frame on the basis of an image stored in the image memory 16, the dislocation amount of the ruled-line frame is compared with a criterion value stored in a dictionary pattern memory 18, an extracted image as a whole is position-corrected including its rotation, the inclination of a character string is detected from the character inspection region of the corrected image, the rotation of the character string is corrected, every character is cut off with reference to the corrected image of the character string by means of a density projection method, and a printed character is extracted.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は印刷物の検査装置に関
し、たとえば包装カートンなどに罫線で囲まれた特定領
域に、搬送中に捺印される製造年月日などの品質を搬送
中に検査するような印刷物の検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an apparatus for inspecting printed matter, and for inspecting a quality such as a manufacturing date stamped during transportation in a specific area surrounded by a ruled line in a packaging carton or the like during transportation. Inspection device for various printed matter.

【0002】[0002]

【従来の技術】従来、印刷文字の品質(文字の欠けな
ど)を検査する方法および装置としては、たとえば特開
平2−14379号公報または実開平1−160558
号公報に示されたものがある。これらは、いずれも単に
標準文字パターン情報との比較により、単純に良,不良
を判定するものであった。
2. Description of the Related Art Conventionally, as a method and apparatus for inspecting the quality of printed characters (character missing, etc.), for example, Japanese Patent Laid-Open No. 2-14379 or Japanese Utility Model Laid-Open No. 1-160558.
There is one disclosed in the publication. All of these are simply judged as good or bad simply by comparing with standard character pattern information.

【0003】しかしながら、印刷不良はその発生原因に
応じて様々な種類がある。人はその種類を認識し、その
基準に応じた判定基準から品質を判断するが、従来の画
一的な比較法では目視判定とはほど遠い処理内容になる
のは自明である。そこで、欠点項目を予め制約し、抽出
文字を各選別項目ごとに比較できるように文字を加工す
る方法が特開平4−286082号公報で提案されてい
る。この手法は、文字を抽出する際に、文字の位置画像
を縦および横方向への投影による濃度ヒストグラムから
文字を長方形に切出して枠内の文字と判断し、枠内の画
像を各欠点との比較用に加工するものである。
However, there are various types of printing defects depending on the cause of the printing defects. Although the person recognizes the type and judges the quality from the judgment standard according to the standard, it is obvious that the processing content is far from the visual judgment in the conventional uniform comparison method. Therefore, Japanese Laid-Open Patent Application No. 4-286082 proposes a method of restricting defect items in advance and processing the characters so that the extracted characters can be compared for each selection item. In this method, when extracting a character, the position image of the character is cut out into a rectangle from the density histogram by projection in the vertical and horizontal directions, the character is determined to be a character in the frame, and the image in the frame is identified as each defect. It is processed for comparison.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、たとえ
ば、罫線内の指定される領域に捺印される製造年月日な
どの文字品質を搬送中検査する際に、被印刷物の検査位
置での位置ずれが必ず生じた場合、抽出文字は罫線枠内
の正規位置に捺印された場合でも位置ずれと判断されて
しまう。また、文字が傾いて検知された場合、上述の濃
度投影法による文字領域の切出しができない。さらに、
上述の提案では、たとえば文字の濃度を抽出することが
できず、また文字の細り,太り度合などの選別ができ
ず、文字の品質検査の信頼性に問題があった。
However, for example, when inspecting the quality of characters, such as the date of manufacture, which is imprinted in a designated area within a ruled line during conveyance, a positional deviation at the inspection position of the printing object is caused. If it always occurs, the extracted character will be judged to be misaligned even if it is imprinted at the regular position in the ruled line frame. Further, when a character is detected to be tilted, the character area cannot be cut out by the above-described density projection method. further,
In the above-mentioned proposal, for example, it is not possible to extract the density of characters, and it is not possible to select the degree of thinning or thickening of characters, and there is a problem in the reliability of character quality inspection.

【0005】それゆえに、この発明の主たる目的は、高
信頼性の文字抽出を可能とし、文字品質の選別項目を従
来に比べて大幅に増強し、信頼性の高い検査が可能な印
刷物の検査装置を提供することである。
Therefore, the main object of the present invention is to enable highly reliable character extraction, greatly enhance the selection items of character quality as compared with the conventional one, and to perform a highly reliable inspection of a printed matter. Is to provide.

【0006】[0006]

【課題を解決するための手段】この発明は印刷物の検査
装置であって、罫線枠を含む特定領域の文字を読取って
収集する収集手段と、収集された画像から罫線枠の座標
を抽出し、罫線の基準値からのずれ量を抽出し、収集画
像全体を回転補正する第1の補正手段と、補正された画
像から文字列の座標を抽出し、文字列の傾き量から文字
領域画像のみを回転補正する第2の回転補正手段と、補
正された画像から文字の外接方形を抽出する抽出手段
と、予め基準となる文字情報を記憶する辞書記憶手段
と、抽出された外接方形内文字の部分的な欠落を辞書記
憶手段に記憶されている基準値と比較して判定する第1
の処理手段と、抽出された外接方形内文字の大きさを辞
書記憶手段に記憶されている基準値と比較して判定する
第2の処理手段と、抽出された外接方形内文字の濃度を
辞書記憶手段に記憶されている基準値と比較して判定す
る第3の処理手段と、抽出された外接方形内文字の位置
ずれを補正された罫線の基準位置からの相対位置ずれを
辞書記憶手段に記憶されている基準値と比較して判定す
る第4の処理手段と、抽出された外接方形内文字の汚れ
を辞書記憶手段に記憶されている基準値と比較して判定
する第5の処理手段と、補正された罫線画像と補正され
た文字領域間の背景画像の汚れを抽出して判定する第6
の処理手段と、第1ないし第6の処理手段からの結果を
総合的に判断して収集された文字の状態を選別する選別
手段とを備えて構成される。
SUMMARY OF THE INVENTION The present invention is a printed matter inspection apparatus, which collects characters by reading characters in a specific area including a ruled line frame, and extracts coordinates of the ruled line frame from the collected image. First correction means for extracting the deviation amount of the ruled line from the reference value and correcting the rotation of the entire collected image, and the coordinates of the character string from the corrected image, and extracting only the character area image from the inclination amount of the character string. Second rotation correction means for rotation correction, extraction means for extracting a circumscribed rectangle of a character from the corrected image, dictionary storage means for storing reference character information in advance, and a portion of the extracted circumscribed rectangle character. To determine whether or not a specific omission has occurred by comparing with a reference value stored in the dictionary storage means
Processing means, second processing means for judging the size of the extracted circumscribed rectangular characters by comparing with the reference value stored in the dictionary storage means, and a dictionary of the density of the extracted circumscribed rectangular characters. Third processing means for making a judgment by comparing with a reference value stored in the storage means, and relative position deviation of the extracted ruled line in the circumscribed rectangle from the reference position in the dictionary storage means. Fourth processing means for making a judgment by comparing with a stored reference value, and fifth processing means for making a judgment by comparing the dirt of the extracted circumscribed rectangle character with a reference value stored in the dictionary storing means. And a stain for the background image between the corrected ruled line image and the corrected character area is extracted and determined.
And the sorting means for sorting the collected character states by comprehensively judging the results from the first to sixth processing means.

【0007】[0007]

【作用】この発明に係る印刷物の検査装置は、罫線枠を
含む文字の検査を行なう際、まず罫線枠の位置,傾きを
検知し、罫線枠の位置ずれ量を基準値と比較し、抽出し
た画像全体を回転を含む位置補正を行ない、次に補正さ
れた画像の文字検査領域から文字列の傾きを検知し、文
字列の回転補正を行なって、補正された文字列画像に対
して各文字の切出しを濃度投影法にて行なうことにより
高信頼性の文字抽出を可能とし、さらに文字品質の選別
項目を従来に比べて大幅に増強し、信頼性の高い検査が
可能となる。
In the printed material inspection apparatus according to the present invention, when inspecting a character including a ruled line frame, first, the position and inclination of the ruled line frame are detected, and the positional deviation amount of the ruled line frame is compared with a reference value and extracted. Position correction including rotation is performed on the entire image, then the inclination of the character string is detected from the character inspection area of the corrected image, the character string is rotated and corrected, and each character is corrected on the corrected character string image. It is possible to extract characters with high reliability by performing the density projection method for clipping, and greatly enhance the selection items of character quality compared to the conventional method, and to perform highly reliable inspection.

【0008】[0008]

【実施例】図1はこの発明の全体の構成を示すブロック
図である。図1において、CPU11は全体の制御を行
なうものであって、データバス12およびアドレスバス
13を介して、プログラムメモリ14と作業用メモリ1
5と画像メモリ16,17と辞書パターンメモリ18と
出力回路19とが接続されている。
1 is a block diagram showing the overall structure of the present invention. In FIG. 1, a CPU 11 performs overall control, and a program memory 14 and a working memory 1 are provided via a data bus 12 and an address bus 13.
5, the image memories 16 and 17, the dictionary pattern memory 18, and the output circuit 19 are connected.

【0009】一方で被測定物Sには、光源21から光が
照射され、この照射光による被測定物3からの反射光は
画像入力センサ22に結合される。画像入力センサ22
の出力信号は文字画像データとして画像入力回路23に
与えられる。画像入力回路23の出力は2値化回路24
と画像メモリ17とに与えられる。2値化回路24は画
像入力回路23の出力を内部の設定しきい値に従って2
値化し、画像メモリ16に与える。同時に、画像入力回
路23の出力である濃淡画像は2値化回路24に通さ
ず、直接画像メモリ17に記憶される。プログラムメモ
リ14はCPU11が全体の制御を行なうための処理プ
ログラムや各種の制御データや基準データなどを記憶す
る。
On the other hand, the object to be measured S is irradiated with light from the light source 21, and the reflected light from the object to be measured 3 due to the irradiation light is coupled to the image input sensor 22. Image input sensor 22
Is output to the image input circuit 23 as character image data. The output of the image input circuit 23 is a binarization circuit 24.
And the image memory 17 are provided. The binarization circuit 24 outputs the output of the image input circuit 23 according to an internal set threshold value.
The value is converted and given to the image memory 16. At the same time, the grayscale image output from the image input circuit 23 is directly stored in the image memory 17 without passing through the binarization circuit 24. The program memory 14 stores a processing program for the CPU 11 to perform overall control, various control data, reference data, and the like.

【0010】ここで、処理プログラムとしては、たとえ
ば画像メモリ16,17の記憶内容をもとに、画像の基
準値に対する位置補正および補正画像の文字切出し,切
出し文字を各辞書パターンと比較できるように、選択項
目ごとの特徴量抽出,文字の欠けやにじみなどに関する
辞書パターンとの比較、または切出し文字の矩形領域に
マスクをかけ、罫線内とマスク領域の間の背景部の汚れ
の有無をラベル画像への変換により連結状態により判定
を行ない、さらに以上の比較結果を総合的に判断し、当
該文字画像に対する印刷不良有無の判定を行ない、印刷
不良の選別を行なうものである。
Here, as the processing program, for example, based on the storage contents of the image memories 16 and 17, the position correction with respect to the reference value of the image, the character cut-out of the corrected image, and the cut-out character can be compared with each dictionary pattern. , Feature quantity extraction for each selection item, comparison with dictionary patterns regarding missing or bleeding of characters, or masking the rectangular area of the cut-out character, and a label image showing whether the background part between the ruled line and the mask area is dirty The conversion is performed to make a determination based on the connection state, and further the above comparison results are comprehensively determined to determine whether or not there is a printing defect in the character image, and to select a printing defect.

【0011】辞書パターンは、上述の処理にて比較され
る標準パターンであり、基準となる印刷文字を被検査物
と同じ条件で画像入力センサ22に結像したとき、画像
入力回路23から入力される。この標準パターンは以下
の標準辞書パターンに加工され、各比較項目の基準とな
る。
The dictionary pattern is a standard pattern to be compared in the above-mentioned processing, and when a reference print character is formed on the image input sensor 22 under the same condition as the object to be inspected, it is input from the image input circuit 23. It This standard pattern is processed into the following standard dictionary pattern and serves as a reference for each comparison item.

【0012】上述の標準パターンは、位置辞書パターン
と、中点辞書パターンと、濃度辞書パターンと、外点辞
書パターンとを含む。位置辞書パターンは被測定物の位
置ずれを入力画像の罫線枠より判断し、画像の座標補正
を加えた後に、文字の切出しを文字列が多少傾いた状態
でも安定的にできるようにするために、文字列の傾き量
を抽出し、文字列画像を回転補正させた後、切出された
文字と比較されるものである。したがって、この辞書パ
ターンとの比較により、最終的には文字の正規印刷位置
からの位置ずれ,傾きを検出することができる。なお、
回転補正は許容値を予め設定しておき、その範囲内で行
なう。
The standard patterns described above include a position dictionary pattern, a middle point dictionary pattern, a density dictionary pattern, and an outer point dictionary pattern. The position dictionary pattern is to determine the positional deviation of the object to be measured from the ruled line frame of the input image, and after correcting the coordinate of the image, to make it possible to stably cut out characters even when the character string is slightly inclined. The amount of inclination of the character string is extracted, the character string image is rotated and corrected, and then the extracted character is compared. Therefore, by comparing with this dictionary pattern, it is possible to finally detect the displacement and inclination of the character from the normal printing position. In addition,
The rotation correction is performed within a range in which an allowable value is set in advance.

【0013】中点辞書パターンは、上述のごとく補正し
た後、抽出された文字と比較されるものである。この中
点辞書パターンとしては、切出した文字枠内で、X,Y
各方向に走査し、各走査軸の連続する文字座標の中点を
抽出したものである。したがって、この辞書パターンと
の比較により、上述の文字画像の欠け,かすれ,ボイド
などの欠陥を抽出することができる。
The midpoint dictionary pattern is to be compared with the extracted character after being corrected as described above. As the middle point dictionary pattern, X, Y
Scanning is performed in each direction, and the midpoint of consecutive character coordinates on each scanning axis is extracted. Therefore, by comparing with the dictionary pattern, it is possible to extract the above-mentioned defects such as chipping, blurring, and voids of the character image.

【0014】図2は標準辞書パターンの一例の標準辞書
用文字を示した図であり、図3は中点辞書パターンの一
例を示した図である。
FIG. 2 is a diagram showing characters for a standard dictionary as an example of the standard dictionary pattern, and FIG. 3 is a diagram showing an example of a midpoint dictionary pattern.

【0015】図4は濃度辞書パターンの一例を示した図
であり、この濃度辞書パターンは、上述のごとく補正し
た後、抽出された文字と比較されるものである。この濃
度辞書パターンとしては、標準辞書用に入力された画像
を表示装置に出力させて、画像を見ながらティーチング
により、各文字画像上に任意の間隔で線を複数上書き
し、この線と文字画像の重なり部の座標を抽出したもの
である。この標準パターンとの比較により、文字の濃度
が抽出できる。さらに、ライン上の画像数をカウントす
ることにより、上述の中点辞書パターンでは、抽出でき
ない文字の細りや太り量をも抽出できる。ただし、濃度
抽出用データは、補正後の画像メモリ16から入力さ
れ、文字細り抽出データは補正後の画像メモリ17から
入力される。
FIG. 4 is a diagram showing an example of the density dictionary pattern. This density dictionary pattern is to be compared with the extracted character after being corrected as described above. As this density dictionary pattern, an image input for a standard dictionary is output to a display device, and while watching the image, by teaching, a plurality of lines are overwritten on each character image at arbitrary intervals. The coordinates of the overlapping portion of are extracted. The density of the character can be extracted by comparison with this standard pattern. Furthermore, by counting the number of images on the line, it is possible to extract the amount of thinning or thickening of a character that cannot be extracted by the above-mentioned midpoint dictionary pattern. However, the density extraction data is input from the corrected image memory 16, and the character thinning extraction data is input from the corrected image memory 17.

【0016】図5は外点辞書パターンの一例を示す図で
ある。外点辞書パターンは、上述のごとく補正した後、
抽出された文字と比較されるものであり、切出した文字
枠内をラベル画像に変換し、膨張処理を行なって、膨張
画像と膨張前画像の重なりのない文字座標を抽出したも
のである。したがって、この標準パターンとの比較によ
り、文字画像のにじみ,流れ,太りなどの欠陥を抽出す
ることができる。
FIG. 5 is a diagram showing an example of the external point dictionary pattern. After correcting the external point dictionary pattern as described above,
This is to be compared with the extracted character, and the inside of the cut out character frame is converted into a label image and expansion processing is performed to extract the character coordinates where the expansion image and the pre-expansion image do not overlap. Therefore, by comparison with this standard pattern, it is possible to extract defects such as bleeding, flow, and thickening of the character image.

【0017】このように、上述のごとく計数結果が辞書
パターンとの比較により許容値以上と判断された場合
に、欠けやにじみとして検出される。
As described above, when the count result is judged to be the allowable value or more by comparison with the dictionary pattern as described above, it is detected as missing or bleeding.

【0018】一方、背景部(罫線枠内)の汚れを検知す
るために、文字座標にマスクをし、罫線枠内背景部をラ
ベル画像に変換する。この処理で抽出された画像の連結
数から汚れの抽出が行なわれる。図6は背景部分画像を
連結するために変換されたラベル画像の一例を示す図で
ある。
On the other hand, in order to detect the contamination of the background portion (inside the ruled line frame), the character coordinates are masked and the background portion in the ruled line frame is converted into a label image. Contamination is extracted from the number of connected images extracted in this process. FIG. 6 is a diagram showing an example of the label image converted to connect the background partial images.

【0019】印刷不良の種類としては、たとえば「欠
け」,「ボイド」,「切れ」,「にじみ」,「細り」,
「かすれ」,「太り」,「二重印刷」,「位置ずれ」,
「傾き」,「背景部の汚れ」,「文字列内の汚れ」の1
1種類に選別される。
The types of printing defects include, for example, "chip", "void", "cut", "bleed", "thin",
"Blurring", "thickness", "double printing", "misalignment",
1 of "tilt", "background stain", and "dirt stain"
One type is selected.

【0020】図7はこの発明の一実施例の動作を説明す
るためのフローチャートである。次に、図1ないし図7
を参照してこの発明の一実施例の具体的な動作について
説明する。被測定物Sに光源21から光が照射され、そ
の反射光が画像入力センサ22によって検知され、その
出力が文字画像データとして画像入力回路23に取り込
まれる。画像入力回路23の出力は濃淡の画像データと
して画像メモリ17に記憶されるとともに、2値化回路
24で2値化され、画像メモリ16に記憶される。CP
U11はステップ(図示ではSPと略称する)SP1に
おいて、画像メモリ16に記憶された画像から罫線枠の
座標を抽出し、ステップSP2において、画像データの
位置補正を行なう。この際、罫線枠の外の不要部の座標
データは0にされる。次に、CPU11は文字検査領域
の画像データから文字列の座標を求める。ステップSP
3において、その座標データから文字列の傾き量が求め
られる。なお、傾き量は文字列の重心より主軸角を求め
るのが一般的であるが、この手法に限定されるものでは
ない。
FIG. 7 is a flow chart for explaining the operation of one embodiment of the present invention. Next, FIGS.
A specific operation of the embodiment of the present invention will be described with reference to FIG. Light is emitted from the light source 21 to the object to be measured S, the reflected light is detected by the image input sensor 22, and the output thereof is taken into the image input circuit 23 as character image data. The output of the image input circuit 23 is stored in the image memory 17 as grayscale image data, binarized by the binarization circuit 24, and stored in the image memory 16. CP
U11 extracts the coordinates of the ruled line frame from the image stored in the image memory 16 in step (abbreviated as SP in the figure) SP1, and corrects the position of the image data in step SP2. At this time, the coordinate data of the unnecessary portion outside the ruled line frame is set to zero. Next, the CPU 11 obtains the coordinates of the character string from the image data of the character inspection area. Step SP
In 3, the inclination amount of the character string is obtained from the coordinate data. The inclination amount is generally obtained by determining the principal axis angle from the center of gravity of the character string, but the method is not limited to this method.

【0021】次に、CPU11はステップSP4におい
て、求めた傾き量の回転補正を文字列画像に対して行な
う。この補正は、予め設定された許容傾き角以内の傾き
量を抽出した場合のみ行なわれる。次に、SP5におい
て、補正された文字列に対して、文字ごとの矩形枠の切
出し作業が行なわれる。この作業は、X,Y軸それぞれ
の画像濃度投影にて行なうのが好ましいが、この手法に
限定されるものではない。このように、抽出された矩形
サイズは、ステップSP6において、標準辞書の文字数
と比較され、結果が基準値と大きく異なる場合は、印刷
行程の異常かあるいは検査条件の異常と判断され、ステ
ップSP12に進む。次に、抽出矩形領域数が標準辞書
の数と異なる場合は、文字間の汚れまたは検査領域背景
部の汚れとして選別される。
Next, in step SP4, the CPU 11 performs rotation correction of the calculated tilt amount on the character string image. This correction is performed only when a tilt amount within a preset allowable tilt angle is extracted. Next, in SP5, a rectangular frame is cut out for each character from the corrected character string. This work is preferably performed by projecting the image density of each of the X and Y axes, but is not limited to this method. In this way, the extracted rectangle size is compared with the number of characters in the standard dictionary in step SP6. If the result is significantly different from the reference value, it is determined that the printing process is abnormal or the inspection condition is abnormal, and the process proceeds to step SP12. move on. Next, when the number of extracted rectangular areas is different from the number in the standard dictionary, it is selected as dirt between characters or dirt on the background area of the inspection area.

【0022】次に、矩形領域内の文字は、ステップSP
8〜SP10において、前述の各特徴を抽出して標準辞
書パターンと順番に比較され、選別される。すなわち、
ステップSP8において、中点辞書パターンと比較さ
れ、ステップSP9において濃度辞書パターンと比較さ
れ、ステップSP10において外点辞書パターンと比較
される。なお、各選別項目の基準値は、文字ごとに設定
するのが好ましい。次に、ステップSP11において、
罫線内背景部の画像連結数が計数され、背景の汚れが抽
出される。最後に、ステップSP12において、抽出情
報の総合判定が行なわれ、ステップSP13において出
力回路19に結果が出力される。これにより、一連の処
理が終了すると、ステップSP1に戻り、上述の処理が
繰返される。しかし、上述の処理において、異常または
検査条件異常を判定するために、ステップSP1に戻る
前に、ステップSP14において不良と判定した結果の
連続性が確認され、連続する場合はステップSP15に
おいて行程異常であるかあるいは検査条件設定異常と判
断し、そのメッセージを出力回路19へ出力した後、処
理が中断される。
Next, the characters in the rectangular area are determined in step SP.
In 8 to SP10, the above-mentioned respective features are extracted and sequentially compared with the standard dictionary pattern to be selected. That is,
In step SP8, it is compared with the middle point dictionary pattern, in step SP9 it is compared with the density dictionary pattern, and in step SP10 it is compared with the outer point dictionary pattern. The reference value of each selection item is preferably set for each character. Next, in step SP11,
The number of connected images in the background portion inside the ruled line is counted, and the background stain is extracted. Finally, in step SP12, comprehensive determination of the extracted information is performed, and in step SP13, the result is output to the output circuit 19. As a result, when the series of processes is completed, the process returns to step SP1 and the above process is repeated. However, in the above-described process, in order to determine an abnormality or an inspection condition abnormality, the continuity of the result determined to be defective in step SP14 is confirmed before returning to step SP1, and if continuous, the process is abnormal in step SP15. If there is, or it is determined that the inspection condition setting is abnormal, and the message is output to the output circuit 19, the process is interrupted.

【0023】なお、上述の実施例では、罫線枠を含む所
定位置へ印刷される文字を搬送中に検査する例を示した
が、これに限らず、たとえば静止状態での検査が可能な
ことは勿論のこと、文字も漢字,カタカナ,平仮名,ア
ルファベットの検査にも容易に適用できる。
In the above-described embodiment, an example in which a character to be printed at a predetermined position including a ruled line frame is inspected during conveyance is shown. However, the present invention is not limited to this, and it is possible to inspect in a stationary state, for example. Of course, the characters can also be easily applied to the inspection of kanji, katakana, hiragana, and alphabets.

【0024】[0024]

【発明の効果】以上のように、この発明によれば、罫線
枠を含む文字の検査を行なう際に、罫線枠の位置,傾き
を検知し、罫線枠の位置ずれを基準値と比較し、抽出し
た画像全体を回転を含む位置補正を行ない、次に補正さ
れた画像の文字検査領域から文字列の傾きを検知して文
字列の回転補正を行ない、補正された文字列画像に対し
て各文字の切出しを濃度投影法にて行なわれるように
し、文字が印刷された被測定物が搬送中であっても、高
精度にその印刷文字の品質を検査することができる。
As described above, according to the present invention, when a character including a ruled line frame is inspected, the position and inclination of the ruled line frame are detected, and the positional deviation of the ruled line frame is compared with a reference value. Position correction including rotation is performed on the entire extracted image, then rotation of the character string is corrected by detecting the inclination of the character string from the character inspection area of the corrected image, and each corrected character string image is corrected. Since the character is cut out by the density projection method, the quality of the printed character can be inspected with high accuracy even when the measured object on which the character is printed is being conveyed.

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

【図1】この発明の一実施例の全体の構成を示すブロッ
ク図である。
FIG. 1 is a block diagram showing the overall configuration of an embodiment of the present invention.

【図2】標準辞書パターン用文字の一例を示す図であ
る。
FIG. 2 is a diagram showing an example of characters for a standard dictionary pattern.

【図3】中点辞書パターンの一例を示す図である。FIG. 3 is a diagram showing an example of a midpoint dictionary pattern.

【図4】濃度辞書パターンの一例を示す図である。FIG. 4 is a diagram showing an example of a density dictionary pattern.

【図5】回転辞書パターンの一例を示す図である。FIG. 5 is a diagram showing an example of a rotating dictionary pattern.

【図6】背景部のラベル画像の一例を示す図である。FIG. 6 is a diagram showing an example of a label image of a background portion.

【図7】この発明の一実施例の動作を説明するためのフ
ローチャートである。
FIG. 7 is a flow chart for explaining the operation of the embodiment of the present invention.

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

11 CPU 12 データバス 13 アドレスバス 14 プログラムメモリ 15 作業用メモリ 16 位置画像メモリ 17 濃淡画像メモリ 18 辞書パターンメモリ 19 出力回路 21 光源 22 画像入力センサ 23 画像入力回路 24 2値化回路 11 CPU 12 data bus 13 address bus 14 program memory 15 working memory 16 position image memory 17 grayscale image memory 18 dictionary pattern memory 19 output circuit 21 light source 22 image input sensor 23 image input circuit 24 binarization circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06K 9/32 9/34 9/56 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06K 9/32 9/34 9/56

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 罫線枠を含む特定領域の文字を読取って
収集する収集手段と、 前記収集手段によって収集された画像から罫線枠の座標
を抽出し、罫線の基準値からのずれ量を抽出し、収集画
像全体を回転補正する第1の補正手段と、 前記第1の補正手段で補正された画像から文字列の座標
を抽出し、文字列の傾き量から文字領域画像のみを回転
補正する第2の回転補正手段と、 前記第2の回転補正手段で補正された画像から文字の外
接方形を抽出する抽出手段と、 予め基準となる文字情報を記憶する辞書記憶手段と、 前記抽出手段によって抽出された外接方形内文字の部分
的な欠落を前記辞書記憶手段に記憶されている基準値と
比較して判定する第1の処理手段と、 前記抽出手段によって抽出された外接方形内文字の大き
さを前記辞書記憶手段に記憶されている基準値と比較し
て判定する第2の処理手段と、 前記抽出手段によって抽出された外接方形内文字の濃度
を前記辞書記憶手段に記憶されている基準値と比較して
判定する第3の処理手段と、 前記抽出手段によって抽出された外接方形内文字の位置
ずれを前記第1の補正手段で補正された罫線の基準位置
からの相対位置ずれを前記辞書記憶手段に記憶されてい
る基準値と比較して判定する第4の処理手段と、 前記抽出手段によって抽出された外接方形内文字の汚れ
を前記辞書記憶手段に記憶されている基準値と比較して
判定する第5の処理手段と、 前記第1の補正手段で補正された罫線画像と前記第2の
補正手段で補正された文字領域間の背景画像の汚れを抽
出して判定する第6の処理手段と、 前記第1ないし第6の処理手段からの結果を総合的に判
断して前記収集手段で収集された文字の状態を選別する
選別手段を備えた印刷物の検査装置。
1. A collecting unit that reads and collects characters in a specific area including a ruled line frame, coordinates of the ruled line frame are extracted from an image collected by the collecting unit, and a deviation amount from a reference value of the ruled line is extracted. A first correction means for rotationally correcting the entire collected image; a coordinate of a character string extracted from the image corrected by the first correction means; and a rotational correction for only the character area image based on the inclination amount of the character string. 2 rotation correction means, extraction means for extracting a circumscribed rectangle of a character from the image corrected by the second rotation correction means, dictionary storage means for storing reference character information in advance, and extraction by the extraction means First processing means for determining a partial omission of the extracted circumscribed rectangular characters by comparing with a reference value stored in the dictionary storage means; and size of the circumscribed rectangular characters extracted by the extraction means. The dictionary memory Second processing means for making a judgment by comparing with a reference value stored in the means, and comparing the density of the characters in the circumscribed rectangle extracted by the extracting means with the reference value stored in the dictionary storage means. Third processing means for judging, and relative position deviation from the reference position of the ruled line corrected by the first correction means for the positional deviation of the circumscribing rectangle extracted by the extraction means is stored in the dictionary storage means. A fourth processing means for making a determination by comparing with a reference value stored in the dictionary; and a fourth processing means for making a determination by comparing the dirt of the characters in the circumscribing rectangle extracted by the extracting means with a reference value stored in the dictionary storage means. 5) processing means, 6th processing means for extracting and determining dirt on the background image between the ruled line image corrected by the first correction means and the character area corrected by the second correction means The first to sixth processes Comprehensive evaluation to the inspection apparatus of a printed material having a selection means for selecting the state of characters collected by the collecting means results from the means.
JP31171993A 1993-12-13 1993-12-13 Print inspection equipment Expired - Lifetime JP3473068B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP31171993A JP3473068B2 (en) 1993-12-13 1993-12-13 Print inspection equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP31171993A JP3473068B2 (en) 1993-12-13 1993-12-13 Print inspection equipment

Publications (2)

Publication Number Publication Date
JPH07159340A true JPH07159340A (en) 1995-06-23
JP3473068B2 JP3473068B2 (en) 2003-12-02

Family

ID=18020653

Family Applications (1)

Application Number Title Priority Date Filing Date
JP31171993A Expired - Lifetime JP3473068B2 (en) 1993-12-13 1993-12-13 Print inspection equipment

Country Status (1)

Country Link
JP (1) JP3473068B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043235A (en) * 2003-07-23 2005-02-17 Fuji Xerox Co Ltd Device and program for inspecting printed matter
JP2011123106A (en) * 2009-12-08 2011-06-23 Canon Inc Inspection apparatus, control method and program of inspection apparatus

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA3021477C (en) * 2016-05-13 2022-11-08 Bobst Mex Sa A method of inspecting the quality of blanks, in particular of blanks to be processed into packaging material, and quality inspection system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005043235A (en) * 2003-07-23 2005-02-17 Fuji Xerox Co Ltd Device and program for inspecting printed matter
JP2011123106A (en) * 2009-12-08 2011-06-23 Canon Inc Inspection apparatus, control method and program of inspection apparatus

Also Published As

Publication number Publication date
JP3473068B2 (en) 2003-12-02

Similar Documents

Publication Publication Date Title
US4758782A (en) Method and apparatus for inspecting printed circuit board
JP3132565B2 (en) Defect inspection method and apparatus
JPH0782542B2 (en) Print inspection method, print inspection device, and automatic printed matter distribution system
JP3473068B2 (en) Print inspection equipment
JP2000163579A (en) Appearance inspection method and device
JP3243541B2 (en) Tablet appearance inspection method
JPH09281055A (en) Inspection method for chip
WO1996005571A1 (en) Method and apparatus for locating and extracting data from a two-dimensional code
JPH08272078A (en) Method and apparatus for inspecting pattern
GB2102122A (en) Detecting defects in a pattern
JP3107264B2 (en) Printed board inspection method and apparatus and printed board intensive inspection system
JPH06109446A (en) Inspection apparatus for wiring pattern
TWI273216B (en) Method for inspecting patterns
JPH0324447A (en) Bottle-mouth inspecting method
JPH09147056A (en) Method and device for checking appearance of mark
JPH102725A (en) Visual inspection device for tape carrier package
JPH05342414A (en) Template preparing device and pattern recognizing device
JPH07175926A (en) Pattern inspection device
JP3015485B2 (en) Inspection equipment for printed matter
JP3751389B2 (en) Wiring pattern inspection method and apparatus
JPH10269357A (en) Method for inspecting printed matter
JPS6319078A (en) External goods appearance inspection instrument
JPH06309437A (en) Pattern inspecting device
JPH09190500A (en) Pattern quality inspection method
JPH05197132A (en) Pattern inspecting device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20030819

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070919

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080919

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080919

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090919

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100919

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100919

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130919

Year of fee payment: 10

EXPY Cancellation because of completion of term