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
JP2768289B2 - Character segmentation device - Google Patents
[go: Go Back, main page]

JP2768289B2 - Character segmentation device - Google Patents

Character segmentation device

Info

Publication number
JP2768289B2
JP2768289B2 JP7008793A JP879395A JP2768289B2 JP 2768289 B2 JP2768289 B2 JP 2768289B2 JP 7008793 A JP7008793 A JP 7008793A JP 879395 A JP879395 A JP 879395A JP 2768289 B2 JP2768289 B2 JP 2768289B2
Authority
JP
Japan
Prior art keywords
block
character
unit
contact
normalized
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
JP7008793A
Other languages
Japanese (ja)
Other versions
JPH08202821A (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
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP7008793A priority Critical patent/JP2768289B2/en
Publication of JPH08202821A publication Critical patent/JPH08202821A/en
Application granted granted Critical
Publication of JP2768289B2 publication Critical patent/JP2768289B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Character Input (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、文字列認識に関し、特
に文字列画像から文字を切り出す装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to character string recognition, and more particularly to an apparatus for extracting characters from a character string image.

【0002】[0002]

【従来の技術】手書き文字列から文字を切り出す場合、
文字の大きさや幅、文字間隔等の特徴量の変動が大きい
ために、このような特徴量だけでは一文字ずつを切り出
すことが困難である。この問題を解決するために、まず
文字列を最も細かいパターンに分割し、最も細かいパタ
ーンのあらゆる可能な組み合わせを求めて、複数の文字
切り出し候補とする方法が開示されている(特開昭62
−190574号公報)。
2. Description of the Related Art When extracting characters from a handwritten character string,
Since the variation in the feature amount such as the size and width of the character and the character spacing is large, it is difficult to cut out one character at a time using only such a feature amount. In order to solve this problem, there is disclosed a method in which a character string is first divided into the finest patterns, and all possible combinations of the finest patterns are obtained and used as a plurality of character cutout candidates (Japanese Patent Laid-Open No. Sho 62).
-190574).

【0003】まず最も細かいパターンを抽出する方法と
しては、黒画素の連結領域を基本パターンとする方法が
知られている。また、最も細かいパターンを抽出する他
の方法として、文字どうしが接触している場合でも分割
されたパターンが抽出できるようにするため、本願と同
一出願人による特許明細書(特開平4−363780号
公報)に記載されているように、文字列画像に対してそ
の文字列方向と垂直な方向に黒画素を計数して得られる
投影関数の谷を切り出し候補線とする方法が知られてい
る。
As a method of extracting the finest pattern, a method of using a connected region of black pixels as a basic pattern is known. As another method for extracting the finest pattern, a patent specification (Japanese Patent Application Laid-Open No. 4-363780) filed by the same applicant as the present application is provided so that a divided pattern can be extracted even when characters are in contact with each other. As described in Japanese Patent Application Laid-Open No. H10-157, there is known a method in which a valley of a projection function obtained by counting black pixels in a character string image in a direction perpendicular to the character string direction is cut out as a candidate line.

【0004】[0004]

【発明が解決しようとする課題】しかし、前述の最も細
かいパターンを抽出する方法では、接触したパターンを
分離することができないという問題がある。又、特開平
4−363780号公報に記載された方法では、最も細
かいパターンの数が大変増えてしまうという問題と、切
り出し位置が不正確になるという問題がある。更に、特
開昭62−190574号公報に記載された方法では文
字切り出し候補数が非常に多くなり、文字認識処理を行
う回数も多くなってしまい、処理速度が非常に遅くなる
という問題がある。
However, the method of extracting the finest pattern described above has a problem that a contacted pattern cannot be separated. Further, the method described in Japanese Patent Application Laid-Open No. 4-363780 has a problem that the number of finest patterns is greatly increased, and a problem that a cutout position is inaccurate. Further, the method described in Japanese Patent Application Laid-Open No. 62-190574 has a problem that the number of character cutout candidates becomes very large, and the number of times of performing character recognition processing becomes large, resulting in a very slow processing speed.

【0005】そこで、本発明は、接触があっても正しい
切り出し位置を決定でき、また、出力される文字切り出
し候補に正解文字が含まれる率を維持しながら、文字切
り出し候補数を減らすことにより、処理時間の高速化が
できる文字切り出し装置を提供することを目的とする。
Therefore, the present invention can determine the correct cutout position even if there is a contact, and reduce the number of character cutout candidates while maintaining the rate at which the output character cutout candidates include correct characters. It is an object of the present invention to provide a character cutout device capable of shortening the processing time.

【0006】[0006]

【課題を解決するための手段】第1の発明の文字切り出
し装置は、文字列画像を入力する画像入力部と、前記画
像入力部で入力された文字列画像から文字要素を抽出す
る文字要素ブロック抽出部と、前記文字要素ブロック抽
出部で抽出された文字要素ブロックに基づいて標準的な
ブロックサイズを推定する標準サイズ推定部と、前記標
準サイズ推定部で算出された標準的ブロックサイズに基
づいて前記文字要素ブロックを正規化することによって
正規化ブロックを算出する正規化ブロック算出部と、接
触を起こした正規化ブロックの典型的なデータを記憶し
ている接触データ記憶部と、前記正規化ブロック算出部
で算出された正規化ブロックと前記接触データ記憶部に
記憶されている接触を起こした正規化ブロックの典型的
なデータを比較することによって接触を起こした前記正
規化ブロックの検出を行う接触ブロック検出部と、前記
接触ブロック検出部で検出された接触を起こした前記正
規化ブロックに対応する前記文字要素ブロックを切断す
ることによって切断済みブロックを作成する接触ブロッ
ク切り出し部と、前記文字要素ブロック抽出部で抽出さ
れた文字要素ブロックと前記接触ブロック切り出し部で
作成された切断済みブロックからなるプリミティブセグ
メントを作成するプリミティブセグメント作成部と、前
記プリミティブセグメント作成部で作成されたプリミテ
ィブセグメントから標準データを推定する標準データ推
定部と、前記プリミティブセグメント作成部で作成され
たプリミティブセグメントと前記標準データ推定部で算
出された標準データから正規化組み合わせセグメントを
作成する正規化組み合わせセグメント作成部と、文字ら
しさのデータを記憶している文字らしさデータ記憶部
と、前記正規化組み合わせセグメント作成部で作成され
た正規化組み合わせセグメントと前記文字らしさデータ
記憶部に記憶されている文字らしさのデータを比較する
ことによって文字らしい正規化組み合わせセグメントを
検出する出力候補決定部と、前記出力候補決定部で文字
らしいと検出された正規化組み合わせセグメントに対応
する組み合わせセグメントを前記プリミティブセグメン
トから作成して文字候補として出力する文字候補出力部
を備えて構成される。
According to a first aspect of the present invention, there is provided a character extracting apparatus for inputting a character string image, and a character element block for extracting a character element from the character string image input by the image input section. An extracting unit, a standard size estimating unit that estimates a standard block size based on the character element block extracted by the character element block extracting unit, and a standard block size calculated by the standard size estimating unit. A normalization block calculation unit that calculates a normalization block by normalizing the character element block; a contact data storage unit that stores typical data of the contacted normalization block; The typical data of the normalized block calculated by the calculation unit and the typical data of the normalized block that caused the contact stored in the contact data storage unit are compared. A contact block detecting unit that detects the normalized block that has caused the contact, and cutting by cutting the character element block corresponding to the normalized block that has caused the contact detected by the contact block detecting unit. Contact block cutout unit that creates a completed block, a primitive segment creation unit that creates a primitive segment consisting of the character element block extracted by the character element block extraction unit and the cut block created by the contact block extraction unit, A standard data estimating unit for estimating standard data from the primitive segments created by the primitive segment creating unit; and a normalization set from the primitive data created by the primitive segment creating unit and the standard data calculated by the standard data estimating unit. A normalized combination segment creating unit for creating a matching segment, a character-likeness data storage unit storing character-likeness data, a normalized combination segment created by the normalized combination segment creating unit, and the character-likeness data storage An output candidate determining unit for detecting a character-like normalized combination segment by comparing character-likeness data stored in the unit, and a combination corresponding to the normalized combination segment detected as character-like by the output candidate determining unit. It comprises a character candidate output unit for creating a segment from the primitive segment and outputting the segment as a character candidate.

【0007】第2の発明の文字切り出し装置は、第1の
発明において、接触ブロック切り出し部は、接触ブロッ
クを切り出すときに、切断する対象となるブロックの画
像に対してその文字列方向と垂直な方向に黒画素を計数
して得られる投影関数に、平滑化とシャープニングを同
時に施した投影関数の極小値を切り出し位置とすること
を特徴とする。
According to a second aspect of the present invention, in the first aspect of the present invention, the contact block extracting section is arranged such that, when the contact block is extracted, the image of the block to be cut is perpendicular to the character string direction. A projection function obtained by counting black pixels in the direction is subjected to smoothing and sharpening at the same time, and a minimum value of the projection function is set as a cutout position.

【0008】第3の発明の文字切り出し装置は、第1の
発明において、接触ブロック検出部は、接触ブロックの
検出を行うときに、文字列開始時点から文字列終了時点
までのあいだに、接触を起こしたブロックの条件を変化
させることを特徴とする。
According to a third aspect of the present invention, in the first aspect of the present invention, the contact block detecting section detects a contact between the start of the character string and the end of the character string when detecting the contact block. It is characterized in that the condition of the raised block is changed.

【0009】[0009]

【作用】黒画素の連結領域を基本パターンとする方法に
よると、文字同士の接触さえなければ完全に文字要素を
分離できるが、接触したパターンを分離することはでき
ない。
According to the method in which the connected area of black pixels is used as a basic pattern, character elements can be completely separated if there is no contact between characters, but the contacted pattern cannot be separated.

【0010】また、黒画素の投影を用いる方法による
と、接触したパターンも分離できるが、切り出し位置が
大変多くなる問題があり、また切り出し位置の正確さに
おいて前者の方法にはおよばない。
Further, according to the method using the projection of black pixels, a contacted pattern can be separated, but there is a problem that the cutout position becomes very large, and the cutout position is not as accurate as the former method.

【0011】そこで、まず黒画素の連結領域を基本パタ
ーンとし、そのなかで接触を起こしたパターンだけにつ
いて黒画素の投影を用いて分離を行う方法によって、最
も細かく分割されたパターンに、接触したパターンがな
く、切り出し位置が正確で、切り出し数ができるだけ少
ないようにパターンを抽出するという課題を解決するこ
とができる。
Therefore, first, the connected area of the black pixels is used as a basic pattern, and only the contacted pattern is separated using the projection of the black pixel. Therefore, it is possible to solve the problem of extracting a pattern so that the cutout position is accurate and the number of cutouts is as small as possible.

【0012】この方法によればお互いの短所を補い合う
ことができる。つまり、接触したパターン以外は非常に
正確に切り出し位置を求めることができ、接触したパタ
ーンも切り出すことができ、切り出し数の増加も抑える
ことができる。しかし、この方法を採用する場合、接触
を起こしたパターンが検出できなければ課題を解決した
ことにはならない。
According to this method, the disadvantages of each other can be compensated for. That is, the cut-out position can be obtained very accurately except for the contacted pattern, the contacted pattern can also be cut out, and an increase in the number of cut-outs can be suppressed. However, when this method is adopted, the problem cannot be solved unless a contacting pattern can be detected.

【0013】そのために、本願では接触したパターンを
検出するための接触ブロック検出部を備えた。
For this purpose, the present invention includes a contact block detecting section for detecting a contacted pattern.

【0014】黒画素の連結領域を基本パターンとして抽
出したとき、接触を起こしたパターンと接触を起こして
いないパターンは図2に示すように分布する。図2では
基本パターンを文字列全体の平均ブロック幅で割ること
により正規化してある。さまざまな文字列画像から抽出
した基本パターンのデータをブロックの幅と高さの空間
にプロットしても、異なった画像に書かれている文字の
大きさが異なるために、まとまった分布は得られない
が、基本パターンに正規化処理をほどこすことによっ
て、異なる文字列画像でも同じように評価することがで
きるようになり、分布もまとまったものになる。
When a connected region of black pixels is extracted as a basic pattern, a contacted pattern and a non-contacted pattern are distributed as shown in FIG. In FIG. 2, the basic pattern is normalized by dividing by the average block width of the entire character string. Even if the basic pattern data extracted from various character string images is plotted in the space of the block width and height, a coherent distribution is obtained because the size of characters written in different images is different. However, by performing the normalization process on the basic pattern, it becomes possible to evaluate different character string images in the same manner, and the distribution becomes unified.

【0015】図2から接触を起こしたパターンのブロッ
クデータの分布を知ることができるので、その分布領域
に入る未知データを接触したパターンであるとすれば、
接触パターンの検出が可能になる。
Since the distribution of the block data of the contacted pattern can be known from FIG. 2, if the unknown data in the distribution area is the contacted pattern,
The contact pattern can be detected.

【0016】また、最も細かいパターンのあらゆる可能
な組み合わせから、より文字らしいものだけを選ぶこと
ができれば、出力される文字切り出し候補に正解候補が
含まれる率を維持しながら、文字切り出し候補数を減ら
すという課題を解決することが可能になる。
Further, if it is possible to select only possible characters from all possible combinations of the finest patterns, the number of character extraction candidates can be reduced while maintaining the rate at which the output character extraction candidates include correct answers. Can be solved.

【0017】そのため、本願では、最も細かいパターン
のあらゆる可能な組み合わせから、より文字らしいもの
だけを選ぶ出力候補決定部を備えた。
For this reason, the present invention includes an output candidate determining unit that selects only characters that are more likely to be characters from all possible combinations of the finest patterns.

【0018】最も細かいパターンの組み合わせ(セグメ
ント)を考えるときに、図3のように評価パラメータと
してセグメントの幅、高さ、ギャップを考える。この3
つのパラメータ空間における、文字であるセグメントと
文字でない(冗長な)セグメントのデータ分布を見ると
図4のようになる。図4のデータも図2の場合と同様に
文字列全体の平均データで正規化してある。図4から文
字セグメントのデータ分布を知ることができるので、そ
の分布領域に入る未知データを文字パターンであるとす
れば、余分な組み合わせかどうかの検出が可能になる。
When considering the finest pattern combination (segment), the width, height and gap of the segment are considered as evaluation parameters as shown in FIG. This 3
FIG. 4 shows the data distribution of a segment that is a character and a segment that is not a character (redundant) in one parameter space. The data in FIG. 4 is also normalized by the average data of the entire character string as in the case of FIG. Since the data distribution of the character segment can be known from FIG. 4, if the unknown data included in the distribution area is a character pattern, it is possible to detect whether the data is an extra combination.

【0019】[0019]

【実施例】以下、本発明について図面を参照して説明す
る。図1は、第1の発明の実施例の構成を示すブロック
図である。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of an embodiment of the first invention.

【0020】図1に示す実施例の構成は、文字列画像を
入力する画像入力部101と、文字列画像から文字の要
素を抽出する文字要素ブロック抽出部102と、抽出さ
れた文字要素ブロックから1文字の標準的なブロックサ
イズを算出する標準サイズ推定部103と、文字要素ブ
ロックを平均的なブロックサイズを用いて正規化する正
規化ブロック算出部104と、接触を起こした正規化ブ
ロックの典型的なデータを記憶している接触データ記憶
部105と、接触データ記憶部105に記憶されている
データと正規化ブロックを比較することによって接触を
起こしたブロックの検出を行う接触ブロック検出部10
6と、接触ブロックを切断する接触ブロック切り出し部
107と、一番細かい状態で切り出されたセグメント
(以下ではプリミティブセグメントと呼ぶ)を作成する
プリミティブセグメント作成部108と、プリミティブ
セグメントから、1文字の標準的なブロックサイズやプ
リミティブセグメント間の標準的ギャップを算出する標
準データ推定部109と、プリミティブセグメントと標
準データから正規化組み合わせセグメントを作成する正
規化組み合わせセグメント作成部110と、文字らしさ
のデータを記憶している文字らしさデータ記憶部111
と、文字らしさデータ記憶部に記憶されている文字らし
さのデータと正規化組み合わせセグメントを比較するこ
とにより文字らしい正規化組み合わせセグメントを検出
する出力候補決定部112と、文字候補を出力する文字
候補出力部113とを備えて成る。
The configuration of the embodiment shown in FIG. 1 includes an image input unit 101 for inputting a character string image, a character element block extracting unit 102 for extracting a character element from the character string image, and a character element block extracted from the extracted character element block. A standard size estimating unit 103 for calculating a standard block size of one character; a normalizing block calculating unit 104 for normalizing a character element block using an average block size; Contact data storage unit 105 that stores temporary data, and a contact block detection unit 10 that detects a contacted block by comparing the data stored in the contact data storage unit 105 with a normalized block.
6, a contact block cutout unit 107 for cutting a contact block, a primitive segment creation unit 108 for creating a segment cut out in the finest state (hereinafter, referred to as a primitive segment), and a standard of one character from the primitive segment. Data estimating unit 109 for calculating a typical block size and a standard gap between primitive segments, a normalized combination segment creating unit 110 for creating a normalized combined segment from primitive segments and standard data, and storing character-like data Character likeness data storage unit 111
And an output candidate determining unit 112 for detecting a character-like normalized combination segment by comparing the character-likeness data stored in the character-likeness data storage unit with the normalized combination segment, and a character candidate output for outputting a character candidate. And a unit 113.

【0021】次に、本実施例の動作について説明する。Next, the operation of this embodiment will be described.

【0022】画像入力部101は二値化された文字列画
像を入力する手段である。文字要素ブロック抽出部10
2は文字列の画像から文字の構成要素をブロックとして
抽出する手段である。文字構成要素をブロックとして抽
出するには、いくつかの方法が考えられる。一例を挙げ
れば、文字列画像の黒画素連結領域をブロックとして抽
出し、その後、文字列方向と垂直な方向に重なりをもつ
ブロックを統合したものを文字構成要素ブロックとすれ
ばよい。
The image input unit 101 is means for inputting a binarized character string image. Character element block extraction unit 10
Reference numeral 2 denotes a unit for extracting a character component from the image of the character string as a block. There are several methods for extracting character components as blocks. For example, a black pixel connection region of a character string image may be extracted as a block, and thereafter, a block obtained by integrating blocks overlapping in a direction perpendicular to the character string direction may be used as a character component block.

【0023】他にも“有吉他:「周辺分布を用いた手書
き文字切り出しの検討」昭60信学総大全”に記載され
ている方法を用いてもよい。図5は文字構成要素ブロッ
クの抽出例を示しており、図5(a)のような文字列画
像が入力されると、図5(b)のように文字要素ブロッ
クが抽出される。標準サイズ推定部103は抽出された
文字要素ブロックから、文字列の1文字分の標準的な文
字サイズを推定する手段である。ここでの標準的なサイ
ズの抽出は、いくつかの方法が考えられる。一例を挙げ
れば、文字列の全文字構成要素の幅と高さの平均値を求
めて標準的なサイズとすればよい。あるいは、他の方法
としては、一度文字列の全文字構成要素の幅と高さの平
均値と分散を求めておき、ある一定の分散値以上平均値
からずれているデータを異常データとして除去し、もう
一度平均値を取り直すことにより標準的なサイズとして
もよい。
Alternatively, a method described in “Ariyoshi et al .:“ Examination of handwritten character segmentation using marginal distribution ”, Shoshin Sogaku Sozenzen, 60” may be used. An example is shown, and when a character string image as shown in Fig. 5A is input, a character element block is extracted as shown in Fig. 5B. This is a means for estimating the standard character size of one character of a character string from a block.There are several methods for extracting the standard character size here. The average width and height of the text components can be taken to a standard size, or, alternatively, once the average and variance of the width and height of all text components of the string can be calculated. The data that deviates from the average by more than a certain variance Removing the data as abnormal data may be a standard size by take heart again average.

【0024】正規化ブロック算出部104は、全文字構
成要素のブロックについて、ブロックサイズを標準的な
サイズで割ることにより正規化を行い、正規化ブロック
を算出する。
The normalized block calculating unit 104 normalizes the blocks of all character components by dividing the block size by a standard size, and calculates a normalized block.

【0025】接触ブロック検出部106は正規化された
全文字構成要素ブロックとパラメータ記憶部105に記
憶されている接触を起こした正規化ブロックの典型的な
データを比較することにより接触を起こしたブロックの
検出を行う。ここでの接触ブロックの検出は、いくつか
の方法が考えられるが、一例を挙げれば、正規化ブロッ
クの幅、縦横比、面積のそれぞれを予め決められた値と
比較することによって接触ブロックを検出する方法であ
り、いま対象としている正規化ブロックの幅をW、高さ
をHとして、式(1)、(2)、(3)の条件を計算
し、 W>a1 ・・・(1) H<b1×W+c1・・・(2) H>d1/W ・・・(3) 式(1)、(2)、(3)ですべての条件を満たす正規
化ブロックを接触が起こっているブロックとすることに
より実現できる。図6の斜線部はこの条件を満たす領域
である。ここで、a1、b1、c1、d1は接触データ
記憶部に記憶されている、予め定められた領域である。
The contact block detecting unit 106 compares the normalized data of all the character constituent blocks with the typical data of the contacted normalized block stored in the parameter storage unit 105 to generate the contacted block. Is detected. There are several methods for detecting the contact block here, but for example, the contact block is detected by comparing each of the width, aspect ratio, and area of the normalized block with a predetermined value. The width of the target normalized block is W and the height is H, and the conditions of Expressions (1), (2), and (3) are calculated, and W> a1 (1) H <b1 × W + c1 (2) H> d1 / W (3) A normalized block that satisfies all the conditions in equations (1), (2), and (3) is a block in which contact occurs. Can be realized. The shaded area in FIG. 6 is an area that satisfies this condition. Here, a1, b1, c1, and d1 are predetermined areas stored in the contact data storage unit.

【0026】また、他の例を挙げれば、WとHによって
張られる空間において接触ブロックと非接触ブロックの
分布関数を推定して、二つの分布関数を最もよく分離で
きるような識別関数を用いて接触ブロックの検出を行う
こともできる。さらに、接触ブロックと非接触ブロック
の分布関数を推定して、接触ブロックである確率を求
め、接触ブロックである確率がある決められた値より大
きい場合に接触ブロックであるとすることもできる。
As another example, the distribution function of the contact block and the non-contact block is estimated in the space spanned by W and H, and the discriminant function that can best separate the two distribution functions is used. Contact block detection can also be performed. Further, the distribution function of the contact block and the non-contact block is estimated, and the probability of the contact block is obtained. If the probability of the contact block is larger than a predetermined value, the contact block can be determined as the contact block.

【0027】接触ブロック切り出し部107は、前記接
触ブロック検出部で接触を起こしていると判定された正
規化ブロックに対応する文字構成要素ブロックを強制的
に切断することにより切断済みブロックを作成する手段
である。接触を起こしたブロックを強制的に切断する方
法はいくつか考えられる。一例を挙げれば、本願と同一
出願人による特許明細書(特開平4−363780号公
報)に記載されている方法で容易に実現できる。
The contact block extracting section 107 forcibly cuts a character component block corresponding to the normalized block determined to be in contact with the contact block detecting section to create a cut block. It is. There are several methods for forcibly cutting the contacted block. For example, it can be easily realized by a method described in a patent specification (JP-A-4-363780) by the same applicant as the present application.

【0028】プリミティブセグメント作成部108は、
文字要素ブロックと強制的な切断まで施された切断済み
ブロックを読み込み一番細かい状態のブロックを作成
し、さらに一番細かい状態のブロックから非常に細かい
ブロックをノイズとして除去することにより、文字構成
要素の最小単位となるプリミティブセグメントを作成す
る。
The primitive segment creation unit 108
By reading the character element block and the cut block that has been subjected to forcible cutting, create the finest block, and remove the very fine blocks from the finest block as noise, and the character components Create a primitive segment that is the smallest unit of.

【0029】図7はプリミティブセグメント作成の例を
示しており、図7(a)のような文字列画像が入力され
ると、図7(b)のようにプリミティブセグメントが作
成される。標準データ推定部109は、前記標準サイズ
推定部と同様に全プリミティブセグメントから標準的な
幅と高さを推定し、また他にも、標準的なギャップも推
定する。ここでの標準的なギャップの抽出は、いくつか
の方法がある。一例を挙げれば、ギャップの値が負にな
る部分のデータを異常データとして除去してから、平均
値を求めることにより標準的なギャップとすればよい。
他の方法としては、ギャップの値が負になる部分のデー
タを異常データとして除去してから、平均値と分散を求
めておき、ある一定の分散値以上平均値からずれている
データも異常データとして除去し、再び平均値を求める
ことにより標準的なギャップとしてもよい。
FIG. 7 shows an example of creating a primitive segment. When a character string image as shown in FIG. 7A is input, a primitive segment is created as shown in FIG. 7B. The standard data estimating unit 109 estimates a standard width and height from all primitive segments in the same manner as the standard size estimating unit, and also estimates a standard gap. There are several methods for extracting the standard gap here. For example, a standard gap may be obtained by removing data in a portion where the value of the gap becomes negative as abnormal data and then calculating an average value.
Another method is to remove the data where the gap value is negative as abnormal data, then calculate the average and variance. And a standard gap may be obtained by calculating the average again.

【0030】正規化組み合わせセグメント作成部110
はいくつかのプリミティブセグメントを組み合わせたセ
グメントを作成し(図3参照)該セグメントの高さ、
幅、ギャップを平均データを用いて正規化することによ
り、正規化組み合わせセグメントを作成する。このと
き、一つのプリミティブセグメントだけから作成される
正規化組み合わせセグメントのギャップ値はゼロとし、
ギャップ値が複数存在する正規化組み合わせセグメント
の場合は複数のギャップ値の最大値を用いる。
Normalized combination segment creating section 110
Creates a segment that combines several primitive segments (see FIG. 3), the height of the segment,
A normalized combination segment is created by normalizing the width and gap using the average data. At this time, the gap value of the normalized combination segment created from only one primitive segment is zero,
In the case of a normalized combination segment having a plurality of gap values, the maximum value of the plurality of gap values is used.

【0031】出力候補決定部112は正規化組み合わせ
セグメントと文字らしさデータ記憶部111に記憶され
ている文字らしさのデータを比較することにより文字ら
しい正規化組み合わせセグメントの検出を行う。ここで
の文字らしい正規化組み合わせセグメントの検出は、い
くつかの方法が考えられる。一例を挙げれば、正規化組
み合わせセグメントの幅、縦横比、面積、最大ギャップ
長、セグメントの幅とギャップ比、のそれぞれを予め与
えられた値と比較することによって文字らしい正規化組
み合わせセグメントの検出を行う方法であり、いま対象
としている正規化組み合わせセグメントの幅をW、高さ
をH、ギャップをGとして、式(4)、(5)、
(6)、(7)、(8)の条件を比較し、 W>a2 ・・・(4) H<b2×W+c2・・・(5) H>d2/W ・・・(6) G>e2 ・・・(7) G>f2×W+g2・・・(8) 式(4)か(5)のどちらかを満たし、かつ(6)を満
たす正規化組み合わせセグメントと、(4)、(7)、
(8)のいずれかの条件を満たす正規化組み合わせセグ
メントを文字らしくないとして削除し、削除されずに残
った正規化組み合わせセグメントを文字らしいとするこ
とにより実現できる。図8(a)の斜線部は(4)か
(5)どちらかを満たし、かつ(6)を満たす領域を示
し、図8(b)の斜線部は(4)、(7)、(8)いず
れかの条件を満たす領域を示している。ここでa2、b
2、c2、d2、e2、f2、g2は文字らしさデータ
記憶部に記憶されている、予め定められた定数である。
The output candidate determining unit 112 detects a character-like normalized combination segment by comparing the normalized combination segment with the character-likeness data stored in the character-likeness data storage unit 111. Here, several methods are conceivable for detecting a character-like normalized combination segment. As an example, by detecting each of the normalized combination segment width, aspect ratio, area, maximum gap length, segment width and gap ratio, with a predetermined value, detection of a character-like normalized combination segment can be performed. Assuming that the width of the target normalized combination segment is W, the height is H, and the gap is G, the equations (4), (5),
The conditions (6), (7) and (8) are compared, and W> a2 (4) H <b2 × W + c2 (5) H> d2 / W (6) G> e2 (7) G> f2 × W + g2 (8) A normalized combination segment that satisfies either equation (4) or (5) and satisfies (6), and (4), (7) ),
This can be realized by deleting the normalized combination segment that satisfies any one of the conditions of (8) as being unlikely to be a character, and setting the remaining normalized combination segment that has not been deleted to be a character. 8A shows a region that satisfies either (4) or (5) and also satisfies (6), and the hatched portion in FIG. 8B shows (4), (7), and (8). ) Indicates an area that satisfies one of the conditions. Where a2, b
2, c2, d2, e2, f2, and g2 are predetermined constants stored in the character-likeness data storage unit.

