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
JP3237906B2 - Inspection equipment for printed matter - Google Patents
[go: Go Back, main page]

JP3237906B2 - Inspection equipment for printed matter - Google Patents

Inspection equipment for printed matter

Info

Publication number
JP3237906B2
JP3237906B2 JP19720992A JP19720992A JP3237906B2 JP 3237906 B2 JP3237906 B2 JP 3237906B2 JP 19720992 A JP19720992 A JP 19720992A JP 19720992 A JP19720992 A JP 19720992A JP 3237906 B2 JP3237906 B2 JP 3237906B2
Authority
JP
Japan
Prior art keywords
character
character string
density
string
image data
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
JP19720992A
Other languages
Japanese (ja)
Other versions
JPH0644404A (en
Inventor
利勇 平沢
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp filed Critical Toshiba Corp
Priority to JP19720992A priority Critical patent/JP3237906B2/en
Publication of JPH0644404A publication Critical patent/JPH0644404A/en
Application granted granted Critical
Publication of JP3237906B2 publication Critical patent/JP3237906B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、たとえば、2つの同じ
文字列画像を有する印刷物の有効性を検査する印刷物の
検査装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printed matter inspection apparatus for checking the effectiveness of a printed matter having, for example, two identical character string images.

【0002】[0002]

【従来の技術】従来、模様の上に文字が印刷されている
印刷物における文字の印刷状態を検査する装置に関して
は、たとえば、特開平2−56688号公報に示される
ように、印刷文字の濃淡画像データから濃度ヒストグラ
ムを作成し、その形状から適当なしきい値を決定し、2
値化処理を施した後、文字抽出を行なっていた。
2. Description of the Related Art Conventionally, as to an apparatus for inspecting the printing state of a character in a printed matter in which a character is printed on a pattern, for example, as disclosed in Japanese Patent Application Laid-Open No. 2-56888, a shaded image of a printed character is disclosed. A density histogram is created from the data, an appropriate threshold is determined from the shape,
After performing the value conversion process, character extraction was performed.

【0003】[0003]

【発明が解決しようとする課題】しかし、上記したよう
な従来の方法では、文字と模様との反射明度が近い場
合、濃度ヒストグラムにおけるそれぞれの濃度分布が分
離しておらず、文字を充分に抽出し得る2値化のしきい
値の決定が困難であり、そのため、高精度の検査が行え
ないという問題があった。
However, in the above-described conventional method, when the reflection brightness of a character and a pattern are close, the respective density distributions in the density histogram are not separated, and the character is sufficiently extracted. It is difficult to determine a possible threshold value for binarization, and there is a problem that high-precision inspection cannot be performed.

【0004】そこで、本発明は、文字部と背景部との濃
度差が小さい場合においても、文字列抽出のための2値
化のしきい値を最適値に設定でき、文字列のみを高い精
度で抽出して高精度の検査が可能となる印刷物の検査装
置を提供することを目的とする。
Therefore, according to the present invention, even when the density difference between a character portion and a background portion is small, the threshold value for binarization for extracting a character string can be set to an optimum value, and only a character string can be obtained with high precision. It is an object of the present invention to provide a printed matter inspection apparatus which can perform a high-accuracy inspection by extracting the printed matter.

【0005】[0005]

【課題を解決するための手段】本発明の印刷物の検査装
置は、2つ以上の同じ文字列を有し、かつ、これら文字
列のうち少なくとも1つの文字列は文字部と背景部との
濃度差が大きく、それ以外の他の文字列は文字部と背景
部との濃度差が小さい印刷物から画像データを収集する
画像入力手段と、この画像入力手段により収集された画
像データを2値化することにより、前記文字部と背景部
との濃度差が大きい文字列を抽出する第1文字列抽出
手段と、この第1文字列抽出手段により抽出された文
字列の濃度的特徴量として、各文字ごとの文字部画素数
および文字部全画素数を算出する濃度的特徴量算出手段
と、前記第1の文字列抽出手段における文字部と背景部
との濃度差が大きい文字列の2値化結果、および、前記
濃度的特徴量算出手段により濃度的特徴量として算出さ
れた各文字ごとの文字部画素数および文字部全画素数に
基づき、前記画像入力手段により収集された画像データ
を2値化することにより、前記文字部と背景部との濃度
差が小さい文字列を抽出する第2文字列抽出手段と、
前記第1文字列抽出手段および第2文字列抽出手段
より抽出された前記2つ以上の文字列をそれぞれ認識
する認識手段と、この認識手段により認識された前記2
つ以上の文字列を照合し、各文字列が一致している場合
に前記印刷物が有効であると判定する判定手段と具備し
ている。
Inspection apparatus printed material of the present invention According to an aspect of the possess two or more the same string, and these characters
At least one of the strings is composed of a character portion and a background portion.
The density difference is large, and the other character strings are
An image input means for collecting image data density difference from a small printed material with the parts, by binarizing the more collected image data to the image input unit, the character portion and the background portion
The first character string extraction unit, as the concentration characteristic of more extracted character string into the first character string extraction unit, a character portion number of pixels for each character to extract character strings is large density difference between the
Density feature calculating means for calculating the total number of pixels of the character part and the character part and the background part in the first character string extracting means
The binarization result of a character string having a large density difference with
Calculated as a density feature by the density feature calculation means.
The number of characters in the character part and the total number of characters in the character part
Based on image data collected by the image input means.
Is binarized to obtain the density between the character portion and the background portion.
A second character string extraction means for extracting the difference is less string,
Said first character string extraction unit and the second character string extraction means respectively recognizing means more extracted the two or more strings to <br/>, said recognized by the recognition unit 2
Matches two or more strings , and each string matches
And determining means for determining that the printed matter is valid .

【0006】[0006]

【作用】同一の文字列が複数箇所に印刷されていて、そ
のうち少なくとも1つの文字列は文字部と背景部との濃
度差が大きく、それ以外の他の文字列は文字部と背景部
との濃度差が小さい印刷物において、文字部と背景部と
の濃度差が小さい文字列を2値化して抽出する際、文字
部と背景部との濃度差が大きい文字列の2値化結果、お
よび、各文字ごとの文字部画素数および文字部全画素数
に基づき2値化を行なうことにより、文字部と背景部と
の濃度差が小さい場合においても、文字列抽出のための
2値化のしきい値を最適値に設定して、文字列のみを高
い精度で抽出できる。したがって、印刷物の有効性検査
を高精度に行なうことが可能となる。
[Function] If the same character string is printed in multiple places,
At least one of the character strings is
The other character strings have a large difference and the text part and the background part
In printed matter with a small density difference between
When binarizing and extracting a character string with a small density difference
Result of binarization of a character string with a large density difference between the
And the number of pixels in the character part and the total number of pixels in the character part for each character
, The threshold value of the binarization for extracting the character string is set to the optimum value even when the density difference between the character part and the background part is small, and only the character string is extracted. Can be extracted with high accuracy. Therefore, it is possible to perform the validity inspection of the printed matter with high accuracy.

【0007】[0007]

【実施例】以下、本発明の一実施例について図面を参照
して説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0008】図1は、本実施例に係る印刷物の検査装置
の概略構成を示すものである。図において、11は本装
置全体の制御および各種画像処理を行なうCPU(セン
トラル・プロセッシング・ユニット)であり、このCP
U11には、印刷物から画像データを収集するイメージ
スキャナ12、ディスク装置13、ディスプレイ装置1
4、動作の指示などを入力するキーボード15、画像メ
モリ16,17,18、参照用文字列における各文字の
特徴量を格納するメモリ19、および、初期値や基準値
などを記憶するためのメモリ20が接続されている。
FIG. 1 shows a schematic configuration of a printed matter inspection apparatus according to this embodiment. In the figure, reference numeral 11 denotes a CPU (Central Processing Unit) for controlling the entire apparatus and performing various image processing.
U11 includes an image scanner 12, a disk device 13, and a display device 1 for collecting image data from printed matter.
4. Keyboard 15 for inputting operation instructions and the like, image memories 16, 17, and 18, memory 19 for storing a feature amount of each character in a reference character string, and memory for storing initial values, reference values, and the like. 20 are connected.

【0009】画像メモリ16は、イメージスキャナ12
により収集される原画像データを格納するものであり、
画像メモリ17は、画像入力系の高周波ノイズの抑制処
理やエッジのコントラストを強調するためのフィルタリ
ング処理を施したデータを格納するものである。画像メ
モリ18は、文字抽出に用いる2値画像データを格納す
るものである。メモリ19は、2値化の際に用いる参照
用文字列に関する特徴量(詳細については後述)を格納
するものである。
The image memory 16 stores the image scanner 12
And stores the original image data collected by
The image memory 17 stores data that has been subjected to high-frequency noise suppression processing of an image input system and filtering processing for enhancing edge contrast. The image memory 18 stores binary image data used for character extraction. The memory 19 stores a feature amount (details will be described later) relating to a reference character string used in binarization.

【0010】図2は、検査対象となる印刷物の一例を示
している。この印刷物31には、たとえば、同一の文字
列が2箇所に印刷され、左上部に印刷された一方の文字
列32aは、文字と模様との反射明度の差が大きく(文
字部と背景部との濃度差が大きく)、一般的に文字抽出
し易い文字列であり、右下部に印刷された他方の文字列
32bは、文字と模様との反射明度の差が小さく(文字
部と背景部との濃度差が小さく)、一般的に文字抽出し
難い文字列であると仮定する。
FIG. 2 shows an example of a printed material to be inspected. In the printed matter 31, for example, the same character string is printed at two places, and one character string 32a printed at the upper left has a large difference in the reflection brightness between the character and the pattern (the character part and the background part have a large difference). The character string 32b printed at the lower right has a small difference in the reflection brightness between the character and the pattern (the character part and the background part have a small difference in density). It is assumed that the character string is generally difficult to extract characters.

【0011】次に、図2の印刷物31を例にとって、図
3の印刷物検査の処理手順を示すフローチャートを参照
して本発明の検査方法を説明する。まず、イメージスキ
ャナ12によって印刷物31の画像データが読取られ、
収集された濃淡画像データ(以下、濃度が低いことは明
度が低いこととする)は画像メモリ16に格納される
(S1)。
Next, taking the printed matter 31 of FIG. 2 as an example, the inspection method of the present invention will be described with reference to the flowchart of FIG. First, the image data of the printed matter 31 is read by the image scanner 12,
The collected density image data (hereinafter, low density means low lightness) is stored in the image memory 16 (S1).

【0012】画像データの収集が終了すると、まず、印
刷物31の左上部の文字列32aを抽出して、その特徴
量を算出する(S2)。この算出された特微量はメモリ
19に格納され、一方の文字列の文字抽出の参照データ
となる。ここで、ステップS2における参照用文字列の
抽出および特微量算出の方法について説明する。
When the collection of the image data is completed, first, the character string 32a at the upper left of the printed matter 31 is extracted and its characteristic amount is calculated (S2). The calculated special amount is stored in the memory 19 and becomes reference data for character extraction of one character string. Here, a method of extracting a reference character string and calculating a very small amount in step S2 will be described.

【0013】図4は、上記参照用文字列の抽出および特
微量算出を行なう際の処理手順の概略を示すフローチャ
ートである。まず、抽出しようとする文字列を含む大ま
かな領域(たとえば、i×j画素)を、キーボード15
を用いて指定する(S8)。そして、画像メモリ16内
の濃淡画像データに対し、上記指定領域内の画像データ
について濃度ヒストグラムを作成すると、一般に図5に
示すように、文字部および模様部を示す2つの山が現わ
れる。ここで、たとえば濃度ヒストグラムを解析するこ
とにより、2つの山(極大値)間でのヒストグラムの極
小値を与える濃度値tmを求め(S9)、このtmによ
って濃淡画像データをしきい値処理することにより、左
上部の文字列32aを2値画像として抽出する(S1
0)。
FIG. 4 is a flowchart showing an outline of a processing procedure for extracting the reference character string and calculating the extraordinary amount. First, a rough area (for example, i × j pixels) including a character string to be extracted is stored in the keyboard 15.
(S8). Then, when a density histogram is created for the grayscale image data in the image memory 16 with respect to the image data in the designated area, two peaks indicating a character portion and a pattern portion generally appear as shown in FIG. Here, for example, by analyzing a density histogram, a density value tm that gives a minimum value of the histogram between two peaks (maximum values) is obtained (S9), and threshold processing is performed on the grayscale image data based on the tm. Extracts the upper left character string 32a as a binary image (S1).
0).

