JPH03182984A - Character reader - Google Patents

Character reader

Info

Publication number
JPH03182984A
JPH03182984A JP1321296A JP32129689A JPH03182984A JP H03182984 A JPH03182984 A JP H03182984A JP 1321296 A JP1321296 A JP 1321296A JP 32129689 A JP32129689 A JP 32129689A JP H03182984 A JPH03182984 A JP H03182984A
Authority
JP
Japan
Prior art keywords
label
character
label number
character string
numbers
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.)
Ceased
Application number
JP1321296A
Other languages
Japanese (ja)
Inventor
Masato Suda
正人 須田
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP1321296A priority Critical patent/JPH03182984A/en
Publication of JPH03182984A publication Critical patent/JPH03182984A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To reduce the circuit scale and to improve character discrimination by giving label numbers to a character string by raster scanning in the direction perpendicular to the character string and using the connectivity of label numbers to extract only a requested character picture. CONSTITUTION:A label propagating part 2, new label generating counter 4, control counter 5, connection pair memory 6, and a connection picture label integrating part 7 are provided, and a table of label numbers of respective connected pictures, coordinate positions of picture elements for new label number generation, and their rectangular coordinates and connection pairs of label numbers are generated by raster scanning of character pictures in the direction perpendicular to the character string. Coordinate positions of picture elements and rectangular coordinates of connected pictures are integrated to a minimum label number in accordance with connection pairs to generate a new label number table. When a specific character is extracted, the connectivity of already secured label numbers is used to extract only the requested character picture. Thus, the circuit scale is reduced and the character discrimination is improved.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) 本発明は、文字列から任意の文字を検出切出しする文字
読取装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a character reading device that detects and cuts out arbitrary characters from a character string.

(従来の技術) 一般に、文字読取装置においては、文字単位の識別処理
のために、識別処理の前段において、検出された文字列
から各文字単位への検出切出しが必要である。そのため
、文字列から各文字単位の分離を行なう場合、−膜内に
は、文字列と垂直方向に射影を求め、あらかじめ推定し
た文字ピッチから文字の検出切出しを行なう。しかし、
文字間が入り込む記載制限のない自由手書文字列におい
ては、射影だけでは文字の抽出に限界があり、連結画像
の矩形座標から特定の文字を検出切出ししたり、連結画
像ごとのラベル画像を生成して、特定の文字の検出切出
しにあたっている。
(Prior Art) In general, in a character reading device, in order to perform character-by-character identification processing, it is necessary to detect and cut out each character from a detected character string in a pre-stage of the identification processing. Therefore, when separating each character from a character string, a projection is obtained within the film in a direction perpendicular to the character string, and characters are detected and cut out based on a pre-estimated character pitch. but,
For free-handwritten character strings with no restrictions on writing, with spaces between characters, there is a limit to character extraction by projection alone, so it is necessary to detect and cut out specific characters from the rectangular coordinates of connected images, or to generate a label image for each connected image. This is used to detect and extract specific characters.

(発明が解決しようとする課題) 従来は、射影で不可能な文字間の入り込み文字の検出切
出しは、連結画像の矩形座標またはラベル番号付けされ
たラベル画像からの検出切出しにより、効果がみられる
。しかし、矩形座標による文字の検出切出しは、特定文
字は抽出されるが、それ以外の文字の切れはしか入り込
み、文字認識の低下をまねく。一方、ラベル画像からの
文字の検出切出しは、特定文字の抽出には効果があるが
、特定のラベル画像メモリの他に、それらを制御する回
路が必要になり、回路規模が大きくなる。
(Problem to be Solved by the Invention) Conventionally, detection and extraction of characters intervening between characters, which is impossible with projection, has been effective by detection and extraction from rectangular coordinates of connected images or label images with label numbers. . However, when detecting and cutting out characters using rectangular coordinates, specific characters are extracted, but other characters are cut out, leading to a deterioration in character recognition. On the other hand, character detection and extraction from a label image is effective in extracting specific characters, but requires a circuit to control them in addition to a specific label image memory, which increases the circuit scale.

そこで、本発明は、回路規模の縮小が図れ、かつ文字識
別の向上が図れる文字読取装置を提供することを目的と
する。
SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a character reading device that can reduce the circuit scale and improve character identification.