【0032】また、他の例を挙げると、WとHとGによ
って張られる空間において文字である正規化組み合わせ
セグメントと文字でない正規化組み合わせセグメントの
分布関数を推定して、二つの分布関数を最もよく分離で
きるような識別関数を用いて文字らしい正規化組み合わ
せセグメントの検出を行うこともできる。さらに、文字
である正規化組み合わせセグメントと文字でない正規化
組み合わせセグメントの分布関数を推定して、文字であ
る確率を求め、その確率がある決められた値よりも大き
い場合に文字らしい正規化組み合わせセグメントである
とすることもできる。
In another example, the distribution functions of a normalized combination segment that is a character and a normalized combination segment that is not a character in a space spanned by W, H, and G are estimated, and the two distribution functions are most estimated. It is also possible to detect a character-like normalized combination segment using a discriminant function that can be well separated. Furthermore, the distribution function of the normalized combination segment that is a character and the normalized combination segment that is not a character is estimated, the probability that the character is a character is obtained, and if the probability is larger than a predetermined value, the character-based normalized combination segment .

【0033】文字候補出力部112は、前記文字候補決
定部で文字らしいと判断された正規化組み合わせセグメ
ントに対応するブロックを文字候補として出力する手段
である。
The character candidate output unit 112 is means for outputting, as character candidates, blocks corresponding to the normalized combination segments determined to be character-like by the character candidate determination unit.