【0014】次に、抽出した2値化データについて、横
方向および縦方向にそれぞれ抽出画素で累積することに
より、図6に示すような周辺分布を求める(S11)。
横方向に累積した周辺分布から、たとえば、「非0」分
布の範囲(つまり、文字画像に係る画素が1画素でも存
在する範囲)を文字領域の縦方向とし、また、同様に縦
方向に累積したときの分布から、たとえば、複数の「非
0」分布の範囲を各文字の横方向として、図7に示すよ
うに各文字の領域を検出して文字抽出を行なう(S1
2)。
Next, a marginal distribution as shown in FIG. 6 is obtained by accumulating the extracted binarized data in the horizontal direction and the vertical direction with the extracted pixels, respectively (S11).
From the peripheral distribution accumulated in the horizontal direction, for example, the range of the “non-zero” distribution (that is, the range in which even one pixel related to the character image exists) is set as the vertical direction of the character area, and similarly, the area is accumulated in the vertical direction. From the distribution at this time, for example, a range of a plurality of "non-zero" distributions is set as a horizontal direction of each character, and a region of each character is detected as shown in FIG. 7 to perform character extraction (S1).
2).

【0015】文字の抽出が終了すると、後の2値化処理
で用いる文字の特微量として、各文字における文字部の
画素数、および、それらの総和である文字列の全画素数
を計数し、それを文字の特徴量としてメモリ19に格納
する(S13)。
When the extraction of characters is completed, the number of pixels in the character portion of each character and the total number of pixels in the character string, which is the sum of the characters, are counted as special amounts of characters used in the subsequent binarization processing. This is stored in the memory 19 as a character feature amount (S13).

