JPH01320171A - Method of processing framed character - Google Patents
Method of processing framed characterInfo
- Publication number
- JPH01320171A JPH01320171A JP13252488A JP13252488A JPH01320171A JP H01320171 A JPH01320171 A JP H01320171A JP 13252488 A JP13252488 A JP 13252488A JP 13252488 A JP13252488 A JP 13252488A JP H01320171 A JPH01320171 A JP H01320171A
- Authority
- JP
- Japan
- Prior art keywords
- character
- block
- kanji
- blocks
- image
- 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.)
- Granted
Links
Landscapes
- Dot-Matrix Printers And Others (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明は枠字処理方法に係り、詳しくは、光学読取装
置で読み取られた書類中の印刷体文字情報をデータベー
ス化する際、これら印刷体文字情報(二値化資料)を、
先ず文字列、画像ブロック、図形ブロックに分離処理し
、次いで文字列中の文字に枠を付けて切り出丁枠字処理
方法に関するものである。Detailed Description of the Invention (Industrial Application Field) The present invention relates to a frame character processing method. Text information (binary data)
The present invention relates to a method for processing cut-out frame characters by first separating them into character strings, image blocks, and graphic blocks, and then adding frames to the characters in the character string.
(発明の概要)
この発明の枠字処理方法は、一次走査ブロック・ラベリ
ング(○ne Path Blok Labeling
)と構造化文字切出法(5tructvre 工5o
latin )を用いて、文字と図形とが併存した情報
、大文字と小文字とが混合した情報、文字間隔が不均一
な文字情報、庚子、英数字及び一般記号からなる情報等
、印刷体文字情報を、自動的にブロックに分離し、次い
で文字列の中の文字に枠を付けて切り出すことにより、
効率良(データベース化するものである。(Summary of the Invention) The frame character processing method of the present invention uses primary scanning block labeling (○ne Path Block Labeling).
) and structured character extraction method (5tructvre 工5o
(latin) is used to generate print character information, such as information in which characters and figures coexist, information in which uppercase and lowercase letters are mixed, character information with uneven character spacing, information consisting of letters, alphanumeric characters, and general symbols, etc. By automatically separating the string into blocks, and then cutting out the characters in the string by placing a frame around them,
Efficient (database).
(従来の技術)
コンピユータ化が進んだ今日では、書類中の文章(Te
xt )、画像(Image )、図形(Graphi
c )等の情報を、如何に効率良くデータベース化する
かが要求されている。(Prior art) Nowadays, with the progress of computerization, text in documents (Te
xt ), image (Image), graph
There is a need to efficiently compile information such as c) into a database.
このため、書類中の文字、画像、図形等の情報を自動的
に区分し、それぞれを適白な技術で処理することにより
、データの蓄積量を縮小することが書類分析システム上
重要となりている。また、枠を付けた文章の部分に対し
、如何に正しく文字や記号の領域を切り出して、認識分
析のために光学文字認識系(0ptical Char
acter Recognition :0CR)に転
送することも同様に重要となっている〇
一般に、文字、画像、図形情報を自動的に区分するのは
、ブロック分離処理の範晴にPAするが、枠を付けた文
字列から文字や記号を切り出すのは、文字切り出し処理
の範驕に属する。これらを枠字処■里と称している。For this reason, it is important for document analysis systems to reduce the amount of data accumulated by automatically classifying information such as text, images, and figures in documents and processing each type of information using appropriate technology. . In addition, we will use an optical character recognition system (0ptical char recognition system) to accurately cut out areas of characters and symbols from the framed text.
Acter Recognition:0CR) is equally important. In general, automatically classifying text, images, and graphic information falls within the scope of block separation processing, but Extracting characters and symbols from a character string falls within the scope of character extraction processing. These are called kajidokoro ■ri.
この枠字処理の目的は、処理対象を区分することてあり
、これは四類分析ノステムにおいてlである。これまで
のブロック分離処理技術とじては、次のものが知られて
いる0
(1) 射影法(Histogram) ; Avi
nash Kak andAzriel Raaenf
eld″Digital Picture Proce
−ssing′参照。The purpose of this frame processing is to classify the object to be processed, which is l in the class 4 analytical nostem. The following block separation processing techniques have been known so far: (1) Projection method (Histogram); Avi
nash Kak and Azriel Raaenf
eld″Digital Picture Process
-See ssing'.
(2)膨張、収縮法(ExpAnsion and S
hrinking);中村、武家、開本、南”ミックス
モー通信のための文字領域の抽出アルゴリズム”信学論
(D) J67−D、朧tt 、 PP 1277〜1
284 (1984)及び秋田、内藤、増田6縦・横書
き文字からの個別文字切り出し法″信技゛報、PRL−
83−7,PP49〜56 (t983 )参照。(2) Expansion and contraction method (ExpAnsion and S
hrinking); Nakamura, Buke, Kaimoto, Minami “Character area extraction algorithm for mixed-mode communication” IEICE theory (D) J67-D, Oborott, PP 1277-1
284 (1984) and Akita, Naito, Masuda 6 Individual character extraction method from vertically and horizontally written characters "Shingi Giho, PRL-
See 83-7, PP49-56 (t983).
(3) Con5traint Run Lengt
法(以下、CRLと略記するO ) ; F、 M、
Yea 、 R,S、 Ca5ey ;Block
Segmentation and Text Ex
tractionin Mixed Text / I
mage Documents ” + Com−pu
ter Graphic & Image proce
ssing t 20 rPP375〜390(198
2)参照。(3) Con5train Run Length
Law (hereinafter abbreviated as CRL); F, M,
Yea, R, S, Ca5ey; Block
Segmentation and Text Ex
Tractionin Mixed Text / I
mageDocuments” + Com-pu
ter Graphic & Image process
ssing t 20 rPP375-390 (198
2) See.
(4)小領域分離法; N、H,Yea 、 R,S、
Leuand ’G、H,Lin″CHARACTE
RRECOGNI−TION ByL BOARD O
CRRART : TRAlN5EPARATION
&CHARAC:TEREXTRAGTニー○N″+
Proceeding of Internation
al ComputerBymposium’ * D
ecember l 7−19 r PP l 29〜
137 (1986)参照0
(発明が解決しようとする課題)
しかしながら、上記(1)〜(4)のブロック分離処理
技術には、いずれも一長一短があり、満足すべきもので
はなかった。(4) Small region separation method; N, H, Yea, R, S,
Leuand'G,H,Lin''CHARACTE
RRECOGNI-TION ByL BOARD O
CRRART: TRAlN5EPARATION
&CHARAC:TEREXTRAGT knee○N″+
Processing of International
al Computer Bymposium' *D
ember l 7-19 r PP l 29~
137 (1986) Reference 0 (Problems to be Solved by the Invention) However, the above block separation processing techniques (1) to (4) all have advantages and disadvantages, and are not satisfactory.
すなわち、(1) 射影法(Histogram )
では、処理速度が速い反面、文字資料等が傾斜している
記録紙、又は文章と図形とが併存している記録紙には適
用できない問題があった。That is, (1) Projection method (Histogram)
Although this method has a high processing speed, there is a problem that it cannot be applied to recording paper on which text and other materials are slanted, or on recording paper where text and graphics coexist.
また、(2)膨張、収縮法及び+3) CRL法では、
複雑な書類の処理が可能である反面、処理速度が遅く、
j彫犬な画像演算スペースが必要となる問題があった0
また、(4)小領域分離法では、処理速度が速く、文字
資料等が傾斜していても処理出来る反面、入力記録紙の
フオームが制限され、しかも文章と図形とが併存した記
録紙には適用出来ない問題がありた0
この発明は上記従来技術の問題点を解消するもので、そ
の目的とするところは、文章資料等が傾斜して処理出来
ない問題や、複雑な書類の処理が出来ない問題等をなく
して、効率良くデータデース化出来る枠字処理方法を提
供することである0(課題を解決するだめの手段)
第1の発明では、コンピュータに読み込まれた書類の画
像データを、ブロック分離処理法により、文字列(文字
ブロック)、画像ブロック及び図形ブロックに分離し、
次いで文字切出法により、分離された文字列から漢字、
英数字及び句読点記号に枠を付けて切り出す枠字処理方
法において、前記ブロック分離処理法を、ビットマツプ
(bitmap)画像ヲラン・レングス・コード(Ru
n LengthCOae)<変換するためのCRLC
(CnstrainedRun L+ength Co
de )転換プロセスと、ラベリング(Labelin
g )法で、隣接関係にあるGRLC:を連続させるこ
とにより、−ブロック(独立のブロック)として分離す
るブロック分離プロセスと、独立したブロックに記録さ
れたCRLCからもとのビットマツプ(bitmap)
画像おけろ各対応位置(X、Y)を算出することにより
、各ブロックの画(&’?:抽出する画像抽出プロセス
と、ブロックの1とラン・レングス(Run Leng
th )平均値からブロックの種類を判別するブロック
画像種類判別プロセスとからなる一次走査ブロック・ラ
ベリング法により構成したことを特徴としている。In addition, (2) expansion, contraction method and +3) CRL method,
Although it is possible to process complex documents, the processing speed is slow,
In addition, (4) the small area separation method has a high processing speed and can process even slanted text materials, but the format of the input recording paper This invention is intended to solve the above-mentioned problems of the prior art. The objective is to provide a method for processing frame characters that can be efficiently converted into data databases by eliminating problems such as inability to process tilted documents and inability to process complex documents. 0 (Means to solve problems) In the first invention, image data of a document read into a computer is separated into character strings (character blocks), image blocks and graphic blocks by a block separation processing method,
Then, using the character extraction method, kanji,
In a frame character processing method for cutting out alphanumeric characters and punctuation marks with a frame, the block separation processing method is applied to a bitmap image length code (Ru
n LengthCOae)<CRLC to convert
(CnstrainedRun L+length Co
de) conversion process and labeling (Labelin)
g) A block separation process in which adjoining GRLCs are made consecutive and separated into -blocks (independent blocks), and the original bitmap is created from the CRLCs recorded in the independent blocks.
By calculating each corresponding position (X, Y) of the image, the image extraction process of each block (&'?: extracting the image) and the run length (1 and run length of the block) are performed.
th) A block image type discrimination process of determining the block type from the average value.
また、第2の発明では、前記文字切出法を、文字列の左
右に分離された矩形に枠を付ける矩形捜索プロセスと、
高さ得点法により漢字の高さを求めろ文字列高さ計算プ
ロセスと、属性により漢字や句読点を切り出す優先切出
プロセスと、比較的ゆるやかな条件により、切り出され
た全ての矩形の右、あるいは左側に位置する漢字矩形を
捜し出す右方向、左方向切出プロセスとを具備した構造
化文字切出法により構成したことを特徴としている0
また、第3の発明では、前記一次走査ブロック・ラベリ
ング法により、コンピュータに読み込まれた書類の画像
データを、文字列(文字ブロック)、画像ブロック及び
図形ブロックに分離処理し、次いで前記構造化文字切出
法により、分離された文字列から漢字、英数字及び句読
点記号に枠を付けて切り出すことを特徴としている。Further, in the second invention, the character extraction method includes a rectangle search process of framing rectangles separated on the left and right sides of the character string;
Find the height of a kanji character using the height scoring method. A character string height calculation process, a priority extraction process that cuts out kanji and punctuation marks based on their attributes, and a comparatively relaxed condition to calculate the height of all the cut out rectangles. The present invention is characterized in that it is constructed using a structured character extraction method that includes a rightward and leftward extraction process that searches for a Kanji rectangle located on the left side. The image data of a document read into a computer is separated into character strings (character blocks), image blocks, and graphic blocks, and then, using the structured character extraction method described above, kanji, alphanumeric characters are extracted from the separated character strings. It is characterized by adding a frame to punctuation marks and cutting them out.
この発明で「ラン(Run)Jとは、画像列が一段で連
続した状態の黒(又は白)色の画素をいう。In this invention, "Run J" refers to black (or white) pixels in a continuous image row.
また、「ラン・レングス・コード(Run Lengt
hCode)Jとは、II Run 11始点位置と長
さを持つデータコードをいう。Also, "Run Length Code"
hCode)J refers to a data code having II Run 11 starting point position and length.
頂だ、[コンストレインド・ラン(Con5tratn
−ed Run )Jとは、水平距離がある定数よりも
小さい”Run5”をいう。It's the top, [Con5tratn]
-ed Run )J refers to "Run5" where the horizontal distance is smaller than a certain constant.
また、「コンストレインド・ラン・コード(Const
rained Run Code )Jとは、” Co
n5train −edRun”の中に最左端の始点位
置と総長度を持つデータコードをいう。Also, “Constrained Run Code”
Rained Run Code) J is “Co”.
"n5train-edRun" is a data code that has the leftmost starting point position and total length.
(発明の作用)
この発明では、記録紙の記録内容が傾斜したり、あるい
は文章と図形とが併存したりすると適用出来ない問題を
解決するため、従来のC3L法を改良した一次走査ブロ
ック・ラベリングと称するブロック分離方法を採用して
いる。これにより、−回訓像平面を走歪するだけで全て
のブロックを捜し出して変換することが出来る。すなわ
ち、三つの画像平面 (元の画像平面、水平拡張平面及
び垂直拡張平面)を必要とし、そしてこの画像平面を複
数回走査しなければならなかったのを、元の画像平面を
一回走査するだけで済むようにしている。(Function of the Invention) In order to solve the problem of inapplicability when the recorded content of the recording paper is tilted or when text and figures coexist, the present invention uses a primary scanning block labeling method that is an improvement on the conventional C3L method. A block separation method called . As a result, all blocks can be found and transformed simply by transversely distorting the -cycle training image plane. That is, by scanning the original image plane once instead of requiring three image planes (original image plane, horizontal extension plane, and vertical extension plane) and having to scan this image plane multiple times. I'm trying to get by with just that.
このため、処理速度を速くすることか出来る。Therefore, the processing speed can be increased.
また、文字切出処理については、通常、射影法により各
文字の外枠矩形を捜し出すが、文章の中に漢字、英文字
の共存している場合には漢字、英文字の矩形判定を行う
必要がある。この文字切出処理を困難にしている原因と
しては、次のものが考えられる。In addition, for character extraction processing, the outer rectangle of each character is usually found using the projection method, but if kanji and English characters coexist in the text, it is necessary to determine the rectangles of kanji and English characters. There is. The following are possible causes that make this character extraction process difficult.
(1) ピッチ(Pitch)が一致していないこと
による。jなわち、印刷体文字の字形中のピッチが不一
致のため、ピッチな標漁として自動的に文字切出処理を
行うことが出来ない。(1) This is because the pitches do not match. In other words, since the pitches in the shapes of the printed characters do not match, it is not possible to automatically cut out the characters as pitch markers.
(2) ノイズ干渉による。丁なわち、紙面上の汚点
がノイズを引き起こ丁可能性がある0
(3)文字の分離による。例えば、双矩形構造の゛”引
″が”弓″、“1”という二文字として切り出される可
能性がある0
(4)文字の接触による。例えば、”我(僕)″と°“
イが、(君)″との二文字が活字で印刷された場合には
、字間のスペースが小さ丁ぎるので、単一文字として切
り出される可能性がある。(2) Due to noise interference. (3) Due to separation of characters. For example, the double rectangular structure ``hi'' may be cut out as two characters ``yumi'' and ``1.'' (4) Due to the contact of characters. For example, “I” and °“
When the two characters ``i'' and ``(kun)'' are printed in type, the space between the characters is too small, so there is a possibility that they will be cut out as a single character.
この発明では、文字切出処理に使用する判断パラメータ
が全部入力記録紙から抽出するとの原則に基づき、“構
造化文字切出法”により矩形の属性(漢字又は英文字)
を判断する方法を採用することで、上述の文字切出処理
に伴う困難さを解消して、正確に文字切り出しを行うこ
とが出来る。In this invention, based on the principle that all judgment parameters used for character extraction processing are extracted from input recording paper, the attributes of rectangles (kanji or English characters) are
By adopting a method of determining the above, it is possible to eliminate the difficulties associated with the above-mentioned character segmentation process and to perform character segmentation accurately.
(実施例)
以下この発明の一実施例を図面を参照して詳細に説明す
る。(Embodiment) An embodiment of the present invention will be described below in detail with reference to the drawings.
第3の発明は第1の発明の特徴部分であるブロック分離
処理法と第2の発明の特徴部分である文字切出法とを組
み合わせたものである。そこで、以下の実施例では、@
3の発明について詳細に説明する0第1、第2の発明に
ついての説明は、第3の発明を説明する過程で行う。The third invention is a combination of the block separation processing method that is a feature of the first invention and the character extraction method that is a feature of the second invention. Therefore, in the following example, @
The third invention will be explained in detail.0 The first and second inventions will be explained in the process of explaining the third invention.
2g1図は第3の発明の文字、画像、図形情報等の処理
方法を実行する装置を示すブロック図である。図中符号
IOは光学読取装置、20は一次走査ブロック・ラベリ
ング法によりブロック分離するブロック分離手段、30
は構造化文字切出法により文字切出処理する文字切出手
段である。FIG. 2g1 is a block diagram showing an apparatus for executing the method for processing text, image, graphic information, etc. of the third invention. In the figure, reference numeral IO denotes an optical reading device, 20 denotes block separation means for separating blocks by the primary scanning block labeling method, and 30
is a character extraction means that performs character extraction processing using a structured character extraction method.
光学読取装置10により書類を走査して、書類の画像デ
ータである文字、画像、図形情報等の印刷体文字情報を
読み取って入力し、この入力データ(二値化資料)をブ
ロック分離手段20により文字列(文字ブロック)、画
像ブロック及び図形ブロックに分離し、次いで文字切出
手段20により前記ブロック分離手段20で分離された
文字列の中の文字を切り出す。The optical reading device 10 scans the document to read and input printed text information such as text, images, and graphic information, which is image data of the document, and this input data (binarized material) is processed by the block separation means 20. It is separated into a character string (character block), an image block, and a graphic block, and then the character cutting means 20 cuts out the characters in the character string separated by the block separating means 20.
第2図は普通の書類で、文字列(文字ブロック)、ハー
フトーン(Hal f tone )画像、及び@線図
形が含まれている。光学読取装置10によりこの書類の
画像データを読み取って、ブロック分離手段20で処理
すると、第3図に示すように、文字列、画像ブロック、
図形ブロックに分離される0このプ07り分離には、次
のような特性がある。FIG. 2 is an ordinary document, which includes character strings (character blocks), halftone images, and @ line figures. When the image data of this document is read by the optical reading device 10 and processed by the block separation means 20, as shown in FIG. 3, character strings, image blocks,
This separation into graphic blocks has the following characteristics.
(1)白い影の部分はブロック分離の主な個所でである
。(1) The white shaded areas are the main locations of block separation.
(2)同じブロック内の余白距離が小さい。(2) The margin distance within the same block is small.
(3)異なるブロック間の余白距離が大きい。(3) The margin distance between different blocks is large.
ここで、一次走査ブロック・ラベリング法の基本原理は
次の通りである。Here, the basic principle of the primary scanning block labeling method is as follows.
(1) ビットマツプ(b itmap )画像をラ
ン・レングス・コード(Run Length にod
e )に変換する0
(2)近隣の領域関係により近距離にある”Run”を
同一ブロックにラベリングする。(1) Add bitmap image to run length code (Run Length)
e) Convert to 0 (2) Label "Run" that is close to each other as the same block due to the neighboring area relationship.
(3)成るブロックの近隣のRunl+ が存在しな
くなれば、このブロックを独立ブロックとする0
(4)独立ブロック内の全てのRun” をビットマ
ツプ(bitmap )画像に戻して、ブロックの属性
(文字列、画像ブロック、図形ブロック)を決定する。(3) If Runl+ in the neighborhood of the block no longer exists, this block is considered an independent block. (4) All Runs in the independent block are returned to a bitmap image, and the attributes of the block (character string , image block, graphic block).
この一次操作ブロック・ラベリング法では、画面に対し
一回の走査を施丁ことにより、上記(1)〜(4)の操
作が実行されて、全てのブロックを分離することが出来
ろ。In this primary operation block labeling method, operations (1) to (4) above are executed by scanning the screen once, and all blocks can be separated.
2g4図は、ブロック分離子I!i20で実行されろ一
次走査ブロック・ラベリング法による処理内容を示すフ
ローチャートである。The 2g4 diagram shows the block separator I! 12 is a flowchart showing the processing content of the primary scanning block labeling method executed by the i20.
まず、CRLC(Constrained Run L
engthCode )転換プロセスで、文字読取装置
10で読みR1ッたビットマツプ(bitmap)画像
をCRLc f:換する。丁なわち、データ丁貨tの多
いビットマツプ。First, CRLC (Constrained Run L)
In the conversion process, the bitmap image read by the character reading device 10 is converted to CRLc f:. In other words, a bitmap with a large number of data.
(bitmap )画像を、各Con5trained
)funの開始位置と終了位置の値だけが記録された
(、RLCに変換して、データ量を減らす。(bitmap) images, each Con5trained
) Only the values of the start and end positions of fun were recorded (, converted to RLC to reduce the amount of data.
このよ5に、CRLCを採用てるのは、水平方向への局
部的な拡張効果を発生させろためである。The reason why CRLC is adopted in this case is to generate a local expansion effect in the horizontal direction.
ここで、定’;tI CHの選定は棒列結果の良否に太
きな影響を与えるので、適切な値に設定する必要がある
。jなわち、定数chが太きすぎると、”局部的′°な
拡張効果の意義が無くなり、傾斜角を持つ二つのブロッ
クがMなり合ってしヱう0また、定数chが小さ丁ぎる
と、拡張効果が得られないのみならず、ブロック分離時
のデータ処理量を増大させてしヱう〇
次に、ブロック分離プロセスで、ラベリング(Labe
ling )の方法を採用して隣接関係にあるCRLC
を連続させることにより、−ブロックの位置を得ろ(独
立のブロックに分離する)Qここで、ラベリング(La
be l ing )の方法を説明するQ
まず、Con5trained Runの“近隣領域″
′の内容について説明する0この6近隣領域”は、第5
図に示すように、Con5trained Run (
同図中の黒色部分)から拡張された部分、すなわち点線
で囲まれた部分をいう。そして、この近隣領域と接した
ブロックを、このRunの近隣ブロックという。なお、
同図中XGAPは水平拡張量、Y GAPは垂直拡張が
である。Here, since the selection of constant';tI CH has a strong influence on the quality of the bar row result, it is necessary to set it to an appropriate value. In other words, if the constant ch is too thick, the local expansion effect will be meaningless, and two blocks with an inclination angle will overlap each other.Also, if the constant ch is too small, Not only will no expansion effect be obtained, but the amount of data processing during block separation will increase.Next, in the block separation process, labeling (Label
CRLCs in an adjacent relationship by adopting the method of
Obtain the position of the - block (separate into independent blocks) by making it consecutive. Here, the labeling (La
Q. First, explain the method of ``Be ling''.
’ This 6 neighboring area” is the 5th
As shown in the figure, Con5trained Run (
This refers to the part expanded from the black part in the figure, that is, the part surrounded by dotted lines. Blocks that are in contact with this neighboring area are called neighboring blocks of this Run. In addition,
In the figure, XGAP is the amount of horizontal expansion, and YGAP is the amount of vertical expansion.
次に処理手順について説明する。Next, the processing procedure will be explained.
I、 CRLC(Starting X、 Leng
th ) ? (Sta −rtingX、 endi
ngX )に転換する。I, CRLC (Starting X, Length
th)? (Sta-rtingX, endi
ngX).
TI、 (a)既に存在していたブロックの中からR
unの近隣ブロックを捜し出して記録する。TI, (a) R from among the already existing blocks
Find and record neighboring blocks of un.
(b)既に存在した近隣ブロック以外の全てのブロック
を記録する0
11L (Ca5e l )
上記Ru nに近隣ブロックがない場合には、核Run
’t ”)(D新しいブロックに組み入れろ。(b) Record all blocks other than the neighboring blocks that already exist (Ca5e l) If the above Run has no neighboring blocks, the core Run
't'') (DInsert into a new block.
(Ca5e 2 )
上記Runに近隣ブロックがある場合には、該Runを
最も高い近隣ブロックMに組み入れる。そして、この近
隣ブロックMのl?RLcを、残りの近隣ブロックで1
粂正して形成した新ブロックMが、全ての近隣ブロック
と連続関係をもつようIIcする。(Ca5e 2 ) If the above Run has neighboring blocks, incorporate the Run into the highest neighboring block M. And l of this neighboring block M? RLc to 1 in the remaining neighboring blocks.
IIc so that the new block M formed by the correction has a continuous relationship with all neighboring blocks.
■、既に存在した近隣ブロック以外の全てのブロックを
チエツクし、どの新近隣ブロックとも接する可能性がな
ければ、ブロックの0RLCデータを、独立データとし
て次の仕事ユニットに回丁O
■、新CRLC;を読み取り、走査が終わるまで、上記
1〜■の作業を繰り返す0
以上の処理手順から明らかなように、ラベリング(La
be l ing )の方法は、6近隣ブロツク″゛の
定義に基づき、縦、横方向への局部的な拡張を行わせる
ことにより、CRLCO不足を補うと共に、GRLCの
密集領域(集合領域)を独立ブロックとして分離するも
のである。■, Check all blocks other than the already existing neighboring blocks, and if there is no possibility of contacting any new neighboring blocks, send the 0RLC data of the block to the next work unit as independent data. O ■, New CRLC; 0. As is clear from the above processing steps, labeling (La
The method described above compensates for the lack of CRLCO by locally expanding it in the vertical and horizontal directions based on the definition of 6 neighboring blocks, and also makes the dense region of GRLC independent. It is separated as a block.
上記ラベリング(Labe 1 ing )の方法によ
る処理の後、画像抽出プロセスにより、独立ブロックに
記録されたCRLCから元のビットマツプ(bitma
p)画像における各対応位置(X、Y)を算出して、−
個のブロックの画像を抽出する。After processing by the above labeling method, an image extraction process extracts the original bitmap from the CRLC recorded in the independent block.
p) Calculate each corresponding position (X, Y) in the image, -
Extract images of blocks.
この後、画像種類判別プロセスにより、各ブロックの画
像の種類(文字、画像、図形)の分析を行う。丁なわち
、文字列、画像ブロック又は図形ブロックに分離する。Thereafter, the image type (text, image, figure) of each block is analyzed by an image type discrimination process. In other words, it is separated into character strings, image blocks, or graphic blocks.
ここでの分析の重点は、これまで得られたブロックが文
字列であるか否かを判断することであるが、この分析結
果から直線、幾何図形及びハーフトーン(Halfto
n )図等を判断することも出来る。The emphasis of the analysis here is to determine whether the blocks obtained so far are character strings, but from the results of this analysis
n) Can also judge diagrams, etc.
この分析には、ブロックの高さ(H)データと、走を方
向上の0平均ストロ一ク幅″〔又は”平均Run Le
ngth ”値(RL))データが使用さレル。This analysis requires the block height (H) data and the 0 average stroke width in the running direction (or ``average Run Le
ngth” value (RL)) data is used.
ここで、RC=走肴方回上の黒画系の認相/走査方回上
のCrossing CountであるoCrossi
ngCountは、走査方向上で画素が白から黒に転換
された回数の様相をいう。Here, RC = oCrossi, which is the black phase recognition on the scanning direction/Crossing Count on the scanning direction.
ngCount refers to the number of times a pixel is converted from white to black in the scanning direction.
次に、分析内容(判断の原則)を第6図(a)、(b)
を参服して説明する。Next, the analysis contents (judgment principles) are shown in Figure 6 (a) and (b).
I will listen to and explain.
なお、
HO=文字の可能な最大高さ
Hl 工文字例の可能な最大高さ
=HO+l頃斜の最大偏差
= HO+W X SIN (認メラtt口最犬)傾斜
角)
W =ブロックの幅
THL=ハ−フトーy (Half ton ) 図
形、幾何学図形又は縦方向を区分出来ろ平均
Run Lengthの実験値
TH2=横方向直線、文字列又は短い縦線を区分出来ろ
平均Run Lengthの実験値TH3=垂直方向か
ら文字列又は短い縦線を区分出来る平均Run Len
gthの実験値TH4=垂直方向から幾何学図形又は縦
方向if線を区分出来る平均Run Lengthの実
験値
である。In addition, HO = Maximum possible height of the character Hl Maximum possible height of the example character = HO + Maximum deviation of the slope = HO + W Half ton y (Half ton) Can distinguish shapes, geometric figures, or vertical directions. Experimental value of average Run Length TH2 = Can distinguish horizontal straight lines, character strings, or short vertical lines. Experimental value of average Run Length TH3 = Average Run Len that can separate character strings or short vertical lines from the vertical direction
Experimental value of gth TH4=Experimental value of average Run Length that can distinguish a geometric figure or vertical if line from the vertical direction.
まず、ブロックの高さから判断して、次の二群に分ける
。First, based on the height of the blocks, they are divided into the following two groups.
(1) 高さが文字例の″範囲を越えたもの(F(O
>Ml)。(1) Items whose height exceeds the character example range (F(O
>Ml).
これは幾何学図形、FlffA又はハーフトーン(Ha
lfton)図の何れかであると判断することが出来ろ
。This is a geometric figure, FlffA or halftone (Ha
lfton).
ここで、水平方向の平均ストo−り幅から判断すれば、
1i6の大きいもの(水平方向上のRC>THI)は、
ハーフト−7(Half ton )図である。また、
垂直方向の平均ストローク幅から判断丁れば、幅の大き
いもの(垂直方向のRG>TH3)は、縦線である。そ
して、残るものが幾何学図形である。Here, judging from the average horizontal stroke width,
The larger 1i6 (RC>THI in the horizontal direction) is
It is a half ton (Half ton) figure. Also,
Judging from the average stroke width in the vertical direction, a line with a large width (RG>TH3 in the vertical direction) is a vertical line. What remains are geometric figures.
(2)高さが文字列の範囲内にあるもの(HO≧H1)
。(2) Those whose height is within the range of the character string (HO≧H1)
.
これは文字列又は横線の一種であると判断することが出
来る。この外、高さが文字列のそれに和尚したため混同
されるものもある。ごく少数の短い縦線、小さい幾何学
図形又はハーフトーン(Halfton) 図等がこれ
に該当する。This can be determined to be a type of character string or horizontal line. In addition to this, there are some that are confused because the height is similar to that of a character string. This includes only a few short vertical lines, small geometric figures or halftone figures.
ここで、水平方向の平均ストローク幅から判断すれば、
幅の大きいもの(水平方向上のRe>T)I2)は、横
線又はこの群に入れられたハーフトーン(Halfto
n) 図である。また、垂直方向の平均ストローク1
1Gから判断丁れば、幅の太きいもの(垂直方向のRe
)TH4)は、 この群に入れられた縦線である。そし
て、残るものが文字列である。なお、例外として、文字
列又は小さくて、高さが文字列のそれに和尚した幾何学
園形であって、はっきり区分できないものは、次の文字
切出処理に回された後、各部の長さと幅との比により、
文字か否かの判断がなされる。Here, judging from the average stroke width in the horizontal direction,
Larger widths (Re>T in the horizontal direction I2) are horizontal lines or halftones included in this group.
n) is a diagram. Also, the average vertical stroke 1
Judging from 1G, the widest one (vertical Re
)TH4) is the vertical line placed in this group. What remains is a string. As an exception, if a character string or a small geometric school shape whose height is similar to that of a character string cannot be clearly distinguished, the length and width of each part will be determined after being sent to the next character cutting process. By the ratio of
A judgment is made as to whether it is a character or not.
このようにして文字列が分離されると、文字列が文字切
出手段30に送られ、ここで構造化文字切出法による文
字切出処理が施されろ。次に、この文字切出処理の内容
について説明する。Once the character string is separated in this way, the character string is sent to character extraction means 30, where it is subjected to character extraction processing using a structured character extraction method. Next, the contents of this character extraction process will be explained.
文字切出処理の目的は、分離された各文字列毎に、文字
(漢字、英数字)及び記号(句読点記号、特殊記号)に
それぞれ矩形枠を付けることにある。The purpose of character extraction processing is to attach rectangular frames to characters (kanji, alphanumeric characters) and symbols (punctuation marks, special symbols) for each separated character string.
例えば、ル・□ 川 Q ように枠を付けることにある
0
この場合、直接、射影法を採用すると、次の問題がある
。丁なわち、英数字及び一般記号の矩形は単一の矩形に
属するが、漢字の矩形は数(1個〜s i[!if )
が一定しない。このため、単一の矩形が漢字の条件を満
足するか、否かを調べないと、漢字に正しく枠を付ける
ことが出来ない。また、複数個の矩形につき、矩形を融
合させて、融合した矩形が漢字制限の条件に合致するか
、否かを凋べろ。合致した場合には、矩形中に入ったも
のが漢字であることを示しているため、矩形の融合物件
を停止しなければならない。これをしないと、融合した
矩形が制限を越えるまで融合動作を絖けてしまり。For example, if you frame it like Le・□川Q0 In this case, if you directly adopt the projection method, there will be the following problem. In other words, rectangles for alphanumeric characters and general symbols belong to a single rectangle, but rectangles for kanji belong to numbers (1 ~ s i[!if )
is not constant. Therefore, it is not possible to correctly frame a kanji unless it is checked whether a single rectangle satisfies the kanji conditions. Also, for multiple rectangles, merge the rectangles and check whether the merged rectangle meets the conditions of the kanji restriction. If there is a match, this indicates that what is inside the rectangle is a kanji, so the rectangular fusion object must be stopped. If this is not done, the fusion operation will continue until the fused rectangle exceeds the limit.
ところで、統計によると、漢字には次のような特性を具
えていることが分かる。By the way, statistics show that kanji have the following characteristics.
(1) 5401個の常用漢字の中に、単一矩形構造
に属するものが87チ、双矩形構造に属するものが11
%、このいずれにも属さないものが2チ占めている。(1) Among the 5,401 commonly used kanji, 87 characters belong to a single rectangular structure, and 11 characters belong to a double rectangular structure.
%, and those that do not belong to either of these account for 2.
(2)漢字は一般に四方字形上・を造乞呈し1、その縦
横比は普;j!11: tであるが、単一構造の漢字は
縦横比の変化が大きく、例えば“°日″は1.6 :
1、” JIII ”は0.77 : lである。なお
、双矩形以上の構造の漢字は比較的安定で、98%のも
のは縦横比が0.9 : l〜1.1 : lの間にあ
る。(2) Kanji generally have a square shape, 1, and the aspect ratio is normal; j! 11: t, but kanji with a single structure have a large change in aspect ratio, for example "°日" is 1.6:
1. "JIII" is 0.77:l. Note that kanji characters with a birectangular or larger structure are relatively stable, and 98% of them have an aspect ratio between 0.9:l and 1.1:l.
(3)漢字は続けて出現する(漢字同士が常に隣合う)
。(3) Kanji appear consecutively (Kanji are always next to each other)
.
この発明のイ11η造化文字切出法は、このような漢字
の特性を取り入れて、上述の問題が生じることなく文字
列中の文字に枠を付けて切り出しを行うようにしたもの
である。基本的な内容は次の通りである。すなわち、
(1)マず、全ての単一矩形構造の特性を調べて、厳し
い判断条件に合致した漢字矩形を切り出す。The A11η artificial character extraction method of the present invention incorporates these characteristics of kanji characters and allows characters in a character string to be extracted with a frame, without causing the above-mentioned problems. The basic contents are as follows. That is, (1) First, examine the characteristics of all single rectangular structures and extract kanji rectangles that meet strict criteria.
(2)漢字同士が常に隣合う特性に基づき、左右に切り
出されるものがあってその間にものが未だ切り出されて
いない場合には、緩めの条件で単一矩形及び融合矩形の
判断を行う。(2) Based on the characteristic that kanji characters are always adjacent to each other, if there are characters to be cut out on the left and right, but nothing in between has been cut out yet, a single rectangle or a fused rectangle is determined under relaxed conditions.
(3)全ての漢字が切り出された後、残って切り出され
ていないものは、英数字又は記号とする。(3) After all kanji have been cut out, the remaining uncut characters shall be alphanumeric characters or symbols.
第7図は文字切出手段30で実行される処理内容を示す
フローチャートである。FIG. 7 is a flowchart showing the processing contents executed by the character cutting means 30.
まず、矩形捜索プロセスでは、文字列中の全ての左右に
分離された矩形に枠を付ける。これは次のようにして行
う。First, in the rectangle search process, frames are placed around all left and right rectangles in the character string. This is done as follows.
(1) 水平軸(X)における画像の投影から矩形左
右端の位置を探り(第8図のXi r X2を参照)、
矩形の水平方向の位置を捜し出す。(1) Find the positions of the left and right ends of the rectangle from the projection of the image on the horizontal axis (X) (see Xi r X2 in Figure 8),
Find the horizontal position of the rectangle.
(2)各矩形の左右端部の領域内の画像の垂直軸(Y)
への投影から矩形上下端の位置を探り(同図のYl、Y
2を参照)、矩形の垂直方向の位置を披し吊子。(2) Vertical axis (Y) of the image within the left and right end areas of each rectangle
Find the positions of the upper and lower ends of the rectangle by projecting them onto (Yl, Y in the same figure)
2), determine the vertical position of the rectangle.
次に、文字列中の漢字の高さを算出する。これを行うの
は、矩形が漢字字形に合致するか、否かを判断するパラ
メータが全部漢字の高さに関係するからである。話さ得
点法により、文字列の高さを計メrする場合の原則は次
の通りである。Next, calculate the height of the kanji in the string. This is done because the parameters for determining whether a rectangle matches a Kanji character shape are all related to the height of the Kanji character. The principle of measuring the height of a character string using the speaking score method is as follows.
(1)ある高さhが発生した時、hとその前後領域は対
応した高さ得点に対し、影響を与えるQ(2)漢字の矩
形が英数字の矩形よりも大きいといつQf性で漢字の得
点比重を増大させる。(1) When a certain height h occurs, h and the area before and after it have an influence on the corresponding height score. (2) When the rectangle of a kanji is larger than the rectangle of an alphanumeric character, when does the kanji become Qf-like? Increase the weight of points.
(3)−文字列の中の最大得点の高さを漢字の高さとす
る。(3) - Set the height of the maximum score in the character string as the height of the kanji.
第9図(a) 、 (b)は、ある単一矩形の高さの得
点状況を示している。同図に示すように、文字列の高さ
は、該文字列におけろ全ての矩形高さの得点から統計し
たものである。Figures 9(a) and 9(b) show the score status of the height of a certain single rectangle. As shown in the figure, the height of a character string is statistically calculated from the height scores of all rectangles in the character string.
次に、使先切出プロセスを実行する。この優先切出プロ
セスでは、単一矩形を処理し、三種類の安定で誤りの発
生し難い漢字及び句読点記号を切り出すと共に、それぞ
れに表示の属性を与える。Next, perform a waste cutting process. This priority extraction process processes a single rectangle, extracts three types of stable and error-prone Kanji and punctuation symbols, and gives display attributes to each.
第1類は、きちとした漢字であり、属性を1とする。The first category is a proper kanji, and has an attribute of 1.
切り出し条件は、
(1) 1en−3<矩形の長さ <ten−L(2
)wid−3<矩形の幅 (wid−L(3) r
at−3<矩形の縦横比<rat−L(4)左右矩形と
の間隔>bnk
とする。The cutting conditions are (1) 1en-3<rectangle length<ten-L(2
)wid-3<width of rectangle (wid-L(3) r
It is assumed that at-3<aspect ratio of rectangle<rat-L (4) distance between left and right rectangles>bnk.
第2類は、読点(、)コンマ(1)、句点(o)であり
、属性を2とする〇
切り出し条件は、
(1)左右矩形との間隔>Comma
(2) dat−8<矩形の長さ、幅(dat−Lと
する〇
第3類は“−″、″、′=′”であり、属性を3とする
。The second type is a comma (,), a comma (1), and a period (o), and the attribute is 2. The extraction conditions are: (1) Distance between left and right rectangles > Comma (2) dat-8 < rectangle Length, width (dat-L) The third class is "-", ", '='", and the attribute is 3.
切り出し争注は、
(1)dat−3<矩形の長さく (dat−3+ d
at−L) > 1
(2)矩形の幅<wid−3
とする〇
ここで、ten−3は、きちんとした漢字の許容され得
る最小矩形の長さ、
1en−Lは、きちんとした漢字の許容され得る最大矩
形の長さ、
wid−3は、きちんとした漢字の許容され得る最小矩
形の幅、
wid−Lは、きちんとした漢字の許容され得る最大矩
形の幅、
rat−3は、さちんとした漢字の許容され得る最小矩
形の縦横比、
rat−Lは、きちんとした漢字の許容され得る最大矩
形の縦横比、
Commaは、句、読点等矩形及び左右矩形の許容され
得る最小矩形
の長さ、
dat−8は、句、読点等矩形の許容され得ろ最小矩形
の長さ、
dat−Lは、句、読点等矩形の許容され得る最大矩形
の長さ、
bnk は、二漢字間の距離、即ち余白の幅
をいう。(1) dat-3<the length of the rectangle (dat-3+ d
at-L) > 1 (2) Width of the rectangle <wid-3〇Here, ten-3 is the minimum allowable length of the rectangle for a proper kanji, and 1en-L is the allowable length for a proper kanji. wid-3 is the minimum allowable rectangular width of a neat kanji, wid-L is the maximum allowable rectangular width of a neat kanji, rat-3 is a neat kanji. rat-L is the maximum permissible rectangular aspect ratio of a proper kanji; Comma is the minimum permissible rectangular length of phrases, commas, etc., and left and right rectangles; dat-8 is the minimum permissible rectangular length of a rectangle such as a phrase or comma, dat-L is the maximum permissible rectangular length of a rectangle such as a phrase or comma, bnk is the distance between two kanji, i.e. Refers to the width of the margin.
第10図は、上記優先切出プロセスで処理された矩形と
属性との対応状況を示すものである。FIG. 10 shows the correspondence between rectangles and attributes processed in the above priority extraction process.
次いで、右方向切出プロセスを実行する0この右方向切
出プロセスでは、漢字同士が隣合うという特性を活用し
て、左側矩形が丁べに切り出されて、その隣(右側)の
矩形が未だ切り出されていないものに対し、比較的ゆる
やかな条件で単一矩形と融合矩形に関する構造的切出判
断を行い、切り出された全ての矩形に対し右側に位置す
る漢字矩形を捜し吊子。Next, execute the rightward extraction process.0 In this rightward extraction process, the left side rectangle is cut out to the left by taking advantage of the property that kanji are adjacent to each other, and the rectangle next to it (right side) is still cut out. For those that have not been cut out, structural cutout judgments regarding single rectangles and fused rectangles are made under relatively relaxed conditions, and a kanji rectangle located on the right side of all cut out rectangles is searched and hung.
切り出しの条件は、
(1) length−3< (融合)矩形の長さく
length−L
(2) width −3< (融合)矩形の幅(w
idth−L(3)(融合)矩形と隣の切出矩形との中
心間距離>pitch−8
(4)単一矩形に対して、cam−3<矩形の縦横比<
com−L
(5)融合矩形に対して、m1d−3<矩形の縦横比<
m1d−L
上記条件を64足したに強含)矩形が複数個ある場合、
(融合)矩形の幅と漢字の高さとの差が最小のもの、丁
なわち最も正方形に類似したものを選択し、これを切り
吊子。The conditions for cutting out are: (1) length-3< (fusion) length of rectangle length-L (2) width -3< (fusion) width of rectangle (w
idth-L (3) Distance between centers of (fusion) rectangle and adjacent cut-out rectangle > pitch-8 (4) For a single rectangle, cam-3 < rectangle aspect ratio <
com-L (5) For the fused rectangle, m1d-3<the aspect ratio of the rectangle<
m1d-L If there are multiple rectangles, 64 plus the above conditions,
(Fusion) Select the one with the smallest difference between the width of the rectangle and the height of the kanji, which is the one most similar to a square, and cut it to make a hanging.
この後、左方向切出プロセスを実行する。このプロセス
では、右方向切出プロセスと同じ操作を行うが、対象と
なるのは、右側矩形が既に切り出されているが、その叫
(左1ftl+ ’)の矩形が未だ切り出されていない
ものとする。After this, a leftward cutting process is performed. In this process, the same operation as the rightward cutting process is performed, but the target is that the right rectangle has already been cut out, but the rectangle on the left side (1ftl+') has not been cut out yet. .
このようにして文字列から文字に枠を付けて切り出すが
、文字列の中には最左端の矩形と最右端の矩形が切り出
されないままのものがある。このような謁合には、端点
切出プロセスにより、両端の矩形に対し特殊な処理を施
して、全ての漢字が正確に切り出されるようにするQ
第11図は上記文字切出処理を施した結果を示すもので
ある。In this way, characters are cut out from a string with frames attached to them, but some of the strings have their leftmost rectangles and rightmost rectangles left uncut. For such an audience, special processing is applied to the rectangle at both ends using the end point extraction process to ensure that all kanji are accurately extracted.Q Figure 11 shows the above character extraction process. This shows the results.
この文字切出処理の後、光学文字認識系(Op−tic
al Character Recognition
; OCR)に転送されろ。After this character extraction process, an optical character recognition system (Op-tic
alCharacter Recognition
; be forwarded to OCR).
前記枠字方法の実用性を確認するため、C言語でPCニ
ーAT で実験したところ次の表に示す結果が得られた
。In order to confirm the practicality of the frame character method, an experiment was conducted using the C language on a PC knee AT, and the results shown in the following table were obtained.
なお、変数値は下記のものを使用した。なお、5ize
は文字列の漢字の高さを表す。The following variable values were used. In addition, 5ize
represents the height of the kanji in the string.
len −L = 1.25Xsize fen −
5= 0.87Xsisewid−L = 1.15
X 5ize wid−3= 0.83 X 5iz
erat −L = 1.37 rat −8
= 0.751ength −L= 1.35 X s
izelength −S= 0.58 X size
width −L = 1.45 X sizewid
th −S= 0.57 X sizecom −L
= 1.8 com −S = 0.48m
1d −LJ = 1.55 mj d −S
= 0.58pitch −S = 0.95 X
sizecomma = 0.35 X 5ize
dat−L=0.45Xsize dat−3=O
,1Xsizeまた、処理対象は電子発展月刊誌及び他
の雑誌等で、図表、文章(漢字、英数字及び特殊記号が
含まれ、かつ文字間の距離が定まっていないもの)が含
まれたもので、頁数は10頁であった。len −L = 1.25Xsize fen −
5=0.87Xsisewid-L=1.15
X 5ize width-3= 0.83
erat −L = 1.37 rat −8
= 0.751ength - L = 1.35 X s
size length -S= 0.58
width −L = 1.45
th −S= 0.57 X sizecom −L
= 1.8 com - S = 0.48m
1d −LJ = 1.55 mj d −S
= 0.58pitch-S = 0.95X
sizecomma = 0.35 x 5ize
dat-L=0.45Xsize dat-3=O
, 1Xsize In addition, the processing targets are electronic development monthly magazines and other magazines that contain figures, tables, and sentences (including kanji, alphanumeric characters, and special symbols, and the distance between characters is not fixed). , the number of pages was 10.
表
テスト資料 12345678910総文字数 33
0300220300320220720390460
800誤りた字数 3 2 2 4 3 2
1 12 9 15切出率チ 99. l 99.39
9.198.799,199.199,896.998
.098.1(発明の効果)
以上説明した。J:5に;j’; lの発明によれば、
一次走査ブロック・ラベリング法を採用しているので、
−回の走査で文字列、画像ブロック、図形ブロックを分
離処理でき、効率良くデータベース化を図ることが出来
ろ。また、第2の発明によれば、構造化文字切出法を採
用しているので、文字列から正確に文字に枠を付けて切
り出すことができ、効率良くデータベース化を図ること
が出来ろ。さらに、第3の発明によれば、一次走査ブロ
ック・ラベリング法により文字列、画像ブロック、図形
ブOZIりな分離した後、構造化文字切出法により文字
列から文字に枠を付けて切り出すようにしているので、
ブロック分離に際し時間がかからず、また文字切出しに
際し正確に行え、効率良くデータベース化を図ることが
出来る。Table test material 12345678910 Total number of characters 33
0300220300320220720390460
800 incorrect characters 3 2 2 4 3 2
1 12 9 15 Cutting rate 99. l 99.39
9.198.799, 199.199, 896.998
.. 098.1 (Effects of the Invention) This has been explained above. According to the invention of J:5;j';l,
Since the primary scanning block labeling method is adopted,
- Character strings, image blocks, and graphic blocks can be separated and processed in one scan, and databases can be created efficiently. Further, according to the second invention, since a structured character extraction method is adopted, characters can be accurately extracted from a character string with a frame attached to them, and a database can be created efficiently. Furthermore, according to the third invention, after character strings, image blocks, and graphic blocks are separated by a primary scanning block labeling method, characters are cut out from the character string with a frame attached to them by a structured character extraction method. Because
Block separation does not take much time, character extraction can be performed accurately, and a database can be created efficiently.
′yJ1図は第3の発明を実施する装置のブロック図、
第2図はブロック分離前のV類を示す図、第3図はブロ
ック分離処理後の書類を示す説明図、第4図は一次走査
ブロック・ラベリング法による処理内容を示すフローチ
ャート、第5図は°“近隣領・戎″の円容乞説明する説
明図、第6図(a) 、 (b)は分析内容(判断の原
則)′?:説明するブロック特性分布図、第7・図は構
造化文字切出法による処理内容を示すフローチャート、
第8図は我(僕)という字をX、Y方回に投影する操作
(矩形抄出プロセス)の説明図、′、■9図(、) 、
(b)は、ある単一矩形の高さの得点状況を示す説明
図とグラフ、第10図は優先切出プロセスで処理された
矩形と属性との対応状況乞示す説明図、第11図は文字
切出処理を施した結果を示す説明図である。
io・・・・光学読取装置、
20・・・・ブロック分離手段、
30・・・・文字切出手段。
第1凹
尾2圀 #、3図
尾5図
毛4関
プロv7建已
第i1凹
水+方I8″1RC
1−1o l−I+
HO川
馨、7凹
雉井蝿i怜Uゑ出
粂8図
秦10凹
子へ
峠
工 ≧
も11凹
ダτう・) 如オpa像一次8別
’44m1 ロロロロロロ=ロロロロ浄先″7″
口 ローロ
石カ旬177比
胎都社口 口
鳩、!!!旬出
枠害h+ロロロロローロロロ
定弯4姓 110013101
目之量化・以pb化
四ロロ叩ロロロロロロ
ロロ ロロ
ロ
ロ
ロ
ロロロロロロロn口
+ 1 1 1 21001Figure 'yJ1 is a block diagram of a device implementing the third invention,
Fig. 2 is a diagram showing class V before block separation, Fig. 3 is an explanatory diagram showing a document after block separation processing, Fig. 4 is a flowchart showing the processing contents by the primary scanning block labeling method, and Fig. 5 is a diagram showing the document after block separation processing. °Explanatory diagram explaining the yen request of "neighboring territory/ekisu", Figures 6 (a) and (b) are the content of analysis (judgment principle)'? : A block characteristic distribution diagram to be explained; Figure 7 is a flowchart showing the processing contents by the structured character extraction method;
Figure 8 is an explanatory diagram of the operation (rectangle extraction process) of projecting the character ``wa'' (boku) in the X and Y directions.
(b) is an explanatory diagram and graph showing the score status of the height of a certain single rectangle, Figure 10 is an explanatory diagram showing the correspondence status between rectangles processed in the priority extraction process and attributes, and Figure 11 is FIG. 3 is an explanatory diagram showing the result of character extraction processing. io...Optical reading device, 20...Block separation means, 30...Character cutting means. 1st Okoo 2 Kuni #, 3 Fig. 5 Fig. 4 Seki Pro v7 Kenjii 1st Kosui + way I8″1RC 1-1o l-I+ HO Kawakae, 7 Kochii Maii Rei UゑDekume Figure 8 Qin 10 concave pass construction ≧ mo 11 concave τu・) Nyoopa statue primary 8 separate '44 m1 Rorororororo = Rorororo purification point ``7''
Mouth Roro Ishika Shun 177 Hitoshaguchi Mouth pigeon,! ! ! Shun-out frame damage h + Rorororororororo fixed 4 surnames 110013101 Meme quantification/becomes pb 4 Roro hits Rorororororororo Rorororororororororororo n mouth + 1 1 1 21001
Claims (3)
、ブロック分離処理法により、文字列(文字ブロック)
、画像ブロック及び図形ブロックに分離し、次いで文字
切出法により、分離された文字列から漢字、英数字及び
句読点記号に枠を付けて切り出す枠字処理方法において
、 前記ブロック分離処理法を、 ビットマップ(bitmap)画像をラン・レングス・
コード(Run Length Code)に変換する
ためのCRLC(Cnstrained Run Le
ngth Code)転換プロセスと、 ラベリング(Labeling)法で、隣接関係にある
CRLCを連続させることにより、一ブロック(独立の
ブロック)として分離するブロック分離プロセスと、 独立したブロックに記録されたCRLCからもとのビッ
トマップ(bitmap)画像における各対応位置(X
、Y)を算出することにより、各ブロックの画像を抽出
する画像抽出プロセスと、ブロックの高さとラン・レン
グス(Run Len−gth)平均値からブロックの
種類を判別するブロック画像種類判別プロセスと、 とからなる一次走査ブロック・ラベリング法により構成
したことを特徴とする枠字処理方法。(1) The image data of the document read into the computer is converted into character strings (character blocks) using the block separation processing method.
, a frame character processing method in which kanji, alphanumeric characters, and punctuation marks are separated into image blocks and graphic blocks, and then cut out from the separated character strings by adding a frame to kanji, alphanumeric characters, and punctuation marks using a character extraction method, Map (bitmap) image by run length
CRLC (Cn strained Run Le
ngth code conversion process, a block separation process that separates adjacent CRLCs into one block (independent block) by making them contiguous using the labeling method, and a block separation process that separates CRLCs recorded in independent blocks. Each corresponding position (X
. A frame character processing method characterized in that it is configured by a primary scanning block labeling method consisting of.
、ブロック分離処理法により、文字列(文字ブロック)
、画像ブロック及び図形ブロックに分離し、次いで文字
切出法により、分離された文字列から漢字、英数字及び
句読点記号に枠を付けて切り出す枠字処理方法において
、 前記文字切出法を、 文字列の左右に分離された矩形に枠を付ける矩形捜索プ
ロセスと、 高さ得点法により漢字の高さを求める文字列高さ計算プ
ロセスと、 属性により漢字や句読点を切り出す優先切出プロセスと
、 比較的ゆるやかな条件により、切り出された全ての矩形
の右、あるいは左側に位置する漢字矩形を捜し出す右方
向、左方向切出プロセスとを具備した構造化文字切出法
により構成したことを特徴とする枠字処理方法。(2) The image data of the document read into the computer is converted into character strings (character blocks) using the block separation processing method.
, a frame character processing method in which kanji, alphanumeric characters, and punctuation marks are separated into image blocks and graphic blocks, and then cut out from the separated character strings by adding a frame to kanji, alphanumeric characters, and punctuation marks using a character extraction method, Comparison of a rectangle search process that frames rectangles separated on the left and right sides of a column, a character string height calculation process that calculates the height of kanji using the height scoring method, and a priority extraction process that cuts out kanji and punctuation marks based on attributes. It is characterized by being constructed by a structured character extraction method that includes rightward and leftward extraction processes that search for Kanji rectangles located to the right or left of all the extracted rectangles under strict conditions. Frame processing method.
、文字列(文字ブロック)、画像ブロック及び図形ブロ
ックに区分する一次走査ブロック・ラベリングと、前記
文字列から漢字、英数字及び句読点記号に枠を付けて切
り出す構造化文字切出法とを具備し、 前記一次走査ブロック・ラベリング法を、 ビットマップ(bitmap)画像をラン・レングス・
コード(Run Length Code)に変換する
ためのCRLC(Cnstrained Run Le
ngth Code)転換プロセスと、 ラベリング(Labeling)法で、隣接関係にある
CRLCを連続させることにより、一ブロック(独立の
ブロック)として分離するブロック分離プロセスと、 独立したブロックに記録されたCRLCからもとのビッ
トマップ(bitmap)画像おける各対応位置(X、
Y)を算出することにより、各ブロックの画像を抽出す
る画像抽出プロセスと、 ブロックの高さとラン・レングス(Run Len−g
th)平均値からブロックの種類を判別するブロック画
像種類判別プロセスとから構成し、 また、前記構造化文字切出法を、 文字列の左右に分離された矩形に枠を付ける矩形捜索プ
ロセスと、 高さ得点法により漢字の高さを求める文字列高さ計算プ
ロセスと、 属性により漢字や句読点を切り出す優先切出プロセスと
、 比較的ゆるやかな条件により、切り出された全ての矩形
の右、あるいは左側に位置する漢字矩形を捜し出す右方
向、左方向切出プロセスとから構成したことを特徴とす
る枠字処理方法。(3) Primary scanning block labeling that divides the image data of a document read into a computer into character strings (character blocks), image blocks, and graphic blocks, and frames the character strings into kanji, alphanumeric characters, and punctuation marks. and a structured character extraction method that extracts the bitmap image by adding a run length to the bitmap image.
CRLC (Cn strained Run Le
ngth code conversion process, a block separation process that separates adjacent CRLCs into one block (independent block) by making them contiguous using the labeling method, and a block separation process that separates CRLCs recorded in independent blocks. Each corresponding position (X,
The image extraction process extracts the image of each block by calculating the block height and run length (Run Len-g
th) a block image type discrimination process that discriminates the block type from the average value; A character string height calculation process that calculates the height of kanji using the height scoring method, a priority extraction process that extracts kanji and punctuation marks based on their attributes, and a relatively loose condition that calculates the height of kanji to the right or left of all the extracted rectangles. A frame character processing method characterized by comprising a rightward and leftward cutting process of searching for a kanji rectangle located in .
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63132524A JPH0747333B2 (en) | 1988-05-30 | 1988-05-30 | Frame processing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63132524A JPH0747333B2 (en) | 1988-05-30 | 1988-05-30 | Frame processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH01320171A true JPH01320171A (en) | 1989-12-26 |
| JPH0747333B2 JPH0747333B2 (en) | 1995-05-24 |
Family
ID=15083319
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63132524A Expired - Fee Related JPH0747333B2 (en) | 1988-05-30 | 1988-05-30 | Frame processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0747333B2 (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5745683A (en) * | 1980-09-01 | 1982-03-15 | Comput Basic Mach Technol Res Assoc | Character read-in device |
| JPS6132187A (en) * | 1984-07-19 | 1986-02-14 | インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション | Character recognition system |
| JPS6165378A (en) * | 1984-09-06 | 1986-04-03 | Toshiba Corp | Character pattern recognizing method and device |
| JPS62224870A (en) * | 1986-03-26 | 1987-10-02 | Hitachi Ltd | Document picture processing system |
| JPS6378287A (en) * | 1986-09-22 | 1988-04-08 | Matsushita Electric Ind Co Ltd | Character recognizing device |
-
1988
- 1988-05-30 JP JP63132524A patent/JPH0747333B2/en not_active Expired - Fee Related
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5745683A (en) * | 1980-09-01 | 1982-03-15 | Comput Basic Mach Technol Res Assoc | Character read-in device |
| JPS6132187A (en) * | 1984-07-19 | 1986-02-14 | インタ−ナショナル ビジネス マシ−ンズ コ−ポレ−ション | Character recognition system |
| JPS6165378A (en) * | 1984-09-06 | 1986-04-03 | Toshiba Corp | Character pattern recognizing method and device |
| JPS62224870A (en) * | 1986-03-26 | 1987-10-02 | Hitachi Ltd | Document picture processing system |
| JPS6378287A (en) * | 1986-09-22 | 1988-04-08 | Matsushita Electric Ind Co Ltd | Character recognizing device |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0747333B2 (en) | 1995-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3253356B2 (en) | Document image area identification method | |
| Kleber et al. | Cvl-database: An off-line database for writer retrieval, writer identification and word spotting | |
| US5848184A (en) | Document page analyzer and method | |
| JP3282860B2 (en) | Apparatus for processing digital images of text on documents | |
| US8565474B2 (en) | Paragraph recognition in an optical character recognition (OCR) process | |
| Xi et al. | A video text detection and recognition system | |
| Singh et al. | Optical character recognition (OCR) for printed devnagari script using artificial neural network | |
| CN100568263C (en) | Layout analysis device and layout analysis method | |
| US20070041642A1 (en) | Post-ocr image segmentation into spatially separated text zones | |
| JPS61267177A (en) | Retrieving system for document picture information | |
| CN114495141B (en) | Document paragraph position extraction method, electronic device and storage medium | |
| US5455871A (en) | Detecting function words without converting a scanned document to character codes | |
| Mitchell et al. | Newspaper document analysis featuring connected line segmentation | |
| Wang et al. | Block selection: a method for segmenting a page image of various editing styles | |
| JPH1166196A (en) | Document image recognition device and computer-readable recording medium storing a program for causing a computer to function as the device | |
| Panichkriangkrai et al. | Character segmentation and retrieval for learning support system of Japanese historical books | |
| Stamatopoulos et al. | Page frame detection for double page document images | |
| JPH01320171A (en) | Method of processing framed character | |
| Bansal et al. | Segmentation of touching characters in Devanagari | |
| van Heusden et al. | Detection of redacted text in legal documents | |
| JPS6325391B2 (en) | ||
| Dey et al. | Margin noise removal from printed document images | |
| JP3091278B2 (en) | Document recognition method | |
| JP3187895B2 (en) | Character area extraction method | |
| Lehal et al. | A complete OCR system for Gurmukhi script |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |