JPH039487A - Processor and image character/picture deciding device - Google Patents

Processor and image character/picture deciding device

Info

Publication number
JPH039487A
JPH039487A JP1143629A JP14362989A JPH039487A JP H039487 A JPH039487 A JP H039487A JP 1143629 A JP1143629 A JP 1143629A JP 14362989 A JP14362989 A JP 14362989A JP H039487 A JPH039487 A JP H039487A
Authority
JP
Japan
Prior art keywords
character
pixel
block
signal
noise
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
JP1143629A
Other languages
Japanese (ja)
Inventor
Kazunori Kinoshita
木下 和憲
Tsugio Takahashi
次男 高橋
Toshihiro Hananoi
花野井 歳弘
Hidefumi Masuzaki
増崎 秀文
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1143629A priority Critical patent/JPH039487A/en
Publication of JPH039487A publication Critical patent/JPH039487A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To surely remove paper noise having almost the same level as that of a character by dividing a character into a character area and a non-character area, outputting a character binarizing signal in the case of the character area, or outputting a white picture element signal in the case of the non-character area. CONSTITUTION:A matrix arithmetic circuit M1 outputs '1' (white) when the center picture element of a matrix consisting of 3 X 3 picture elements e.g. is '1' (white) or all the picture elements surrounding the center picture element are '1' (white). A matrix arithmetic circuit M2 executes black picture element blocking processing, a matrix arithmetic circuit M3 executes black density deciding processing and a matrix arithmetic circuit M4 executes character effective area deciding processing. A matrix arithmetic circuit M5 executes correction processing. A selector 2b in an output part 2 is operated through a character area deciding signal 6, and in the case of the character area, a character binarizing signal 5a is outputted after picture element unit noise processing. In the case of the non-character area, white data are outputted as a character binarizing signal 5b after noise processing. Consequently, comparatively large noise similar to the size of each character size can be surely removed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像処理技術および文字・写真判定技術に関
し、特に、帳票からの文字情報の読み取りにおける比較
的大きな紙面ノイズの弁別に効果のある技術に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to image processing technology and text/photo recognition technology, and is particularly effective in discriminating relatively large paper surface noise when reading text information from a form. Regarding technology.

〔従来の技術〕[Conventional technology]

たとえば、電子ファイルシステムなどに右いては、帳票
などに記載されている文字情報をイメージスキャナなど
によって所定の解像度の文字2値化信号として入力する
ことが行われている。
For example, in electronic file systems and the like, character information written on a form or the like is input as a character binary signal of a predetermined resolution using an image scanner or the like.

ところで、このような帳票上の文字情報の読み取りに際
しては、紙面の汚れなどに起因する目的の文字情報以外
の紙面ノイズを効果的に除去することが、入力データの
品位を向上させるなどの観点から重要となる。
By the way, when reading text information on such forms, it is important to effectively remove paper surface noise other than the desired text information caused by dirt on the paper surface, etc., from the perspective of improving the quality of input data. becomes important.

従来から、このような紙面ノイズを除去する技術として
は、画素毎に独立に存在するランダム雑音を対象とする
場合は、画像の平滑化や平均化処理をすることがノイズ
抑止に効果があることが知られている。また、ランダム
雑音の一種である白黒の斑点状の雑音(ごま塩雑音)を
対象とする場合は、メデイアンフィルタに代表されるフ
ィルタリング処理がノイズ除去に有効であることが知ら
れている。
Conventionally, as a technique for removing such paper noise, when targeting random noise that exists independently for each pixel, image smoothing and averaging processing are effective in suppressing noise. It has been known. Furthermore, when dealing with monochrome speckled noise (salt-and-pepper noise), which is a type of random noise, it is known that filtering processing, typified by a median filter, is effective for noise removal.

なお、上記の従来技術の内容の詳細については、たとえ
ば、共立出版株式会社、昭和60年5月25日初版第3
刷発行、尾崎弘・谷口慶治・小川秀夫著「画像処理JP
145以下、などの文献に記載されている。
For details of the above-mentioned prior art, see Kyoritsu Shuppan Co., Ltd., May 25, 1985, first edition No. 3.
Published by Hiroshi Ozaki, Keiji Taniguchi, and Hideo Ogawa, “Image Processing JP
145 et seq., et al.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

ところが、上記の従来技術は、注目画素と近傍画素との
比較処理による画素単位でのノイズ処理を行うため、ノ
イズの大きさが目的の文字画像に近いような場合にはノ
イズ除去の効果が得られないという問題点があった。
However, the above-mentioned conventional technology performs noise processing on a pixel-by-pixel basis by comparing the pixel of interest with neighboring pixels, so it is not effective in removing noise when the noise size is close to that of the target character image. The problem was that it could not be done.

そこで、本発明の目的は、比較的大きな紙面ノイズと文
字情報とを分離することが可能な画像処理技術を提供す
ることにある。
SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide an image processing technique that can separate relatively large paper noise and character information.

本発明の他の目的は、簡略な回路構成で、比較的大きな
紙面ノイズの除去を行うことが可能な画像処理装置を提
供することにある。
Another object of the present invention is to provide an image processing device that can remove relatively large page noise with a simple circuit configuration.

本発明のさらに他の目的は、文字原稿読取モードを有し
、比較的大きな紙面ノイズと文字情報とを分離すること
が可能な文字・写真判定装置を提供することにある。
Still another object of the present invention is to provide a text/photo identification device that has a text document reading mode and is capable of separating relatively large paper surface noise from text information.

本願において開示される発明のうち、代表的なものの概
要を簡単に説明すれば、下記のとふりである。
A brief overview of typical inventions disclosed in this application is as follows.

〔課題を解決するための手段〕[Means to solve the problem]

本願において開示される発明のうち、代表的なものの概
要を簡単に説明すれば、下記のとおりである。
A brief overview of typical inventions disclosed in this application is as follows.

すなわち、本発明になる画像処理装置は、文字2値化信
号を発生する入力手段と、文字2値化信号から紙面ノイ
ズを除去するノイズ処理手段とからなる画像処理装置に
おいて、文字2値化信号にn×n画素の2次元情報演算
を行い画素単位にノイズを除去する処理を行う画素単位
ノイズ除去処理手段と、画素単位のノイズ除去処理を行
った文字2値化信号にm×m画素の2次元情報演算を施
し、黒画素の集合の検出をm×m画素のブロック単位に
行うブロック単位黒画素検出手段と、このブロック単位
黒画素検出手段から得られるブロック単位の黒画素の検
出出力にk×kのブロック平面で8回の異なる2次元情
報演算を行い、文字領域の判定をブロック単位に行う文
字領域判定手段と、この文字領域判定手段において文字
領域と判定される場合は画素単位のノイズ除去処理を施
して得られた文字2値化信号を出力し、そうでない場合
には白信号を出力する切替手段とを設けたものである。
That is, the image processing apparatus according to the present invention includes an input means for generating a character binary signal and a noise processing means for removing paper noise from the character binary signal. a pixel-by-pixel noise removal processing means that performs two-dimensional information calculation on n×n pixels and removes noise on a pixel-by-pixel basis; A block-by-block black pixel detection means that performs two-dimensional information calculation to detect a set of black pixels in blocks of m×m pixels, and a block-by-block black pixel detection output obtained from the block-by-block black pixel detection means. Character area determination means performs eight different two-dimensional information calculations on a k×k block plane and determines a character area in block units, and when this character area determination means determines a character area, it performs eight different two-dimensional information calculations on a block plane of k×k. The apparatus is provided with a switching means for outputting a character binary signal obtained by performing noise removal processing, and outputting a white signal if not.

また、本発明になる文字・写真判定装置は、画素単位と
ブロック単位に、背景白情報に基づいて文字領域と写真
領域とを弁別する文字・写真判定装置において、文字原
稿に専用の文字原稿読取モード信号と、この文字原稿読
取モード信号によって、画素単位の文字・写真判定処理
を行う第1の2次元情報演算手段の演算関数を切り替え
て画素単位のノイズ除去処理を行わせる第1の切替手段
と、文字原稿読取モード信号によって、白密度判定を行
う第2の2次元情報演算手段に対する入力信号を背景白
信号から文字2値化信号に切り替えて黒画素の集合を含
む黒ブロックの検出を行わせる第2の切替手段と、文字
原稿読取モード信号により、ブロック単位の文字・写真
判定を行う第3の2次元情報演算手段の演算関数を切り
替えて背景のノイズか文字かの判定を行わせる第3の切
替手段とを設けたものである。
Further, the text/photo identification device of the present invention is a text/photo identification device that discriminates between text areas and photo areas based on background white information in pixel units and block units. A mode signal and a first switching means that performs a pixel-by-pixel noise removal process by switching the calculation function of the first two-dimensional information calculation means that performs a pixel-by-pixel character/photo determination process based on the character document reading mode signal. Then, in response to the character original reading mode signal, the input signal to the second two-dimensional information calculation means for determining white density is switched from the background white signal to the character binary signal, and a black block containing a set of black pixels is detected. and a third two-dimensional information calculation means for determining whether a character is a background noise or a character by switching a calculation function of a third two-dimensional information calculation means for determining characters/photos in units of blocks based on a character document reading mode signal. 3 switching means are provided.

〔作用〕[Effect]

上記した本発明の画像処理装置によれば、画素単位のノ
イズ除去された文字2値化信号を用いて、ある程度大き
い黒画素(たとえば2×2画素)を含むか否か、すなわ
ち黒ブロックか否かを所望のブロック単位(たとえば8
×8画素のブロック)に判定し、次にこのブロック単位
の判定結果にm×m(たとえば4×4)のブロック平面
で、黒ブロックの数の閾値判定によって大きな範囲での
黒画素の検出を行う黒密度判定と、当該黒密度判定の結
果をさらに大きなブロック(たとえば1ブロック=16
X16画素)に展開し、たとえば四隅ブロックにおける
黒ブロックの有無によって中心ブロックを黒ブロックま
たは白画素ブロックとみなすことで周囲に大きい範囲で
黒画素が見つかる領域があるか否かを判定する文字領域
判定と、この文字領域判定の結果を所望のブロック数に
展開し、当該ブロック内における黒ブロツク数が所定の
閾値を超えた場合には文字領域とし、そうでない場合に
は文字領域外とするコレクション処理とからなる3回の
異なる2次元情報演算を行うことで、文字に近接した領
域とそうでない領域とに分け、文字領域の場合には文字
2値化信号を出力し、文字領域以外の場合には白画素信
号を出力することにより、画素単位のノイズのみならず
文字と同程度の大きさの紙面ノイズをも的確に除去する
ことができる。
According to the above-described image processing device of the present invention, a character binary signal from which noise has been removed pixel by pixel is used to determine whether or not a certain amount of large black pixels (for example, 2×2 pixels) are included, that is, whether or not the block is a black block. in desired block units (e.g. 8
x 8 pixel block), and then based on the judgment result for each block, black pixels are detected in a large range by thresholding the number of black blocks on an m x m (for example, 4 x 4) block plane. The black density determination to be performed and the result of the black density determination are divided into larger blocks (for example, 1 block = 16
Character area determination that determines whether there is a large surrounding area where black pixels can be found by considering the center block as a black block or white pixel block depending on the presence or absence of black blocks in the four corner blocks. Then, the result of this character area determination is expanded to a desired number of blocks, and if the number of black blocks in the block exceeds a predetermined threshold, it is treated as a character area, otherwise it is removed as a collection process. By performing three different two-dimensional information operations consisting of By outputting a white pixel signal, it is possible to accurately remove not only pixel-by-pixel noise but also paper surface noise of the same size as characters.

また、複数回の2次元情報演算をライン単位に分割処理
することによって1個のマトリックス演算回路で行わせ
ることで、簡単な回路構成で比較的大きな紙面ノイズの
除去を行うことができる。
Further, by dividing a plurality of two-dimensional information calculations into line units and performing them in one matrix calculation circuit, relatively large paper noise can be removed with a simple circuit configuration.

また、上記した本発明の文字・写真判定装置によれば、
外部からの文字原稿読取モード信号の設定によって、画
素単位の文字・写真判定処理を行う第1の2次元情報演
算手段と、背景の白密度判定を行う第2の2次元情報演
算手段およびブロック単位の文字・写真判定を行う第3
の2次元情報演算手段の演算関数を切り替え、第1の2
次元情報演算には画素単位のノイズ処理を行わせ、第2
の2次元情報演算には、入力信号を背景白信号から文字
2値化信号に切り替えて黒ブロックの検出を行わせ、第
3の2次元情報演算には文字領域か否かの判定処理を行
わせることで、文字原稿読取処理において、画素単位の
ノイズのみならず、文字と同程度の大きさの紙面ノイズ
の除去を的確に行わせることができる。
Further, according to the above-described character/photo identification device of the present invention,
A first two-dimensional information calculation means that performs character/photo judgment processing in pixel units according to the setting of an external text document reading mode signal, a second two-dimensional information calculation means that performs background white density judgment, and block units. The third step is to judge the text and photo of
The calculation function of the two-dimensional information calculation means of the first two-dimensional information calculation means is switched.
Dimensional information calculation is performed by pixel-by-pixel noise processing, and the second
In the second two-dimensional information calculation, the input signal is switched from a background white signal to a character binary signal to detect a black block, and in the third two-dimensional information calculation, processing is performed to determine whether or not it is a character area. By doing so, in the character document reading process, not only noise in pixel units but also paper surface noise of the same size as the characters can be accurately removed.

〔実施例1〕 以下、本発明の一実施例である画像処理装置について図
面を参照しながら詳細に説明する。
[Embodiment 1] Hereinafter, an image processing apparatus that is an embodiment of the present invention will be described in detail with reference to the drawings.

第1図は、本発明の一実施例である画像処理装置の構成
の一例を示すブロック図であり、第2図および第3図は
その各部の機能の一例を示す説明図、さらに第4図およ
び第5図は、2次元情報演算におけるブロック設定の一
例を示す説明図、また、第6図および第7図は2次元情
報演算を実現する回路構成の一例を示すブロック図であ
る。
FIG. 1 is a block diagram showing an example of the configuration of an image processing device that is an embodiment of the present invention, FIGS. 2 and 3 are explanatory diagrams showing examples of the functions of each part, and FIG. 5 is an explanatory diagram showing an example of block settings in two-dimensional information calculation, and FIGS. 6 and 7 are block diagrams showing an example of a circuit configuration for realizing two-dimensional information calculation.

本実施例の画像処理装置は、大別して画素単位ノイズ除
去処理部1と、出力部2と、ブロック単位黒画素検出部
3と、ブロック単位文字領域判定部4とで構成されてい
る。
The image processing apparatus of this embodiment is broadly divided into a pixel-by-pixel noise removal processing section 1, an output section 2, a block-by-block black pixel detection section 3, and a block-by-block character area determination section 4.

画素単位ノイズ除去処理部1は、図示しない画像入力装
置より到来する文字2値化信号5に対して画素単位での
ノイズ除去処理(孤立ノイズ除去処理)を施し、画素単
位ノイズ処理後文字2値化信号5aとして出力する動作
を行うマトリックス演算回路M1を備えている。
The pixel-by-pixel noise removal processing unit 1 performs pixel-by-pixel noise removal processing (isolated noise removal processing) on the character binary signal 5 that arrives from an image input device (not shown), and converts the character binary signal after the pixel-by-pixel noise processing to the character binary signal 5. It is provided with a matrix calculation circuit M1 that performs an operation of outputting a converted signal 5a.

すなわち、第2図に示されるように、このマトリックス
演算回路M1は、たとえば、3X3画素からなるマトリ
ックスの中央の画素が1 (白)またはそれを取り囲む
画素が全て1 (白)の時に1(白)を出力する動作を
行うようになっている。
That is, as shown in FIG. 2, this matrix calculation circuit M1 outputs 1 (white) when the central pixel of a matrix consisting of 3×3 pixels is 1 (white) or all surrounding pixels are 1 (white). ).

この画素単位ノイズ除去処理部1から出力される画素単
位ノイズ処理後文字2値化信号5aは、後段の出力部2
およびブロック単位黒画素検出部3に人力されている。
The pixel-by-pixel noise-processed character binary signal 5a output from the pixel-by-pixel noise removal processing unit 1 is sent to a subsequent output unit 2.
and the block-by-block black pixel detection section 3 is manually operated.

ブロック単位黒画素検出部3は、マトリックス演算回路
M2を備えており、このマトリックス演算回路M2は、
第2図に示されるように、到来する画素単位ノイズ処理
後文字2値化信号5aに基づいて、8X8画素に2X2
の黒画素が1個以上あれば1、それ以外はOを後段のブ
ロック単位文字領域判定部4に出力する処理(黒画素ブ
ロック化処理)を行うようになっている。
The block unit black pixel detection section 3 includes a matrix calculation circuit M2, and this matrix calculation circuit M2
As shown in FIG. 2, based on the incoming pixel-by-pixel noise-processed character binary signal 5a, 2×2 pixels are divided into 8×8 pixels.
If there is one or more black pixels, 1 is output, otherwise O is output to the subsequent block unit character area determination unit 4 (black pixel blocking process).

