JPH01155486A - Text/photo image judgment device - Google Patents

Text/photo image judgment device

Info

Publication number
JPH01155486A
JPH01155486A JP62314501A JP31450187A JPH01155486A JP H01155486 A JPH01155486 A JP H01155486A JP 62314501 A JP62314501 A JP 62314501A JP 31450187 A JP31450187 A JP 31450187A JP H01155486 A JPH01155486 A JP H01155486A
Authority
JP
Japan
Prior art keywords
image data
scanning direction
text
lines
main scanning
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
JP62314501A
Other languages
Japanese (ja)
Inventor
Kison Naka
中 基孫
Katsuhiro Kanamori
克洋 金森
Hiroaki Kodera
宏曄 小寺
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP62314501A priority Critical patent/JPH01155486A/en
Publication of JPH01155486A publication Critical patent/JPH01155486A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、文字(図形も含む)と、写真の風景などが混
在している画像データについて、両者を分離し、各々の
領域に異なる処理を施すような場合聞て利用される文字
写真画像判断装置に関する。
[Detailed Description of the Invention] Industrial Application Field The present invention separates image data in which characters (including figures) and photographic landscapes are mixed, and applies different processing to each area. The present invention relates to a text/photo image judgment device used in such cases.

従来の技術 従来、文字と写真が混在している画像データから両者を
分離したい場合、各種の方式が提案されている。例えば
特開昭59−168945号公報に記載されている構成
が知られている。
BACKGROUND OF THE INVENTION Conventionally, various methods have been proposed when it is desired to separate text and photographs from image data in which they coexist. For example, a configuration described in Japanese Unexamined Patent Publication No. 59-168945 is known.

発明が解決しようとする問題点 しかしながら、従来の方式では、処理回路構成が複雑に
なりすぎる、或は非常に高速な画像処理技術が要求され
るという問題点があった。
Problems to be Solved by the Invention However, in the conventional method, there were problems in that the processing circuit configuration was too complicated or very high-speed image processing technology was required.

本発明は、従来技術の以上のような問題点を解決するも
ので、文字写真の画像データを、簡単な回路で容易だ分
離することの出来る文字写真画像判断装置を提供するこ
とを目的とするものである。
The present invention solves the above-mentioned problems of the prior art, and aims to provide a text/photo image judgment device that can easily separate image data of text/photos using a simple circuit. It is something.

問題点を解決するだめの手段 本発明は、文字画像と写真画像が混在している多値画像
データに対し、主走査方向X及び副走査方向yについて
量子化された画像データと主走査方向にn画素及び副走
査方向にmライン(n、mは整数)シフトされた画像デ
ータとをそれぞれ記憶する記憶手段と、前記画像データ
及び前記シフト画像データの差を記憶する差記憶手段と
、前記差及び所定閾値を比較する比較手段と、前記比較
手段による比較結果を主走査方向N画素及び副走査方向
MライフCM、Nは整数)の範囲で保持する保持手段と
、保持されたN画素及びMラインの範囲内における前記
結果を計数する計数手段と、前記計数手段によシ計数さ
れた値に基づき、N画素及びMラインの範囲の領域に関
して、文字画像か写真画像かを判断する判断手段とを備
えることにより上記目的を達成するものである。
Means for Solving the Problems The present invention deals with multivalued image data in which character images and photographic images are mixed, and image data that has been quantized in the main scanning direction X and sub-scanning direction y. storage means for storing n pixels and image data shifted by m lines (n, m are integers) in the sub-scanning direction; difference storage means for storing the difference between the image data and the shifted image data; and a comparison means for comparing a predetermined threshold value; a holding means for holding the comparison result by the comparison means in a range of N pixels in the main scanning direction and M lives in the sub-scanning direction (where N is an integer); a counting means for counting the results within the range of the line; and a determining means for determining whether the area within the range of N pixels and M lines is a character image or a photographic image based on the value counted by the counting means. The above object is achieved by providing the following.

作用 本発明は、上記構成により、文字画像と写真画像が混在
している多値画像データを、主走査方向X及び副走査方
向yについて量子化された画像データと主走査方向K 
n画素及び副走査方向にmライン(n、mは整数)シフ
トされた画像データとに分は記憶し、前記画像データ及
び前記シフト画像データの差を演算して記憶し、前記差
及び所定の閾値とを比較し、その比較結果を主走査方向
N画素及び副走査方向Mライン(M、Nは整数)の範囲
で保持し、保持されたN画素及びMラインの範囲内にお
ける前記結果を計数し、計数された値に基づき、N画素
及びMラインの範囲の領域だ関して、文字画像か写真画
像かを判断するようにしたものである。
According to the above configuration, the present invention converts multivalued image data in which a character image and a photographic image are mixed into image data quantized in the main scanning direction X and the sub-scanning direction y and the main scanning direction K.
The image data shifted by n pixels and m lines (n, m are integers) in the sub-scanning direction are stored, the difference between the image data and the shifted image data is calculated and stored, and the difference and a predetermined value are stored. The comparison result is held within the range of N pixels in the main scanning direction and M lines in the sub-scanning direction (M and N are integers), and the results are counted within the range of the held N pixels and M lines. However, based on the counted values, it is determined whether the area within the range of N pixels and M lines is a character image or a photographic image.

実施例 以下、本発明の一実施例について図面を参照しながら説
明する。
EXAMPLE Hereinafter, an example of the present invention will be described with reference to the drawings.

第2図は、本発明の一実施例における文字写真画像判断
装置の原理を説明するだめの信号図である。
FIG. 2 is a signal diagram illustrating the principle of the text/photo image judgment device in one embodiment of the present invention.

一般に、文字が存在する領域においては、文字部分とそ
の背景地部分との間の画像データ値の差は大きい。つま
シ、例えば隣接画素間の差は大きい。これに対し、写真
領域においては、隣接間のデータ値の差は小さい。−次
元方向にのみ着目してそれを説明する。
Generally, in a region where characters exist, there is a large difference in image data values between the character portion and the background portion thereof. For example, the difference between adjacent pixels is large. In contrast, in photographic areas, the difference in data values between adjacent areas is small. -Explain it by focusing only on the dimensional direction.

第2図(a)は、文字画像と写真画像が混在している多
値画像データであって、主走査方向X及び副走査方向y
について量子化された画像データを示す。第2図(b)
は、この第2図(a)に示す画像データを1画素分シフ
トした画像データである。第2図(c)は、第2図(a
)の画像データと第2図中)の画像データと第2図I′
b)の画像データとの差の絶対値を示すものである。こ
の差の値を、適当な閾値Tと比較し、閾値Tより大きい
部分のみを得る。第2図(d)は、この大きい部分のみ
を示す。
FIG. 2(a) shows multivalued image data in which character images and photographic images are mixed, in the main scanning direction X and in the sub-scanning direction y.
quantized image data is shown. Figure 2(b)
is image data obtained by shifting the image data shown in FIG. 2(a) by one pixel. Figure 2(c) is the same as Figure 2(a).
) image data in Figure 2) and image data in Figure 2 I'
It shows the absolute value of the difference from the image data of b). This difference value is compared with an appropriate threshold T, and only the portion larger than the threshold T is obtained. FIG. 2(d) shows only this large portion.

この方式を2次元方向に適応する。即ち、2次元方向で
画像データD(x、y)を主走査方向にn画素及び副走
査方向にmライン(n、mは整数)シフトさせ、画像デ
ータD(X、7)とシフト後の画像データD(x−n*
y−m)との差の絶対値ΔD(x−n 、 y−m) 
(△p(x−n 、 y−m) =11D(X、y)−
D(X−n、y−m)If )を演算し所定閾値Tと比
較し、閾値Tよりも大きな部分を検出する。
This method is applied to two-dimensional directions. That is, the image data D(x, y) is shifted in the two-dimensional direction by n pixels in the main scanning direction and m lines (n, m are integers) in the sub-scanning direction, and the image data D(x, 7) and the shifted Image data D (x-n*
Absolute value of the difference ΔD(x-n, ym)
(△p(x-n, y-m) = 11D(X, y)-
D(X-n, ym)If) is calculated and compared with a predetermined threshold T, and a portion larger than the threshold T is detected.

第3図<B)は、主走査方向N画素及び副走査方向Mラ
イン(114,Nは整数)範囲で、上述したー値Tより
も大きな結果が検出された部分を斜線で示した図で−あ
る。ここで、第3図+]))に示すような、3×3の枠
内で、第3図(a)の検出結果の斜線部分の数の合計を
計数する。この合計数が、一定値よシ大きい場合、或は
一定値TaとTb (Ta<Tb)、例えば3個以上で
5個以下の場合、文字領域と判断する。第3図Ce)は
、その文字領域を斜線部で示す。このように文字領域と
写真領域が弁別される。
Figure 3<B) is a diagram in which the areas where a result larger than the above-mentioned -value T was detected are shown with diagonal lines in the range of N pixels in the main scanning direction and M lines in the sub-scanning direction (114, N is an integer). -Yes. Here, the total number of diagonally shaded portions of the detection results in FIG. 3(a) is counted within a 3×3 frame as shown in FIG. 3+])). If this total number is larger than a fixed value, or if the fixed values Ta and Tb (Ta<Tb), for example, 3 or more and 5 or less, it is determined to be a character area. In FIG. 3Ce), the character area is indicated by diagonal lines. In this way, text areas and photo areas are distinguished.

