JPH01197890A - Inclined character recognizing system - Google Patents

Inclined character recognizing system

Info

Publication number
JPH01197890A
JPH01197890A JP8822288A JP2228888A JPH01197890A JP H01197890 A JPH01197890 A JP H01197890A JP 8822288 A JP8822288 A JP 8822288A JP 2228888 A JP2228888 A JP 2228888A JP H01197890 A JPH01197890 A JP H01197890A
Authority
JP
Japan
Prior art keywords
character
data
character string
characters
scanning
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.)
Pending
Application number
JP8822288A
Other languages
Japanese (ja)
Inventor
Daiji Tamiya
田宮 大司
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP8822288A priority Critical patent/JPH01197890A/en
Publication of JPH01197890A publication Critical patent/JPH01197890A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To surely recognize segment characters even when the characters are inclined characters by a contour scanning method by scanning scanning lines lines for the segment characters in vertical and horizontal directions so that the scanning directions can be parallel with rectangular coordinates inclined by a detected inclination angle for reading rectangular coordinates. CONSTITUTION:In the case of the inclined characters, a character string extracting part 16 retrieves line data 26 adjacent to the inclined character string, detects the inclination theta of the characters from the line data 26, and stores the detected inclination theta in a character string data table 18. Therefore, an edge table preparing part 22 can know the inclination theta of the characters from the character string data table 18, and the edge table preparing part 22 prepares an edge table by scanning the scanning lines by the contour scanning method in the vertical and horizontal directions so that the scanning directions can be parallel with the rectangular coordinates inclined at the inclination thetafor the reading rectangular coordinates. Consequently, even when the characters are the inclined characters, the same edge table as the one for the characters having no inclination can be prepared. Thus, even the inclined characters can be surely recognized.

Description

【発明の詳細な説明】 ta要] 手書き図面に描かれた傾斜文字を読取って認識する傾斜
文字の認識方式に関し、 傾斜文字であっても輪郭走査法によって確実に認識する
ことを目的とし、 読取り後にベクトル化された文字列データに隣接する線
データから文字の傾斜角度を検出し、輪郭走査法による
エツジテーブルの作成時に、切り出し文字に対する走査
線を読取直交座標に対し検出傾斜角だけ傾いた直交座標
と平行に垂直及び水平方向に走査してエツジテーブルを
作成する。
[Detailed Description of the Invention] ta] Regarding a method for recognizing slanted characters by reading and recognizing slanted characters drawn on handwritten drawings, the present invention aims to reliably recognize even slanted characters using a contour scanning method. Later, the inclination angle of the character is detected from the line data adjacent to the vectorized character string data, and when creating an edge table using the contour scanning method, the scanning line for the cut out character is read and the orthogonal coordinate is tilted by the detected inclination angle with respect to the orthogonal coordinate. Create an edge table by scanning vertically and horizontally parallel to the coordinates.

[産業上の利用分野] 本発明は、手書き図面に描かれた傾斜文字を読取って認
識する傾斜文字の認識方式に関する。
[Industrial Field of Application] The present invention relates to a slanted character recognition method for reading and recognizing slanted characters drawn on handwritten drawings.

手書きされた地図、プラント図、回路図等の図面を読取
ってデータ化する図形認識システムにあっては、図形認
識と同時に図面に描かれた文字を認識する文字認識処理
を行なっており、手書き図面をデータ化してファイルに
格納するようにしている。
In a figure recognition system that reads hand-drawn drawings such as maps, plant diagrams, circuit diagrams, etc. and converts them into data, character recognition processing is performed to recognize characters drawn on the drawings at the same time as figure recognition. is converted into data and stored in a file.

即ち、地図、プラント図、回路図等の手書き図面を認識
する場合には、図形に関す8線種の識別、塗り潰し、領
域の抽出、情報の縮小(2値化データのベクトル化)等
の処理と共に文字の認識も重要な処理の1つであり、今
後も図形認識処理の分野における文字認識への比重は大
きい。
That is, when recognizing handwritten drawings such as maps, plant diagrams, circuit diagrams, etc., processing such as identification of eight line types, filling, area extraction, and information reduction (vectorization of binarized data) is necessary. At the same time, character recognition is also an important process, and in the future, character recognition will continue to be given great importance in the field of graphic recognition processing.

[従来の技術] このような図形認識システムに用いられる文字認識方式
にあっては、例えば第13図に示す認識処理を行なうこ
とが考えられている。
[Prior Art] In a character recognition method used in such a graphic recognition system, it has been considered to carry out the recognition process shown in FIG. 13, for example.

まずステップS1に示すように、イメージスキャナから
図面を読取って2値画像データに変換し、この2値画像
データをステップS2で1画素幅の画像データに変換す
るa線化を行ない、更にステップS3で細線化データを
ベクトルデータに変換して情報量を圧縮する。
First, as shown in step S1, a drawing is read from an image scanner and converted into binary image data, and this binary image data is converted into a-line image data with a width of 1 pixel in step S2, and then in step S3 The thinning data is converted to vector data to compress the amount of information.

次にステップS4で、ベクトルデータの連結性や構成等
から文字又は文字列を構成していると思われるデータを
抽出する文字列抽出処理を行なう。
Next, in step S4, character string extraction processing is performed to extract data that is considered to be a character or character string based on the connectivity, structure, etc. of the vector data.

この文字列抽出処理で得られたデータからステップS5
で2値画像データを1文字ずつ切り出し、ステップS6
で輪郭走査法によってエツジテーブルを作成する。
From the data obtained in this character string extraction process, step S5
Cut out the binary image data character by character in step S6.
Create an edge table using the contour scanning method.

