JP2578959B2 - Character / photo region determination device, image input device using the same, and optical character recognition device - Google Patents

Character / photo region determination device, image input device using the same, and optical character recognition device

Info

Publication number
JP2578959B2
JP2578959B2 JP63307165A JP30716588A JP2578959B2 JP 2578959 B2 JP2578959 B2 JP 2578959B2 JP 63307165 A JP63307165 A JP 63307165A JP 30716588 A JP30716588 A JP 30716588A JP 2578959 B2 JP2578959 B2 JP 2578959B2
Authority
JP
Japan
Prior art keywords
character
signal
area
circuit
dimensional information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP63307165A
Other languages
Japanese (ja)
Other versions
JPH02153487A (en
Inventor
和憲 木下
次男 高橋
歳弘 花野井
靖富 江尻
秀文 増崎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP63307165A priority Critical patent/JP2578959B2/en
Publication of JPH02153487A publication Critical patent/JPH02153487A/en
Application granted granted Critical
Publication of JP2578959B2 publication Critical patent/JP2578959B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、文字・写真領域判定技術およびそれを用い
た画像入力技術ならびに光学文字認識技術に関し、特
に、文字領域および写真領域または黒の密集領域の入り
組んだ画像や、白でない背景に書かれた文字を切り出す
処理に好適な技術に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character / photograph area determination technique, an image input technique using the same, and an optical character recognition technique, and more particularly, to a character area and a photograph area or a dense black area. The present invention relates to a technique suitable for processing to cut out an image having a complicated area or a character written on a non-white background.

〔従来の技術〕[Conventional technology]

たとえば、ファクシミリ,ディジタル複写機,電子フ
ァイル装置などにおける原稿画像の入力においては、背
景との対比が比較的鮮明な文字領域と、写真などのよう
な多階調の濃淡画像領域を的確に弁別して、それぞれ適
切な閾値を設定してディジタル化することが、いずれか
一方の領域として閾値を固定することなどに起因する入
力画像の劣化を回避するなどの観点から重要となる。
For example, in inputting an original image in a facsimile, a digital copying machine, an electronic file device, or the like, a character area in which the contrast with the background is relatively clear and a multi-tone image area such as a photograph are accurately distinguished. It is important to set appropriate thresholds and digitize them from the viewpoint of avoiding deterioration of the input image due to fixing the thresholds as one of the areas.

このため、従来から次のような幾つかの技術が提案さ
れている。
For this reason, the following several techniques have been conventionally proposed.

たとえば、特開昭61−146070号公報に開示される技術
は、文字2値化回路とは別に閾値の異なる2値化回路を
領域判定に使用することにより、画像特性に応じた最適
な2値化処理を可能にしようとしている。
For example, the technology disclosed in Japanese Patent Application Laid-Open No. 61-146070 discloses an optimal binary value according to image characteristics by using a binarization circuit having a different threshold value in addition to a character binarization circuit for area determination. Is trying to make it possible.

また、特開昭61−169083号公報に開示される技術は、
2値化画像中の注目画素と隣接する画素中の白または黒
の数に基づいて線画像のエッジ部(周辺部)を識別する
ことにより、小規模の回路構成で画像を精度よくかつリ
アルタイムで識別可能にしようとしている。
Further, the technology disclosed in JP-A-61-169083 is
By identifying the edge portion (peripheral portion) of the line image based on the number of white or black pixels in the pixel adjacent to the target pixel in the binarized image, the image can be accurately and in real time formed with a small-scale circuit configuration. Trying to be identifiable.

さらに、特開昭61−80964号公報に開示される技術で
は、注目画素とその周辺画素に対して空間フィルタを施
し、その出力を所定の閾値と比較して判別信号とするこ
とにより、文字画像と中間調画像とが混在した画像情報
源から両者を正確に識別しようとしている。
Further, in the technique disclosed in Japanese Patent Application Laid-Open No. 61-80964, a character image is subjected to a spatial filter by applying a spatial filter to a pixel of interest and its surrounding pixels, and comparing the output with a predetermined threshold to provide a discrimination signal. An image information source in which a halftone image and a halftone image are mixed is intended to be accurately identified.

なお、前記特開昭61−80964号公報における空間フィ
ルタは、ディジタル画像情報に対する2次元情報演算の
一種であり、一般にフィルタリングと呼ばれているが、
このようなフィルタリング処理の1つである線形フィル
タに関しては、昭和63年5月31日初版、(株)昭晃堂発
行「工業用画像処理」江尻正員著の34ページ、3.2フィ
ルタリングに詳述されている。
The spatial filter disclosed in Japanese Patent Application Laid-Open No. 61-80964 is a kind of two-dimensional information calculation for digital image information, and is generally called filtering.
A linear filter, one of such filtering processes, is described in detail in 3.2 Filtering on page 34 of “Industrial Image Processing” by Shoji Ejiri, published by Shokodo Co., Ltd., first edition on May 31, 1988. Have been.

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

ところが、上記の特開昭61−146070号公報に示される
技術では、色刷りのカタログ原稿の様に背景の白レベル
が文字2値化の閾値近辺にある場合や、漢字などの密集
文字の内部背景の様にスキャナ変調度が100%でないた
め背景レベルが文字2値化の閾値より高くなる場合に
は、背景が検出困難になるという問題がある。
However, in the technique disclosed in Japanese Patent Application Laid-Open No. 61-146070, when the white level of the background is near the threshold value for binarizing characters as in a catalog manuscript of color printing, or when the internal background of dense characters such as kanji characters is used. When the background modulation level is higher than the threshold value for character binarization because the degree of scanner modulation is not 100%, there is a problem that the background becomes difficult to detect.

また、上記の特開昭61−169083号の技術では、擬似中
間調信号に対し線画のエッジ部を文字2値化信号として
出力させるが、写真の黒周辺のエッジや文字内部の擬似
中間調信号化の誤判定の改善方法を認識していない。
According to the technique disclosed in Japanese Patent Laid-Open No. 61-169033, an edge portion of a line drawing is output as a character binary signal with respect to a pseudo halftone signal. Do not know how to improve misjudgment.

さらに、上記の特開昭61−80964号公報の技術は、A/D
変換器の多値出力に対する2次元情報演算を行っている
が、多値出力の2次元情報演算は多値のビット数に比例
してハードウェアが増大する傾向があり、複数回の2次
元情報演算を行う際の論理回路の規模の抑制について認
識していない。
Further, the technology disclosed in Japanese Patent Application Laid-Open No. 61-80964 is disclosed in A / D
Although the two-dimensional information calculation for the multi-value output of the converter is performed, the hardware of the two-dimensional information calculation for the multi-value output tends to increase in proportion to the number of bits of the multi-value information. He does not recognize the suppression of the scale of a logic circuit when performing an operation.

そこで、本発明の目的は、背景の白レベルが文字2値
化の閾値近辺にある場合や、密集文字の内部背景のよう
に文字2値化の閾値より高くなる場合でも、文字や線画
に関しては背景を検出できる文字・写真領域判定技術を
提供することにある。
Therefore, an object of the present invention is to provide a method for processing a character or a line drawing even when the white level of the background is close to the threshold for character binarization, or when the white level of the background is higher than the threshold for character binarization such as the internal background of a dense character. An object of the present invention is to provide a character / photograph area determination technology capable of detecting a background.

本発明の他の目的は、文字・写真領域のブロック判定
の代替手段あるいは補強手段として輪郭強調処理を行う
場合の問題点である写真の黒周辺のエッジや文字内部の
擬似中間調信号化の誤判定を低減することが可能な文字
・写真領域判定技術を提供することにある。
Another object of the present invention is to provide a method for performing edge enhancement processing as an alternative means or a reinforcing means for character / photograph area block determination, which is a problem in the edge around the black of a photograph or the false halftone signal conversion inside a character. It is an object of the present invention to provide a character / photograph area determination technique capable of reducing the number of determinations.

本発明のさらに他の目的は、文字・写真領域判定を正
確に行うことが可能な文字・写真領域判定技術を提供す
ることにある。
It is still another object of the present invention to provide a character / photo region determination technique capable of accurately determining a character / photo region.

本発明のさらに他の目的は、文字・写真領域のブロッ
ク化判定処理方法の1つである2次元情報演算処理方法
を比較的簡単な回路構成により実現することが可能な文
字・写真領域判定技術を提供することにある。
Still another object of the present invention is a character / photograph area determination technology capable of realizing a two-dimensional information calculation processing method, which is one of the character / photograph area block determination processing methods, with a relatively simple circuit configuration. Is to provide.

本発明のさらに他の目的は、画像入力以降の信号処理
を簡略化することが可能な画像入力技術を提供すること
にある。
Still another object of the present invention is to provide an image input technique capable of simplifying signal processing after image input.

本発明のさらに他の目的は、入力される帳票の仕様を
簡略化することが可能な光学文字認識技術を提供するこ
とにある。
Still another object of the present invention is to provide an optical character recognition technology capable of simplifying specifications of a form to be input.

本発明の前記ならびにその他の目的と新規な特徴は、
本明細書の記述および添付図面から明らかになるであろ
う。
The above and other objects and novel features of the present invention are as follows.
It will be apparent from the description of this specification and the accompanying drawings.

〔課題を解決するための手段〕 本願において開示される発明のうち、代表的なものの
概要を簡単に説明すれば、下記のとおりである。
[Means for Solving the Problems] Of the inventions disclosed in the present application, the outline of a representative one will be briefly described as follows.

すなわち、本発明になる文字・写真領域判定装置は、 2次元情報演算によって背景を検出し、2値の背景情
報として出力する背景検出手段と、背景情報より2次元
情報演算によって文字・写真領域を判定する領域判定手
段と、この領域判定手段から出力される領域判定結果に
より、外部から到来する、一定の閾値で2値化された文
字2値化信号および個々の画素単位に閾値を変化させる
ことによって2値化された擬似中間調信号のいずれかを
選択して出力する領域切替手段とからなり、 背景検出手段は、文字2値化信号を発生する文字2値
化回路より高い閾値(濃い濃度)で、濃い黒を検出する
第1の2値化回路と、文字2値化回路より低い閾値(淡
い濃度)と高い閾値の2つの閾値を切替えることができ
る背景検出のための第2の2値化回路と、第1の2値化
回路の出力をn×n画素を単位として黒密度判定を行う
第1の2次元情報演算手段と、第2の2値化回路の出力
をn×n画素を単位として白密度判定を行う2つの関数
を持ち、背景の白を検出して白検出信号として出力する
第2の2次元情報演算手段とからなり、第1の2次元情
報演算手段の結果によって第2の2値化回路の閾値およ
び第2の2次元情報演算手段の2つの関数を切替える動
作を行い、 領域判定手段は、nおよびmを任意の正の整数とする
時、n×n画素単位に出力された背景情報を1つのブロ
ック単位として、m×mのブロック平面毎に、異なる白
ブロックの個数を閾値として判定動作を行う2つの関数
を持つ第4の2次元情報演算手段と、この第4の2次元
情報演算手段の2つの関数の一方の出力を選択出力する
第2の切替手段と、当該第2の切替手段の出力をm×m
のブロック平面でS(Sは正の整数)回の異なる2次元
情報演算を2通りに行うことが可能な複数の演算関数を
備えた第5の2次元情報演算手段と、この第5の2次元
情報演算手段のS回後の最終判定結果である領域判定結
果と第4の2次元情報演算手段の2つの閾値判定結果と
から得られる文字・写真領域判定結果を順次記憶し、現
在のm×mのブロック平面における文字・写真領域判定
結果と、現在のm×mのブロック平面の周囲の領域から
得られて記憶されている文字・写真領域判定結果とを用
いて、m×mのブロック平面よりも広い背景から大局的
に文字・写真領域を判定する大局的領域判定手段とから
なり、当該大局的領域判定手段の判定結果によって第2
の切替手段および第5の2次元情報演算手段の複数の演
算関数の切替えを行うようにしたものである。
That is, the character / photo region determination apparatus according to the present invention detects a background by two-dimensional information calculation and outputs the binary background information, and a character / photo region by two-dimensional information calculation from the background information. Based on a region determination unit to be determined and a region determination result output from the region determination unit, a character binarized signal binarized with a certain threshold and coming from outside, and the threshold is changed for each pixel. Area switching means for selecting and outputting any one of the pseudo halftone signals binarized by the image processing apparatus, wherein the background detecting means has a higher threshold (darker density) than a character binarization circuit for generating a character binarization signal. ), A second binarization circuit for detecting dark black, and a second binarization circuit for background detection capable of switching between two thresholds, a lower threshold (lighter density) and a higher threshold than the character binarization circuit. Value A first two-dimensional information calculating means for performing a black density determination in units of n × n pixels on the basis of the output of the first binarization circuit, and an output of n × n pixels on the basis of the output of the second binarization circuit. A second two-dimensional information calculation unit that has two functions for performing white density determination as a unit and detects white in the background and outputs it as a white detection signal; The area determining means performs an operation of switching between the threshold value of the binarization circuit of 2 and the two functions of the second two-dimensional information calculating means, and when n and m are arbitrary positive integers, n × n pixel units A second two-dimensional information calculation unit having two functions for performing a determination operation with the number of different white blocks as a threshold value for each m × m block plane, using the background information output to Select one output of two functions of the fourth two-dimensional information calculation means A second switching means for outputting, and the output of the second switching means being m × m
A second two-dimensional information operation means having a plurality of operation functions capable of performing S (S is a positive integer) times of different two-dimensional information operations in two different ways on the block plane; The character / photo area determination results obtained from the area determination result, which is the final determination result after S times of the dimensional information calculation means, and the two threshold determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m The m × m block is obtained by using the character / photo area determination result in the × m block plane and the character / photo area determination result obtained from the area around the current m × m block plane. A global area determining means for globally determining a character / photograph area from a background wider than a plane, and a second area based on the determination result of the global area determining means.
And a plurality of calculation functions of the fifth two-dimensional information calculation means.

