JPH01243668A - Picture processing device - Google Patents

Picture processing device

Info

Publication number
JPH01243668A
JPH01243668A JP63070083A JP7008388A JPH01243668A JP H01243668 A JPH01243668 A JP H01243668A JP 63070083 A JP63070083 A JP 63070083A JP 7008388 A JP7008388 A JP 7008388A JP H01243668 A JPH01243668 A JP H01243668A
Authority
JP
Japan
Prior art keywords
density
threshold value
image
picture
maximum
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63070083A
Other languages
Japanese (ja)
Inventor
Hironobu Machida
町田 弘信
Hiroki Sugano
浩樹 菅野
Hitoshi Yoneda
米田 等
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 JP63070083A priority Critical patent/JPH01243668A/en
Publication of JPH01243668A publication Critical patent/JPH01243668A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To binarizing process a character part by good resolution and a photograph part by good gradation respectively by discriminating the kind of a picture by using not only the maximum density difference of a local picture part but the feature of the density level of it and performing effectively binarizing processing respectively corresponding to the kind of the picture. CONSTITUTION:A discriminating part 2 obtains the maximum density difference within a prescribed range and mean density within the prescribed range as reference density from a picture information outputted from a line buffer 1, and discriminates the kind of the picture in which a notice picture element is included by a value that said maximum density difference is normalized by the mean density. A selecting means 5 is switched selectively according to this result, and a first threshold value from a first threshold value generating means (dynamic threshold value calculating means) 3 or a second threshold value from a second threshold value generating means 4 is extracted selectively as a threshold value for binarizing processing the picture information. Then, the picture information is introduced to a comparing means 6, and is binarizing processed by this threshold value. Thus, as for even the picture information in which the character part of low contrast is included, the character part and the photograph part can be binarized with satisfactory resolution and with satisfactory gradation respectively.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は文字部と写真部とが混在した文書画像を、文字
部の解像性と写真部の階調性を高く維持して2値化し得
る画像処理装置に関する。
[Detailed Description of the Invention] [Objective of the Invention] (Industrial Field of Application) The present invention is capable of processing a document image in which a text portion and a photo portion are mixed, with high resolution of the text portion and high gradation of the photo portion. The present invention relates to an image processing device that can maintain and binarize images.

(従来の技術) コード情報のみならずイメージ情報をも取扱い得る画像
処理装置(文書画像処理装置)では、スキャナ等により
読取入力した文書画像について、例えば文字や線図等の
コントラストの高い画像部分(文字部)を予め設定され
た固定閾値を用いて2値化処理し、また写真等の階調を
有する画像部分(写真部)をデイザ法等の擬似階調の手
法を用いて2値化している。
(Prior Art) In an image processing device (document image processing device) that can handle not only code information but also image information, high-contrast image parts such as characters and line drawings ( The text part) is binarized using a fixed threshold set in advance, and the image part (photo part) with gradation, such as a photograph, is binarized using a pseudo gradation method such as the dither method. There is.

ちなみに文字部をデイザ法を用いて2値化するとその解
像度が劣化し、また写真部を固定閾値を用いて2値化す
るとその階調性が損われてしまうと云う問題がある。こ
のような不具合を回避するべく、従来ではその画像的特
徴に応じた画像領域に分離し、各領域毎に上述した固定
閾値やデイザ法によって定められる閾値を適応的に用い
てその2値化を行なうものとなっている。
Incidentally, there is a problem in that when a character part is binarized using the dither method, its resolution deteriorates, and when a photographic part is binarized using a fixed threshold value, its gradation is impaired. In order to avoid such problems, conventional methods separate image regions according to their image characteristics and binarize them by adaptively using the above-mentioned fixed threshold or threshold determined by the dither method for each region. It is supposed to be done.

しかして従来では、読取入力された画像情報の局所領域
での画像濃度の最大濃度差ΔD  を検ax 出し、この最大濃度差ΔD  を所定の閾値Thと1a
X 比較して該局所領域が文字部であるか写真部であるかを
識別判定し、その2値化処理の形態を切替えるものとな
っている。
However, in the past, the maximum density difference ΔD of image density in a local area of the scanned and inputted image information is detected, and this maximum density difference ΔD is set between a predetermined threshold Th and 1a.
X is compared to determine whether the local area is a text area or a photograph area, and the form of the binarization process is switched.

ところがこのような処理方式にあっては、所謂かすれ文
字等の低コントラストの文字部については、ここで検出
される最大濃度差ΔD  の値がWaX 小さいので、写真部であるとして誤識別判定されること
かある。この結果、コントラストの低い文字部の解像性
が著しく損われると云う問題が生じた。
However, in such a processing method, since the value of the maximum density difference ΔD detected here is small WaX for low-contrast character parts such as so-called faded characters, they are incorrectly identified as photographic parts. There is a thing. As a result, a problem arose in that the resolution of text portions with low contrast was significantly impaired.

