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
JPH0471232B2 - - Google Patents
[go: Go Back, main page]

JPH0471232B2 - - Google Patents

Info

Publication number
JPH0471232B2
JPH0471232B2 JP58161421A JP16142183A JPH0471232B2 JP H0471232 B2 JPH0471232 B2 JP H0471232B2 JP 58161421 A JP58161421 A JP 58161421A JP 16142183 A JP16142183 A JP 16142183A JP H0471232 B2 JPH0471232 B2 JP H0471232B2
Authority
JP
Japan
Prior art keywords
character
pitch
distance
blocks
prediction interval
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
Application number
JP58161421A
Other languages
Japanese (ja)
Other versions
JPS6054084A (en
Inventor
Yoshitake Tsuji
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 JP58161421A priority Critical patent/JPS6054084A/en
Publication of JPS6054084A publication Critical patent/JPS6054084A/en
Publication of JPH0471232B2 publication Critical patent/JPH0471232B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 本発明は紙面上に記載された文字列メイージを
個々に分離するための文字ピツチを自動的に検出
する文字ピツチ検出装置に関するものである。各
種印刷文字等を光学的に読み取る装置(以下、
OCRと呼ぶ)において、一連の文字を認識する
場合、各文字を1字毎に分離して文字認識部に送
出してやる必要がある。各文字を1字毎に分離す
るために必要となる情報として文字ピツチがあ
り、OCRの読み取り対象となる印刷物の大きさ
や種類が限定されれば、前もつて与えることがで
きる。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character pitch detection device that automatically detects character pitches for separating character string images written on paper into individual characters. A device that optically reads various printed characters, etc. (hereinafter referred to as
When recognizing a series of characters using OCR, it is necessary to separate each character and send them to the character recognition unit. Character pitch is information needed to separate each character, and if the size and type of printed matter to be read by OCR is limited, it can be provided in advance.

しかし、最近のように、OCRにおける読み取
り対象も不特定な文字ピツチを持つ郵便物や文書
のような広汎な適用範囲のものがとられると、前
以つて、文字ピツチを知ることができないため、
紙面上の文字列イメージから文字ピツチを推定す
る必要が生じる。従来の文字ピツチの推定方法と
して、例えば、平均文字ピツチなどが用いられて
いた。しかし、英印字文字のように、フオントや
文字カテゴリーによつて、個々の文字幅が大きく
異なる場合や接触する文字数が増加した場合に
は、上述した平均文字ピツチと実際の文字ピツチ
とでは、一文字の分離を行う時に生じる誤差が無
視できなくなる。そのため、例えば、上述した平
均文字ピツチを用いて、文字間で接触が生じた多
くの文字を含む文字列メメージを分離した場合に
は、接触した文字の個数を誤まつたり、不正確な
分離位置で切断されたりする。
However, as has recently been the case, when OCR scans a wide range of applications such as mail and documents with unspecified character pitch, it is difficult to know the character pitch in advance.
It becomes necessary to estimate character pitch from a character string image on paper. As a conventional method for estimating character pitch, for example, average character pitch has been used. However, when the width of individual characters differs greatly depending on the font or character category, such as in the case of English printed characters, or when the number of characters that touch each other increases, the average character pitch mentioned above and the actual character pitch differ by one character. The error that occurs when performing the separation cannot be ignored. Therefore, for example, if you use the above-mentioned average character pitch to separate a string image that contains many characters in contact, you may misjudge the number of characters in contact, or the separation position may be inaccurate. or be cut off.

また、上述した条件下で、一文字単位の分離を
行うためには、文字ピツチの精度の良い推定値と
共にその文字ピツチがどの程度正確であるかを表
わす文字ピツチの推定誤差も検出することが必要
となる。
Furthermore, in order to perform character-by-character separation under the above conditions, it is necessary to detect not only a highly accurate estimate of character pitch, but also the estimation error of character pitch, which indicates how accurate the character pitch is. becomes.

このような推定精度が与えられれば、例えば、
文字ピツチの微小誤差を文字パターンイメージの
特徴を用いて吸収する際のパラメータとしても利
用することができる。
Given such estimation accuracy, for example,
It can also be used as a parameter when absorbing minute errors in character pitch using the characteristics of character pattern images.

そこで、本発明の目的は、上述した問題点を解
決するために、白地で分離可能な複数個の文字イ
メージ即ち、文字塊から算出される文字塊間距離
に関する頻度分布を、複数個の文字塊の平均高さ
から始めて、クラスター化しながら、推定文字ピ
ツチを更新し、推定誤差も算出するようにした文
字ピツチ検出装置を提供することにある。
SUMMARY OF THE INVENTION Therefore, in order to solve the above-mentioned problems, it is an object of the present invention to calculate the frequency distribution of the distance between character clusters calculated from a plurality of character images that can be separated on a white background, that is, from character clusters. An object of the present invention is to provide a character pitch detection device that updates estimated character pitch while clustering starting from the average height of , and also calculates an estimation error.

本発明の他の目的は、紙面上の一連の文字イメ
ージに文字間の接触を含む文字イメージや1文字
が2文字に分離する文字イメージが含まれていて
も、安定にしかも最良な文字ピツチを推定するこ
とが可能な文字ピツチ検出装置を提供することに
ある。
Another object of the present invention is to achieve stable and optimal character pitch even when a series of character images on paper include character images that include contact between characters or character images that separate one character into two characters. An object of the present invention is to provide a character pitch detection device capable of estimating character pitch.

本発明によれば紙面上に記載された一連の文字
列イメージを走査し、一文字単位に分離するため
の文字ピツチを抽出する文字ピツチ検出装置にお
いて、一連の文字列イメージから白地で分離可能
な複数個の文字塊を順次検出する手段と、複数個
の文字塊の始端位置の間又は終端位置の間の距離
を示す文字塊間距離を算出し、文字塊間距離の頻
度を記憶する頻度分布テーブルと、複数個の文字
塊の高さから文字ピツチの予測区間を設定し、頻
度分布テーブルを用いて、最頻度値文字塊間距離
p1を予測区間内で検出する手段と、順次算出され
る最頻値文字塊間距離pk(但し、K=1,2…)
からk文字の存在範囲を設定し、存在範囲に属す
る複数個の文字塊間距離における分散σ2 k及びサ
ンプル数nkを算出する手段と、算出されたk個の
最頻値文字塊間距離p1,p2…pk及び分散σ2 1,σ2 2
…σ2 k及びサンプル数n1,n2…nkを用いて、推定文
字ピツチP∧(k)及び推定誤差を最尤推定により算出
する手段と、推定文字ピツチP∧(k)から、文字ピツ
チの(k+1)倍となる予測区間を設定し、頻度
テーブルを用いて最頻度値文字塊間距離pk+1を予
測区間内で検出する手段とを有することを特徴と
する文字ピツチ検出装置が得られる。
According to the present invention, in a character pitch detection device that scans a series of character string images written on a paper surface and extracts character pitches for separating character by character, there is a means for sequentially detecting character blocks, and a frequency distribution table that calculates the distance between character blocks indicating the distance between the start or end positions of a plurality of character blocks, and stores the frequency of the distance between character blocks. Then, set the prediction interval of character pitch from the height of multiple character clusters, and use the frequency distribution table to calculate the distance between the most frequent character clusters.
Means for detecting p 1 within the prediction interval and the distance between the most frequent character blocks p k (however, K = 1, 2...)
means for setting the existence range of k characters from , calculating the variance σ 2 k and the number of samples n k in the distance between a plurality of character blocks belonging to the existence range, and the calculated distance between k most frequent character blocks. p 1 , p 2 ... p k and variance σ 2 1 , σ 2 2 ,
A means for calculating the estimated character pitch P∧(k) and the estimation error by maximum likelihood estimation using ...σ 2 k and the number of samples n 1 , n 2 ...n k , and from the estimated character pitch P∧(k), Character pitch detection characterized by having means for setting a prediction interval that is (k+1) times the character pitch, and detecting the most frequent value inter-character block distance p k+1 within the prediction interval using a frequency table. A device is obtained.

以下、本発明における具体的一実施例を参照し
て説明する。
Hereinafter, the present invention will be described with reference to a specific embodiment.

第1図は本発明が適用される文字列イメージの
一部を示した一例である。図において、斜線で示
した白地で分離可能な文字イメージ即ち文字塊を
矩形領域を示している。図中Hi(i=1……7)
は、各文字塊の高さを示している。図中Vi(i=
1……7)は文字塊間距離の一例であり、各文字
塊の始端位置から次に出現する文字塊の始端位置
までの距離を示している。ここで、文字塊間距離
は、図1の記号Vi(i=1……7)の一例で示し
たように各文字塊の始端間で測定される距離のみ
ならず、各文字塊の終端間で測定される距離も含
むものである。即ち、文字塊間距離は、各文字塊
の始端(終端)位置から次又は次以降に出現する
文字塊の始端(終端)位置の間で測定される距離
を意味する。尚、図10の記号V10で示すよう
な、文字行の最後に出現する文字塊の幅は、特殊
な文字塊間距離として取り扱うことは可能である
が、本発明では文字塊間距離には含めないものと
する。
FIG. 1 is an example showing a part of a character string image to which the present invention is applied. In the figure, a white background indicated by diagonal lines indicates a rectangular area containing separable character images, ie, character blocks. Hi in the figure (i=1...7)
indicates the height of each character block. In the figure Vi(i=
1...7) is an example of the distance between character blocks, and indicates the distance from the starting position of each character block to the starting position of the next appearing character block. Here, the distance between character blocks is not only the distance measured between the starting edges of each character block, as shown in the example of the symbol Vi (i = 1...7) in Figure 1, but also the distance measured between the ends of each character block. It also includes the distance measured by . That is, the distance between character blocks means the distance measured from the start (end) position of each character block to the start (end) position of the next or subsequent character blocks. Note that the width of a character block that appears at the end of a character line, as shown by symbol V10 in Figure 10, can be treated as a special distance between character blocks, but in the present invention, it is not included in the distance between character blocks. Make it not exist.

第2図は、第1図で示したような一連の文字塊
間距離の頻度分布の一例である。図において、頻
度分布の横軸Vは、文字塊間距離Vの値を示して
おり、縦軸NUMは、任意の文字塊間距離におけ
る頻度数を示している。そこで、第2図を用い
て、本発明の原理を説明する。
FIG. 2 is an example of the frequency distribution of distances between a series of character blocks as shown in FIG. In the figure, the horizontal axis V of the frequency distribution indicates the value of the distance V between character blocks, and the vertical axis NUM indicates the frequency number at a given distance between character blocks. Therefore, the principle of the present invention will be explained using FIG. 2.

第1図で示した複数個の文字塊の高さH1
H2,…の平均高さHnと、係数α1,α2(但し、α1
<α2)から、予測区間C1を設定する。次に、予
測区間C1内で、一定許容幅△τ(図中、△τ=
1)で最頻値文字塊間距離p1を求める。最頻値文
字塊間距離p1から1文字の存在範囲s1の上限値を
例えばp1+p1/2として算出する。尚、ここで、1 文字の存在範囲s1の下限値を、p1/2とする。上述 した存在範囲s1内のn1個(以下、サンプル数n1
表わす)の文字塊間距離について、前述した最頻
値文字塊間距離p1に対する分散σ2 1を算出する。
The height H 1 of the plurality of character blocks shown in Fig. 1,
The average height H n of H 2 , ... and the coefficients α 1 , α 2 (however, α 1
2 ), the prediction interval C 1 is set. Next, within the prediction interval C 1 , a certain tolerance width △τ (in the figure, △τ =
1) Find the distance p 1 between the most frequent character blocks. The upper limit value of the existence range s 1 of one character is calculated from the mode character distance p 1 as, for example, p 1 +p 1 /2. Here, the lower limit value of the existence range s 1 of one character is assumed to be p 1 /2. For the distances between n 1 character blocks (hereinafter referred to as the number of samples n 1 ) within the above-mentioned existence range s 1 , the variance σ 2 1 with respect to the mode value inter-character block distance p 1 is calculated.

次に、推定文字ピツチを算出するのであるが、
最頻値文字塊間距離p1のみの検出しか行つていな
いので、推定文字ピツチp∧(1)は、p1となる。ま
た、この時点での文字ピツチの推定誤差△ε(1)と
して、分散σ2 1で表わすことができる。
Next, we calculate the estimated character pitch,
Since only the mode distance between character blocks p1 is detected, the estimated character pitch p∧(1) is p1 . Further, the estimated error Δε(1) of the character pitch at this point can be expressed as a variance σ 2 1 .

次に、推定文字ピツチp∧(1)から、文字ピツチの
2倍となる予測区間C2を2・p∧(1)±α3より設定
し、予測区間C2内で、一定許容幅△τを設け、
最頻値文字塊間距離p2を検出する。ここでα3は定
数でも良いし、例えば、分散σ2 1の標準偏差σに基
づいて設定しても良い。最頻値文字塊間距離p2
検出されると、同様にして、2文字の存在範囲s2
の上限値を例えば、p2+1/2・(p2/2)より算出し
、 上述した存在範囲s2内のサンプル数n2の文字塊間
距離について、分散σ2 2を算出する。
Next, from the estimated character pitch p∧(1), a prediction interval C 2 that is twice the character pitch is set from 2・p∧(1)±α 3 , and within the prediction interval C 2 , a certain tolerance width △ Set τ,
Detect the distance p 2 between the most frequent character blocks. Here, α 3 may be a constant, or may be set based on the standard deviation σ of the variance σ 2 1 , for example. When the mode distance between character clusters p 2 is detected, the existence range of the two characters s 2 is similarly detected.
For example, the upper limit value of is calculated from p 2 +1/2·(p 2 /2), and the variance σ 2 2 is calculated for the distance between character blocks of the number of samples n 2 in the above-mentioned existence range s 2 .

次に、推定文字ピツチp∧(1)を次のようにして更
新し、より正確な推定文字ピツチp∧(2)を求める。
より正確な推定文字ピツチは、得られた最頻値文
字塊間距離p1,p2及びサンプル数n1,n2を用い
て、最尤推定によつて、行われる。
Next, the estimated character pitch p∧(1) is updated as follows to obtain a more accurate estimated character pitch p∧(2).
More accurate estimated character pitch is performed by maximum likelihood estimation using the obtained mode character block distances p 1 , p 2 and sample numbers n 1 , n 2 .

例えば、 p∧(2)=1/2 Σk=1 k・√k・(√1・p1+2・√2
p2/2) を計算することによつて、推定文字ピツチp∧(2)を
得ることができる。
For example, p∧(2)=1/ 2 Σ k=1 k・√ k・(√ 1・p 1 +2・√ 2
By calculating p 2 /2), the estimated character pitch p∧(2) can be obtained.

またこの時点での推定誤差△ε(2)は、例えば、 △ε(2)=1/2 Σk=1 ・√k・(√1・σ2 1+2√2・σ2 2) を計算することによつて、得ることができる。 Also, the estimation error △ε(2) at this point is calculated as follows, for example: △ε(2)=1/ 2 Σ k=1・√ k・(√ 1・σ 2 1 +2√ 2・σ 2 2 ) You can get it by doing.

以下、同様にして、推定文字ピツチp∧(3),p∧(4)
と順次、推定文字ピツチを更新が行われる。
Hereafter, in the same way, estimated character pitch p∧(3), p∧(4)
The estimated character pitch is updated sequentially.

そこで、l個の最頻値文字塊間距離p1,p2,…
…pl及びサンプル数n1,n2,…nl及び分散σ2 1σ2 2
σ2 lを用いて、得られる最尤推定文字ピツチp∧(l)は p∧(l)=l Σk=1 w(k,nk)・4k/k より算出できる。また、この時点での推定誤差△
ε(l)は、 △ε(l)=l Σk=1 w(k,nk)・σ2 k より算出できる。
Therefore, the distances between l mode character blocks p 1 , p 2 ,...
…p l , number of samples n 1 , n 2 , … n l and variance σ 2 1 σ 2 2
Using σ 2 l , the obtained maximum likelihood estimated character pitch p∧(l) can be calculated from p∧(l)= l Σ k=1 w(k, n k )·4 k /k. Also, the estimation error at this point △
ε(l) can be calculated from Δε(l)= l Σ k=1 w(k, n k )·σ 2 k .

尚、上述した係数w(k,nk)は整数値k及び
最頻度数nkによつて定まり例えば、 k・√kl Σk=1 k・√k より得られる。更に、前述した最尤推定値p∧(l)及
び推定誤差△ε(l)は、加算部、乗算部、除算部に
よつて、容易に計算されることは言うまでもな
い。更に、加算や乗算部・除算部の順序性を変え
ることによつて、計算時間を減少させることも可
能である。
The above-mentioned coefficient w(k, n k ) is determined by the integer value k and the most frequent number n k and can be obtained from, for example, k·√ k / l Σ k=1 k·√ k . Furthermore, it goes without saying that the maximum likelihood estimation value p∧(l) and the estimation error Δε(l) described above are easily calculated by the addition section, the multiplication section, and the division section. Furthermore, the calculation time can be reduced by changing the order of the addition, multiplication, and division sections.

第3図は本発明の具体的一実施例を示す論理ブ
ロツク図である。走査装置1は紙面上に記載され
た文字列イメージを光学的に走査して、電気信号
に変換し、2値量子化後、文字列イメージメモリ
2へ書き込む。文字塊抽出装置3は、文字列イメ
ージメモリ2に格納された複数個の文字列イメー
ジから文字塊を順次抽出し、各文字塊の始点位置
及び大きさを文字塊レジスタ4へ格納する。尚、
文字塊の大きさは、文字塊の幅及び高さを表わす
ものとする。また、このような文字塊抽出装置
は、例えば、同一出願人による特願昭56−27512
号明細書で示されている技術を用いることができ
る。制御装置7は、順次、文字塊レジスタ4から
転送される文字塊の始点位置から文字塊間距離を
算出し、頻度分布テーブル6の対応する文字塊間
距離のアドレス位置の内容である頻度数をインク
リメントする。このようにして、メモリから構成
される頻度分布テーブル6に、第2図で示したよ
うな文字塊間距離の頻度分布が生成される。尚、
頻度分布テーブル6は、最初0に初期化されてい
るとする。
FIG. 3 is a logic block diagram showing a specific embodiment of the present invention. A scanning device 1 optically scans a character string image written on a paper surface, converts it into an electrical signal, and writes it into a character string image memory 2 after binary quantization. The character block extraction device 3 sequentially extracts character blocks from a plurality of character string images stored in the character string image memory 2, and stores the starting position and size of each character block in the character block register 4. still,
The size of a character block represents the width and height of the character block. Further, such a character block extraction device is disclosed in, for example, Japanese Patent Application No. 56-27512 filed by the same applicant.
The technique shown in the patent specification can be used. The control device 7 sequentially calculates the distance between character blocks from the starting position of the character blocks transferred from the character block register 4, and calculates the frequency number that is the content of the address position of the corresponding distance between character blocks in the frequency distribution table 6. Increment. In this way, a frequency distribution of distances between character blocks as shown in FIG. 2 is generated in the frequency distribution table 6 constructed from memory. still,
It is assumed that the frequency distribution table 6 is initially initialized to 0.

次に、制御装置7によつて、文字塊レジスタ4
に格納された複数個の文字塊の高さから平均高さ
Hnが算出され、予測区間算出部8へ転送される。
定数レジスタ20は、第2図で示した係数α1,α2
(但し、α1<α2)を格納し、定数レジスタ21は
第2図で示した係数α3を格納する。22はカウン
タであり、値k(但し、初期値として1)がセツ
トされている。制御装置7によつて、予測区間算
出部8へ、平均高さHnが入力されると、予測区
間算出部8は、定数レジスタ20より係数α1及び
α2を入力し、α1,Hn及びα2・Hnを前述した予測
区間の下限値及び上限値として算出し、最頻値文
字塊間距離検出部9へ転送する。一方、制御装置
7によつて、予測区間算出部8へ、後述する推定
文字ピツチp∧(k)が入力されると、予測区間算出部
8は、定数レジスタ21より係数α3を入力し、更
に、カウンタ22よりカウンタ値kを入力して、
k・p∧(k)−α3及びk・p∧(k)+α3を前述した予測

間の下限値及び上限値として算出し、最頻値文字
塊間距離検出部9へ転送する。
Next, the control device 7 controls the character block register 4
The average height from the heights of multiple character blocks stored in
H n is calculated and transferred to the prediction interval calculation unit 8.
The constant register 20 stores the coefficients α 1 and α 2 shown in FIG.
(However, α 12 ), and the constant register 21 stores the coefficient α 3 shown in FIG. 22 is a counter, and a value k (however, the initial value is 1) is set. When the control device 7 inputs the average height H n to the prediction interval calculation unit 8, the prediction interval calculation unit 8 inputs the coefficients α 1 and α 2 from the constant register 20, and calculates α 1 , H n and α 2 ·H n are calculated as the lower and upper limits of the prediction interval described above, and are transferred to the mode character block distance detection unit 9. On the other hand, when the control device 7 inputs the estimated character pitch p∧(k), which will be described later, to the prediction interval calculation unit 8, the prediction interval calculation unit 8 inputs the coefficient α 3 from the constant register 21, Furthermore, input the counter value k from the counter 22,
k·p∧(k)−α 3 and k·p∧(k)+α 3 are calculated as the lower and upper limits of the aforementioned prediction interval, and are transferred to the mode character block distance detection unit 9.

最頻値文字塊間距離検出部9は、予測区間算出
部8より入力された予測区間の下限値と上限値内
に属する文字塊間距離の頻度数を制御装置7を介
して、頻度分布テーブル6より読み出し、一定許
容幅△τ(但し、△τ=1,2…)で最頻値文字
塊間距離pkを求めレジスタ10に格納する。尚、
最頻値文字塊間距離pkは、カウンタ22の値kに
応じて、レジスタ10の所定の位置にセツトされ
る。存在区間算出部11は、カウンタ22の値k
に応じてレジスタ10の所定の位置にセツトされ
た最頻値文字塊間距離pkを読み出し、k文字の存
在範囲の上限値として、pk+1/2・(pk/k)を算出 し、レジスタ12の所定の位置に転送する。
The mode character block distance detecting unit 9 calculates the frequency of the distance between character blocks that falls within the lower limit and upper limit of the prediction interval inputted from the prediction interval calculating unit 8, and calculates the frequency number of the distance between character blocks, which is inputted from the prediction interval calculation unit 8, into a frequency distribution table. 6, the distance p k between the most frequent character blocks is determined using a constant allowable width Δτ (where Δτ=1, 2, . . . ), and is stored in the register 10. still,
The most frequent character block distance p k is set at a predetermined position in the register 10 according to the value k of the counter 22. The existence interval calculation unit 11 calculates the value k of the counter 22.
Read the mode character block distance p k set at a predetermined position in the register 10 according to , to a predetermined position in the register 12.

尚、カウンタ22の値kが1の時、レジスタ1
0の所定の位置に格納された最頻値文字塊間距離
p1を読み出し、1文字の存在範囲の上限値とし
て、p1+1/2・p1を算出すると共に、1文字の存 在範囲の下限値として、p1−1/2・p1も同時に算 出し、レジスタ12の所定の位置に転送する。
Note that when the value k of the counter 22 is 1, the register 1
Distance between mode character blocks stored in a predetermined position of 0
Read p 1 and calculate p 1 + 1/2 · p 1 as the upper limit of the existence range of one character, and simultaneously calculate p 1 - 1/2 · p 1 as the lower limit of the existence range of one character. and transfers it to a predetermined position in the register 12.

文字塊間距離分散算出部13は、カウンタ22
の値kに応じて、レジスタ10にセツトされた最
頻値文字塊間距離pk及びレジスタ12にセツトさ
れたk文字の存在範囲の下限値pk-1+1/2 (pk-1/k−1)(但し、k=1の時p1−1/2p1とな
る) と上限値pk+1/2(pk/k)を用いて、制御装置7を 介して、頻度分布テーブル6を参照し、前述した
存在範囲に属するサンプル数nk個の文字塊間距離
Vi(i=1…nk)を順次読み出し、分散σ2 kを算出
し、分散σ2 k及びサンプル数nkを分散レジスタ14
の所定の位置に転送する。
The character block distance variance calculation unit 13 uses a counter 22
According to the value k of k-1) (however, when k=1, p 1 -1/2p 1 ) and the upper limit p k +1/2 (p k /k) are used to create a frequency distribution table via the control device 7. 6, the distance between the character blocks of n samples belonging to the above-mentioned existence range.
V i (i=1...n k ) is read out sequentially, the variance σ 2 k is calculated, and the variance σ 2 k and the number of samples n k are stored in the distribution register 14.
transfer to the specified location.

前述した分散σ2 kとして、例えば、 1/nkok Σi=1 (Vi−pk2 を計算することにより得られる。 The aforementioned variance σ 2 k can be obtained by calculating, for example, 1/n kok Σ i=1 (V i −p k ) 2 .

推定文字ピツチ演算部14は、カウンタ22の
値k及びレジスタ10の所定の位置に格納された
文字塊間距離p1,p2,…pk及び分散レジスタ13
の所定の位置に格納された分散σ2 1,σ2 2,…σ2 k及び
サンプル数n1,n2…nkを用いて、推定ピツチp∧(k)
及び推定誤差△εkを算出し、文字ピツチ情報レジ
スタ15へ格納する。
The estimated character pitch calculation unit 14 calculates the value k of the counter 22, the distances between character blocks p 1 , p 2 , ... p k stored in predetermined positions of the register 10, and the dispersion register 13.
Using the variances σ 2 1 , σ 2 2 , ...σ 2 k and the number of samples n 1 , n 2 ...n k stored in predetermined positions of
and estimated error Δε k are calculated and stored in the character pitch information register 15.

文字ピツチ情報レジスタ15に推定文字ピツチ
p∧(k)及び推定誤差△εkがセツトされると、制御装
置7によつてカウンタ22を1カウントアツプす
ると共に推定文字ピツチp∧(k)を予測区間算出部8
へ転送する。
When the estimated character pitch p∧(k) and estimation error △ε k are set in the character pitch information register 15, the control device 7 increments the counter 22 by one and predicts the estimated character pitch p∧(k). Section calculation unit 8
Transfer to.

前述した推定文字ピツチp∧(k)及び推定誤差△ε
(k)は、例えば第2図の説明において、示したよう
な計算式で求められる。
The estimated character pitch p∧(k) and estimation error △ε mentioned above
(k) can be obtained, for example, using the calculation formula shown in the explanation of FIG.

以上の動作が繰り返えされ、頻度分布テーブル
6上の文字塊間距離の頻度をすべて調べられる
と、文字ピツチの最適な推定値及び推定誤差△ε
(k)が文字ピツチ情報レジスタ15へセツトされ
る。1文字分離位置決定部5は、文字ピツチ情報
レジスタ15にセツトされた文字及び推定誤差△
ε(k)及び文字塊レジスタ4に格納された文字塊の
位置及び大きさに基づいて、一文字単位の文字イ
メージに分離する。1文字分離位置決定部5は公
知の技術を用いて行うことができる。
When the above operations are repeated and all the frequencies of the distances between character clusters on the frequency distribution table 6 are investigated, the optimal estimated value of character pitch and the estimation error △ε
(k) is set in the character pitch information register 15. The one-character separation position determining unit 5 selects the characters set in the character pitch information register 15 and the estimated error △.
Based on ε(k) and the position and size of the character block stored in the character block register 4, character images are separated into individual character images. The single character separation position determining unit 5 can be performed using a known technique.

なお、“,”や“.”等について、予め従来行な
われているノイズ除去方法にてこれ等を取り除い
た後に本発明装置にて文字ピツチの検出を行なえ
ばより効果は大きく、特に文字数の少ない場合に
おいて効果が大きい。
Note that the effect will be greater if characters such as "," and "." are removed in advance using a conventional noise removal method and then the character pitch is detected using the device of the present invention, especially when the number of characters is small. It is very effective in some cases.

以上、述べたように、本発明を用いることによ
り、予め文字ピツチがわからなくとも、また、文
字塊の接触や文字間の分離を含む文字イメージが
含まれていても正確に、文字ピツチを測定するこ
とが容易に実現できる。
As described above, by using the present invention, character pitch can be accurately measured even if the character pitch is not known in advance or even if character images include contact between character blocks or separation between characters. This can be easily achieved.

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

第1図は、本発明が適用される文字列イメージ
の一部を一例として示した図である。第2図は、
紙面上の文字塊間距離の頻度分布の一例を示す図
である。第3図は、本発明の具体的一実施例を示
す論理ブロツク図である。 図において、1は走査装置、2は文字列イメー
ジメモリ、3は文字塊抽出装置、4は文字塊レジ
スタ、6は頻度分布テーブル、8は予測区間算出
部、9は最頻値文字塊間距離検出部、10はレジ
スタ、11は存在区間算出部、12は、レジス
タ、13は、文字塊間距離分散算出部、14は分
散レジスタ14,15は推定文字ピツチ演算部、
16は文字ピツチ情報レジスタ、20及び21は
定数レジスタ、22はカウンタ、5は、1文字分
離位置決定部、7は制御装置である。
FIG. 1 is a diagram showing, as an example, a part of a character string image to which the present invention is applied. Figure 2 shows
It is a figure which shows an example of the frequency distribution of the distance between character blocks on a paper surface. FIG. 3 is a logic block diagram showing a specific embodiment of the present invention. In the figure, 1 is a scanning device, 2 is a character string image memory, 3 is a character block extraction device, 4 is a character block register, 6 is a frequency distribution table, 8 is a prediction interval calculation unit, and 9 is the distance between most frequent character blocks Detection unit, 10 is a register, 11 is an existence interval calculation unit, 12 is a register, 13 is a character block distance variance calculation unit, 14 is a variance register 14, 15 is an estimated character pitch calculation unit,
16 is a character pitch information register, 20 and 21 are constant registers, 22 is a counter, 5 is a one character separation position determination unit, and 7 is a control device.

Claims (1)

【特許請求の範囲】[Claims] 1 紙面上に記載された一連の文字列イメージを
走査し、一文字単位に分離するための文字ピツチ
を抽出する文字ピッチ検出装置において、前記一
連の文字列イメージから白地で分離可能な複数個
の文字塊を順次検出する手段と、前記複数個の文
字塊の始端位置の間又は終端位置の間の距離を示
す文字塊間距離を算出し、該文字塊間距離の頻度
を記憶する頻度分布テーブルと、前記複数個の文
字塊の高さから文字ピツチの予測区間を設定し、
前記頻度分布テーブルを用いて、最頻度値文字塊
間距離p1を該予測区間で検出する手段と、順次算
出される前記最頻値文字塊間距離pk(但し、k=
1,2……)からk文字の存在範囲を設定し、該
存在範囲に属する複数個の該文字塊間距離におけ
る分散σ2 k及びサンプル数nkを算出する手段と、
算出されたk個の前記最頻値文字塊間距離p1,p2
…pk及び該分散σ2 1,σ2 2…σ2 k及びサンプル数n1
n2…nkを用いて、推定文字ピツチp∧(k)及び推定誤
差を最光推定により算出する手段と、前記推定文
字ピツチp∧(k)から、文字ピツチの(k+1)倍と
なる該予測区間を設定し、前記頻度テーブルを用
いて該最頻度値文字塊間距離Pk+1を該予測区間内
で検出する手段とを有することを特徴とする文字
ピツチ検出装置。
1 In a character pitch detection device that scans a series of character string images written on a paper and extracts character pitch for separating each character, a plurality of characters that can be separated on a white background from the series of character string images are detected. means for sequentially detecting clusters; and a frequency distribution table for calculating distances between character clusters indicating distances between starting positions or terminal positions of the plurality of character clusters, and storing frequencies of the distances between character clusters. , setting a prediction interval for character pitch from the heights of the plurality of character blocks;
Means for detecting the distance p 1 between the most frequent value character blocks in the prediction interval using the frequency distribution table, and the distance p k (where k =
1, 2...), and means for calculating the variance σ 2 k and the number of samples n k in the distance between the plurality of character blocks belonging to the existing range;
The calculated distances between the k most frequent character blocks p 1 , p 2
...p k and the variance σ 2 1 , σ 2 2 ...σ 2 k and the number of samples n 1 ,
A means for calculating estimated character pitch p∧(k) and estimation error by optimum estimation using n 2 ...n k , and from said estimated character pitch p∧(k), it is (k+1) times the character pitch. A character pitch detection device characterized by comprising means for setting the prediction interval and using the frequency table to detect the most frequent value inter-character block distance P k+1 within the prediction interval.
JP58161421A 1983-09-02 1983-09-02 Character pitch detecting device Granted JPS6054084A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58161421A JPS6054084A (en) 1983-09-02 1983-09-02 Character pitch detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58161421A JPS6054084A (en) 1983-09-02 1983-09-02 Character pitch detecting device

Publications (2)

Publication Number Publication Date
JPS6054084A JPS6054084A (en) 1985-03-28
JPH0471232B2 true JPH0471232B2 (en) 1992-11-13

Family

ID=15734777

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58161421A Granted JPS6054084A (en) 1983-09-02 1983-09-02 Character pitch detecting device

Country Status (1)

Country Link
JP (1) JPS6054084A (en)

Also Published As

Publication number Publication date
JPS6054084A (en) 1985-03-28

Similar Documents

Publication Publication Date Title
EP0120334B1 (en) Letter pitch detection system
US5513277A (en) Measuring character and stroke sizes and spacings for an image
CN102982328A (en) Character recognition apparatus and character recognition method
EP0524797B1 (en) Image processing method and apparatus
JPH0471232B2 (en)
JPH0430070B2 (en)
JPH0468669B2 (en)
JPH0410087A (en) Base line extracting method
JPH0567237A (en) Method and device for blank recognition, character recognition device and english/japanese trasnslation device
JP2007280345A (en) Image processing apparatus, image direction determination method, and image direction determination program
JP2630261B2 (en) Character recognition device
JPH0326427B2 (en)
JP4129898B2 (en) Character size estimation method and apparatus
JPS60164878A (en) Device for detecting character pitch
JP4136257B2 (en) Character recognition device, character recognition method, and storage medium
JPS60164879A (en) Character separating device
JPS6054082A (en) Optical character reader
JPH04276885A (en) Character segmenting appartus
JP2778436B2 (en) Character segmentation device
JPH0259502B2 (en)
JP3411795B2 (en) Character recognition device
JPS62169286A (en) Character segmenting system
JPH0632074B2 (en) Normalization method
JPS6223350B2 (en)
JPH0676103A (en) Sentence area extracting device for document image