[発明の構成] (課題を解決するための手段) 本発明は、上記課題を解決するために、文字列と垂直方
向に文字画像をラスタ走査しながら一意に連結する画像
ごとのラベル番号と新規ラベル番号生成時の画素の座標
位置と、それらの矩形座標のテーブルとラベル番号同志
の連結対を作成する。そして、連結対から、連結画像を
最小値のラベル番号に画素の座標位置と矩形座標を統合
し、新ラベル番号テーブルを作成する。同様に、他の連
結統合された旧ラベル番号テーブルに最小値のラベル番
号を格納する。そして、抽出したい文字の新ラベル番号
テーブルに“1”を格納し、それ以外には“0”を書込
み、文字列方向の抽出したい文字の範囲内を文字列と垂
直方向にラスタ走査する。そして、新ラベル番号テーブ
ルに格納されている位置座標と合致したら、そのラベル
番号を合致した画素に付加し、ラベルテーブルに格納さ
れている“1″を出力する。そして、次のラベル番号が
生成されたら、このラベル番号をアドレスにした旧ラベ
ル番号テーブルの内容から新ラベルテーブルの内容を取
り出し、画像“1”または“O”として出力する。
[Structure of the Invention] (Means for Solving the Problems) In order to solve the above problems, the present invention provides a label number for each image that is uniquely connected while raster scanning character images in a direction perpendicular to a character string, and a novel method. A table of coordinate positions of pixels at the time of label number generation, their rectangular coordinates, and connected pairs of label numbers are created. Then, from the connected pair, the pixel coordinate position and rectangle coordinates of the connected image are integrated into the minimum value label number, and a new label number table is created. Similarly, the minimum value label number is stored in other linked and integrated old label number tables. Then, "1" is stored in the new label number table of the character to be extracted, "0" is written to the other characters, and raster scanning is performed in the direction of the character string within the range of the character to be extracted in the direction perpendicular to the character string. When the position coordinates stored in the new label number table match, the label number is added to the matched pixel and "1" stored in the label table is output. Then, when the next label number is generated, the contents of the new label table are extracted from the contents of the old label number table with this label number as the address, and output as an image "1" or "O".

(作用) 本発明によれば、文字列をその文字列と垂直方向にラス
タ走査し、ラベル番号付けした後、特定の文字を抽出す
るとき、既に確保しているラベル番号の連結性を利用し
て、要求する文字画像のみを抽出することができるので
、回路規模の縮小が図れ、かつ文字識別の向上が図れる
。
(Operation) According to the present invention, after raster scanning a character string in the vertical direction and assigning label numbers, when extracting a specific character, the connectivity of label numbers that has already been secured is utilized. Since only the required character image can be extracted, the circuit scale can be reduced and character identification can be improved.

(実施例) 以下、本発明の一実施例について図面を参照して説明す
る。
(Example) Hereinafter, an example of the present invention will be described with reference to the drawings.

第1図において、2値画像および2次元座標は、第2図
に示す文字列がY方向を主走査にX方向に順次ラスタ走
査して入力される。マスク信号発生部1は、最初の2値
画像人力時は第2図の全面を人力し、ラベル伝播部2で
第3図に示すように連結画像へのラベル付けを行なう。
In FIG. 1, the binary image and two-dimensional coordinates are input by sequentially raster scanning the character string shown in FIG. 2 in the X direction with the main scan in the Y direction. When the first binary image is manually generated, the mask signal generator 1 generates the entire surface of FIG. 2, and the label propagator 2 labels the connected image as shown in FIG.

ラベル付けは、−走査前のラベル番号を有するラインバ
ッファ3からのA、B、Cのラベル番号と1画素前のD
との組合わせにより、Pの画素が”1”の時に演算され
、Pの画素にラベル番号が割り当てられる。
The labeling is - label numbers of A, B, C from line buffer 3 with the label number before scanning and D one pixel before.
In combination with , the calculation is performed when the pixel of P is "1", and a label number is assigned to the pixel of P.