さらに、このブロック単位黒画素検出部3からの出力を
入力とするブロック単位文字領域判定部4は、複数のマ
トリックス演算回路M3.マ) IJックス演算回路M
4.マトリックス演算回路M5を備えている。
Further, a block-by-block character area determining section 4 which receives the output from the block-by-block black pixel detecting section 3 includes a plurality of matrix calculation circuits M3. M) IJx calculation circuit M
4. It is equipped with a matrix calculation circuit M5.

それぞれのマトリックス演算回路M3〜M5は、第3図
に示されるような処理を行うようになっている。
Each of the matrix calculation circuits M3 to M5 is designed to perform processing as shown in FIG.

すなわち、マトリックス演算回路M3は、たとえば各々
が8X8画素からなる4X4ブロツク中に、たとえば5
ブロック以上の黒ブロックがある場合に1、それ以外は
0を出力する処理(黒密度判定処理)を行い、マトリッ
クス演算回路M4は、第4図に示されるように、各々が
16X16画素の大きさの4X4ブロツクの四隅に前記
黒密度判定処理のマトリックスを展開し、四隅のブロッ
クが一つでも1であれば1、それ以外は0を出力する処
理(文字有効領域判定処理)を行うものである。
That is, the matrix calculation circuit M3 calculates, for example, 5 pixels in a 4×4 block each consisting of 8×8 pixels.
A process (black density determination process) is performed to output 1 when there is a black block or more, and 0 otherwise, and the matrix calculation circuit M4 has a size of 16 x 16 pixels each, as shown in FIG. The matrix for the black density determination process is expanded to the four corners of the 4×4 block, and if even one of the four corner blocks is 1, 1 is output, otherwise 0 is output (character effective area determination process). .

さらに、マトリックス演算回路M5は、第5図に示され
るように、各々が16X16画素の大きさの3×3ブロ
ツク中に、前段のマトリックス演算回路M4からの出力
が1の黒ブロックが、たとえば6ブロツク以上あれば1
 (すなわち文字領域)、それ以外は0(非文字領域)
を、文字領域判定信号6として、前記出力部2に送出す
る処理(コレクション判定)を行うようになっている。
Furthermore, as shown in FIG. 5, the matrix arithmetic circuit M5 includes, for example, 6 black blocks in which the output from the preceding stage matrix arithmetic circuit M4 is 1 in 3×3 blocks each having a size of 16×16 pixels. 1 if there are blocks or more
(i.e. character area), otherwise 0 (non-character area)
is sent to the output unit 2 as a character area determination signal 6 (collection determination).

前記出力部2は、前段の画素単位ノイズ除去処理部1か
ら到来する画素単位ノイズ処理後文字2値化信号5aを
、ブロック単位黒画素検出部3およびブロック単位文字
領域判定部4における前述の処理の所要時間に相当する
分だけ蓄えるように容量が設定されたラインメモリ2a
と、このラインメモリ2aから到来する画素単位ノイズ
処理後文字2値化信号5aおよび所定の白データ(白=
1)のいずれかを、当該画素単位ノイズ処理後文字2値
化信号5aに同期して入力される前記文字領域判定信号
6に応じて選択し、ノイズ処理後文字2値化信号5bと
して出力するセレクタ2bとで構成されている。
The output section 2 processes the pixel-by-pixel noise-processed character binary signal 5a coming from the pixel-by-pixel noise removal processing section 1 at the previous stage, by subjecting it to the above-described processing in the block-by-block black pixel detection section 3 and the block-by-block character area determination section 4. Line memory 2a whose capacity is set to store an amount corresponding to the time required for
Then, the character binary signal 5a after pixel unit noise processing coming from this line memory 2a and predetermined white data (white=
1) is selected according to the character area determination signal 6 inputted in synchronization with the pixel unit noise-processed character binary signal 5a, and outputted as the noise-processed character binary signal 5b. It is composed of a selector 2b.

これにより、ラインメモリ2aを介して到来する画素単
位ノイズ処理後文字2値化信号5aが、ブロック単位黒
画素検出部3およびブロック単位文字領域判定部4にお
いて紙面ノイズと判定される場合には、当該画素単位ノ
イズ処理後文字2値化信号5aの出力を抑止し、白デー
タをノイズ処理後文字2値化信号5bとして出力するこ
とで、紙面ノイズの除去を行うものである。
As a result, when the pixel-by-pixel noise-processed character binary signal 5a that arrives via the line memory 2a is determined to be paper surface noise by the block-by-block black pixel detection unit 3 and the block-by-block character area determination unit 4, Paper surface noise is removed by suppressing the output of the pixel unit noise-processed character binary signal 5a and outputting white data as the noise-processed character binary signal 5b.

ここで、前述のマトリックス演算回路Ml−=M5の構
成の一例を示すものが第6図である。
Here, FIG. 6 shows an example of the configuration of the above-mentioned matrix calculation circuit Ml-=M5.

すなわち、同図に示されるマトリックス演算回路は、5
X5のマトリックスサイズの2次元情報演算を行うもの
であり、マトリックスの各要素を保持する25個のレジ
スタ八と、4ライン分のラインメモリBと、第2図およ
び第3図に示されるような所望の2次元情報演算を行う
演算用続出専用メモリCとで構成されている。また、演
算用読出専用メモリCは、関数切替信号りによって演算
関数を切り替えることができるとともに、同時に3つの
2次元情報演算を行うことが可能になっている。
That is, the matrix calculation circuit shown in the same figure has 5
It performs two-dimensional information calculations with a matrix size of It is comprised of a memory C dedicated to continuous processing for calculations for performing desired two-dimensional information calculations. Further, the calculation read-only memory C can switch the calculation function by a function switching signal, and can perform three two-dimensional information calculations at the same time.

ところで、ブロック単位の複数のマトリックス演算は、
ブロック単位に1回の割合で行えばよく、ブロックサイ
ズがn画素×nラインの場合、1つの演算はnラインに
1回の割合でよく、マトリックス演算をライン単位に時
分割処理することで、1つのマトリックス演算回路(但
し、演算出力は複数)でn個の2次元情報演算を行うこ
とが可能である。
By the way, multiple matrix operations in block units are
It only needs to be performed once per block, and if the block size is n pixels x n lines, one calculation can be performed once per n lines. It is possible to perform n two-dimensional information operations with one matrix operation circuit (however, there are multiple operation outputs).

このため、本実施例の場合には、ブロック単位文字領域
判定部を構成するマトリックス演算回路M3〜M5の機
能を、第7図に示されるように一つのマトリックス演算
回路Mによって行わせることで、回路規模の削減を図っ
ている。
Therefore, in the case of this embodiment, the functions of the matrix calculation circuits M3 to M5 constituting the block unit character area determination section are performed by one matrix calculation circuit M as shown in FIG. Efforts are being made to reduce the circuit scale.

すなわち、本実施例のブロック単位文字領域判定部4は
、マトリックス演算回路M3.M4.M5によって行わ
れるべき3つの演算を同時に行い出力するマトリックス
演算回路Mと、タイミング制御回路4aからの制御信号
によって動作するセレクタ4bおよびセレクタ4Cと、
マトリックス演算の結果を1ライン分保持し、次の演算
処理の入力とするためのラインメモリ4dと、nライン
に1回の割合で出力される最終演算結果をnライ2分保
持して出力するラインメモリ4eとで構成されている。
That is, the block unit character area determination unit 4 of this embodiment includes the matrix calculation circuits M3. M4. A matrix calculation circuit M that simultaneously performs and outputs three calculations to be performed by M5, and a selector 4b and a selector 4C that operate according to a control signal from a timing control circuit 4a.
A line memory 4d holds the result of matrix calculation for one line and uses it as input for the next calculation process, and holds and outputs the final calculation result for two lines of n lines, which is output once every n lines. It is composed of a line memory 4e.

以下、本実施例の画像処理装置の動作の一例を、第8図
および第9図さらには第10図および第11図の流れ図
などを参照しながら説明する。
Hereinafter, an example of the operation of the image processing apparatus of this embodiment will be described with reference to flowcharts in FIGS. 8 and 9, as well as in FIGS. 10 and 11.

まず、図示しない画像入力装置から到来する文字2値化
信号5は、画素単位ノイズ除去処理部1に人力され、マ
トリックス演算回路M1における第2図に示されるよう
なマトリックス演算によって1ビツト(1画素)の孤立
したノイズの有無が調べられ(ステップ1001) 、
あれば除去される(ステップ1002)。
First, a character binary signal 5 arriving from an image input device (not shown) is input to the pixel-by-pixel noise removal processing section 1, and is processed into one bit (one pixel) by matrix calculation as shown in FIG. 2 in the matrix calculation circuit M1. ) is checked for the presence of isolated noise (step 1001),
If so, it is removed (step 1002).