【0034】第2の発明では図1の接触ブロック切り出
し部107において、切断する対象となるブロックの画
像に対してその文字列方向と垂直な方向に黒画素を計数
して得られる投影関数に、平滑化とシャープニングを同
時に施した投影関数の極小値を切り出し位置とする。
In the second invention, the projection function obtained by counting black pixels in the direction perpendicular to the character string direction for the image of the block to be cut in the contact block cutout unit 107 in FIG. The minimum value of the projection function that has been subjected to smoothing and sharpening at the same time is set as a cutout position.

【0035】この処理は、例えば次のようにして実現で
きる。切断する対象となるブロックの画像に対してその
文字列方向と垂直な方向に黒画素を計数して得られる投
影関数をf(x)とする。関数f(x)に対して式
(9)で表されるガウシアン関数g(x)を用いて式
(10)の計算を施し、平滑化とシャープニングが同時
に行われた投影関数h(x)を算出する(図9参照)。
This processing can be realized, for example, as follows. Let f (x) be a projection function obtained by counting black pixels in the direction perpendicular to the character string direction for the image of the block to be cut. The function f (x) is subjected to the calculation of the equation (10) using the Gaussian function g (x) expressed by the equation (9), and the projection function h (x) in which smoothing and sharpening are performed simultaneously Is calculated (see FIG. 9).

