Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2844728B2 - Document reading device - Google Patents
[go: Go Back, main page]

JP2844728B2 - Document reading device - Google Patents

Document reading device

Info

Publication number
JP2844728B2
JP2844728B2 JP1270353A JP27035389A JP2844728B2 JP 2844728 B2 JP2844728 B2 JP 2844728B2 JP 1270353 A JP1270353 A JP 1270353A JP 27035389 A JP27035389 A JP 27035389A JP 2844728 B2 JP2844728 B2 JP 2844728B2
Authority
JP
Japan
Prior art keywords
pitch
character
block
frequency distribution
calculating
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 - Fee Related
Application number
JP1270353A
Other languages
Japanese (ja)
Other versions
JPH03132889A (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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP1270353A priority Critical patent/JP2844728B2/en
Publication of JPH03132889A publication Critical patent/JPH03132889A/en
Application granted granted Critical
Publication of JP2844728B2 publication Critical patent/JP2844728B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は光学的に文字を読み取り認識する文字認識装
置に係わり、特に印刷文書等から行単位で文字を読み取
る文書読取装置に関する。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character recognition device that optically reads and recognizes characters, and more particularly to a document reading device that reads characters from a printed document or the like line by line.

〔従来の技術〕[Conventional technology]

読み取った文字列画像から個々の文字の認識を行うに
際しては、これらの文字の切り出しを行う必要がある。
このため、従来の文書読取装置では文字の切り出しを行
う際、文字列画像の構成要素としての各ブロックの縦横
比やこれらのブロックの大きさあるいはブロック間の距
離等の情報を基にしてブロックの統合や分離を行うのが
一般的であった。また、高度な情報としての文字ピッチ
を動的計画法等の最適化方式を利用して推定し、この推
定されたピッチを基にして文字の切り出しを行うものも
存在した。なお、従来の技術としては、秋山照雄、内藤
誠一郎、増田功著の「非接触文字優先切出しによる印刷
物からの文字切出し法」、電子通信学会論文誌'84/10 V
ol.J67−D No.10,pp1194〜1201,辻善丈、浅井紘著の
「分散最小基準に基づく適応型文字分離方式」、電子通
信学会論文誌'85/8 Vol.J68−D No.8,pp1497〜1504等が
ある。
When recognizing individual characters from the read character string image, it is necessary to cut out these characters.
For this reason, in the conventional document reading apparatus, when cutting out a character, the block is determined based on information such as the aspect ratio of each block as a component of the character string image, the size of these blocks, or the distance between the blocks. It was common to integrate or separate. In addition, there has been a method in which a character pitch as advanced information is estimated using an optimization method such as a dynamic programming method, and characters are cut out based on the estimated pitch. In addition, as a conventional technique, "Text extraction method from printed matter by non-contact character priority extraction" by Akiyama Teruo, Naito Seiichiro, Masuda Isao, IEICE Transactions '84 / 10 V
ol.J67-D No.10, pp1194〜1201, `` Adaptive Character Separation Method Based on Minimum Variance Criterion, '' written by Yoshitake Tsuji and Hiroshi Asai, Transactions of the Institute of Electronics, Information and Communication Engineers '85 / 8 Vol.J68-D No.8 , pp 1497 to 1504.

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

以上説明した従来の文書読取装置のうち前者の装置、
すなわち各ブロックの縦横比やこれらのブロックの大き
さあるいはブロック間の距離等の情報を用いる装置で
は、文字ピッチを信頼性よく推定することが困難であっ
た。また、この装置では各文字の形状すなわち縦横比が
一定であるという前提が必要であり、多様な文書に対し
て安定した処理を行うことが困難であった。
Of the conventional document reading devices described above, the former device,
That is, it is difficult for a device using information such as the aspect ratio of each block, the size of these blocks, or the distance between blocks to estimate the character pitch with high reliability. Further, in this apparatus, it is necessary to assume that the shape of each character, that is, the aspect ratio is constant, and it has been difficult to perform stable processing on various documents.

これに対して後者の動的計画法等の最適化方式を利用
する装置では投影によって文字ピッチを推定するので前
者の装置に比べて安定した処理が可能になる。しかしな
がら、これら分散最小基準や動的計画法を用いるために
処理時間がかかるという問題があった。また、処理が複
雑化するのでハードウェアの規模が大きくなるといった
問題もあった。
On the other hand, in the latter device using the optimization method such as the dynamic programming method, the character pitch is estimated by projection, so that more stable processing can be performed as compared with the former device. However, there is a problem that it takes a long time to use these minimum variance criteria and dynamic programming. In addition, there is another problem that the scale of hardware is increased because the processing is complicated.

更に両装置では、読み取りの対象が“かすれ”等によ
って画像品質が低いと、文字ピッチの推定の精度が低下
し文字の切り出しが信頼性よく行われないという問題が
あった。
Further, in both devices, if the image quality is low due to "blurring" or the like, the accuracy of character pitch estimation is reduced, and characters are not reliably extracted.

そこで本発明の目的は、低品質の画像でも簡便な処理
によって安定したピッチを求めることのできる文書読取
装置を提供することにある。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a document reading apparatus capable of obtaining a stable pitch even with a low-quality image by simple processing.

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

本発明では、(i)文書画像より抽出した1行分の文
字列画像を入力して、各文字ブロック間のピッチとして
のブロックピッチを求めるブロックピッチ算出手段と、
(ii)ブロックピッチの頻度分布をすべてのピッチを対
象とするものと大きな文字間ギャップを持つもののみを
対象とするものについてそれぞれ算出するブロックピッ
チ頻度分布算出手段と、(iii)算出されたブロックピ
ッチの頻度分布から文字ピッチを推定する文字ピッチ推
定手段と、(iv)この文字ピッチ推定手段の推定結果に
基づいて各文字の切り出し位置を設定する切り出し位置
設定手段とを文書読取装置に具備させる。
In the present invention, (i) a block pitch calculating means for inputting a character string image for one line extracted from a document image and obtaining a block pitch as a pitch between character blocks;
(Ii) a block pitch frequency distribution calculating means for calculating the frequency distribution of block pitches for all pitches and for only those having a large inter-character gap, and (iii) the calculated block. The document reading apparatus is provided with a character pitch estimating means for estimating a character pitch from a pitch frequency distribution, and (iv) a cutout position setting means for setting a cutout position of each character based on the estimation result of the character pitch estimating means. .

なお、ブロックピッチの算出に際しては、ブロックピ
ッチ頻度分布算出手段から得られたギャップを意識した
頻度分布およびギャップを意識しない頻度分布の2種類
の頻度分布を基にして文字列についてのおよその推定ピ
ッチを求める第1のピッチ算出手段と、この第1の算出
手段の算出結果とギャップを意識しない頻度分布とを用
いて最終的な頻度分布を求める第2のピッチ算出手段と
の2つの算出手段を用いて2段階にわたって算出を行う
ようにしてもよい。
In calculating the block pitch, an approximate estimated pitch for a character string is calculated based on two types of frequency distributions, a frequency distribution conscious of gaps and a frequency distribution unaware of gaps, obtained from the block pitch frequency distribution calculation means. And a second pitch calculation means for obtaining a final frequency distribution using a calculation result of the first calculation means and a frequency distribution unaware of gaps. Alternatively, the calculation may be performed in two stages.

また、ブロックピッチ算出手段は1行分の文字列画像
を入力して、この入力画像に対する行の垂直方向の射影
を求め、ピッチの算出を行うようにしてもよい。
Alternatively, the block pitch calculating means may input a character string image for one line, obtain a vertical projection of the line on the input image, and calculate the pitch.

〔作用〕[Action]

本発明の原理を説明すると次の通りである。すなわ
ち、多くの印刷文書では文字列内で文字ピッチは非常に
安定している。そこで文字の切り出しを行う場合に、文
字ピッチは非常に有効な情報となる。この文字ピッチを
文字列画像から推定することは、文字間のギャップが十
分あり画像品質が良い場合には比較的簡単な処理で可能
となる。しかしながら、文字が“かすれる”等の低品質
で文字間の距離が近いような場合には、文字ピッチを推
定することは容易でなくなる。日本語には外見上分離し
た文字が存在するので、文字ピッチの推定は更に困難と
なる。
The principle of the present invention will be described as follows. That is, in many printed documents, the character pitch in a character string is very stable. Therefore, when cutting out characters, the character pitch is very effective information. Estimating the character pitch from the character string image can be performed by relatively simple processing when the gap between characters is sufficient and the image quality is good. However, when the distance between characters is short and the quality is low, such as "fading", it is not easy to estimate the character pitch. Since there are apparently separated characters in Japanese, it is more difficult to estimate the character pitch.

そこで請求項1記載の発明では、各文字ブロック間の
ピッチとしてのブロックピッチの頻度分布をすべてのピ
ッチを対象とするものと大きな文字間ギャップを持つも
ののみを対象とするものについてそれぞれ算出し、安定
した頻度分布を抽出するようにする。
Therefore, according to the first aspect of the present invention, the frequency distribution of the block pitch as the pitch between the character blocks is calculated for each of the pitches for all the pitches and for those having only a large character gap, Extract a stable frequency distribution.

また請求項2記載の発明では、ブロックピッチ頻度分
布算出手段から得られたギャップを意識した頻度分布お
よびギャップを意識しない頻度分布の2種類の頻度分布
を基にして、2段階にわたって文字のピッチを算出する
ので、“かすれ”等によるブロックの切れが頻度分布に
及ぼす悪影響の軽減を図りピッチの推定を正確に行うこ
とができる。
Further, in the invention according to claim 2, the character pitch is determined in two stages based on two types of frequency distributions, a frequency distribution conscious of gaps and a frequency distribution unaware of gaps, obtained from the block pitch frequency distribution calculating means. Since the calculation is performed, it is possible to reduce the adverse effect on the frequency distribution due to block breakage due to “blurring” or the like, and to accurately estimate the pitch.

更に請求項3記載の発明では、ブロックピッチの算出
の際に入力画像に対する行の垂直方向の射影を求めるこ
とにしたので、行と垂直方向に射影をとることによって
行方向以外のブロックの分離を吸収することができる。
According to the third aspect of the present invention, when calculating the block pitch, the vertical projection of the row on the input image is determined. Therefore, the projection in the vertical direction is performed on the row to separate the blocks other than the row direction. Can be absorbed.

〔実施例〕〔Example〕

以下、実施例につき本発明を詳細に説明する。 Hereinafter, the present invention will be described in detail with reference to examples.

第1図は本発明の一実施例における文書読取装置の概
要を表わしたものである。1行分の文字列画像は入力画
像格納部11に格納される。この入力画像は領域分割部10
で分割され、射影部12で射影されて、その結果は先端ピ
ッチ・後端ピッチ計算部13に入力される。ここで射影と
は行に垂直な方向に濃度の和を集積することをいう。こ
の方法は周知であるので、詳細な説明は省略する。先端
ピッチ・後端ピッチ計算部13では、ブロックの先端ピッ
チと後端ピッチをそれぞれ計算する。これら2種類のピ
ッチは頻度分布作成部14に送られて2種類のピッチそれ
ぞれについての頻度分布が作成される。これらの頻度分
布を用いて、文字ピッチ推定部15は文字ピッチの推定を
行う。文字切り出し部16はこの推定された文字ピッチで
文字の切り出しを行い、文字認識部17は文字の認識を行
う。
FIG. 1 shows an outline of a document reading apparatus according to an embodiment of the present invention. The character string image for one line is stored in the input image storage unit 11. This input image is input to the area dividing unit 10
, And projected by the projection unit 12, and the result is input to the front-end pitch / rear-end pitch calculation unit 13. Here, the projection means to accumulate the sum of densities in the direction perpendicular to the row. Since this method is well known, a detailed description is omitted. The front-end pitch / rear-end pitch calculator 13 calculates the front-end pitch and the rear-end pitch of the block. These two types of pitches are sent to the frequency distribution creating unit 14 to create frequency distributions for each of the two types of pitches. Using these frequency distributions, the character pitch estimation unit 15 estimates the character pitch. The character cutout unit 16 cuts out characters at the estimated character pitch, and the character recognition unit 17 performs character recognition.

なお、領域分割部10および文字認識部17については周
知の技術を用いて実現することができるので、ここでは
詳細な説明を省略する。
Since the area dividing unit 10 and the character recognizing unit 17 can be realized by using a well-known technique, detailed description is omitted here.

以上のような構成の文書読取装置は、CPU(中央処理
装置)と、文字切り出しのための各種処理プログラムを
格納したフロッピーディスク等の記憶媒体と、各種デー
タを一時的に格納するRAM(ランダム・アクセス・メモ
リ)等の回路装置で構成することができる。
The document reading apparatus having the above-described configuration includes a CPU (central processing unit), a storage medium such as a floppy disk storing various processing programs for extracting characters, and a RAM (random / random storage) for temporarily storing various data. (Access memory) or the like.

第2図は、この実施例の文書読取装置の入力画像格納
部11に入力された入力画像の一例を表わしたものであ
る。本実施例で入力画像は文字線部を“1"に、また背景
部を“0"とした2値画像として説明するが、多値画像で
も本質的に同じである。第2図に示した入力画像は、
「制御システム技術部」という語句の入力画像である
が、“かすれ”が生じており低品質な画像の例となって
いる。この入力画像は射影され、これを基にしてブロッ
クの先端ピッチと後端ピッチが求められる。
FIG. 2 shows an example of an input image input to the input image storage section 11 of the document reading apparatus of this embodiment. In this embodiment, the input image will be described as a binary image in which the character line portion is set to "1" and the background portion is set to "0". However, the same applies to a multi-valued image. The input image shown in FIG.
Although the input image is the phrase “control system engineering unit”, “blurring” has occurred and this is an example of a low-quality image. This input image is projected, and the leading edge pitch and the trailing edge pitch of the block are obtained based on the projected image.

第3図は、このうちの先端ピッチを説明するためのも
のである。射影上で背景部に囲まれた連続する黒部分を
1ブロックとする。この第3図で四角で囲ったそれぞれ
の部分が1ブロック21である。これら1ブロックの例と
して第3図におけるブロック21−1を例に挙げるものと
する。この場合先端ピッチとして2種類の先端ピッチP
11、P12を定義する。先端ピッチP11は、1つのブロック
21−1の先端位置(図で右端位置)から同一行の隣接す
るブロック21−2の先端までの間隔をいい、他の先端ピ
ッチP12は1つのブロック21−1の先端位置から同一行
の1つ置いたブロック21−3の先端までの間隔をいうこ
とにする。
FIG. 3 is a diagram for explaining the tip pitch. A continuous black portion surrounded by a background portion on the projection is defined as one block. In FIG. 3, each block surrounded by a square is one block 21. The block 21-1 in FIG. 3 is taken as an example of these one blocks. In this case, two types of tip pitches P are used as the tip pitch.
11, to define the P 12. Tip pitch P 11 is one block
21-1 tip position of the means the distance from to the tip of the adjacent block 21-2 in the same row (the right end position in the drawing), the other tip pitch P 12 is the leading end position of a block 21-1 in the same row The distance to the tip of one block 21-3 will be described.

第4図は、これに対して後端ピッチを説明するための
ものである。本実施例では後端ピッチも2種類定義す
る。後端ピッチP21は、1つのブロック21−1の後端位
置(図で右端位置)から同一行の隣接するブロック21−
2の後端までの間隔をいい、他の後端ピッチP22は1つ
のブロック21−1の後端位置から同一行の1つ置いたブ
ロック21−3の後端までの間隔をいうことにする。
FIG. 4 illustrates the trailing edge pitch. In this embodiment, two types of rear end pitches are also defined. Rear pitch P 21 is one of the rear end position of the block 21-1 adjacent from the same row (FIG rightmost position) to block 21
Refers to spacing of up to two of the rear end, the other rear pitch P 22 is to say the distance from the rear end position of the one block 21-1 up one at a rear end of the block 21-3 in the same row I do.

先端ピッチ・後端ピッチ計算部13では、2種類の先端
ピッチP11、P12および2種類の後端ピッチP21、P22を考
えられるすべてのブロックの組み合わせに対して求め
る。このとき、各先端ピッチP11、P12については後端側
の背景部の大きさ(以下、本明細書ではギャップと称す
る。)を併せて求めておく。また、各後端ピッチP21、P
22については、先端側のギャップの大きさを併せて求め
ておく。
In the tip Pitch rear pitch calculator 13 calculates the combination of the two tip pitch P 11, P 12 and two rear pitch P 21, all blocks considered the P 22. At this time, for the front end pitches P 11 and P 12 , the size of the background portion on the rear end side (hereinafter, referred to as a gap in this specification) is also obtained. In addition, each rear end pitch P 21 , P
For 22 , the size of the gap on the tip side is also determined.

頻度分布作成部14では、2種類の頻度分布を作成す
る。1つの頻度分布d(x)は、求めたすべてのピッチ
を対象とする。もう1つの頻度分布f(x)はギャップ
が大きいもののみを対象とする。
The frequency distribution creating unit 14 creates two types of frequency distributions. One frequency distribution d (x) covers all the pitches obtained. Another frequency distribution f (x) targets only those having a large gap.

これらの頻度分布を基にして文字ピッチ推定部15は文
字ピッチの推定を行う。文字ピッチの推定は2段階に別
けて行われる。第1段階ではおよその推定ピッチを求め
る。このために、まず頻度分布作成部14で求めた分布を
強調する変換処理を次の(1)式に基づいて求める。
The character pitch estimating unit 15 estimates the character pitch based on these frequency distributions. The estimation of the character pitch is performed in two stages. In the first stage, an approximate estimated pitch is obtained. For this purpose, first, a conversion process for emphasizing the distribution obtained by the frequency distribution creating unit 14 is obtained based on the following equation (1).

ここでΨ(x)は、次の(2)式で表わす正規分布で
あり、(1)式ではσ=2.5を用いている。
Here, Ψ (x) is a normal distribution represented by the following equation (2), and in equation (1), σ = 2.5 is used.

従って、(1)式は正規分布による頻度分布の畳み込
み演算である。このような変換処理は、頻度分布作成部
14がROMテーブルを用意しておき、これを用いて演算結
果を読み出すようにすることで容易に実現することがで
きる。
Therefore, equation (1) is a convolution operation of the frequency distribution by the normal distribution. Such conversion processing is performed by the frequency distribution creation unit.
This can be easily realized by preparing a ROM table and reading the operation result using the ROM table.

このようにして分布を強調する変換処理を行ったらピ
ッチの推定が行われる。今、(1)式の左辺D(m)の
最大値を与えるmを仮のピッチp′とする。このピッチ
の1/2近辺と2倍近辺とにD(p)と近い値をとるピッ
チpがないかどうかをチェックする。具体的には次の
(3)式で表わされるピッチpがあるかどうかをチェッ
クする。
When the conversion process for enhancing the distribution is performed in this manner, the pitch is estimated. Now, let m which gives the maximum value of the left side D (m) of the equation (1) be a temporary pitch p '. It is checked whether there is a pitch p having a value close to D (p) near 1/2 of the pitch and near twice the pitch. Specifically, it is checked whether there is a pitch p expressed by the following equation (3).

D(P)≧0.8D(P′) ……(3) ただし、ピッチpの範囲は次の(4)式または(5)
式で示す不等式の範囲内にあるものとする。
D (P) ≧ 0.8D (P ′) (3) where the range of the pitch p is expressed by the following equation (4) or (5).
It is assumed that the values are within the range of the inequalities shown by the equations.

この結果、仮のピッチp′の2倍近辺には(3)式を
満たすピッチpがなく、1/2近辺にこの(3)式を満た
すピッチpがあるときには、およその推定ピッチφ′を
p′/2とし、その他の場合にはおよその推定ピッチφ′
をp′とする。
As a result, when there is no pitch p that satisfies the expression (3) near twice the provisional pitch p ′ and there is a pitch p that satisfies the expression (3) near 1/2, the approximate estimated pitch φ ′ is p '/ 2, otherwise the approximate estimated pitch φ'
Is p ′.

次にこのおよその推定ピッチφ′を基にして推定ピッ
チφを求める。推定ピッチφはおよその推定ピッチφ′
近辺での頻度分布d(x)上の平均値とする。具体的に
は次の(6)式により求める。
Next, an estimated pitch φ is determined based on the approximate estimated pitch φ ′. The estimated pitch φ is the approximate estimated pitch φ '
An average value on the frequency distribution d (x) in the vicinity is used. Specifically, it is obtained by the following equation (6).

第5図は、文字切り出し部での文字の切り出し動作を
説明するためのものである。以上説明したようにして推
定ピッチφが求められたら文字の切り出しが行われる。
第1図に示した文字切り出し部16では、文字の先頭から
順に並べたブロックサイズとギャップサイズの2種類の
サイズを用いて、文字列の先頭から文字を順に切り出す
ものである。
FIG. 5 is a diagram for explaining a character extracting operation in the character extracting unit. When the estimated pitch φ is obtained as described above, characters are cut out.
In the character cutout unit 16 shown in FIG. 1, characters are sequentially cut out from the head of a character string using two types of sizes, a block size and a gap size, which are arranged in order from the head of the character.

まず文字切り出し部16では、現在(カレント)処理を
行う先頭のブロックのピッチ(以下、ブロックピッチと
いう。)およびギャップとその次(ネクスト)のブロッ
クピッチおよびギャップをセットする(ステップ)。
そして、前記したCPUは次に処理を行うブロックの有無
をチェックし(ステップ)、次に処理するブロックが
存在しない場合には(Y)、文字切り出しのための制御
を終了させる(エンド)。
First, the character cutout unit 16 sets a pitch (hereinafter, referred to as a block pitch) and a gap of a first block to be subjected to current processing (current), and a next (next) block pitch and gap (step).
Then, the CPU checks whether there is a block to be processed next (step), and if there is no block to be processed next (Y), ends the control for character extraction (end).

次に処理するブロックが存在する場合には(N)、現
在のブロックピッチが推定ピッチφの1.2倍よりも大き
いか否かのチェックを行う(ステップ)。推定ピッチ
φの1.2倍よりも大きい場合には(Y)、現在のブロッ
クを推定ピッチφによって強制的に切り出す(ステップ
)。
If there is a block to be processed next (N), it is checked whether the current block pitch is larger than 1.2 times the estimated pitch φ (step). If it is larger than 1.2 times the estimated pitch φ (Y), the current block is forcibly cut out at the estimated pitch φ (step).

現在のブロックが推定ピッチφの1.2倍未満であった
場合には(ステップ;N)、現在のピッチと次のピッチ
のうち推定ピッチφに近い方がとちらかの判別を行う
(ステップ)。この結果、次のピッチの方が推定ピッ
チφに近い場合には(Y)、現在のブロックと次のブロ
ックとの統合を行う(ステップ)。現在のピッチの方
が推定ピッチφに近い場合には(ステップ;N)、現在
のピッチが推定ピッチφの0.8倍以上であるかどうかを
チェックする(ステップ)。この場合、ステップで
現在のブロックが推定ピッチφの1.2倍と等しいかこれ
よれも小さいと判断されているので、この場合には現在
のピッチが推定ピッチφの0.8倍以上で1.2倍以下である
かどうかのチェックが行われることになる。
If the current block is less than 1.2 times the estimated pitch φ (step; N), it is determined which of the current pitch and the next pitch is closer to the estimated pitch φ (step). As a result, if the next pitch is closer to the estimated pitch φ (Y), the current block and the next block are integrated (step). If the current pitch is closer to the estimated pitch φ (step; N), it is checked whether the current pitch is at least 0.8 times the estimated pitch φ (step). In this case, since the current block is determined to be equal to or smaller than 1.2 times the estimated pitch φ in the step, in this case, the current pitch is 0.8 times or more and 1.2 times or less the estimated pitch φ A check is made to see if it is.

この条件が満たされる場合には(Y)、現在のピッチ
による文字の切り出しが行われる(ステップ)。この
条件が満たされない場合には(ステップ;N)、現在の
ブロックと次のブロックとの統合が行われる(ステップ
)。この後、ステップに戻って同様の制御が繰り返
されることになる。
If this condition is satisfied (Y), the character is cut out at the current pitch (step). If this condition is not satisfied (step; N), the current block and the next block are integrated (step). Thereafter, returning to the step, the same control is repeated.

第6図は、以上のような制御で第2図に示した入力画
像について文字切り出しを行った結果を現わしたもので
ある。文字に“かすれ”が生じていても、その切り出し
が正確に行われていることがわかる。
FIG. 6 shows the result of extracting characters from the input image shown in FIG. 2 under the above control. It can be seen that even if "fading" has occurred in the character, the cutout is accurately performed.

このように本実施例の文書読取装置では、行と垂直方
向に射影をとるようにしたので、行方向以外のブロック
の分離を吸収することができる。
As described above, in the document reading apparatus according to the present embodiment, the projection is performed in the direction perpendicular to the line, so that the separation of blocks other than the line direction can be absorbed.

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

このように請求項1記載の発明によれば、文字ピッチ
の頻度分布をすべてのピッチを対象とするものと大きな
文字間ギャップを持つもののみを対象とするものについ
てそれぞれ算出したので、安定した頻度分布を抽出する
ことができる。また、簡便な手法で文字の切り出しを行
うので、簡便な回路装置で高度な文字切り出しを行うこ
とができるという効果がある。
As described above, according to the first aspect of the present invention, the frequency distribution of the character pitch is calculated for each of all pitches and for only those having a large character gap. The distribution can be extracted. In addition, since character extraction is performed by a simple method, there is an effect that advanced character extraction can be performed with a simple circuit device.

また請求項2記載の発明では、文字ピッチ頻度分布算
出手段から得られたギャップを意識した頻度分布および
ギャップを意識しない頻度分布の2種類の頻度分布を基
にして、2段階にわたって文字のピッチを算出したの
で、“かすれ”等の低品位の画像によるブロックの切れ
が頻度分布に及ぼす悪影響の軽減を図りピッチの推定を
正確に行うことができ、文字切り出しを更に正確に行う
ことができる。
In the invention according to claim 2, the character pitch can be determined in two stages based on two types of frequency distributions, a frequency distribution conscious of gaps and a frequency distribution unaware of gaps, obtained from the character pitch frequency distribution calculation means. Since it has been calculated, it is possible to reduce the adverse effect on the frequency distribution due to block breaks caused by low-quality images such as "blurring", to accurately estimate the pitch, and to more accurately extract characters.

また請求項3記載の発明では、文字ピッチの算出の際
に入力画像に対する行の垂直方向の射影を求めることに
したので、行と垂直方向に射影をとることによって行方
向以外のブロックの分離を吸収することができ、同様に
文字切り出しを更に正確に行うことができる。
According to the third aspect of the present invention, when calculating the character pitch, the vertical projection of the line with respect to the input image is determined. Therefore, the projection in the vertical direction with respect to the line allows separation of blocks other than the line direction. It can be absorbed, and character extraction can be performed more accurately.

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

図面は本発明の一実施例を説明するためのもので、この
うち第1図は文書読取装置の概要を表わしたブロック
図、第2図は入力画像の一例を現わした平面図、第3図
は先端ピッチを説明するための説明図、第4図は後端ピ
ッチを説明するための説明図、第5図は文字切り出し部
での文字の切り出し動作を表わした流れ図、第6図は第
2図に示した入力画像に対する文字切り出しの結果を表
わした説明図である。 10……領域分割部、11……入力画像格納部、 12……射影部、 13……先端ピッチ・後端ピッチ計算部、 14……頻度分布作成部、 15……文字ピッチ推定部、 17……文字認識部、21……ブロック。
1 is a block diagram showing an outline of a document reading apparatus, FIG. 2 is a plan view showing an example of an input image, and FIG. FIG. 4 is an explanatory diagram for explaining a front end pitch, FIG. 4 is an explanatory diagram for explaining a rear end pitch, FIG. 5 is a flowchart showing a character cutting operation in a character cutting unit, and FIG. FIG. 4 is an explanatory diagram showing a result of character segmentation for the input image shown in FIG. 2. 10 area dividing section, 11 input image storage section, 12 projecting section, 13 leading and trailing pitch calculating section, 14 frequency distribution creating section, 15 character pitch estimating section, 17 …… Character recognition unit, 21 …… Block.

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】文書画像より抽出した1行分の文字列画像
を入力して、各文字ブロック間のピッチとしてのブロッ
クピッチを求めるブロックピッチ算出手段と、 ブロックピッチの頻度分布をすべてのピッチを対象とす
るものと大きな文字間ギャップを持つもののみを対象と
するものについてそれぞれ算出するブロックピッチ頻度
分布算出手段と、 算出されたブロックピッチの頻度分布から文字ピッチを
推定する文字ピッチ推定手段と、 この文字ピッチ推定手段の推定結果に基づいて各文字の
切り出し位置を設定する切り出し位置設定手段 とを具備することを特徴とする文書読取装置。
1. A block pitch calculating means for inputting a one-line character string image extracted from a document image and calculating a block pitch as a pitch between each character block, A block pitch frequency distribution calculating means for calculating only a target and a target having a large character gap, a character pitch estimating means for estimating a character pitch from the calculated frequency distribution of the block pitch, And a cutout position setting unit for setting a cutout position of each character based on the estimation result of the character pitch estimating unit.
【請求項2】ブロックピッチ頻度分布算出手段から得ら
れたギャップを意識した頻度分布およびギャップを意識
しない頻度分布の2種類の頻度分布を基にして文字列に
ついてのおよその推定ピッチを求める第1のピッチ算出
手段と、 この第1の算出手段の算出結果と前記ギャップを意識し
ない頻度分布とを用いて最終的な頻度分布を求める第2
のピッチ算出手段 とを具備することを特徴とする請求項1記載の文書読取
装置。
2. A first method for obtaining an approximate estimated pitch of a character string based on two types of frequency distributions, a frequency distribution conscious of gaps and a frequency distribution unaware of gaps, obtained from a block pitch frequency distribution calculating means. And a second frequency calculating means for obtaining a final frequency distribution using the calculation result of the first calculating means and the frequency distribution ignoring the gap.
2. The document reading apparatus according to claim 1, further comprising: a pitch calculating unit.
【請求項3】ブロックピッチ算出手段は1行分の文字列
画像を入力して、この入力画像に対する行の垂直方向の
射影を求める射影手段を具備することを特徴とする請求
項1記載の文書読取装置。
3. The document according to claim 1, wherein said block pitch calculating means comprises a projecting means for inputting a character string image for one line and obtaining a vertical projection of a line on said input image. Reader.
JP1270353A 1989-10-19 1989-10-19 Document reading device Expired - Fee Related JP2844728B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1270353A JP2844728B2 (en) 1989-10-19 1989-10-19 Document reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1270353A JP2844728B2 (en) 1989-10-19 1989-10-19 Document reading device

Publications (2)

Publication Number Publication Date
JPH03132889A JPH03132889A (en) 1991-06-06
JP2844728B2 true JP2844728B2 (en) 1999-01-06

Family

ID=17485085

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1270353A Expired - Fee Related JP2844728B2 (en) 1989-10-19 1989-10-19 Document reading device

Country Status (1)

Country Link
JP (1) JP2844728B2 (en)

Also Published As

Publication number Publication date
JPH03132889A (en) 1991-06-06

Similar Documents

Publication Publication Date Title
CN106295629B (en) structured text detection method and system
US20030063802A1 (en) Image processing method, apparatus and system
CN101515325A (en) Character extracting method in digital video based on character segmentation and color cluster
KR101910256B1 (en) Lane Detection Method and System for Camera-based Road Curvature Estimation
CN115995080A (en) Archive intelligent management system based on OCR (optical character recognition)
CN111079756A (en) Method and equipment for extracting and reconstructing table in document image
JP2003067738A (en) Halftone dot removal method and system
JP2844728B2 (en) Document reading device
CN112215784B (en) Image decontamination method, image decontamination device, readable storage medium and computer equipment
JP3090342B2 (en) Character string direction discriminator
JP3187899B2 (en) Character recognition device
JPH0528260A (en) Contour vector extraction system
JP2821303B2 (en) Sharp character combination method
JP3087714B2 (en) Online handwritten character extraction device and recording medium storing online handwritten character extraction program
JP2753094B2 (en) Word segmentation device
JPH10187887A (en) Typeface identification device, typeface identification method, and information recording medium
JP2000040122A (en) Character extraction method
JP2003271897A (en) Character recognition device, image processing device, image processing method, and program used to execute the method
JP3220226B2 (en) Character string direction determination method
JPH05128308A (en) Character recognition device
JP4011859B2 (en) Word image normalization device, word image normalization program recording medium, and word image normalization program
JPH04130979A (en) Character picture segmenting method
CN119380364A (en) A method and system for identifying electric power work ticket form data
JP2001266070A (en) Character recognition device, character recognition method, and storage medium
JPH05135204A (en) Character recognition device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees