JPH04306771A - Automatic input processing method for drawing - Google Patents
Automatic input processing method for drawingInfo
- Publication number
- JPH04306771A JPH04306771A JP3071303A JP7130391A JPH04306771A JP H04306771 A JPH04306771 A JP H04306771A JP 3071303 A JP3071303 A JP 3071303A JP 7130391 A JP7130391 A JP 7130391A JP H04306771 A JPH04306771 A JP H04306771A
- Authority
- JP
- Japan
- Prior art keywords
- processing
- recognition
- candidates
- vector
- correction
- 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
Links
- 238000003672 processing method Methods 0.000 title claims description 6
- 238000000926 separation method Methods 0.000 claims abstract description 30
- 239000013598 vector Substances 0.000 claims abstract description 22
- 238000012545 processing Methods 0.000 abstract description 28
- 238000012937 correction Methods 0.000 abstract description 15
- 238000000034 method Methods 0.000 description 15
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012916 structural analysis Methods 0.000 description 1
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は、図面や文書から文字や
図形を認識する図面自動入力処理方法に係り、特に図面
や文書の要素になる文字候補,図形候補(シンボル候補
と線分候補)を分離抽出して夫々の認識処理を行うため
の図面要素分離方法に関する。[Industrial Application Field] The present invention relates to an automatic drawing input processing method for recognizing characters and figures from drawings and documents, and in particular, character candidates and figure candidates (symbol candidates and line segment candidates) that become elements of drawings and documents. The present invention relates to a drawing element separation method for separating and extracting drawing elements and performing recognition processing on each.
【0002】0002
【従来の技術】コンピュータ技術の発展に伴い、従来か
ら図面で管理していた情報をEDP(Electron
ic Data Processing)化して業
務の効率化を行う要求が増大している。EDP化の手段
として、(1)CADを使用し、図面を見ながら線分要
素毎に最初から入力して行く方法、(2)イメージスキ
ャナから図面を読み込んで画像を背景に表示し、それを
見ながらCADを使用して線分要素毎に入力して行く方
法、(3)イメージスキャナから図面を読み込み、その
画像から線分等を折れ線近似してベクトルデータに変換
し、ベクトルデータに対して修正を順次加え、目的のデ
ータに変換して行く方法、(4)イメージスキャナから
図面を入力し、コンピュータが図面の内容を認識して出
力した結果に対して誤りを修正する方法等がある。[Background Art] With the development of computer technology, information that has traditionally been managed using drawings has been changed to EDP (Electron
ic Data Processing) to improve the efficiency of business operations. The methods for EDP conversion are (1) using CAD and inputting each line element from the beginning while looking at the drawing; (2) reading the drawing from an image scanner and displaying the image in the background; (3) Load the drawing from an image scanner, approximate the line segments from that image to vector data, and then input the line segment elements using CAD while looking at the image. There are two methods: (1) a method of sequentially adding corrections and converting to the desired data; (4) a method of inputting a drawing from an image scanner, having a computer recognize the content of the drawing, and correcting errors in the output result.
【0003】上述の(1)〜(4)の方法のうち、後に
なる方法ほど発展的でEDP化が簡単になり、(4)の
方法になる図面自動入力処理方法は図2に示す処理手順
になる。文字や図形(シンボルと線分)が混在する図面
をイメージスキャナ等によって2値画像化する画像処理
を行い(ステップS1)、該2値画像を情報圧縮してベ
クトル情報に変換するベクトル化処理を行う(ステップ
S2)。Among the methods (1) to (4) above, the later methods are more advanced and easier to convert into EDP, and the automatic drawing input processing method that is method (4) is the processing procedure shown in FIG. become. Image processing is performed to convert a drawing containing a mixture of characters and figures (symbols and line segments) into a binary image using an image scanner or the like (step S1), and vectorization processing is performed to compress the information of the binary image and convert it into vector information. (Step S2).
【0004】このベクトル化処理には一般的に二つの方
法がある。その一つは、2値画像の黒画素の部分を線幅
が1になるまで細線化処理を行い、その細線化された点
列をベクトル近似して細線ベクトルを得る。他の一つは
、2値画像の白と黒の境界の画素を抽出し、この画素列
をベクトル近似して輪郭ベクトルを抽出し、その後に対
になる輪郭ベクトルを検索し、対の輪郭ベクトルの中心
線に相当する部分にベクトルを生成すなわち芯線ベクト
ルを生成する。There are generally two methods for this vectorization process. One method is to perform thinning processing on black pixel portions of a binary image until the line width becomes 1, and then obtain a thin line vector by approximating the thinned point sequence as a vector. The other method is to extract pixels at the boundary between white and black in a binary image, approximate this pixel sequence as a vector to extract a contour vector, and then search for a pair of contour vectors. A vector is generated at a portion corresponding to the center line of , that is, a core line vector is generated.
【0005】上述のベクトル処理によって得られるベク
トル群に対し、ベクトルの孤立性やその領域四角形の大
きさなどからベクトル群を文字候補と図形候補に分離抽
出する(ステップS3)。文字候補とされたベクトル群
は1文字に相当するベクトル群をグルーピングする。ま
た、図形候補とされたベクトル群はその構造解析によっ
てシンボル候補と線分候補に分離し、夫々がグルーピン
グされる。The vector group obtained by the above-mentioned vector processing is separated and extracted into character candidates and graphic candidates based on the isolation of the vector, the size of the rectangular area, etc. (step S3). The vector group that is considered as a character candidate is a group of vectors that correspond to one character. In addition, the vector group that is considered as a figure candidate is separated into symbol candidates and line segment candidates through structural analysis, and each of them is grouped.
【0006】次に、分離抽出された各候補のベクトル群
に対し、一つの文字候補及びシンボル候補については辞
書とパターンマッチングによってその認識をし(ステッ
プS4,S5)、認識結果はコードデータとして得る。
線分候補については交点の屈曲などを整形する線分処理
をし(ステップS6)、処理結果は始終点データとして
得る。Next, for each separated and extracted candidate vector group, one character candidate and symbol candidate is recognized by pattern matching with a dictionary (steps S4 and S5), and the recognition result is obtained as code data. . Line segment candidates are subjected to line segment processing to shape bends at intersections, etc. (step S6), and the processing results are obtained as start and end point data.
【0007】ステップS4〜S6で認識,処理された文
字及び図形データは編集・修正され(ステップS7)、
EDP化データとしてデータベースに保存される。The character and graphic data recognized and processed in steps S4 to S6 are edited and corrected (step S7).
It is saved in the database as EDP data.
【0008】[0008]
【発明が解決しようとする課題】コンピュータが図面を
自動認識する図面自動入力処理方法において、文字,図
形の認識には元の図面記述上に細かなルールが多く設定
され、このルールに従って図面の内容を認識している。
例えば、図3の(a)又は(b)に示すように、円図形
Aの内側に図形又は数字が記述されるというルールが設
定されていれば、同図の(c)又は(d)のように外側
の図形Aに内側の図形B又は文字Cが接触している場合
にも図形AとBの分離認識及び図形Aと文字Cの分離認
識を行うことができる。[Problem to be Solved by the Invention] In an automatic drawing input processing method in which a computer automatically recognizes drawings, many detailed rules are set on the original drawing description to recognize characters and figures, and the content of the drawing is based on these rules. I am aware of this. For example, as shown in (a) or (b) of Figure 3, if a rule is set that a figure or number is written inside circle figure A, then (c) or (d) of the figure is set. Even when the outer figure A is in contact with the inner figure B or character C, separate recognition of figures A and B and figure A and character C can be performed.
【0009】しかしながら、既に存在している図面等に
ついてはルールを意識して描かれていないため、後に設
定したルールを適用しても認識誤りになる。また、新た
に作成する図面であっても設定ルールに従っていない場
合やルールに従って描けない図面では認識の誤りを起こ
す。However, since drawings that already exist are not drawn with rules in mind, even if rules set later are applied, recognition errors will occur. Furthermore, even if a newly created drawing does not follow the set rules or cannot be drawn according to the rules, recognition errors may occur.
【0010】このように、自動認識のために図面要素を
分離するための多くのルール設定がなされるが、ルール
と図面の高い整合性即ちルールに正確に従った図面でな
い限り、要素分離に誤りが発生し、図面要素分離後の自
動認識に誤りが発生すると共に、処理時間も長くなる。
さらに、当該要素の認識誤りが周辺の要素の認識誤りま
で引き起こし、その後の編集・修正処理での修正手間が
非常に大きいものになる。[0010] As described above, many rules are set for separating drawing elements for automatic recognition, but unless there is a high degree of consistency between the rules and the drawing, that is, the drawing accurately follows the rules, errors may occur in element separation. This causes errors in automatic recognition after drawing element separation, and also increases processing time. Furthermore, the recognition error of the element in question causes the recognition error of surrounding elements, and the effort required to make corrections in subsequent editing and correction processing becomes extremely large.
【0011】本発明の目的は、図面要素の分離と認識と
編集・修正までの処理に誤りを少なくして処理スピード
を高めた図面自動入力処理方法を提供することにある。An object of the present invention is to provide an automatic drawing input processing method that increases processing speed by reducing errors in processing from separation and recognition of drawing elements to editing and modification.
【0012】0012
【課題を解決するための手段】本発明は、前記課題の解
決を図るため、2値画像化された図面をベクトル化処理
し、このベクトル情報からベクトル群を文字候補と図形
候補に分離する自動要素分離をし、この分離結果に対し
てマンマシンインターフェースにより分離誤りを修正し
、この修正した文字候補と図形候補について夫々自動認
識をし、この認識結果について編集・修正を行うことを
特徴とする。[Means for Solving the Problems] In order to solve the above-mentioned problems, the present invention provides an automatic method for vectorizing drawings converted into binary images and separating vector groups into character candidates and figure candidates from this vector information. The present invention is characterized by separating elements, correcting separation errors using a man-machine interface for the separation results, automatically recognizing the corrected character candidates and figure candidates, and editing and correcting the recognition results. .
【0013】[0013]
【作用】自動要素分離による文字候補と図形候補の分離
の後、各候補について誤りの修正を行った後に認識及び
編集・修正を行い、要素分離結果に対して誤り修正して
おくことでその後の認識,修正までの処理に誤りを無く
しながら処理時間を短縮する。また、要素分離の設定ル
ールをあらゆる図面について整合性を得るための膨大な
ルールを用意することを不要にする。[Operation] After separating character candidates and figure candidates by automatic element separation, errors are corrected for each candidate, and then recognized, edited, and corrected. By correcting errors in the element separation results, subsequent To shorten processing time while eliminating errors in processing from recognition to correction. Furthermore, it becomes unnecessary to prepare a huge number of rules for ensuring consistency of element separation setting rules for all drawings.
【0014】[0014]
【実施例】図1は本発明の一実施例を示す処理フローチ
ャートである。同図が図2と異なる部分は、自動要素分
離から図面要素認識への過程で要素分離修正処理(ステ
ップS8)を行う点にある。Embodiment FIG. 1 is a processing flowchart showing an embodiment of the present invention. The difference between this figure and FIG. 2 is that element separation correction processing (step S8) is performed in the process from automatic element separation to drawing element recognition.
【0015】要素分離修正処理は、自動要素分離(ステ
ップS3)による文字候補、図形候補の分離終了結果に
対し、マンマシンインターフェースによる要素分離の誤
り修正を行う。In the element separation correction process, errors in element separation are corrected using a man-machine interface on the result of separation of character candidates and graphic candidates by automatic element separation (step S3).
【0016】例えば、図3に示す円図形Aの内側に図形
B又は文字Cが設けられる図形に対し、自動要素分離で
同図(a)又は(b)の図形については分離し、(c)
又は(d)の図形についてはルール不備で分離できない
場合、又は誤った認識の場合、要素分離修正において当
該図形に対し円図形Aと図形B、文字Cについて夫々の
候補指定を行う。For example, for a figure in which a figure B or a character C is provided inside a circle figure A shown in FIG. 3, the figure shown in (a) or (b) in the same figure is separated by automatic element separation, and (c)
Alternatively, if the figure in (d) cannot be separated due to a defect in the rules, or if it is incorrectly recognized, candidate designations are made for circle figure A, figure B, and character C for the figure in element separation correction.
【0017】従って、自動要素分離のルールと認識対象
図面とに整合性が少ない場合にその認識誤りや認識不能
にも要素分離修正によって正確な要素分離が行われる。Therefore, when there is little consistency between the automatic element separation rules and the drawing to be recognized, even if the recognition is incorrect or unrecognizable, accurate element separation can be performed by element separation correction.
【0018】この段階での要素分離修正は、要素分離の
ルールを図面形式に合わせて夫々用意することなく、ル
ール設定量を少なくする。また、文字候補と図形候補の
分離が正確になることから、この後の文字認識,シンボ
ル認識,線分処理を正確にすると共に認識処理に必要な
時間を大幅に短縮する。また、その後の編集・修正処理
における修正処理量を極めて少なくする。Element separation correction at this stage reduces the number of rule settings without preparing element separation rules for each drawing format. Furthermore, since character candidates and graphic candidates can be separated accurately, subsequent character recognition, symbol recognition, and line segment processing are made more accurate, and the time required for recognition processing is significantly reduced. Further, the amount of correction processing in subsequent editing/correction processing is extremely reduced.
【0019】[0019]
【発明の効果】以上のとおり、本発明によれば、図面の
ベクトル情報から文字候補と図形候補に要素の分離を行
った後、マンマシンインターフェースにより分離誤りを
修正し、この修正した要素について認識と編集・修正を
行うようにしたため、要素分離に誤りが発生した段階で
修正され、要素分離後の認識処理及びその後の編集・修
正を高速かつ確実にし、さらに要素分離のルールと整合
性の少ない図面に対しても確実な要素分離になると共に
ルール設定量を少なくして分離も高速になる。As described above, according to the present invention, after separating elements into character candidates and figure candidates from vector information in a drawing, separation errors are corrected using a man-machine interface, and the corrected elements are recognized. As a result, errors in element separation are corrected at the stage when they occur, making recognition processing after element separation and subsequent editing/correction fast and reliable. Elements can be separated reliably for drawings, and the amount of rule settings can be reduced, resulting in faster separation.
【図1】本発明の一実施例を示す処理フローチャート。FIG. 1 is a processing flowchart showing one embodiment of the present invention.
【図2】従来の処理フローチャート。FIG. 2 is a conventional processing flowchart.
【図3】図形の態様図。FIG. 3 is an illustration of a figure.
A…円図形、B…図形、C…文字。 A...circle shape, B...shape, C...letter.
Claims (1)
理し、このベクトル情報からベクトル群を文字候補と図
形候補に分離する自動要素分離をし、この分離結果に対
してマンマシンインターフェースにより分離誤りを修正
し、この修正した文字候補と図形候補について夫々自動
認識をし、この認識結果について編集・修正を行うこと
を特徴とする図面自動入力処理方法。Claim 1: A drawing that has been converted into a binary image is vectorized, automatic element separation is performed to separate the vector group into character candidates and figure candidates based on this vector information, and the separation results are separated using a man-machine interface. An automatic drawing input processing method characterized by correcting errors, automatically recognizing the corrected character candidates and figure candidates, and editing and correcting the recognition results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3071303A JPH04306771A (en) | 1991-04-04 | 1991-04-04 | Automatic input processing method for drawing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3071303A JPH04306771A (en) | 1991-04-04 | 1991-04-04 | Automatic input processing method for drawing |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04306771A true JPH04306771A (en) | 1992-10-29 |
Family
ID=13456743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3071303A Pending JPH04306771A (en) | 1991-04-04 | 1991-04-04 | Automatic input processing method for drawing |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04306771A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08320942A (en) * | 1995-05-25 | 1996-12-03 | Meidensha Corp | Method for processing and inputting drawing information |
-
1991
- 1991-04-04 JP JP3071303A patent/JPH04306771A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08320942A (en) * | 1995-05-25 | 1996-12-03 | Meidensha Corp | Method for processing and inputting drawing information |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5386508A (en) | Apparatus for generating programs from inputted flowchart images | |
JP2835178B2 (en) | Document reading device | |
JPH05151254A (en) | Method and system for processing document | |
JPH04306771A (en) | Automatic input processing method for drawing | |
JP3121466B2 (en) | Image correction device | |
JPH08320914A (en) | Table recognition method and device | |
KR20230029206A (en) | Apparatus for constructing training data for artificial intelligence based text recognition | |
JPH0991371A (en) | Character display device | |
CN112733857B (en) | Image character detection model training method and device for automatically segmenting character area | |
JPH04222057A (en) | Method for recognizing character/graphic element for automatic drawing input device | |
JPH08272900A (en) | Document reader | |
JP2891368B2 (en) | Post-processing method of character recognition result | |
JPS594358Y2 (en) | Character control device in character correction | |
JPS61198376A (en) | Optical character reader | |
JP2890788B2 (en) | Document recognition device | |
JPH07104940B2 (en) | Figure recognition device | |
JPH0520492A (en) | Document recognizing/correcting device | |
JPH04213166A (en) | Attribute linking method | |
JPH0562016A (en) | Character recognizing device | |
JPS6327990A (en) | Character recognizing method | |
JPH04309185A (en) | Drawing element separating method for automatic drawing input device | |
JPH0981672A (en) | Document reader | |
JPH05266111A (en) | Inter-mesh connecting method of drawing automatic input device | |
JPH0816725A (en) | Character recognition device and method | |
JPS61198375A (en) | Optical character reader |