【0036】 g(x)=(1/σ√2π)exp(−x2 /2σ2 )・・・(9) h(x)=∫f(x−y)(αg(y)+β▽2 g(x))dy・・(10) ここでαとβは予め決められた定数である。また▽2
(x)はg(x)の二回微分である。
G (x) = (1 / σ√2π) exp (−x 2 / 2σ 2 ) (9) h (x) = {f (xy) (αg (y) + β} 2 g (x)) dy (10) where α and β are predetermined constants. Also 2 g
(X) is the second derivative of g (x).

【0037】第3の発明では図1の接触ブロック検出部
において、文字列開始時点から文字列終了時点までのあ
いだに、接触を起こしたブロックの条件を変化させる。
つまり、図6における接触ブロックの条件になる領域
(斜線領域)を文字列開始時点から、文字列終了時点ま
でに少しづつ広げて行く処理を行う。
In the third aspect of the present invention, the condition of the contacted block is changed between the start of the character string and the end of the character string in the contact block detecting section of FIG.
In other words, a process of gradually expanding the area (hatched area) serving as the condition of the contact block in FIG.

【0038】この処理は、例えば式(1)、式(2)、
式(3)のa1と、b1と、c1と、d1の値を初期値
として、図10(a)のように文字列開始時点で初期値
を与えておき、文字列終了までにa1とd1を徐々に小
さな値に変化させ、b1とc1を図10(b)のように
徐々に大きな値に変化させることによって容易に実現で
きる。
This processing is performed by, for example, equations (1), (2),
With the values of a1, b1, c1, and d1 in equation (3) as initial values, initial values are given at the start of the character string as shown in FIG. 10A, and a1 and d1 are set by the end of the character string. Is gradually changed to a small value, and b1 and c1 are gradually changed to a large value as shown in FIG.

