JPS60218165A - Density unevenness detecting circuit - Google Patents

Density unevenness detecting circuit

Info

Publication number
JPS60218165A
JPS60218165A JP59074521A JP7452184A JPS60218165A JP S60218165 A JPS60218165 A JP S60218165A JP 59074521 A JP59074521 A JP 59074521A JP 7452184 A JP7452184 A JP 7452184A JP S60218165 A JPS60218165 A JP S60218165A
Authority
JP
Japan
Prior art keywords
area
circuit
density
character
unevenness
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
JP59074521A
Other languages
Japanese (ja)
Other versions
JPH0241786B2 (en
Inventor
Noboru Ozaki
暢 尾崎
Takashi Torio
隆 鳥生
Hiromichi Iwase
岩瀬 洋道
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59074521A priority Critical patent/JPS60218165A/en
Priority to CA000478609A priority patent/CA1226948A/en
Priority to AU41085/85A priority patent/AU558127B2/en
Priority to EP85302582A priority patent/EP0159880B1/en
Priority to US06/722,559 priority patent/US4736315A/en
Priority to DE85302582T priority patent/DE3587488T2/en
Priority to KR1019850002521A priority patent/KR900004812B1/en
Publication of JPS60218165A publication Critical patent/JPS60218165A/en
Publication of JPH0241786B2 publication Critical patent/JPH0241786B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • G06T7/41Analysis of texture based on statistical description of texture

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Collating Specific Patterns (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To detect exactly and rapidly the unevenness of density by calculating the density histogram of a character part in each range, calculating the whole area of the character part from the density histogram and the area of a picture element having a certain threshold or more and measuring the distribution of the character part. CONSTITUTION:A picture signal from a picture signal input part 10 is inputted to a character part extracting circuit 13 through an I/O control part 11 to extract the range of a part such as a character. A decision range determining circuit 20 determines whether each range is to be decided or not on the basis of the output of the circuit 13, a density histogram calculating circuit 23 calculates the density histogram of the character part of each range and a decision range area calculating circuit 24 calculates the whole area of the character part and the area of a picture element having a certain threshold or more. Thus, a density unevenness deciding circuit 26 decides the unevenness of density on the basis of said calculated results.

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は捺印または印刷された文字などの濃淡むらを検
査する回路に係り、特に正常なデータとの比較や、あら
かじめ文字位置等の指定を行う必要なく濃淡むらを検出
できるものである。
[Detailed Description of the Invention] [Technical Field of the Invention] The present invention relates to a circuit for inspecting unevenness in shading of stamped or printed characters, and in particular, a circuit for comparing with normal data and specifying character positions, etc. in advance. It is possible to detect unevenness in density without the need.

〔従来技術と問題点〕[Conventional technology and problems]

例えばICの記号印刷文字等の濃淡むらを検出する方法
として、従来2値化法がある。これはあらかじめ正常な
文字(捺印)の濃淡画像を2値化して基準データとして
保持しておき、これをサンプル濃淡画像の2値化データ
とを比較して濃淡むらを検出するものである。このとき
比較方法としてそれらの「1」の部分のみをX軸(横)
またはY軸(縦)方向に投影して投影像を比較する等の
方法が使用されるが、いずれにしても正常なデータを一
度は入力しなければならないこと、光源や照明の状態等
の周辺条件及び検査対象の変化によって2値化時の閾値
の再設定が必要であるという欠点がある。
For example, as a method for detecting uneven shading in characters printed on symbols of ICs, there is a conventional binarization method. In this method, a grayscale image of a normal character (seal) is previously binarized and held as reference data, and this is compared with the binary data of a sample grayscale image to detect unevenness in grayscale. At this time, as a comparison method, only the "1" part of them is displayed on the X axis (horizontal)
Alternatively, methods such as projecting in the Y-axis (vertical) direction and comparing the projected images are used, but in any case, correct data must be input at least once, and surroundings such as light source and lighting conditions are used. There is a drawback that the threshold value at the time of binarization needs to be reset depending on changes in the conditions and the object to be inspected.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、これらの問題点を改善するために、あ
らかじめ正常なデータの入力もまた文字位置の入力も必
要としない印刷(捺印)された文字等の濃淡むらを正確
に、高速に検出する濃淡むら検出回路を提供することで
ある。
The purpose of the present invention is to accurately and quickly detect uneven shading in printed characters, etc., without requiring input of normal data or character position in advance, in order to improve these problems. It is an object of the present invention to provide a density unevenness detection circuit.

〔発明の構成〕[Structure of the invention]

前記目的を達成するため、本発明の濃淡むら検出回路で
は、入力画像中の印字、捺印された文字、記号などの濃
淡むらを検出する濃淡むら検出回路において、文字等を
走査してその画像信号を出力する画像信号出力手段と、
文字等の部分の領域を抽出する文字部分抽出回路と、こ
の文字部分抽出回路の出力にもとづき各領域を判定の対
象とするか否かを決定する判定領域決定回路と、各領域
における文字部分の濃度ヒストグラムを算出する濃度ヒ
ストグラム算出回路と、文字部分の濃度ヒストグラムか
ら文字部分全体の面積(A)及びある闇値以上の値を有
する画素の面積(B)を出力する面積算出回路と、前記
判定領域決定回路および面積算出回路の出力より判定す
べき領域の文字部分の面積と闇値以上の値を有する画素
の面積を算出し各領域におけるこの比の分布状態により
濃淡むらを判定する濃淡むら判定回路を具備することを
特徴とする。
In order to achieve the above object, the shading unevenness detection circuit of the present invention detects shading unevenness of printed characters, stamped characters, symbols, etc. in an input image. an image signal output means for outputting;
A character part extraction circuit that extracts areas of parts such as characters, a judgment area determination circuit that determines whether or not each area is to be determined based on the output of this character part extraction circuit, and a judgment area determination circuit that extracts areas of character parts in each area. a density histogram calculation circuit that calculates a density histogram; an area calculation circuit that outputs the area (A) of the entire character part and the area (B) of pixels having a value equal to or higher than a certain darkness value from the density histogram of the character part; Shade unevenness determination that calculates the area of the character part of the area to be determined and the area of pixels having a value greater than the darkness value from the outputs of the area determination circuit and the area calculation circuit, and determines the unevenness of darkness based on the distribution state of this ratio in each area. It is characterized by comprising a circuit.

〔発明の実施例〕[Embodiments of the invention]

本発明を一実施例にもとづき詳述するに先立ち、その概
略を第1図及び第9図にもとづき説明する。
Before describing the present invention in detail based on one embodiment, its outline will be explained based on FIGS. 1 and 9.

例えば第1図に示す如く、ある領域上に文字又は記号A
−Dが捺印されているときこの捺印部分の画素数aを抽
出し、次にこの捺印部分aの個々の画素の濃度を複数の
閾値Th1〜Thnでスライスしてその闇値以上の画素
数すをめ、これらの比c−b をめる。このようにして
第9図に示す如く、閾値Thl”Thnに応じて各分割
領域O11,2−45毎の前記比Cが得られる。そして
各閾値毎にその比Cの最大値と最小値の差l Cmax
−Cmin 1をめる。もし、濃淡むらがなげればこの
比Cは各閾値において各分割領域0.1、−45におい
てほぼ同一の値をとるのでlCmax−Cmin lは
小さな値を示す。しかし捺印の濃淡むらがあればその分
割領域内における前記Cの値は大きく変動するので前記
l Cmax−Cmin 1の値は太きくなる。したが
ってこのCの値により濃淡むらの有無を判別することが
できる。
For example, as shown in Figure 1, a character or symbol A is placed on a certain area.
-D is stamped, extract the number a of pixels in this stamped part, then slice the density of each pixel in this stamped part a by a plurality of threshold values Th1 to Thn, and calculate the number of pixels with the darkness value or higher. and calculate their ratio c-b. In this way, as shown in FIG. 9, the ratio C for each divided area O11, 2-45 is obtained according to the threshold value Thl''Thn.Then, for each threshold value, the maximum value and the minimum value of the ratio C are obtained. Difference l Cmax
- Add Cmin 1. If the uneven shading is reduced, this ratio C takes approximately the same value in each divided region of 0.1 and -45 at each threshold value, and therefore lCmax-Cmin l shows a small value. However, if there is unevenness in the shading of the stamp, the value of C within that divided area will vary greatly, and therefore the value of l Cmax-Cmin 1 will become thicker. Therefore, the presence or absence of uneven shading can be determined based on the value of C.

次に本発明の一実施例を第1図〜第9図により詳述する
Next, one embodiment of the present invention will be described in detail with reference to FIGS. 1 to 9.

第1図は捺印(印字)状態および各領域を示す説明図、
第2図は本発明の一実施例構成図、第3図は微分フィル
タの説明図、第4図は投影状態説明図、第5図は判定対
象外領域説明図、第6図は領域総合説明図、第7図はヒ
ストグラムに対する闇値選定説明図、第8図は濃淡むら
の説明図、第9図は濃淡むら判定動作説明図である。
Figure 1 is an explanatory diagram showing the stamping (printing) state and each area;
Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 is an explanatory diagram of a differential filter, Fig. 4 is an explanatory diagram of a projection state, Fig. 5 is an explanatory diagram of a region not subject to judgment, and Fig. 6 is a comprehensive explanation of the region. FIG. 7 is an explanatory diagram of dark value selection for a histogram, FIG. 8 is an explanatory diagram of uneven shading, and FIG. 9 is an explanatory diagram of the operation of determining uneven shading.

図中、10は画像信号入力部であって例えばビデオカメ
ラの如く、捺印された領域を電気信号に変換するととも
に、これを画素単位で8ビット濃度で画像データとして
出力するもの、11は入出力制御回路であってメモリ1
2に対するアクセス制御を行うもので、前記画像信号入
力部10から送出された画像データをメモリ12に格納
したり、必要な画像データをメモリ12から読出すよう
な制御を行うものである。12はメモリであって例えば
画像データ等が格納されるもの、13は文字部分抽出回
路であって後述するように文字部分附近を抽出するもの
であって微分回路14、微分闇値保持レジスタ15、微
分閾値2値化回路16、濃度閾値2値化回路17、濃度
閾値保持レジスタ1B、論理和回路19等を具備するも
のである。
In the figure, 10 is an image signal input unit, such as a video camera, which converts the stamped area into an electrical signal and outputs this as image data with 8-bit density in pixel units, and 11 is an input/output unit. Control circuit and memory 1
2, and performs control such as storing image data sent from the image signal input section 10 in the memory 12 and reading necessary image data from the memory 12. 12 is a memory in which, for example, image data is stored; 13 is a character portion extraction circuit for extracting the vicinity of the character portion as will be described later; a differentiation circuit 14; a differential darkness value holding register 15; It includes a differential threshold value binarization circuit 16, a density threshold value binarization circuit 17, a density threshold value holding register 1B, an OR circuit 19, and the like.

20は判定領域決定回路であって後述するように領域を
統合して判定対象にするかどうかを決定するものであっ
て各領域個数投影回路21、領域統合回路22等を具備
するものである。23は各領域濃度ヒストグラム算出回
路であって文字部分の濃度ヒストグラムを作成するもの
、24は判定領域面積算出回路であって閾値Thを変え
て濃度分布状態をしらべるもの、25は判定閾値保持レ
ジスタであって濃淡むらありと判定する判定閾値を保持
するもの、26は濃淡むら判定回路であって濃淡むらの
有無を判定するものである。27は総合制御部であって
濃淡むら判定区域を領域θ〜15に分割したりするもの
である。
Reference numeral 20 denotes a determination area determination circuit which determines whether or not to integrate areas to be determined, as will be described later, and includes a number projection circuit 21 for each area, an area integration circuit 22, and the like. Reference numeral 23 denotes a density histogram calculation circuit for each area, which creates a density histogram of a character portion; 24, a determination area area calculation circuit which examines the density distribution state by changing the threshold value Th; and 25, a determination threshold holding register. 26 is a shading non-uniformity determining circuit which determines the presence or absence of shading unevenness. Reference numeral 27 denotes a general control unit which divides the density unevenness determination area into areas θ to 15.

文字部分抽出回路13は、前記の如(、文字部分を抽出
するものであり、このために微分回路14を有する。微
分回路14は、第3図(a)に示す如く横軸方向の微分
フィルタDxと縦軸方向の微分フィルタDyを有する。
The character part extraction circuit 13 extracts the character part as described above, and has a differentiation circuit 14 for this purpose.The differentiation circuit 14 includes a differentiation filter in the horizontal axis direction as shown in FIG. 3(a). It has Dx and a differential filter Dy in the vertical axis direction.

各微分フィルタは例えば9ケの区分を有し、その中央の
区分の値x、 yを周辺の8つの画素濃度に微分フィル
タの係数を乗じた値の和で示す。この微分フィルタDx
により横軸方向の画像データの濃度の変化度がめられ、
また微分フィルタDyにより縦軸方向の濃度の変化度が
められる。そしてそれぞれの微分フィルタの出力をxl
yとするとき、微分回路14の出力はE+y”r得られ
る。この微分回路14は画像の濃度勾配を出力するもの
であり、例えば文字部分の輪郭附近ではこの微分出力は
大きな値を示す。したがってこの微分回路14の出力を
微分閾値2値化回路16により微分閾値保持レジスタ1
5に記入された闇値と比較することにより微分画像出力
をレベル弁別し、2値パターンを得る。
Each differential filter has, for example, nine sections, and the values x and y of the central section are expressed as the sum of the values obtained by multiplying the densities of eight surrounding pixels by the coefficient of the differential filter. This differential filter Dx
The degree of change in density of image data in the horizontal axis direction is determined by
Further, the degree of change in density in the vertical axis direction can be determined by the differential filter Dy. And the output of each differential filter is xl
When y, the output of the differentiating circuit 14 is obtained as E+y"r. This differentiating circuit 14 outputs the density gradient of the image, and for example, near the outline of a character part, this differential output shows a large value. Therefore, The output of this differentiation circuit 14 is converted into a differentiation threshold value holding register 1 by a differentiation threshold value binarization circuit 16.
By comparing the level of the differential image output with the darkness value written in 5, a binary pattern is obtained.

この2゛値パターンは文字部分の輪郭附近を示すもので
ある。また濃度閾値2値化回路17では濃度閾値保持レ
ジスタ18に記入された閾値により濃淡画像をレベル弁
別し2値パターンを得る。この2値パターンは、文字部
分の中央値附近を示すものである。そして論理和回路1
9では前記濃度閾値2値化回路17と微分閾値2値化回
路16により得られる2値パターンの論理和をとり、こ
れにより文字部分が安定に決定されることになる。
This two-value pattern indicates the vicinity of the outline of the character portion. Further, the density threshold value binarization circuit 17 performs level discrimination on the grayscale image using the threshold value written in the density threshold value holding register 18 to obtain a binary pattern. This binary pattern indicates the vicinity of the median value of the character portion. and logical sum circuit 1
At step 9, the binary patterns obtained by the density threshold binarization circuit 17 and the differential threshold binarization circuit 16 are logically summed, thereby stably determining the character portion.

判定領域決定回路20は隣接領域を統合して判定するか
否かを決めたり、統合しない領域についではある個数以
上の文字部分の画素が存在しないときその領域は判定対
象外とする等の判断を行うものであり、各領域個数投影
回路21および領域統合回路22を有する。各領域個数
投影回路21は各画像のX軸およびy軸方向に文字部分
の画素数の投影を得るものであって、例えば領域の文字
部分の画素が第4図(a)の状態のときそのX軸よりみ
た「1」の個数を、第4図(C)に示す如(、X軸への
投影データとして得、またy軸よりみた「1」の個数を
、第4図山)に示す如く、y軸への投影データとして得
る。領域統合回路22は前記各領域個数投影回路21か
らの出力により右隣りの領域との境界に文字が存在する
場合にその2つの領域を統合し、統合しない領域につい
てはある画素個数以上文字部分が存在しない場合にその
領域は判定対象外と判別するものである。例えば第6図
(a)の如く、領域P、Qに文字が存在する場合、領域
Pの横方向の投影は第6図(blの如くなり、領域、Q
の横方向の投影は第6図(C)の如くなるので、このよ
うに2つ大きな文字部分が連続するような場合に領域P
はQと統合して判定されることになる。
The judgment area determination circuit 20 determines whether or not to integrate adjacent areas for judgment, and for areas that are not to be integrated, makes judgments such as excluding the area from the judgment target when a certain number or more of pixels of the character part do not exist. It has a region number projection circuit 21 and a region integration circuit 22 for each region. Each area number projection circuit 21 obtains a projection of the number of pixels of a character part in the X-axis and y-axis directions of each image, and for example, when the pixels of the character part of an area are in the state shown in FIG. The number of "1"s seen from the X-axis is shown in Figure 4 (C) (obtained as projection data to the X-axis, and the number of "1s" seen from the y-axis is shown as the mountain in Figure 4). This is obtained as projection data on the y-axis. The area integration circuit 22 integrates the two areas based on the output from each area number projection circuit 21 when there is a character on the boundary with the right-adjacent area, and for areas that are not integrated, it integrates the two areas where the character part exceeds a certain number of pixels. If it does not exist, the area is determined to be outside the determination target. For example, if there are characters in areas P and Q as shown in Figure 6(a), the horizontal projection of area P will be as shown in Figure 6(bl), and areas, Q
The horizontal projection of is as shown in Figure 6 (C), so when two large character parts are consecutive like this, the area P
will be determined by integrating it with Q.

また第5図tai、(b)の如く、各領域内の画素個数
が少ない場合には、このような領域を判定対象外とする
ものである。
Further, as shown in FIG. 5 (b), when the number of pixels in each region is small, such a region is excluded from the determination target.

各領域濃度ヒストグラム算出回路23は、n×型に分割
(第1図では′16分割)された領域中の前記論理和回
路19゛でめた文字部分について濃度ヒストグラムを算
出するも6′であって、この論理和回路19より得られ
た゛文字部分のデータを入出力制御回路11に送出して
メモリ12よりその文字部分の画像データをめ、濃度ヒ
ストグラムを算出する。
Each area density histogram calculating circuit 23 calculates a density histogram for the character portion determined by the logical sum circuit 19' in the area divided into n× type (divided into '16' in FIG. 1). Then, the data of the character part obtained from the OR circuit 19 is sent to the input/output control circuit 11, the image data of the character part is read from the memory 12, and a density histogram is calculated.

0 判定領域面積算出回路24は前記領域統合回路22で決
定された判定すべき領域において各領域濃度ヒストグラ
ム算出回路23から得られる各領域における文字部分の
濃度ヒストグラムから文字部分の面積Aとその文字部分
のある閾値Th以上の濃度レベルを持つ画素の面積Bを
める。このときの闇値はTh l、Th2−と数種類変
化させる。第7図+al〜ICIに示す濃度ヒストグラ
ムに対して閾値をTtz〜Th3と変化させたときその
斜線部分が各闇値以上の面積Bとなる。
0 The determination area area calculation circuit 24 calculates the area A of the character part and the character part from the density histogram of the character part in each area obtained from the area density histogram calculation circuit 23 in the area to be determined determined by the area integration circuit 22. The area B of a pixel having a density level equal to or higher than a certain threshold Th is calculated. The darkness value at this time is varied in several types, such as Thl and Th2-. When the threshold value is changed from Ttz to Th3 for the density histogram shown in FIG. 7 +al to ICI, the shaded area becomes the area B that is larger than each darkness value.

濃淡むら判定回路26は判定領域面積算出回路24から
の出力により得られる面積A、Bから、各闇値に対する
各判定領域の面積A、Bの比C(C−面積B/面積A)
をめ、その最大値と最小値の差が大きいと濃淡むらが存
在するものと判定する。例えば第8図の如き文字につい
て領域4〜6.13〜15においてそれぞれ閾値T h
 1、T h 2−T h nとしたとき、第9図に示
す如く、Th+の場合には各領域毎にC4−+ 、Cs
−1・−(、+s−1が得られ、Th2の場合にはC4
−1 2、Cs−2−c I 5−2が得られ、Thnの場合
にはC4−n、Cs −n−C+ s −nが得られる
。そして各閾値毎に各領域で算出した前記Cの最大値C
maxと最小値Cm1nをめてその差Cmax −Cm
inを算出する。もし濃淡むらが少なければ同一閾値に
対するCの値は各領域ともほぼ同じ値をもつので同一閾
値におけるCmax−Cminの値が大きくなることは
ない。しかし濃淡むらが存在するときその濃淡むらの存
在する文字の領域ではCmax −Cminの値が大き
くなる。それ故、判定闇値保持レジスタ25にあらかじ
め濃淡むらの判定基準値となるデータを記入しておき、
これと前記各閾値におけるCmax−Cminを比較し
ある閾値T h mにおいてこの判定基準値を越えたも
のが存在したとき、捺印文字に濃淡むらありと判定され
る。例えば第8図の状態では、文字Aに濃淡むらが存在
するので、このような捺印データを含む文字A−Dを判
定するとき濃淡むらありと判定されることになる。
The density unevenness determination circuit 26 calculates the ratio C of the areas A and B of each determination area to each darkness value from the areas A and B obtained from the output from the determination area area calculation circuit 24 (C-area B/area A).
If the difference between the maximum value and the minimum value is large, it is determined that uneven shading exists. For example, for characters as shown in FIG. 8, the threshold value T h is
1, Th 2 - Th n, as shown in Fig. 9, in the case of Th+, C4-+, Cs for each region
−1・−(, +s−1 is obtained, and in the case of Th2, C4
-1 2, Cs-2-c I 5-2 is obtained, and in the case of Thn, C4-n, Cs -n-C+ s -n is obtained. Then, the maximum value C of the above C calculated in each region for each threshold value
Take max and minimum value Cm1n and calculate the difference Cmax - Cm
Calculate in. If the density unevenness is small, the value of C for the same threshold value will be approximately the same in each region, so the value of Cmax-Cmin for the same threshold value will not become large. However, when uneven shading exists, the value of Cmax - Cmin increases in the region of the character where the uneven shading exists. Therefore, data serving as the judgment reference value for uneven shading is written in the judgment darkness value holding register 25 in advance.
This is compared with Cmax-Cmin at each of the thresholds, and if a certain threshold T h m exceeds this determination reference value, it is determined that the stamped character has uneven shading. For example, in the state shown in FIG. 8, since the character A has uneven shading, when characters A to D including such seal data are judged, it is determined that there is an uneven shading.

次に本発明の動作について説明する。Next, the operation of the present invention will be explained.

(1) 第1図に示す如く、文字A−Dが捺印されてい
る面の画像データを画像信号入力部10で入力し、これ
を領域0〜15に区分をつけてメモリ12に格納する。
(1) As shown in FIG. 1, the image data of the surface on which characters A to D are stamped is inputted to the image signal input section 10, and is stored in the memory 12 after being divided into areas 0 to 15.

(2) このメモリ12に格納されたデータは微分回路
14および微分閾値2値化回路16により文字の輪郭附
近が検出され、この文字輪郭データが論理和回路19に
出力される。
(2) The vicinity of the character contour is detected from the data stored in the memory 12 by the differentiation circuit 14 and the differential threshold value binarization circuit 16, and this character contour data is output to the OR circuit 19.

(3) メモリ12に格納されたデータはまた濃度闇値
2値化回路17に出力さ、れて規定レベル以上の濃度の
画像データが2値化されてこれまた文字の中央附近デー
タが論理和回路19に出力される。
(3) The data stored in the memory 12 is also output to the density/darkness value binarization circuit 17, where image data with a density above a specified level is binarized, and the data near the center of the character is also logically summed. It is output to the circuit 19.

したがって論理和回路19からは微分閾値2値化回路1
6から出力された文字輪郭データと文字の中央附近のデ
ータにもとづき文字部分の面積とその座標値が出力され
る。
Therefore, from the OR circuit 19, the differential threshold value binarization circuit 1
Based on the character outline data and the data near the center of the character output from 6, the area of the character part and its coordinate values are output.

(4)各領域個数投影回路21は各領域O〜15毎に前
記文字部分の投影をめてその位置および個数を領域統合
回路22に出力する。領域統合回路22は各領域毎にま
ずその文字部分の画素個数の小さい領域に対してはこれ
を判定対象外とする3 Z (第8図の場合では領域O〜31.7.8〜12が判定
対象外)とともに、隣接部分に多数の文字部分が存在す
るときはこれらを統合して判定領域とする(第8図では
領域4と5.13と14.14と15が統合判定される
)。
(4) Each area number projection circuit 21 projects the character portions for each area O to 15 and outputs the position and number to the area integration circuit 22. For each area, the area integration circuit 22 first excludes areas with a small number of pixels in the character part from being judged. (not subject to judgment), and if there are many character parts in adjacent parts, these are integrated to form a judgment area (in Figure 8, areas 4, 5, 13, 14, 14, and 15 are judged as integrated) .

(5)各領域濃度ヒストグラム算出回路23は論理和回
路19から出力された文字部分の座標データにもとづき
メモリ12からその文字部分の画像データを得て、各領
域毎に、第7図に示す如き濃度ヒストグラムを作成する
。これにより各領域の文字部分における濃度ヒストグラ
ムが得られる。
(5) Each region density histogram calculation circuit 23 obtains the image data of the character portion from the memory 12 based on the coordinate data of the character portion output from the OR circuit 19, and calculates the image data for each region as shown in FIG. Create a concentration histogram. As a result, a density histogram of the character portion of each area is obtained.

(6)判定領域面積算出回路24は、領域統合回路22
から出力された判定対象外情報、および領域統合情報に
もとすき判定対象領域に対する文字部分の面積Aを算出
するとともにその濃度ヒストグラムに対し閾値Th+、
Th2−・Thnによりその閾値以上の画素数B l、
 B 2−B nをめる。
(6) The determination area area calculation circuit 24 is the area integration circuit 22
The area A of the character part with respect to the judgment target area is calculated based on the non-judgment target information and the area integrated information output from the , and the threshold value Th+ is set for the density histogram.
Th2-・Thn determines the number of pixels B l that is greater than the threshold value,
Add B 2-B n.

そしてこれらを濃淡むら判定回路26に送出する。Then, these are sent to the density unevenness determination circuit 26.

(7)濃淡むら判定回路26ではこれらのデータにもと
づき、第9図に示す如く、判定対象領域に4 対する各闇値毎の文字面積Aと閾値以上の画素面積Bの
比Cを算出して閾値毎にその最大値Cmaxと最小値C
m1nの差をめる。第8図に示す如(、濃淡むらのある
捺印が存在する場合、閾値毎のCmax−Cminの値
の少なくとも1つが判定閾値より大きくなるので、これ
により濃淡むらの存在を検出することができる。
(7) Based on these data, the density unevenness determination circuit 26 calculates the ratio C of the character area A for each darkness value to the pixel area B that is equal to or higher than the threshold value for the determination target area, as shown in FIG. For each threshold, its maximum value Cmax and minimum value C
Calculate the difference in m1n. As shown in FIG. 8, if there is a stamp with uneven shading, at least one of the Cmax-Cmin values for each threshold value will be larger than the determination threshold, so the presence of uneven shading can be detected.

前記実施例では捺印文字(記号)について説明したが、
同様にして印字に対しても濃淡むらを検出することがで
きる。そして前記画素演算処理をパイプライン処理に基
づき高速に実行することも勿論できる。
In the above embodiment, the stamped characters (symbols) were explained, but
In the same way, uneven shading can be detected for printed characters. Of course, the pixel calculation process can also be executed at high speed based on pipeline processing.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、あらかじめ正常データを入力する必要
もなく、また文字位置を与える必要もなく、正確に、高
速に捺印(印字)された文字(記号)の全体的な濃淡む
らを検出することができる。
According to the present invention, it is possible to accurately and quickly detect the overall shading unevenness of stamped (printed) characters (symbols) without having to input normal data in advance or giving character positions. I can do it.

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

第1図は捺印(印字)状態および各領域を示す5 説明図、第2図は本発明の一実施例構成図、第3図は微
分フィルタの説明図、第4図は投影状態説明図、第5図
は判定対象外領域説明図、第6図は領域統合説明図、第
7図は濃度ヒストグラムに対する閾値選定説明図、第8
図は濃淡むらの説明図、第9図は濃淡むら判定動作説明
図である。 図中、10は画像信号入力部、11は入出力制御回路、
12はメモリ、13は文字部分抽出回路、14は微分回
路、15は微分闇値保持レジスタ、16は微分闇値2値
化回路、17は濃度閾値2値化回路、18は濃度閾値保
持レジスタ、19は論理和回路、20は判定領域決定回
路、21は各領域個数投影回路、22は領域統合回路、
23は各領域濃度ヒストグラム算出回路、24は判定領
域面積算出回路、25は判定闇値保持レジスタ、26は
濃淡むら判定回路である。 特許出願人 富士通株式会社 代理人弁理士 山 谷 晧 榮 6 体3図 才4 図 +5図 オ6凹 ′lI′9 図
Fig. 1 is an explanatory diagram showing the stamping (printing) state and each area, Fig. 2 is a configuration diagram of an embodiment of the present invention, Fig. 3 is an explanatory diagram of the differential filter, Fig. 4 is an explanatory diagram of the projection state, Fig. 5 is an explanatory diagram of areas not subject to judgment, Fig. 6 is an explanatory diagram of area integration, Fig. 7 is an explanatory diagram of threshold value selection for density histogram, and Fig. 8 is an explanatory diagram of threshold value selection for density histogram.
The figure is an explanatory diagram of uneven shading, and FIG. 9 is an explanatory diagram of an operation for determining uneven shading. In the figure, 10 is an image signal input section, 11 is an input/output control circuit,
12 is a memory, 13 is a character portion extraction circuit, 14 is a differentiation circuit, 15 is a differential darkness value holding register, 16 is a differential darkness value binarization circuit, 17 is a density threshold value binarization circuit, 18 is a density threshold value holding register, 19 is an OR circuit, 20 is a judgment area determination circuit, 21 is a number projection circuit for each area, 22 is an area integration circuit,
23 is a density histogram calculation circuit for each region, 24 is a determination area area calculation circuit, 25 is a determination darkness value holding register, and 26 is a density unevenness determination circuit. Patent Applicant: Fujitsu Ltd. Representative Patent Attorney Akira Yamatani 6 Body 3 Figure 4 Figure + 5 Figure O 6 Concave 'lI'9 Figure

Claims (1)

【特許請求の範囲】 1、入力画像中の印字、捺印された文字、記号などの濃
淡むらを検出する濃淡むら・検出回路において、文字等
を走査してその画像信号を出力する画像信号出力手段と
、文字等の部分の領域を抽出する文字部分抽出回路と、
この文字部分抽出回路の出力にもとづき各領域を判定の
対象とするか否かを決定する判定領域決定回路と、□各
領域における文字部分の濃度ヒストグラムを算出する濃
度ヒストグラム算出回路と、文字部分の濃度ヒストグラ
ムから文字部分全体の面積(A)及びある閾値以上の値
を有する画素の面積CB)を出力する面積算出回路と、
前記判定領域決定回路および面積算出回路の出力より判
定すべき領域の文字部分の面積と閾値以上の値を有する
画素の面積を算出し各領域におけるこの比の分布状態に
より濃淡むらを判定する濃淡むら判定回路を具備するこ
とを特徴とする濃淡むら検出回路。 2、前記文字部分抽出回路は、□画像の濃度勾配を検出
する濃度勾配置検出回路と、基準レベルでレベル弁別し
誌・つ2値化するレベル弁別2値化回路と、濃度及び濃
度勾配からレベル弁別2値化された信号の論理和をとる
論理和回路を備えたことを特徴とする特許請求の範囲第
1項記載の濃淡むら検出回路。 □ 3、前記判定領域決定回路は、各領域において横及び縦
に文字部”分の画素の個数を投影する各領域個数投影回
路と、その投影値によって判定すべき領域として隣接領
域を統合するか否かを決定する領域統合回路を備えたこ
とを特徴とする特許請求の範囲第1項記載の濃淡むら検
出回路。
[Scope of Claims] 1. Image signal output means for scanning characters, etc. and outputting image signals thereof in a shading unevenness/detection circuit that detects shading unevenness of printed characters, stamped characters, symbols, etc. in an input image. and a character part extraction circuit for extracting a region of parts such as characters;
□A judgment area determination circuit that determines whether or not each area is subject to judgment based on the output of the character area extraction circuit; □A density histogram calculation circuit that calculates the density histogram of the character area in each area; an area calculation circuit that outputs the area (A) of the entire character portion and the area CB of pixels having a value greater than a certain threshold value from the density histogram;
The area of the character part of the area to be determined and the area of the pixels having a value equal to or greater than the threshold value are calculated from the outputs of the determination area determination circuit and the area calculation circuit, and the unevenness of shading is determined based on the distribution state of this ratio in each area. A density unevenness detection circuit comprising a determination circuit. 2. The character portion extraction circuit includes a density gradient position detection circuit that detects the density gradient of an image, a level discrimination binarization circuit that discriminates levels based on a reference level and converts them into binarized images, and a 2. The unevenness detection circuit according to claim 1, further comprising an OR circuit that performs a logical sum of the level-discriminated and binarized signals. □ 3. The judgment area determination circuit includes a number projection circuit for each area that projects the number of pixels for the character part horizontally and vertically in each area, and an adjacent area that is integrated as an area to be judged based on the projection value. 2. The density unevenness detection circuit according to claim 1, further comprising a region integration circuit for determining whether or not the image is detected.
JP59074521A 1984-04-13 1984-04-13 Density unevenness detecting circuit Granted JPS60218165A (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP59074521A JPS60218165A (en) 1984-04-13 1984-04-13 Density unevenness detecting circuit
CA000478609A CA1226948A (en) 1984-04-13 1985-04-09 Apparatus for evaluating density and evenness of printed patterns
AU41085/85A AU558127B2 (en) 1984-04-13 1985-04-12 Evaluating density and evenness of printed patterns
EP85302582A EP0159880B1 (en) 1984-04-13 1985-04-12 Apparatus for evaluating density and evenness of printed patterns
US06/722,559 US4736315A (en) 1984-04-13 1985-04-12 Apparatus for evaluating density and evenness of printed patterns
DE85302582T DE3587488T2 (en) 1984-04-13 1985-04-12 Device for evaluating the density and flatness of printed samples.
KR1019850002521A KR900004812B1 (en) 1984-04-13 1985-04-13 Apparatus for evaluating density and evenness of printed patterns

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59074521A JPS60218165A (en) 1984-04-13 1984-04-13 Density unevenness detecting circuit

Publications (2)

Publication Number Publication Date
JPS60218165A true JPS60218165A (en) 1985-10-31
JPH0241786B2 JPH0241786B2 (en) 1990-09-19

Family

ID=13549704

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59074521A Granted JPS60218165A (en) 1984-04-13 1984-04-13 Density unevenness detecting circuit

Country Status (1)

Country Link
JP (1) JPS60218165A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63115753A (en) * 1986-11-04 1988-05-20 Canon Inc Printer
JPS63138472A (en) * 1986-12-01 1988-06-10 Sakata Corp Sharpness evaluating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63115753A (en) * 1986-11-04 1988-05-20 Canon Inc Printer
JPS63138472A (en) * 1986-12-01 1988-06-10 Sakata Corp Sharpness evaluating method

Also Published As

Publication number Publication date
JPH0241786B2 (en) 1990-09-19

Similar Documents

Publication Publication Date Title
CN108121991B (en) Deep learning ship target detection method based on edge candidate region extraction
EP0712094B1 (en) A multi-windowing technique for threshholding an image using local image properties
KR920005868B1 (en) Picture processing device
CN108596166A (en) A kind of container number identification method based on convolutional neural networks classification
CN111666842B (en) Shadow detection method based on double-current-cavity convolution neural network
CN109948566B (en) Double-flow face anti-fraud detection method based on weight fusion and feature selection
JP3545506B2 (en) Specific color area extraction method and specific color area removal method
Huerta et al. Exploiting multiple cues in motion segmentation based on background subtraction
KR20200071853A (en) System and method for detecting and recognizing license plate
CN111539980B (en) Multi-target tracking method based on visible light
JP2018120445A (en) Car number recognition apparatus
CN111695373A (en) Zebra crossing positioning method, system, medium and device
CN116883887A (en) Leakage gas detection method for infrared video
CN115240197A (en) Image quality evaluation method, image quality evaluation device, electronic apparatus, scanning pen, and storage medium
CN107066929B (en) Hierarchical recognition method for parking events of expressway tunnel integrating multiple characteristics
CN110097569B (en) Oil tank target detection method based on color Markov chain significance model
CN109544535B (en) Peeping camera detection method and system based on optical filtering characteristics of infrared cut-off filter
JPS60218165A (en) Density unevenness detecting circuit
KR102026410B1 (en) Sytem for marker recognition and method therefor
CN112801963B (en) Video image occlusion detection method and system
KR101954404B1 (en) CCTV System and Method for improving Recognition of Car Number by Using dynamic Thresholds
CN113936030A (en) Moving target detection method and system based on convolutional coding
CN110232709B (en) Method for extracting line structured light strip center by variable threshold segmentation
JPH0624014B2 (en) Gray image processing method
JPH038630B2 (en)