なお、第2図(a)に示すような孤立点のノイズも除去
されている。
Note that noise at isolated points as shown in FIG. 2(a) is also removed.

第1図は、本発明の一実施例における文字写真画像判断
装置のブロック図である。本実施例は、主走査1画素及
び副走査1ラインシフトが行われる場合である。又、計
数する範囲は、第3図(b)に示すような、8画素×3
ラインの9画素の領域とする。
FIG. 1 is a block diagram of a text/photo image judgment device according to an embodiment of the present invention. In this embodiment, a shift of one pixel in the main scanning direction and one line shift in the sub-scanning direction is performed. Also, the counting range is 8 pixels x 3 as shown in Figure 3(b).
It is assumed to be a 9-pixel area of a line.

同図において、記憶手段1は、画像データの一ライン分
記憶するラインメモリである。シフト用記憶手段2は、
比較すべき画像データの一ライン分記憶するラインメモ
リである。8,4.5はこれら記憶手段1.2から出力
されたデータ30゜31をラッチするラッチ手段である
。差記憶手段6は、ラッチ3で保持されたデータ35と
、ラッチ5で保持されたデータ33との差(絶対値)を
演算し記憶する手段である。比較手段7は、差記憶手段
6から出力された差信号84を入力し、所定閾値50と
比較する手段である。その結果は、大きい場合は論理値
「1」(第3図に於て斜線で示される部分に対応する)
で、小さい場合及び等しい場合は論理値「0」で表現さ
れる。保持手段8.9.10は、その比較手段7から出
力された論理値36を3ライン分格納するラインメモリ
である。11〜19は各保持4段8,9.10から3画
素×3ラインの9つの範囲で読み出された各論理値を格
納するラッチである。計数手段20は、各ラッチ11〜
19から出力された9個の論理データ37〜45を入力
し、論理値「1」、即ち閾値50より大きい場合の数を
計数する。判断手段21は、計数手段20の計数結果出
力46と、閾値47.48とを比較し、計数結果がその
閾値の間にあるかどうか判断し、間にある場合は文字領
域と判断して、その判断結果49を出力する。
In the figure, storage means 1 is a line memory that stores one line of image data. The shift storage means 2 is
This is a line memory that stores one line of image data to be compared. 8, 4.5 are latch means for latching the data 30.degree. 31 outputted from these storage means 1.2. The difference storage means 6 is a means for calculating and storing the difference (absolute value) between the data 35 held by the latch 3 and the data 33 held by the latch 5. The comparison means 7 is a means for inputting the difference signal 84 outputted from the difference storage means 6 and comparing it with a predetermined threshold value 50. If the result is larger, the logical value is "1" (corresponding to the shaded area in Figure 3)
If the values are smaller or equal, the logical value is expressed as "0". The holding means 8.9.10 is a line memory that stores three lines of the logical value 36 output from the comparing means 7. Numerals 11 to 19 are latches for storing each logical value read out in nine ranges of 3 pixels x 3 lines from each of the four holding stages 8, 9, and 10. The counting means 20 includes each latch 11 to
The nine pieces of logical data 37 to 45 output from 19 are input, and the number of cases where the logical value is "1", that is, larger than the threshold value 50, is counted. The determining means 21 compares the count result output 46 of the counting means 20 with a threshold value 47.48, determines whether the count result is between the threshold values, and if it is between the threshold values, determines that it is a character area, The judgment result 49 is output.

次に、以上述べた実施例の動作を説明する。発振器22
は、クロック信号35を、記憶手段1゜2、ラッチ8.
4,5.差記憶手段6.比較手段8.9.10に送り、
それら回路を同期させる。
Next, the operation of the embodiment described above will be explained. Oscillator 22
stores the clock signal 35 in the storage means 1.2, the latch 8.
4,5. Difference storage means 6. Send to comparison means 8.9.10,
Synchronize those circuits.