【0039】[0039]

【発明の効果】以上説明したように第1の発明の文字切
り出し装置によれば、接触を含んだ状態で切り出された
文字要素ブロックから接触を起こした文字要素ブロック
を検出し、接触を起こした文字要素ブロックにのみ黒画
素の投影を用いて切り出しを行うので、接触したパター
ンがなく、切り出し位置が正確で、切り出し数が少なく
プリミティブセグメントを抽出することができ、プリミ
ティブセグメントの組み合わせを作成して文字らしいセ
グメントを検出することによって、余分な出力を減少さ
せることができる。
As described above, according to the character extracting apparatus of the first invention, a character element block that has made contact is detected from character element blocks that have been cut out in a state that includes contact, and contact has been made. Since the cutout is performed using the projection of black pixels only for the character element block, there is no contact pattern, the cutout position is accurate, the number of cutouts is small and primitive segments can be extracted, and the combination of primitive segments is created. Extra output can be reduced by detecting character-like segments.

【0040】第2の発明の文字切り出し装置によれば、
接触ブロックを切り出すときに、切断する対象となるブ
ロックの画像に対してその文字列方向と垂直な方向に黒
画素を計数して得られる投影関数に、平滑化とシャープ
ニングを同時に施した投影関数の極小値を切り出し位置
とすることにより、投影関数に極小値が現れない場合に
も切り出し位置を精確に求めることができる。
According to the character extracting device of the second invention,
When cutting out a contact block, a projection function that performs smoothing and sharpening simultaneously on the projection function obtained by counting black pixels in the direction perpendicular to the character string direction for the image of the block to be cut Is used as the cutout position, the cutout position can be accurately obtained even when no minimum value appears in the projection function.

【0041】第3の発明の文字切り出し装置によれば、
接触ブロックの検出において、文字列開始時点から文字
列終了時点までのあいだに、接触を起こしたブロックの
条件を変化させることにより、文字列の書き始めは大き
な文字で書かれており書き終わりのころに文字が非常に
小さく書かれているような文字列であっても高い精度で
接触の切り出しを行うことができる。
According to the character extracting device of the third invention,
In the detection of the contact block, by changing the conditions of the block that caused the contact between the start of the character string and the end of the character string, the writing of the character string was written in large characters, and at the end of writing Even with a character string in which characters are written very small, contact can be cut out with high accuracy.

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

【図1】本発明の一実施例の概略構成を示すブロック
図。
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of the present invention.

【図2】接触を起こした文字要素ブロックと接触を起こ
していない文字要素ブロックのデータ分布を説明するた
めの図。
FIG. 2 is a diagram for explaining the data distribution of a character element block that has made contact and a character element block that has not made contact.

【図3】図1に示すブロック図の正規化組み合わせセグ
メント作成部の処理を説明するための図。
FIG. 3 is a view for explaining processing of a normalized combination segment creating unit in the block diagram shown in FIG. 1;

【図4】文字セグメントと文字でないセグメントのデー
タ分布を説明するための図。
FIG. 4 is a diagram for explaining data distribution of a character segment and a non-character segment.