【0016】このようにして、参照用文字列32aの抽
出、および、その文字の特微量(画素数)の算出を行な
うと、次に、抽出された参照用文字列32aの各文字に
ついて、辞書パターンとの比較処理を行なうことにより
文字の認識を行ない、その認識結果をメモリ20に格納
する(S3)。
After extracting the reference character string 32a and calculating the extraordinary amount (the number of pixels) of the character in this manner, the dictionary of the extracted character string 32a is then extracted from the dictionary. Characters are recognized by performing comparison processing with the pattern, and the recognition result is stored in the memory 20 (S3).

【0017】参照用文字列32aの認識が終了すると、
次に、文字と模様との反射明度が近いために、文字抽出
が困難な右下部の文字列32bについて、メモリ19に
格納した左上部の参照用文字列32aの特微量を用いて
文字抽出を行なう(S4)。ここで、ステップS4にお
ける文字列の抽出方法について説明する。
When the recognition of the reference character string 32a is completed,
Next, for the character string 32b at the lower right where it is difficult to extract characters due to the closeness of reflection between the character and the pattern, character extraction is performed using the special amount of the reference character string 32a at the upper left stored in the memory 19. Perform (S4). Here, a method of extracting a character string in step S4 will be described.

【0018】図8は、上記文字列の抽出を行なう際の処
理手順の概略を示すフローチャートである。まず、画像
メモリ16に格納された濃淡画像データから、ステップ
S8と同様に、抽出しようとする文字列を含む大まかな
領域(たとえば、i×j画素)を、キーボード15を用
いて指定する(S14)。
FIG. 8 is a flowchart showing an outline of a processing procedure for extracting the character string. First, a rough area (for example, i × j pixels) including a character string to be extracted is specified from the grayscale image data stored in the image memory 16 using the keyboard 15 as in step S8 (S14). ).