主走査1画素及び副走査1ラインシフトした画像データ
を差記憶手段6に於てそれぞれ比較し、差を出力する。
The image data shifted by one pixel in the main scanning direction and by one line in the sub-scanning direction are compared in the difference storage means 6, and the difference is output.

比較手段7は、その差と閾値50とを比較し、論理値3
6として出力する。これら論理値を保持4段8 、9 
、10で3ライン分保持し、更に、9個分、ラッチ11
〜19を通じて出力させ、計数手段20で、論理「1」
の合計を計数する。判断手段21は、計数手段20から
出力された計数結果46と閾値47.48とを比較する
。それにより文字領域と写真領域とを弁別して、その結
果を出力する。
The comparison means 7 compares the difference with the threshold value 50 and obtains a logical value of 3.
Output as 6. Hold these logical values in 4 stages 8, 9
, 10 holds 3 lines, and 9 lines, latch 11
~19, and the counting means 20 outputs a logic "1".
Count the total. The determining means 21 compares the counting result 46 output from the counting means 20 with a threshold value 47.48. Thereby, text areas and photo areas are distinguished and the results are output.

発明の効果 以上のように本発明は、画像データとシフトされた画像
データとをそれぞれ記憶する記憶手段と、画像データ及
びシフト画像データの差を記憶する差記憶手段と、差及
び所定閾値を比較する比較手段と、比較結果を一定の範
囲内で計数する計数手段と、計数された値に基づき、文
字画像か写真画像かを判断する判断手段とを備えるので
、非常に簡単な回路構成で、しかも十分速く、文字と写
真が混合された画像データについて、文字と写真領域を
区別できる。
Effects of the Invention As described above, the present invention provides storage means for storing image data and shifted image data, difference storage means for storing a difference between the image data and shifted image data, and a method for comparing the difference and a predetermined threshold value. It has a very simple circuit configuration, as it is equipped with a comparison means for counting the comparison results within a certain range, a counting means for counting the comparison results within a certain range, and a judgment means for judging whether it is a character image or a photographic image based on the counted value. Moreover, it is sufficiently fast that it is possible to distinguish between text and photo areas in image data containing a mixture of text and photos.

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