A、B、C,Dはラベル番号のラッチ回路であり、a、
b、c、dはA、B、C,Dの組合わせにより1つだけ
が選出されるが、それらのラベル番号であり、次の走査
のラベル付けのためにラインバッファ3に格納され、ま
た次の画素のラベル付けのためにDにラッチされる。新
ラベル生成カウンタ4は、ラベル伝播部2の組合わせに
よってPに新しいラベル番号を(=J加するためのカウ
ンタであり、ラベル番号nはa、b、c、dと同様にラ
インバッファ3に格納され、Dにラッチされる。
A, B, C, D are label number latch circuits, a,
b, c, and d are the label numbers of only one selected from the combination of A, B, C, and D, and are stored in the line buffer 3 for labeling in the next scan. Latched to D for next pixel labeling. The new label generation counter 4 is a counter for adding a new label number (=J) to P by the combination of the label propagation unit 2, and the label number n is added to the line buffer 3 like a, b, c, and d. Stored and latched to D.

新ラベル生成カウンタ4はカウント“1”から始まる。The new label generation counter 4 starts from count "1".

このようにして、第3図のようにラベル付けされる2値
画像は、制御カウンタ5、連結)対メモリ6、連結画像
ラベル統合部7、第1連結テーブル8、第2連結テーブ
ル9、座標メモリー0でラベル番号の統合演算が行なわ
れる。すなわち、第3図のラベル番号は第5図のように
第1連結テーブル8と第2連結テーブル9にアドレスと
同等のラベル番号を格納し、ラベル番号「2」と「3」
、ラベル番号「5」と「6」のように異種ラベル番号が
対になっているという情報を第4図のような構成で連結
対メモリ6に格納する。
In this way, the binary image labeled as shown in FIG. A label number integration calculation is performed in memory 0. That is, the label numbers in FIG. 3 are obtained by storing label numbers equivalent to addresses in the first concatenation table 8 and second concatenation table 9 as shown in FIG. 5, and label numbers "2" and "3".
, information that different label numbers are paired, such as label numbers "5" and "6", is stored in the connected pair memory 6 in a configuration as shown in FIG.

次に、走査終了後、連結対メモリ6に格納されている「
2」と「3」、「5」と「6」の対から第1連結テーブ
ル8、第2連結テーブル9の3番地と6番地の内容をそ
れぞれ「2」と「5」に書換える。そして、その後、第
6図に示すように第1連結テーブル8と座標メモリ10
はラベル番号「3」を「2」に、ラベル番号「6」を「
5」に統合し、ラベル番号順にソートする。
Next, after the scanning is completed, "
From the pairs ``2'' and ``3'' and ``5'' and ``6,'' the contents at addresses 3 and 6 of the first concatenation table 8 and second concatenation table 9 are rewritten to ``2'' and ``5,'' respectively. Then, as shown in FIG. 6, the first concatenation table 8 and the coordinate memory 10
changes label number "3" to "2" and label number "6" to "
5" and sort by label number.

新ラベル検出座標VNは、新しいラベル番号が検出され
た時点のy方向の位置座標であり、xs。
The new label detection coordinate VN is the position coordinate in the y direction at the time when the new label number is detected, and is xs.

ys+  Xe、  yeは連結画像の矩形座標である
。
ys+Xe, ye are the rectangular coordinates of the connected image.

このようにして、生成された第5図と第6図を基に要求
する連結画像の抽出を行なう。たとえばラベル番号1と
ラベル番号2の2値画像を選出する場合、第6図の矩形
座標を基にラベル番号をアドレスにした選出フラグメモ
リ11に第5図に示すように“1″を書き込み、他は“
O“を書き込む。
In this way, the required combined image is extracted based on the generated FIGS. 5 and 6. For example, when selecting a binary image with label number 1 and label number 2, "1" is written as shown in FIG. 5 in the selection flag memory 11 whose address is the label number based on the rectangular coordinates shown in FIG. The others are “
Write “O”.

そして、選出したい画像の中で最も小さいラベル番号を
新ラベル生成カウンタ4に入力する。そして、第6図の
矩形座標を基に第7図のように選出したいa −b間の
2値画像と2次元座標を再度、第1図に人力する。
Then, the smallest label number among the images to be selected is input into the new label generation counter 4. Then, based on the rectangular coordinates in FIG. 6, the binary image and two-dimensional coordinates between a and b to be selected as shown in FIG. 7 are again manually inputted into FIG. 1.