なお、上記の処理は、後述のブロック単位の黒画素の前
処理を兼ねている。
Note that the above processing also serves as preprocessing of black pixels in blocks, which will be described later.

こうして、画素単位のノイズが除去された画素単位ノイ
ズ処理後文字2値化信号5aは、後段の出力部2のライ
ンメモリ2aに保持されると同時に、一部はブロック単
位黒画素検出部3のマトリックス演算回路M2に人力さ
れる。
In this way, the pixel-by-pixel noise-processed character binary signal 5a from which pixel-by-pixel noise has been removed is held in the line memory 2a of the subsequent output section 2, and at the same time, part of it is stored in the block-by-block black pixel detection section 3. It is manually input to the matrix calculation circuit M2.

このマトリックス演算回路M2では、8X8の画素ブロ
ックで、2X2の黒画素の集合があるか否かを判定しく
ステップ1003)、あれば当該ブロックを黒画素ブロ
ックとしくステップ1004)、なければ白画素ブロッ
クとする(ステップ1005)、黒画素ブロック化処理
を行う。
This matrix arithmetic circuit M2 determines whether there is a set of 2X2 black pixels in an 8X8 pixel block (step 1003), and if so, the block is designated as a black pixel block (step 1004); otherwise, it is a white pixel block. (step 1005), black pixel blocking processing is performed.

すなわち、文字のある領域では、2X2の黒画素の集合
は容易に見つかるが、文字から離れた領域では、紙面ノ
イズとして、2X2画素より小さいものは多発すること
はあっても(本実施例の場合、このノイズは、前段のマ
トリックス演算回路M1において除去されている)、2
X2画素より大きいノイズの発生は少なく、発生したと
しても単発で離散的であるので、この黒画素ブロック化
処理により、文字領域以外においてノイズの可能性の高
いものを抽出できる。
In other words, in an area with text, a collection of 2x2 black pixels can be easily found, but in areas away from the text, pixels smaller than 2x2 pixels may occur frequently as paper noise (in the case of this example). , this noise is removed in the previous stage matrix calculation circuit M1), 2
Noises larger than X2 pixels rarely occur, and even if they do occur, they occur only once and in a discrete manner, so by this black pixel blocking process, it is possible to extract those that are likely to be noises in areas other than character areas.

さらに、ブロック単位文字領域判定部4のマトリックス
演算回路M3 (M)では、たとえば、除去する紙面ノ
イズの大きさを1叩角以下の大きさと考えると、第9図
に示される0、5M角(ライン密度16本/rmrとす
ると8X8画素ブロック)の大きさの黒画素判定ブロッ
クを4×4のブロック平面に展開して(ステップ100
6)、黒画素ブロックの数が5個以上か以下かを判定し
くステップ1007)、5個以上の場合は文字として黒
画素ブロックとしくステップ1008)、4個以下の場
合にはノイズと見なして白画素ブロックを出力する(ス
テップ1009>処理(黒密度判定処理)を行う。これ
により、1fi角以下の大きさの孤立したノイズをノイ
ズと判定できる。
Further, in the matrix calculation circuit M3 (M) of the block unit character area determination section 4, for example, assuming that the size of paper surface noise to be removed is less than 1 tap angle, the 0, 5M square ( If the line density is 16 lines/rmr, a black pixel determination block with a size of 8 x 8 pixel blocks) is developed on a 4 x 4 block plane (step 100).
6), Determine whether the number of black pixel blocks is 5 or more or less (step 1007), if it is 5 or more, treat it as a black pixel block as a character (step 1008), and if it is 4 or less, consider it as noise. A white pixel block is output (step 1009>Processing (black density determination processing) is performed. As a result, isolated noise having a size of 1fi angle or less can be determined to be noise.

ところで、この黒密度判定処理では、いまだ2mm角の
範囲の画素しか見ていないため、たとえばピリオド(、
)やカンマ(1)などのような、文字に近接した小さな
黒点の集まり(文字)はノイズと見なしてしまう可能性
がある。
By the way, in this black density determination process, we are only looking at pixels within a 2 mm square area, so for example, periods (,
) or comma (1), a collection of small black dots (characters) close to a character may be considered noise.

そこで、マトリックス演算回路M4  (M)では、第
4図に示されるような、判定単位がl mm角の4×4
7)IJフックスイズの文字有効領域判定マトリックス
を設定し、このマトリックスに前記黒密度判定処理にお
ける2ffi11角の黒密度判定マ)IJックスの出力
を展開させる(ステップ1010)。
Therefore, in the matrix arithmetic circuit M4 (M), the judgment unit is 4×4 of l mm square as shown in FIG.
7) A character effective area determination matrix for IJ hook size is set, and the output of the 2ffi11 square black density determination matrix in the black density determination process is expanded into this matrix (step 1010).

そして、この文字有効領域判定マトリックスにおいて、
四隅の要素のうち1つでも黒画素ブロックであるかを調
べ(ステップ1011) 、そうならば文字領域と判定
して黒画素ブロックを出力しくステップ1012)、そ
うでない場合には、ノイズと見なして白画素ブロックを
出力する(ステップ1013)ような文字有効領域判定
処理を行う。
In this character effective area determination matrix,
It is checked whether at least one of the four corner elements is a black pixel block (step 1011), and if so, it is determined that it is a character area and a black pixel block is output (step 1012); if not, it is regarded as noise. Character valid area determination processing is performed to output a white pixel block (step 1013).

なお、文字有効領域判定マトリックスにおいて中心ブロ
ックを見ないのは、当該中心ブロックに黒画素ブロック
を検出しているブロックが存在しても周囲のブロックが
全て黒画素ブロックを検出していない場合には中心ブロ
ックをノイズと見なすためである。
Note that the reason why the center block is not looked at in the character valid area determination matrix is that even if there is a block in which black pixel blocks are detected in the center block, if all surrounding blocks do not detect black pixel blocks, This is because the center block is regarded as noise.

さらに、文字有効領域判定処理から出力で構成される文
字有効領域判定マトリックスに対して、マトリックス演
算回路M5  (M)は、第5図に示されるように、3
x3ブロツクのコレクション判定マトリックスを展開し
くステップ1014)、たとえば6ブロツク以上文字有
効領域と判定されたブロック(黒画素ブロック)がある
ならば1、最終的に文字領域としくステップ1015)
、そうでない場合には文字領域外として(ステップ10
16)、文字領域判定信号6に出力するコレクション処
理を行う。
Furthermore, as shown in FIG. 5, the matrix calculation circuit M5 (M) calculates 3
Expand the collection determination matrix for x3 blocks (step 1014). For example, if there is a block (black pixel block) that has been determined to be a valid character area for 6 blocks or more, set it to 1, and finally define it as a character area (step 1015).
, otherwise it is set as outside the character area (step 10
16) Performs a correction process to output the character area determination signal 6.

この処理により、前述のような一連の処理におけるブロ
ックの大きさの設定では、7關角の広さで文字有効領域
を平滑化処理できる。
With this process, when setting the block size in the series of processes as described above, it is possible to smooth the effective character area with a width of 7 squares.

すなわち、このコレクション処理は、いわゆるスムージ
ング処理であり、前段の文字有効領域判定マ) IJフ
ックスおける判定が四隅のブロックだけに着目して行わ
れているため検出単位が不連続となり、そのままでは文
字有効領域の判定結果も不連続になるので、このコレク
ション処理によって最終的な判定結果に連続性を持たせ
るようにしている。
In other words, this correction process is a so-called smoothing process, and since the judgment in the previous stage of character valid area judgment is performed by focusing only on the four corner blocks, the detection unit is discontinuous, and if it is left as it is, the character is not valid. Since the region determination results are also discontinuous, this collection process is used to ensure continuity in the final determination results.

そして、文字領域判定信号6を介して、出力部2のセレ
クタ2bを操作し、文字領域の場合は画素単位ノイズ処
理後文字2値化信号5aを(ステップ1018) 、文
字領域以外の場合には白データを(ステップ1019)
 、ノイズ処理後文字2値化信号5bとして出力する。
Then, the selector 2b of the output unit 2 is operated via the character area determination signal 6, and in the case of a character area, the character binarized signal 5a after pixel unit noise processing is output (step 1018), and in the case of a non-character area, the character binarized signal 5a is output. White data (step 1019)
, and output as a character binary signal 5b after noise processing.