【図5】図1に示すブロック図の文字要素ブロック抽出
部の処理を説明するための図。
FIG. 5 is a view for explaining processing of a character element block extraction unit in the block diagram shown in FIG. 1;

【図6】図1に示すブロック図の接触ブロック検出部の
処理を説明するための図。
FIG. 6 is a view for explaining processing of a contact block detection unit in the block diagram shown in FIG. 1;

【図7】図1に示すブロック図のプリミティブセグメン
ト作成部の処理を説明するための図。
FIG. 7 is a view for explaining processing of a primitive segment creation unit in the block diagram shown in FIG. 1;

【図8】図1に示すブロック図の出力候補決定部の処理
を説明するための図。
FIG. 8 is a view for explaining processing of an output candidate determination unit in the block diagram shown in FIG. 1;

【図9】図1に示すブロック図の接触ブロック切り出し
部の処理を説明するための図。
FIG. 9 is a view for explaining processing of a contact block cutout unit in the block diagram shown in FIG. 1;

【図10】図1に示すブロック図の接触ブロック検出部
の処理を説明するための図。
FIG. 10 is a view for explaining processing of a contact block detection unit in the block diagram shown in FIG. 1;

【符号の説明】[Explanation of symbols]

101 画像入力部 102 文字要素ブロック抽出部 103 標準サイズ推定部 104 正規化ブロック算出部 105 接触データ記憶部 106 接触ブロック検出部 107 接触ブロック切り出し部 108 プリミティブセグメント作成部 109 標準データ推定部 110 正規化組み合わせセグメント作成部 111 文字らしさデータ記憶部 112 出力候補決定部 113 文字候補出力部 Reference Signs List 101 Image input unit 102 Character element block extraction unit 103 Standard size estimation unit 104 Normalized block calculation unit 105 Contact data storage unit 106 Contact block detection unit 107 Contact block extraction unit 108 Primitive segment creation unit 109 Standard data estimation unit 110 Normalization combination Segment creation unit 111 Characteristic data storage unit 112 Output candidate determination unit 113 Character candidate output unit

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】読み取り対象となる文字列画像を取得し、
取得された文字列画像から最も細かい文字要素であるプ
リミティブセグメントに分割し、プリミティブセグメン
トから構成される文字の切り出しを行う文字切り出し装
置において、文字列画像を入力する画像入力部と、前記
画像入力部で入力された文字列画像から文字要素を抽出
する文字要素ブロック抽出部と、前記文字要素ブロック
抽出部で抽出された文字要素ブロックに基づいて標準的
なブロックサイズを推定する標準サイズ推定部と、前記
標準サイズ推定部で算出された標準的ブロックサイズに
基づいて前記文字要素ブロックを正規化することによっ
て正規化ブロックを算出する正規化ブロック算出部と、
接触を起こした正規化ブロックの典型的なデータを記憶
している接触データ記憶部と、前記正規化ブロック算出
部で算出された正規化ブロックと前記接触データ記憶部
に記憶されている接触を起こした正規化ブロックの典型
的なデータを比較することによって接触を起こした前記
正規化ブロックの検出を行う接触ブロック検出部と、前
記接触ブロック検出部で検出された接触を起こした前記
正規化ブロックに対応する前記文字要素ブロックを切断
することによって切断済みブロックを作成する接触ブロ
ック切り出し部と、前記文字要素ブロック抽出部で抽出
された文字要素ブロックと前記接触ブロック切り出し部
で作成された切断済みブロックからなるプリミティブセ
グメントを作成するプリミティブセグメント作成部と、
前記プリミティブセグメント作成部で作成されたプリミ
ティブセグメントから標準データを推定する標準データ
推定部と、前記プリミティブセグメント作成部で作成さ
れたプリミティブセグメントと前記標準データ推定部で
算出された標準データから正規化組み合わせセグメント
を作成する正規化組み合わせセグメント作成部と、文字
らしさのデータを記憶している文字らしさデータ記憶部
と、前記正規化組み合わせセグメント作成部で作成され
た正規化組み合わせセグメントと前記文字らしさデータ
記憶部に記憶されている文字らしさのデータを比較する
ことによって文字らしい正規化組み合わせセグメントを
検出する出力候補決定部と、前記出力候補決定部で文字
らしいと検出された正規化組み合わせセグメントに対応
する組み合わせセグメントを前記プリミティブセグメン
トから作成して文字候補として出力する文字候補出力部
を備えることを特徴とする文字切り出し装置。
1. A character string image to be read is obtained,
An image input unit for inputting a character string image in a character segmentation device that divides an acquired character string image into primitive segments, which are the finest character elements, and extracts characters composed of the primitive segments; and A character element block extraction unit that extracts a character element from the character string image input in, a standard size estimation unit that estimates a standard block size based on the character element block extracted by the character element block extraction unit, A normalized block calculation unit that calculates a normalized block by normalizing the character element block based on the standard block size calculated by the standard size estimation unit;
A contact data storage unit that stores typical data of the contacted normalized block, and a contact block that generates a contact stored in the normalized block calculated by the normalized block calculation unit and the contact data storage unit. A contact block detection unit that detects the normalized block that has caused a contact by comparing typical data of the normalized block, and the normalized block that has caused the contact detected by the contact block detection unit. A contact block cutout unit that creates a cut block by cutting the corresponding character element block, and a cutoff block created by the character element block extracted by the character element block extraction unit and the contact block cutout unit. A primitive segment creation unit for creating a primitive segment,
A standard data estimating unit for estimating standard data from the primitive segments created by the primitive segment creating unit; and a normalized combination from the primitive segments created by the primitive segment creating unit and the standard data calculated by the standard data estimating unit. A normalized combination segment creating unit for creating a segment, a character-likeness data storage unit storing character-likeness data, a normalized combination segment created by the normalized combination segment creating unit, and the character-likeness data storage unit An output candidate determining unit for detecting a character-like normalized combination segment by comparing the character-likeness data stored in the output candidate determining unit; and a combination set corresponding to the normalized combination segment detected as character-like by the output candidate determining unit. Character segmentation apparatus comprising: a character candidate output unit for outputting a character candidate by creating instruments from the primitive segment.
【請求項2】前記接触ブロック切り出し部は、接触ブロ
ックを切り出すときに、切断する対象となるブロックの
画像に対してその文字列方向と垂直な方向に黒画素を計
数して得られる投影関数に、平滑化とシャープニングを
同時に施した投影関数の極小値を切り出し位置とするこ
とを特徴とする請求項1記載の文字切り出し装置。
2. The contact block extracting unit according to claim 1, wherein, when cutting out the contact block, a projection function obtained by counting black pixels in a direction perpendicular to a character string direction with respect to an image of a block to be cut is provided. 2. The character extracting apparatus according to claim 1, wherein a minimum value of a projection function subjected to smoothing and sharpening at the same time is used as an extraction position.
【請求項3】前記接触ブロック検出部は、接触ブロック
の検出を行うときに、文字列開始時点から文字列終了時
点までのあいだに、接触を起こしたブロックの条件を変
化させることを特徴とする請求項1記載の文字切り出し
装置。
3. The contact block detecting section, when detecting a contact block, changes a condition of a block that has caused a contact between a character string start time and a character string end time. The character segmentation device according to claim 1.
JP7008793A 1995-01-24 1995-01-24 Character segmentation device Expired - Fee Related JP2768289B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7008793A JP2768289B2 (en) 1995-01-24 1995-01-24 Character segmentation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7008793A JP2768289B2 (en) 1995-01-24 1995-01-24 Character segmentation device