また、本発明の画像入力装置は、 帳票形状を検出するために、黒色あるいは灰色の背景
板を使用する画像入力装置において、 目的の帳票から画像データを一次元的に読み取るイメ
ージセンサと、 イメージセンサによって読み取られた画像信号をディ
ジタル化するAD変換器と、 このディジタル化された帳票の画像信号に対して対数
変換処理およびシェーディング処理などを施して正規化
信号を得る正規化回路と、 正規化信号を2値化して文字2値化信号として出力す
る2値化回路と、 特定の識別パターン信号を発生するパターン発生器
と、 正規化信号が入力され、文字2値化信号を発生する文
字2値化回路より高い閾値(濃い濃度)で、濃い黒を検
出する第1の2値化回路と、文字2値化回路より低い閾
値(淡い濃度)と高い閾値の2つの閾値を切替えること
ができる背景検出のための第2の2値化回路と、第1の
2値化回路の出力をn×n画素を単位として黒密度判定
を行う第1の2次元情報演算手段と、第2の2値化回路
の出力をn×n画素を単位として白密度判定を行う2つ
の関数を持ち、背景の白を検出して白検出信号として出
力する第2の2次元情報演算手段とからなり、第1の2
次元情報演算手段の結果によって第2の2値化回路の閾
値および第2の2次元情報演算手段の2つの関数を切替
える動作を行う背景検出回路と、 白検出信号からなる背景検出信号を入力とし、nおよ
びmを任意の正の整数とする時、n×n画素単位に出力
された背景情報を1つのブロック単位として、m×mの
ブロック平面毎に、異なる白ブロックの個数を閾値とし
て判定動作を行う2つの関数を持つ第4の2次元情報演
算手段と、この第4の2次元情報演算手段の2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS(Sは
正の整数)回の異なる2次元情報演算を2通りに行うこ
とが可能な複数の演算関数を備えた第5の2次元情報演
算手段と、この第5の2次元情報演算手段のS回後の最
終判定結果である領域判定結果と第4の2次元情報演算
手段の2つの閾値判定結果とから得られる文字・写真領
域判定結果を順次記憶し、現在のm×mのブロック平面
における文字・写真領域判定結果と、現在のm×mのブ
ロック平面の周囲の領域から得られて記憶されている文
字・写真領域判定結果とを用いて、m×mのブロック平
面よりも広い背景から大局的に文字・写真領域を判定す
る大局的領域判定手段とからなり、当該大局的領域判定
手段の判定結果によって第2の切替手段および第5の2
次元情報演算手段の複数の演算関数の切替えを行うとと
もに、領域判定結果を領域切替信号として外部に出力す
る領域判定回路と、 領域切替信号に基づいて、文字2値化信号および識別
パターン信号のいずれかを選択して出力する領域切替回
路と、 領域切替回路から到来する文字2値化信号および識別
パターン信号を弁別して、文字2値化信号およびパター
ン検出信号として個別に出力するパターン検出分離回路
と、 を備え、識別パターン信号により、黒背景を白背景に置
き替えるようにしたものである。
Further, the image input device of the present invention is an image input device using a black or gray background plate for detecting a form shape, wherein an image sensor for one-dimensionally reading image data from a target form, and an image sensor An analog-to-digital (AD) converter for digitizing an image signal read by a digital camera, a normalization circuit for performing a logarithmic conversion process, a shading process, and the like on the digitized form image signal to obtain a normalized signal; A binarization circuit for binarizing the signal and outputting it as a character binarization signal, a pattern generator for generating a specific identification pattern signal, and a character binary for receiving a normalized signal and generating a character binarization signal A first binarization circuit that detects dark black with a higher threshold (darker density) than the digitizing circuit, and two thresholds: a lower threshold (lighter density) and a higher threshold than the character binarization circuit A second binarizing circuit for detecting a background whose value can be switched, and a first two-dimensional information calculating means for performing a black density determination on an output of the first binarizing circuit in units of n × n pixels And a second two-dimensional information calculation that has two functions for performing white density determination on the output of the second binarization circuit in units of n × n pixels, and detects white of the background and outputs it as a white detection signal. Means, the first two
A background detection circuit for performing an operation of switching between a threshold value of the second binarization circuit and two functions of the second two-dimensional information calculation means according to a result of the dimensional information calculation means, and a background detection signal composed of a white detection signal as an input , N and m are arbitrary positive integers, the background information output in n × n pixel units is determined as one block unit, and the number of different white blocks is determined as a threshold for each m × m block plane. A fourth two-dimensional information calculating means having two functions for performing an operation, a second switching means for selecting and outputting one output of the two functions of the fourth two-dimensional information calculating means, Fifth two-dimensional information operation having a plurality of operation functions capable of performing S (S is a positive integer) different two-dimensional information operations in two ways on an m × m block plane by the output of the switching means Means and the fifth two-dimensional information calculating means. The character / photo area determination results obtained from the area determination result as the final determination result after S times and the two threshold value determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m × m block plane is stored. The background wider than the m × m block plane is obtained by using the character / photo area determination result obtained in the above and the character / photo area determination result obtained and stored from the area around the current m × m block plane. And a global area determining means for globally determining a character / photo area, and a second switching means and a fifth second means based on the determination result of the global area determining means.
An area determining circuit for switching a plurality of arithmetic functions of the dimension information calculating means and outputting an area determination result to the outside as an area switching signal; and a character binarizing signal or an identification pattern signal based on the area switching signal. An area switching circuit for selecting and outputting a character, and a pattern detection / separation circuit for discriminating a character binarization signal and an identification pattern signal coming from the area switching circuit and individually outputting them as a character binarization signal and a pattern detection signal. , And a black background is replaced with a white background by an identification pattern signal.

また、本発明の光学文字認識装置は、 システムバスを介して相互に接続される文字認識ユニ
ット、画像入力装置および全体の制御を行うマイクロプ
ロセッサを含み、 画像入力装置は、 目的の帳票から画像データを一次元的に読み取るイメ
ージセンサと、 イメージセンサによって読み取られた画像信号をディ
ジタル化するAD変換器と、 このディジタル化された帳票の画像信号に対して対数
変換処理およびシェーディング処理などを施して正規化
信号を得る正規化回路と、 正規化信号を2値化して文字2値化信号として出力す
る2値化回路と、 特定の識別パターン信号を発生するパターン発生器
と、 正規化信号が入力され、文字2値化信号を発生する文
字2値化回路より高い閾値(濃い濃度)で、濃い黒を検
出する第1の2値化回路と、文字2値化回路より低い閾
値(淡い濃度)と高い閾値の2つの閾値を切替えること
ができる背景検出のための第2の2値化回路と、第1の
2値化回路の出力をn×n画素を単位として黒密度判定
を行う第1の2次元情報演算手段と、第2の2値化回路
の出力をn×n画素を単位として白密度判定を行う2つ
の関数を持ち、背景の白を検出して白検出信号として出
力する第2の2次元情報演算手段とからなり、第1の2
次元情報演算手段の結果によって第2の2値化回路の閾
値および第2の2次元情報演算手段の2つの関数を切替
える動作を行う背景検出回路と、 白検出信号からなる背景検出信号を入力とし、nおよ
びmを任意の正の整数とする時、n×n画素単位に出力
された背景情報を1つのブロック単位として、m×mの
ブロック平面毎に、異なる白ブロックの個数を閾値とし
て判定動作を行う2つの関数を持つ第4の2次元情報演
算手段と、この第4の2次元情報演算手段の2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS(Sは
正の整数)回の異なる2次元情報演算を2通りに行うこ
とが可能な複数の演算関数を備えた第5の2次元情報演
算手段と、この第5の2次元情報演算手段のS回後の最
終判定結果である領域判定結果と第4の2次元情報演算
手段の2つの閾値判定結果とから得られる文字・写真領
域判定結果を順次記憶し、現在のm×mのブロック平面
における文字・写真領域判定結果と、現在のm×mのブ
ロック平面の周囲の領域から得られて記憶されている文
字・写真領域判定結果とを用いて、m×mのブロック平
面よりも広い背景から大局的に文字・写真領域を判定す
る大局的領域判定手段とからなり、当該大局的領域判定
手段の判定結果によって第2の切替手段および第5の2
次元情報演算手段の複数の演算関数の切替えを行うとと
もに、領域判定結果を領域切替信号として外部に出力す
る領域判定回路と、 領域切替信号に基づいて、文字2値化信号および識別
パターン信号のいずれかを選択して出力する領域切替回
路と、 領域切替回路から到来する文字2値化信号および識別
パターン信号を弁別して、文字2値化信号およびパター
ン検出信号として個別に出力するパターン検出分離回路
とを備え、 マイクロプロセッサは、帳票に太く印刷されたドロッ
プアウトカラーでない文字枠を検出した時に画像入力装
置から出力されるパターン検出信号に基づいて、当該文
字枠の内部に記入されている目的の文字の切出し位置を
知り、文字認識ユニット制御信号により、文字の切出し
を文字認識ユニットに指示し、文字認識ユニットは文字
認識ユニット制御信号の入力を契機として文字2値化信
号を取り込み、文字の切出し検出を行うことにより、太
く印刷されたドロップアウトカラーでない文字枠を選択
的に検出除去するようにしたものである。
The optical character recognition device of the present invention includes a character recognition unit, an image input device, and a microprocessor for controlling the whole, which are interconnected via a system bus. Sensor that reads the image signal one-dimensionally, an AD converter that digitizes the image signal read by the image sensor, and normalization by performing logarithmic conversion processing, shading processing, and the like on the digitized form image signal A normalization circuit for obtaining a normalized signal; a binarization circuit for binarizing the normalized signal and outputting it as a character binary signal; a pattern generator for generating a specific identification pattern signal; A first binarization circuit for detecting dark black with a higher threshold (darker density) than a character binarization circuit for generating a character binarization signal; A second binarization circuit for background detection capable of switching between two thresholds, a lower threshold (lighter density) and a higher threshold, than the binarization circuit, and an output of the first binarization circuit is n × n It has a first two-dimensional information calculation means for performing black density determination in units of pixels, and two functions for determining the output of the second binarization circuit in white density determination in units of n × n pixels. And a second two-dimensional information calculating means for detecting the first two-dimensional information as a white detection signal.
A background detection circuit for performing an operation of switching between a threshold value of the second binarization circuit and two functions of the second two-dimensional information calculation means according to a result of the dimensional information calculation means, and a background detection signal composed of a white detection signal as an input , N and m are arbitrary positive integers, the background information output in n × n pixel units is determined as one block unit, and the number of different white blocks is determined as a threshold for each m × m block plane. A fourth two-dimensional information calculating means having two functions for performing an operation, a second switching means for selecting and outputting one output of the two functions of the fourth two-dimensional information calculating means, Fifth two-dimensional information operation having a plurality of operation functions capable of performing S (S is a positive integer) different two-dimensional information operations in two ways on an m × m block plane by the output of the switching means Means and the fifth two-dimensional information calculating means. The character / photo area determination results obtained from the area determination result as the final determination result after S times and the two threshold value determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m × m block plane is stored. The background wider than the m × m block plane is obtained by using the character / photo area determination result obtained in the above and the character / photo area determination result obtained and stored from the area around the current m × m block plane. And a global area determining means for globally determining a character / photo area, and a second switching means and a fifth second means based on the determination result of the global area determining means.
An area determining circuit for switching a plurality of arithmetic functions of the dimension information calculating means and outputting an area determination result to the outside as an area switching signal; and a character binarizing signal or an identification pattern signal based on the area switching signal. An area switching circuit for selecting and outputting a character, and a pattern detection / separation circuit for discriminating a character binarization signal and an identification pattern signal coming from the area switching circuit and individually outputting them as a character binarization signal and a pattern detection signal. The microprocessor, based on a pattern detection signal output from the image input device when detecting a non-dropout color character frame printed in a thick form on the form, includes a target character written in the character frame. The character recognition unit instructs the character recognition unit to cut out the character by the character recognition unit control signal, and recognizes the character. The unit takes in the character binarization signal in response to the input of the character recognition unit control signal, detects the cutout of the character, and selectively detects and removes the character frame which is not a dropout color printed thickly. It is.

〔作用〕[Action]

上記した本発明の文字・写真領域判定装置によれば、
背景検出手段を、文字2値化信号を発生する文字2値化
回路より高い閾値(濃い濃度)で、濃い黒を検出する第
1の2値化回路と、文字2値化回路より低い閾値(淡い
濃度)と高い閾値の2つの閾値を切替えることができる
背景検出のための第2の2値化回路と、第1の2値化回
路の出力をn×n画素を単位として黒密度判定を行う第
1の2次元情報演算手段と、第2の2値化回路の出力を
n×n画素を単位として白密度判定を行う2つの関数を
持つ第2の2次元情報演算手段とで構成し、第1の2次
元情報演算手段の結果によって第2の2値化回路の閾値
及び第2の2次元情報演算手段の2つの関数を切替える
動作を行わせることにより、たとえば、文字のない領域
では背景の白レベル検出の閾値を背景の白レベルの平均
が検出できるレベルに下げておき、文字のある領域では
背景の白レベル検出閾値を背景の白レベルのピーク値以
上の値に設定し、文字のない領域での背景検出の出力に
対しては、例えば2×2の白画素を判定単位とする2次
元情報演算処理のように集中して背景がない場合に背景
なしと判定する処理を行い、文字のある領域では1個の
白画素を背景の有無の判定単位とする処理によって、背
景の白レベルが文字2値化の閾値近辺にある場合や、密
集文字の内部背景のように文字2値化の閾値より高くな
る場合でも、文字や線画に関しては背景を検出すること
が可能となる。
According to the character / photo region determination device of the present invention described above,
The background detecting means includes a first binarization circuit that detects dark black with a higher threshold (darker density) than a character binarization circuit that generates a character binarization signal, and a threshold (lower than a character binarization circuit). A second binarization circuit for background detection capable of switching between two thresholds, that is, a light density and a high threshold, and the output of the first binarization circuit is used to determine the black density in units of n × n pixels. A first two-dimensional information calculating means for performing the first two-dimensional information calculating means, and a second two-dimensional information calculating means having two functions for performing the white density determination in units of n × n pixels for the output of the second binarizing circuit. By switching the threshold of the second binarization circuit and the two functions of the second two-dimensional information calculating means according to the result of the first two-dimensional information calculating means, for example, in an area without characters, The level at which the average of the background white level can be detected as the threshold value for the background white level detection , The background white level detection threshold is set to a value equal to or greater than the peak value of the background white level in a region with a character, and for a background detection output in a region without a character, for example, 2 × 2 When there is no background as in a two-dimensional information calculation process using white pixels as a determination unit, a process of determining that there is no background is performed. In a region with a character, one white pixel is used as a determination unit of the presence or absence of the background. Even if the white level of the background is close to the threshold for character binarization, or if the white level of the background is higher than the threshold for character binarization such as the internal background of dense characters, the background is detected for characters and line drawings. It is possible to do.

また、上記した本発明の文字・写真領域判定装置によ
れば、たとえば、領域切替手段に入力される文字2値化
信号の経路に、当該文字2値化信号をi×i画素の2次
元情報演算を行うことによって黒画像の内部・外部・周
辺部の位置判定をして3値出力する第3の2次元情報演
算手段と、擬似中間調信号と文字2値化信号を画素単位
に切替える第1の信号切替手段と、第1〜第3の2次元
情報演算手段の結果によって画素単位に文字領域か写真
領域かを判定し、当該画素単位の領域判定結果に応じて
第1の信号切替手段を制御する画素レベル領域判定手段
とからなる文字2値化信号加工手段を介設し、文字写真
領域の判定を画素単位とブロック単位の2回に分けて行
うことにより、文字・写真領域のブロック判定の代替手
段あるいは補強手段として輪郭強調処理を行う場合の問
題点である写真の黒周辺のエッジや文字内部の擬似中間
調信号化の誤判定を低減することができる。
According to the character / photo region determination device of the present invention described above, for example, the character binarized signal is input to the area switching means in the path of the i × i pixel two-dimensional information. A third two-dimensional information calculating means for determining the positions of the inner, outer and peripheral portions of the black image by performing the calculation and outputting the three-valued information; and a third means for switching the pseudo halftone signal and the character binary signal in pixel units. A first signal switching unit and a first to third two-dimensional information calculation unit, which determine whether a character region or a photograph region is a pixel unit, and a first signal switching unit according to the pixel unit region determination result. A character binarization signal processing means comprising pixel level area determination means for controlling the character / photograph area is provided, and the determination of the character / photograph area is performed twice for each pixel and for each block. Alternative or reinforcing means of judgment It is possible to reduce erroneous determination of the pseudo halftone signaling is black around the photo edges and character inside of a problem when performing edge enhancement processing to.

また、上記した本発明の文字・写真領域判定装置によ
れば、前記領域判定手段を、n×n画素単位に出力され
た背景情報を1つのブロック単位として、m×mのブロ
ック平面毎に、異なる白ブロックの個数を閾値として判
定動作を行う2つの関数を持つ第4の2次元情報演算手
段と、この第4の2次元情報演算手段の前記2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS回の異
なる2次元情報演算を2通りに行うことが可能な複数の
演算関数を備えた第5の2次元情報演算手段と、この第
5の2次元情報演算手段のS回後の最終判定結果である
領域判定結果と前記第4の2次元情報演算手段の2つの
閾値判定結果とから大局的に文字・写真領域を判定する
大局的領域判定手段とで構成し、当該大局的領域判定手
段の判定結果によって前記第2の切替手段及び第5の2
次元情報演算手段の前記複数の演算関数の切替えを行う
ことで、文字・写真領域判定を正確に行うことが可能と
なる。
Further, according to the character / photo region determination device of the present invention described above, the region determination unit performs background information output in units of n × n pixels as one block unit, for each m × m block plane, A fourth two-dimensional information calculation unit having two functions for performing a determination operation using the number of different white blocks as a threshold, and a fourth two-dimensional information calculation unit for selectively outputting one of the two functions of the fourth two-dimensional information calculation unit A second switching means and a plurality of calculation functions capable of performing S different two-dimensional information calculations in two ways on an m × m block plane by using the output of the second switching means. A character information based on the dimension information calculation means, the area determination result which is the final determination result after S times of the fifth two-dimensional information calculation means, and the two threshold value determination results of the fourth two-dimensional information calculation means. A global area determining means for determining a photograph area; Configured, 2 of the second switching means and the fifth by the determination result of the global area determination means
By switching between the plurality of calculation functions of the dimension information calculation means, it is possible to accurately determine the character / photo region.

また、第5の2次元情報演算手段は、m×mのブロッ
ク平面でS回の異なる2次元情報演算をm画素×mライ
ンのライン単位に分割処理することによって、1個のマ
トリックス演算回路で行うことで、文字・写真領域のブ
ロック化判定処理方法の1つである2次元情報演算処理
方法を比較的簡単な回路構成により実現することができ
る。
Further, the fifth two-dimensional information calculation means divides the S-number of different two-dimensional information calculations into m-pixel × m-line units on an m × m block plane by one matrix calculation circuit. By doing so, a two-dimensional information calculation processing method, which is one of the character / photo region block determination processing methods, can be realized with a relatively simple circuit configuration.