これにより、文字領域以外における文字の大きさに近い
比較的大きな紙面ノイズを的確に除去することができる
This makes it possible to accurately remove relatively large page noise that is close to the size of characters outside the character area.

この結果、たとえば、文字原稿などの入力画像の品位が
向上する。
As a result, the quality of input images such as text manuscripts is improved.

また、ブロック単位文字領域判定部4において行うべき
3種のマトリックス演算を、第7図に示されるような回
路構成によって、時分割処理で一つのマトリックス演算
回路Mによって行わせるようにしているので、ノイズ除
去処理のために回路規模が必要以上に増大することが確
実に防止され、本実施例のような紙面ノイズの除去機能
を有する画像処理装置の製作に際しての原価増大を抑止
することができる。
Furthermore, the three types of matrix operations to be performed in the block unit character area determination section 4 are performed by one matrix operation circuit M in a time-sharing process using the circuit configuration shown in FIG. It is possible to reliably prevent the circuit scale from increasing unnecessarily due to the noise removal process, and it is possible to suppress an increase in cost when manufacturing an image processing apparatus having a paper noise removal function as in this embodiment.

〔実施例2〕 次に、文字と写真とが混在した原稿から文字画像を切り
出す機能を有する文字・写真判定装置においてノイズ除
去処理を行わせる場合の一例について、第12図を参照
しながら説明する。
[Embodiment 2] Next, an example of a case where a noise removal process is performed in a text/photo identification device having a function of cutting out a text image from a document containing a mixture of texts and pictures will be described with reference to FIG. 12. .

なお、本実施例の文字・写真判定装置における文字・写
真混在原稿の読み取り処理における各部の動作の詳細は
、本件出願人によってすでに出願されている特願昭63
−307165号の明細書中に詳述されているので、以
下の説明では、本発明のノイズ除去処理に関する部分以
外の構成および動作の説明は簡略化されている。
The details of the operation of each part in the text/photo identification device of this embodiment in the reading process of a mixed text/photo document can be found in Japanese Patent Application No. 1983, which has already been filed by the applicant.
Since it is detailed in the specification of No. 307165, in the following explanation, the explanation of the configuration and operation of the present invention other than the part related to the noise removal process will be simplified.

本実施例の文字・写真判定装置は、大別して背景検出回
路100と、文字2値化信号加工回路200と、領域判
定回路300と、領域切替回路400とで構成されてい
る。
The text/photo identification device of this embodiment is broadly divided into a background detection circuit 100, a text binary signal processing circuit 200, an area judgment circuit 300, and an area switching circuit 400.

まず背景検出回路100について説明する。First, the background detection circuit 100 will be explained.

2値化回路51は、図示しない画像入力装置から到来す
るスライス信号10およびビデオ正規化信号11を入力
として濃い黒を検出し、後段のマトリックス演算回路6
1へ出力する。このマトリックス演算回路61は、黒密
度判定を行って黒検出信号14を出力する。2値化回路
51は、スライス信号10およびビデオ正規化信号11
と黒検出信号14から背景の白を検出し、マトリックス
演算回路62に出力する。このマトリックス演算回路6
2は、白密度判定を黒検出信号14が指示する関数によ
って行い、巾検出信号15を出力する。
The binarization circuit 51 receives a slice signal 10 and a video normalized signal 11 coming from an image input device (not shown) as input, detects deep black, and outputs the matrix calculation circuit 6 at the subsequent stage.
Output to 1. This matrix calculation circuit 61 performs black density determination and outputs a black detection signal 14. The binarization circuit 51 generates a slice signal 10 and a video normalized signal 11.
The white background is detected from the black detection signal 14 and outputted to the matrix calculation circuit 62. This matrix calculation circuit 6
2 performs white density determination using a function instructed by the black detection signal 14, and outputs a width detection signal 15.

次に、文字2値化信号加工回路200について説明する
Next, the character binary signal processing circuit 200 will be explained.

マトリックス演算回路63は文字2値化信号12を人力
として黒画像の内・外・周辺の画素位置を判定し、セレ
クタ制御回路71へ出力する。またセレクタ制御回路7
1は、黒画像の内・外・周辺の判定結果と黒検出信号1
4と巾検出信号15とから画素単位の文字・写真領域の
判定を行い、判定信号をセレクタ81へ出力する。セレ
クタ81は、文字2値化信号12および擬似中間調信号
13を人力とし、画素単位の文字・写真領域判定に基づ
き、画素単位に一方の信号を出力する。
The matrix calculation circuit 63 manually determines the pixel positions inside, outside, and around the black image using the character binary signal 12, and outputs the determined pixel positions to the selector control circuit 71. In addition, the selector control circuit 7
1 is the determination result of the inside, outside, and periphery of the black image and the black detection signal 1
4 and the width detection signal 15, the text/photo area is determined in pixel units, and the determination signal is output to the selector 81. The selector 81 manually inputs the character binary signal 12 and the pseudo halftone signal 13 and outputs one of the signals for each pixel based on character/photo area determination for each pixel.

また、領域判定回路300の構成は次のようになってい
る。
Further, the configuration of the area determination circuit 300 is as follows.

マトリックス演算回路64は巾検出信号15を入力とし
、白密度判定に対してさらにブロック単位に密度判定(
背景密度判定と呼ぶ)を行う。背景密度判定は2つの関
数について行われ、それぞれの判定結果をセレクタ制御
回路72およびセレクタ82に出力する。セレクタ82
はセレクタ制御回路72の出力に応じて前記2つの関数
のいずれの処理結果を後段のマトリックス演算回路65
1に出力するかを切り替える。マトリックス演算回路6
51は、背景密度判定に対して太めの処理を行う2値判
定(文字領域判定)の処理を行い、判定結果をマ) +
Jフックス算回路652へ出力する。マトリックス演算
回路652およびマトリックス演算回路653は、前記
2値判定結果に対するコレクション処理を行う。すなわ
ち、マトリックス演算回路652右よびマトリックス演
算回路653はそれぞれ2つの関数を備えており、セレ
クタ制御回路72からの出力によっていずれかに切り替
えられるようになっている。マトリックス演算回路65
3は最終判定結果として、領域切替信号16を出力する
。また、セレクタ制御回路72は、前段のマトリックス
演算回路64の二つの関数の出力と領域切替信号16と
によって大局的な文字・写真判定を行い、前記セレクタ
82およびマトリックス演算回路652,653の関数
の切替に反映させる。
The matrix calculation circuit 64 inputs the width detection signal 15 and further performs density determination (
background density determination). The background density determination is performed for two functions, and the respective determination results are output to the selector control circuit 72 and the selector 82. selector 82
The processing results of the two functions are sent to the subsequent matrix calculation circuit 65 according to the output of the selector control circuit 72.
Switch whether to output to 1. Matrix calculation circuit 6
51 performs binary judgment (character area judgment) processing that performs thick processing for background density judgment, and prints the judgment result.
It is output to the J-Fuchs calculation circuit 652. The matrix calculation circuit 652 and the matrix calculation circuit 653 perform correction processing on the binary determination results. That is, the matrix calculation circuit 652 right and the matrix calculation circuit 653 each have two functions, and can be switched to either one by the output from the selector control circuit 72. Matrix calculation circuit 65
3 outputs an area switching signal 16 as the final determination result. Further, the selector control circuit 72 performs global character/photo judgment based on the outputs of the two functions of the matrix calculation circuit 64 in the previous stage and the area switching signal 16, and performs global character/photo judgment using the outputs of the two functions of the matrix calculation circuit 64 in the previous stage and the function of the selector 82 and matrix calculation circuits 652 and 653. Reflect in switching.

次に領域切替回路400を説明する。Next, the area switching circuit 400 will be explained.

ラインメモリ91およびラインメモリ92は、背景検出
回路100および領域判定回路300での処理による判
定信号に見合った量だけ、擬似中間調信号13および文
字2値化信号12を遅延させる動作を行う。ラインメモ
リ91には擬似中間調信号13が入力されるが、ライン
メモリ92には文字2値化信号12そのものではなく、
画素単位の領域判定により、画素単位に写真領域と判定
されるとセレクタ81によって擬似中間調信号と置き換
えられた信号が人力される。セレクタ83はラインメモ
リ91およびラインメモリ92の出力の一方を、領域切
替信号16に応じて選択し、適応形2値化信号17とし
て出力する動作を行うようになっている。
Line memory 91 and line memory 92 operate to delay pseudo halftone signal 13 and character binary signal 12 by an amount commensurate with the determination signal processed by background detection circuit 100 and area determination circuit 300. Although the pseudo halftone signal 13 is input to the line memory 91, the line memory 92 is not input with the character binary signal 12 itself;
When a photographic area is determined pixel by pixel by region determination, the selector 81 manually inputs a signal replaced with a pseudo halftone signal. The selector 83 selects one of the outputs of the line memory 91 and the line memory 92 in response to the area switching signal 16 and outputs it as an adaptive binary signal 17.