例えば第8図に示すように読取入力された原稿Pが、コ
ントラストの高い文字部A1階調性を有する写真部B、
そしてかすれ文字等のコントラストの低い文字部Cとか
らなる場合、上記原稿Pの各領域A、B、Cにおける画
像情報の典型的な信号レベルは第9図に示すようになる
。今、画像濃度のダイナミックレンジが8ビツト[0〜
FF]hで与えられるものとすると、例えば(4X4)
画素の局所領域における最大濃度差ΔD  は、上記類
■ax 域Aでは[DD−PFI、領域Bでは[10〜40] 
h 。
For example, as shown in FIG. 8, a document P that has been read and input has a character part A1 with high contrast, a photograph part B having gradation,
When the image information is composed of character portions C with low contrast such as faded characters, typical signal levels of image information in each area A, B, and C of the document P are as shown in FIG. Currently, the dynamic range of image density is 8 bits [0 to
FF] h, for example (4X4)
The maximum density difference ΔD in the local area of a pixel is the above type ■ ax [DD-PFI in area A, [10 to 40] in area B
h.

領域Cでは[to〜40]h程度となる。この為、判定
閾値Thとして[80]hを用い、 ΔD   >Th    ・・・文字部、    Wa
X ΔD  ≦Th    ・・・写真部 aX として局所領域の画像の種別を判定すると、前記領域B
のみならず領域Cまでが写真部として誤判定されると云
う不具合が生じる。また判定閾値Thとして[30]h
を用いると、今度は領域Bが文字部として判定され虞れ
が生じると云う不具合が生じた。
In region C, it is about [to-40]h. For this reason, [80] h is used as the determination threshold Th, and ΔD > Th ... character part, Wa
X ΔD ≦Th...When determining the type of image of the local area as photographic area aX, the area B
In addition, there arises a problem that up to area C is erroneously determined as a photographic area. Also, as the determination threshold Th, [30] h
When using this, there was a problem that there was a risk that area B would be determined as a character section.

このように最大濃度差ΔD  を所定の閾値にWaX て判定して領域の種別を識別する従来の装置にあっては
、コントラストの低い文字部を含む文書画像等に対して
、その文字部を解像度良く2値化し、また写真部を階調
性良く2値化することが非常に困難である等の問題があ
る。
In this way, conventional devices that identify the type of area by determining the maximum density difference ΔD using a predetermined threshold value Wa There are problems such as that it is very difficult to binarize well and to binarize photographic areas with good gradation.

(発明が解決しようとする課題) このように従来装置では、文字部と写真部とが混在する
画像情報を、文字部に対する解像度および写真部に対す
る階調性を同時に満足させながら2値処理するに際し、
特にコントラストの低い文字部が含まれるような場合、
その2値化処理の形態を適応的に制御することが非常に
困難である等の問題があった。
(Problems to be Solved by the Invention) As described above, in the conventional device, it is difficult to perform binary processing on image information in which text and photographs are mixed while simultaneously satisfying the resolution for the text and the gradation for the photographs. ,
Especially when it contains characters with low contrast,
There have been problems such as that it is very difficult to adaptively control the form of the binarization process.

本発明はこのような事情を考慮してなされたもので、そ
の目的とするところは、コントラストの低い文字部が含
まれる画像情報であっても、文字部については解像度良
く、また写真部については階調性良くそれぞれ2値化す
ることのできる画像処理装置を提倶することにある。
The present invention has been made in consideration of these circumstances, and its purpose is to provide high resolution for the text portion and high resolution for the photographic portion, even if the image information includes text portions with low contrast. An object of the present invention is to provide an image processing device that can perform binarization with good gradation.

[発明の構成] (課題を解決するための手段) 本発明に係る画像処理装置は、所定範囲内の画像情報か
らその最大濃度差を求めると共に、上記所定範囲を含む
領域内における画像情報の平均濃度、最大濃度、および
最小濃度の内の1つを前記所定範囲内の画像情報に対す
る基準濃度として求め、この基準濃度にて前記最大濃度
差を正規化してその値を判定する。そして前記所定範囲
内の画像情報から動的に求められる閾値、または予め設
定された閾値を上記判定結果に従って選択的に用いて前
記所定範囲内の画像情報を2値化することを特徴とする
ものである。
[Structure of the Invention] (Means for Solving the Problems) An image processing device according to the present invention calculates the maximum density difference from image information within a predetermined range, and calculates the average of the image information within a region including the predetermined range. One of the density, maximum density, and minimum density is determined as a reference density for image information within the predetermined range, and the maximum density difference is normalized using this reference density to determine its value. Then, the image information within the predetermined range is binarized by selectively using a threshold dynamically determined from the image information within the predetermined range or a preset threshold according to the determination result. It is.

つまり局所的な画像部分の最大濃度差のみならず、その
濃度レベルの特徴をも利用して画像の種別を識別し、画
像の種別に応じた2値化処理をそれぞれ効果的に施し得
るようにしたことを特徴とするものである。
In other words, it is possible to identify the image type using not only the maximum density difference in local image parts but also the characteristics of the density level, and to effectively perform binarization processing according to the image type. It is characterized by the fact that

(作用) 本発明によれば、局所領域として定められる所定範囲内
の画像情報の最大濃度差をその領域における基準濃度と
から上記最大濃度差を正規化し、その値から上記画像情
゛報がどのような性質を有するものであるかを求めて画
像の種別を判定するので、最大濃度差の小さい画像領域
および文字部を、その基準濃度が高いか低いか等の写真
部および文字部での画像種別特有の性質からその画像種
別を判定して、従来のように誤った2値化処理を施すこ
とがなくなる。この結果、種々の文字部と写真部とが混
在した文書画像であっても、それらの文宇部と写真部と
をそれぞれ正確に識別して2値化の為の閾値をそれぞれ
適応的に設定することができるので、文字部については
解像度良く、また写真部については階調性良く2値化処
理を施すことが可能となる。
(Operation) According to the present invention, the maximum density difference of the image information within a predetermined range defined as a local area is normalized from the reference density in that area, and from that value it is possible to determine how the image information is determined. Since the type of image is determined by determining whether the image has such properties, image areas and text areas with a small maximum density difference are compared with images in photographic areas and text areas, such as whether the reference density is high or low. It is no longer necessary to determine the image type based on the characteristics specific to the type and perform erroneous binarization processing as in the past. As a result, even if a document image contains a mixture of various text and photo areas, the text and photo areas can be accurately identified and the thresholds for binarization can be adaptively set for each. Therefore, it is possible to perform binarization processing on text portions with good resolution and on photographic portions with good gradation.

(実施例) 以下、図面を参照して本発明の一実施例につき説明する
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図は実施例に係る画像処理装置における画像処理の
概念を示す図である。この画像″処理装置にはイメージ
・スキャナ等の読取装置にて読取入力された画像情報が
、例えば1画素当り8ビツトのディジタル争データとし
て入力される。ラインバッファlはこのような画像情報
を一時的に格納して以下に示す画像処理に供する。
FIG. 1 is a diagram showing the concept of image processing in an image processing apparatus according to an embodiment. Image information read and input by a reading device such as an image scanner is input to this image processing device as, for example, 8-bit digital data per pixel.The line buffer l temporarily stores such image information. The image is then stored as an image and used for the image processing described below.

しかして識別手段2は上記ラインバッファ1から所定の
クロックに同期して出力される画像情報から所定範囲内
での最大濃度差と上記所定範囲内での基準濃度としての
平均濃度とを求め、その最大濃度差を平均濃度にて正規
化した値にて注目画素が含まれる局所領域の画像の種別
を識別判定している。この識別判定結果に従って選択手
段5が選択切替えされ、第1の閾値発生手段3から与え
られる第1の閾値、または第2の閾値発生手段4から与
えられる第2の閾値が前記画像情報を2値処理する為の
閾値として選択的に抽出される。そして前記ラインバッ
ファlから読出され、遅延手段7を介して遅延されてタ
イミング調整された画像情報は比較手段6に導かれ、こ
の比較手段6にて上記選択手段5を介して選択的に抽出
された閾値にて2値化処理され、出力される。
The identification means 2 calculates the maximum density difference within a predetermined range and the average density as a reference density within the predetermined range from the image information outputted from the line buffer 1 in synchronization with a predetermined clock, and The type of image of the local area including the pixel of interest is identified and determined based on the value obtained by normalizing the maximum density difference by the average density. The selection means 5 is selectively switched according to the result of this discrimination judgment, and the first threshold value given from the first threshold value generation means 3 or the second threshold value given from the second threshold value generation means 4 is used to convert the image information into binary values. It is selectively extracted as a threshold value for processing. The image information read from the line buffer l, delayed and timing-adjusted via the delay means 7, is led to the comparison means 6, and selectively extracted by the comparison means 6 via the selection means 5. The data is binarized using a threshold value and output.

上述した画像種別の識別処理を実行する識別手段2にお
ける最大値最小値検出回路20は、例えば注目画素が第
3図に示すように(t、j)で与えられるとき、ライン
バッファlから上記注目画素(L、j)を含む所定範囲
内(例えば4X4−166画素領域の画像情報を並列に
読出し、その範囲内における最大画像濃度(D   )
および最小間■ax 像濃度(D   )をそれぞれ検出するものである。
For example, when the pixel of interest is given by (t, j) as shown in FIG. Image information within a predetermined range (for example, 4x4-166 pixel area) including the pixel (L, j) is read out in parallel, and the maximum image density (D) within that range is calculated.
and the minimum inter-ax image density (D), respectively.

■in 減算器21は上記最大値最小値検出回路20にて検出さ
れた最大画像濃度(D   ”)および最小画像濃ax 度(D   )との差 sin ΔD   −D   −D wax      saw      gainを前記
所定範囲内における最大濃度差(ΔD  )saw として算出している。この最大濃度差(ΔD  )Ia
X が除算回路22に与えられ、平均値算出回路23にて後
述するようにして求められる前記所定範囲内での平均画
像濃度D にて除算し、その規格化最大濃度差(ΔD 
 )を axn ΔD  −ΔD   +D laXn        IaX       aとし
て求めている。尚、上記最大濃度差ΔDllaxを規格
化する為の基準濃度としてここでは平均濃度D を用い
ているが、上記所定範囲内での最大画像濃度値D  や
最小画像濃度値D  を基準wax         
 sin 濃度として採用することも可能である。また基準濃度を
上記所定範囲内を含む周囲の画素までを処理対象領域と
し、例えば(8X8−888画素領域や(8X8−84
画素領域)の画像情報から求めることも可能である。
■in The subtracter 21 converts the difference sin ΔD −D −D wax saw gain between the maximum image density (D”) and the minimum image density ax (D) detected by the maximum value/minimum value detection circuit 20 into the predetermined value. It is calculated as the maximum concentration difference (ΔD)saw within the range.This maximum concentration difference (ΔD)Ia
X is given to the division circuit 22, and the average value calculation circuit 23 divides it by the average image density D within the predetermined range obtained as described later, and calculates the normalized maximum density difference (ΔD
) is calculated as axn ΔD −ΔD +D laXn IaX a. Note that although the average density D is used here as the reference density for normalizing the maximum density difference ΔDllax, the maximum image density value D and the minimum image density value D within the above-mentioned predetermined range are used as the reference wax.
It is also possible to adopt it as a sin concentration. In addition, surrounding pixels including the reference density within the above-mentioned predetermined range are set as the processing target area, for example, (8X8-888 pixel area or (8X8-84 pixel area)
It is also possible to obtain it from image information of the pixel area).

このようにして求められる規格化最大濃度差(ΔD  
)が比較回路26にて所定の弁別閾値ThaXn にて判定されて前記局所領域の画像情報の種別の判定が
行なわれる。この判定は、 ΔD   >Th    ・・・文字領域の画素−a’
xn ΔD  ≦Th    ・・・非文字領域の画素■ax
n として行なわれる。
The normalized maximum concentration difference (ΔD
) is determined by the comparison circuit 26 using a predetermined discrimination threshold value ThaXn to determine the type of image information of the local area. This determination is as follows: ΔD > Th... Pixel of character area - a'
xn ΔD ≦Th ... Pixel in non-character area ■ax
n.

ここで前記第1の閾値発生手段3は、例えば前記最大値
最小値検出回路20で求められる最大濃度値D  と最
小濃度値D  とに従って前記画像■ax      
  sin 情報を2値化する為の閾値Bhを、例えばBh −(D
   +D   ) /2■aX   ■in として動的に算出する如く構成される。このようにして
画像情報に応じて動的に求められる閾値Bhが第1の閾
値として前記選択手段5に与えられる。また第2の閾値
発生手段4は、例えばデイザパターン情報(デイザマト
リックス)を格納したメモリからなり、その情報を前記
選択手段5に出力するものとなっている。このデイザパ
ターン情報(デイザマトリックス)は、例えば第5図に
示すような閾値のマトリックス・パターンとじて与えら
れる。
Here, the first threshold value generating means 3 generates the image x a
The threshold value Bh for binarizing sin information is, for example, Bh − (D
+D ) /2■aX ■in It is configured to dynamically calculate. The threshold value Bh, which is dynamically determined in accordance with the image information in this way, is given to the selection means 5 as the first threshold value. Further, the second threshold value generating means 4 is composed of a memory storing dither pattern information (dither matrix), for example, and outputs the information to the selecting means 5. This dither pattern information (dither matrix) is given, for example, as a matrix pattern of threshold values as shown in FIG.

そして上記閾値Bhまたはデイザパターンが前述した比
較回路26による識別判定結果に基づいて切替駆動され
る選択手段5を介して選択的に抽出され、比較手段6に
与えられて前記画像情報の2値処理が行なわれる。
Then, the threshold value Bh or the dither pattern is selectively extracted via the selection means 5 which is switched and driven based on the discrimination determination result by the comparison circuit 26 mentioned above, and is applied to the comparison means 6 to provide the binary value of the image information. Processing is performed.

本装置の特徴的な部分である上述した識別処理について
第2図乃至第7図を参照して更に詳しく説明する。
The above-mentioned identification process, which is a characteristic part of this apparatus, will be explained in more detail with reference to FIGS. 2 to 7.

第2図は識別手段2における最大値最小値検出回路20
の構成を更に具体的に示したものである。
FIG. 2 shows a maximum value/minimum value detection circuit 20 in the identification means 2.
This shows the configuration of .

今、画像の識別処理が(8X8)画素の領域を対象とし
て行なわれる場合、前記ラインバッファlとしては4ラ
インバツフアが用いられる。そしてこの4ラインバツフ
アlに格納された1画素8bitの画像情報は、第4図
にそのタイミング・チャートを示すように所定周期のク
ロックCLKに従ってセレクタ20aに4ライン分、列
単位に並列に入力される。
Now, when image identification processing is performed on an area of (8×8) pixels, a 4-line buffer is used as the line buffer l. The image information of 8 bits per pixel stored in this 4-line buffer 1 is input in parallel in columns for 4 lines to the selector 20a in accordance with the clock CLK of a predetermined period, as shown in the timing chart in FIG. .

セレクタ20aは上記クロックCLKを入力して動作す
る2bitのカウンタ20bの出力信号SEo 、 S
E 1の制御を受けて動作し、その人カポ−)1o、〜
I3の入力データを出力ポート群AO,〜A3.BO,
〜B3 、Co、 〜C3、Do、〜D3の1つに順次
選択的に出力する。このセレクタ20aの各出力ポート
群Ao、 〜A3 、 Bo、 〜B3 、 Co、 
〜C3、Do、 〜D3から選択的に出力されるデータ
が比較器20c。
The selector 20a receives the output signals SEo, S of the 2-bit counter 20b which operates by inputting the clock CLK.
Operates under the control of E 1, that person's capo) 1o, ~
The input data of I3 is output to the output port group AO, ~A3. BO,
-B3, Co, -C3, Do, and -D3 are sequentially and selectively output. Each output port group of this selector 20a is Ao, ~A3, Bo, ~B3, Co,
The data selectively output from ~C3, Do, and ~D3 is sent to the comparator 20c.

20d、20e、20fにそれぞれ与えられる。具体的
には第4図に示すように (J−1)列の4画素のデー
タは比較器20cに与えられ、(」)列4画素のデータ
は比較器20dに、(Jul)列、 (J+2)列の各
4画素のデータは比較器20e、20fにそれぞれ与え
られる。これらの比較器20e、20d、20e、2O
f’は、セレクタ20aから与えられる列方向4画素の
濃度値の大小をそれぞれ比較するもので、その最大値と
最小値とがそれぞれ判定抽出される。これらの比較器2
0c、20d、20e、20fによって列方向4画素中
の最大濃度値d  と最小濃度値d  とがそれぞれ求
められ■aX        ■1n る。
20d, 20e, and 20f, respectively. Specifically, as shown in FIG. 4, the data of the 4 pixels in the (J-1) column is given to the comparator 20c, and the data of the 4 pixels in the ('') column is given to the comparator 20d. The data of each of the four pixels in column J+2) is applied to comparators 20e and 20f, respectively. These comparators 20e, 20d, 20e, 2O
f' is used to compare the density values of four pixels in the column direction given from the selector 20a, and the maximum and minimum values thereof are determined and extracted. These comparators 2
The maximum density value d and the minimum density value d among the four pixels in the column direction are determined by 0c, 20d, 20e, and 20f, respectively.

次段の比較器20g、20hは上記各比較器20c、2
0d。
The next stage comparators 20g and 20h are the above-mentioned comparators 20c and 2.
0d.

20e、 20fでそれぞれ求められた最大濃度値’ 
saxおよび最小濃度値d  を行方向4列に互ってそ
■in れぞれ比較し、その中の最大値D  と最小値aX D  をそれぞれ求めるものである。
Maximum concentration values found at 20e and 20f, respectively'
sax and the minimum density value d are compared with each other in four columns in the row direction, and the maximum value D and minimum value aX D are respectively determined.

win 以上の2段階に亙る比較処理によって前述した(4X4
)画素からなる所定範囲内での最大濃度値D  と最小
濃度値D  とがそれぞれ求められwax      
  win ることになる。そして減算回路21は第4図に示すタイ
ミングで上記最大濃度値D  と最小濃度値aX D  とから最大濃度差ΔD  を求め、更に次ll1
n                     wax
のタイミングで前記除算回路22は上記最大濃度差ΔD
  を前記平均濃度値D で正規化した規格wax  
                     a化最大
濃度差ΔD  を求めることになる。そしaXn て比較回路2Bでは、次のタイミングで上記規格化最大
濃度差ΔD  を所定の閾値Thで弁別し、第axn 1または第2の閾値を選択する為の選択情報を得ること
になる。
win As described above (4X4
) The maximum density value D and the minimum density value D within a predetermined range of pixels are determined and wax
It will be a win. Then, the subtraction circuit 21 calculates the maximum density difference ΔD from the maximum density value D and the minimum density value aX D at the timing shown in FIG.
n wax
At the timing of , the division circuit 22 calculates the maximum concentration difference ΔD.
standard wax normalized by the average density value D
The maximum a concentration difference ΔD is determined. Then, the comparison circuit 2B discriminates the normalized maximum concentration difference ΔD using a predetermined threshold Th at the next timing, and obtains selection information for selecting the axn 1 or the second threshold.

一方、第6図は前記識別手段2における平均値算出回路
23の構成例を示すものである。セレクタ23aはカウ
ンタ23bの制御を受けて前述した最大値最小値検出回
路20におけるセレクタ20aと同様に動作するもので
ある。従ってハードウェア的にはセレクタ23aとカウ
ンタ23bを前述したセレクタ20aとカウンタ20b
と共有構成とすることも可能である。
On the other hand, FIG. 6 shows an example of the configuration of the average value calculation circuit 23 in the identification means 2. In FIG. The selector 23a operates in the same manner as the selector 20a in the maximum value/minimum value detection circuit 20 described above under the control of the counter 23b. Therefore, in terms of hardware, the selector 23a and counter 23b are replaced by the aforementioned selector 20a and counter 20b.
It is also possible to have a shared configuration with

しかしてセレクタ23aの各出力ポート群A o +〜
AS 、Bo、〜B3 、Co、 〜C3、Do、 〜
D3から選択的に出力されるデータは加算器23c、2
3d、23e。
Therefore, each output port group A o +~ of the selector 23a
AS, Bo, ~B3, Co, ~C3, Do, ~
The data selectively output from D3 is sent to adders 23c and 2.
3d, 23e.

23rにそれぞれ与えられる。具体的には第6図に示す
ように、(J−1)列の4画素のデータは加算器23c
に与えられ、(j)列4画素のデータは加算器23dに
、(Jul)列、 (J+2)列の各4画素のデータは
加算器23e、23fにそれぞれ与えられる。これらの
加算器23c、23d、21e、23fによって列方向
4画素の濃度値の和ADDIがそれぞれ求められる。そ
してこれらの加算器23e、23d、23e、23rに
より求められた列方向の濃度値の和ADDIは次段の加
算器23gに入力され、行方向4列に亙って加算される
。この2段階の加算処理によって前述した(4X4)画
素からなる所定範囲内での濃度値の総和ADD2が求め
られる。そしてこの濃度値の総和ADD2は次のタイミ
ングで除算器23hに与えられ、上記所定範囲内画素数
で除算されて、その平均濃度値D が求められるものと
なっている。
23r respectively. Specifically, as shown in FIG.
The data of the 4 pixels in the (j) column are given to an adder 23d, and the data of 4 pixels each in the (Jul) and (J+2) columns are given to adders 23e and 23f, respectively. These adders 23c, 23d, 21e, and 23f each calculate the sum ADDI of the density values of the four pixels in the column direction. The sum ADDI of the density values in the column direction obtained by these adders 23e, 23d, 23e, and 23r is input to the next stage adder 23g, and is added over four columns in the row direction. Through this two-stage addition process, the sum ADD2 of the density values within the predetermined range of (4×4) pixels described above is obtained. The sum ADD2 of the density values is then given to the divider 23h at the next timing, and is divided by the number of pixels within the predetermined range to obtain the average density value D.sub.2.

このようにして求められる平均濃度値り、が、その範囲
内における基準濃度として前述した除算回路22に与え
られる。
The average density value obtained in this way is given to the above-mentioned division circuit 22 as a reference density within that range.

か(してこのように構成された本装置によれば、最大濃
度差値ΔD−aXが小さく、低コントラストの画像部分
が検出されても、上記最大濃度差値ΔD  をその領域
の基準濃度p にて正規化し、−aX        
               aこの正規化された濃
度値差ΔD  を判定して、axn その画像領域が文字部であるか写真部であるかを判定す
るので、その画像種別を適確に識別することができる。
(According to the present apparatus configured in this way, even if an image portion with a small maximum density difference value ΔD−aX and low contrast is detected, the maximum density difference value ΔD is set as the reference density p of that area. Normalize with -aX
Since this normalized density value difference ΔD is determined to determine whether the image area is a text portion or a photograph portion, the image type can be accurately identified.

具体的には低コントラストな画像部分であっても、その
画像が写真であれば全体的に濃度が高いと云う性質、逆
に文字であれば全体的に濃度が低いと云う性質を有効に
利用して、その画像種別を識別するこができる。
Specifically, even if the image part has low contrast, it effectively utilizes the property that if the image is a photograph, the density is high overall, and conversely, if the image is text, the density is low overall. The image type can then be identified.

この結果、上記低コントラストな文字画像を確実に文字
部として判定し、文字部の2値化に適切な閾値を設定す
ることができる。また低コントラストな写真画像を確実
に写真部として判定し、写真部の2値化に適切な閾値(
デイザ閾値)を設定することができる。
As a result, it is possible to reliably determine the low-contrast character image as a character portion, and to set an appropriate threshold for binarizing the character portion. In addition, low-contrast photographic images can be reliably determined as photographic parts, and appropriate thresholds (
(dither threshold) can be set.

これ故、複数種類の情報が存在する文書画像であっても
、文字部については解像度良く2値化することができ、
また写真部については階調性良く2値化することができ
る。しかもその閾値の選択制御が非常に簡単であり、制
御信頼性が高い等の効果が奏せられる。
Therefore, even if a document image contains multiple types of information, the text can be binarized with high resolution.
Furthermore, the photographic area can be binarized with good gradation. Moreover, selection control of the threshold value is very simple, and effects such as high control reliability can be achieved.

尚、本発明は上述した実施例に限定されるものではない
。゛例えば局所領域の大きさを処理対象画像に応じて可
変設定するように装置を構成することもできる。また閾
値の適応的な発生手段も種々変形可能であり、写真部の
2値化に用いるデイザ・パターンも特に限定されない。
Note that the present invention is not limited to the embodiments described above. For example, the apparatus may be configured to variably set the size of the local area depending on the image to be processed. Further, the means for adaptively generating the threshold value can be modified in various ways, and the dither pattern used for binarizing the photographic area is not particularly limited.

またそのデイザ・マトリックスの大きさも限定されるも
のではなく、デイザ拳パターンもドツト分散型に閾値配
置することのみならずドツト集中形式で閾値配置するこ
とも可能である。更には実施例では読取入力された画像
情報からそのまま濃度情報を求めたが、この量を画像濃
度(反射率の逆数の対数)に変換した値を用いてその特
徴量を求めることも可能である。
Further, the size of the dither matrix is not limited, and the dither fist pattern can be arranged not only in a dot-distributed manner but also in a dot-concentrated manner. Furthermore, in the embodiment, the density information was directly obtained from the read and input image information, but it is also possible to obtain the feature amount using a value converted from this amount to image density (logarithm of the reciprocal of the reflectance). .

また所定範囲内の最大濃度差を正規化する為の基準濃度
を平均濃度として算出する例につき説明したが、最大濃
度値や最小濃度値をそのまま用いることも可能である。
Furthermore, although an example has been described in which the reference density for normalizing the maximum density difference within a predetermined range is calculated as the average density, it is also possible to use the maximum density value or the minimum density value as is.

更には基準濃度を求める為の領域を、その所定範囲内を
含むようにより大きく設定することも可能である。その
他、本発明はその要旨を逸脱しない範囲で種々変形して
実施することが可能である。
Furthermore, it is also possible to set the region for determining the reference density to be larger so as to include the predetermined range. In addition, the present invention can be implemented with various modifications without departing from the gist thereof.

[発明の効果] 以上説明したように本発明によれば、画像情報の局所領
域における最大濃度差をその最大濃度差を得た領域にお
ける基準濃度にて正規化した情報を基づいてその画像部
分の種別を判定し、この判定結果に従って上記画像情報
を2値化処理する為の閾値を選択設定するので、文字部
についてはそのコントラストの如何んに拘らず解像度良
(2値化することができ、また写真部については階調性
良(2値化することができる等の実用上多大なる効果が
奏せられる。この結果、各種の画像処理の基礎となる2
値化画像を高品質に得、その処理効率の向上を図ること
が可能となる等の多大なる効果が奏せられる。
[Effects of the Invention] As explained above, according to the present invention, the maximum density difference in a local area of image information is normalized by the reference density in the area where the maximum density difference is obtained, and the image part is determined based on the information. Since the type is determined and a threshold value for binarizing the image information is selected and set according to the result of this determination, the character part has good resolution (binarization is possible, regardless of its contrast). In addition, the photographic area has good gradation (binarization is possible, etc.), which has great practical effects.As a result, the two
Great effects such as being able to obtain valued images with high quality and improving processing efficiency can be achieved.

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

第1図は本発明の一実施例に係る画像処理装置の要部概
略構成図、第2図は実施例装置における最大値最小値検
出回路の詳細な構成例を示す図、第3図は処理対象画像
の画素領域の概念を模式的に示す図、第4図は実施例装
置における最大濃度差算出の処理動作タイミングを示す
図、第5図はデイザ・パターンの例を示す図、第6図は
実施例装置における平均値算出回路の詳細な構成例を示
す図、第7図は平均値算出処理の動作タイミングを示す
図である。第8図は処理対象となる文書画像の例を示す
図で、第9図は第8図に示す処理対象画像の典型的な画
像信号の濃度レベルを示す図である。 ■・・・ラインバッファ、2・・・識別手段、訃−・第
1の閾値発生手段、4・・・第2の閾値発生手段、5゜
・・・選択手段、6・・・比較手段、20・・・最大値
最小値検出回路、21・・・減算回路、22・・・除算
回路、23・・・平均値算出回路、26・・・比較回路
。 出願人代理人 弁理士 鈴江武彦 2.3a 第6図
FIG. 1 is a schematic configuration diagram of main parts of an image processing device according to an embodiment of the present invention, FIG. 2 is a diagram showing a detailed configuration example of a maximum value/minimum value detection circuit in the embodiment device, and FIG. 3 is a processing diagram. FIG. 4 is a diagram schematically showing the concept of the pixel area of the target image; FIG. 4 is a diagram showing the processing operation timing for calculating the maximum density difference in the embodiment apparatus; FIG. 5 is a diagram showing an example of a dither pattern; FIG. 7 is a diagram showing a detailed configuration example of the average value calculation circuit in the embodiment apparatus, and FIG. 7 is a diagram showing the operation timing of the average value calculation process. FIG. 8 is a diagram showing an example of a document image to be processed, and FIG. 9 is a diagram showing the density level of a typical image signal of the image to be processed shown in FIG. ■ Line buffer, 2 Identification means, first threshold generation means, 4 second threshold generation means, 5° selection means, 6 comparison means, 20... Maximum value/minimum value detection circuit, 21... Subtraction circuit, 22... Division circuit, 23... Average value calculation circuit, 26... Comparison circuit. Applicant's agent Patent attorney Takehiko Suzue 2.3a Figure 6

Claims (1)

【特許請求の範囲】[Claims] 所定範囲内の画像情報からその最大濃度差を求める手段
と、上記所定範囲を含む領域内における画像情報の平均
濃度、最大濃度、および最小濃度の内の1つを前記所定
範囲内の画像情報に対する基準濃度として求める手段と
、この基準濃度にて前記最大濃度差を正規化する手段と
、この正規化された濃度差を判定し、この判定結果に従
って前記所定範囲内の画像情報を2値化する為の閾値を
設定する手段とを具備したことを特徴とする画像処理装
置。
means for determining a maximum density difference from image information within a predetermined range; and means for determining one of the average density, maximum density, and minimum density of image information within an area including the predetermined range with respect to the image information within the predetermined range. means for determining the reference density; means for normalizing the maximum density difference using the reference density; and determining the normalized density difference and binarizing the image information within the predetermined range according to the result of this judgment. An image processing device comprising means for setting a threshold value.
JP63070083A 1988-03-24 1988-03-24 Picture processing device Pending JPH01243668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63070083A JPH01243668A (en) 1988-03-24 1988-03-24 Picture processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63070083A JPH01243668A (en) 1988-03-24 1988-03-24 Picture processing device

Publications (1)

Publication Number Publication Date
JPH01243668A true JPH01243668A (en) 1989-09-28

Family

ID=13421291

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63070083A Pending JPH01243668A (en) 1988-03-24 1988-03-24 Picture processing device

Country Status (1)

Country Link
JP (1) JPH01243668A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6347156B1 (en) 1998-05-27 2002-02-12 Fujitsu Limited Device, method and storage medium for recognizing a document image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6347156B1 (en) 1998-05-27 2002-02-12 Fujitsu Limited Device, method and storage medium for recognizing a document image

Similar Documents

Publication Publication Date Title
US4817174A (en) Image processing apparatus
JPH02100575A (en) Picture processor
JPH02253765A (en) Picture processor
EP0685959B1 (en) Image processing apparatus for identifying character, photo and dot images in the image area
JP3200931B2 (en) Halftone dot area discrimination circuit
JPH0725064A (en) Picture forming equipment of electrophotographic printer
JPH01295570A (en) Picture processing device
JPH0122665B2 (en)
JPH01243668A (en) Picture processing device
JP2874592B2 (en) Image processing device for distinguishing text / photo / dot area
JPH02228878A (en) Picture processor
JP3358133B2 (en) Image processing device
JPH01292477A (en) Image processor
JPH02113669A (en) Picture processor
JP2507948B2 (en) Image area identification device
JP2853140B2 (en) Image area identification device
JPH04189069A (en) Picture processor
JPH02238774A (en) Picture processing unit
JPH01243667A (en) Picture processing device
JPH0326065A (en) Picture processing unit
JPH10145611A (en) Thresholding method
JPS6180960A (en) Picture signal processing method
JPH01302961A (en) Picture processing device
JPH06290267A (en) Image processor
JPH01195766A (en) Image processing device