主走査はY方向である。このとき、マスク信号発生部1
は、ラベル付は処理により既に座標メモリ10に格納さ
れている第6図のYNIとXSIと、現走査により人力
する2次元座標との比較を比較部12により行ない、座
標が一致した地点からマスク信号を発生し、2値画像が
人力ラベル伝播部2に人力される。人力された2値画像
は既に新ラベル生成カウンタ4に人力された初期ラベル
からラベル番号の生成を行ない、ラインバッファ3、ラ
ベル伝播部2の処理により2値画像にラベル付けを行な
う。
Main scanning is in the Y direction. At this time, mask signal generator 1
For labeling, the comparison unit 12 compares the YNI and XSI shown in FIG. 6, which have already been stored in the coordinate memory 10 through processing, with the two-dimensional coordinates manually input from the current scan, and the mask is created from the point where the coordinates match. A signal is generated, and a binary image is manually input to the manual label propagation section 2. For the manually inputted binary image, a label number is generated from the initial label manually inputted to the new label generation counter 4, and the binary image is labeled by processing by the line buffer 3 and the label propagation unit 2.

再度、番号“12からラベル付けされたラベル画像は、
ラベル“1″が示す第5図の内容をアドレスとした第5
図の選出フラグの値、すなわち“1“O″の信号を選出
フラグメモリ11から出力する。ラベル番号「1」およ
び「2」においては、ラベル番号の示す選出フラグは1
なので出力2値画像は“1″が出力されるが、ラベル番
号3の場合は選出フラグが“O“であってもラベル番号
の内容が「2」なので出力2値画像は“1″が出力され
る。一方、ラベル番号「4」は、選出フラグか“0″な
ので出力2値画像としては“0″が出力される。第9図
に選出された出力2値画像の規模を示す。一方、選出し
た画像の矩形座標は第6図において容易に導かれる。
Again, the label image labeled from number "12" is
The 5th address is the content of Figure 5 indicated by the label "1".
The value of the selection flag shown in the figure, that is, a signal of "1"O" is output from the selection flag memory 11. For label numbers "1" and "2", the selection flag indicated by the label number is 1.
Therefore, the output binary image is "1", but in the case of label number 3, even if the selection flag is "O", the content of the label number is "2", so the output binary image is "1". be done. On the other hand, since the label number "4" is a selection flag or "0", "0" is output as the output binary image. FIG. 9 shows the scale of the selected output binary image. On the other hand, the rectangular coordinates of the selected image can be easily derived in FIG.

[発明の効果] 以上説明したように本発明によれば、文字列をその文字
列と垂直方向にラスタ走査し、ラベル番号付けした後、
特定の文字を抽出するとき、既に確保しているラベル番
号の連結性を利用して、要求する文字画像のみを抽出す
ることができるので、回路規模の縮小が図れ、かつ文字
識別の向上が図れる文字読取装置を提供できる。
[Effects of the Invention] As explained above, according to the present invention, after raster scanning a character string in the direction perpendicular to the character string and assigning label numbers,
When extracting a specific character, it is possible to extract only the required character image by using the connectivity of label numbers that has already been secured, reducing the circuit scale and improving character identification. Character reading devices can be provided.

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

図は本発明の一実施例を示すもので、第1図は概略構成
図、第2図は入力文字列の2値画像を示す図、第3図は
入力文字列の2値画像へのラベル付けを示す図、第4図
は異種ラベルの連給対を示す図、第5図は異極ラベル伝
播部を用いたラベルの統合と出力2値画像選出フラグを
示す図、第6図は統合したラベルと各矩形座標のテーブ
ルを示す図、第7図は抽出画像の走査範囲を説明する図
、第8図は抽出画像の走査範囲でのラベル付けを示す図
、第9図は抽出された2値画像例を示す図である。 1・・・マスク信号発生部、2・・・ラベル伝播部、3
・・・ラインバッファ、4・・・新ラベル生成カウンタ
、5・・・制御カウンタ、6・・・連結対メモリ、7・
・・連結ラベル統合部、8・・・第1連結テーブル、9
・・・第2連結テーブル、10・・・座標メモリ、11
・・・選出フラグメモリ。
The figures show one embodiment of the present invention, in which Figure 1 is a schematic configuration diagram, Figure 2 is a diagram showing a binary image of an input character string, and Figure 3 is a label of the input character string to a binary image. Figure 4 is a diagram showing a continuous supply pair of different labels, Figure 5 is a diagram showing label integration using a different polarity label propagation unit and output binary image selection flag, and Figure 6 is a diagram showing integration. Figure 7 is a diagram explaining the scan range of the extracted image, Figure 8 is a diagram showing labeling in the scan range of the extracted image, Figure 9 is a diagram showing the extracted labels and the table of the coordinates of each rectangle. FIG. 3 is a diagram showing an example of a binary image. 1... Mask signal generation section, 2... Label propagation section, 3
. . . Line buffer, 4. New label generation counter, 5. Control counter, 6. Concatenation pair memory, 7.
... Concatenated label integration section, 8... First concatenation table, 9
...Second concatenation table, 10...Coordinate memory, 11
...Selection flag memory.