このような各部の構成により、通常の文字・写真判定処
理では、文字と写真が混在した帳票のように背景の白レ
ベルが文字2値化の閾値近辺にある場合や、漢字などの
密集密集文字の内部背景のように文字2値化の閾値より
も高くなるような場合でも、的確に文字の切り出しを行
うことを可能にしている。
Due to the structure of each part, normal text/photo recognition processing is difficult to detect when the white level of the background is close to the threshold for character binarization, such as a form with a mixture of text and photos, or when densely packed characters such as kanji are processed. This makes it possible to accurately extract characters even in cases where the internal background is higher than the threshold for character binarization.

ここで、本実施例では、上述のような構成の文字・写真
判定装置に以下のようなセレクタ84゜ANDゲート9
1および文字・写真混在原稿を使用しない時に、使用者
などによって適宜設定される文字原稿読取モード信号1
8を付加して、前記実施例1の場合のように、文字原稿
の入力処理における比較的大きな紙面ノイズの除去処理
を行わせる。
Here, in this embodiment, the following selector 84 and AND gate 9 is installed in the character/photo judgment device configured as described above.
1 and text document reading mode signal 1, which is set as appropriate by the user when not using a text/photo mixed document.
8 is added to perform the relatively large page noise removal process in the character document input process, as in the case of the first embodiment.

なお、第12図では、ノイズ除去機能を実現すべく付加
した部分を太い線で示しである。
In addition, in FIG. 12, the portion added to realize the noise removal function is shown by a thick line.

すなわち、文字原稿読取モード信号18は、マトリック
ス演算回路63.マトリックス演算回路64、マトリッ
クス演算回路652.マトリックス演算回路653の各
々にふける演算開数をノイズ除去処理のための関数に切
り替える。
That is, the character original reading mode signal 18 is transmitted to the matrix calculation circuit 63. Matrix calculation circuit 64, matrix calculation circuit 652. The numerical arithmetic operations performed in each of the matrix arithmetic circuits 653 are switched to functions for noise removal processing.

背景検出回路100を構成する2値化回路52とマトリ
ックス演算回路62との間に介設されるセレクタ84は
、文字原稿読取モード信号18が設定された時、マトリ
ックス演算回路62に対する入力を、通常時の2値回路
からの出力から、文字2値化信号加工回路200のマト
リックス演算回路63からの出力に切り替える動作を行
う。
A selector 84 interposed between the binarization circuit 52 and the matrix calculation circuit 62 constituting the background detection circuit 100 selects the input to the matrix calculation circuit 62 when the character document reading mode signal 18 is set. An operation is performed to switch from the output from the binary circuit at the time to the output from the matrix calculation circuit 63 of the character binary signal processing circuit 200.

また、ラインメモリ91に入力される擬似中間調信号1
3の経路に介設されたANDゲート91は、文字原稿読
取モード信号18の設定によって“0”レベルの白デー
タを常時出力するようになっている。
Also, the pseudo halftone signal 1 input to the line memory 91
The AND gate 91 provided in the path No. 3 is configured to always output white data at the "0" level according to the setting of the character original reading mode signal 18.

そして、文字原稿読取モード信号18の設定時には、マ
トリックス演算回路63は孤立点ノイズの除去を行い、
マトリックス演算回路62は黒画素ブロック化処理を行
い(ただし関数は文字・写真判定の場合と同じ)、マト
リックス演算回路64は黒密度判定処理を行い、マトリ
ックス演算回路651は文字を動領域判定処理を行い(
ただし関数は文字・写真判定の場合と同じ)、マトリッ
クス演算回路652はコレクション処理を行い、マ) 
+Jフックス算回路653は、なにもせず入力と同じ出
力を行い文字領域判定信号6aをセレクタ83に出力す
る。セレクタ83は、マトリックス演算回路63から、
セレクタ81を介してラインメモリ92に保持されてい
る画素単位ノイズ処理後文字2値比信号5aを、ノイズ
処理後文字2値化信号5bとして出力する。
Then, when setting the text document reading mode signal 18, the matrix calculation circuit 63 removes isolated point noise,
The matrix calculation circuit 62 performs black pixel blocking processing (however, the function is the same as in the case of character/photo recognition), the matrix calculation circuit 64 performs black density determination processing, and the matrix calculation circuit 651 performs motion area determination processing for characters. Deeds (
However, the function is the same as in the case of text/photo recognition), the matrix calculation circuit 652 performs correction processing, and the matrix calculation circuit 652 performs correction processing.
+J Hooks calculation circuit 653 performs the same output as input without doing anything, and outputs character area determination signal 6a to selector 83. The selector 83 selects from the matrix calculation circuit 63,
The pixel unit noise-processed character binary ratio signal 5a held in the line memory 92 via the selector 81 is output as the noise-processed character binary ratio signal 5b.

これにより、本実施例の文字・写真判定装置においては
、通常の動作における文字・写真混在の原稿の読み取り
はもとより、文字原稿読取モード信号18の設定によっ
て、文字原稿の入力処理に専用のモードにすることで、
画素単位のノイズの除去だけです<、文字の大きさに近
い比較的大きな紙面ノイズをも的確に除去できる入力処
理を行うことができる。
As a result, the text/photo identification device of this embodiment can not only read originals containing text and photos in normal operation, but also enter a mode dedicated to input processing of text originals by setting the text original reading mode signal 18. by doing,
It only removes noise on a pixel basis.Input processing can be performed that can accurately remove relatively large paper noise that is close to the size of characters.

以上本発明者によってなされた発明を実施例に基づき具
体的に説明したが、本発明は前記実施例に限定されるも
のではなく、その要旨を逸脱しない範囲で種々変更可能
であることはいうまでもない。
Although the invention made by the present inventor has been specifically explained above based on Examples, it goes without saying that the present invention is not limited to the Examples and can be modified in various ways without departing from the gist thereof. Nor.

たとえば、各段階におけるブロック単位での判定に用い
られる閾値は、前記実施例中に例示したものになんら限
定されるものではない。
For example, the threshold values used for determination on a block-by-block basis at each stage are not limited to those exemplified in the above embodiments.

また、所望の2次元情報演算を行うマトリックス演算回
路の構成は、前記実施例中に例示されるものに限定され
ない。
Further, the configuration of the matrix calculation circuit that performs desired two-dimensional information calculation is not limited to that exemplified in the above embodiments.

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

本願において開示される発明のうち、代表的なものによ
って得られる効果を簡単に説明すれば、以下のとおりで
ある。
Among the inventions disclosed in this application, the effects obtained by typical inventions are briefly described below.