【0019】次に、上記指定された領域内の画像データ
に対してフィルタリング処理を行ない、その結果を画像
メモリ17に格納する(S15)。このフィルタリング
処理の一例は、たとえば、図12に示すような3×3マ
スクの空間フィルタを用いた平滑化であり、図9に示す
ように、文字列の背景部に存在する高周波成分を含む斜
線などの繰返しパターンPを除去するのに有効である。
Next, a filtering process is performed on the image data in the designated area, and the result is stored in the image memory 17 (S15). An example of this filtering processing is, for example, smoothing using a spatial filter of a 3 × 3 mask as shown in FIG. 12, and as shown in FIG. 9, an oblique line containing a high-frequency component existing in the background portion of the character string. This is effective for removing the repetitive pattern P.

【0020】フィルタリング処理が終了すると、画像メ
モリ16内の濃淡画像データのうち、上記指定領域内の
画像データについて濃度ヒストグラムを作成し、文字領
域を切出すためのしいき値を決定する。ところが、図1
1に示すように、右下部の文字列32bは、文字と模様
との反射明度が近いため、濃度ヒストグラムが1つの山
になってしまう。そこで、文字列32aと文字列32b
の文字部全画素数がほぼ一致し、背景部に比べて文字部
の濃度が低いという前提で、先にメモリ19に格納して
おいた文字列32aの文字部全画素数を用いて、ステッ
プS4で指定した全画素数(i×j)に対する文字列3
2aの文字部全画素数の占める割合r%を算出し、濃度
ヒストグラムの累積値の低い方からr%になる濃度値を
求める(S16)。
When the filtering process is completed, a density histogram is created for the image data in the designated area among the grayscale image data in the image memory 16, and a threshold value for cutting out the character area is determined. However, FIG.
As shown in FIG. 1, in the character string 32b at the lower right, since the reflection lightness between the character and the pattern is close, the density histogram becomes one peak. Therefore, the character strings 32a and 32b
Of the character string 32a previously stored in the memory 19, based on the assumption that the total number of pixels in the character part substantially matches and the density of the character part is lower than that of the background part. Character string 3 for the total number of pixels (i × j) specified in S4
The ratio r% of the total number of pixels in the character portion of 2a is calculated, and a density value which becomes r% from the lower cumulative value of the density histogram is obtained (S16).