Claims (1)

【特許請求の範囲】[Claims] 文字列をその文字列と垂直方向にラスタ走査して入力す
る手段と、このラスタ走査入力時に2値画像に中間ラベ
ル番号を付加する手段と、前記中間ラベル番号同志の連
結対を格納する手段と、前記連結対の最小ラベル番号を
アドレスにして連結画像の新規ラベル番号生成時の座標
位置と矩形座標を格納するテーブルを持つ手段とによっ
て得られる情報から、前記文字列内の所定領域内で特定
の文字画像のみを検出切出しする際、前記所定領域内の
2値画像を文字列と垂直方向にラスタ走査する手段と、
このラスタ走査時の座標位置と前記新規ラベル番号生成
時の座標位置とが一致した所を出発点に、前記生成と同
様のラベル番号からラベル番号を順次生成しながら前記
格納テーブル内の画像情報を抽出する手段と、生成され
る中間ラベル番号が前記最小ラベル番号と対である時は
最小ラベルの画像情報に変換する手段とを具備したこと
を特徴とする文字読取装置。
means for inputting a character string by raster scanning in a direction perpendicular to the character string; means for adding an intermediate label number to a binary image at the time of inputting the raster scan; and means for storing concatenated pairs of the intermediate label numbers. , from information obtained by means having a table storing coordinate positions and rectangular coordinates when generating a new label number of the connected image using the minimum label number of the connected pair as an address, specifying within a predetermined area within the character string. means for raster scanning the binary image within the predetermined area in a direction perpendicular to the character string when detecting and cutting out only the character image;
Starting from the point where the coordinate position during raster scanning and the coordinate position when generating the new label number match, image information in the storage table is generated while sequentially generating label numbers from the same label number as the generation. A character reading device comprising: means for extracting; and means for converting into image information of the minimum label when the generated intermediate label number is a pair with the minimum label number.
JP1321296A 1989-12-13 1989-12-13 Character reader Ceased JPH03182984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1321296A JPH03182984A (en) 1989-12-13 1989-12-13 Character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1321296A JPH03182984A (en) 1989-12-13 1989-12-13 Character reader

Publications (1)

Publication Number Publication Date
JPH03182984A true JPH03182984A (en) 1991-08-08

Family

ID=18130991

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1321296A Ceased JPH03182984A (en) 1989-12-13 1989-12-13 Character reader

Country Status (1)

Country Link
JP (1) JPH03182984A (en)

Similar Documents

Publication Publication Date Title
JP3086702B2 (en) Method for identifying text or line figure and digital processing system
JP3996579B2 (en) Form processing system for identifying active areas of machine-readable forms
US5416849A (en) Data processing system and method for field extraction of scanned images of document forms
JPH04104324A (en) Program generating device
US5642473A (en) Paper saving reprographic device
JP2735197B2 (en) Graphic input device
JPH0991371A (en) Character display device
JP2575408B2 (en) Postal address reading device for mail
JPS61221968A (en) Drawing reader
JP2763042B2 (en) Image processing method
JPH0384681A (en) Input processing method for business card information
JPH03142691A (en) Table format document recognizing system
JPS62123581A (en) Document picture input device
JPS61147379A (en) Optical character reader
JP3124854B2 (en) Character string direction detector
JPS6292080A (en) Character pattern recognition correction device
JPH053631B2 (en)
JPH0434655A (en) Drawing reader
JPH01191986A (en) Slip format detector
JPS62108381A (en) Density histogram detecting system
CN113255613A (en) Question judging method and device and computer storage medium
JPH0624020B2 (en) Method for detecting filled area in digital image
JPH11345333A (en) Labeling processing system and method
JPS61196382A (en) Character segmenting system
JPH1011530A (en) Image input / output method and apparatus