すなわち、本発明になる画像処理装置は、文字2値化信
号を発生する入力手段と、前記文字2値化信号から紙面
ノイズを除去するノイズ処理手段とからなる画像処理装
置において、前記文字2値化信号にn×n画素の2次元
情報演算を行い画素単位にノイズを除去する処理を行う
画素単位ノイズ除去処理手段と、画素単位のノイズ除去
処理を行った前記文字2値化信号にm×m画素の2次元
情報演算を施し、黒画素の集合の検出をm×m画素のブ
ロック単位に行うブロック単位黒画素検出手段と、この
ブロック単位黒画素検出手段から得られるブロック単位
の前記黒画素の検出出力にkxkのブロック平面で5回
の異なる2次元情報演算を行い、文字領域の判定をブロ
ック単位に行う文字領域判定手段と、この文字領域判定
手段において文字領域と判定される場合は画素単位のノ
イズ除去処理を施して得られた前記文字2値化信号を出
力し、そうでない場合には白信号を出力する切替手段と
を備えているので、画素単位のノイズ除去された文字2
値化信号を用いて、ある程度大きい黒画素(たとえば2
X2画素)を含むか否か、すなわち黒ブロックか否かを
所望のブロック単位(たとえば8X8画素のブロック)
に判定し、次にこのブロック単位の判定結果にm×m 
(たとえば4X4)のブロック平面で、黒ブロックの数
の閾値判定によって大きな範囲での黒画素の検出を行う
黒密度判定と、当該黒密度判定の結果をさらに大きなブ
ロック (たとえば1ブロック−16×16画素)に展
開し、たとえば四隅ブロックにおける黒ブロックの有無
によって中心ブロックを黒ブロックまたは白画素ブロッ
クとみなすことで周囲に大きい範囲で黒画素が見つかる
領域があるか否かを判定する文字領域判定と、この文字
領域判定の結果を所望のブロック数に展開し、当該ブロ
ック内における黒ブロツク数が所定の閾値を超えた場合
には文字領域とし、そうでない場合には文字領域外とす
るコレクション処理とからなる8回の異なる2次元情報
演算を行うことで、文字に近接した領域とそうでない領
域とに分け、文字領域の場合には文字2値化信号を出力
し、文字領域以外の場合には白画素信号を出力すること
により、画素単位のノイズのみならず文字と同程度の大
きさの紙面ノイズをも的確に除去することができる。
That is, an image processing apparatus according to the present invention includes an input means for generating a character binary signal, and a noise processing means for removing paper surface noise from the character binary signal. pixel-by-pixel noise removal processing means that performs two-dimensional information calculation of n×n pixels on the encoded signal and removes noise on a pixel-by-pixel basis; block-by-block black pixel detection means that performs two-dimensional information calculation on m pixels and detects a set of black pixels in m×m pixel block units; and the block-by-block black pixels obtained from this block-by-block black pixel detection means. Character area determination means performs five different two-dimensional information calculations on the kxk block plane on the detection output and determines the character area in block units, and if the character area determination means determines that it is a character area, the pixel A switching means is provided for outputting the character binary signal obtained by performing unit noise removal processing, and outputting a white signal if not, so that the character 2 from which noise has been removed pixel by pixel is provided.
Using the value signal, a certain amount of large black pixel (for example, 2
x2 pixels), that is, whether it is a black block or not, in a desired block unit (for example, a block of 8 x 8 pixels).
Then, m×m is determined based on the determination result for each block.
(for example, 4x4) block plane, black density judgment detects black pixels in a large range by threshold judgment of the number of black blocks, and the result of the black density judgment is applied to a larger block (for example, 1 block - 16 x 16 For example, depending on the presence or absence of black blocks in the four corner blocks, the center block is regarded as a black block or a white pixel block, and it is determined whether there is a large surrounding area where black pixels can be found. , the result of this character area determination is expanded to a desired number of blocks, and if the number of black blocks in the block exceeds a predetermined threshold, it is treated as a character area, otherwise it is removed as a collection process. By performing 8 different two-dimensional information calculations, it is divided into areas that are close to characters and areas that are not. In the case of character areas, a character binary signal is output, and in the case of non-character areas, a character binary signal is output. By outputting the white pixel signal, it is possible to accurately remove not only noise in pixel units but also paper noise of the same size as characters.

また、複数回の2次元情報演算をライン単位に分割処理
することによって1個のマトリックス演算回路で行わせ
ることで、簡単な回路構成で比較的大きな紙面ノイズの
除去を行うことができる。
Further, by dividing a plurality of two-dimensional information calculations into line units and performing them in one matrix calculation circuit, relatively large paper noise can be removed with a simple circuit configuration.

また、本発明になる文字・写真判定装置によれば、画素
単位とブロック単位に、背景白情報に基づいて文字領域
と写真領域とを弁別する文字・写真判定装置において、
文字原稿に専用の文字原稿読取モード信号と、この文字
原稿読取モード信号によって、画素単位の文字・写真判
定処理を行う第1の2次元情報演算手段の演算関数を切
り替えて画素単位のノイズ除去処理を行わせる第1の切
替手段と、前記文字原稿読取モード信号によって、白密
度判定を行う第2の2次元情報演算手段に対する入力信
号を背景白信号から文字2値化信号に切り替えて前記黒
画素の集合を含む黒ブロックの検出を行わせる第2の切
替手段と、前記文字原稿読取モード信号により、ブロッ
ク単位の文字・写真判定を行う第3の2次元情報演算手
段の演算関数を切り替えて背景のノイズか文字かの判定
を行わせる第3の切替手段とを備えているので、外部か
らの文字原稿読取モード信号の設定によって、画素単位
の文字・写真判定処理を行う第1の2次元情報演算手段
と、背景の白密度判定を行う第2の2次元情報演算手段
およびブロック単位の文字・写真判定を行う第3の2次
元情報演算手段の演算関数を切り替え、第1の2次元情
報演算には画素単位のノイズ処理を行わせ、第2の2次
元情報演算には、入力信号を背景白信号から文字2値化
信号に切り替えて黒ブロックの検出を行わせ、第3の2
次元情報演算には文字領域か否かの判定処理を行わせる
ことで、文字原稿読取処理において、画素単位のノイズ
のみならず、文字と同程度の大きさの紙面ノイズの除去
を的確に行わせることができる。
Further, according to the text/photo identification device of the present invention, the text/photo identification device discriminates between a text area and a photo area based on background white information on a pixel-by-pixel and block-by-block basis.
A character original reading mode signal dedicated to character originals and a calculation function of the first two-dimensional information calculation means that performs character/photo determination processing on a pixel basis are switched based on this character original reading mode signal, and noise removal processing is performed on a pixel-by-pixel basis. and a first switching means for switching the input signal to the second two-dimensional information calculation means for determining white density from the background white signal to the character binary signal according to the character document reading mode signal, A second switching means detects a black block containing a set of , and a third two-dimensional information calculating means performs character/photo judgment in block units according to the text document reading mode signal. Since the first two-dimensional information is provided with a third switching means for determining whether it is noise or text, the first two-dimensional information is subjected to pixel-by-pixel text/photo identification processing by setting an external text document reading mode signal. Switching the calculation functions of the calculation means, the second two-dimensional information calculation means for determining the white density of the background, and the third two-dimensional information calculation means for determining the characters/photos in units of blocks, and performing the first two-dimensional information calculation. In the second two-dimensional information calculation, the input signal is switched from the background white signal to the character binary signal to detect black blocks, and in the third two-dimensional information calculation,
By having the dimensional information calculation perform processing to determine whether or not it is a character area, it is possible to accurately remove not only pixel-by-pixel noise but also paper surface noise of the same size as the characters in the text document reading process. be able to.

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

第1図は、本発明の一実施例である画像処理装置の構成
の一例を示すブロック図、 第2図は、その各部の機能の一例を示す説明図、第3図
は、同じくその各部の機能の一例を示す説明図、 第4図は、2次元情報演算におけるマトリックスの設定
方法の一例を示す図、 第5図は、同じく、2次元情報演算におけるマトリック
スの設定方法の一例を示す図、第6図は、その機能を実
現する回路構成の一例を示すブロック図、 第7図は、その機能を実現する回路構成の一例を示すブ
ロック図、 第8図は、読取原稿の状態の一例を示す説明図、第9図
は、黒画素集合と黒画素判定ブロックとの関係における
閾値設定を説明する説明図、第10図は、本発明の画像
処理装置におけるノイズ除去処理の一例を示す流れ図、 第11図は、同じく本発明の画像処理装置におけるノイ
ズ除去処理の一例を示す流れ図、第12図は、本発明の
文字・写真判定装置の構成の一例を示すブロック図であ
る。 1・・・画素単位ノイズ除去処理部、2・・・出力部、
2a・・・ラインメモリ、2b・・・セレクタ、3・・
・ブロック単位黒画素検出部、4・・・ブロック単位文
字領域判定部、4a・・・タイミング制御回路、4b、
4c・・・セレクタ、4d、4e・・・ラインメモリ、
5・・・文字2値化信号、5a・・・画素単位ノイズ処
理後文字2値化信号、5b・・・ノイズ処理後文字2値
化信号、5b・・・ノイズ処理後文字2値化信号、6.
6a・・・文字領域判定信号、10・・・スライス信号
、11・・・ビデオ正規化信号、12・・・文字2値化
信号、13・・・擬似中間調信号、14・・・黒検出信
号、15・・・巾検出信号、16・・・領域切替信号、
17・・・適応形2値化信号、18・・・文字原稿読取
モード信号、51.52・・・2値化回路、61,62
,63゜64・・・マトリックス演算回路、651,6
52.653・・・マトリックス演算回路、71・・・
セレクタ制御回路、72・・・セレクタ制御回路、81
・・・セレクタ、82・・・セレクタ、83・・・セレ
クタ、84・・・セレクタ、91・・・ANDゲ−)、
91.92・・・・ラインメモリ、100・・・背景検
出回路、200・・・文字2値化信号加工回路、300
・・・領域判定回路、400・・・領域切替回路、M、
Ml、M2  M3.M4.M5・・・マトリックス演
算回路、AI・・レジスタ、B・・・ラインメモリ、C
・・・演算用続出専用メモリ、D・・・関数切替信号、
1001〜1019・・・ノイズ除去処理の一例を示す
ステップ。
FIG. 1 is a block diagram showing an example of the configuration of an image processing device that is an embodiment of the present invention, FIG. 2 is an explanatory diagram showing an example of the functions of each part, and FIG. FIG. 4 is an explanatory diagram showing an example of a function; FIG. 4 is a diagram showing an example of a matrix setting method in two-dimensional information calculation; FIG. 5 is a diagram showing an example of a matrix setting method in two-dimensional information calculation; FIG. 6 is a block diagram showing an example of a circuit configuration for realizing the function, FIG. 7 is a block diagram showing an example of a circuit configuration for realizing the function, and FIG. 8 is a block diagram showing an example of the state of the read document. FIG. 9 is an explanatory diagram illustrating threshold setting in the relationship between a black pixel set and a black pixel determination block, and FIG. 10 is a flowchart illustrating an example of noise removal processing in the image processing apparatus of the present invention. FIG. 11 is a flow chart showing an example of noise removal processing in the image processing device of the present invention, and FIG. 12 is a block diagram showing an example of the configuration of the text/photo determining device of the present invention. 1... Pixel unit noise removal processing section, 2... Output section,
2a...Line memory, 2b...Selector, 3...
- Block unit black pixel detection unit, 4... Block unit character area determination unit, 4a... Timing control circuit, 4b,
4c...Selector, 4d, 4e...Line memory,
5... Character binary signal, 5a... Character binary signal after pixel unit noise processing, 5b... Character binary signal after noise processing, 5b... Character binary signal after noise processing ,6.
6a... Character area determination signal, 10... Slice signal, 11... Video normalized signal, 12... Character binary signal, 13... Pseudo halftone signal, 14... Black detection Signal, 15... Width detection signal, 16... Area switching signal,
17...Adaptive binary conversion signal, 18...Character document reading mode signal, 51.52...Binarization circuit, 61, 62
,63゜64...Matrix calculation circuit, 651,6
52.653...Matrix calculation circuit, 71...
Selector control circuit, 72...Selector control circuit, 81
... selector, 82... selector, 83... selector, 84... selector, 91... AND game),
91.92...Line memory, 100...Background detection circuit, 200...Character binary signal processing circuit, 300
... area determination circuit, 400... area switching circuit, M,
Ml, M2 M3. M4. M5...Matrix calculation circuit, AI...Register, B...Line memory, C
...Memory dedicated to continuous operation for calculation, D...Function switching signal,
1001 to 1019...Steps showing an example of noise removal processing.