【0021】こうして求めた濃度値をしきい値として文
字列32bの2値化を行ない、その結果を画像メモリ1
8に格納しておく(S17)。この後、文字列32aの
2値画像から周辺分布および各文字領域を求めたステッ
プS11,S12と同様の手順で、画像メモリ18に格
納した2値画像から図10に示すような周辺分布を求め
(S18)、各文字領域を検出する(S19)。
The character string 32b is binarized using the density value thus obtained as a threshold value, and the result is stored in the image memory 1.
8 (S17). Thereafter, a marginal distribution as shown in FIG. 10 is obtained from the binary image stored in the image memory 18 in the same procedure as in steps S11 and S12 in which the marginal distribution and each character area are obtained from the binary image of the character string 32a. (S18), each character area is detected (S19).

【0022】このとき、前記一様なしきい値により得ら
れる2値画像は、たとえば、図13(a)に示すよう
に、文字「M」のようなかすれた文字を含んでしまう。
そこで、文字かすれをなくすべく、しきい値レベルを上
げると、図13(b)に示すように、文字「682」の
背景にノイズ成分Nが重なってしまう。すなわち、ステ
ップS17のような全領域を一様なしきい値で2値化す
ることでは、充分な文字抽出ができない。したがって、
ステップS15で格納したフィルタリング後の濃淡画像
データに対して、さらに細かい領域、たとえば、1文字
ごとにしきい値を再設定して文字抽出を行なう。
At this time, the binary image obtained by the uniform threshold value contains a faint character such as the character "M" as shown in FIG.
Therefore, if the threshold level is increased to eliminate blurring of the character, the noise component N overlaps the background of the character “682” as shown in FIG. That is, by binarizing the entire area with a uniform threshold as in step S17, sufficient character extraction cannot be performed. Therefore,
With respect to the grayscale image data after filtering stored in step S15, character extraction is performed by resetting a threshold value for a finer region, for example, for each character.

【0023】すなわち、ステップS16と同様に、メモ
リ19に格納した文字列32aの各文字の画素数を用い
て、各文字領域の全画素数に対する各文字部画素数の占
める割合r1,r2,…rn%(n=文字数)を計算し、各
文字領域における濃度ヒストグラムの累積値が濃度の低
い方からr1,r2,…rn%になる各濃度値を求める(S
20)。これらの濃度値を各文字ごとのしきい値として
各文字領域ごとに2値化処理を行ない、その結果を画像
メモリ18に格納して文字抽出を終了する(S21)。
That is, as in step S16, using the number of pixels of each character of the character string 32a stored in the memory 19, the ratios r1, r2,. rn% (n = the number of characters) is calculated, and the respective density values at which the cumulative value of the density histogram in each character area becomes r1, r2,.
20). Using these density values as threshold values for each character, a binarization process is performed for each character area, the result is stored in the image memory 18, and character extraction ends (S21).

【0024】このようにして、文字列32bの抽出を行
なうと、次に、文字列32aと同様に、文字列32bの
各文字について文字認識を行ない、その結果をメモリ2
0に格納する(S5)。
When the character string 32b is extracted in this way, next, similar to the character string 32a, character recognition is performed for each character in the character string 32b, and the result is stored in the memory 2.
0 (S5).

【0025】以上のようにして、印刷物31に印刷され
た文字と模様との反射明度が離れた文字列32aと、文
字と模様との反射明度が近い文字列32bの抽出、およ
び、認識処理を行なった後、最後に2つの同一文字列3
2a,32bに対する認識結果を互いに照合して(S
6)、たとえば、2つの同一文字列32a,32bの各
文字認識結果が全て一致したときにのみ、印刷物31を
有効であるとするなどの、印刷物31の有効性の判定を
行なう(S7)。
As described above, the character string 32a in which the reflection brightness between the characters and the pattern printed on the printed matter 31 is different and the character string 32b in which the reflection brightness between the characters and the pattern is close and the recognition process are performed. After doing, finally two identical strings 3
The recognition results for 2a and 32b are compared with each other (S
6) For example, the validity of the printed matter 31 is determined such that the printed matter 31 is valid only when all the character recognition results of the two identical character strings 32a and 32b match, for example (S7).