Publications (2)

Publication Number Publication Date
JPH08202821A JPH08202821A (en) 1996-08-09
JP2768289B2 true JP2768289B2 (en) 1998-06-25

Family

ID=11702753

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7008793A Expired - Fee Related JP2768289B2 (en) 1995-01-24 1995-01-24 Character segmentation device

Country Status (1)

Country Link
JP (1) JP2768289B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5466418B2 (en) * 2009-03-27 2014-04-09 株式会社成基総研 Determination device, determination method, and program

Also Published As

Publication number Publication date
JPH08202821A (en) 1996-08-09

Similar Documents

Publication Publication Date Title
JP3904840B2 (en) Ruled line extraction device for extracting ruled lines from multi-valued images
JP6268023B2 (en) Character recognition device and character cutout method thereof
US6128410A (en) Pattern matching apparatus and method that considers distance and direction
JPH09179937A (en) Automatic identification method of sentence image boundaries
US8219940B2 (en) Method and apparatus for removing dummy features from a data structure
JP2002298085A (en) Character recognition device, character recognition method, and recording medium
JP4232800B2 (en) Line noise elimination device, line noise elimination method, line noise elimination program
CA2206216A1 (en) Bitmap comparison apparatus and method
Suleyman et al. An adaptive threshold algorithm for offline Uyghur handwritten text line segmentation
JPH09311905A (en) Line detection method and character recognition device
JP3798179B2 (en) Pattern extraction device and character segmentation device
JP2768289B2 (en) Character segmentation device
KR100449486B1 (en) Document recognition system and method using vertical line adjacency graphs
US20050271260A1 (en) Device, method and program for removing pores
JP2008186150A (en) Template matching apparatus and method
JP2630261B2 (en) Character recognition device
JP3914119B2 (en) Character recognition method and character recognition device
JP2778436B2 (en) Character segmentation device
JP3848792B2 (en) Character string recognition method and recording medium
JP2576080B2 (en) Character extraction method
JP2993533B2 (en) Information processing device and character recognition device
Sari et al. Structural feature-based evaluation method of binarization techniques for word retrieval in the degraded Arabic document images
JP4215385B2 (en) PATTERN RECOGNIZING DEVICE, PATTERN RECOGNIZING METHOD, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING PROGRAM FOR CAUSING COMPUTER TO EXECUTE THE METHOD
JP4209511B2 (en) Character recognition method, character recognition device, and computer-readable recording medium recording a program for causing a computer to execute the character recognition method
JP3100825B2 (en) Line recognition method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980310

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080410

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090410

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100410

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110410

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120410

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120410

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130410

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130410

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140410

Year of fee payment: 16

LAPS Cancellation because of no payment of annual fees