Claims (1)

【特許請求の範囲】 1、文字2値化信号を発生する入力手段と、前記文字2
値化信号から紙面ノイズを除去するノイズ処理手段とか
らなる画像処理装置において、前記文字2値化信号にn
×n画素の2次元情報演算を行い画素単位にノイズを除
去する処理を行う画素単位ノイズ除去処理手段と、画素
単位のノイズ除去処理を行った前記文字2値化信号にm
×m画素の2次元情報演算を施し、黒画素の集合の検出
をm×m画像のブロック単位に行うブロック単位黒画素
検出手段と、このブロック単位黒画素検出手段から得ら
れるブロック単位の前記黒画素の検出出力にk×kのブ
ロック平面でS回の異なる2次元情報演算を行い、文字
領域の判定をブロック単位に行う文字領域判定手段と、
この文字領域判定手段において文字領域と判定される場
合は画素単位のノイズ除去処理を施して得られた前記文
字2値化信号を出力し、そうでない場合には白信号を出
力する切替手段とを備えてなることを特徴とする画像処
理装置。 2、複数回の前記2次元情報演算をライン単位に分割処
理することによって、1個のマトリックス演算回路で行
うようにしたことを特徴とする請求項1記載の画像処理
装置。 3、画素単位とブロック単位に、背景白情報に基づいて
文字領域と写真領域とを弁別する文字・写真判定装置に
おいて、文字原稿に専用の文字原稿読取モード信号と、
この文字原稿読取モード信号によって、画素単位の文字
・写真判定処理を行う第1の2次元情報演算手段の演算
関数を切り替えて画素単位のノイズ除去処理を行わせる
第1の切替手段と、前記文字原稿読取モード信号によっ
て、白密度判定を行う第2の2次元情報演算手段に対す
る入力信号を背景白信号から文字2値化信号に切り替え
て前記黒画素の集合を含む黒ブロックの検出を行わせる
第2の切替手段と、前記文字原稿読取モード信号により
、ブロック単位の文字・写真判定を行う第3の2次元情
報演算手段の演算関数を切り替えて背景のノイズか文字
かの判定を行わせる第3の切替手段とを備えたことを特
徴とする文字・写真判定装置。
[Claims] 1. Input means for generating a character binary signal; and the character 2
In an image processing device comprising a noise processing means for removing paper noise from the digitized signal, the character binary signal is
a pixel-by-pixel noise removal processing means that performs two-dimensional information calculation of ×n pixels and removes noise in pixel units;
block-by-block black pixel detection means that performs two-dimensional information calculation of ×m pixels and detects a set of black pixels in block units of an m×m image; character area determination means for performing S different two-dimensional information calculations on pixel detection outputs on a k×k block plane and determining character areas on a block-by-block basis;
If the character area determination means determines that the character area is a character area, the character binary signal obtained by performing pixel-by-pixel noise removal processing is outputted, and if not, the switching means outputs a white signal. An image processing device comprising: 2. The image processing apparatus according to claim 1, wherein the plurality of two-dimensional information calculations are performed by one matrix calculation circuit by dividing the two-dimensional information into line units. 3. In a text/photo identification device that discriminates text areas and photo areas based on background white information in pixel units and block units, a text original reading mode signal dedicated to text originals;
A first switching means that performs a pixel-by-pixel noise removal process by switching the arithmetic function of the first two-dimensional information calculation means that performs a pixel-by-pixel character/photo determination process in response to the character document reading mode signal; The input signal to the second two-dimensional information calculation means for determining white density is switched from the background white signal to the character binary signal in response to the document reading mode signal, and the black block including the set of black pixels is detected. A third switching means for determining whether background noise or characters is background noise or characters by switching the calculation function of the third two-dimensional information calculation means for determining characters/photos in blocks based on the switching means 2 and the character original reading mode signal. What is claimed is: 1. A text/photo identification device comprising: a switching means;
JP1143629A 1989-06-06 1989-06-06 Processor and image character/picture deciding device Pending JPH039487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1143629A JPH039487A (en) 1989-06-06 1989-06-06 Processor and image character/picture deciding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1143629A JPH039487A (en) 1989-06-06 1989-06-06 Processor and image character/picture deciding device

Publications (1)

Publication Number Publication Date
JPH039487A true JPH039487A (en) 1991-01-17

Family

ID=15343201

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1143629A Pending JPH039487A (en) 1989-06-06 1989-06-06 Processor and image character/picture deciding device

Country Status (1)

Country Link
JP (1) JPH039487A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317420A (en) * 1992-03-05 1994-05-31 Matsushita Electric Industrial Co., Ltd. Noise elimination apparatus for eliminating noise components having a high density and a low density

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5317420A (en) * 1992-03-05 1994-05-31 Matsushita Electric Industrial Co., Ltd. Noise elimination apparatus for eliminating noise components having a high density and a low density

Similar Documents

Publication Publication Date Title
EP1154634B1 (en) Method and system for see-through image correction in image duplication
JP2744619B2 (en) Image processing device
US4896364A (en) Method of detecting boundary structures in a video signal
JPH05227425A (en) Improvement in automatic image segmentation
JPH04356869A (en) Image processor
JP3088010B2 (en) Line drawing separation method and apparatus
JPS62172867A (en) Picture processor
JPH06133159A (en) Picture processing unit
JP2616386B2 (en) Image processing device
JPH039487A (en) Processor and image character/picture deciding device
JP2772396B2 (en) Image signal processing device
JPH05136994A (en) Image area separation circuit
JP4035696B2 (en) Line segment detection apparatus and image processing apparatus
JP2001119575A (en) Image processing unit
JP2578959B2 (en) Character / photo region determination device, image input device using the same, and optical character recognition device
JPH05292312A (en) Dot area separator
JP3326309B2 (en) Image processing device
JPH0851537A (en) Image processor discriminating character/photograph/dot area
JPH06150059A (en) Image area separator
JPH02274173A (en) Character separating device
JPH0357083A (en) Image area separating method for binary picture
JP4437621B2 (en) Region detection apparatus and method
JP3146516B2 (en) Image processing device
JPH05284358A (en) Picture processing unit
JP3738951B2 (en) Image processing device