【0026】このように、たとえば、同一文字列が2箇
所に印刷されていて、一方の文字列は文字と模様との反
射明度の差が大きく、他方の文字列は文字と模様との反
射明度の差が小さい印刷物において、文字と模様との反
射明度の差が小さい文字列を2値化して抽出する際、文
字と模様との反射明度の差が大きい文字列の2値化結果
を用い、各文字ごとの文字部画素数および文字部全画素
数を参照して2値化を行なうことにより、文字と模様と
の反射明度の差が小さい場合においても、文字列抽出の
ための2値化のしきい値を最適値に設定して文字列のみ
を高い精度で抽出できる。したがって、印刷物の有効性
検査などを高精度に行なうことが可能となる。
As described above, for example, the same character string is printed in two places, one character string has a large difference in the reflection brightness between the character and the pattern, and the other character string has the reflection brightness between the character and the pattern. When a character string with a small difference in reflection brightness between a character and a pattern is binarized and extracted in a printed matter having a small difference between the two, a binarization result of a character string with a large difference in reflection brightness between a character and a pattern is used. By performing binarization with reference to the number of characters in the character portion and the total number of characters in the character portion for each character, even if the difference in the reflection brightness between the character and the pattern is small, the binarization for character string extraction is performed. By setting the threshold value to an optimal value, only the character string can be extracted with high accuracy. Therefore, it is possible to perform a high-precision inspection of the effectiveness of the printed matter.

【0027】なお、前記実施例では、文字と模様との反
射明度の差が大きい文字列、および、文字と模様との反
射明度の差が小さい文字列の、それぞれ1箇所ずつ同一
文字列が印刷された場合について説明したが、上記場合
に加えて、文字と模様との反射明度の差が小さい文字列
が複数個ある場合など、3つ以上の同一文字列が印刷さ
れていても、少なくとも1箇所に文字と模様との反射明
度の差が大きい文字列が印刷されていれば、本発明が適
応できる。
In the above-described embodiment, the same character strings are printed one by one in each of a character string having a large difference in reflection brightness between a character and a pattern and a character string having a small difference in reflection brightness between a character and a pattern. However, in addition to the above case, at least one character string is printed even when three or more identical character strings are printed, such as when there are a plurality of character strings with a small difference in reflection brightness between the character and the pattern. The present invention can be applied if a character string having a large difference in reflection brightness between a character and a pattern is printed at a location.

【0028】また、前記実施例では、全画素数(i×
j)に対する文字列32aの文字部全画素数の占める割
合r%、および、各文字領域の全画素数に対する各文字
部画素数の占める割合r1,r2,…rn%(n=文字数)
を用いているが、これらの割合r%、および、r1,r2,
…rn%は、入力画像データおよび参照用文字列の2値
化レベルなどの条件によって変動させることもできる。
In the above embodiment, the total number of pixels (i ×
j), the ratio r% of the total number of pixels of the character portion of the character string 32a, and the ratio r1, r2,... rn% of the total number of pixels of each character portion to the total number of pixels of each character region (n = number of characters)
Are used, but these ratios r% and r1, r2,
... Rn% can be varied depending on conditions such as the binarization level of the input image data and the reference character string.

【0029】また、前記実施例では、ある参照する文字
列を構成する、それぞれの文字の特徴情報として、文字
部の画素数(面積)、および、文字部の濃度が模様部よ
りも濃いことを用いているが、これに限らず、たとえ
ば、文字の周囲長、文字幅、重心、連結成分数などの幾
何学的特徴量、および、文字部の濃淡画像データの分散
などの濃度的特徴量を採用、および、組合わせて、2値
化しきい値の決定に用いることができる。
Further, in the above-described embodiment, as the characteristic information of each character constituting a certain character string to be referred to, it is determined that the number of pixels (area) of the character part and the density of the character part are higher than that of the pattern part. However, the present invention is not limited to this. For example, geometric features such as the circumference of a character, a character width, a center of gravity, and the number of connected components, and density features such as variance of gray image data of a character portion are used. It can be employed and combined to determine the binarization threshold.

【0030】さらに、前記実施例では、濃淡画像データ
を用いた場合について説明したが、カラー画像データの
入力を行ない、色を構成する、たとえばR,G,Bの画
像データを用いた場合においても、各種変換を行なった
結果を濃淡画像データとして扱い、前記列挙した特徴情
報を2値化しきい値の決定に用いることができる。
Further, in the above-described embodiment, the case where the grayscale image data is used has been described. However, even when the color image data is input and the color is formed, for example, the R, G, B image data is used. The results of various conversions can be treated as grayscale image data, and the above-listed feature information can be used to determine a binarization threshold.

【0031】[0031]

【発明の効果】以上詳述したように本発明によれば、文
字部と背景部との濃度差が小さい場合においても、文字
列抽出のための2値化のしきい値を最適値に設定でき、
文字列のみを高い精度で抽出して高精度の検査が可能と
なる印刷物の検査装置を提供できる。
As described above in detail, according to the present invention, even when the density difference between the character part and the background part is small, the binarization threshold value for character string extraction is set to the optimum value. Can,
It is possible to provide a printed matter inspection apparatus capable of extracting only a character string with high accuracy and performing high-accuracy inspection.

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

【図1】本発明の一実施例に係る印刷物の検査装置の構
成を概略的に示すブロック図。
FIG. 1 is a block diagram schematically showing a configuration of a printed matter inspection apparatus according to one embodiment of the present invention.

【図2】検査対象印刷物の一例を示す平面図。FIG. 2 is a plan view showing an example of a printed material to be inspected.

【図3】印刷物検査の処理手順を示すフローチャート。FIG. 3 is a flowchart illustrating a processing procedure of printed matter inspection.

【図4】参照用文字列の抽出および特徴量算出の処理手
順を示すフローチャート。
FIG. 4 is a flowchart showing a processing procedure for extracting a reference character string and calculating a feature amount;

【図5】参照用文字列の濃度ヒストグラムを示す図。FIG. 5 is a diagram showing a density histogram of a reference character string.

【図6】周辺分布の算出を説明する図。FIG. 6 is a view for explaining calculation of a marginal distribution.

【図7】文字領域の抽出を説明する図。FIG. 7 is a view for explaining extraction of a character area.

【図8】文字列抽出の処理手順を示すフローチャート。FIG. 8 is a flowchart showing a processing procedure of character string extraction.

【図9】フィルタリング処理の効果を説明する図。FIG. 9 is a view for explaining the effect of the filtering process.

【図10】周辺分布の算出を説明する図。FIG. 10 is a view for explaining calculation of a marginal distribution.

【図11】文字部の濃度ヒストグラムとしきい値との関
係を示す図。
FIG. 11 is a diagram illustrating a relationship between a density histogram of a character portion and a threshold.

【図12】フィルタリング処理に用いる3×3マスクの
一例を示す図。
FIG. 12 is a diagram showing an example of a 3 × 3 mask used for filtering processing.

【図13】文字の2値化例を示す図。FIG. 13 is a diagram showing an example of binarization of a character.

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

11…CPU、12…イメージスキャナ、16,17,
18…画像メモリ、19,20…メモリ、31…印刷
物、32a,32b…文字列。
11: CPU, 12: Image scanner, 16, 17,
18 image memory, 19, 20 memory, 31 printed matter, 32a, 32b character string.

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06K 9/00 - 9/82 G06T 1/00 G07D 7/12 G07D 7/20 ──────────────────────────────────────────────────続 き Continued on the front page (58) Fields investigated (Int. Cl. 7 , DB name) G06K 9/00-9/82 G06T 1/00 G07D 7/12 G07D 7/20

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 2つ以上の同じ文字列を有し、かつ、こ
れら文字列のうち少なくとも1つの文字列は文字部と背
景部との濃度差が大きく、それ以外の他の文字列は文字
部と背景部との濃度差が小さい印刷物から画像データを
収集する画像入力手段と、 この画像入力手段により収集された画像データを2値化
することにより、前記文字部と背景部との濃度差が大き
文字列を抽出する第1文字列抽出手段と、 この第1文字列抽出手段により抽出された文字列の濃
度的特徴量として、各文字ごとの文字部画素数および文
字部全画素数を算出する濃度的特徴量算出手段と、前記第1の文字列抽出手段における文字部と背景部との
濃度差が大きい文字列の2値化結果、および、前記濃度
的特徴量算出手段により濃度的特徴量として算出された
各文字ごとの文字部画素数および文字部全画素数に基づ
き、前記画像入力手段により収集された画像データを2
値化することにより、前記文字部と背景部との濃度差が
小さい 文字列を抽出する第2文字列抽出手段と、 前記第1文字列抽出手段および第2文字列抽出手段
より抽出された前記2つ以上の文字列をそれぞれ認識
する認識手段と、 この認識手段により認識された前記2つ以上の文字列
照合し、各文字列が一致している場合に前記印刷物が有
効であると判定する判定手段と を具備したことを特徴とする印刷物の検査装置。
1. A possess two or more the same string, and this
At least one of these strings is a character part and a back
The density difference from the scenery is large, and other character strings
Binarization parts and an image input means for collecting image data density difference from a small printed material with the background portion, the image data more collected in the image input means
By doing so, the density difference between the character part and the background part is large.
A first character string extraction means for extracting a character string have, the first as a concentration feature amount of a character string that is more extracted character string extraction unit, a character portion number of pixels and statements for each character
A density feature calculating means for calculating the total number of pixels of the character part, and a character part and a background part in the first character string extracting means.
The binarization result of a character string having a large density difference, and the density
Calculated as the density feature by the statistical feature calculation means
Based on the number of characters in the character part of each character and the total number of pixels in the character part
The image data collected by the image input means
By converting into a value, the density difference between the character portion and the background portion is reduced.
Recognition and second character string extracting means for extracting a small string, the first character string extraction unit and the second character string extraction means <br/> more extracted the two or more strings, respectively a recognition means for, the two or more character string recognized by the recognition means
Collate, and if the character strings match, the printed
Inspection apparatus printed matter, characterized by comprising determination means that the effective, the.
JP19720992A 1992-07-23 1992-07-23 Inspection equipment for printed matter Expired - Lifetime JP3237906B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19720992A JP3237906B2 (en) 1992-07-23 1992-07-23 Inspection equipment for printed matter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19720992A JP3237906B2 (en) 1992-07-23 1992-07-23 Inspection equipment for printed matter

