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

JPH0326427B2 - - Google Patents

Info

Publication number
JPH0326427B2
JPH0326427B2 JP58033068A JP3306883A JPH0326427B2 JP H0326427 B2 JPH0326427 B2 JP H0326427B2 JP 58033068 A JP58033068 A JP 58033068A JP 3306883 A JP3306883 A JP 3306883A JP H0326427 B2 JPH0326427 B2 JP H0326427B2
Authority
JP
Japan
Prior art keywords
character
width
pitch
block
value
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
JP58033068A
Other languages
Japanese (ja)
Other versions
JPS59158478A (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 JP58033068A priority Critical patent/JPS59158478A/en
Priority to DE8484102139T priority patent/DE3480667D1/en
Priority to EP84102139A priority patent/EP0120334B1/en
Priority to US06/585,130 priority patent/US4594732A/en
Publication of JPS59158478A publication Critical patent/JPS59158478A/en
Publication of JPH0326427B2 publication Critical patent/JPH0326427B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 本発明は紙面上に記載された文字列イメージを
個々に分離するための文字ピツチを自動的に検出
する文字ピツチ検出装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a character pitch detection device that automatically detects character pitches for separating individual character string images written on paper.

各種印刷文字群を光学的に読み取る装置(以下
OCRと呼ぶ)において、一連の文字を認識する
場合、各文字を1字毎に分離して文字認識部に選
出してやる必要がある。各文字を1字毎に分離す
るために必要となる情報として文字ピツチがあ
り、OCRの読み取り対象となる印刷物の大きさ
や種類が限定されれば、前もつて、与えることが
できる。しかし、最近のように、OCRにおける
読み取り対象も不特定な文字ピツチを持つ郵便物
や文書のような広汎な適用範囲のものがとられる
と、前以つて文字ピツチを知ることが出来ないた
め、紙面上の文字列イメージから文字ピツチを推
定する必要が生じる。
A device that optically reads various groups of printed characters (hereinafter referred to as
When recognizing a series of characters using OCR, it is necessary to separate each character and select them for the character recognition unit. Character pitch is information needed to separate each character individually, and if the size and type of printed matter to be read by OCR is limited, it can be provided in advance. 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 not possible 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, information obtained from the character width of a single character image extracted from a page, such as average character pitch, has been used. However, when the width of individual characters differs depending on the font or character category, such as with English printed characters, the error that occurs when separating characters is negligible between the average character pitch described above and the actual character pitch. It disappears. Therefore, for example, when using the average character pitch described above to separate a character string image that contains many characters in contact, it is possible to misjudge the number of characters in contact, or to incorrectly separate the characters. be cut off.

そこで、本発明の目的は、上述した問題点を解
決するために、白地で分離可能な複数個の文字イ
メージ即ち、文字塊から得られる平均高さ及び文
字塊幅に関する頻度情報に基づいて検出された1
文字幅となり、文字ピツチ検出の対象とするため
の有効区間とその有効区間より設定される許容ス
ペース幅から一文字塊の連続であると認められる
文字群を検出し、文字群内の文字数と文字群内の
文字塊幅と文字塊幅のスペース幅の累和値に基づ
いて、文字ピツチを推定するようにした文字ピツ
チ検出装置を、提供することにある。
SUMMARY OF THE INVENTION Therefore, in order to solve the above-mentioned problems, it is an object of the present invention to detect a plurality of character images that can be separated on a white background, based on frequency information regarding the average height and width of character blocks obtained from character blocks. Ta1
Detects a character group that is recognized as a continuous character block from the valid interval for character width and the allowable space width set from that valid interval, and calculates the number of characters in the character group and the character group. An object of the present invention is to provide a character pitch detection device that estimates character pitch based on the sum of the character block width and the space width of the character block width.

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

本発明によれば、紙面上で記載された一連の文
字列イメージを走査し、一文字単位に分離するた
めの文字ピツチを抽出する文字ピツチ検出装置に
おいて、一連の文字列イメージから白地で分離可
能な複数個の文字イメージ(以下文字塊と呼ぶ)
を順次、抽出し、文字塊の位置及び高さを検出す
る手段と、文字塊幅の頻度情報を格納する頻度テ
ーブルと、複数個の文字塊高さから平均高さを算
出し、可能な一文字幅の範囲を設定する手段と、
頻度テーブル内の頻度情報を参照して、一文字幅
の可能な範囲内で最頻値文字塊幅を検出する最頻
値文字幅検出手段と、最頻値文字幅に基づいて、
頻度テーブルを参照しながら、文字ピツチPsの
推定に有効な一文字幅の区間(以下、有効区間と
呼ぶ)を検出する有効区間抽出手段と、再び、一
連の文字イメージを走査し、抽出された複数個の
文字塊の位置及び幅を順次参照し、有効区間と有
効区間より設定される許容スペース幅から一文字
塊の連続であると認められる文字群を検出し、文
字群内に含まれる文字数(以下連続数と呼ぶ)と
文字群内の文字塊幅及び文字塊幅間のスペース幅
(以下、スペース幅と呼ぶ)における累和値を連
続数毎に検出する文字群幅抽出手段と、異なる連
続数毎に得られる、累和値及び累和値の数(以
下、サンプル数と呼ぶ)に基づいて、文字ピツチ
の最尤推定値を算出する、文字ピツチ推定手段と
を有することを特徴とした文字ピツチ検出装置が
得られる。
According to the present invention, in a character pitch detection device that scans a series of character string images written on paper and extracts character pitches for separating character by character, Multiple character images (hereinafter referred to as character blocks)
A means for sequentially extracting the character blocks and detecting the position and height of the character blocks, a frequency table that stores frequency information of the character block width, and a means for calculating the average height from the heights of multiple character blocks, and calculating the average height of a possible character. a means of setting a width range;
A mode character width detection means for detecting a mode character block width within a possible range of one character width by referring to frequency information in a frequency table;
A valid interval extraction means detects an interval of one character width (hereinafter referred to as an effective interval) that is effective for estimating character pitch Ps while referring to a frequency table, and again scans a series of character images and extracts a plurality of extracted characters. It sequentially refers to the position and width of each character block, detects a character group that is recognized as a continuous character block from the valid interval and the allowable space width set from the valid interval, and detects the number of characters contained in the character group (hereinafter referred to as a character group width extracting means for detecting the sum value of the character block width within the character group and the space width between the character block widths (hereinafter referred to as the space width) for each consecutive number; Character pitch estimation means for calculating a maximum likelihood estimation value of character pitch based on the cumulative sum value and the number of cumulative sum values (hereinafter referred to as the number of samples) obtained for each character pitch. A pitch detection device is obtained.

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

第1図は本発明が適用される文字列イメージの
一部を示した一例である。図において、斜線で示
した白地で分離可能な文字イメージ即ち、文字塊
を矩形領域で示しており、図中Vi及びHi(i=1
…9)は、各文字塊の幅及び高さを示している。
そこで、第1図を用いて、本発明の原理を要約す
る。一連の文字塊における位置、及び高さ及び幅
を検出すると共に、得られた一連の文字塊幅の頻
度分布(第2図参照)に基づいて、文字ピツチを
推定するのに有効な一文字幅の有効区間を求め
る。この有効区間内に属する文字塊を対象とし
て、連続数kの文字塊幅及びスペース幅(例え
ば、図中を参照すると、V4,V5,V6,V7及び
V4,5,V5,6,V6,7,V7,8であり連続数k=4とな
る)からその累和値V(k)(例えば、図中V4に相
当する)を求める。上述した連続数k個の文字塊
幅及びスペース幅は第k+2番目の文字塊の位置
及び第k+1番目の文字塊の位置及び幅によつて
求まる第k+1番目のスペース幅Vk+1k+2(図中
V8,9に相当する)が、後述する方法によつて定ま
る許容スペース幅よりも大きくなれば、第1番目
から第k番目までの文字塊幅及びスペース幅を、
連続数kを持つ文字塊及びスペース幅として求め
ることができる。
FIG. 1 is an example showing a part of a character string image to which the present invention is applied. In the figure, the white background indicated by diagonal lines shows separable character images, i.e., character blocks, as rectangular areas, and in the figure V i and H i (i=1
...9) indicates the width and height of each character block.
Therefore, the principle of the present invention will be summarized using FIG. In addition to detecting the position, height, and width of a series of character blocks, based on the frequency distribution of the obtained series of character block widths (see Figure 2), we can calculate the width of one character that is effective for estimating character pitch. Find the valid interval. Targeting the character blocks belonging to this valid interval, the character block width and space width of consecutive number k (for example, referring to the figure, V 4 , V 5 , V 6 , V 7 and
Find the cumulative sum value V(k) ( for example , corresponding to V4 in the figure) . The character block width and space width of the above-mentioned consecutive number k are the k+1st space width V k+1 , k+ determined by the position of the k+2nd character block and the position and width of the k+ 1st character block . 2 (in the figure
V (corresponding to 8,9 ) is larger than the allowable space width determined by the method described later, the character block width and space width from the 1st to the kth
It can be determined as a character block with a consecutive number k and a space width.

尚、図における文字塊の幅V8のように前述で
示したような方法により連続数k(但し、k≧1)
の文字塊が得られないような孤立する1個の文字
ピツチを推定するのに有効な文字幅が得られた
時、その文字塊幅を前述したk=1の時の累積値
V(1)として、検出することも可能である。
In addition, as shown in the width V 8 of the character block in the figure, the consecutive number k (however, k≧1) is determined by the method shown above.
When a character width that is effective for estimating the pitch of an isolated character where no character block is obtained is obtained, the character block width is the cumulative value V(1) when k = 1 as described above. It is also possible to detect it as

このようにして、異なる連続数k毎に得られた
サンプル数n(k)の累和値V(k)に基づいて、最適な
文字ピツチPsが推定される。尚、以下累和値V(k)
を連続数kで割つた値1/k・V(k)を一文字予測幅 と呼ぶことにする。また、サンプル数n(k)の累和
値の平均累和値を累和値(k)と表わすことにす
る。さて、累和値(k)を用いた一文字予測幅1/k V(k)の性質を簡単に述べて置くと累和値(k)は、
隣接する文字幅間の間隔即ち、スペース幅も考慮
されているために一文字予測幅1/k・(k)は、連 続数及びサンプル数n(k)が大きくなるとともに文
字ピツチPsとの誤差が小さくなり、文字ピツチPs
の良好な推定値となる。
In this way, the optimal character pitch P s is estimated based on the cumulative sum value V(k) of the number of samples n(k) obtained for each different number of consecutive sequences k. In addition, the following cumulative sum value V(k)
The value 1/k·V(k) divided by the consecutive number k is called the predicted width of one character. Further, the average cumulative sum value of the cumulative sum values of the number of samples n(k) will be expressed as cumulative sum value (k). Now, to briefly describe the properties of the predicted one-character width 1/k V(k) using the cumulative sum value (k), the cumulative sum value (k) is
Since the interval between adjacent character widths, that is, the space width, is also taken into consideration, the predicted width of one character 1/k・(k) increases as the number of consecutive characters and the number of samples n(k) increases, and the error with the character pitch P s increases. becomes smaller, and the character pitch P s
gives a good estimate of .

そこで、文字ピツチPsの推定値を簡単に得る方
法として、前述した連続数kのうち、最長連続数
MAX(k)を持つ累和数(k)を連続数kで除算して
得られる一文字予測幅1/MAX(k)・(MAX(k)) を文字ピツチPsの推定値として得ることができ
る。一方、より精確な文字ピツチPsを推定する場
合にはl個の異なる連続数kiに対して、得られた
累和値(ki)及び連続数Ki(但しi=1…l)
に基づいて、li=1 w(ki、n(ki)・V(ki)/kiを算出す ることによつて文字ピツチPsの最良な線形推定
値を得ることができる。
Therefore, as a method to easily obtain the estimated value of character pitch P s , the longest consecutive number among the consecutive numbers k mentioned above is
The predicted width of one character 1/MAX(k)・(MAX(k)) obtained by dividing the cumulative sum (k) with MAX(k) by the consecutive number k can be obtained as the estimated value of character pitch P s . can. On the other hand, when estimating a more accurate character pitch P s , the obtained cumulative sum value (ki) and the consecutive number K i (where i = 1...l) are obtained for l different consecutive numbers k i .
The best linear estimate of character pitch Ps can be obtained by calculating li=1 w(k i , n(k i )·V(ki)/ki based on .

尚、上述して係数w(ki、n(ki))は、連続数
k及びサンプル数n(ki)によつて定まり例えば
ki・√(i)/li=1 ki・√(i)より得られる。
更に、前述した文字ピツチ推定値は、加算部、乗
算部、除算部によつて、容易に計算されることは
言うまでもない。更に、加算や乗算部・除算部の
順序性を変えることによつて、計算時間を減少さ
せ、計算誤差を減少させるようにすることも可能
である。更に係数w(ki、n(ki))を用いず、単
に線形和で表わされる推定値としても良い。
As mentioned above, the coefficient w(k i , n(k i )) is determined by the number of consecutive sequences k and the number of samples n(k i ), and for example,
It is obtained from k i・√( i )/ li=1 k i・√( i ).
Furthermore, it goes without saying that the above-mentioned character pitch estimate value can be easily calculated by an addition section, a multiplication section, and a division section. Furthermore, by changing the order of the addition, multiplication, and division sections, it is possible to reduce calculation time and calculation errors. Furthermore, the coefficient w(k i , n(k i )) may not be used, and the estimated value may be simply expressed as a linear sum.

第2図は、第1図で示したような紙面上の文字
塊幅の頻度分布の一例を示している。図中、複数
個の文字塊幅に関する頻度分布の横軸Vは、文字
塊幅Vの値を示しており、縦軸NUMは、任意の
文字塊幅の値における頻度値を示している。
FIG. 2 shows an example of the frequency distribution of character block widths on the paper as shown in FIG. In the figure, the horizontal axis V of the frequency distribution regarding a plurality of character block widths indicates the value of the character block width V, and the vertical axis NUM indicates the frequency value at an arbitrary character block width value.

そこで、本発明において、頻度分布に基づいて
前述した文字ピツチPsを推定するのに有効な複数
個の文字塊幅は、次のようにして求められる。最
初に、図に示した頻度分布から1文字となり得る
可能な文字塊幅A1を求める。ここで、区間A1
は、第1図で示した複数個の文字塊高さH1,H2
…の平均高さHnと、係数α1,α2(但し、α1<α2
から設定することができる。
Therefore, in the present invention, a plurality of character block widths that are effective for estimating the character pitch Ps described above based on the frequency distribution are determined as follows. First, a possible character block width A1 that can be one character is determined from the frequency distribution shown in the figure. Here, section A1
are the heights H 1 and H 2 of multiple character blocks shown in Figure 1.
... average height H n and coefficients α 1 , α 2 (however, α 1 < α 2 )
It can be set from

尚、平均高さHnは、複数個の文字高さの最大
値に基づいて、高さの上限値と下限値を設けて、
一定の区間内の平均高さとして算出してもよい。
次に、区間A1内で、一定許容幅△τ(図中△τ
=3)で、最頻度を有する区間Csを求め、区間Cs
から始めて、その上限値Usを頻度分布を参照し
ながら、増加する方向に更新することによつて、
文字ピツチPsを推定するのに有効な文字塊幅の有
効区間C1の上限値U1、下限値L1とする。ここで、
下限値L1は、区間Csの下限値Lsから頻度分布を
用いて更新を行なわない場合には、例えば欧文印
字文字における“1”のような極端に文字幅が小
さいものや、区読点及び一文字が2文字以上に分
離したものを除去することが可能となる。尚、例
えば、文字幅の変動が少ないような場合には、区
間Csから始めて、その下限値Lsを、頻度分布を参
照しながら減少する方向に更新して、有効区間
C1に属する文字塊幅の数を増やし推定の信頼性
を上げることも可能である。
The average height H n is determined by setting upper and lower height limits based on the maximum value of multiple character heights.
It may also be calculated as the average height within a certain section.
Next, within section A1, a certain allowable width △τ (△τ
= 3), find the interval C s with the most frequency, and calculate the interval C s
Starting from , by updating its upper limit U s in an increasing direction while referring to the frequency distribution,
Let the upper limit value U 1 and the lower limit value L 1 of the valid section C 1 of the character block width effective for estimating the character pitch P s . here,
If the lower limit value L 1 is not updated using the frequency distribution from the lower limit value L s of the interval C s , It is also possible to remove one character separated into two or more characters. For example, if there is little variation in character width, start from the interval C s and update its lower limit value L s in a decreasing direction while referring to the frequency distribution to determine the effective interval.
It is also possible to increase the reliability of estimation by increasing the number of character block widths belonging to C 1 .

第3図は、本発明の具体的一実施例を示す論理
ブロツク図である。走査装置1は、紙面上の記載
された、文字列イメージを光学的に走査して、電
気信号に変換し、2値量子化後、文字列イメージ
メモリ2へ書き込む。3は、文字塊抽出装置であ
り、文字列イメージメモリ2に格納された複数個
の文字列イメージから文字塊を順次抽出し、各文
字塊の始端位置及び大きさを文字塊レジスタ4へ
格納する。尚、文字塊の大きさは、文字塊幅及び
文字塊高さを表わすものとする。をた、このよう
な文字塊抽出装置は、例えば、同一出願人による
特願昭56−27512号明細書で示されている技術を
用いて求めることができる。文字塊レジスタ4に
格納された複数個の文字塊幅は、制御装置7へ、
順次送られる。制御装置7は、順次、転送される
文字塊幅をメモリから構成される頻度テーブル6
のアドレスに変換し、変換したアドレスに対応す
る頻度テーブル6の内容を、読み出し、インクリ
メントした後、頻度テーブル6内の同一記憶場所
に再度書き込まれる。このようにして、頻度テー
ブル6内に文字列イメージメモリ2より抽出され
た文字塊幅Vの頻度値が、頻度テーブル6のアド
レスV番地に格納されることによつて、第2図で
示したような文字塊幅に関する頻度分布が頻度テ
ーブル6に格能されることになる。
FIG. 3 is a logic block diagram showing a specific embodiment of the present invention. The scanning device 1 optically scans the character string image written on the paper, converts it into an electrical signal, and writes it into the character string image memory 2 after binary quantization. 3 is a character block extraction device, which 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 a character block register 4. . Note that the size of a character block represents the character block width and character block height. In addition, such a character block extraction device can be obtained using, for example, the technique disclosed in Japanese Patent Application No. 56-27512 filed by the same applicant. The plurality of character block widths stored in the character block register 4 are sent to the control device 7,
Sent sequentially. The control device 7 sequentially stores the widths of character chunks to be transferred in a frequency table 6 configured from memory.
The contents of the frequency table 6 corresponding to the converted address are read out and incremented, and then written to the same storage location in the frequency table 6 again. In this way, the frequency value of the character block width V extracted from the character string image memory 2 in the frequency table 6 is stored in the address V of the frequency table 6, and the frequency value shown in FIG. The frequency distribution regarding the character block width is displayed in the frequency table 6.

尚、頻度テーブル6は、最初0に初期化されて
いるとする。一方、制御装置7によつて、文字塊
レジスタ4に格能された複数個の文字塊高さの平
均値Hnが求められ、1文字幅クラス初期情報抽
出手段5へ送られる。1文字幅クラス初期情報抽
出手段5は、平均の文字塊高さHnによつて設定
される範囲(α1Hn〜α2Hn)内において、一定許
容幅△τで最頻値を持つ第2図で示しようた区間
Cs(Ls、Us)を頻度テーブル6によつて求め、そ
の上限値Us及び下限値Lsを初期情報とし、初期
情報レジスタ8に格納される。尚、1文字幅クラ
ス初期情報抽出手段5は、同一出願人による同一
出願日の出願明細書(文字分離装置)で示される
技術を用いて求めることができる。9は、文字ピ
ツチPsを検出するのに有効な文字塊幅の有効区間
を検出するための有効文字塊幅検出手段である。
有効文字塊幅検出手段9において、初期情報レジ
スタ8に格納された上限値Usがカウンタ91に
セツトされると、1カウントアツプされ、カウン
ター91の内容である文字塊幅に対応する頻度値
を、制御装置7によつて、頻度テーブル6から読
み出し、頻度値レジスタ92に格納された後、ゼ
ロ検出回路93によつて、0か否かの判定か行な
われる。ゼロ検出回路93によつて、頻度値レジ
スタ92の内容が0であると判定されると、カウ
ンタ91の内容が、有効文字塊幅の上限値U1
して、レジスタ10へセツトされる。一方、ゼロ検
出回路93によつて、頻度値レジスタ92の内容
が0でないと判定されると、カウンター91が、
1カウントアツプされ、上述した動作が繰り返え
される。尚、初期情報レジスタ8の内容である下
限値Lsは制御装置7によつて、更新されずに、レ
ジスタ10に有効文字塊幅の下限値L1として、
セツトされるものとする。尚、有効文字幅検出手
段は、初期情報レジスタ8に格納された上限値
Usを増加させ、頻度テーブル6を参照しながら、
文字塊幅の頻度値が極小値となる文字幅を有効区
間の上限値U1として検出するようにすることも
可能であることは言うまでもない。11は、文字
群幅抽出手段である。文字群幅抽出手段11は、
連続数k(但し、k≧2)の有効区間に属する文
字塊V1,V2…及びスペース幅V1,2V2,3…Vk,k+1
累和値V(k)を検出し、連続数k毎に抽出されたサ
ンプル数n(k)の累和値V(k)を観測テーブル12へ
順次格納する。文字ピツチ推定手段13は、観測
テーブル12に順次格納された連続数k毎に抽出
されたサンプル数n(k)個の累和値V(k)に基づい
て、文字ピツチPsの最適な推定値が求められる。
It is assumed that the frequency table 6 is initially initialized to 0. On the other hand, the control device 7 calculates the average value H n of the heights of the plurality of character blocks stored in the character block register 4 and sends it to the 1-character width class initial information extraction means 5 . The 1-character width class initial information extraction means 5 extracts the mode with a constant allowable width △τ within the range (α 1 H n to α 2 H n ) set by the average character block height H n . The section shown in Figure 2 with
C s (L s , U s ) is determined using the frequency table 6, and its upper limit value U s and lower limit value L s are used as initial information and stored in the initial information register 8. Note that the 1-character width class initial information extraction means 5 can be obtained using the technique shown in the application specifications (character separation device) filed by the same applicant and filed on the same date. Reference numeral 9 denotes an effective character block width detection means for detecting an effective range of character block widths that are effective for detecting character pitch Ps .
In the effective character block width detection means 9, when the upper limit value Us stored in the initial information register 8 is set in the counter 91, the count is increased by 1, and the frequency value corresponding to the character block width, which is the content of the counter 91, is , is read from the frequency table 6 by the control device 7 and stored in the frequency value register 92, and then the zero detection circuit 93 determines whether it is 0 or not. When the zero detection circuit 93 determines that the content of the frequency value register 92 is 0, the content of the counter 91 is set in the register 10 as the upper limit value U1 of the effective character block width. On the other hand, when the zero detection circuit 93 determines that the content of the frequency value register 92 is not 0, the counter 91
The count is increased by 1, and the above operation is repeated. Note that the lower limit value Ls , which is the content of the initial information register 8, is not updated by the control device 7, and is stored in the register 10 as the lower limit value L1 of the effective character block width.
shall be set. Note that the effective character width detection means uses the upper limit value stored in the initial information register 8.
While increasing U s and referring to frequency table 6,
It goes without saying that it is also possible to detect the character width for which the frequency value of the character block width is the minimum value as the upper limit value U1 of the valid interval. 11 is a character group width extraction means. The character group width extraction means 11 is
The cumulative sum value V(k) of character blocks V 1 , V 2 ... and space widths V 1,2 V 2,3 ...V k,k+1 belonging to a valid interval with a consecutive number k (k≧2) is calculated as follows: The cumulative sum value V(k) of the detected number of samples n(k) extracted every consecutive number k is sequentially stored in the observation table 12. The character pitch estimating means 13 estimates the optimal character pitch P s based on the cumulative sum value V(k) of n(k) samples extracted for each consecutive number k sequentially stored in the observation table 12. A value is required.

本発明における文字ピツチ推定手段13の1形
態として、最大値検出回路と平均値算出回路(図
中省略)から構成された簡単な回路によつても実
現できる。即ち、観測テーブル12から最長連続
数MAX(k)を持つ累和値V(MAX(k))を、最大値
検出回路によつて、検出し、平均値算出回路によ
つて、n(MAX(k))個の抽出された累和値V
(MAX(k))の平均累和値(MAX(k))を文字ピ
ツチPsの推定値として検出される。14は、一文
字分離手段である。一文字分離手段14は、文字
ピツチ推定手段13によつて得られた文字ピツチ
Ps及び文字塊レジスタ4に格納された文字塊の位
置及び大きさ情報に基づいて、一文字単位の分離
が行なわれ、公知の技術を用いて行なうことがで
きる。
One form of the character pitch estimating means 13 according to the present invention can be realized by a simple circuit consisting of a maximum value detection circuit and an average value calculation circuit (not shown). That is, the cumulative sum value V(MAX(k)) having the longest consecutive number MAX(k) from the observation table 12 is detected by the maximum value detection circuit, and the cumulative sum value V(MAX(k)) having the longest consecutive number MAX(k) is detected by the average value calculation circuit. k)) extracted cumulative sum values V
The average cumulative sum value (MAX(k)) of (MAX(k)) is detected as the estimated value of character pitch Ps . 14 is a character separation means. The character separation means 14 extracts the character pitch obtained by the character pitch estimation means 13.
Separation is performed on a character-by-character basis based on Ps and the position and size information of the character block stored in the character block register 4, and can be performed using known techniques.

弟4図は、文字群幅抽出手段の具体的一実施例
を示す論理ブロツク図である。
Figure 4 is a logical block diagram showing a specific embodiment of the character group width extraction means.

尚、信号線の末尾にsを付けることによりその
信号を表わすものとする。最初に、制御装置7に
よつて、文字塊レジスタ4に格納された一連の文
字塊幅V1,V2……は、抽出された順序でレジス
タ20に格納され、更に一連の文字塊の幅及び位
置に基づいて、前述したスペース幅V1,2,V2,3
…が算出され、順次、レジスタ21に格納されて
いるものとする。比較部22は、制御装置7によ
つて順次転送されるレジスタ20に格納された文
字塊幅Vi(但し、iは抽出された順序を示す)が
レジスタ10に格納された有効区間に属するか否
かを調べ、有効区間に属するものであれば、文字
塊検知信号101sを“1”にし、文字塊幅Vi
レジスタ23に格納する。有効区間に属さなけれ
ば、文字塊検知信号101sを“0”にする。
Note that the signal is represented by adding s to the end of the signal line. First, the control device 7 stores the series of character block widths V 1 , V 2 . . . stored in the character block register 4 in the extracted order in the register 20, and and the space widths V 1,2 , V 2,3 . . . based on the position.
... are calculated and stored in the register 21 in sequence. The comparison unit 22 determines whether the character block widths V i (where i indicates the order of extraction) stored in the register 20 that are sequentially transferred by the control device 7 belong to the valid interval stored in the register 10. If it belongs to the valid section, the character block detection signal 101s is set to "1" and the character block width V i is stored in the register 23. If it does not belong to the valid section, the character block detection signal 101s is set to "0".

文字塊検知信号101sが“1”になると、制
御装置7は、レジスタ21に格納されたスペース
幅Vi,i+1を比較部25へ転送する。尚、許容値レ
ジスタ24には第3図で述べた1文字幅クラス初
期情報抽出手段5によつてセツトされた初期情報
レジスタ8の内容である一文字幅内の最頻値に基
づいて、設定された許容スペース幅を、制御装置
7によつて、予め、セツトされているものとす
る。また、許容値レジスタ24の内容は例えば、
一文字以上の空白などによる単語の区切り等を検
知するために用いられる。文字塊検知信号101
sが“1”となると、制御装置7によつて、レジ
スタ20に格納されたスペース幅Vi,i+1が比較部
25へ送られる。比較部25は、許容値レジスタ
24の内容と、スペース幅Vi,i+1とを比較し、ス
ペース幅Vi,i+1が許容値レジスタの内容よりも小
さければ、区切り検知信号102sを“1”に
し、スペース幅Vi,i+1が許容値レジスタの内容よ
りも大きくなれば、区切り検知信号102sを
“0”にする。区切り検知信号102sが“1”
になると、制御装置7によつて、スペース幅
Vi,i+1及び、レジスタ23に格納された文字塊幅
Yiを加算部26へ送られる。加算部26は、前述
した文字塊幅Viとスペース幅Vi,i+1及び累和値レ
ジスタ27の内容とを、加算し、累和値レジスタ
27へ格納する。尚、累和値レジスタ27は最初
0にセツトされているとする。連続数カウンター
28は、前述した文字塊検知信号101sが
“1”となることによつて有効区間に属する文字
塊幅が検出されると、制御装置7によつて、1カ
ウントアツプされる。尚、連続数カウンター28
は、当初0にリセツトされているとする。以上の
動作が文字塊検知信号101sが“0”になるか
あるいは区切り検知信号102sが“0”になる
まで行なわれる。
When the character block detection signal 101s becomes “1”, the control device 7 transfers the space width V i,i+1 stored in the register 21 to the comparison unit 25. Note that the allowable value register 24 is set based on the most frequent value within one character width, which is the content of the initial information register 8 set by the one character width class initial information extraction means 5 described in FIG. It is assumed that the allowable space width has been set in advance by the control device 7. Furthermore, the contents of the tolerance register 24 are, for example,
It is used to detect word breaks caused by one or more blank spaces. Character block detection signal 101
When s becomes “1”, the control device 7 sends the space width V i,i+1 stored in the register 20 to the comparator 25 . The comparator 25 compares the contents of the tolerance register 24 with the space width V i,i+1 , and if the space width V i,i+1 is smaller than the contents of the tolerance register 24, the comparator 25 outputs the delimiter detection signal 102s. If the space width V i,i+1 becomes larger than the content of the tolerance register, the delimiter detection signal 102s is set to "0". The break detection signal 102s is “1”
, the space width is controlled by the control device 7.
V i,i+1 and character block width stored in register 23
Y i is sent to the addition section 26 . The adding unit 26 adds the character block width V i described above, the space width V i,i+1 , and the contents of the cumulative sum value register 27 and stores the result in the cumulative sum value register 27 . It is assumed that the cumulative sum register 27 is initially set to 0. The consecutive number counter 28 is incremented by one by the control device 7 when the aforementioned character block detection signal 101s becomes "1" and a character block width belonging to the valid section is detected. In addition, consecutive number counter 28
It is assumed that is initially reset to 0. The above operations are performed until the character block detection signal 101s becomes "0" or the delimiter detection signal 102s becomes "0".

次に、文字塊検知信号101sが“0”になる
と、有効区間に属さない文字塊幅が検知されたと
解釈し、制御装置7によつて、連続数カウンター
28および累和値レジスタ27の内容が観測テー
ブル12に格納され、カウンター28の内容をリ
セツトする。尚、カウンター28の内容が0であ
れば観測テーブル12へのセツトは行なわれない
とする。一方、区切り検知信号102sが“0”
になると単語間のスペース等が検知されたと解釈
し、制御装置7によつて連続数カウンター28を
1減少させ、連続数カウンター28及び累和値レ
ジスタ27の内容が観測テーブル12に格納さ
れ、カウンター28の内容をリセツトする。
Next, when the character block detection signal 101s becomes "0", it is interpreted that a character block width that does not belong to the valid section has been detected, and the contents of the consecutive number counter 28 and cumulative sum register 27 are changed by the control device 7. It is stored in the observation table 12, and the contents of the counter 28 are reset. It is assumed that if the content of the counter 28 is 0, no setting is performed in the observation table 12. On the other hand, the break detection signal 102s is “0”
When this happens, it is interpreted that a space between words has been detected, and the control device 7 decrements the consecutive number counter 28 by 1, and the contents of the consecutive number counter 28 and cumulative sum register 27 are stored in the observation table 12, and the counter Reset the contents of 28.

尚、区切り検知信号102sが“0”になり、
連続数カウンター28が1である場合制御装置7
によつて、レジスタ23の内容である文字塊幅及
び連続数カウンター28の内容(但し、内容は1
である)を観測テーブル12に格納してもよい。
Note that the break detection signal 102s becomes "0",
If the consecutive number counter 28 is 1, the control device 7
The character block width, which is the content of the register 23, and the content of the consecutive number counter 28 (however, the content is 1
) may be stored in the observation table 12.

以上の動作を、レジスタ20に順次格納された
すべての文字塊幅に対して行なわれる。
The above operation is performed for all character block widths sequentially stored in the register 20.

第5図は、第3図で示した文字ピツチ推定手段
の他の一形態を示す具体的一実施例のブロツク図
である。
FIG. 5 is a block diagram of a specific embodiment of another form of the character pitch estimating means shown in FIG. 3.

尚、図において、文字ピツチ推定手段13は点
線で示されている。また、観測テーブル12には
第3図および第4図で示した文字群幅抽出手段1
1によつて、l個の異なる連続数ki(但しi=1
……l)毎に、サンプル数n(ki)個の累和値V
(ki)が格納されるとし、また、前述した連続数
kiの累和値V(ki)が順次セツトされる時に、制
御装置7によつて、サンプル数n(ki)がカウン
トされ、観測テーブル12の所定のエリアに格能
されているとする。最初に、観測テーブル12内
の連続数ki及びサンプル数n(ki)は順次、積算
部31へ送られると同時に、観測テーブル内の連
続数kiを待つn(ki)個の累和値V(ki)は、加算
部32へ送られる。積算部31は、連続数kiとサ
ンプル数n(ki)の積をki・n(ki)を求め、除算
部33へ積ki・n(ki)を転送する。加算部32
はn(ki)個の累和値V(ki)を加算し、除算部3
3は、n(ki)個の累和値V(ki)の加算値を積
ki・n(ki)で除算することによつて、連続数ki
り得られる一文字予測幅1/ki・(ki)、(但し、 V(ki)はサンプル数n(ki)個の平均累和値で
ある)を積算部35へ送られる。34は係数テー
ブルであり、前述した連続数ki及びサンプル数n
(ki)によつて定まる係数α(ki、n(ki))が格納
されている。例えば、係数α(ki、n(ki))の一
例として値ki・√(i)が連続数ki及びサンプル
数n(ki)に対して、決めることができる。積算
部35に、連続数ki及びサンプル数n(ki)個よ
り得られる一文字予測幅1/ki・(ki)が送られ ると、制御装置7によつて、係数テーブル34よ
り係数α(ki、n(ki))が積算部35に読み出さ
れると同時に係数加算部36へも送られる。積算
部35において係数α(ki、n(ki))と連続数Ki
より得られる一文字予測幅1/ki・(ki)の積が 計算され、加算部37へ送られる。加算部37
は、順次送られるl個の異なる連続数kiより得ら
れる重み付けられた一文字予測幅α(ki、n
(ki))・1/ki・(ki)の累和値li=1 α(ki、n (ki))・1/ki・(ki)が算出され、除算38へ送 られる。
In the figure, the character pitch estimating means 13 is indicated by a dotted line. The observation table 12 also includes the character group width extraction means 1 shown in FIGS. 3 and 4.
1, l different consecutive numbers k i (where i=1
...l), the cumulative sum value V of the number of samples n(k i )
(k i ) is stored, and the consecutive number mentioned above
When the cumulative sum value V(k i ) of k i is sequentially set, the number of samples n(k i ) is counted by the control device 7 and stored in a predetermined area of the observation table 12. do. First, the consecutive number k i and the number n(k i ) of samples in the observation table 12 are sequentially sent to the integration unit 31, and at the same time, n( k i ) cumulative The sum value V(k i ) is sent to the adding section 32. The integrating unit 31 calculates k i· n (k i ) as the product of the number of consecutive samples k i and the number of samples n(k i ), and transfers the product k i ·n(k i ) to the dividing unit 33 . Addition section 32
adds n(k i ) cumulative sum values V(k i ), and divides the dividing unit 3
3 is the sum of n(k i ) cumulative sum values V(k i ).
By dividing by k i · n (k i ), the predicted width of one character obtained from the consecutive number k i is 1/k i · (k i ), (where V (k i ) is the number of samples n (k i ) is sent to the integrating section 35. 34 is a coefficient table, in which the number of consecutive sequences k i and the number of samples n described above are
A coefficient α(k i , n(k i )) determined by (k i ) is stored. For example, as an example of the coefficient α(k i , n(k i )), the value k i ·√( i ) can be determined for the consecutive number k i and the sample number n(k i ). When the predicted one-character width 1/k i (k i ) obtained from the consecutive number k i and the number of samples n (k i ) is sent to the integration unit 35, the control device 7 calculates the coefficient from the coefficient table 34. α(k i , n(k i )) is read out to the integration unit 35 and simultaneously sent to the coefficient addition unit 36 . In the integration unit 35, the coefficient α(k i , n(k i )) and the consecutive number K i
The product of the predicted one-character width 1/k i ·(k i ) is calculated and sent to the addition section 37. Addition section 37
is the weighted one-character prediction width α(k i , n
(k i ))・1/k i・(k i ) cumulative sum li=1 α(k i , n (k i ))・1/k i・(k i ) is calculated and divided Sent to 38.

一方、係数加算部37は、順次送られるl個の
係数α(ki、n(ki))の累和値li=1 α(ki、n(ki))
が算出され、除算部38へ送られる。除算部38
において、加算部37の出力であるli=1 α(ki、n
(ki))・1/ki・(ki)を係数加算部36の出力で あるl個の係数値li=1 α(ki、n(ki))で割算され、
文字ピツチPsの線形推定値が として得られる。
On the other hand, the coefficient adder 37 calculates the cumulative sum li=1 α(k i , n(k i )) of l coefficients α(k i , n(k i )) sent sequentially.
is calculated and sent to the division section 38. Division section 38
, the output of the adder 37 is li=1 α(k i , n
(k i ))・1/k i・(k i ) is divided by l coefficient values li=1 α(k i , n(k i )) which are the outputs of the coefficient adder 36,
The linear estimate of character pitch P s is obtained as.

尚、第5図で示した文字ピツチ手段13は、第
1図を参照して本発明の原理を説明した最良な線
形推定値li=1 w(ki、n(ki)・1/ki・(ki)に関し て、係数w(ki、n(ki))の除算回数を減少させ
るようにした実施例の1つである。即ち、一文字
予測幅1/ki・(ki)は係数w(ki、n(ki))に無 関係に求まるから、 W(ki、n(ki)) =α(ki、n(ki))/li=1 α(ki、n(ki)) の関係が成り立つ性質を用いている。このよう
に、前述した最良な線形推定値の、求め方とし
て、用いるハードウエア素子によつては、処理時
間や計算精度も考慮して、除算回数等を減少させ
る必要があれば、例えば累和値V(ki)に関する
サンプル数n(ki)及び連続数kiによる除算計算
を最初に行なわず、最後に行なうようにすること
も可能であることは言うまでもない。
The character pitch means 13 shown in FIG. 5 uses the best linear estimation value li=1 w(k i , n(k i )・1 This is one of the embodiments in which the number of divisions of the coefficient w(k i , n(k i )) is reduced with respect to /k i ·(k i ).In other words , the predicted width of one character is 1/k i ·( k i ) can be found regardless of the coefficient w(k i , n(k i )), so W(k i , n(k i )) = α(k i , n(k i ))/ li= 1 α(k i , n(k i )).In this way, the method of obtaining the best linear estimate described above may take some processing time depending on the hardware elements used. If it is necessary to reduce the number of divisions, taking into consideration calculation accuracy, for example, without first performing the division calculation using the number of samples n(k i ) and the number of consecutive k i regarding the cumulative sum value V(k i ), It goes without saying that it is also possible to do it last.

以上、述べたように、本発明を用いることによ
り、予め文字ピツチがわからなくとも、また、文
字間の接触や文字間の分離を含む文字イメージが
含まれていても正確に、文字ピツチを測定するこ
とが容易に実現できる。
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 or separation between characters. This can be easily achieved.

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

第1図は、本発明が適用される文字列イメージ
の一部を一例として示した図である。第2図は、
紙面上の文字塊幅の頻度分布の一例を示す図であ
る。第3図は、本発明の具体的一実施例を示す論
理ブロツク図である。第4図は、文字群抽出手段
11の具体的一実施例を示すブロツク図である。
第5図は、文字ピツチ推定手段の他の一形態を示
す具体的一実施例を示すブロツク図である。 図において、1は走査装置、2は文字列イメー
ジメモリ、3は文字塊抽出装置、4は文字塊レジ
スタ、5は1文字幅クラス初期情報抽出手段、6
は頻度テーブル、7は制御装置、8は初期情報レ
ジスタ、9は有効文字塊幅検出手段、10はレジ
スタ、11は文字群幅抽出手段、12は観測テー
ブル、13は文字ピツチ推定手段、14は一文字
分離手段である。
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
FIG. 3 is a diagram illustrating an example of the frequency distribution of character block widths on paper. FIG. 3 is a logic block diagram showing a specific embodiment of the present invention. FIG. 4 is a block diagram showing a specific embodiment of the character group extraction means 11.
FIG. 5 is a block diagram showing a specific embodiment of another form of character pitch estimating means. 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, 5 is a 1 character width class initial information extraction means, 6
1 is a frequency table, 7 is a control device, 8 is an initial information register, 9 is an effective character block width detection means, 10 is a register, 11 is a character group width extraction means, 12 is an observation table, 13 is a character pitch estimation means, and 14 is a It is a single character separation means.

Claims (1)

【特許請求の範囲】[Claims] 1 紙面上に記載された一連の文字列イメージを
走査し、一文字単位に分離するための文字ピツチ
を抽出する文字ピツチ検出装置において、前記一
連の文字列イメージから白地で分離可能な複数個
の文字塊を順次抽出し、該文字塊の位置と幅と高
さを検出する手段と、複数個の該文字塊の幅の頻
度分布を検出する手段と、前記複数個の文字塊か
ら算出される平均的高さを基にして前記頻度分布
を調べ、一文字幅となり得る区間を有効区間とし
て検出する有効区間検出手段と、前記複数個の文
字塊において、該有効区間と該有効区間より設定
される許容スペース幅から一文字塊の連続である
と認められる文字群を検出し、該文字群に含まれ
る文字数と該文字塊幅及び該文字塊幅間のスペー
ス幅の累和値を算出する文字群幅抽出手段と、前
記文字数毎の該累和値及び該累和値の数から文字
ピツチの最尤推定を行う文字ピツチ推定手段とを
有することを特徴とした文字ピツチ検出装置。
1. 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, a plurality of characters that can be separated on a white background from the series of character string images are detected. means for sequentially extracting blocks and detecting the position, width, and height of the character blocks; means for detecting the frequency distribution of the widths of the plurality of character blocks; and an average calculated from the plurality of character blocks. valid interval detecting means for examining the frequency distribution based on the target height and detecting an interval that can be one character wide as a valid interval; and a valid interval and a tolerance set from the valid interval in the plurality of character blocks. Character group width extraction that detects a character group that is recognized as a continuous character block from the space width, and calculates the cumulative value of the number of characters included in the character group, the width of the character block, and the space width between the widths of the character blocks. 1. A character pitch detection device comprising: means for estimating a character pitch by a maximum likelihood based on the cumulative sum value for each number of characters and the number of cumulative sum values.
JP58033068A 1983-03-01 1983-03-01 Character pitch detector Granted JPS59158478A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP58033068A JPS59158478A (en) 1983-03-01 1983-03-01 Character pitch detector
DE8484102139T DE3480667D1 (en) 1983-03-01 1984-02-29 CHARACTER SPACE DETERMINATION SYSTEM.
EP84102139A EP0120334B1 (en) 1983-03-01 1984-02-29 Letter pitch detection system
US06/585,130 US4594732A (en) 1983-03-01 1984-03-01 Letter pitch detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58033068A JPS59158478A (en) 1983-03-01 1983-03-01 Character pitch detector

Publications (2)

Publication Number Publication Date
JPS59158478A JPS59158478A (en) 1984-09-07
JPH0326427B2 true JPH0326427B2 (en) 1991-04-10

Family

ID=12376407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58033068A Granted JPS59158478A (en) 1983-03-01 1983-03-01 Character pitch detector

Country Status (1)

Country Link
JP (1) JPS59158478A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0337782A (en) * 1989-07-04 1991-02-19 Mitsubishi Electric Corp Character pattern segmenting device

Also Published As

Publication number Publication date
JPS59158478A (en) 1984-09-07

Similar Documents

Publication Publication Date Title
EP0043069B1 (en) Segmentation apparatus and method for character recognition
US4757551A (en) Character recognition method and system capable of recognizing slant characters
JP5600723B2 (en) Method and system for splitting characters in a text line having various character widths
JPH0326427B2 (en)
CN100530219C (en) Image processing apparatus
JPH0430070B2 (en)
JPH0410087A (en) Base line extracting method
JP2007280345A (en) Image processing apparatus, image direction determination method, and image direction determination program
JPH0468669B2 (en)
JPH0259502B2 (en)
CN115937867B (en) A Word-Precision-Based Lyrics Timing Extraction Method and a Computer-Readable Storage Medium
JPH06180771A (en) English letter recognizing device
JP3914119B2 (en) Character recognition method and character recognition device
JPH0277891A (en) character recognition device
JPH0471232B2 (en)
EP0113119B1 (en) Character pitch detecting apparatus
JP4129898B2 (en) Character size estimation method and apparatus
JP2728086B2 (en) Character extraction method
JP3100825B2 (en) Line recognition method
JP2520174B2 (en) Automatic character extraction device
JP2778436B2 (en) Character segmentation device
JPS58214969A (en) Character reading device
JPS60132281A (en) Character separating device
JPH05128308A (en) Character recognition device
JP4381455B2 (en) Character size estimation method, apparatus, and recording medium