また、上記した本発明の画像入力装置によれば、写真
領域と判定される背景板による黒の領域が、文字2値化
信号加工手段において白レベル信号でマスクされるの
で、従来ではそのまま黒として取り込まれていた背景板
による黒背景が白背景に容易に置き換えられ、画像入力
以降の信号処理を簡略化することができる。
Further, according to the image input device of the present invention described above, the black area due to the background plate determined to be a photographic area is masked by the white level signal in the character binarization signal processing means. The black background by the captured background plate can be easily replaced with a white background, and signal processing after image input can be simplified.

また、上記した本発明の光学文字認識装置によれば、
たとえば帳票上に太く印刷された黒の文字枠を写真領域
と判定して選択的に除去することができるので、たとえ
ば文字枠内の目的の文字の読み取りに際して邪魔になる
文字枠を除去する目的で、当該文字枠を読み取り時の照
明光と同じドロップアウトカラーで印刷するなどの煩雑
な準備が不要となり、入力される帳票の仕様を簡略化す
ることができる。
According to the optical character recognition device of the present invention described above,
For example, a black character frame printed thickly on a form can be determined as a photographic area and selectively removed, so that, for example, to remove a character frame that hinders reading of a target character in the character frame. This eliminates the need for complicated preparations such as printing the character frame with the same dropout color as the illumination light at the time of reading, and can simplify the specifications of the form to be input.

〔実施例1〕 第1図は、本発明の一実施例である文字・写真領域判
定装置の回路構成の一例を示すブロック図である。
Embodiment 1 FIG. 1 is a block diagram showing an example of a circuit configuration of a character / photograph area determination device according to an embodiment of the present invention.

本実施例の文字・写真領域判定装置は、大別して背景
検出回路1(背景検出手段)と、文字2値化信号加工回
路2(文字2値化信号加工手段)と、領域判定回路3
(領域判定手段)と、領域切替回路4(領域切替手段)
とで構成されている。
The character / photo region determination device of the present embodiment is roughly divided into a background detection circuit 1 (background detection means), a character binarization signal processing circuit 2 (character binarization signal processing means), and an area determination circuit 3
(Area determining means) and area switching circuit 4 (area switching means)
It is composed of

そして、当該文字・写真領域判定装置は、外部から文
字2値化信号加工回路2および領域切替回路4に入力さ
れる文字2値化信号12および擬似中間調信号13と、背景
検出回路1に入力されるビデオ正規化信号11およびスラ
イス信号10などに基づいて、領域切替回路4から適応形
2値信号17を出力するものである。
Then, the character / photo region determination device inputs the character binarization signal 12 and the pseudo halftone signal 13 which are input from outside to the character binarization signal processing circuit 2 and the region switching circuit 4, and the input to the background detection circuit 1. The area switching circuit 4 outputs an adaptive binary signal 17 based on the video normalized signal 11 and the slice signal 10 to be processed.

この場合、文字2値化信号12は入力画像について一画
素単位にある濃度で2値化して得られた信号であり、擬
似中間調信号13は入力画像の濃淡の階調をディザ処理に
よって2値化した信号である。
In this case, the character binarization signal 12 is a signal obtained by binarizing the input image at a density in a unit of one pixel, and the pseudo halftone signal 13 is a binary gradation of the input image by dither processing. Signal.

また、スライス信号10は、たとえば外部から作業者が
画像の濃淡を指定する信号であり、ビデオ正規化信号11
は所定の画像入力装置において得られたビデオ信号にAD
変換をかけ、さらに対数変換処理をし、シェーディング
補正をした信号である。
The slice signal 10 is, for example, a signal from which an operator specifies the density of an image from the outside, and the video normalization signal 11
Is the video signal obtained by a given image input device.
This signal is a signal that has been subjected to conversion, logarithmically converted, and subjected to shading correction.

さらに、文字・写真領域判定装置から出力される前記
適応形2値化信号17は、入力画像の特性に対応して、文
字2値化信号12および擬似中間調信号13のいずれかを選
択し出力された信号である。
Further, the adaptive binarized signal 17 output from the character / photo region determination device selects and outputs one of the character binarized signal 12 and the pseudo halftone signal 13 in accordance with the characteristics of the input image. Signal.

本実施例の場合、前記背景検出回路1は、スライス信
号10およびビデオ正規化信号11が入力される複数の2値
化回路51(第1の2値化回路)および2値化回路52(第
2の2値化回路)と、文字2値化信号加工回路2および
領域判定回路3に黒検出信号14および白検出信号15を出
力する複数のマトリックス演算回路61(第1の2次元情
報演算手段)およびマトリックス演算回路62(第2の2
次元情報演算手段)とを備えている。
In the case of the present embodiment, the background detection circuit 1 includes a plurality of binarization circuits 51 (first binarization circuit) and a binarization circuit 52 (first binarization circuit) to which the slice signal 10 and the video normalization signal 11 are input. 2) and a plurality of matrix operation circuits 61 (first two-dimensional information operation means) for outputting the black detection signal 14 and the white detection signal 15 to the character binarization signal processing circuit 2 and the area determination circuit 3. ) And the matrix operation circuit 62 (second 2
Dimension information calculation means).

そして、2値化回路51は入力されるスライス信号10と
ビデオ正規化信号11とから、濃い黒を検出してマトリッ
クス演算回路61へ出力し、マトリックス演算回路61は、
第13図の演算回路番号61で示される関数により、黒密度
判定を行って黒検出信号14を出力する動作を行う。
Then, the binarization circuit 51 detects dark black from the input slice signal 10 and the video normalization signal 11 and outputs it to the matrix operation circuit 61.
An operation of performing black density determination and outputting the black detection signal 14 is performed by the function indicated by the arithmetic circuit number 61 in FIG.

また、2値化回路52はスライス信号10とビデオ正規化
信号11と黒検出信号14から背景の白を検出してマトリッ
クス演算回路62へ出力し、マトリックス演算回路62は、
第13図の演算回路番号62に示される2つの関数のうち黒
検出信号14が指示される関数により白密度判定を行い、
白検出信号15を出力する動作を行う。
Further, the binarization circuit 52 detects white of the background from the slice signal 10, the video normalization signal 11, and the black detection signal 14, and outputs the white to the matrix operation circuit 62.
Of the two functions shown in the arithmetic circuit number 62 in FIG. 13, the white density determination is performed by the function instructing the black detection signal 14,
An operation of outputting the white detection signal 15 is performed.

一方、文字2値化信号加工回路2は、文字2値化信号
12が入力されるマトリックス演算回路63と、当該マトリ
ックス演算回路63(第3の2次元情報演算手段)から出
力される多値信号と、前記黒検出信号14および白検出信
号15とを入力とするセレクタ制御回路71と、このセレク
タ制御回路71からの制御信号によって、外部から到来す
る文字2値化信号12および擬似中間調信号13に所定の処
理を施して領域切替回路4に出力するセレクタ81(第1
の信号切替手段)とを備えている。
On the other hand, the character binarization signal processing circuit 2 outputs the character binarization signal.
A matrix operation circuit 63 to which 12 is input, a multi-level signal output from the matrix operation circuit 63 (third two-dimensional information operation means), and the black detection signal 14 and the white detection signal 15 are input. A selector 81 that performs predetermined processing on the character binary signal 12 and the pseudo halftone signal 13 arriving from the outside in accordance with the selector control circuit 71 and a control signal from the selector control circuit 71, and outputs the processed signal to the area switching circuit 4 ( First
Signal switching means).

マトリックス演算回路63は、第13図の演算回路番号63
で示される各演算式によって、入力される文字2値化信
号12から黒画像の内外周辺の画素位置判定をし、セレク
タ制御回路71へ出力するとともに、当該セレクタ制御回
路71は、内・外・周の判定結果と黒検出信号と白検出信
号から画素単位の文字・写真領域の判定を行い、判定信
号をセレクタ81へ出力する動作を行う。
The matrix operation circuit 63 is the operation circuit number 63 in FIG.
In accordance with the respective arithmetic expressions represented by, the pixel positions of the inside and outside of the black image are determined from the input character binary signal 12 and output to the selector control circuit 71, and the selector control circuit 71 An operation of outputting a determination signal to the selector 81 is performed by determining a character / photo region in pixel units from the determination result of the circumference, the black detection signal, and the white detection signal.

また、セレクタ81は文字2値化信号12及び擬似中間調
信号13を入力し、画素単位の文字写真領域判定に基づ
き、画素単位に切替え片方の信号を出力する。
Further, the selector 81 receives the character binarization signal 12 and the pseudo halftone signal 13, and outputs one of the signals in units of pixels based on the determination of the character / photograph area in units of pixels.

このセレクタ制御回路71の構成の一例を示すものが第
7図である。同図に示されるように、本実施例のセレク
タ制御回路71は、マトリックス演算回路63の内判定信号
とマトリックス演算回路62の白検出信号15の反転信号と
を入力とするANDゲート71aと、このANDゲート71aとマト
リックス演算回路63の外判定信号とを入力とするORゲー
ト71bと、マトリックス演算回路63の周辺判定信号をト
リガ入力とし、マトリックス演算回路62の白検出信号15
をリセット入力とする16進カウンタ71cと、この16進カ
ウンタ71cからの出力とマトリックス演算回路61の黒検
出信号14とを入力とするANDゲート71dと、このANDゲー
ト71dからの出力と、マトリックス演算回路63の外検出
信号の反転信号およびマトリックス演算回路62の白検出
信号15とを入力とするANDゲート71eと、このANDゲート7
1eの出力と前記ORゲート71bとを入力とし、文字2値化
信号の選択時には“1",擬似中間調信号の選択時には
“0"をセレクタ81に出力する最終段のORゲート71fとで
構成されている。
FIG. 7 shows an example of the configuration of the selector control circuit 71. As shown in the figure, the selector control circuit 71 of the present embodiment is provided with an AND gate 71a which receives an inner judgment signal of the matrix operation circuit 63 and an inverted signal of the white detection signal 15 of the matrix operation circuit 62, and An OR gate 71b that receives an AND gate 71a and an outside determination signal of the matrix operation circuit 63 as inputs, and a peripheral detection signal of the matrix operation circuit 63 as a trigger input, and the white detection signal 15 of the matrix operation circuit 62
A hexadecimal counter 71c having a reset input as an input, an AND gate 71d having an input from the hexadecimal counter 71c and the black detection signal 14 of the matrix operation circuit 61 as an input, an output from the AND gate 71d, and a matrix operation An AND gate 71e that receives the inverted signal of the outside detection signal of the circuit 63 and the white detection signal 15 of the matrix operation circuit 62 as inputs,
A final stage OR gate 71f which receives the output of 1e and the OR gate 71b as inputs and outputs "1" to the selector 81 when a character binary signal is selected and "0" when a pseudo halftone signal is selected. Have been.

そして、周辺黒画素の文字2値化信号選択抑止を行う
とともに、16進カウンタ71cにより、背景の白が見つか
らない領域での文字2値化信号選択の判定回数を2回に
制限している。これは写真内部輪郭除去のためのもので
ある。
Then, the selection of the character binarization signal of the peripheral black pixel is suppressed, and the number of times of determination of the character binarization signal selection in an area where white background is not found is limited to two by the hexadecimal counter 71c. This is for removing the inner contour of the photograph.

領域判定回路3は、マトリックス演算回路64(第4の
2次元情報演算手段)と、セレクタ82(第2の信号切替
手段)と、セレクタ制御回路72(大局的領域判定手段)
と、複数段のマトリックス演算回路651,652,653からな
るマトリックス演算回路65(第5の2次元情報演算手
段)とで構成されており、マトリックス演算回路64は白
検出信号15を入力とし、白密度判定に対してさらにブロ
ック単位に密度判定(以下、背景密度判定と記す)を行
う。この背景密度判定は、第14図における演算回路番号
64で示されるように異なる2つの関数について行われ、
2つの関数の各々における判定結果をセレクタ制御回路
72及びセレクタ82に出力する。
The area determination circuit 3 includes a matrix calculation circuit 64 (fourth two-dimensional information calculation means), a selector 82 (second signal switching means), and a selector control circuit 72 (global area determination means).
And a matrix operation circuit 65 (fifth two-dimensional information operation means) composed of a plurality of stages of matrix operation circuits 651, 652, 653. The matrix operation circuit 64 receives the white detection signal 15 as an input, Further, density determination (hereinafter referred to as background density determination) is performed for each block. This background density determination is based on the arithmetic circuit number in FIG.
Performed on two different functions, as shown at 64,
A selector control circuit for determining the result of each of the two functions
Output to 72 and selector 82.

セレクタ82は、セレクタ制御回路72の出力によって前
段のマトリックス演算回路64からの出力を切り替え、さ
らに、背景密度判定の2つの関数の処理結果はセレクタ
82において選択され、後段のマトリックス演算回路651
へ入力される。マトリックス演算回路651は、第14図の
演算回路番号651で示される演算により、背景密度判定
に対して太めるように作用する2値判定(文字領域判
定)の処理を行い、判定結果をマトリックス演算回路65
2へ出力する。
The selector 82 switches the output from the matrix operation circuit 64 in the preceding stage according to the output of the selector control circuit 72. Further, the processing results of the two functions of the background density determination are
The matrix operation circuit 651 selected at 82
Is input to The matrix operation circuit 651 performs a binary judgment (character area judgment) process which acts to increase the background density judgment by the operation indicated by the operation circuit number 651 in FIG. Circuit 65
Output to 2.

マトリックス演算回路652及びマトリックス演算回路6
53は2値判定結果に対するコレクション処理を行う。
Matrix operation circuit 652 and matrix operation circuit 6
53 performs a collection process on the binary determination result.

すなわち、マトリックス演算回路652及びマトリック
ス演算回路653は、第14図における演算回路番号652およ
び653に対応する異なる2つの関数をそれぞれ持ってお
りセレクタ制御回路72の出力によって動作する関数が切
り替えられる。
That is, the matrix operation circuit 652 and the matrix operation circuit 653 have two different functions corresponding to the operation circuit numbers 652 and 653 in FIG. 14, respectively, and the function operated by the output of the selector control circuit 72 is switched.

最終段のマトリックス演算回路653は最終判定結果と
して、領域切替回路4およびセレクタ制御回路72に対し
て領域切替信号16を出力する。
The matrix operation circuit 653 at the last stage outputs the region switching signal 16 to the region switching circuit 4 and the selector control circuit 72 as a final determination result.

セレクタ制御回路72はマトリックス演算回路64の2つ
の関数出力と領域切替信号16とにより大局的文字・写真
領域判定を行い、判定結果を出力する。
The selector control circuit 72 makes a global character / photo area determination based on the two function outputs of the matrix operation circuit 64 and the area switching signal 16, and outputs a determination result.

このセレクタ制御回路72の構成の一例を示すものが第
8図である。同図に示されるように、セレクタ制御回路
72は、マトリックス演算回路653の最終段の出力である
領域切替信号16とマトリックス演算回路64の関数2の出
力を入力とするANDゲート72aと、このANDゲート72aの出
力および、当該ANDゲート72aから複数のレジスタ72bお
よび72cを経た出力とを入力とするANDゲート72dと、こ
のANDゲート72dの出力をセット入力とし、マトリックス
演算回路64の関数1の出力をリセット入力としてセレク
タ82に“1"または“0"の論理制御信号を出力するSRフリ
ップフロップ72eとで構成されており、現在注目してい
る領域と、レジスタ72bおよび72cに順次、記憶保持され
た、その周囲の領域における判定結果とに基づいて、後
述のような大局的文字・写真領域の判定が行われるもの
である。
FIG. 8 shows an example of the configuration of the selector control circuit 72. As shown in FIG.
Reference numeral 72 denotes an AND gate 72a that receives the area switching signal 16 that is the output of the last stage of the matrix operation circuit 653 and the output of the function 2 of the matrix operation circuit 64, the output of the AND gate 72a, and the output of the AND gate 72a. An AND gate 72d which receives an output from the plurality of registers 72b and 72c as an input, an output of the AND gate 72d as a set input, and an output of the function 1 of the matrix operation circuit 64 as a reset input to the selector 82 as "1" or An SR flip-flop 72e that outputs a logical control signal of “0” is provided. The SR flip-flop 72e outputs a logical control signal of “0”. Based on this, a global character / photo region is determined as described below.

領域切替回路4は、到来する前記擬似中間調信号13が
格納されるラインメモリ91と、前段の文字2値化信号加
工回路2におけるセレクタ81を介して到来する加工信号
12aを格納するラインメモリ92と、これらのラインメモ
リ91および92からの出力を選択して適応形2値化信号17
として外部に出力するセレクタ83とを備えている。
The area switching circuit 4 includes a line memory 91 in which the incoming pseudo halftone signal 13 is stored, and a processed signal arriving via the selector 81 in the character binarized signal processing circuit 2 in the preceding stage.
A line memory 92 for storing 12a and an output from these line memories 91 and 92 are selected to generate an adaptive binary signal 17
And a selector 83 for outputting to the outside.

すなわち、ラインメモリ91及びラインメモリ92は背景
検出回路1及び領域判定回路3での処理による判定信号
に見合った量だけ、擬似中間調信号13及び文字2値化信
号12を遅らせる働きをする。
That is, the line memory 91 and the line memory 92 function to delay the pseudo halftone signal 13 and the character binarization signal 12 by an amount corresponding to the determination signal by the processing in the background detection circuit 1 and the area determination circuit 3.

また、ラインメモリ91には擬似中間調信号13が入力さ
れるが、ラインメモリ92には、文字2値化信号12そのも
のでなく、画素単位の領域判定により、画素単位に写真
領域と判定されるとセレクタ81で擬似中間調信号13と切
り替えられた加工信号12aが格納される。
The pseudo halftone signal 13 is input to the line memory 91, but the line memory 92 is determined not to be the character binary signal 12 itself but to be a photographic area in pixel units based on pixel area determination. And the processed signal 12a switched to the pseudo halftone signal 13 by the selector 81.

次にマトリックス演算回路61,62,63,64,65を構成する
一般的なマトリックス演算回路6000の一実施例を第9図
に示す。なお、説明を簡略化するため、一例として5×
5のマトリックスサイズの2次元情報演算を行う場合に
ついて示してある。
Next, an embodiment of a general matrix operation circuit 6000 constituting the matrix operation circuits 61, 62, 63, 64 and 65 is shown in FIG. In addition, in order to simplify the description, 5 ×
5 shows a case where a two-dimensional information calculation with a matrix size of 5 is performed.

同図に示されるように、マトリックス演算回路6000
は、マトリックスの要素数に対応した25個のレジスタ60
01と、4ライン分のラインメモリ6002と第1および第14
図に示されるような2次元情報演算を行う演算ROM6003
からなる。演算ROM6003は関数切替信号によって演算関
数を切り替えることができ、また同時に3つの2次元情
報演算処理を行うができる。
As shown in FIG.
Is 25 registers 60 corresponding to the number of elements in the matrix
01, line memory 6002 for 4 lines, and 1st and 14th
Operation ROM 6003 that performs two-dimensional information operation as shown in the figure
Consists of The operation ROM 6003 can switch the operation function by the function switching signal, and can simultaneously perform three two-dimensional information operation processes.

すなわち、一例として領域判定回路3のマトリックス
演算回路63の場合には、ブロック単位の複数のマトリッ
クス演算は、ブロック単位に1回の割りで演算を行えば
よく、ブロックサイズがn画素×nラインの場合、1つ
の演算はnラインに1回でよく、マトリックス演算をラ
イン単位に時分割処理すれば1つのマトリックス演算回
路(但し、演算出力は複数)でn個の2次元情報演算が
可能である。
That is, in the case of the matrix operation circuit 63 of the area determination circuit 3 as an example, a plurality of matrix operations in block units may be performed once for each block unit, and the block size is n pixels × n lines. In this case, one operation may be performed once every n lines, and if a matrix operation is time-division-processed in line units, n two-dimensional information operations can be performed by one matrix operation circuit (however, a plurality of operation outputs are provided). .

また、第10図は、領域判定回路3におけるマトリック
ス演算回路65を構成する多段のマトリックス演算回路65
1,652,653における3つのマトリックス演算処理を1つ
のマトリックス演算回路6000で実現する場合の構成の一
例を示すものである。
FIG. 10 shows a multi-stage matrix operation circuit 65 constituting the matrix operation circuit 65 in the area determination circuit 3.
This shows an example of a configuration in which one matrix operation circuit 6000 implements three matrix operation processes in 1,652,653.

すなわち、本実施例におけるマトリックス演算回路65
は、3つの演算処理を同時に行う第9図のような一つの
マトリックス演算回路6000と、このマトリックス演算回
路6000からの出力を選択するタイミング制御回路65aお
よび複数の論理ゲート65b,65cと、演算結果を1ライン
分保持するラインメモリ65dと、nライン毎に1回出力
される最終演算結果をnライン保持して出力するライン
メモリ65eとで構成されている。
That is, the matrix operation circuit 65 in the present embodiment
Is a matrix operation circuit 6000 as shown in FIG. 9 for simultaneously executing three operation processes, a timing control circuit 65a for selecting an output from the matrix operation circuit 6000, a plurality of logic gates 65b and 65c, and an operation result. Is stored for one line, and a line memory 65e for holding and outputting the final calculation result output once every n lines for n lines.

これにより、第14図に示されるようなマトリックス演
算回路65のマトリックス演算処理を回路規模の増大を招
くことなく実現することができる。
Thereby, the matrix operation processing of the matrix operation circuit 65 as shown in FIG. 14 can be realized without increasing the circuit scale.

以下、本実施例の作用について説明する。 Hereinafter, the operation of the present embodiment will be described.

通常、文字の2値化の閾値はPCS(Print Cnotrast Si
gnal)値で0.10〜0.50の間にあり、外部から作業者が操
作パネルの濃度指定によってこの間の値を選択してい
る。文字の濃度をピーク値で見るとPCS値で0.5以上であ
る場合が大半である。
Normally, the threshold for binarizing characters is PCS (Print Cnotrast Si
gnal) value is between 0.10 and 0.50, and an operator from outside selects this value by specifying the density on the operation panel. In most cases, when the density of a character is viewed as a peak value, the PCS value is 0.5 or more.

一方背景の白レベルをPCS値で考えると、濃度の自動
調整の有無にもよるがPCS値でピーク値で考えると、上
述の通常文字の2値化の閾値近辺にある。背景の白レベ
ルを平均値で見ると、通常文字の2値化閾値よりPCS0.0
5以上低い値である。領域判定に用いる背景検出回路の
特性として、背景の白が周辺に見つかることが文字領域
判定の条件の1つになっている場合、文字がない領域で
はできるだけ背景がみつからないようにし、文字のある
領域ではできるだけ背景をみつけやすくすることが領域
判定に良好な結果を与える。この場合の文字のある領域
とは文字のある可能性が大な領域という意味で、本実施
例では濃い黒が見つかる場合を言い、またこの濃い黒と
は背景のPCSピーク値とは区別できるPCS値を考え、PCS
0.5以上(例えばPCS0.6)の濃度を言う。
On the other hand, when the white level of the background is considered by the PCS value, it depends on the presence or absence of the automatic adjustment of the density. Looking at the average white level of the background, PCS 0.0
The value is 5 or lower. As a characteristic of the background detection circuit used for area determination, if one of the conditions for character area determination is that white background is found in the periphery, the background is not found as much as possible in areas where there is no character. Making the background as easy to find as possible in the region gives good results in the region determination. In this case, the region with the character means a region where the possibility of the character is large, and in this embodiment, a case where dark black is found, and this dark black is a PCS that can be distinguished from the background PCS peak value Think value, PCS
It refers to a concentration of 0.5 or more (for example, PCS 0.6).

そこで、本実施例では、良好な領域判定結果を得るに
以下のことを行う。
Therefore, in the present embodiment, the following is performed to obtain a good area determination result.

すなわち、背景検出回路1の2値化回路51および52で
は、文字のない領域での背景の白レベル検出閾値を背景
の白レベルの平均が検出できるレベルに下げておき、文
字のある領域では背景の白レベル検出閾値は、背景の白
レベルのピーク値以上の値として例えばPCS値で0.5の値
にしておく。上述の検出閾値の関係をグラフで第6図に
示す。そして、マトリックス演算回路61および62は、文
字のない領域での背景検出の出力に対しては、集中して
背景がない場合に背景がないと判定する処理、例えば2
×2の白画素を判定単位とする2次元情報演算処理を
し、文字のある領域では1個の白画素を判定単位とする
動作を行う。
That is, in the binarization circuits 51 and 52 of the background detection circuit 1, the background white level detection threshold value in an area without a character is reduced to a level at which the average of the white levels of the background can be detected, and the background level in the area with a character is detected. The white level detection threshold value is set to, for example, a PCS value of 0.5 as a value equal to or higher than the peak value of the white level of the background. FIG. 6 is a graph showing the relationship between the above-mentioned detection thresholds. The matrix operation circuits 61 and 62 perform processing for determining that there is no background when there is no background in a concentrated manner with respect to the output of background detection in an area without characters, for example, 2
A two-dimensional information calculation process is performed using a × 2 white pixel as a determination unit, and an operation is performed using one white pixel as a determination unit in an area with a character.

これにより、色刷りの原稿などのように背景の白レベ
ルが文字2値化の閾値に近い場合や漢字などの密集文字
の内部背景などのように文字2値化の閾値よりも高くな
る場合でも、文字や線画については、確実に背景を検出
することができる。
Thereby, even when the white level of the background is close to the threshold value of character binarization such as a color-printed original, or when the white level of the background becomes higher than the threshold value of character binarization such as the internal background of dense characters such as kanji, For characters and line drawings, the background can be reliably detected.

一方、処理画像の画素のブロック単位に文字・写真領
域を切り替えた場合、太い線画の途中の部分で領域を2
分することがある。そこで、本実施例では、このような
太い線画については、文字領域であっても、太い線の内
部を写真領域化することによって領域の2分化を解決す
る。
On the other hand, when the character / photo area is switched in units of pixel blocks of the processed image, the area is set to 2 in the middle of the thick line drawing.
May be divided. Therefore, in the present embodiment, for such a thick line drawing, even if it is a character area, the area inside the thick line is converted into a photographic area to resolve the area division into two.

すなわち、太い線の内部化の手段としては、文字2値
化信号加工回路2のマトリックス演算回路63において第
13図に示される5×5画素のマトリックス演算により、
文字2値化信号の黒分布を見ることによって判定する。
すなわち、第2図に示すように、マトリックス演算回路
63は、太い線画に対して、5×5画素のマトリックス中
に1つも黒がない領域として領域Aを判定し、5×5画
素の中心画素が白で、周辺画素に黒がある領域として領
域Bを判定し、5×5画素の中心画素が黒で、周辺画素
に白がある領域として領域Cを判定し、5×5画素に1
つも白がない領域として領域Dと領域Eを判定する。次
に8×8画素のマトリックスサイズ背景の白を検出する
マトリックス演算回路62の白検出信号15によって、背景
の白が8×8画素の中に見つかる領域として領域D、背
景の白が見つからない領域として領域Eが判定分離され
る。
That is, as means for internalizing the thick line, the matrix operation circuit 63 of the character / binarization signal processing circuit 2 uses
By the matrix operation of 5 × 5 pixels shown in FIG. 13,
The determination is made by looking at the black distribution of the character binary signal.
That is, as shown in FIG.
63 designates a region A as a region where no black exists in a matrix of 5 × 5 pixels for a thick line image, and a region where a central pixel of 5 × 5 pixels is white and peripheral pixels have black. B is determined, a region C is determined as a region in which the central pixel of 5 × 5 pixels is black and peripheral pixels are white, and 1 × 5 × 5 pixels
The areas D and E are determined as areas having no white. Next, an area D where the white of the background is found in the 8 × 8 pixels and an area where the white of the background is not found are obtained by the white detection signal 15 of the matrix operation circuit 62 for detecting the white of the 8 × 8 pixel matrix size background. And the area E is determined and separated.

そして、領域A及び領域Eを写真領域に設定し、領域
B,C,Dを文字領域に設定する。
Then, the region A and the region E are set as the photograph region, and the region
Set B, C, and D to the character area.

線画の太さが8画素(線密度16本/mmのとき0.5mm)以
下のものについては線画のすべてが文字領域に判定され
るが、線画の太さが8画素以上になると太さ4画素の輪
郭を文字領域として、それより内側は写真領域に判定さ
れる。ある程度以上(本実施例の場合、2mm角)太い線
画についてはブロック単位の文字・写真領域判定で全体
が写真領域と判定される。このようにして、太さ0.5mm
程度の普通の文字は文字領域、0.5mmから例えば2mmまで
の太さの文字あるいは線画については、輪郭を有する写
真領域となり、それ以上太い写真画像については輪郭を
有さない写真領域となる。
If the thickness of the line drawing is 8 pixels or less (0.5 mm when the line density is 16 lines / mm), the entire line drawing is determined to be a character area, but if the line drawing is 8 pixels or more, the thickness is 4 pixels Is determined as a character area, and the area inside the outline is determined as a photograph area. For a line drawing that is thicker than a certain extent (2 mm square in the present embodiment), the whole is determined to be a photographic region by character / photo region determination in block units. In this way, thickness 0.5mm
A normal character of the degree is a character region, a character or line drawing having a thickness of 0.5 mm to 2 mm is a photographic region having an outline, and a photographic image having a larger thickness is a photographic region having no outline.

こうして、文字・写真領域の判定の代替手段あるいは
補強手段として、輪郭強調処理を行う場合などに問題と
なる、写真領域の黒領域の周辺でのエッジの発生や、文
字内部を擬似中間調信号化してしまうなどの誤判定を確
実に防止することができる。
In this way, as an alternative or reinforcing means for character / photo area determination, an edge around the black area of the photo area, which becomes a problem when performing contour emphasis processing, or a pseudo halftone signal inside the character is generated. This makes it possible to reliably prevent erroneous determinations such as mistakes.

また、領域判定回路3におけるブロック判定処理は次
のようになる。
The block determination process in the area determination circuit 3 is as follows.

まず、マトリックス演算回路64は、前記第14図に示さ
れるように、前記のマトリックス演算回路62からの8×
8画素のブロックの背景白検出の2次元情報演算出力を
1ブロックとする4×4ブロック平面について関数1お
よび関数2による背景密度判定を行う。この判定結果は
1ブロック単位(8画素8ライン毎)に出力される。以
下に述べるものも同様に1ブロック単位の出力である。
First, as shown in FIG. 14, the matrix operation circuit 64 receives the 8 ×
The background density is determined by the function 1 and the function 2 on a 4 × 4 block plane in which the two-dimensional information calculation output of the background white detection of the block of 8 pixels is one block. This determination result is output in units of one block (every eight pixels and eight lines). The output described below is also output in units of one block.

次にマトリックス演算回路651は、前段のマトリック
ス演算回路64の背景密度判定の結果に対して4×4ブロ
ック平面で2値判定を行う。次にこの2値判定の結果に
対して、後段のマトリックス演算回路652および653にお
いて3×3のブロック平面でコレクション処理(スムー
ジング処理)を2回行い、最終結果がブロック単位の領
域切替信号16として領域切替回路4のセレクタ83に出力
されると同時にセレクタ制御回路72に入力される。
Next, the matrix operation circuit 651 performs a binary judgment on the result of the background density judgment of the matrix operation circuit 64 in the preceding stage on a 4 × 4 block plane. Next, with respect to the result of the binary determination, correction processing (smoothing processing) is performed twice on a 3 × 3 block plane in matrix operation circuits 652 and 653 at the subsequent stage, and the final result is obtained as an area switching signal 16 in block units. The signal is output to the selector 83 of the area switching circuit 4 and is input to the selector control circuit 72 at the same time.

ここで、マトリックス演算回路64およびマトリックス
演算回路652,653は、前述のように背景密度判定及びコ
レクション処理の各々のために2つの関数1および関数
2をそれぞれ備えており、セレクタ制御回路72における
後述の大局的領域判定の結果が文字領域である場合は関
数1が選ばれ、写真領域である場合は関数2が選ばれ
る。
Here, the matrix operation circuit 64 and the matrix operation circuits 652 and 653 have two functions 1 and 2 respectively for the background density determination and the correction processing as described above. If the result of the target area determination is a character area, function 1 is selected, and if it is a photograph area, function 2 is selected.