この輪郭走査法により作成されるエツジテーブルは、文
字を構成する画素の連続性を示すデータテーブルである
。
The edge table created by this contour scanning method is a data table showing the continuity of pixels forming a character.

例えば第14図に示す2t[画像データを対象とした輪
郭走査法によるエツジテーブルの作成を具体的に説明す
ると次のようになる。
For example, the creation of an edge table using the contour scanning method for 2t[image data shown in FIG. 14] will be specifically explained as follows.

輪郭走査法により作成されるエツジテーブルは第15図
に示す文字の上下方向(垂直方向)の連続性を示す上下
エツジテーブルと、第1′6図に示す文字の左右方向(
水平方向)の連続性を示す左右エツジテーブルの2つと
なる。
The edge tables created by the contour scanning method are the upper and lower edge tables that show the continuity of characters in the vertical direction (vertical direction) shown in Figure 15, and the upper and lower edge tables that show the continuity of characters in the horizontal direction (vertical direction) shown in Figure 1'6.
There are two edge tables, left and right, that indicate continuity in the horizontal direction.

第15図の上下エツジテーブルは、第14図で文字に対
する読取直交座標のy軸と平行に所定ピッチで走査線を
X軸方向に平行移動したときの走査線と文字との始点(
下エツジ)と終点(上エツジ)を示すy座標データで作
成される。
The upper and lower edge table in FIG. 15 shows the starting point between the scanning line and the character (
It is created using y-coordinate data indicating the lower edge) and the end point (upper edge).

ここで、第14図のX印は上下エツジテーブルを作成す
るための上下エツジを示している。
Here, the X marks in FIG. 14 indicate the upper and lower edges for creating the upper and lower edge tables.

例えば、第14図の最初の走査位置(X−1)にあって
は、下エツジ(始点)がy=1、上エツジ(終点)がy
=4となることから、第15図の上下エツジテーブルに
はエツジデータ「1」とr4Jが格納される。即ち、文
字はV=1で始ってy=4の前で終っていることを意味
する。
For example, at the first scanning position (X-1) in FIG. 14, the lower edge (start point) is y=1, and the upper edge (end point) is y
=4, edge data "1" and r4J are stored in the upper and lower edge table of FIG. That is, the characters start at V=1 and end before y=4.

更に、例えば走査位置x=10については、「1〜3」
 「6〜8」15〜17」の3つに分かれたエツジデー
タが格納される。
Furthermore, for example, for scanning position x=10, "1 to 3"
Edge data divided into three parts, ``6 to 8'' and 15 to 17'', is stored.

同様に第16図の左右エツジテーブルは、第14図の文
字につきX座標と平行に所定ピッチで走査線をy軸方向
に走査することによって得られた左エツジ(始点)と右
エツジ(終点)のエツジデータ(×座標値)を格納して
いる。尚、第14図の0印は左右エツジテーブルを作成
するための左右エツジ、を示している。
Similarly, the left and right edge table in Figure 16 shows the left edge (starting point) and right edge (end point) of the characters in Figure 14 obtained by scanning scanning lines in the y-axis direction at a predetermined pitch parallel to the X coordinate. The edge data (x coordinate value) of is stored. Note that the 0 marks in FIG. 14 indicate the left and right edges for creating the left and right edge tables.

このようにして第13図のステップS6で全てり切出し
文字についてエツジテーブルを作成したならば、ステッ
プS7でエツジテーブルから文字の特徴を抽出し、辞書
と照合することで文字を認識し、認識結果を出力する。
In this way, if an edge table is created for all extracted characters in step S6 of FIG. 13, character features are extracted from the edge table in step S7, characters are recognized by comparing them with a dictionary, and the recognition results are Output.

[発明が解決しようとする問題点] しかしながら1、このような輪郭走査法によるエツジテ
ーブルから文字を認識する処理で問題となるのは、手書
き図面に傾斜して書かれている所謂傾斜文字の認識であ
る。
[Problems to be Solved by the Invention] However, 1. The problem with the process of recognizing characters from an edge table using such a contour scanning method is the recognition of so-called slanted characters written at an slant in handwritten drawings. It is.

即ち、現在の輪郭走査法にあっては、第14図に示した
ように、文字の走査方向が読取直交座標に平行な垂直及
び水平方向となっているため、読取直交座標に対し傾き
をもった傾斜文字を走査してエツジテーブルを作成して
も、傾斜文字のエツジテーブルから抽出された文字の特
徴は辞書とは全く異なったものとなり、傾斜文字を認識
することができないという問題があった。
In other words, in the current contour scanning method, as shown in Fig. 14, the scanning direction of characters is vertical and horizontal directions parallel to the reading orthogonal coordinates, so the characters are tilted with respect to the reading orthogonal coordinates. Even if an edge table was created by scanning slanted characters, the characteristics of the characters extracted from the edge table of slanted characters were completely different from those in the dictionary, and there was a problem that slanted characters could not be recognized. .

本発明は、このような問題点に鑑みてなされたもので、
手書き図面に書かれた傾斜文字であっても輪郭走査法に
よって確実に認識できるようにした傾斜文字の認識方式
を提供することを目的とする。
The present invention was made in view of these problems, and
To provide a recognition method for slanted characters that can surely recognize even slanted characters written on handwritten drawings by a contour scanning method.

[問題点を解決するための手段] 第1図は本発明の原理説明図ある。[Means for solving problems] FIG. 1 is a diagram explaining the principle of the present invention.

第1図において、手書き図面は読取部10により読取ら
れ、2値化画像データとして細線化処理部12で例えば
1画素幅の細線化データに変換され、更にベクトル変換
部14でベクトルデータに変換され、文字列抽出部16
に与えられる。
In FIG. 1, a handwritten drawing is read by a reading unit 10, converted into binary image data by a thinning processing unit 12, for example, into thinning data with a width of 1 pixel, and further converted into vector data by a vector conversion unit 14. , character string extraction unit 16
given to.

文字列抽出部16はベクトル化された画像データの中か
ら文字列を抽出し、抽出した文字列に基づいて文字列デ
ータテーブル18と文字毎のベクトルデータテーブル2
0を作成する。
The character string extraction unit 16 extracts character strings from the vectorized image data, and creates a character string data table 18 and a vector data table 2 for each character based on the extracted character strings.
Create 0.

文字列データテーブル18及びベクトルデータテーブル
20が作成されると、エツジテーブル作成部22が切り
出された1文字毎のベクトルデータで決まる文字を輪郭
走査法により走査してエツジテーブルを作成し、最終的
に認識部24でエツジテーブルから文字の特徴を抽出し
て辞書と照合して文字を認識する。
When the character string data table 18 and the vector data table 20 are created, the edge table creation unit 22 scans the characters determined by the vector data of each extracted character using the contour scanning method to create an edge table. Next, the recognition unit 24 extracts character features from the edge table and compares them with a dictionary to recognize the characters.

図面に傾斜文字を書く場合、第1図(b)に示すように
、傾斜文字列に隣接して文字の並び方向に沿った引出し
線等が一般的に描かれる。
When writing slanted characters on a drawing, a leader line or the like is generally drawn adjacent to the slanted character string along the direction in which the characters are arranged, as shown in FIG. 1(b).

そこで、傾斜文字の場合にあっては、文字列抽出部16
は文字列に隣接する線データ26を検索し、この線デー
タ26から文字の傾斜角度θを検出して文字列データテ
ーブル18に格納する。
Therefore, in the case of slanted characters, the character string extraction unit 16
searches the line data 26 adjacent to the character string, detects the inclination angle θ of the character from this line data 26, and stores it in the character string data table 18.

このためエツジテーブル作成部22は、文字列データテ
ーブル18から文字の傾斜角度θを知ることが、でき、
輪郭蓬査法による考査線を読取直交座標に対し傾斜角度
θ傾けた直交座標と平行に垂直及び水平方向に走査して
エツジテーブルを作成し、傾斜文字であっても傾きのな
い場合と同じエツジテーブルを作成する。
Therefore, the edge table creation unit 22 can know the inclination angle θ of the character from the character string data table 18.
An edge table is created by scanning the test line using the contour scanning method in the vertical and horizontal directions in parallel with the orthogonal coordinates, which are tilted at an angle of θ with respect to the orthogonal coordinates. Create.

[作用] このような本発明の傾斜文字認識方式によれば、手書き
図面に傾斜して書かれた文字については、輪郭走査法に
よる文字の走査線を傾斜角度だけ傾けた座標系によって
水平及び垂直方向に平行移動させるため、傾斜文字であ
っても傾きのない文字と同じエツジテーブルを作成する
ことができ、エツジテーブルに基づいて傾斜文字であっ
ても確実に認識することができる。
[Operation] According to the slanted character recognition method of the present invention, characters written at an slant on a handwritten drawing are horizontally and vertically determined using a coordinate system in which the scanning line of the character is tilted by the slant angle using the contour scanning method. Because of the parallel movement in the direction, it is possible to create the same edge table for slanted characters as for non-slanted characters, and even slanted characters can be reliably recognized based on the edge table.

[実施例] 第2図は本発明の一実施例を示した実施例構成図である
。
[Embodiment] FIG. 2 is a block diagram showing an embodiment of the present invention.

第2図において、10aは読取部としてのイメージスキ
ャナであり、図面送り方向に直交する方向に複数の受光
画素を配列したラインセンサ等が用いられ、図形文字に
応じたビデオ信号を出力する。イメージスキャナ10a
からのビデオ信号はA/D変換器28で2値化画像デー
タに変換され、バッファメモリ30に図面に1枚分の2
値化画像データが格納される。バッファメモリ30に格
納された読取図面の2値化画像データは細線化処理部1
2で例えば1画素幅の画像データに変換する細線化処理
が施される。
In FIG. 2, reference numeral 10a denotes an image scanner as a reading section, which uses a line sensor or the like in which a plurality of light receiving pixels are arranged in a direction perpendicular to the drawing feeding direction, and outputs a video signal corresponding to graphic characters. Image scanner 10a
The video signal from is converted into binary image data by the A/D converter 28, and is stored in the buffer memory 30 as 2-digit image data for one drawing.
Valued image data is stored. The binarized image data of the read drawing stored in the buffer memory 30 is processed by the thinning processing unit 1.
In step 2, line thinning processing is performed to convert the image data into image data having a width of, for example, one pixel.

尚、バッフ7メモリ30には図形及び文字列の2値化画
像データが格納されているが、細線化処理部12以降の
処理については文字列の2値化画像データのみを対象と
して説明する。
Note that although the buffer 7 memory 30 stores binary image data of figures and character strings, the processing after the thinning processing section 12 will be described with reference to only the binary image data of character strings.

細線化処理部12でto1線化された文字列の2値化画
像データは、ベタ1−ル変換部14でベクトルデータに
変換される。このベクトル変換部14におけるベクトル
データへの変換は、イメージスキャナ10aで決まる読
取直交座標において、細線化された文字列の2値化画像
データの1画素毎の座標データ(ベクトルデータ)を求
める処理である。この2値化画像データのベクトル化に
より以後の認識処理で取扱うデータ量を低減するデータ
圧縮を行なうことができる。
The binary image data of the character string that has been converted into a to1 line by the thinning processing unit 12 is converted into vector data by the solid line conversion unit 14. The conversion into vector data in the vector conversion unit 14 is a process of obtaining coordinate data (vector data) for each pixel of the binary image data of the thinned character string in the reading orthogonal coordinates determined by the image scanner 10a. be. By vectorizing this binarized image data, data compression can be performed to reduce the amount of data to be handled in subsequent recognition processing.

ベクトル変換部14でベクトル化された文字列のデータ
は文字列抽出部16に与えられ、ベクトルデータの中か
ら文字列を構成していると思われるデータを抽出し、こ
の抽出された文字列データ(ベクトルデータ)に基づい
て文字列抽出部16に設けた文字列データテーブル作成
部18aによって文字列データテーブル18が作成され
、また文字ベクトルデータテーブル作成部20aによっ
て文字毎のベクトルデータテーブル20が作成される。
The character string data vectorized by the vector conversion unit 14 is given to the character string extraction unit 16, which extracts data that is considered to constitute a character string from the vector data, and extracts the extracted character string data. (vector data), a character string data table 18 is created by a character string data table creation unit 18a provided in the character string extraction unit 16, and a vector data table 20 for each character is created by a character vector data table creation unit 20a. be done.

ここで、文字列データテーブル作成部18aで文字列デ
ータテーブルを作成する際に、文字列に近接する線デー
タから文字の傾斜角度θを検出して文字列データテーブ
ル18に格納するようになる。
Here, when creating a character string data table in the character string data table creating section 18a, the inclination angle θ of a character is detected from line data adjacent to the character string and stored in the character string data table 18.

文字列抽出部16で文字列データテーブル18及び文字
毎のベクトルデータテーブル20が作成されると、これ
らのテーブルデータを使用してエツジテーブル作成部2
2が輪郭走査法により文字列に含まれる1文字毎のエツ
ジテーブルを作成する。この輪郭走査法によりエツジテ
ーブルを作成する際、傾斜文字の場合には文字列データ
テーブル18に格納された傾斜角度θに基づき、読取直
交座標に対し傾斜角度θだけ傾いた直交座標を設定し、
傾斜角度θに基づいて設定した直交座標と平行に走査線
を垂直方向及び水平方向に走査して傾斜文字のエツジテ
ーブルを作成するようになる。
When a character string data table 18 and a vector data table 20 for each character are created in the character string extraction unit 16, the edge table creation unit 2 uses these table data.
2 creates an edge table for each character included in the character string using the contour scanning method. When creating an edge table using this contour scanning method, in the case of slanted characters, orthogonal coordinates that are inclined by the inclination angle θ with respect to the reading orthogonal coordinates are set based on the inclination angle θ stored in the character string data table 18.
An edge table of a slanted character is created by scanning a scanning line in the vertical and horizontal directions parallel to the orthogonal coordinates set based on the slant angle θ.

エツジテーブル作成部22で各文字毎のエツジテーブル
が作成されると、文字認識部24がエツジテーブルから
文字の特徴を抽出し、予め準備された辞書と照合し、照
合結果に基づいて認識出力を生ずるようになる。
When the edge table creation unit 22 creates an edge table for each character, the character recognition unit 24 extracts character features from the edge table, matches them with a dictionary prepared in advance, and outputs recognition based on the matching results. come to arise.

次に、第3図の動作フロー図を参照して第2図の実施例
による傾斜文字の認識処理を詳細に説明する。
Next, the oblique character recognition process according to the embodiment of FIG. 2 will be described in detail with reference to the operational flow diagram of FIG. 3.

まず、第3図のステップS1にあっては、イメージスキ
ャナ10aにより手書き図面の読取走査を行ない、手書
き図面に描かれた文字列の2値画像データをA/D変換
器28により得てバッファメモリ30に書込む。
First, in step S1 in FIG. 3, a handwritten drawing is read and scanned by the image scanner 10a, and binary image data of a character string drawn on the handwritten drawing is obtained by the A/D converter 28 and stored in a buffer memory. Write to 30.

ここで、イメージスキャナ10aの読取り対象となる手
書き図面は、例えば第4図に示すようなプラント図面で
あり、プラント図面の中には紙面の縦横で決まる読取直
交座標に対し傾いて描かれた傾斜文字列32が描かれて
おり、この傾斜文字列32には通常引出し線56aが近
接して描かれている。本発明の傾斜文字認識処理にあっ
ては傾斜文字32に近接して描かれた引出し線26a等
の線データを文字列の傾斜角度θを検出するための情報
とする。従って、本発明の認識処理の対象とする手書き
図面の書き方については、傾斜文字については傾斜文字
の並び方向に近接して必ず引出し線を描くことを予め決
めておけば良い。
Here, the handwritten drawing to be read by the image scanner 10a is, for example, a plant drawing as shown in FIG. A character string 32 is drawn, and a lead line 56a is usually drawn close to this slanted character string 32. In the slanted character recognition process of the present invention, line data such as the leader line 26a drawn close to the slanted character 32 is used as information for detecting the slant angle θ of the character string. Therefore, regarding how to write handwritten drawings that are subject to the recognition processing of the present invention, it is sufficient to decide in advance that for slanted characters, a leader line must always be drawn close to the direction in which the slanted characters are arranged.

再び第3図を参照するに、ステップS1でイメージスキ
ャナ10aにより読取られた文字列はステップS2で細
線化処理部12により、例えば1画素幅の細線化画像デ
ータに変換され、更にステップS3でベクトル変換部1
4により細線化画像データをベクトルデータに変換する
。
Referring again to FIG. 3, the character string read by the image scanner 10a in step S1 is converted into thinned image data of, for example, 1 pixel width by the thinning processing unit 12 in step S2, and further converted into vector data in step S3. Conversion part 1
4, the thinned image data is converted into vector data.

続いて、ステップS4で文字列抽出部16により抽出さ
れた文字列のベクトルデータを対象として文字列の傾斜
角度θを含む文字列データテーブル18を作成する。
Subsequently, in step S4, a character string data table 18 including the inclination angle θ of the character string is created for the vector data of the character string extracted by the character string extraction unit 16.

ここで、例えば第5図に示すような文字列データが得ら
れたとすると、文字列32の近傍に位置するベクトルデ
ータから線データ26を検出し、読取直交座標に対する
線データ26の傾斜角度から文字列32の傾斜角度θを
検出して文字列データテーブルに格納する。
For example, if character string data as shown in FIG. 5 is obtained, the line data 26 is detected from the vector data located near the character string 32, and the character The inclination angle θ of column 32 is detected and stored in the character string data table.

第6図は第3図のステップS4で作成される文字列デー
タテーブル18の一例を示した説明図である。
FIG. 6 is an explanatory diagram showing an example of the character string data table 18 created in step S4 of FIG. 3.

即ち、文字列データテーブル18には、例えば第3図の
文字列データを例にとると、文字列左上の81点の座標
(A、B)、文字列左下82点の座標(C,D)、文字
列の高さ(H)、文字列の長さ(し)、線データ26に
基づいて検出された文字列の傾き(θ)、文字列内の文
字数(N)、第5図の文字列32に含まれる各文字毎の
左上及び右下の各座標(例えば文字Aにあっては左上座
標(xl 、yl)と右下座標(x2 、 V2 )と
なる)、更に文字を構成するベクトルデータテーブルへ
のポインタが格納される。
That is, in the character string data table 18, for example, taking the character string data shown in FIG. , the height of the character string (H), the length of the character string (shi), the inclination of the character string detected based on the line data 26 (θ), the number of characters in the character string (N), the characters in FIG. The upper left and lower right coordinates of each character included in column 32 (for example, for character A, the upper left coordinates (xl, yl) and lower right coordinates (x2, V2)), and the vectors that make up the character A pointer to the data table is stored.

このようにしてステップS4でベクトルデータから抽出
された文字列に基づく文字列データテーブル18が作成
されると、次のステップS5で文字列に含まれる文字毎
のベクトルデータテーブル20が作成される。
When the character string data table 18 based on the character string extracted from the vector data is created in step S4 in this way, a vector data table 20 for each character included in the character string is created in the next step S5.

第7図はベクトルデータテーブル20の説明図であり、
第5図に示す文字列32に含まれる各文字を構成する線
データのy軸側に近いF rom側の端点の座標、即ち
始点座標と、y軸から離れたTO側端点の座標、即ち終
点座標がベクトルデータとして格納され、更に線データ
が曲線近似等で表わされる場合には、付属情報として曲
線近似である旨が格納される。
FIG. 7 is an explanatory diagram of the vector data table 20,
The coordinates of the end point on the From side close to the y-axis side of the line data constituting each character included in the character string 32 shown in FIG. If the coordinates are stored as vector data and the line data is represented by curve approximation or the like, the fact that it is curve approximation is stored as additional information.

この第7図に示すベクトルデータテーブル20を第5図
の文字列32における文字rAJを例にとって具体的に
説明すると第8図のようになる。
The vector data table 20 shown in FIG. 7 will be specifically explained using the character rAJ in the character string 32 in FIG. 5 as an example, as shown in FIG. 8.

即ち、文字rAJは3本の線データの組み合わせでなる
ことから、文字rAJの左辺についてFrom側端点F
1の座標とTo側端点T1の座標が格納され、また横−
となる線データについてFr。
That is, since the character rAJ is a combination of three line data, the From side end point F for the left side of the character rAJ is
1 coordinates and the coordinates of the To side end point T1 are stored, and the horizontal -
Regarding the line data, Fr.

m側端点F2の座標とTo側端点T2の座標が格納され
、更に文字rAJの右辺の線データについてlr ro
m側端点F3の座標とTo側端点T3の座標が格納され
る。
The coordinates of the m-side end point F2 and the coordinates of the To-side end point T2 are stored, and furthermore, lr ro is stored for the line data on the right side of the character rAJ.
The coordinates of the m-side end point F3 and the coordinates of the To-side end point T3 are stored.

このようなベクトルデータテーブルは残りの文字r2J
 r3J r4Jについても同様に作成される。尚、文
字「2」および「3」については、曲線部分をもつこと
から、曲線を複数に分割して直線近似したベクトルデー
タを格納するか、あるいは適宜の端点の座標データを格
納し、この端点間を結ぶ曲線データを付属情報として格
納すれば良い。
Such a vector data table contains the remaining characters r2J
r3J and r4J are created in the same way. As for the characters "2" and "3", since they have curved parts, vector data obtained by dividing the curve into multiple parts and linear approximation is stored, or coordinate data of appropriate end points is stored, and this end point is It is sufficient to store the curve data connecting between the two as attached information.

再び第3図を参照するに、ステップs5で文字毎のベク
トルデータテーブル20が作成されるとステップS6に
進み、文字毎のベクトルデータテーブルについて輪郭走
査法によってエツジテーブルを作成する。このエツジテ
ーブルを作成する際にステップS4の文字列データテー
ブルに格納された文字列の傾斜角度θを使用して走査線
の走査方向を決める。
Referring again to FIG. 3, once the vector data table 20 for each character is created in step s5, the process proceeds to step S6, where an edge table is created for the vector data table for each character by the contour scanning method. When creating this edge table, the inclination angle θ of the character string stored in the character string data table in step S4 is used to determine the scanning direction of the scanning line.

第9図は第5図の文字列32に含まれる最初の文字rA
Jを例にとって上下エツジテーブルの作成処理を示した
説明図であり、第10図に文字rAJの左右エツジテー
ブルの作成処理を示す。
Figure 9 shows the first character rA included in the character string 32 in Figure 5.
FIG. 10 is an explanatory diagram showing the creation process of the top and bottom edge tables taking J as an example, and FIG. 10 shows the creation process of the left and right edge tables of the character rAJ.

まず、第9図の上下エツジテーブルを作成するための輪
郭走査処理にあっては、第5図に示した読取直交座標(
xy座標)に対し、文字rAJの左下の端点を原点とし
て読取直交座標に対し文字列の傾斜角度θだけ傾けた直
交座標(XY座標)を設定し、この新たに設定した直交
座標のY軸と平行に所定ピッチαで走査線34をX軸方
向に平行移動させ、走査線34と文字rAJとの交点を
示すY座標の値をエツジデータとして上下エツジテーブ
ルに格納する。
First, in the contour scanning process for creating the upper and lower edge tables shown in FIG. 9, the reading orthogonal coordinates (
xy coordinates), set the orthogonal coordinates (XY coordinates) that are tilted by the inclination angle θ of the character string with respect to the read orthogonal coordinates with the lower left end point of the character rAJ as the origin, and then The scanning line 34 is moved in parallel in the X-axis direction at a predetermined pitch α, and the value of the Y coordinate indicating the intersection of the scanning line 34 and the character rAJ is stored as edge data in the upper and lower edge tables.

第11図は第9図の輪郭走査法によって得られた文字r
AJの上下エツジテーブルを示す。
Figure 11 shows the character r obtained by the contour scanning method in Figure 9.
The upper and lower edge tables of AJ are shown.

尚、第9図における走査線34のピッチαはイメージス
キャナによる読取時の画素密度から算出された分解能で
決められる。
Incidentally, the pitch α of the scanning lines 34 in FIG. 9 is determined by the resolution calculated from the pixel density at the time of reading by the image scanner.

一方、第10図に示す左右エツジテーブルを作成するた
めの輪郭走査にあっては、第9図の場合と同様、読取直
交座標(xy座標)に対し文字列の傾斜角度θだけ傾い
た直交座標(XY座標)を文字rAJの左端下の端点を
原点として設定し、X軸に平行な走査線34を所定ピッ
チαでY軸方向に平行移動して走査線34と文字rAJ
との交点を示すX座標の値を格納した左右エツジテーブ
ルを作成する。  − 第12図は第10図の輪郭走査で1qられた左右エツジ
テーブルを示す。
On the other hand, in the contour scanning for creating the left and right edge table shown in FIG. 10, as in the case of FIG. (XY coordinates) is set as the lower left end point of the character rAJ as the origin, and the scanning line 34 parallel to the X axis is moved in parallel in the Y axis direction at a predetermined pitch α, and the scanning line 34 and the character rAJ
Create a left and right edge table that stores the values of the X coordinates indicating the intersection with - FIG. 12 shows the left and right edge table 1q obtained by the contour scan of FIG. 10.

このように傾斜文字を認識するためのエツジテーブルの
作成にあっては、文字列に近接した線データから求めら
れた文字列の傾斜角度θに基づいた読取座標に対し傾斜
角度θだけ傾いた直交座標に従った水平及び垂直走査に
より上下及び左右エツジテーブルが作成され、文字が傾
いていない場合と全く同じ内容をもつエツジテーブルを
作成することができる。
When creating an edge table for recognizing slanted characters in this way, it is necessary to create an edge table that is orthogonal to the reading coordinates based on the slant angle θ of the character string obtained from line data adjacent to the character string. Top and bottom and left and right edge tables are created by horizontal and vertical scanning according to the coordinates, and it is possible to create an edge table that has exactly the same contents as when the characters are not tilted.

再び、第3図を参照するに、ステップS6で文字毎のエ
ツジテーブルが作成できたならば、次のステップS7で
エツジテーブルから文字の特徴を抽出し、予め準備され
た辞書と照合し、認識結果を出力するようになる。
Referring again to FIG. 3, once the edge table for each character has been created in step S6, character features are extracted from the edge table in the next step S7, compared with a dictionary prepared in advance, and recognized. The result will be output.

一方、第13図に示した従来の文字認識処理にあっては
、切出された2値画像データからエツジテーブルを作成
していたのに対し、本発明にあっては切出された文字の
ベクトルデータからエツジテーブルを作成するようにし
たことを特徴としており、2値化データからのエツジテ
ーブルの作成で回器であった文字を構成する線データの
連続性の検出が、ベクトルデータからのエツジテーブル
の検出によりより確実にでき、これによって文字の認識
率を向上させることができる。
On the other hand, in the conventional character recognition process shown in FIG. 13, an edge table was created from the extracted binary image data, whereas in the present invention, the edge table The feature is that an edge table is created from vector data, and the detection of continuity of line data constituting characters, which was a circuit when creating an edge table from binary data, is now possible from vector data. This can be done more reliably by edge table detection, which can improve the character recognition rate.

[発明の効果] 以上説明してきたよう、に本発明によれば、手書き図面
等に描かれた傾斜文字であっても、輪郭走査法によって
文字が傾いていない場合と全く同じエツジテーブルを作
成することができ、傾斜文字であっても輪郭走査法によ
って確実に認識することができる。
[Effects of the Invention] As explained above, according to the present invention, even if the characters are slanted drawn on a handwritten drawing, an edge table that is exactly the same as when the characters are not slanted can be created using the contour scanning method. Even oblique characters can be reliably recognized by the contour scanning method.

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

第1図は本発明の原理説明図: 第2図は本発明の実施例構成図:゛ 第3図は本発明の認識処理の動作フロー図:第4図は本
発明の読取対象となるプラント図面の説明図; 第5図は傾斜した文字列抽出データの説明図:第6図は
文字列データテーブルの説明図:第7図は文字のベクト
ルデータテーブルの説明図:第8図は文字rAJのベク
トルデータテーブルの説明図: 第9図は輪郭走査法による上下エツジテーブルの作成説
明図: 第10図は輪郭走査法による左右エツジテーブルの作成
説明図: 第11図は第9図から得た上下エツジテーブルの説明図
: 第12図は第10図から得た左右エツジテーブルの説明
図: 第13図は従来の文字認識処理の動作フロー図:第14
図は輪郭走査法によるエツジテーブル作成説明図: 第15図は第14図の輪郭走査で得られた上下エツジテ
ーブルの説明図: 第16図は第14図の輪郭走査で得られた左右エツジテ
ーブルの説明図である。 図中、 10:読取部 10a:イメージスキャナ 12:細線化処理部 14:ベクトル変換部 16:文字列抽出部 18二文字列データテーブル 18a:文字列データテーブル作成部 20:ベクトルデータテーブル 20a:ベクトルデータテーブル作成部22:エツジテ
ーブル作成部 24:認識部 26:taデータ 26a:引出し線 2B:A/D変換器 30:バッファメモリ 32:傾斜文字列 34:走査線 y            秦発!1月IF1/?、多
1おし日月面第1図 4ζ発日り1−1フミ方19す第1陶JζC21第2図 オに発II月^!n作フ〇−図 業3図 ブラシト図面dI RfL口月回 第4図 父丁9・」手I!1世データの説1月回第5図 文字列外タテ−プルの説明図 第6図 第8 凶 褐12図 f足j表の交丁已艮11呪ヌlL4/l動イ乍フロー回
第13図 鵠nt食六Lt=、よるエツジ′テーアルイ1万kが乞
r月回業14図
Figure 1 is an explanatory diagram of the principle of the present invention; Figure 2 is a configuration diagram of an embodiment of the present invention; Figure 3 is an operational flow diagram of the recognition process of the present invention; Figure 4 is a plant to be read by the present invention. Explanatory diagrams of the drawings; Figure 5 is an explanatory diagram of slanted character string extraction data; Figure 6 is an explanatory diagram of a character string data table; Figure 7 is an explanatory diagram of a character vector data table; Figure 8 is an explanatory diagram of the character rAJ An explanatory diagram of the vector data table of: Fig. 9 is an explanatory diagram of creating the upper and lower edge tables using the contour scanning method: Fig. 10 is an explanatory diagram of creating the left and right edge tables using the contour scanning method: Fig. 11 is obtained from Fig. 9. An explanatory diagram of the upper and lower edge tables: Fig. 12 is an explanatory diagram of the left and right edge tables obtained from Fig. 10: Fig. 13 is an operation flow diagram of conventional character recognition processing: Fig. 14
The figure is an explanatory diagram of edge table creation using the contour scanning method: Figure 15 is an explanatory diagram of the upper and lower edge tables obtained by the contour scanning of Figure 14: Figure 16 is the left and right edge table obtained by the contour scanning of Figure 14. FIG. In the figure, 10: Reading section 10a: Image scanner 12: Thinning processing section 14: Vector conversion section 16: Character string extraction section 18 Two character string data table 18a: Character string data table creation section 20: Vector data table 20a: Vector Data table creation unit 22: Edge table creation unit 24: Recognition unit 26: ta data 26a: Leader line 2B: A/D converter 30: Buffer memory 32: Slanted character string 34: Scanning line y From Qin! January IF1/? , 1 day on the moon 1st figure 4ζ departure date 1-1 Fumi way 19th 1st earth JζC21 2nd figure O on II month ^! n work 〇-work 3 figure brushito drawing dI RfL mouth Monthly figure 4 father Ding 9・'hand I! 1st generation data theory January episode Figure 5 Explanatory diagram of vertical table outside the character string Figure 6 Figure 8 Dark brown 12 figure Figure 13: 10,000 k is a month's rotation Figure 14

Claims (3)

【特許請求の範囲】[Claims] (1)プラント図、回路図等の手書き図面を読取る読取
部(10)と、 該読取部(10)から得られた2値化画像データを細線
化する細線化処理部(12)と、 細線化された2値化データをベクトルデータに変換する
ベクトル変換部(14)と、 該ベクトルデータから文字列を抽出して文字列データテ
ーブル(16)及び文字毎のベクトルデータテーブル(
18)を作成する文字列抽出部(20)と、 前記ベクトルデータテーブル(18)から1文字毎に切
り出された文字データを読取直交座標軸に平行な走査線
により水平及び垂直方向に走査し、該走査で得られる文
字交点のベクトルデータからからエッジテーブルを作成
するエッジテーブル作成部(22)と、 前記エッジテーブルの登録データに基づいて文字を認識
する認識部(24)とを有し、 前記文字列抽出部(16)は、文字列に隣接する線デー
タから文字の傾斜角度(θ)を検出して前記文字列デー
タテーブル(18)に格納し、前記エッジテーブル作成
部(22)は、読取直交座標に対し前記傾斜角度(θ)
傾けた直交座標軸と平行に前記走査線を文字の水平及び
垂直方向に走査して前記エッジテーブルを作成すること
を特徴とする傾斜文字の認識方式。
(1) A reading unit (10) that reads handwritten drawings such as plant diagrams and circuit diagrams; a thinning processing unit (12) that thins the binarized image data obtained from the reading unit (10); and a thin line. a vector converter (14) that converts the binarized data into vector data; a vector converter (14) that extracts character strings from the vector data and creates a character string data table (16) and a vector data table for each character (
18); and a character string extraction unit (20) that reads the character data extracted character by character from the vector data table (18), scans the character data horizontally and vertically with scanning lines parallel to the orthogonal coordinate axes, and extracts the character data from the vector data table (18). an edge table creation unit (22) that creates an edge table from vector data of character intersection points obtained by scanning; and a recognition unit (24) that recognizes characters based on registered data of the edge table; The column extractor (16) detects the inclination angle (θ) of a character from the line data adjacent to the character string and stores it in the character string data table (18), and the edge table creator (22) The inclination angle (θ) with respect to the orthogonal coordinates
A method for recognizing a tilted character, characterized in that the edge table is created by scanning the scanning line in the horizontal and vertical directions of the character in parallel with the tilted orthogonal coordinate axis.
(2)前記文字列データテーブル(18)には、文字列
左上座標(A、B)、文字列右下座標(C、D)、文字
列の高さ(H)、文字列の長さ(L)、文字列の傾斜角
度(θ)、文字列内の文字数(N)、文字切出し領域の
左上及び右下の各座標を文字列データとして格納したこ
とを特徴とする特許請求の範囲第1項記載の傾斜文字の
認識方式。
(2) The character string data table (18) contains the upper left coordinates of the character string (A, B), the lower right coordinates of the character string (C, D), the height of the character string (H), and the length of the character string ( L), the inclination angle (θ) of the character string, the number of characters in the character string (N), and the upper left and lower right coordinates of the character cutting area are stored as character string data. Recognition method for slanted characters described in section.
(3)前記ベクトルデータテーブル(20)には、文字
を構成する線データの始点座標と終点座標をベクトルデ
ータとして文字毎に格納したことを特徴とする特許請求
の範囲第1項記載の傾斜文字の認識方式。
(3) The slanted character according to claim 1, wherein the vector data table (20) stores the starting point coordinates and ending point coordinates of line data constituting the character as vector data for each character. recognition method.
JP8822288A 1988-02-02 1988-02-02 Inclined character recognizing system Pending JPH01197890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8822288A JPH01197890A (en) 1988-02-02 1988-02-02 Inclined character recognizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8822288A JPH01197890A (en) 1988-02-02 1988-02-02 Inclined character recognizing system

Publications (1)

Publication Number Publication Date
JPH01197890A true JPH01197890A (en) 1989-08-09

Family

ID=12078559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8822288A Pending JPH01197890A (en) 1988-02-02 1988-02-02 Inclined character recognizing system

Country Status (1)

Country Link
JP (1) JPH01197890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003005A (en) * 2008-06-18 2010-01-07 Konica Minolta Business Technologies Inc Vector image formation method, image processor, and computer program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010003005A (en) * 2008-06-18 2010-01-07 Konica Minolta Business Technologies Inc Vector image formation method, image processor, and computer program
US8274515B2 (en) 2008-06-18 2012-09-25 Konica Minolta Business Technologies, Inc. Vector image generation method, image processing apparatus, and computer-readable storage medium for computer program

Similar Documents

Publication Publication Date Title
US5774580A (en) Document image processing method and system having function of determining body text region reading order
US5410611A (en) Method for identifying word bounding boxes in text
JP2930612B2 (en) Image forming device
US5033104A (en) Method for detecting character strings
JPH08305796A (en) Pattern extraction device, pattern re-recognition table creation device, and pattern recognition device
EP0241259A2 (en) Optical character recognition by detecting geographical features
JP2823882B2 (en) Line image vectorization method
Liebl et al. From historical newspapers to machine-readable data: The origami ocr pipeline
US6175664B1 (en) Optical character reader with tangent detection for detecting tilt of image data
JPH0728935A (en) Document image processing device
JP2581809B2 (en) Character extraction device
JP2824372B2 (en) Report recognition device
JP3710164B2 (en) Image processing apparatus and method
JPH0573718A (en) Area attribute identification method
JPS62133584A (en) Document image processing system
JP2004030340A (en) Document identifying apparatus and identifying method therefor
JPH11250179A (en) Character recognition device and character recognition method
JP2963474B2 (en) Similar character identification method
JP2004013188A (en) Business form reading device, business form reading method and program therefor
JPH05242297A (en) Character cutting method
JPS59200381A (en) Graphic input device
JPH06131466A (en) Pattern recognition method and apparatus
JPS63182780A (en) Picture processing method for drawing reading device
JPS62108382A (en) Approximating system for polygonal line graphic
JPH0696273A (en) Recognition field retrieving method in business form reader