第1図は本発明の一実施例における文字写真画像判断装
置のブロック図、第2図(a)、(b)。 ((り、(d)は本発明の詳細な説明するための信号図
、第3図(a)、(b)、(C)は本発明の詳細な説明
するための画素領域などの平面図である。 1.2・・・記憶手段、6・・・差記憶手段、7・・・
比較手段、8.9.10  ・・・保持手段、20・・
・計数手段、21 ・・・判断手段。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第2
図 1V−1 第 3 図
FIG. 1 is a block diagram of a text/photo image judgment device according to an embodiment of the present invention, and FIGS. 2(a) and (b). ((d) is a signal diagram for explaining the present invention in detail, and FIGS. 3(a), (b), and (C) are plan views of the pixel area, etc. for explaining the present invention in detail. 1.2...Storage means, 6...Difference storage means, 7...
Comparison means, 8.9.10... Holding means, 20...
・Counting means, 21...judgment means. Name of agent: Patent attorney Toshio Nakao and 1 other person 2nd
Figure 1V-1 Figure 3

Claims (4)

【特許請求の範囲】[Claims] (1)文字画像と写真画像が混在している多値画像デー
タに対し、主走査方向x及び副走査方向yについて量子
化された画像データと主走査方向にn画素及び副走査方
向にmライン(n、mは整数)シフトされた画像データ
とをそれぞれ記憶手段と、前記画像データ及び前記シフ
ト画像データの差を記憶する差記憶手段と、前記差及び
所定閾値を比較する比較手段と、前記比較手段による比
較結果を主走査方向N画素及び副走査方向Mライン(M
、Nは整数)の範囲で保持する保持手段と、その保持さ
れたN画素及びMラインの範囲内における前記結果を計
数する計数手段と、前記計数手段により計数された値に
基づき、N画素及びMラインの範囲の領域に関して、文
字画像かを判断する判断手段とを備えたことを特徴をす
る文字写真画像判断装置。
(1) For multivalued image data in which text images and photographic images are mixed, image data is quantized in the main scanning direction x and sub-scanning direction y, and n pixels in the main scanning direction and m lines in the sub-scanning direction. (n and m are integers) a storage means for storing the shifted image data, a difference storage means for storing the difference between the image data and the shifted image data, a comparison means for comparing the difference with a predetermined threshold; The comparison result by the comparison means is divided into N pixels in the main scanning direction and M lines in the sub-scanning direction (M
, N is an integer); a counting means for counting the results within the range of the N pixels and M lines; 1. A character/photo image determining device comprising a determining means for determining whether a region within the range of M lines is a character image.
(2)判断手段は、前記計数結果が、前記N、Mにより
決まる所定の閾値より大きい場合に、そのN、M領域に
関して文字画像と判断することを特徴とする特許請求の
範囲第1項記載の文字写真画像判断装置。
(2) If the counting result is larger than a predetermined threshold determined by the N and M, the determining means determines that the N and M areas are character images. text/photo image judgment device.
(3)判断手段は、前記計数結果が、所定の2つの閾値
の間に存在する場合に、そのN、M領域に関して文字画
像と判断することを特徴とする特許請求の範囲第1項記
載の文字写真画像判断装置。
(3) The determination means determines that the N and M regions are character images when the counting result is between two predetermined threshold values. Text/photo image judgment device.
(4)記憶手段は、画像データを主走査方向1ライン分
記憶する記憶回路を2つ有し、その1つの記憶回路は多
値画像データを入力順に格納するものであり、他の記憶
回路は多値画像データを主走査方向n画素、副走査方向
mラインずらした画像データを格納するものであること
を特徴とする特許請求の範囲第1項記載の文字写真画像
判断装置。
(4) The storage means has two storage circuits for storing one line of image data in the main scanning direction, one of which stores multivalued image data in the order of input, and the other storage circuit stores one line of image data in the main scanning direction. 2. The text/photo image judgment device according to claim 1, wherein image data obtained by shifting multivalued image data by n pixels in the main scanning direction and m lines in the sub-scanning direction is stored.
JP62314501A 1987-12-11 1987-12-11 Text/photo image judgment device Pending JPH01155486A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62314501A JPH01155486A (en) 1987-12-11 1987-12-11 Text/photo image judgment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62314501A JPH01155486A (en) 1987-12-11 1987-12-11 Text/photo image judgment device

Publications (1)

Publication Number Publication Date
JPH01155486A true JPH01155486A (en) 1989-06-19

Family

ID=18054054

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62314501A Pending JPH01155486A (en) 1987-12-11 1987-12-11 Text/photo image judgment device

Country Status (1)

Country Link
JP (1) JPH01155486A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012121242A (en) * 2010-12-09 2012-06-28 Canon Inc Image forming apparatus and image forming method
CN111083301A (en) * 2018-10-22 2020-04-28 夏普株式会社 Information processing device, storage medium, and setting control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012121242A (en) * 2010-12-09 2012-06-28 Canon Inc Image forming apparatus and image forming method
US8891092B2 (en) 2010-12-09 2014-11-18 Canon Kabushiki Kaisha Image forming apparatus and image forming method
CN111083301A (en) * 2018-10-22 2020-04-28 夏普株式会社 Information processing device, storage medium, and setting control method

Similar Documents

Publication Publication Date Title
US4896364A (en) Method of detecting boundary structures in a video signal
US5701364A (en) Image processing apparatus
JPH03126181A (en) How to divide document images into regions
JPS5935270A (en) Picture element density converter
JP3062224B2 (en) Image coding method
JPH01288974A (en) Picture processing method
US5103487A (en) Image processing method
JPH01119872A (en) Conversion circuit
JPH0822507A (en) Document recognition device
JPH02195774A (en) Multilevel image binarizing system
JP3161715B2 (en) Character area judgment device
JPH06141176A (en) Picture discrimination device
JPS6083469A (en) Binary coding device for picture signal
JPS6224374A (en) Picture converting device
JPH06253140A (en) Picture discrimination device, isolating point elimination device and picture reduction device
JPH0381345B2 (en)
JPS6276962A (en) Original recognition device
JPH03100773A (en) Data processor
JPS61195476A (en) line width recognition device
JPH02123479A (en) Line drawing area separation method
JPH01276971A (en) Picture processor
JPS636962A (en) Original reading method
JPH02139799A (en) Two-dimensional shift register and arithmetic circuit for motion vector detection using it
JPH0224432B2 (en)
JPH0594531A (en) Binarizing filter device