セレクタ制御回路72における大局的領域判定は背景密
度判定の2つの関数出力と最終判定結果により行われ、
マトリックス演算回路64における背景密度判定の関数1
が真とならない場合を契機にして、大局的に写真領域と
する。(本実施例では、第8図のSRフリップフロップ72
eがリセットされ、セレクタ82およびマトリックス演算
回路652および653に対しては“0"レベルの論理信号が出
力される。) 一方、マトリックス演算回路64における背景密度判定
の関数2が真で、最終判定結果が真(文字領域)の状態
が2ブロック(32画素)継続した場合を契機に大局的に
文字領域とする(本実施例では、第8図のSRフリップフ
ロップ72eがセットされ、セレクタ82およびマトリック
ス演算回路652および653に対しては“1"レベルの論理信
号が出力される)。
The global area determination in the selector control circuit 72 is performed based on two function outputs of the background density determination and the final determination result.
Function 1 for determining background density in matrix operation circuit 64
When is not true, the photograph area is globally considered. (In this embodiment, the SR flip-flop 72 shown in FIG. 8 is used.
e is reset, and a logic signal of “0” level is output to the selector 82 and the matrix operation circuits 652 and 653. On the other hand, when the function 2 of the background density determination in the matrix operation circuit 64 is true and the final determination result is true (character area) for two blocks (32 pixels), the character area is globally defined as a trigger ( In this embodiment, the SR flip-flop 72e shown in FIG. 8 is set, and a logic signal of "1" level is output to the selector 82 and the matrix operation circuits 652 and 653).

すなわち、セレクタ制御回路72による大局的領域判定
は本実施例の場合、2mm角以上の黒を検出すると即時に
大局的写真領域と判定し、次に白が2mm以上続けて広い
範囲にあればまた大局的文字領域に戻るという性質があ
るが、写真領域(ブロック判定結果)が周囲にある場合
は、白が2mm以上、広い範囲にあっても、大局的に写真
領域と判定されたままであり、写真領域内に比較的広い
白の領域が存在する場合などでも誤判定を生じにくくな
っている。
That is, in the present embodiment, the global area determination by the selector control circuit 72 is immediately determined to be a global photographic area when black of 2 mm or more is detected. There is a property of returning to the global character area, but if a photographic area (block determination result) is around, even if white is 2 mm or more, the white area is still globally determined to be a photographic area, Erroneous determination is less likely to occur even when a relatively large white area exists in the photograph area.

次に、マトリックス演算回路64における背景密度判定
を2つの関数の出力例により説明する。
Next, the background density determination in the matrix operation circuit 64 will be described with reference to output examples of two functions.

第3図に示すように2mm角より小さくて、第4図に示
すように1mm角より大きい黒の場合、その中心の注目判
定ブロック(同図中B)は、関数1が1で関数2が0で
ある。第4図が示すように1mm以下の黒の場合、その中
心の注目判定ブロックは、関数1,2とも1である。黒が2
mm以上になった場合、その中心の注目判定ブロックは、
関数1,2とも0である。このように関数1と関数2は黒
が2mm以上の場合と1mm以下の場合は同じ判定をし、黒が
1〜2mmの大きさにある時に異なる判定をする。文字の
ある領域を文字領域として判定しやすくするため、大局
的判定結果で、背景密度判定の関数1を選ぶ。文字のな
い写真領域の白のある領域を文字領域としないために、
大局的判定結果で、背景密度判定の関数2を選ぶ。
In the case of black smaller than 2 mm square as shown in FIG. 3 and larger than 1 mm square as shown in FIG. 4, the attention determination block at the center (B in FIG. 0. As shown in FIG. 4, in the case of black of 1 mm or less, the attention judgment block at the center is 1 for both functions 1 and 2. Black is 2
mm or more, the attention judgment block at the center
Both functions 1 and 2 are 0. As described above, the function 1 and the function 2 make the same judgment when the black is 2 mm or more and 1 mm or less, and make different judgments when the black has a size of 1 to 2 mm. In order to make it easier to determine an area having a character as a character area, a function 1 for background density determination is selected based on a global determination result. In order not to use the white area of the photo area without text as the text area,
The function 2 of the background density determination is selected based on the global determination result.

次に、マトリックス演算回路651における2値判定の
処理について説明する。背景密度判定の関数1による判
定は一種の黒の細め処理で、黒の内側へ1mmのところま
で文字領域(背景があるという意味)とする処理とも言
えるので、2値判定では文字領域を広げる処理をする。
すなわち、第5図に示すように、四隅に白背景があると
いう条件をとることによって、文字領域を広げる処理を
行う。
Next, the process of the binary determination in the matrix operation circuit 651 will be described. The determination by the function 1 of the background density determination is a kind of black thinning processing, which can be said to be a processing of making a character area (meaning that there is a background) up to 1 mm inward of black. do.
That is, as shown in FIG. 5, a process of expanding the character area is performed by taking the condition that there are white backgrounds at the four corners.

次に、マトリックス演算回路652,653によるコレクシ
ョン処理について説明する。前述の第14図に示すように
コレクション処理は3×3ブロック平面で多数決処理を
行っている。関数1と関数2は多数決閾値を変えてい
て、関数1は孤立の1ブロックの大きさの写真領域を文
字領域化し、関数2は孤立の3×3ブロックの大きさの
文字領域を写真領域化する。そしてセレクタ制御回路72
の大局的判定結果で文字領域が選ばれると関数1が選ば
れ、写真領域誤判定を修正する。
Next, the collection processing by the matrix operation circuits 652 and 653 will be described. As shown in FIG. 14, the majority process is performed in the 3 × 3 block plane. Function 1 and Function 2 change the majority decision threshold. Function 1 converts an isolated one-block size photo area into a character area, and Function 2 converts an isolated 3 × 3 block-size character area into a photo area. I do. And the selector control circuit 72
When a character area is selected according to the global determination result, the function 1 is selected, and the erroneous determination of the photograph area is corrected.

また、セレクタ制御回路72の大局的判定結果で写真領
域が選ばれると関数2が選ばれ、文字領域誤判定を修正
する。
When a photograph area is selected based on the global determination result of the selector control circuit 72, the function 2 is selected, and the character area erroneous determination is corrected.

こうして、ノイズなどに影響されることなく、ブロッ
ク判定による文字・写真領域の判定が正確に行われる。
In this manner, the character / photo region can be accurately determined by the block determination without being affected by noise or the like.

また、本実施例の場合には、上述のマトリックス演算
回路651,652,653は、第10図に示されるように一つのマ
トリックス演算回路6000と、タイミング制御回路65a
と、複数の論理ゲート65b,65cと、複数のラインメモリ6
5d,65eとからなる一組の簡単な回路構成で実現されてお
り、回路規模をいたずらに増大させることなく、前述の
ような複数のマトリックス演算処理を行うことができ
る。
Further, in the case of the present embodiment, the matrix operation circuits 651, 652, and 653 described above include one matrix operation circuit 6000 and a timing control circuit 65a as shown in FIG.
And a plurality of logic gates 65b and 65c and a plurality of line memories 6
5d and 65e are realized by a set of simple circuit configurations, and a plurality of matrix operation processes as described above can be performed without unnecessarily increasing the circuit scale.

〔実施例2〕 次に本発明の一実施例である文字・写真領域判定装置
を画像入力装置に組み込んで使用する実施例について説
明する。
Second Embodiment Next, a description will be given of an embodiment in which the character / photograph area determination device according to one embodiment of the present invention is incorporated in an image input device and used.

すなわち、第11図に示される画像入力装置100は、目
的の帳票101から画像データを一次元的に読み取るイメ
ージセンサ103と、この帳票101の背後に配置され、当該
帳票101の幅方向における端部を検出可能にする黒背景
板102とを備えており、帳票101をイメージセンサ103の
読み取り幅方向に垂直な方向に所定の速度で送ること
で、当該帳票101の全域が二次元画像として入力される
構造となっている。
That is, the image input device 100 shown in FIG. 11 includes an image sensor 103 that reads image data one-dimensionally from a target form 101, and an image sensor 103 that is disposed behind the form 101 and has an end portion in the width direction of the form 101. And a black background plate 102 capable of detecting an image.By sending the form 101 at a predetermined speed in a direction perpendicular to the reading width direction of the image sensor 103, the entire area of the form 101 is input as a two-dimensional image. Structure.

前記イメージセンサ103には、読み取られた画像信号
をディジタル化するAD変換器104と、このディジタル化
された帳票101の画像信号に対して周知の対数変換処理
およびシェーディング処理などを施して正規化信号119
を得る正規化回路105とが接続されている。
The image sensor 103 includes an AD converter 104 for digitizing a read image signal, and a well-known logarithmic conversion process and shading process performed on the digitized image signal of the form 101 to generate a normalized signal. 119
And a normalization circuit 105 for obtaining

さらに、この正規化信号119は、所定の2値化回路106
を介して前述の実施例1で示したような構成の領域切替
回路4のラインメモリ92の側に入力され、また一部は背
景検出回路1に入力される。
Further, the normalized signal 119 is supplied to a predetermined binarizing circuit 106
Is inputted to the line memory 92 of the area switching circuit 4 having the structure as shown in the first embodiment, and a part of the signal is inputted to the background detection circuit 1.

この場合、領域切替回路4には、擬似中間調信号の代
わりに、パターン発生器107において発生される。文字
2値化信号123とは異なる所定の識別パターン信号120が
ラインメモリ91に入力される。
In this case, the pattern is generated in the area switching circuit 4 by the pattern generator 107 instead of the pseudo halftone signal. A predetermined identification pattern signal 120 different from the character binary signal 123 is input to the line memory 91.

また、特に図示しないが、背景検出回路1には、作業
者などによって外部から設定される図示しないスライス
レベル信号が入力されている。
Although not specifically shown, the background detection circuit 1 receives a slice level signal (not shown) set externally by an operator or the like.

そして、この背景検出回路1から出力される背景検出
信号121により、領域判定回路3は領域切替信号122を領
域切替回路4に送出して、文字2値化信号123と、識別
パターン信号120の切り替え動作を行わせるように構成
されている。
In response to the background detection signal 121 output from the background detection circuit 1, the area determination circuit 3 sends an area switching signal 122 to the area switching circuit 4 to switch between the character binarization signal 123 and the identification pattern signal 120. It is configured to perform an operation.

領域切替回路4の後段には、パターン検出分離回路11
1が接続されており、領域切替回路4から到来する文字
2値化信号123および識別パターン信号120を弁別して、
文字2値化信号112およびパターン検出信号113として出
力する動作を行う。
In the subsequent stage of the area switching circuit 4, a pattern detection / separation circuit 11
1 is connected to discriminate the character binary signal 123 and the identification pattern signal 120 coming from the area switching circuit 4,
An operation of outputting as a character binarization signal 112 and a pattern detection signal 113 is performed.

ところで、前記実施例1で説明したように、文字2値
化信号112は、2値化回路106から到来する文字2値化信
号123に対して、領域切替信号122が写真領域と判定した
ところは、白レベル信号でマスクされている。すなわ
ち、取込み画像中の黒背景板102による黒い部分は、白
背景が検出されず、写真領域と判定される。したがっ
て、本実施例によれば、従来装置では黒背景板102が黒
としてそのまま取り込まれたのを内部処理により黒背景
(黒背景板の部分)を白背景に置き替えることができ、
画像入力以降の上位の処理装置などにおける信号処理が
簡略化される。
By the way, as described in the first embodiment, the character binarization signal 112 is different from the character binarization signal 123 coming from the binarization circuit 106 in that the region switching signal 122 is determined to be a photographic region. , Are masked by the white level signal. That is, the black portion of the captured image due to the black background plate 102 has no white background detected and is determined to be a photographic region. Therefore, according to this embodiment, in the conventional apparatus, the black background (the black background plate portion) can be replaced with the white background by the internal processing while the black background plate 102 is taken as black as it is,
Signal processing in a higher-level processing device after image input is simplified.

また、帳票上101における充分に広い黒画素の固まり
は写真領域に判定されるため、帳票上101に太く印刷さ
れたドロップアウトカラーでない文字枠を写真領域と判
定し、取り込み画像信号から除去(ドロップアウト)す
ることができる。
In addition, since a sufficiently large block of black pixels on the form 101 is determined to be a photograph area, a character frame that is not a dropout color and is printed thickly on the form 101 is determined to be a photograph area, and is removed from the captured image signal (drop). Out) can be.

すなわち、帳票101の特定の読み取り領域において、
データの書き込み位置を指定すべく、実際の書き込み作
業を行う作業者には見え、読み取り時にはドロップアウ
トさせる目的で、従来では読み取り光学系の照明と同じ
色のドロップアウトカラーにより書き込み枠などを印刷
していたものが不要となり、実際の書き込み文字と同じ
通常の黒色で太く書き込み枠を印刷するだけでよく、帳
票101の仕様が簡略化される。
That is, in a specific reading area of the form 101,
In order to specify the data writing position, it is visible to the operator who actually performs the writing operation, and in order to drop out at the time of reading, the writing frame etc. is conventionally printed with the same color as the illumination of the reading optical system with the dropout color. This eliminates the necessity of printing, and it suffices to simply print a thick writing frame in normal black, which is the same as the actual writing character, and the specifications of the form 101 are simplified.

〔実施例3〕 第12図は、前記実施例2における画像入力装置100か
ら出力されるパターン検出信号113を、光学文字認識装
置に適用した場合の一例を示すものである。
Third Embodiment FIG. 12 shows an example in which the pattern detection signal 113 output from the image input device 100 in the second embodiment is applied to an optical character recognition device.

同図に示されるように、本実施例3の光学文字認識装
置200は、所定のシステムバス215に、前述の画像入力装
置100と、文字認識ユニット216と、全体の制御を行うマ
イクロプロセッサ217とを接続して構成されている。
As shown in the figure, the optical character recognition device 200 of the third embodiment includes, on a predetermined system bus 215, the above-described image input device 100, a character recognition unit 216, and a microprocessor 217 for performing overall control. Are connected.

画像入力装置100に入力される帳票101にはドロップア
ウトカラーでない文字枠が太く印刷されており、画像入
力装置100は文字枠をドロップアウトした文字2値化信
号112と文字枠の検出を行ったパターン検出信号113をシ
ステムバス215に出力する。
A character frame that is not a dropout color is printed thick on the form 101 input to the image input device 100, and the image input device 100 has detected the character binarization signal 112 obtained by dropping out the character frame and the character frame. The pattern detection signal 113 is output to the system bus 215.

そして、マイクロプロセッサ217は文字枠の検出に際
して出力されるパターン検出信号113より、当該文字枠
の内部に記入されている目的の文字の切出し位置を知
り、文字認識ユニット制御信号218により、文字の切出
しを文字認識ユニット216に指示する。これを契機とし
て、文字認識ユニット216は文字2値化信号112を取り込
み、文字の切出し検出を行う。
Then, the microprocessor 217 knows the cutout position of the target character written in the character frame from the pattern detection signal 113 output upon detection of the character frame, and cuts out the character by the character recognition unit control signal 218. To the character recognition unit 216. In response to this, the character recognition unit 216 takes in the character binarization signal 112 and performs character cutout detection.

この場合にも、帳票101の特定の読み取り領域におい
て、データの書き込み位置を指定すべく、実際の書き込
み作業を行う作業者には見え、読み取り時にはドロップ
アウトさせる目的で、従来では読み取り光学系の照明と
同じ色のドロップアウトカラーにより書き込み枠などを
印刷していたものが不要となり、実際の書き込み文字と
同じ通常の黒色で太く書き込み枠を印刷するだけでよ
く、帳票101の仕様が簡略化される。
In this case as well, in a specific reading area of the form 101, the operator of the actual writing operation is visible to specify the writing position of the data, and for the purpose of dropping out at the time of reading, conventionally, the illumination of the reading optical system is used. It is not necessary to print the writing frame etc. with the same color dropout color as it is, just print the thick black writing frame with the same normal black as the actual writing character, and the specifications of the form 101 will be simplified .

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

たとえば、背景検出回路,領域判定回路,領域切替回
路,文字2値化信号加工回路などの回路構成および各種
演算のアルゴリズムなどは、前記実施例に例示したもの
になんら限定されない。
For example, circuit configurations such as a background detection circuit, an area determination circuit, an area switching circuit, a character binarization signal processing circuit, and algorithms for various operations are not limited to those exemplified in the above-described embodiment.

〔発明の効果〕〔The invention's effect〕

本願において開示される発明のうち、代表的なものに
よって得られる効果を簡単に説明すれば、以下のとおり
である。
The effects obtained by typical aspects of the invention disclosed in the present application will be briefly described as follows.

すなわち、本発明になる文字・写真領域判定装置によ
れば、2次元情報演算によって背景を検出し、2値の背
景情報として出力する背景検出手段と、前記背景情報よ
り2次元情報演算によって文字・写真領域を判定する領
域判定手段と、この領域判定手段から出力される領域判
定結果により、外部から到来する、一定の閾値で2値化
された文字2値化信号および個々の画素単位に閾値を変
化させることによって2値化された擬似中間調信号のい
ずれかを選択して出力する領域切替手段とからなるの
で、背景検出手段を、文字2値化信号を発生する文字2
値化回路より高い閾値(濃い濃度)で、濃い黒を検出す
る第1の2値化回路と、文字2値化回路より低い閾値
(淡い濃度)と高い閾値の2つの閾値を切替えることが
できる背景検出のための第2の2値化回路と、第1の2
値化回路の出力をn×n画素を単位として黒密度判定を
行う第1の2次元情報演算手段と、第2の2値化回路の
出力をn×n画素を単位として白密度判定を行う2つの
関数を持つ第2の2次元情報演算手段とで構成し、第1
の2次元情報演算手段の結果によって第2の2値化回路
の閾値及び第2の2次元情報演算手段の2つの関数を切
替える動作を行わせることにより、たとえば、文字のな
い領域では背景の白レベル検出の閾値を背景の白レベル
の平均が検出できるレベルに下げておき、文字のある領
域では背景の白レベル検出閾値を背景の白レベルのピー
ク値以上の値に設定し、文字のない領域での背景検出の
出力に対しては、例えば2×2の白画素を判定単位とす
る2次元情報演算処理のように集中して背景がない場合
に背景なしと判定する処理を行い、文字のある領域では
1個の白画素を背景の有無の判定単位とする処理によっ
て、背景の白レベルが文字2値化の閾値近辺にある場合
や、密集文字の内部背景のように文字2値化の閾値より
高くなる場合でも、文字や線画に関しては背景を検出す
ることが可能となる。
That is, according to the character / photo region determination device of the present invention, the background is detected by two-dimensional information calculation and output as binary background information, and the character / photo region is calculated by two-dimensional information calculation from the background information. Based on an area determining means for determining a photograph area and an area determination result output from the area determining means, a character binarized signal, which is externally received and is binarized with a certain threshold, and a threshold for each pixel are set. And a region switching means for selecting and outputting any of the pseudo halftone signals binarized by changing the signal.
A first binarization circuit that detects dark black with a higher threshold (darker density) than the binarization circuit, and two thresholds of a lower threshold (lighter density) and a higher threshold than the character binarization circuit can be switched. A second binarizing circuit for background detection;
A first two-dimensional information calculation unit that performs black density determination on the output of the binarization circuit in units of n × n pixels, and performs a white density determination on the output of the second binarization circuit in units of n × n pixels A second two-dimensional information calculation means having two functions,
By performing the operation of switching between the threshold of the second binarization circuit and the two functions of the second two-dimensional information calculating means according to the result of the two-dimensional information calculating means, for example, in a region without characters, a white background Reduce the level detection threshold to a level at which the average of the background white level can be detected, and set the background white level detection threshold to a value greater than or equal to the peak value of the background white level in areas with characters, In the case of the background detection output in step (2), for example, a process of determining that there is no background when there is no concentrated background, such as a two-dimensional information calculation process using 2 × 2 white pixels as a determination unit, is performed. In a certain area, one white pixel is used as a unit for determining the presence or absence of a background, so that the white level of the background is close to the threshold value of the character binarization, or the character binarization such as the internal background of a dense character is performed. Even if it ’s higher than the threshold It is possible to detect the background with respect to a character or line drawing.

また、上記した本発明の文字・写真領域判定装置によ
れば、たとえば、領域切替手段に入力される文字2値化
信号の経路に、当該文字2値化信号をi×i画素の2次
元情報演算を行うことによって黒画像の内部・外部・周
辺部の位置判定をして3値出力する第3の2次元情報演
算手段と、擬似中間調信号と文字2値化信号を画素単位
に切替える第1の信号切替手段と、第1〜第3の2次元
情報演算手段の結果によって画素単位に文字領域か写真
領域かを判定し、当該画素単位の領域判定結果に応じて
第1の信号切替手段を制御する画素レベル領域判定手段
とからなる文字2値化信号加工手段を介設し、文字写真
領域の判定を画素単位とブロック単位の2回に分けて行
うことにより、文字・写真領域のブロック判定の代替手
段あるいは補強手段として輪郭強調処理を行う場合の問
題点である写真の黒周辺のエッジや文字内部の擬似中間
信号化の誤判定を低減することができる。
According to the character / photo region determination device of the present invention described above, for example, the character binarized signal is input to the area switching means in the path of the i × i pixel two-dimensional information. A third two-dimensional information calculating means for determining the positions of the inner, outer and peripheral portions of the black image by performing the calculation and outputting the three-valued information; and a third means for switching the pseudo halftone signal and the character binary signal in pixel units. A first signal switching unit and a first to third two-dimensional information calculation unit, which determine whether a character region or a photograph region is a pixel unit, and a first signal switching unit according to the pixel unit region determination result. A character binarization signal processing means comprising pixel level area determination means for controlling the character / photograph area is provided, and the determination of the character / photograph area is performed twice for each pixel and for each block. Alternative or reinforcing means of judgment It is possible to reduce erroneous determination of the pseudo half signaling is black around the photo edges and character inside of a problem when performing edge enhancement processing to.

また、上記した本発明の文字・写真領域判定装置によ
れば、前記領域判定手段を、n×n画素単位に出力され
た背景情報を1つのブロック単位として、m×mのブロ
ック平面毎に、異なる白ブロックの個数を閾値として判
定動作を行う2つの関数を持つ第4の2次元情報演算手
段と、この第4の2次元情報演算手段の前記2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS回の異
なる2次元情報演算を2通りに行うことが可能な複数の
演算関数を備えた第5の2次元情報演算手段と、この第
5の2次元情報演算手段のS回後の最終判定結果である
領域判定結果と前記第4の2次元情報演算手段の2つの
閾値判定結果とから大局的に文字・写真領域を判定する
大局的領域判定手段とで構成し、当該大局的領域判定手
段の判定結果によって前記第2の切替手段及び第5の2
次元情報演算手段の前記複数の演算関数の切替えを行う
ことで、文字・写真領域判定を正確に行うことが可能と
なる。
Further, according to the character / photo region determination device of the present invention described above, the region determination unit performs background information output in units of n × n pixels as one block unit, for each m × m block plane, A fourth two-dimensional information calculation unit having two functions for performing a determination operation using the number of different white blocks as a threshold, and a fourth two-dimensional information calculation unit for selectively outputting one of the two functions of the fourth two-dimensional information calculation unit A second switching means and a plurality of calculation functions capable of performing S different two-dimensional information calculations in two ways on an m × m block plane by using the output of the second switching means. A character information based on the dimension information calculation means, the area determination result which is the final determination result after S times of the fifth two-dimensional information calculation means, and the two threshold value determination results of the fourth two-dimensional information calculation means. A global area determining means for determining a photograph area; Configured, 2 of the second switching means and the fifth by the determination result of the global area determination means
By switching between the plurality of calculation functions of the dimension information calculation means, it is possible to accurately determine the character / photo region.

また、第5の2次元情報演算手段は、m×mのブロッ
ク平面でS回の異なる2次元情報演算をm画素×mライ
ンのライン単位に分割処理することによって、1個のマ
トリックス演算回路で行うことで、文字・写真領域のブ
ロック化判定処理方法の1つである2次元情報演算処理
方法を比較的簡単な回路構成により実現することができ
る。
Further, the fifth two-dimensional information calculation means divides the S-number of different two-dimensional information calculations into m-pixel × m-line units on an m × m block plane by one matrix calculation circuit. By doing so, a two-dimensional information calculation processing method, which is one of the character / photo region block determination processing methods, can be realized with a relatively simple circuit configuration.

また、本発明の画像入力装置によれば、 帳票形状を検出するために、黒色あるいは灰色の背景
板を使用する画像入力装置において、 目的の帳票から画像データを一次元的に読み取るイメ
ージセンサと、 イメージセンサによって読み取られた画像信号をディ
ジタル化するAD変換器と、 このディジタル化された帳票の画像信号に対して対数
変換処理およびシェーディング処理などを施して正規化
信号を得る正規化回路と、 正規化信号を2値化して文字2値化信号として出力す
る2値化回路と、 特定の識別パターン信号を発生するパターン発生器
と、 正規化信号が入力され、文字2値化信号を発生する文
字2値化回路より高い閾値(濃い濃度)で、濃い黒を検
出する第1の2値化回路と、文字2値化回路より低い閾
値(淡い濃度)と高い閾値の2つの閾値を切替えること
ができる背景検出のための第2の2値化回路と、第1の
2値化回路の出力をn×n画素を単位として黒密度判定
を行う第1の2次元情報演算手段と、第2の2値化回路
の出力をn×n画素を単位として白密度判定を行う2つ
の関数を持ち、背景の白を検出して白検出信号として出
力する第2の2次元情報演算手段とからなり、第1の2
次元情報演算手段の結果によって第2の2値化回路の閾
値および第2の2次元情報演算手段の2つの関数を切替
える動作を行う背景検出回路と、 白検出信号からなる背景検出信号を入力とし、nおよ
びmを任意の正の整数とする時、n×n画素単位に出力
された背景情報を1つのブロック単位として、m×mの
ブロック平面毎に、異なる白ブロックの個数を閾値とし
て判定動作を行う2つの関数を持つ第4の2次元情報演
算手段と、この第4の2次元情報演算手段の2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS(Sは
正の整数)回の異なる2次元情報演算を2通りに行うこ
とが可能な複数の演算関数を備えた第5の2次元情報演
算手段と、この第5の2次元情報演算手段のS回後の最
終判定結果である領域判定結果と第4の2次元情報演算
手段の2つの閾値判定結果とから得られる文字・写真領
域判定結果を順次記憶し、現在のm×mのブロック平面
における文字・写真領域判定結果と、現在のm×mのブ
ロック平面の周囲の領域から得られて記憶されている文
字・写真領域判定結果とを用いて、m×mのブロック平
面よりも広い背景から大局的に文字・写真領域を判定す
る大局的領域判定手段とからなり、当該大局的領域判定
手段の判定結果によって第2の切替手段および第5の2
次元情報演算手段の複数の演算関数の切替えを行うとと
もに、領域判定結果を領域切替信号として外部に出力す
る領域判定回路と、 領域切替信号に基づいて、文字2値化信号および識別
パターン信号のいずれかを選択して出力する領域切替回
路と、 領域切替回路から到来する文字2値化信号および識別
パターン信号を弁別して、文字2値化信号およびパター
ン検出信号として個別に出力するパターン検出分離回路
と、 を備え、識別パターン信号により、黒背景を白背景に置
き替えるようにしたので、画像入力以降の信号処理を簡
略化することができる。
Further, according to the image input device of the present invention, in an image input device that uses a black or gray background plate to detect a form, an image sensor that reads one-dimensional image data from a target form, An AD converter that digitizes the image signal read by the image sensor, a normalization circuit that performs logarithmic conversion processing and shading processing on the digitized image signal of the form to obtain a normalized signal, Binarization circuit that binarizes the digitized signal and outputs it as a character binarized signal, a pattern generator that generates a specific identification pattern signal, and a character that receives a normalized signal and generates a character binarized signal A first binarization circuit that detects dark black with a higher threshold (darker density) than the binarization circuit, and a lower threshold (lighter density) and a higher threshold than the character binarization circuit A second binarization circuit for background detection capable of switching between two thresholds, and a first two-dimensional information calculation for determining the output of the first binarization circuit as a black density in units of n × n pixels Means, and two functions for performing white density determination on the output of the second binarization circuit in units of n × n pixels, and detecting the background white and outputting the same as a white detection signal. The first 2
A background detection circuit for performing an operation of switching between a threshold value of the second binarization circuit and two functions of the second two-dimensional information calculation means according to a result of the dimensional information calculation means, and a background detection signal composed of a white detection signal as an input , N and m are arbitrary positive integers, the background information output in n × n pixel units is determined as one block unit, and the number of different white blocks is determined as a threshold for each m × m block plane. A fourth two-dimensional information calculating means having two functions for performing an operation, a second switching means for selecting and outputting one output of the two functions of the fourth two-dimensional information calculating means, Fifth two-dimensional information operation having a plurality of operation functions capable of performing S (S is a positive integer) different two-dimensional information operations in two ways on an m × m block plane by the output of the switching means Means and the fifth two-dimensional information calculating means. The character / photo area determination results obtained from the area determination result as the final determination result after S times and the two threshold value determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m × m block plane is stored. The background wider than the m × m block plane is obtained by using the character / photo area determination result obtained in the above and the character / photo area determination result obtained and stored from the area around the current m × m block plane. And a global area determining means for globally determining a character / photo area, and a second switching means and a fifth second means based on the determination result of the global area determining means.
An area determining circuit for switching a plurality of arithmetic functions of the dimension information calculating means and outputting an area determination result to the outside as an area switching signal; and a character binarizing signal or an identification pattern signal based on the area switching signal. An area switching circuit for selecting and outputting a character, and a pattern detection / separation circuit for discriminating a character binarization signal and an identification pattern signal coming from the area switching circuit and individually outputting them as a character binarization signal and a pattern detection signal. Since a black background is replaced with a white background by the identification pattern signal, signal processing after image input can be simplified.

また、本発明になる光学文字認識装置は、 システムバスを介して相互に接続される文字認識ユニ
ット、画像入力装置および全体の制御を行うマイクロプ
ロセッサを含み、 画像入力装置は、 目的の帳票から画像データを一次元的に読み取るイメ
ージセンサと、 イメージセンサによって読み取られた画像信号をディ
ジタル化するAD変換器と、 このディジタル化された帳票の画像信号に対して対数
変換処理およびシェーディング処理などを施して正規化
信号を得る正規化回路と、 正規化信号を2値化して文字2値化信号として出力す
る2値化回路と、 特定の識別パターン信号を発生するパターン発生器
と、 正規化信号が入力され、文字2値化信号を発生する文
字2値化回路より高い閾値(濃い濃度)で、濃い黒を検
出する第1の2値化回路と、文字2値化回路より低い閾
値(淡い濃度)と高い閾値の2つの閾値を切替えること
ができる背景検出のための第2の2値化回路と、第1の
2値化回路の出力をn×n画素を単位として黒密度判定
を行う第1の2次元情報演算手段と、第2の2値化回路
の出力をn×n画素を単位として白密度判定を行う2つ
の関数を持ち、背景の白を検出して白検出信号として出
力する第2の2次元情報演算手段とからなり、第1の2
次元情報演算手段の結果によって第2の2値化回路の閾
値および第2の2次元情報演算手段の2つの関数を切替
える動作を行う背景検出回路と、 白検出信号からなる背景検出信号を入力とし、nおよ
びmを任意の正の整数とする時、n×n画素単位に出力
された背景情報を1つのブロック単位として、m×mの
ブロック平面毎に、異なる白ブロックの個数を閾値とし
て判定動作を行う2つの関数を持つ第4の2次元情報演
算手段と、この第4の2次元情報演算手段の2つの関数
の一方の出力を選択出力する第2の切替手段と、当該第
2の切替手段の出力をm×mのブロック平面でS(Sは
正の整数)回の異なる2次元情報演算を2通りに行うこ
とが可能な複数の演算関数を備えた第5の2次元情報演
算手段と、この第5の2次元情報演算手段のS回後の最
終判定結果である領域判定結果と第4の2次元情報演算
手段の2つの閾値判定結果とから得られる文字・写真領
域判定結果を順次記憶し、現在のm×mのブロック平面
における文字・写真領域判定結果と、現在のm×mのブ
ロック平面の周囲の領域から得られて記憶されている文
字・写真領域判定結果とを用いて、m×mのブロック平
面よりも広い背景から大局的に文字・写真領域を判定す
る大局的領域判定手段とからなり、当該大局的領域判定
手段の判定結果によって第2の切替手段および第5の2
次元情報演算手段の複数の演算関数の切替えを行うとと
もに、領域判定結果を領域切替信号として外部に出力す
る領域判定回路と、 領域切替信号に基づいて、文字2値化信号および識別
パターン信号のいずれかを選択して出力する領域切替回
路と、 領域切替回路から到来する文字2値化信号および識別
パターン信号を弁別して、文字2値化信号およびパター
ン検出信号として個別に出力するパターン検出分離回路
とを備え、 マイクロプロセッサは、帳票に太く印刷されたドロッ
プアウトカラーでない文字枠を検出した時に画素入力装
置から出力されるパターン検出信号に基づいて、当該文
字枠の内部に記入されている目的の文字の切出し位置を
知り、文字認識ユニット制御信号により、文字の切出し
を文字認識ユニットに指示し、文字認識ユニットは文字
認識ユニット制御信号の入力を契機として文字2値化信
号を取り込み、文字の切出し検出を行うことにより、太
く印刷されたドロップアウトカラーでない文字枠を選択
的に検出除去するようにしたので、たとえば帳票上に太
く印刷された黒の文字枠を写真領域と判定して選択的に
除去することができ、たとえば文字枠内の目的の文字の
読み取りに際して邪魔になる文字枠を除去する目的で、
当該文字枠を読み取り時の照明光と同じドロップアウト
カラーで印刷するなどの煩雑な準備が不要となり、入力
される帳票の仕様を簡略化することができる。
Further, the optical character recognition device according to the present invention includes a character recognition unit, an image input device, and a microprocessor for controlling the whole, which are interconnected via a system bus. An image sensor that reads data one-dimensionally, an AD converter that digitizes the image signal read by the image sensor, and a logarithmic conversion process and a shading process that are performed on the digitized form image signal A normalization circuit for obtaining a normalized signal; a binarization circuit for binarizing the normalized signal and outputting it as a character binary signal; a pattern generator for generating a specific identification pattern signal; A first binarization circuit that detects dark black with a higher threshold (darker density) than a character binarization circuit that generates a character binarization signal; A second binarization circuit for background detection that can switch between two thresholds, a lower threshold (lighter density) and a higher threshold, than the character binarization circuit, and the output of the first binarization circuit is nx It has a first two-dimensional information calculating means for performing black density determination in units of n pixels, and two functions for performing white density determination in units of n × n pixels by using the output of the second binarization circuit. A second two-dimensional information calculating means for detecting white and outputting it as a white detection signal;
A background detection circuit for performing an operation of switching between a threshold value of the second binarization circuit and two functions of the second two-dimensional information calculation means according to a result of the dimensional information calculation means, and a background detection signal composed of a white detection signal as an input , N and m are arbitrary positive integers, the background information output in n × n pixel units is determined as one block unit, and the number of different white blocks is determined as a threshold for each m × m block plane. A fourth two-dimensional information calculating means having two functions for performing an operation, a second switching means for selecting and outputting one output of the two functions of the fourth two-dimensional information calculating means, Fifth two-dimensional information operation having a plurality of operation functions capable of performing S (S is a positive integer) different two-dimensional information operations in two ways on an m × m block plane by the output of the switching means Means and the fifth two-dimensional information calculating means. The character / photo area determination results obtained from the area determination result as the final determination result after S times and the two threshold value determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m × m block plane is stored. The background wider than the m × m block plane is obtained by using the character / photo area determination result obtained in the above and the character / photo area determination result obtained and stored from the area around the current m × m block plane. And a global area determining means for globally determining a character / photo area, and a second switching means and a fifth second means based on the determination result of the global area determining means.
An area determining circuit for switching a plurality of arithmetic functions of the dimension information calculating means and outputting an area determination result to the outside as an area switching signal; and a character binarizing signal or an identification pattern signal based on the area switching signal. An area switching circuit for selecting and outputting a character, and a pattern detection / separation circuit for discriminating a character binarization signal and an identification pattern signal coming from the area switching circuit and individually outputting them as a character binarization signal and a pattern detection signal. The microprocessor, based on a pattern detection signal output from the pixel input device when detecting a character frame that is not a dropout color printed on a form thickly, based on a target character written in the character frame. The character recognition unit instructs the character recognition unit to cut out the character by the character recognition unit control signal, and recognizes the character. The unit takes in the character binarization signal in response to the input of the character recognition unit control signal, and detects and cuts out the character, thereby selectively detecting and removing a character frame that is not a thickly printed dropout color. For example, a black character frame printed thickly on a form can be determined as a photograph area and selectively removed, for example, for the purpose of removing a character frame obstructing reading of a target character in the character frame. ,
This eliminates the need for complicated preparations such as printing the character frame with the same dropout color as the illumination light used for reading, and can simplify the specifications of the form to be input.

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

第1図は本発明の一実施例である文字・写真領域判定装
置のブロック図、 第2図は画素単位の領域判定の説明図、 第3図は背景密度判定処理の説明図、 第4図は同じく背景密度判定処理の説明図、 第5図は2値判定処理の説明図、 第6図は背景検出回路における検出閾値の設定の一例を
示すグラフ、 第7図は画素単位の領域判定を行うセレクタ制御回路の
回路構成の一例を示すブロック図、 第8図は大局的領域判定を行うセレクタ制御回路の回路
構成の一例を示すブロック図、 第9図はマトリックス演算回路の構成の一例を示すブロ
ック図、 第10図は複数回の2次元情報演算を1つのマトリックス
演算回路で行わせる場合のマトリックス演算回路の構成
図、 第11図は画像入力装置の構成の一例を示すブロック図、 第12図は光学文字認識装置の構成の一例を示すブロック
図、 第13図は本発明の一実施例である文字・写真領域判定装
置における2次元情報演算の演算式および関数の機能の
一例を示す図、 第14図は同じく、本発明の一実施例である文字・写真領
域判定装置における2次元情報演算の演算式および関数
の機能の一例を示す図である。 1……背景検出回路(背景検出手段)、51……2値化回
路(第1の2値化回路)、52……2値化回路(第2の2
値化回路)、61……マトリックス演算回路(第1の2次
元情報演算手段)、62……マトリックス演算回路(第2
の2次元情報演算手段)、2……文字2値化信号加工回
路(文字2値化信号加工手段)、63……マトリックス演
算回路(第3の2次元情報演算手段)、71……セレクタ
制御回路、71a……ANDゲート、71b……ORゲート、71c…
…16進カウンタ、71d,71e……ANDゲート、71f……ORゲ
ート、81……セレクタ(第1の信号切替手段)、3……
領域判定回路(領域判定手段)、64……マトリックス演
算回路(第4の2次元情報演算手段)、651〜653……マ
トリックス演算回路、65……マトリックス演算回路(第
5の2次元情報演算手段)、65a……タイミング制御回
路、65b,65c……論理ゲート、65d,65e……ラインメモ
リ、72……セレクタ制御回路、82……セレクタ(第2の
信号切替手段)、4……領域切替回路(領域切替手
段)、83……セレクタ、91,92……ラインメモリ、10…
…スライス信号、11……ビデオ正規化信号、12……文字
2値化信号、12a……加工信号、13……擬似中間調信
号、14……黒検出信号、15……白検出信号、16……領域
切替信号、17……適応形2値化信号、100……画像入力
装置、101……帳票、102……黒背景板、103……イメー
ジセンサ、104……AD変換器、105……正規化回路、106
……2値化回路、107……パターン発生器、111……パタ
ーン検出分離回路、112……文字2値化信号、113……パ
ターン検出信号、119……正規化信号、120……識別パタ
ーン信号、121……背景検出信号、122……領域切替信
号、123……文字2値化信号、200……光学文字認識装
置、215……システムバス、216……文字認識ユニット、
217……マイクロプロセッサ、218……文字認識ユニット
制御信号。
FIG. 1 is a block diagram of a character / photo region determination apparatus according to one embodiment of the present invention, FIG. 2 is an explanatory diagram of pixel-based region determination, FIG. 3 is an explanatory diagram of background density determination processing, FIG. FIG. 5 is an explanatory diagram of the background density determination process, FIG. 5 is an explanatory diagram of the binary determination process, FIG. 6 is a graph showing an example of the setting of the detection threshold in the background detection circuit, and FIG. FIG. 8 is a block diagram illustrating an example of a circuit configuration of a selector control circuit that performs a global area determination. FIG. 8 is a block diagram illustrating an example of a circuit configuration of a selector control circuit that performs a global area determination. FIG. 10 is a block diagram showing a configuration of a matrix operation circuit in which a plurality of two-dimensional information operations are performed by one matrix operation circuit. FIG. 11 is a block diagram showing an example of the configuration of an image input device. The figure shows optical character recognition FIG. 13 is a block diagram showing an example of the configuration of the device, FIG. 13 is a diagram showing an example of the functions of the arithmetic expressions and functions of the two-dimensional information operation in the character / photograph area determination device according to one embodiment of the present invention, and FIG. FIG. 5 is a diagram illustrating an example of the functions of the operation formulas and functions of the two-dimensional information calculation in the character / photograph area determination device according to the embodiment of the present invention. 1... Background detection circuit (background detection means), 51... Binarization circuit (first binarization circuit), 52... Binarization circuit (second binarization circuit)
... Matrix operation circuit (first two-dimensional information operation means), 62... Matrix operation circuit (second
, 2... Character binarization signal processing circuit (character binarization signal processing means), 63... Matrix operation circuit (third 2D information calculation means), 71. Circuit, 71a …… AND gate, 71b …… OR gate, 71c…
... hexadecimal counter, 71d, 71e ... AND gate, 71f ... OR gate, 81 ... selector (first signal switching means), 3 ...
Area judgment circuit (area judgment means), 64... Matrix operation circuit (fourth two-dimensional information operation means), 651 to 653... Matrix operation circuit, 65... Matrix operation circuit (fifth two-dimensional information operation means) ), 65a: timing control circuit, 65b, 65c: logic gate, 65d, 65e: line memory, 72: selector control circuit, 82: selector (second signal switching means), 4: area switching Circuit (area switching means), 83 ... selector, 91,92 ... line memory, 10 ...
... Slice signal, 11 ... Video normalization signal, 12 ... Character binarization signal, 12a ... Processing signal, 13 ... Pseudo halftone signal, 14 ... Black detection signal, 15 ... White detection signal, 16 ………………………………………………………………………………………………………………………………………… 100 100 100 100, 101 100 100 100 100 100 100 100 103 103 103 103. ... Normalization circuit, 106
... Binarization circuit, 107 pattern generator, 111 pattern detection / separation circuit, 112 character binarization signal, 113 pattern detection signal, 119 normalized signal, 120 identification pattern Signal, 121... Background detection signal, 122... Area switching signal, 123... Character binary signal, 200... Optical character recognition device, 215... System bus, 216.
217: microprocessor, 218: character recognition unit control signal.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 江尻 靖富 神奈川県小田原市国府津2880番地 株式 会社日立製作所小田原工場内 (72)発明者 増崎 秀文 神奈川県小田原市国府津2880番地 株式 会社日立製作所小田原工場内 (56)参考文献 特開 昭58−3374(JP,A) 特開 昭62−145968(JP,A) ──────────────────────────────────────────────────の Continuing on the front page (72) Inventor Yasutomi Ejiri 2880 Kozu, Kozuhara, Odawara City, Kanagawa Prefecture Inside the Odawara Plant, Hitachi, Ltd. (56) References JP-A-58-3374 (JP, A) JP-A-62-145968 (JP, A)

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2次元情報演算によって背景を検出し、2
値の背景情報として出力する背景検出手段と、前記背景
情報より2次元情報演算によって文字・写真領域を判定
する領域判定手段と、この領域判定手段から出力される
領域判定結果により、外部から到来する、一定の閾値で
2値化された文字2値化信号および個々の画素単位に閾
値を変化させることによって2値化された擬似中間調信
号のいずれかを選択して出力する領域切替手段とからな
り、 前記背景検出手段は、前記文字2値化信号を発生する文
字2値化回路より高い閾値(濃い濃度)で、濃い黒を検
出する第1の2値化回路と、前記文字2値化回路より低
い閾値(淡い濃度)と高い閾値の2つの閾値を切替える
ことができる背景検出のための第2の2値化回路と、前
記第1の2値化回路の出力をn×n画素を単位として黒
密度判定を行う第1の2次元情報演算手段と、前記第2
の2値化回路の出力をn×n画素を単位として白密度判
定を行う2つの関数を持ち、背景の白を検出して白検出
信号として出力する第2の2次元情報演算手段とからな
り、前記第1の2次元情報演算手段の結果によって前記
第2の2値化回路の閾値および前記第2の2次元情報演
算手段の前記2つの関数を切替える動作を行い、 前記領域判定手段は、nおよびmを任意の正の整数とす
る時、n×n画素単位に出力された前記背景情報を1つ
のブロック単位として、m×mのブロック平面毎に、異
なる白ブロックの個数を閾値として判定動作を行う2つ
の関数を持つ第4の2次元情報演算手段と、この第4の
2次元情報演算手段の前記2つの関数の一方の出力を選
択出力する第2の切替手段と、当該第2の切替手段の出
力をm×mのブロック平面でS(Sは正の整数)回の異
なる2次元情報演算を2通りに行うことが可能な複数の
演算関数を備えた第5の2次元情報演算手段と、この第
5の2次元情報演算手段のS回後の最終判定結果である
領域判定結果と前記第4の2次元情報演算手段の2つの
閾値判定結果とから得られる文字・写真領域判定結果を
順次記憶し、現在の前記m×mのブロック平面における
前記文字・写真領域判定結果と、現在の前記m×mのブ
ロック平面の周囲の領域から得られて記憶されている前
記文字・写真領域判定結果とを用いて、前記m×mのブ
ロック平面よりも広い背景から大局的に文字・写真領域
を判定する大局的領域判定手段とからなり、当該大局的
領域判定手段の判定結果によって前記第2の切替手段お
よび第5の2次元情報演算手段の前記複数の演算関数の
切替えを行うようにしたことを特徴とする文字・写真領
域判定装置。
A background is detected by two-dimensional information calculation, and a background is detected.
Background detecting means for outputting as value background information; area determining means for determining a character / photograph area by two-dimensional information calculation from the background information; Area switching means for selecting and outputting one of a character binary signal binarized with a constant threshold and a pseudo halftone signal binarized by changing the threshold for each pixel. Wherein the background detection means comprises: a first binarization circuit for detecting dark black with a higher threshold (darker density) than a character binarization circuit for generating the character binarization signal; A second binarization circuit for background detection capable of switching between two thresholds, a lower threshold (lighter density) and a higher threshold, and an output of the first binarization circuit of n × n pixels. Perform black density judgment as a unit A first two-dimensional information computing means, the second
And a second two-dimensional information calculating means which has two functions for performing white density determination on the output of the binarizing circuit in units of n × n pixels, and detects a white background and outputs it as a white detection signal. Performing an operation of switching a threshold value of the second binarization circuit and the two functions of the second two-dimensional information calculating means according to a result of the first two-dimensional information calculating means; When n and m are arbitrary positive integers, the background information output in units of n × n pixels is determined as one block unit, and the number of different white blocks is determined as a threshold value for each m × m block plane. A fourth two-dimensional information calculating means having two functions for performing operations, a second switching means for selectively outputting one of the two functions of the fourth two-dimensional information calculating means, The output of the switching means is an m × m block plane Fifth two-dimensional information calculation means including a plurality of calculation functions capable of performing S (S is a positive integer) different two-dimensional information calculations in two ways, and a fifth two-dimensional information calculation means The character / photo region determination results obtained from the region determination result as the final determination result after S times and the two threshold value determination results of the fourth two-dimensional information calculation means are sequentially stored, and the current m × m Using the character / photo area determination result in the block plane of the above and the text / photo area determination result obtained from the area around the current m × m block plane and stored, the m × m A global area determining means for globally determining a character / photo area from a background wider than the block plane of the second switching means and the fifth two-dimensional information based on the determination result of the global area determining means. The plurality of functions of the arithmetic means Character-photograph region determining apparatus being characterized in that to perform the switching function.
【請求項2】前記領域切替手段に入力される前記文字2
値化信号の経路には、当該文字2値化信号をi×i画素
の2次元情報演算を行い、i×i画素の全てが白の場合
を黒画像の外部、i×i画素の全てが黒の場合を黒画像
の内部、i×i画素の中心画素が白でその周囲の黒が1
個でもある場合またはi×i画素の中心画素が黒でその
周囲の白が1個でもある場合を黒画像の周辺部、と判定
することによって黒画像の内部・外部・周辺部の位置判
定をして3値出力する第3の2次元情報演算手段と、前
記擬似中間調信号と文字2値化信号を画素単位に切替え
る第1の信号切替手段と、前記第1、第2および第3の
2次元情報演算手段の結果によって画素単位に文字領域
か写真領域かを判定し、当該画素単位の領域判定結果に
応じて前記第1の信号切替手段を制御する画素レベル領
域判定手段とからなる文字2値化信号加工手段を介設し
たことを特徴とする請求項1記載の文字・写真領域判定
装置。
2. The character 2 input to the area switching means.
In the path of the binarized signal, the character binarized signal is subjected to two-dimensional information operation of i × i pixels, and the case where all of the i × i pixels are white is outside the black image, and all of the i × i pixels are In the case of black, the center pixel of i × i pixels is white and the surrounding black is 1
And the center pixel of i × i pixels is black and there is at least one surrounding white pixel, it is determined to be the peripheral part of the black image, thereby determining the position of the inner, outer and peripheral parts of the black image. A third two-dimensional information calculating unit that outputs a ternary signal, a first signal switching unit that switches the pseudo halftone signal and the character binary signal on a pixel-by-pixel basis, the first, second, and third signals. Characters or pixel areas are determined on the basis of the result of the two-dimensional information calculation means in a pixel unit, and the character is composed of a pixel level area determination means for controlling the first signal switching means in accordance with the area determination result on a pixel basis. 2. The character / photograph area judging device according to claim 1, wherein a binarized signal processing means is provided.
【請求項3】前記第5の2次元情報演算手段は、m×m
のブロック平面でS回の異なる2次元情報演算をm画素
×mラインのライン単位に分割処理することによって、
1個のマトリックス演算回路で行うようにしたことを特
徴とする請求項1記載の文字・写真領域判定装置。
3. The method according to claim 2, wherein the fifth two-dimensional information calculation means is m × m
By dividing the S different two-dimensional information operations into m pixel × m line units on the block plane of
2. The character / photograph area determination device according to claim 1, wherein the determination is performed by one matrix operation circuit.
【請求項4】帳票形状を検出するために、黒色あるいは
灰色の背景板を使用する画像入力装置であって、 目的の帳票から画像データを一次元的に読み取るイメー
ジセンサと、 前記イメージセンサによって読み取られた画像信号をデ
ィジタル化するAD変換器と、 このディジタル化された前記帳票の前記画像信号に対し
て対数変換処理およびシェーディング処理などを施して
正規化信号を得る正規化回路と、 前記正規化信号を2値化して文字2値化信号として出力
する2値化回路と、 特定の識別パターン信号を発生するパターン発生器と、 前記正規化信号が入力され、前記文字2値化信号を発生
する文字2値化回路より高い閾値(濃い濃度)で、濃い
黒を検出する第1の2値化回路と、前記文字2値化回路
より低い閾値(淡い濃度)と高い閾値の2つの閾値を切
替えることができる背景検出のための第2の2値化回路
と、前記第1の2値化回路の出力をn×n画素を単位と
して黒密度判定を行う第1の2次元情報演算手段と、前
記第2の2値化回路の出力をn×n画素を単位として白
密度判定を行う2つの関数を持ち、背景の白を検出して
白検出信号として出力する第2の2次元情報演算手段と
からなり、前記第1の2次元情報演算手段の結果によっ
て前記第2の2値化回路の閾値および前記第2の2次元
情報演算手段の前記2つの関数を切替える動作を行う背
景検出回路と、 前記白検出信号からなる背景検出信号を入力とし、nお
よびmを任意の正の整数とする時、n×n画素単位に出
力された前記背景情報を1つのブロック単位として、m
×mのブロック平面毎に、異なる白ブロックの個数を閾
値として判定動作を行う2つの関数を持つ第4の2次元
情報演算手段と、この第4の2次元情報演算手段の前記
2つの関数の一方の出力を選択出力する第2の切替手段
と、当該第2の切替手段の出力をm×mのブロック平面
でS(Sは正の整数)回の異なる2次元情報演算を2通
りに行うことが可能な複数の演算関数を備えた第5の2
次元情報演算手段と、この第5の2次元情報演算手段の
S回後の最終判定結果である領域判定結果と前記第4の
2次元情報演算手段の2つの閾値判定結果とから得られ
る文字・写真領域判定結果を順次記憶し、現在の前記m
×mのブロック平面における前記文字・写真領域判定結
果と、現在の前記m×mのブロック平面の周囲の領域か
ら得られて記憶されている前記文字・写真領域判定結果
とを用いて、前記m×mのブロック平面よりも広い背景
から大局的に文字・写真領域を判定する大局的領域判定
手段とからなり、当該大局的領域判定手段の判定結果に
よって前記第2の切替手段および第5の2次元情報演算
手段の前記複数の演算関数の切替えを行うとともに、前
記領域判定結果を領域切替信号として外部に出力する領
域判定回路と、 前記領域切替信号に基づいて、前記文字2値化信号およ
び前記識別パターン信号のいずれかを選択して出力する
領域切替回路と、 前記領域切替回路から到来する文字2値化信号および識
別パターン信号を弁別して、文字2値化信号およびパタ
ーン検出信号として個別に出力するパターン検出分離回
路と、 を備え、前記識別パターン信号により、黒背景を白背景
に置き替えるようにしたことを特徴とする画像入力装
置。
4. An image input device that uses a black or gray background plate to detect a form of a form, comprising: an image sensor that reads image data one-dimensionally from a target form; An AD converter that digitizes the digitized image signal; a normalization circuit that performs a logarithmic conversion process, a shading process, and the like on the digitized image signal of the form to obtain a normalized signal; A binarization circuit that binarizes the signal and outputs it as a character binarization signal; a pattern generator that generates a specific identification pattern signal; and the normalization signal is input to generate the character binarization signal A first binarization circuit for detecting dark black with a higher threshold (darker density) than the character binarization circuit, and a lower threshold (lighter density) and a higher threshold than the character binarization circuit A second binarization circuit for background detection capable of switching between the two threshold values, and a first 2 which performs black density determination on the output of the first binarization circuit in units of n × n pixels. A second information processing means for calculating a white density of the output of the second binarization circuit in units of n × n pixels, and detecting a white background and outputting the same as a white detection signal; An operation of switching the threshold of the second binarization circuit and the two functions of the second two-dimensional information calculating means according to the result of the first two-dimensional information calculating means. And a background detection signal comprising the white detection signal, and when n and m are arbitrary positive integers, the background information output in n × n pixel units is converted into one block unit. As m
A fourth two-dimensional information calculating means having two functions for performing a determination operation using the number of different white blocks as a threshold value for each of the × m block planes, and a function of the four functions of the fourth two-dimensional information calculating means. A second switching means for selecting and outputting one of the outputs, and performing an S (S is a positive integer) number of different two-dimensional information calculations on the output of the second switching means in two ways on an m × m block plane. Fifth with a plurality of arithmetic functions capable of
A dimension information calculation unit, a character obtained from an area determination result as a final determination result after S times of the fifth two-dimensional information calculation unit, and two threshold value determination results of the fourth two-dimensional information calculation unit. The photograph area determination results are sequentially stored, and the current m
Using the character / photo area determination result on the × m block plane and the character / photo area determination result obtained from the area around the current m × m block plane and stored, A global area determining means for globally determining a character / photograph area from a background wider than a block plane of × m, and the second switching means and the fifth and second elements are determined by the determination result of the global area determining means. An area determination circuit that switches the plurality of arithmetic functions of the dimension information calculation means and outputs the area determination result to the outside as an area switch signal; and based on the area switch signal, the character binary signal and the An area switching circuit for selecting and outputting any one of the identification pattern signals; and a character binarization signal discriminating a character binary signal and an identification pattern signal coming from the area switching circuit. No. and pattern and a pattern detection separator circuit for outputting separately as a detection signal, by the identification pattern signal, an image input device being characterized in that so as to replace them with a black background to white background.
【請求項5】システムバスを介して相互に接続される文
字認識ユニット、画像入力装置および全体の制御を行う
マイクロプロセッサを含み、 前記画像入力装置は、 目的の帳票から画像データを一次元的に読み取るイメー
ジセンサと、 前記イメージセンサによって読み取られた画像信号をデ
ィジタル化するAD変換器と、 このディジタル化された前記帳票の前記画像信号に対し
て対数変換処理およびシェーディング処理などを施して
正規化信号を得る正規化回路と、 前記正規化信号を2値化して文字2値化信号として出力
する2値化回路と、 特定の識別パターン信号を発生するパターン発生器と、 前記正規化信号が入力され、前記文字2値化信号を発生
する文字2値化回路より高い閾値(濃い濃度)で、濃い
黒を検出する第1の2値化回路と、前記文字2値化回路
より低い閾値(淡い濃度)と高い閾値の2つの閾値を切
替えることができる背景検出のための第2の2値化回路
と、前記第1の2値化回路の出力をn×n画素を単位と
して黒密度判定を行う第1の2次元情報演算手段と、前
記第2の2値化回路の出力をn×n画素を単位として白
密度判定を行う2つの関数を持ち、背景の白を検出して
白検出信号として出力する第2の2次元情報演算手段と
からなり、前記第1の2次元情報演算手段の結果によっ
て前記第2の2値化回路の閾値および前記第2の2次元
情報演算手段の前記2つの関数を切替える動作を行う背
景検出回路と、 前記白検出信号からなる背景検出信号を入力とし、nお
よびmを任意の正の整数とする時、n×n画素単位に出
力された前記背景情報を1つのブロック単位として、m
×mのブロック平面毎に、異なる白ブロックの個数を閾
値として判定動作を行う2つの関数を持つ第4の2次元
情報演算手段と、この第4の2次元情報演算手段の前記
2つの関数の一方の出力を選択出力する第2の切替手段
と、当該第2の切替手段の出力をm×mのブロック平面
でS(Sは正の整数)回の異なる2次元情報演算を2通
りに行うことが可能な複数の演算関数を備えた第5の2
次元情報演算手段と、この第5の2次元情報演算手段の
S回後の最終判定結果である領域判定結果と前記第4の
2次元情報演算手段の2つの閾値判定結果とから得られ
る文字・写真領域判定結果を順次記憶し、現在の前記m
×mのブロック平面における前記文字・写真領域判定結
果と、現在の前記m×mのブロック平面の周囲の領域か
ら得られて記憶されている前記文字・写真領域判定結果
とを用いて、前記m×mのブロック平面よりも広い背景
から大局的に文字・写真領域を判定する大局的領域判定
手段とからなり、当該大局的領域判定手段の判定結果に
よって前記第2の切替手段および第5の2次元情報演算
手段の前記複数の演算関数の切替えを行うとともに、前
記領域判定結果を領域切替信号として外部に出力する領
域判定回路と、 前記領域切替信号に基づいて、前記文字2値化信号およ
び前記識別パターン信号のいずれかを選択して出力する
領域切替回路と、 前記領域切替回路から到来する文字2値化信号および識
別パターン信号を弁別して、文字2値化信号およびパタ
ーン検出信号として個別に出力するパターン検出分離回
路とを備え、 前記マイクロプロセッサは、前記帳票に太く印刷された
ドロップアウトカラーでない文字枠を検出した時に前記
画像入力装置から出力されるパターン検出信号に基づい
て、当該文字枠の内部に記入されている目的の文字の切
出し位置を知り、文字認識ユニット制御信号により、文
字の切出しを文字認識ユニットに指示し、前記文字認識
ユニットは前記文字認識ユニット制御信号の入力を契機
として前記文字2値化信号を取り込み、文字の切出し検
出を行うことにより、太く印刷されたドロップアウトカ
ラーでない前記文字枠を選択的に検出除去するようにし
たことを特徴とする光学文字認識装置。
5. A character recognition unit interconnected via a system bus, an image input device and a microprocessor for controlling the whole, the image input device one-dimensionally converts image data from a target form. An image sensor to be read; an AD converter for digitizing an image signal read by the image sensor; and a normalized signal obtained by performing logarithmic conversion processing, shading processing, and the like on the digitized image signal of the form. , A binarization circuit that binarizes the normalized signal and outputs it as a character binarized signal, a pattern generator that generates a specific identification pattern signal, and the normalized signal that is input. A first binarization circuit for detecting dark black with a higher threshold (darker density) than the character binarization circuit for generating the character binarization signal; A second binarization circuit for background detection capable of switching between two thresholds, a lower threshold (lighter density) and a higher threshold than the character binarization circuit, and an output of the first binarization circuit. It has a first two-dimensional information calculating means for performing black density determination in units of n × n pixels, and two functions for performing white density determination in units of n × n pixels for the output of the second binarization circuit. A second two-dimensional information calculating means for detecting white of the background and outputting it as a white detection signal, wherein the threshold value of the second binarization circuit and the threshold value of the second binarizing circuit are determined by the result of the first two-dimensional information calculating means. A background detection circuit that performs an operation of switching the two functions of the second two-dimensional information calculation means; and a background detection signal composed of the white detection signal is input, and when n and m are arbitrary positive integers, n × the background information output in units of n pixels in one block. As a unit, m
A fourth two-dimensional information calculating means having two functions for performing a determination operation using the number of different white blocks as a threshold value for each of the × m block planes, and a function of the four functions of the fourth two-dimensional information calculating means. A second switching means for selecting and outputting one of the outputs, and performing an S (S is a positive integer) number of different two-dimensional information calculations on the output of the second switching means in two ways on an m × m block plane. Fifth with a plurality of arithmetic functions capable of
A dimension information calculation unit, a character obtained from an area determination result as a final determination result after S times of the fifth two-dimensional information calculation unit, and two threshold value determination results of the fourth two-dimensional information calculation unit. The photograph area determination results are sequentially stored, and the current m
Using the character / photo area determination result on the × m block plane and the character / photo area determination result obtained from the area around the current m × m block plane and stored, A global area determining means for globally determining a character / photograph area from a background wider than a block plane of × m, and the second switching means and the fifth and second elements are determined by the determination result of the global area determining means. An area determination circuit that switches the plurality of arithmetic functions of the dimension information calculation means and outputs the area determination result to the outside as an area switch signal; and based on the area switch signal, the character binary signal and the An area switching circuit for selecting and outputting any one of the identification pattern signals; and a character binarization signal discriminating a character binary signal and an identification pattern signal coming from the area switching circuit. And a pattern detection / separation circuit that individually outputs the pattern detection signal and a pattern detection signal, wherein the microprocessor detects a pattern output from the image input device when detecting a character frame that is not a dropout color printed thick on the form. Based on the signal, the cutout position of the target character written in the character frame is known, and a character recognition unit control signal instructs the character recognition unit to cut out the character. The character binarization signal is fetched in response to the input of a unit control signal, and character cutout detection is performed, thereby selectively detecting and removing the character frame that is not a thickly printed dropout color. Optical character recognition device.
JP63307165A 1988-12-05 1988-12-05 Character / photo region determination device, image input device using the same, and optical character recognition device Expired - Lifetime JP2578959B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63307165A JP2578959B2 (en) 1988-12-05 1988-12-05 Character / photo region determination device, image input device using the same, and optical character recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63307165A JP2578959B2 (en) 1988-12-05 1988-12-05 Character / photo region determination device, image input device using the same, and optical character recognition device

Publications (2)

Publication Number Publication Date
JPH02153487A JPH02153487A (en) 1990-06-13
JP2578959B2 true JP2578959B2 (en) 1997-02-05

Family

ID=17965816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63307165A Expired - Lifetime JP2578959B2 (en) 1988-12-05 1988-12-05 Character / photo region determination device, image input device using the same, and optical character recognition device

Country Status (1)

Country Link
JP (1) JP2578959B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080554B (en) * 2019-12-20 2023-08-04 成都极米科技股份有限公司 Method and device for enhancing subtitle region in projection content and readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS573374A (en) * 1980-06-06 1982-01-08 Matsushita Electric Ind Co Ltd Preparation of positive electrode for solid electrolyte battery
JPH0683368B2 (en) * 1985-12-20 1994-10-19 富士ゼロックス株式会社 Character area identification method

Also Published As

Publication number Publication date
JPH02153487A (en) 1990-06-13

Similar Documents

Publication Publication Date Title
US5327262A (en) Automatic image segmentation with smoothing
US5293430A (en) Automatic image segmentation using local area maximum and minimum image signals
US5392365A (en) Apparatus for detecting text edges in digital image processing
US5850298A (en) Image processing device eliminating background noise
JPH05252388A (en) Noise removing device
JP3576810B2 (en) Image processing device
JP3088010B2 (en) Line drawing separation method and apparatus
US6775031B1 (en) Apparatus and method for processing images, image reading and image forming apparatuses equipped with the apparatus, and storage medium carrying programmed-data for processing images
US6198835B1 (en) Image input device and method for providing scanning artifact detection
JP2578959B2 (en) Character / photo region determination device, image input device using the same, and optical character recognition device
JPH0888770A (en) Image processing unit
JPH05136994A (en) Image area separation circuit
JP3792402B2 (en) Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method
JP3251119B2 (en) Image processing device
JPH05292312A (en) Dot area separator
JPH0644800B2 (en) Image processing device
JP2937603B2 (en) Binary discrimination method of image data in image data reading device
JP3146516B2 (en) Image processing device
JPH06296233A (en) Picture processor
JP3281400B2 (en) Image playback device
JP3690706B2 (en) Image processing device
JPH09247436A (en) Image area discrimination device and image processor
JPH08339443A (en) Image processor
JP2800199B2 (en) Image area identification device
JPH039487A (en) Processor and image character/picture deciding device