Publications (2)

Publication Number Publication Date
JPH0644404A JPH0644404A (en) 1994-02-18
JP3237906B2 true JP3237906B2 (en) 2001-12-10

Family

ID=16370644

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19720992A Expired - Lifetime JP3237906B2 (en) 1992-07-23 1992-07-23 Inspection equipment for printed matter

Country Status (1)

Country Link
JP (1) JP3237906B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4262025B2 (en) 2002-08-06 2009-05-13 キヤノン株式会社 Print control apparatus, image forming apparatus management server, print control method, and computer program
KR100742806B1 (en) * 2002-08-06 2007-07-25 캐논 가부시끼가이샤 Print data communication, including data encryption and decryption
JP2007028362A (en) 2005-07-20 2007-02-01 Seiko Epson Corp Apparatus and method for processing image data in which background image and target image are mixed
JP7787779B2 (en) * 2022-06-17 2025-12-17 グローリー株式会社 Form recognition processing system, form recognition processing method, and form recognition processing program

Also Published As

Publication number Publication date
JPH0644404A (en) 1994-02-18

Similar Documents

Publication Publication Date Title
Raghunandan et al. Riesz fractional based model for enhancing license plate detection and recognition
Alginahi Preprocessing techniques in character recognition
DE69608170T2 (en) Image binarization apparatus and method
JP2002133426A (en) Ruled line extraction device for extracting ruled lines from multi-valued images
Shridhar et al. Recognition of license plate images: issues and perspectives
CN111899292A (en) Character recognition method and device, electronic equipment and storage medium
JPH0467234B2 (en)
JP3228938B2 (en) Image classification method and apparatus using distribution map
JP3237906B2 (en) Inspection equipment for printed matter
JP3416058B2 (en) Character extraction method of gray image and recording medium recording the program
US20030210818A1 (en) Knowledge-based hierarchical method for detecting regions of interest
Jang et al. Binarization of noisy gray-scale character images by thin line modeling
US6983071B2 (en) Character segmentation device, character segmentation method used thereby, and program therefor
Faber et al. Scale characteristics of local autocovariances for texture segmentation
Abdella Libyan licenses plate recognition using template matching method
CN117058805A (en) Banknote image processing method and system
JP3150762B2 (en) Gradient vector extraction method and character recognition feature extraction method
JP4732626B2 (en) Form processing method, apparatus, and program
JP3462727B2 (en) Character string binarization device
Demma et al. Automatic Ethiopian Vehicle Number Plate Detection System using MATLAB
Ye et al. Model-based character extraction from complex backgrounds
Soe et al. Correlation-based Recognition System for Myanmar Currency Denomination
JP3753354B2 (en) Broken line identification device and recording medium
Mancas-Thillou et al. Camera-based degraded character segmentation into individual components
JP2902905B2 (en) Character recognition device

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081005

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20081005

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20091005

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20101005

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20111005

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20111005

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20121005

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121005

Year of fee payment: 11