JPH09128429A - Method for recognizing dimensional numerical value and its device - Google Patents

Method for recognizing dimensional numerical value and its device

Info

Publication number
JPH09128429A
JPH09128429A JP7285418A JP28541895A JPH09128429A JP H09128429 A JPH09128429 A JP H09128429A JP 7285418 A JP7285418 A JP 7285418A JP 28541895 A JP28541895 A JP 28541895A JP H09128429 A JPH09128429 A JP H09128429A
Authority
JP
Japan
Prior art keywords
dimension
numerical value
dimensional
line
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
Application number
JP7285418A
Other languages
Japanese (ja)
Other versions
JP3571128B2 (en
Inventor
Kenichiro Maruyama
健一郎 丸山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP28541895A priority Critical patent/JP3571128B2/en
Publication of JPH09128429A publication Critical patent/JPH09128429A/en
Application granted granted Critical
Publication of JP3571128B2 publication Critical patent/JP3571128B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To accurately and automatically recognize dimensional numerical value from a drawing with dimensional information. SOLUTION: The picture of a drawing is read and its image picture information inputted. Each extention line within the inputted picture information is extracted to search dimension lines existing between the extracted extension lines to search which side area of the extracted dimensional line the character exists on. Then, character recognizing processing is executed to an area near the dimensional line on the side judged to have the character, and between the dimension lines to recognize the dimensional numerical value.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、建築図面等の建
設図面や各種設計図面などのように、寸法補助線,寸法
線,及び寸法数値からなる寸法情報を有する図面内の寸
法数値を認識する寸法数値認識方法及びその装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention recognizes dimensional numerical values in drawings having dimensional information consisting of auxiliary dimension lines, dimensional lines, and numerical values, such as construction drawings such as architectural drawings and various design drawings. The present invention relates to a dimensional numerical value recognition method and apparatus.

【0002】[0002]

【従来の技術】近年、CADシステム等を用いて、家屋
やビル等の建築図面あるいは水道管,ガス管,電力・通
信ケーブル等の配管図面等を含む建設図面を容易に作成
したり、そのデータを記憶させておいて設計変更や増改
築等の際に利用することは行なわれている。しかし、そ
の建設図面のデータには、作成したシステムにより互換
性がなく、期間の経過や業者の変更により利用できなく
なる。また、家屋の増改築等を行なう場合には、紙に描
かれた古い建築図面しかない場合が多く、増改築の間取
り図等を変更しない部分も含めて全て描きなおさなけれ
ばならなかった。
2. Description of the Related Art In recent years, using CAD systems, etc., construction drawings including houses, buildings, etc., construction drawings including water pipes, gas pipes, piping drawings for power / communication cables, etc. can be easily created, and the data thereof can be obtained. It has been practiced to memorize and store the information when design changes, extension and remodeling are performed. However, the data of the construction drawings are not compatible with each other due to the created system, and cannot be used due to the passage of time or the change of the contractor. In addition, when renovating or remodeling a house, there are many cases where there is only an old architectural drawing drawn on paper, and it has been necessary to redraw all parts including the floor plan of the renovation and remodeling, etc.

【0003】そこで、紙に描かれた建築図面等の建設図
面を読み取って、コンピュータで処理できるデータとし
て認識して記憶させることも試みられているが、そのた
めの特別な方法や装置はなく、建設図面をイメージスキ
ャナで読み取り、そのイメージ画像データをパーソナル
コンピュータ等に入力させて、一般の図形認識機能を利
用して線分認識やパターン認識を行なっている。あるい
はさらに、高機能の図形エディタを補助に使うことによ
って図形認識機能をレベルアップし、自動認識機能が多
少不完全な場合でも、例えばラスタ・ベクタ変換するこ
とにより直線や円弧等の基本線図を自動認識できるよう
にしたものもある。
Therefore, it has been attempted to read construction drawings such as architectural drawings drawn on paper and recognize and store them as computer processable data, but there is no special method or device for this purpose, A drawing is read by an image scanner, the image data is input to a personal computer or the like, and line segment recognition and pattern recognition are performed using a general figure recognition function. Alternatively, the graphic recognition function can be upgraded by using a high-performance graphic editor to assist, and even if the automatic recognition function is somewhat imperfect, basic vector diagrams such as straight lines and arcs can be converted by raster-to-vector conversion, for example. Some of them can be automatically recognized.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな建設図面や各種の設計図面などには、寸法補助線,
寸法線,及び寸法数値からなる寸法情報が多数記載され
ている。これは図面に描かれた各部の実際の大きさを示
す重要な情報であるが、従来の図面認識装置ではこの寸
法情報、特にその寸法数値を自動的に認識することがで
きなかった。そのため、寸法数値は操作者がキーボード
等から1つずつ手入力により入力を行なっていた。
However, in such construction drawings and various design drawings, dimensional auxiliary lines,
Many dimensional information consisting of dimensional lines and numerical values is described. This is important information indicating the actual size of each part drawn in the drawing, but the conventional drawing recognition device cannot automatically recognize this size information, especially the size value. Therefore, the operator manually inputs the numerical values one by one from a keyboard or the like.

【0005】OCRを用いて寸法数値を読み取らせる場
合でも、その寸法数値が記載されている読み取り領域を
それぞれ指定する必要があった。したがって、寸法情報
を有する図面の内容をコンピュータで処理できるデータ
ベース化する際に、従来の技術では寸法数値の入力が煩
雑であり、入力ミスが発生する恐れもあるという問題が
あった。
Even when the dimensional numerical value is read by using the OCR, it is necessary to specify each reading area in which the dimensional numerical value is described. Therefore, when the contents of the drawings having the dimension information are converted into a database that can be processed by a computer, there is a problem that the input of the dimension values is complicated and the input error may occur in the conventional technique.

【0006】この発明は上記の点に鑑みてなされたもの
であり、その建設図面等の寸法情報を有する図面の画像
情報から、その重要な情報である寸法数値を精度よく且
つ迅速に自動認識できるようにすることを目的とする。
The present invention has been made in view of the above points, and it is possible to automatically and accurately and quickly recognize a dimensional value which is important information from image information of a drawing having dimensional information such as a construction drawing. The purpose is to do so.

【0007】[0007]

【課題を解決するための手段】この発明は上記の目的を
達成するため、次のような図面の寸法数値認識方法及び
寸法数値認識装置を提供する。この発明による図面の寸
法数値認識方法は、寸法補助線,寸法線,及び寸法数値
からなる寸法情報を有する図面の画像情報を入力し、入
力した画像情報内の各寸法補助線を抽出し、その抽出し
た寸法補助線間に存在する寸法線を探索し、探索できた
寸法線に対してどちら側の領域に文字があるかを探索
し、文字があると判断した側の寸法線の近傍で寸法線間
の領域に対して文字認識処理を行なって寸法数値を認識
することを特徴とする。
In order to achieve the above object, the present invention provides a dimensional numerical value recognizing method and a dimensional numerical value recognizing apparatus in the following drawings. A method of recognizing dimension numerical values of a drawing according to the present invention inputs image information of a drawing having dimension information including a dimension auxiliary line, a dimension line, and a dimension numerical value, extracts each dimension auxiliary line in the input image information, The dimension lines existing between the extracted dimension extension lines are searched, the area on the side where there is a character with respect to the found dimension line is searched, and the dimension is determined near the dimension line on the side where it is determined that there is a character. It is characterized in that character recognition processing is performed on a region between lines to recognize a numerical value.

【0008】また、この発明による図面の寸法数値認識
装置は、寸法補助線,寸法線,及び寸法数値からなる寸
法情報を有する図面の画像情報を入力する画像情報入力
手段と、入力された画像情報の内の各寸法補助線を抽出
する手段と、該手段によって抽出された寸法線間に存在
する寸法線を探索する手段と、探索できた寸法線に対し
てどちら側の領域に文字があるかを探索する手段と、該
手段によって文字があると判断した側の寸法線の近傍で
寸法補助線間の領域に対して文字認識処理を行なって寸
法数値を認識する手段とを備えたものである。
Further, the drawing numerical value recognizing device according to the present invention includes image information input means for inputting image information of a drawing having size information consisting of auxiliary dimension lines, dimension lines and numerical values, and the inputted image information. Means for extracting each of the dimension auxiliary lines, means for searching the dimension lines existing between the dimension lines extracted by the means, and which side of the searched dimension line the character is in And means for recognizing the dimension numerical value by performing character recognition processing on the area between the dimension extension lines in the vicinity of the dimension line on the side where the character is determined to be present by the means. .

【0009】したがって、寸法数値が記載されている領
域を自動的に探索して、その寸法数値をOCR等によっ
て確実に認識することができるので、寸法数値を手入力
したり、読み取り領域を個々に指定したりする必要がな
くなる。
Therefore, it is possible to automatically search the area in which the dimensional numerical value is described and recognize the dimensional numerical value by OCR or the like, so that the dimensional numerical value can be manually input or the reading areas can be individually read. There is no need to specify it.

【0010】さらに、この図面の寸法数値認識装置にお
いて、探索できた寸法線のデータと、その寸法線に対応
する2本の寸法補助線のデータと、該寸法線に関して認
識した寸法数値とをひとまとめにした寸法リストを寸法
線の数分作成する寸法リスト作成手段を設けるとよい。
これによって、寸法数値と寸法線とを1対1で対応付け
することができる。
Further, in the dimensional numerical value recognizing apparatus of this drawing, the data of the dimensional line which can be searched, the data of the two dimensional auxiliary lines corresponding to the dimensional line, and the dimensional numerical value recognized about the dimensional line are put together. It is advisable to provide dimension list creating means for creating the number of dimension lists described above according to the number of dimension lines.
As a result, the numerical values and the dimension lines can be associated with each other on a one-to-one basis.

【0011】また、その寸法リスト作成手段によって作
成された寸法リストの情報に基づいて、既に認識した寸
法数値から近傍の他の寸法線に係る寸法数値を演算する
演算手段を設けるとよい。これによって、全ての寸法数
値をOCR等の文字認識処理によらなくても、認識済み
の寸法数値から近傍の他の寸法線の寸法数値を演算によ
って求めることができ、認識時間の短縮と認識精度の向
上を図ることができる。
Further, it is preferable to provide a calculating means for calculating a dimension numerical value related to another dimension line in the vicinity from the already recognized dimension numerical value based on the information of the dimension list created by the dimension list creating means. As a result, it is possible to calculate the dimension values of other dimension lines in the vicinity from the recognized dimension values without performing all the dimension values by character recognition processing such as OCR, thereby reducing the recognition time and the recognition accuracy. Can be improved.

【0012】上記画像情報入力手段刃が、図面の画像を
読み取ってそのイメージ画像情報を入力する画像読取手
段であれば、紙に描かれた図面上の寸法数値の認識を容
易に行なうことができる。また、上記画像情報入力手段
が、図面の画像情報を通信により受信して入力する画像
情報受信手段であれば、離れた場所にある他の装置から
図面の画像情報を受信して、その図面上の寸法数値の認
識を容易に行なうことができる。
If the image information input means blade is an image reading means for reading an image of a drawing and inputting the image information of the image, it is possible to easily recognize the dimensional numerical value on the drawing drawn on the paper. . Further, if the image information input means is an image information receiving means for receiving and inputting the image information of the drawing by communication, the image information of the drawing is received from another device at a remote place, It is possible to easily recognize the dimensional numerical value of.

【0013】さらにまた、認識した寸法数値を入力した
画像情報のイメージと同時に表示する表示手段を設けれ
ば、認識結果を確認して誤認識を発見することが容易に
できる。そして、その表示手段に表示した認識した寸法
数値を外部からの指示により確定する認識結果確認手段
を設ければ、操作者が認識結果を確認した後、その指示
によってそれを確定することができる。
Further, by providing a display means for displaying the recognized dimensional numerical value at the same time as the input image information image, it is possible to easily confirm the recognition result and find the erroneous recognition. If the recognition result confirmation means for confirming the recognized dimensional numerical value displayed on the display means by an instruction from the outside is provided, the operator can confirm the recognition result and then confirm it by the instruction.

【0014】[0014]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して具体的に説明する。図1は、この発明によ
る図面の寸法数値認識方法を実施する寸法数値認識装置
の概略構成を示すブロック図であり、ハード構成とマイ
クロコンピュータによるソフト処理の機能とを混在して
示している。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a dimensional numerical value recognizing apparatus for carrying out the dimensional numerical value recognizing method according to the present invention, in which a hardware configuration and a software processing function by a microcomputer are shown in a mixed manner.

【0015】この装置は、全体制御部1,画像読取部
2,通信制御部3,メモリ4,自動スキュー補正部5,
寸法位置認識部6,寸法リスト作成7,寸法数値認識部
8,表示部9,操作入力部10,外部記憶装置11,印
刷装置12,及びこれらを接続するバス13などから構
成される。なお、これらの各部(又は装置)とバス13
との間に必要なインタフェース部は図示を省略してい
る。
This device comprises an overall control unit 1, an image reading unit 2, a communication control unit 3, a memory 4, an automatic skew correction unit 5, and
It is composed of a dimensional position recognizing unit 6, a dimensional list creating unit 7, a dimensional numerical value recognizing unit 8, a display unit 9, an operation input unit 10, an external storage device 11, a printing device 12 and a bus 13 connecting them. In addition, these parts (or devices) and the bus 13
The interface part required between the and is not shown.

【0016】全体制御部1は、この装置全体の動作及び
機能を制御するマイクロコンピュータ(CPU,RO
M,RAM等から構成されるが代表して「CPU」と略
称される)であり、自動スキュー補正部5並びにこの発
明に係る寸法位置認識部6,寸法リスト作成部7,及び
寸法数値認識部8の各機能も、そのCPUのソフト処理
によって実現することができる。
The overall control unit 1 is a microcomputer (CPU, RO) for controlling the operation and function of the entire apparatus.
M, RAM, etc., but is abbreviated as "CPU"), which is an automatic skew correction unit 5, a dimension position recognition unit 6, a dimension list creation unit 7, and a dimension value recognition unit according to the present invention. Each function of 8 can also be realized by the software processing of the CPU.

【0017】画像読取部2は、セットされた寸法情報を
有する図面をスキャンしてその画像を読み取って、イメ
ージ画像情報を入力する画像情報入力手段であり、スキ
ャン光学系及びCCDなどのイメージセンサとその駆動
回路等からなる公知のイメージスキャナである。また、
その読み取ったイメージ画像情報を所定の解像度で2値
化して白ドットと黒ドットの画像データにする2値化回
路も含んでいる。
The image reading section 2 is an image information input means for scanning a drawing having set dimension information, reading the image, and inputting image information. The image reading section 2 includes a scanning optical system and an image sensor such as a CCD. It is a known image scanner including its drive circuit and the like. Also,
It also includes a binarizing circuit that binarizes the read image image information at a predetermined resolution to produce image data of white dots and black dots.

【0018】通信制御部3は、画像読取部2から画像情
報を取り込む代りに、外部から通信によりイメージ画像
情報又はそのランレングスが符号化された符号化画像デ
ータを受信して入力する画像情報受信手段であると共
に、この装置によって認識した寸法数値あるいはそれを
含む寸法情報を外部装置へ送信することもできる。具体
的にはFAXモデムやパソコン通信制御手段を含むもの
である。
The communication control unit 3 receives the image information from the image reading unit 2 instead of receiving the image information from the image reading unit 2, and receives and inputs the image image information or the encoded image data in which the run length is encoded by communication from the outside. In addition to the means, the dimensional numerical value recognized by this device or dimensional information including it can be transmitted to an external device. Specifically, it includes a FAX modem and personal computer communication control means.

【0019】メモリ4は、画像読取部2によって読み取
ったイメージ画像情報、通信制御部3によって受信した
イメージ画像情報又は符号化画像データをはじめ、自動
スキュー補正部5によってスキュー補正された画像デー
タ、寸法位置認識部6によって認識された寸法領域、寸
法リスト作成手段7によって作成される寸法リストの情
報、寸法数値認識部8によって認識された寸法数値等を
格納する大容量のRAMあるいはハードディスク等によ
るメモリである。
The memory 4 includes image image information read by the image reading unit 2, image image information received by the communication control unit 3 or encoded image data, image data skew-corrected by the automatic skew correction unit 5, and dimensions. A large-capacity RAM or a memory such as a hard disk for storing the dimensional area recognized by the position recognizing unit 6, the information of the dimensional list created by the dimensional list creating means 7, the dimensional numerical value recognized by the dimensional numerical value recognizing unit 8, and the like. is there.

【0020】自動スキュー補正部5は、メモリ4に格納
した画像データの角度を調整して水平及び垂直の線分方
向を装置の水平及び垂直の基準方向(X,Y方向)と一
致させるように補正するためのものであり、公知の自動
スキュー補正技術を用いることができる。なお、この自
動スキュー補正部5により修正された画像データは、再
びメモリ4に格納される。
The automatic skew correction unit 5 adjusts the angle of the image data stored in the memory 4 so that the horizontal and vertical line segment directions coincide with the horizontal and vertical reference directions (X and Y directions) of the apparatus. This is for correction, and a known automatic skew correction technique can be used. The image data corrected by the automatic skew correction unit 5 is stored in the memory 4 again.

【0021】寸法位置認識部6は、自動スキュー補正が
なされてメモリ4に格納されたイメージ画像データ又は
符号化画像データに対して、その画像データ内の寸法情
報が存在する領域(以下「寸法領域」という)を認識
し、その各寸法領域毎に寸法補助線を抽出して、寸法位
置を認識する寸法位置認識手段である。
The dimensional position recognizing section 6 has an area (hereinafter, referred to as "dimension area") in which the dimensional information in the image data exists for the image image data or the encoded image data which is automatically skew-corrected and stored in the memory 4. )), And a dimension auxiliary line is extracted for each of the dimension regions to recognize the dimension position.

【0022】寸法リスト作成部7は、寸法位置認識部6
で抽出された寸法補助線間の寸法線を探索し、抽出した
寸法線のデータと、その寸法線に対応する2本の寸法補
助線のデータと、その寸法線に係る寸法数値(後述する
寸法数値認識部8によって認識される)をひとまとめに
した寸法リストを作成する寸法リスト作成手段である。
The dimension list creating section 7 includes a dimension position recognizing section 6
The dimension lines between the dimension extension lines extracted by are searched, and the data of the extracted dimension lines, the data of the two dimension extension lines corresponding to the dimension lines, and the dimension values related to the dimension lines (dimensions described later) Dimension list creating means for creating a dimensional list in which the numerical value recognizing unit 8 is recognized.

【0023】寸法数値認識部8は、寸法リスト作成部に
よって作成された寸法リストの各寸法線に対して、どち
ら側の領域に文字があるかを探索し、文字があると判断
した側の寸法線の近傍で寸法線間の領域に対してOCR
による文字認識処理を行なって寸法数値を認識する寸法
数値認識手段である。また、寸法リストの情報に基づい
て、既に認識した寸法数値から近傍の他の寸法線に係る
寸法数値を演算する演算手段の機能も備えている。これ
らの、寸法位置認識部6,寸法リスト作成部7,及び寸
法数値認識部8の処理の詳細は後述する。
The dimensional numerical value recognizing unit 8 searches for the area on the side of each dimensional line of the dimensional list created by the dimensional list creating section to find a character, and determines the size of the side on which the character is found. OCR for the area between the dimension lines near the line
Is a dimensional numerical value recognizing means for recognizing a dimensional numerical value by performing character recognition processing according to. Further, it also has a function of a calculating means for calculating the dimension numerical values of other dimension lines in the vicinity from the already recognized dimension numerical values based on the information of the dimension list. Details of these processes of the dimension position recognition unit 6, the dimension list creation unit 7, and the dimension value recognition unit 8 will be described later.

【0024】表示部9は、画像読取部2又は通信制御部
3から入力し、自動スキュー補正部5によってスキュー
補正された図面の画像データ、寸法位置認識部6によっ
て認識された寸法領域及び寸法補助線、寸法リスト作成
部7によって探索された寸法線、寸法数値認識部8によ
って認識された寸法数値などを表示するためのものであ
り、例えば、CRTや液晶ディスプレイ等である。特
に、寸法数値認識部8によって認識された寸法数値、あ
るいは寸法線及び寸法補助線を含む寸法情報を、入力し
た図面の画像情報のイメージと同時に表示する機能を備
えている。
The display unit 9 receives the image data of the drawing which is input from the image reading unit 2 or the communication control unit 3 and is skew-corrected by the automatic skew correction unit 5, the dimension area and the dimension auxiliary recognized by the dimension position recognition unit 6. It is for displaying a line, a dimension line searched by the dimension list creating unit 7, a dimension value recognized by the dimension value recognizing unit 8, and the like, for example, a CRT or a liquid crystal display. In particular, it has a function of displaying the dimensional numerical value recognized by the dimensional numerical value recognizing unit 8 or the dimensional information including the dimensional line and the dimensional auxiliary line simultaneously with the image of the image information of the inputted drawing.

【0025】その場合、認識された寸法情報と、入力し
た図面の画像情報のイメージの寸法情報とを隣接して表
示したり、重ね合わせて表示したりすることができる。
そして、両者の識別が容易にできるように、イメージ画
像はハーフトーンで表示し、認識結果の寸法数値は高コ
ントラストで表示するとよい。また、表示部9がカラー
の表示装置である場合には、両画像の色を変えて表示す
れば、識別性を向上させることができる。また、認識し
た寸法数値の誤認識の可能性が高い(所定値以上)場合
には、その寸法数値を点滅表示するなどによって、誤認
識の可能性が高いことも表示することができる。
In this case, the recognized dimension information and the dimension information of the image of the inputted image information of the drawing can be displayed adjacent to each other or can be superimposed and displayed.
Then, in order to easily identify the two, it is preferable to display the image image in halftone and display the dimension value of the recognition result in high contrast. In the case where the display unit 9 is a color display device, the distinguishability can be improved by displaying the two images in different colors. Further, when the possibility of erroneous recognition of the recognized dimensional numerical value is high (equal to or more than a predetermined value), it is possible to display that the erroneous recognition is high by blinking the dimensional numerical value.

【0026】さらに、この表示部9は、認識結果を操作
者が確認するための画面も表示する。すなわち、上記認
識結果の寸法数値を表示し、「この認識結果でよろしい
ですか?(YES/NO)」というような表示を行な
う。これにより、寸法数値が正確に認識できているかど
うかを操作者が確認することができる。
Further, the display unit 9 also displays a screen for the operator to confirm the recognition result. That is, the dimension value of the recognition result is displayed, and a display such as "Are you sure with this recognition result? (YES / NO)" is displayed. As a result, the operator can confirm whether or not the dimensional numerical value can be accurately recognized.

【0027】操作入力部10は、各種操作指示や機能選
択指令、編集データ等を入力するためのものであり、キ
ーボードやマウスあるいはタッチパネル等である。この
操作入力部10は、表示選定手段としての機能も有し、
表示部9の表示状態を操作者の所望の表示状態に変更す
ることができる。例えばキー操作により、入力された図
面の画像イメージと認識結果の寸法情報とを重ね合わせ
て表示させたり、どちらか一方のみを選択して表示させ
たりすることができる。
The operation input unit 10 is for inputting various operation instructions, function selection instructions, edit data, etc., and is a keyboard, a mouse, a touch panel, or the like. The operation input unit 10 also has a function as a display selection unit,
The display state of the display unit 9 can be changed to a display state desired by the operator. For example, by operating a key, it is possible to superimpose and display the input image image of the drawing and the dimension information of the recognition result, or select and display only one of them.

【0028】さらに、操作入力部10は、上記「この認
識結果でよろしいですか?(YES/NO)」の表示に
対し、「YES」または「NO」の情報を入力するため
のキー等の入力手段も有する。そして、「YES」が選
択された場合は表示している認識結果を確定して認識処
理を終了し、「NO」が選択された場合は再認識処理あ
るいは訂正処理に移行する。これにより、操作者は認識
結果の内容を確認してそれを確定することができる。
Further, the operation input unit 10 inputs a key or the like for inputting "YES" or "NO" information in response to the above-mentioned "is this recognition result OK? (YES / NO)" display. We also have means. Then, when "YES" is selected, the displayed recognition result is confirmed and the recognition process is ended, and when "NO" is selected, the process is shifted to the re-recognition process or the correction process. As a result, the operator can confirm the content of the recognition result and confirm it.

【0029】また、この操作入力部10にポインティン
グ・デバイスであるマウスを備え、表示部9に表示され
た図面の入力画像イメージの寸法補助線や寸法線を、マ
ウスカーソルでなぞることによって寸法補助線や寸法線
の位置情報を入力する機能を設けることも可能である。
Further, the operation input unit 10 is provided with a mouse as a pointing device, and the dimension auxiliary line or the dimension line of the input image image of the drawing displayed on the display unit 9 is traced by the mouse cursor. It is also possible to provide a function for inputting position information of the or dimension line.

【0030】外部記憶装置11は、寸法数値認識部8に
よって認識された寸法数値や、寸法リスト作成部7によ
って作成された寸法リストの情報を、フロッピディスク
(FD)や光磁気ディスク(OMD)等の外部へ取り出
し可能な記憶媒体に記憶させる記憶装置である。印刷装
置12は、入力した図面の画像イメージや認識した寸法
情報を紙に印刷あるいは描画して出力するプリンタある
いはプロッタである。
The external storage device 11 stores the dimensional numerical values recognized by the dimensional numerical value recognizing section 8 and the information of the dimensional list created by the dimensional list creating section 7 into a floppy disk (FD), a magneto-optical disk (OMD) or the like. Is a storage device for storing in a storage medium that can be taken out of the computer. The printing device 12 is a printer or plotter that prints or draws the input image image of the drawing or the recognized dimension information on paper and outputs it.

【0031】ここで、図面の寸法情報につて説明する。
一般に、図面上で長さ,大きさ,位置,角度などを指示
する記載が寸法情報である。建設図面(主に建築図面)
において、長さを示す寸法情報は通常図2に示すような
寸法図形の組み合わせで表わされる。すなわち、対象と
なる図形の寸法を指示したい部分の両端から引き出され
る寸法2本の寸法補助線間に、それに直交する方向に寸
法線を引き、その上の中央部に寸法数値を記載してい
る。すなわち、寸法数値と寸法線とは1対1で対応して
いる。
Here, the dimension information of the drawings will be described.
Generally, the dimension information is a description indicating the length, size, position, angle, etc. on the drawing. Construction drawings (mainly architectural drawings)
In Fig. 2, the dimension information indicating the length is usually represented by a combination of dimension figures as shown in Fig. 2. That is, a dimension line is drawn between two dimension extension lines that are drawn out from both ends of a portion where the dimension of the target graphic is desired to be designated, and a dimension value is written in the central portion on the dimension line. . That is, the dimensional values and the dimensional lines are in one-to-one correspondence.

【0032】図2の(a)は図形の上側に寸法情報が配
置される場合、(b)は図形の下側に寸法情報が配置さ
れる場合の例を示している。両者は寸法補助線に対する
寸法線の位置が異なるが、いずれも寸法線の上(寸法線
が縦の場合は右側)に寸法数値があり、いずれも寸法線
に近い方が数字の下側になる。しかし、場合によって
は、寸法数値を寸法線の下(寸法線が縦の場合は左側)
に記載する場合もある。
FIG. 2A shows an example in which the dimension information is arranged on the upper side of the figure, and FIG. 2B shows an example in which the dimension information is arranged on the lower side of the figure. Although the position of the dimension line with respect to the dimension extension line is different for both, there is a dimension numerical value on the dimension line (on the right side if the dimension line is vertical), and both are closer to the dimension line below the number. . However, in some cases, the dimension number is below the dimension line (left side if the dimension line is vertical).
It may be described in.

【0033】図3は、長い寸法の間を複数の部分に区切
ってその個々の寸法を示す場合の表示例であり、(a)
に示す寸法情報を分解すると(b)に示すようになる。
図4は、実際の寸法情報を有する建築図面の間取り図の
例を示す。
FIG. 3 is a display example in the case where a long dimension is divided into a plurality of parts and the individual dimensions are shown.
When the dimensional information shown in is decomposed, it becomes as shown in (b).
FIG. 4 shows an example of a floor plan of an architectural drawing having actual dimension information.

【0034】次に、図1に示した図面の寸法数値認識装
置による建設図面(主に家屋やビル等の建築図面)の寸
法数値認識処理の手順について、図5及び図6のフロー
チャートにしたがって説明する。図5のフローチャート
において、各ステップを「S」で示している。なお、こ
こで説明する例では、認識する建設図面がポジ図面であ
るものとする。
Next, the procedure of the dimensional numerical value recognition process of the construction drawings (mainly architectural drawings of houses, buildings, etc.) by the dimensional numerical value recognizing apparatus shown in FIG. 1 will be described with reference to the flowcharts of FIGS. 5 and 6. To do. In the flowchart of FIG. 5, each step is indicated by “S”. In the example described here, the construction drawing to be recognized is assumed to be a positive drawing.

【0035】図5は、この発明による建設図面の寸法数
値認識装置の全体制御部(CPU)1によるこの発明に
関わる処理のメインルーチンを示す。まず、ステップ1
において、画像読取部2にセットされた建設図面の画像
を読み取り、それを2値化したイメージ画像データを入
力し、メモリ4の画像データ格納エリアに格納する。あ
るいは、通信制御部3によって外部から建設図面の画像
データ(イメージ画像データあるいはそのランレングス
を符号化した符号化画像データ)を受信して入力しても
よい。
FIG. 5 shows the main routine of the processing relating to the present invention by the overall control unit (CPU) 1 of the dimension numerical value recognition apparatus for construction drawings according to the present invention. First, step 1
At, the image of the construction drawing set in the image reading unit 2 is read, and the image data obtained by binarizing the image is input and stored in the image data storage area of the memory 4. Alternatively, the communication control unit 3 may externally receive and input image data of the construction drawing (image image data or encoded image data obtained by encoding the run length).

【0036】ステップ2において、メモリ4に格納した
入力画像データの水平及び垂直の線分方向を装置の水平
及び垂直の基準方向(X,Y方向)と一致させるよう
に、自動スキュー補正部5によって補正させる。これは
以後のステップ3,4の寸法情報認識処理における認識
精度を向上させるために行なう。この自動スキュー補正
は、従来から知られているいくつかの方法により行なえ
ばよいので、その内容の詳細な説明は省略する。
In step 2, the automatic skew correction unit 5 makes the horizontal and vertical line segment directions of the input image data stored in the memory 4 coincide with the horizontal and vertical reference directions (X, Y directions) of the apparatus. Correct it. This is performed in order to improve the recognition accuracy in the dimensional information recognition processing in the subsequent steps 3 and 4. Since this automatic skew correction may be performed by some conventionally known methods, detailed description of its contents will be omitted.

【0037】次にステップ3のサブルーチンに進み、自
動スキュー補正された画像データの全体を対象として、
寸法領域認識処理を実行する。この処理は、入力した建
設図面の画像データ中の寸法情報が存在する領域(「寸
法領域」という)を決定する処理であり、次のステツプ
4での寸法補助線抽出処理と共に図1における寸法位置
認識部6によって行なうが、その詳細は後述する。
Next, the process proceeds to the subroutine of step 3, where the entire image data on which the automatic skew correction is performed is targeted.
Dimension area recognition processing is executed. This process is a process for determining an area (referred to as "dimension area") in which the dimension information exists in the image data of the input construction drawing. The dimension auxiliary line extraction processing in the next step 4 and the dimension position in FIG. This is performed by the recognition unit 6, but the details will be described later.

【0038】この寸法領域認識処理が済んで寸法領域を
決定すると、ステップ4のサブルーチンに進んで、寸法
補助線抽出処理を実行する。この処理はステップ3の処
理で決定された各寸法領域ごとに、図7に示すようにそ
こに存在する寸法補助線のみを抽出する処理であり、そ
の詳細は後述する。
When the size area recognition process is completed and the size area is determined, the process proceeds to the subroutine of step 4 to execute the size auxiliary line extraction process. This processing is processing for extracting only the auxiliary dimension lines existing therein for each of the dimension areas determined in the processing of step 3 as shown in FIG. 7, and the details thereof will be described later.

【0039】全ての寸法領域の寸法線の認識が終了する
と、次にステップ5へ進んで、寸法リスト作成部7によ
って寸法の探索及び寸法リストの作成を行なう。すなわ
ち、図8に示すように1対の寸法補助線a−a間に存在
する寸法線bを探索する。この探索は、ステップ3で認
識された各寸法領域内を走査(スキャン)することによ
って、寸法補助線に直交する方向に連続する所定長さ以
上の黒ドット列を寸法線の候補とし、その両端が寸法補
助線に当接しているものを探索する。
When the recognition of the dimension lines of all the dimension areas is completed, the process proceeds to step 5 where the dimension list creating section 7 searches for dimensions and creates dimension lists. That is, as shown in FIG. 8, the dimension line b existing between the pair of dimension extension lines aa is searched. In this search, by scanning within each dimension area recognized in step 3, black dot rows having a predetermined length or more continuous in the direction orthogonal to the dimension extension line are candidates for the dimension line, and both ends thereof are determined. Search for those that are in contact with the extension line.

【0040】そして、その探索した寸法線とそれに対応
する2本の寸法補助線を組みにして寸法リストを作成す
る。この寸法リストには、後で認識する寸法数値の組み
合わせる。寸法線の探索を全て終了するまでこの処理を
繰り返し、終了するとステップ7へ進んで、寸法数値認
識部8によって寸法数値認識処理を行なう。この処理は
ステップ5で作成された寸法リストの各寸法線に対して
寸法数値を認識して寸法リストに加える処理であるが、
その詳細は図6によって後述する。
Then, a dimension list is created by combining the retrieved dimension line and two dimension extension lines corresponding thereto. This dimension list is combined with dimension numbers to be recognized later. This process is repeated until the search for the dimension line is completed, and when the process is completed, the process proceeds to step 7 where the dimension value recognition unit 8 performs dimension value recognition processing. This process is a process of recognizing the dimension numerical value for each dimension line of the dimension list created in step 5 and adding it to the dimension list.
The details will be described later with reference to FIG.

【0041】ステップ8で、認識結果の寸法数値を表示
部9に表示する、あるいは寸法線及び寸法補助線を含む
全ての寸法情報を表示してもよい。そして、ステップ9
で確定するか否か、すなわち操作入力部10の確定キー
が押された(マウスカーソルによる指示でもよい)かど
うかを判断し、確定すると判断すると、ステツプ10へ
進んでそのときの認識結果を確定し、メモリ4の確定認
識結果格納領域に格納して処理を終了する。
In step 8, the dimensional numerical value of the recognition result may be displayed on the display unit 9 or all dimensional information including the dimensional line and the dimensional auxiliary line may be displayed. And step 9
To determine whether or not to confirm, that is, whether or not the confirmation key of the operation input unit 10 has been pressed (may be an instruction with a mouse cursor), and if it is determined to proceed, proceed to step 10 to confirm the recognition result at that time. Then, it is stored in the definite recognition result storage area of the memory 4 and the processing is terminated.

【0042】ステップ9で確定キーが押されない場合
は、ステップ11で認識結果を修正するか否か、すなわ
ち修正入力選択キーが押されたか(マウスカーソルによ
る指示でもよい)どうかを判断し、修正すると判断する
と、ステップ13で表示部9に入力した建設図面のイメ
ージ画像を含む修正入力用の画面を表示させる。そし
て、オペレータが操作入力部10によって修正データ
(寸法数値等)を修正データの入力(追加,訂正,削除
を含む)をすると、それをメモリ4に記憶し、ステップ
8でその修正結果を表示部9に表示する。修正を終了す
るまで、ステップ8,9,11,13,14,11の処
理を繰り返す。
If the confirm key is not pressed in step 9, it is determined in step 11 whether or not the recognition result is to be corrected, that is, whether the correction input selection key has been pressed (or the mouse cursor may be used), and the correction is made. If judged, the screen for correction input including the image image of the construction drawing input to the display unit 9 in step 13 is displayed. Then, when the operator inputs (including addition, correction and deletion) the correction data (including numerical values) into the memory 4 through the operation input unit 10, the correction data is stored in the memory 4, and the correction result is displayed in the display unit in step 8. Display on 9. The processing of steps 8, 9, 11, 13, 14, 11 is repeated until the correction is completed.

【0043】ステップ11で修正しないと判断した場合
には、ステップ12で再処理するか(再処理の指示がな
されたか)否かを判断し、再処理の指示がなされた場合
にはステップ3へ戻り、寸法領域認識処理からステップ
10又は14までの処理を繰り返す。ステツプ12で再
処理の指示がなされなかった(終了の指示がなされる
か、何の指示もなされずに所定時間経過した)ときに
は、処理を終了する。
If it is determined in step 11 that the correction is not made, it is determined in step 12 whether or not to reprocess (whether a reprocessing instruction has been issued). If a reprocessing instruction has been issued, go to step 3. Then, the process from the dimension area recognition process to step 10 or 14 is repeated. When the reprocessing instruction is not given in step 12 (the end instruction is given or a predetermined time has passed without giving any instruction), the processing is ended.

【0044】なお、このフローチャートでは省略してい
るが、この確定した認識結果を図1における外部記憶装
置11の記憶媒体に格納したり、印刷装置12によって
紙に印刷したり、通信制御部3からホストコンピュータ
等に送信することもできる。
Although not shown in this flow chart, the confirmed recognition result is stored in the storage medium of the external storage device 11 in FIG. 1, printed on the paper by the printing device 12, or transmitted from the communication control unit 3. It can also be sent to a host computer or the like.

【0045】次に、この図5のステップ7における寸法
数値認識処理の詳細を、図6のフローチャートに従って
説明する。この処理を開始すると、寸法リストの寸法線
毎に、図9に示すように寸法線bの中央部の上側の領域
Uを切り出し、そこに文字の画像があるかどうかを走査
して調べる。文字画像があるか否かは、黒ドットが所定
密度で密集しているか否かで判断する。所定密度以下で
あればノイズ(ごみ)と判断する。
Next, details of the dimension numerical value recognition processing in step 7 of FIG. 5 will be described with reference to the flowchart of FIG. When this process is started, an area U above the center of the dimension line b is cut out for each dimension line in the dimension list as shown in FIG. 9, and it is checked by scanning whether or not there is a character image. Whether or not there is a character image is determined by whether or not black dots are densely arranged at a predetermined density. If the density is less than the predetermined density, it is determined as noise (dust).

【0046】文字画像がなければ、次に同じく図9に示
すように寸法線bの中央部の下側の領域Lを切り出し、
同様にそこに文字の画像があるかどうかを走査して調べ
る。そこにも文字画像がなければ、表示部9にエラーメ
ッセージを表示して処理を終了する。エラーメッセージ
の内容としては、「数値を認識できません。数値がある
かどうか原画像を確認して下さい。」等とする。実際に
数値があるが、認識できなかった場合場合には、前述し
た図5のステップ14等で修正入力することができる。
If there is no character image, then the lower region L of the central portion of the dimension line b is cut out as shown in FIG.
Similarly, scan to see if there is an image of the character. If there is no character image there, an error message is displayed on the display unit 9 and the process ends. The content of the error message is "Unable to recognize the numerical value. Check the original image for the numerical value." If there is an actual numerical value but it cannot be recognized, it can be corrected and input in step 14 of FIG.

【0047】寸法線の上側の領域Uあるいは下側の領域
Lのいずれかに文字画像がある場合には、図10に示す
ように、そのあった方の側の寸法線bの近傍(予め設定
した幅)で1対の寸法補助線a−a間の領域Sに対して
OCRをかけて、文字列(文字コード)を認識する。
When there is a character image in either the area U above the dimension line or the area L below the dimension line, as shown in FIG. The width S) is applied to the area S between the pair of dimension extension lines aa by OCR to recognize the character string (character code).

【0048】その認識した文字列を数値に変換して寸法
リストの対応する寸法線の寸法数値としてストアする。
寸法リスト内の全ての寸法線の領域Sに対してOCRを
かけるまで、上述の処理を繰り返し、それを完了した
ら、図5のメインルーチンへリターンする。
The recognized character string is converted into a numerical value and stored as the numerical value of the corresponding dimension line in the dimension list.
The above-described processing is repeated until the OCR is applied to all the dimension lines S in the dimension list, and when the processing is completed, the process returns to the main routine of FIG.

【0049】次に、図5のメインルーチンにおけるステ
ップ3の寸法領域認識処理とステップ4の寸法補助線抽
出処理について説明する。まず、寸法領域認識処理のサ
ブルーチンのフローチャートを図11の左側の(a)に
示し、その各ステツプの処理に関する説明図を右側の
(b)〜(f)に示す。図11の(b)は入力してスキ
ュー補正した建設図面の画像データ(建設図面データ)
を簡略化して示したものである。
Next, the dimension area recognition processing of step 3 and the dimension auxiliary line extraction processing of step 4 in the main routine of FIG. 5 will be described. First, the flowchart of the subroutine of the dimension area recognition process is shown in (a) on the left side of FIG. 11, and the explanatory diagrams regarding the process of each step are shown in (b) to (f) on the right side. FIG. 11B shows the image data of the construction drawing that has been input and skew-corrected (construction drawing data).
Is shown in a simplified form.

【0050】この画像データに対して、まずステップ2
1で水平方向(X方向)の黒ドット数を1ドットライン
毎に計測して、水平方向ドット数計測配列データ、すな
わち図11の(c)に示すような図面全体の横方向のド
ットヒストグラムを作成する。なお、読み取った建設図
面がポジ図面(地の明度より図の明度が低い図面)の場
合には黒ドット数を計測し、ネガ図面(地の明度より図
の明度が高い図面)の場合には白ドット数を計測する。
For this image data, first step 2
In 1, the number of black dots in the horizontal direction (X direction) is measured for each dot line, and the horizontal dot number measurement array data, that is, the horizontal dot histogram of the entire drawing as shown in FIG. create. The number of black dots is measured when the read construction drawing is a positive drawing (a drawing whose brightness is lower than the brightness of the ground), and a negative drawing (a drawing whose brightness is higher than the brightness of the ground). Measure the number of white dots.

【0051】そして、ステツプ22でその黒ドット数計
測配列から寸法領域の特徴が見られる部分を探索する。
そして、この特徴が見られる範囲を(d)に網点を施し
て示すように仮の寸法領域(水平方向)とする。
Then, in step 22, a portion where the characteristic of the dimension area is seen is searched from the black dot number measurement array.
Then, the range in which this feature can be seen is defined as a provisional size region (horizontal direction) as shown by the dot in (d).

【0052】これらの処理について図12によってさら
に説明する。図8の(a)は寸法データの構成例を示
し、複数の引出線aと複数の寸法線b及び寸法文字cか
ら構成されている。引出線aの内側の先端は建物に接す
る場合と離れている場合があるが、外側の先端部寄りに
は、建物からある程度離れて、略一定の間隔で平行に複
数の寸法線bがあり、その線幅は細い。この寸法線は建
物の上側又は下側では水平方向に、右側又は左側では垂
直方向に延びている。図示の例は上側であり、水平方向
に延びている。
These processes will be further described with reference to FIG. FIG. 8A shows a configuration example of the dimension data, which is composed of a plurality of leader lines a, a plurality of dimension lines b, and dimension characters c. The inner tip of the leader line a may be in contact with the building or separated from it, but there is a plurality of dimension lines b in parallel to each other at a substantially constant distance from the building to the outer tip part side, The line width is thin. This dimension line extends horizontally on the upper or lower side of the building and vertically on the right or left side. The example shown is on the upper side and extends horizontally.

【0053】そのため、この寸法データの水平方向の黒
ドット数計測配列であるドットヒストグラムは、図12
の(b)に示すようになる。すなわち、Y方向の狭い範
囲に黒ドット数(黒ランの数)が非常に多いことを示す
長い線が集中した部分Bが、略一定の間隔で複数現われ
る。これは寸法線bによるものである。Aは引出線によ
る部分で黒ドット数が極めて少ないことを示す短い線が
Y方向に密接して垂直方向の太線のように現われる。C
は寸法文字による部分で、Bの部分の間に比較的短い線
が多数Y方向に隣接して現われる。
Therefore, the dot histogram which is the horizontal black dot number measurement array of this dimension data is shown in FIG.
(B). That is, a plurality of portions B in which long lines indicating that the number of black dots (the number of black runs) are very large appear in a narrow range in the Y direction appear at substantially constant intervals. This is due to the dimension line b. A is a leader line, and a short line indicating that the number of black dots is extremely small appears in close contact with the Y direction like a vertical thick line. C
Is a portion formed by a dimensional character, and a number of relatively short lines appear adjacent to each other in the Y direction between portions B.

【0054】これらが寸法領域の特徴である。そこで、
このドットヒストグラムをスキャンして、一番外側の長
い線状のBの部分から、一番内側のBの部分よりさらに
建物側に予め設定した一定幅dまでの幅Wの範囲を仮の
寸法領域とする。
These are the characteristics of the size domain. Therefore,
This dot histogram is scanned, and the range of width W from the outermost long linear portion B to a predetermined width d further preset to the building side than the innermost portion B is provisionally dimensioned. And

【0055】図11に戻って、次にステップ23で垂直
方向黒ドット数計測配列データ、すなわち図面全体の縦
方向のドットヒストグラムを作成する。そして、ステッ
プ24においてステップ22における水平方向の場合と
同様の処理で、黒ドット数計測配列から寸法領域の特徴
が見られる部分を探索し、その範囲を(e)に網点を施
して示すように仮の寸法領域(垂直方向)とする。
Returning to FIG. 11, next, in step 23, vertical black dot number measurement array data, that is, vertical dot histogram of the entire drawing is created. Then, in step 24, the same processing as in the horizontal direction in step 22 is performed to search for a portion in which the characteristic of the dimension area is seen from the black dot number measurement array, and the range is indicated by hatching in (e). To be a temporary dimension area (vertical direction).

【0056】そして、最後のステップ25で、垂直およ
び水平方向の仮の寸法領域を合成し、両領域が重なる部
分から外側の各領域は削除して、図11の(f)に網点
を施して示すような寸法領域を認識して決定する。この
例では、建物に対して上下左右に位置する4つの寸法領
域が存在している。この各寸法領域の4角の座標データ
をメモリに記憶しておく。その後図5のメインルーチン
へリターンする。
Then, in the final step 25, the vertical and horizontal tentative size regions are combined, each region outside the overlapping region is deleted, and halftone dots are applied to FIG. 11 (f). The dimensional area as shown by is recognized and determined. In this example, there are four dimension regions located above, below, to the left and to the right of the building. The coordinate data of the four corners of each size area is stored in the memory. After that, the process returns to the main routine of FIG.

【0057】次に、図5のステップ4における寸法補助
線抽出処理のサブルーチンのフローチャートを図13に
示し、これを図14乃至図16も参照して説明する。図
13に示す寸法補助線抽出処理を開始すると、まずステ
ップ31で先に認識した4つの寸法領域の座標データを
順番に読み込む。
Next, FIG. 13 shows a flowchart of a subroutine of the dimension auxiliary line extraction processing in step 4 of FIG. 5, which will be described with reference to FIGS. 14 to 16. When the dimension auxiliary line extraction processing shown in FIG. 13 is started, first, the coordinate data of the four dimension areas previously recognized in step 31 are read in order.

【0058】ステツプ32で、その読み込んだ寸法領域
の建物に対する位置を判別する。その判別結果が左又は
右であればステップ33へ進み、その寸法領域内の画像
データによって水平方向黒ドット数計測配列データを作
成する。その判別結果が上又は下であればステップ34
へ進み、その寸法領域内の画像データによって垂直方向
黒ドット数計測配列データを作成する。
At step 32, the position of the read dimension area with respect to the building is determined. If the determination result is left or right, the process proceeds to step 33, and horizontal direction black dot number measurement array data is created from the image data in the dimension area. If the determination result is up or down, step 34
Then, the vertical black dot number measurement array data is created from the image data in the dimension area.

【0059】例えば、図14に示すように、画像データ
中の建物の画像20に対して左側の寸法領域21内の水
平方向黒ドット数計測配列データを作成すると、図15
に示すような黒ドット数計測配列(ドットヒストグラ
ム)が得られる。この黒ドット数計測配列は、各寸法補
助線のある位置で幅の狭いピークが現われる。
For example, as shown in FIG. 14, when the horizontal black dot number measurement array data in the dimension area 21 on the left side of the image 20 of the building in the image data is created, FIG.
A black dot number measurement array (dot histogram) as shown in FIG. In this black dot number measurement array, a narrow peak appears at the position where each dimension extension line is present.

【0060】そこでステツプ35で、その黒ドット数計
測配列を走査して、黒ドット数がしきい値以上のライン
が連続する幅とその間の黒ドット数のピーク値を検出す
る。その走査方向は、水平方向黒ドット数計測配列に対
してはY方向(垂直方向)で、垂直方向黒ドット数計測
配列に対してはX方向(水平方向)である。
Then, in step 35, the black dot number measuring array is scanned to detect the width of a line in which the number of black dots is equal to or greater than the threshold value and the peak value of the number of black dots in between. The scanning direction is the Y direction (vertical direction) for the horizontal black dot number measurement array and the X direction (horizontal direction) for the vertical black dot number measurement array.

【0061】そして、例えば図16に示すように、水平
方向黒ドット数計測配列に対してY方向に走査して、黒
ドット数がしきい値以上のラインを検出するとそれが走
査方向に連続して検出される幅Dと、その間の黒ドット
数のピーク値(図示の例では2番目に検出されたライン
の黒ドット数)を検出して記憶する。
Then, for example, as shown in FIG. 16, scanning is performed in the Y direction with respect to the horizontal black dot number measurement array, and when a line having a black dot number equal to or larger than a threshold value is detected, it is continued in the scanning direction. The detected width D and the peak value of the number of black dots between them (the number of black dots in the second detected line in the illustrated example) are detected and stored.

【0062】幅Dを検出したとき、すなわち黒ドット数
がしきい値以上のラインを検出した後最初にそれを検出
できなくなった(黒ドット数がしきい値未満のラインを
走査した)時、及び1つの寸法領域の黒ドット数計測配
列に対する走査を終了した時にステップ36に進む。
When the width D is detected, that is, when the line where the number of black dots is equal to or larger than the threshold value is detected and the line cannot be detected first (the line where the number of black dots is smaller than the threshold value is scanned), And when the scanning for the black dot number measurement array in one size area is completed, the process proceeds to step 36.

【0063】そこでは黒ドット数がしきい値以上のライ
ンがあったか否かを判断し、あればステップ37へ進ん
で、ピークの高さに対して幅(図16に示すD)が十分
狭い(予め1/5以下,1/10以下のように設定して
おく)かどうかをチェックする。狭ければ寸法補助線と
判断して、ステップ38でそのX座標(X方向に走査し
た時)又はY座標(Y方向に走査した時)を、メモリ4
内の寸法補助線情報リストに加える。
Then, it is judged whether or not there is a line in which the number of black dots is equal to or larger than the threshold value, and if there is, the process proceeds to step 37 and the width (D shown in FIG. 16) is sufficiently narrow with respect to the height of the peak ( (1/5 or less, 1/10 or less in advance). If it is narrow, it is determined to be a dimension auxiliary line, and its X coordinate (when scanned in the X direction) or Y coordinate (when scanned in the Y direction) is stored in the memory 4 in step 38.
Add to the extension line information list in.

【0064】例えば、左右の寸法領域の場合は、図16
に示した幅(配列中の黒ドット数がしきい値以上のライ
ンが連続する範囲)Dの中点PのY方向走査位置を寸法
補助線のY座標とする。上下の寸法領域の場合は、同様
な幅Dの中点のX方向走査位置を寸法補助線のX座標と
する。
For example, in the case of the left and right dimension areas, FIG.
The Y-direction scanning position of the midpoint P of the width (range in which lines in which the number of black dots in the array is equal to or greater than the threshold value) shown in FIG. In the case of the upper and lower dimension regions, the X-direction scanning position of the similar midpoint of the width D is set as the X coordinate of the dimension extension line.

【0065】その後、図13のステップ39へ進んで、
1つの寸法領域の黒ドット数計測配列に対する走査を終
了したか否かを判断し、終了していなければステップ3
5へ戻って、以後の処理を繰り返す。走査を終了すると
ステツプ40へ進み、全ての寸法領域に対する寸法補助
線抽出処理を終了したか否かを判断し、終了していなけ
ればステツプ31に戻って、次の寸法領域の座標データ
を読み込み、上述の処理を繰り返す。
After that, the process proceeds to step 39 in FIG.
It is judged whether or not the scanning for the black dot number measurement array in one dimension area is completed, and if it is not completed, step 3
Returning to step 5, the subsequent processing is repeated. When the scanning is completed, the process proceeds to step 40, where it is judged whether or not the dimension extension line extraction processing for all the dimension areas has been completed. If not completed, the procedure returns to step 31 to read the coordinate data of the next dimension area, The above process is repeated.

【0066】そして、建物に対して上下左右の全ての寸
法領域に対する寸法補助線抽出処理を終了すると、この
サブルーチンを抜けて図5のメインルーチンへリターン
する。この方法によれば、単純なアルゴリズムでほぼ1
00%の寸法線が指すポイントの座標を認識することが
できる。また、輪郭線抽出や細線化処理と比較して、処
理速度も速い。A3図面でも1秒以内で抽出可能であ
る。
When the dimension auxiliary line extraction processing for all the dimension areas above, below, left and right with respect to the building is completed, the process exits this subroutine and returns to the main routine of FIG. According to this method, it is almost 1 with a simple algorithm.
The coordinates of the point indicated by the 00% dimension line can be recognized. Further, the processing speed is higher than that of the contour line extraction and the thinning processing. Extraction is possible within 1 second even with A3 drawing.

【0067】さらに、ドットヒストグラムによる分析を
行なうため、ノイズやカスレにも強く、精度よく寸法補
助線の座標データを取得できる。また、図面が大きくな
ってもメモリ使用量は1次元的にしか増加しないので、
例えばA4図面で約6Kバイト、A0図面でも約24K
バイト程度で済む。
Further, since the dot histogram analysis is performed, it is resistant to noise and blurring, and the coordinate data of the dimension extension line can be acquired accurately. Also, since the memory usage only increases one-dimensionally even if the drawing becomes large,
For example, about 6K bytes for A4 drawings and about 24K for A0 drawings.
Only a part-time job is required.

【0068】ここで、実際の建築図面である家屋の間取
り図について、上述の寸法領域認識処理及び寸法補助線
抽出処理の具体例を、図17乃至図20によって説明す
る。図17は、家屋の間取り図を読み取ったイメージ画
像データである。このイメージ画像データに対して寸法
領域認識処理を行なうため、水平方向及び垂直方向の黒
ドット数を計数して、図17に(H)で示す水平方向の
黒ドット数計測配列データと、(V)で示す垂直方向の
黒ドット数計測配列データ(ドットヒストグラム)を作
成する。
Here, a concrete example of the above-mentioned dimension area recognition processing and dimension extension line extraction processing for a floor plan of a house which is an actual architectural drawing will be described with reference to FIGS. 17 to 20. FIG. 17 is image image data obtained by reading a floor plan of a house. In order to perform the dimension area recognition processing on this image image data, the number of black dots in the horizontal direction and the number of black dots in the vertical direction are counted, and horizontal black dot number measurement array data shown in (H) of FIG. () Creates vertical black dot number measurement array data (dot histogram).

【0069】この水平方向及び垂直方向の黒ドット数計
測配列データから、寸法領域の特徴が見られる部分を探
索して、図18におけるイメージ画像データに対して斜
線を施して示す寸法領域(寸法情報が存在する範囲)を
認識する。この例では、建物の画像に対して上下左右の
4個所に寸法領域が存在する。
From the horizontal and vertical black dot number measurement array data, a portion in which the characteristics of the dimension area can be seen is searched for, and the dimension area (dimension information indicated by hatching the image image data in FIG. 18 is indicated. (The range in which exists) is recognized. In this example, there are four dimension regions in the upper, lower, left and right sides of the image of the building.

【0070】このようにして決定した各寸法領域の画像
データについて、それぞれ寸法補助線の認識処理を行な
うため、図19に示すように、建物の左右の寸法領域内
の各画像データについては水平方向黒ドット数計測配列
データを作成し、建物の上下の寸法領域内の各画像デー
タについては垂直方向黒ドット数計測配列データを作成
する。
Since the dimension auxiliary lines are recognized for the image data of each dimension area determined in this way, as shown in FIG. 19, the image data in the dimension areas on the left and right of the building are horizontally aligned. Black dot number measurement array data is created, and vertical black dot number measurement array data is created for each image data in the upper and lower dimension areas of the building.

【0069】そして、図20にその一つの寸法領域の垂
直方向黒ドット数計測配列を示すように、黒ドット数が
しきい値以上の黒ランがピークに対して十分狭い幅で存
在する各部分の中心点の座標をそれぞれ寸法補助線のX
座標(水平方向黒ドット数計測配列の場合はY座標)と
認識して、それぞれ寸法補助線情報リストに記憶する。
Then, as shown in FIG. 20 in the vertical direction black dot number measurement array of the one size region, each portion in which a black run in which the number of black dots is the threshold value or more exists in a width sufficiently narrow with respect to the peak. The coordinates of the center point of the
The coordinates (Y coordinate in the case of the horizontal black dot number measurement array) are recognized and stored in the dimension auxiliary line information list.

【0070】図1における寸法数値認識部8の付加的機
能により、寸法リストに格納されている認識された寸法
数値と、その寸法線及び寸法補助線の位置データを利用
して近傍の他の寸法線に係る寸法数値を演算によつて求
めることもできる。寸法リストは、メモリ4の中に2本
の寸法補助線で得られる領域毎に作成される。寸法数値
の演算方法の例を図21によって説明する。
By the additional function of the dimensional numerical value recognizing unit 8 in FIG. 1, the recognized dimensional numerical values stored in the dimensional list and the position data of the dimensional line and dimensional auxiliary line are used to make other dimensional values in the vicinity. It is also possible to obtain the numerical value of the dimension of the line by calculation. The dimension list is created in the memory 4 for each area obtained by the two dimension extension lines. An example of a method of calculating the dimension value will be described with reference to FIG.

【0071】はじめに、寸法線AとBに係る寸法数値
「1000」と「 1500」を認識し、その後それを
加算してして(1000+1500=2500)を寸法
線Cに係る寸法数値として算出する。さらに、寸法線C
に対する領域にもOCRを実施した後、演算結果と比較
して、寸法線Cに係る寸法数値を決定するようにしても
よい。OCRをすべて寸法線の領域に対して行った後、
この演算方法で検算して、矛盾が生じる場合は、その部
分を表示した、操作者に確認させるようにすることもで
きる。
First, the dimension numerical values "1000" and "1500" relating to the dimension lines A and B are recognized, and then they are added to calculate (1000 + 1500 = 2500) as the dimension numerical value relating to the dimension line C. Furthermore, the dimension line C
It is also possible to perform the OCR also on the region corresponding to, and compare it with the calculation result to determine the dimension numerical value related to the dimension line C. After performing all OCR on the area of the dimension line,
When a contradiction occurs after the calculation is performed by this calculation method, the operator can confirm the displayed part and confirm it.

【0072】図22は認識した寸法数値の表示例を示
し、できるだけ原画像のイメージの近傍(上下左右)に
認識した寸法数値(枠で囲んで示す)表示させることに
より、比較を容易にすることができる。
FIG. 22 shows an example of displaying the recognized dimensional numerical values. By displaying the recognizable dimensional numerical values (shown in a frame) as close to the image of the original image (upper, lower, left and right) as possible, comparison can be facilitated. You can

【0073】[0073]

【発明の効果】以上説明してきたように、この発明の図
面の寸法数値認識方法及び認識装置によれば、建設図面
等の寸法情報を有する図面の画像情報から、その重要な
情報である寸法数値を精度よく且つ迅速に自動認識でき
る。
As described above, according to the dimensional numerical value recognizing method and recognizing apparatus for drawings of the present invention, the dimensional numerical value which is important information from the image information of the drawing having the dimensional information such as the construction drawing is important. Can be automatically and accurately recognized.

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

【図1】この発明による図面の寸法数値認識方法を実施
する装置の概略構成を示すブロック図である。
FIG. 1 is a block diagram showing a schematic configuration of an apparatus for implementing a dimension numerical value recognition method of the drawings according to the present invention.

【図2】建設図面における寸法情報の記載例を示す図で
ある。
FIG. 2 is a diagram showing a description example of dimensional information in a construction drawing.

【図3】同じくその寸法の分割例を示す図である。FIG. 3 is a diagram showing an example of division of the same size.

【図4】寸法情報を 有する建設図面の例を示す図であ
る。
FIG. 4 is a diagram showing an example of a construction drawing having dimensional information.

【図5】図1に示した装置による図面の寸法数値認識に
関わる処理のメインルーチンのフロー図である。
5 is a flow chart of a main routine of a process relating to dimensional numerical value recognition of the drawing by the apparatus shown in FIG.

【図6】図5におけるステップ7の寸法数値認識処理の
サブルーチンのフロー図である。
6 is a flow chart of a subroutine of dimension numerical value recognition processing of step 7 in FIG.

【図7】寸法補助線抽出の説明図である。FIG. 7 is an explanatory diagram of dimension auxiliary line extraction.

【図8】寸法線探索の説明図である。FIG. 8 is an explanatory diagram of dimension line search.

【図9】寸法線のどちら側に文字画像があるかを調査す
るエリアの説明図である。
FIG. 9 is an explanatory diagram of an area for investigating which side of a dimension line has a character image.

【図10】文字認識(OCR)を行なう領域の説明図で
ある。
FIG. 10 is an explanatory diagram of a region for performing character recognition (OCR).

【図11】図5におけるステップ3の寸法領域認識処理
のサブルーチンのフローとその各ステップの説明に供す
る図を対応させて示す図である。
FIG. 11 is a diagram showing a flow of a subroutine of the dimension area recognition process of step 3 in FIG. 5 and a diagram provided for explaining each step in association with each other.

【図12】同じくその寸法領域認識処理を説明するため
の説明図である。
FIG. 12 is an explanatory diagram for similarly explaining the size area recognition process.

【図13】図5におけるステップ4の寸法補助線抽出処
理のサブルーチンのフロー図である。
FIG. 13 is a flow chart of a subroutine of dimension auxiliary line extraction processing of step 4 in FIG.

【図14】入力した建設図面の画像データにおける建物
の画像と寸法領域の一例を示す図である。
FIG. 14 is a diagram showing an example of a building image and a size region in the input image data of the construction drawing.

【図15】図9の寸法領域における水平方向黒ドット数
計測配列を示す図である。
FIG. 15 is a diagram showing a horizontal black dot number measurement array in the dimension area of FIG. 9;

【図16】同じくその黒ドット数計測配列から寸法補助
線を認識する処理の説明に供する拡大図である。
FIG. 16 is an enlarged view for explaining a process of recognizing a dimension auxiliary line from the black dot number measurement array.

【図17】実際の建築図面を読み取ったイメージ画像デ
ータとその画像データに対する水平及び垂直方向の黒ド
ット数計測配列データを示す図である。
FIG. 17 is a diagram showing image image data obtained by reading an actual architectural drawing and horizontal and vertical black dot number measurement array data for the image data.

【図18】図17の水平及び垂直方向の黒ドット数計測
配列データを用いて寸法領域を決定した例を示す図であ
る。
FIG. 18 is a diagram showing an example in which a size area is determined using the black dot number measurement array data in the horizontal and vertical directions of FIG. 17;

【図19】図18の各寸法領域ごとにその内部の画像デ
ータによって水平又は垂直方向の黒ドット数計測配列デ
ータを作成した図である。
FIG. 19 is a diagram in which horizontal or vertical black dot number measurement array data is created for each size area of FIG. 18 based on image data therein.

【図20】同じく一つの寸法領域における垂直方向の黒
ドット数計測配列と寸法補助線を抽出するためのしきい
値の関係を示す図である。
FIG. 20 is a diagram showing a relationship between a vertical black dot number measurement array in one size region and a threshold value for extracting a size extension line.

【図21】寸法数値を演算によって求める例の説明図で
ある。
FIG. 21 is an explanatory diagram of an example in which a numerical value of a dimension is calculated.

【図22】認識した寸法数値の表示例を示す図である。FIG. 22 is a diagram illustrating a display example of recognized dimension numerical values.

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

1:全体制御部(CPU) 2:画像読取部 3:通信制御部 4:メモリ 5:自動スキュー補正部 6:寸法位置認識部 7:寸法リスト作成部 8:寸法数値認識部 9:表示部 10:操作入力部 11:外部記憶装置 12:印刷装置 13:バス 20:建物の画像 21:寸法領域 1: Overall control unit (CPU) 2: Image reading unit 3: Communication control unit 4: Memory 5: Automatic skew correction unit 6: Dimension position recognition unit 7: Dimension list creation unit 8: Dimension numerical value recognition unit 9: Display unit 10 : Operation input unit 11: External storage device 12: Printing device 13: Bus 20: Image of building 21: Dimension area

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成7年11月9日[Submission date] November 9, 1995

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】発明の詳細な説明[Correction target item name] Detailed description of the invention

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、建築図面等の建
設図面や各種設計図面などのように、寸法補助線,寸法
線,及び寸法数値からなる寸法情報を有する図面内の寸
法数値を認識する寸法数値認識方法及びその装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention recognizes dimensional numerical values in drawings having dimensional information consisting of auxiliary dimension lines, dimensional lines, and numerical values, such as construction drawings such as architectural drawings and various design drawings. The present invention relates to a dimensional numerical value recognition method and apparatus.

【0002】[0002]

【従来の技術】近年、CADシステム等を用いて、家屋
やビル等の建築図面あるいは水道管,ガス管,電力・通
信ケーブル等の配管図面等を含む建設図面を容易に作成
したり、そのデータを記憶させておいて設計変更や増改
築等の際に利用することは行なわれている。しかし、そ
の建設図面のデータには、作成したシステムにより互換
性がなく、期間の経過や業者の変更により利用できなく
なる。また、家屋の増改築等を行なう場合には、紙に描
かれた古い建築図面しかない場合が多く、増改築の間取
り図等を変更しない部分も含めて全て描きなおさなけれ
ばならなかった。
2. Description of the Related Art In recent years, using CAD systems, etc., construction drawings including houses, buildings, etc., construction drawings including water pipes, gas pipes, piping drawings for power / communication cables, etc. can be easily created, and the data thereof can be obtained. It has been practiced to memorize and store the information when design changes, extension and remodeling are performed. However, the data of the construction drawings are not compatible with each other due to the created system, and cannot be used due to the passage of time or the change of the contractor. In addition, when renovating or remodeling a house, there are many cases where there is only an old architectural drawing drawn on paper, and it has been necessary to redraw all parts including the floor plan of the renovation and remodeling, etc.

【0003】そこで、紙に描かれた建築図面等の建設図
面を読み取って、コンピュータで処理できるデータとし
て認識して記憶させることも試みられているが、そのた
めの特別な方法や装置はなく、建設図面をイメージスキ
ャナで読み取り、そのイメージ画像データをパーソナル
コンピュータ等に入力させて、一般の図形認識機能を利
用して線分認識やパターン認識を行なっている。あるい
はさらに、高機能の図形エディタを補助に使うことによ
って図形認識機能をレベルアップし、自動認識機能が多
少不完全な場合でも、例えばラスタ・ベクタ変換するこ
とにより直線や円弧等の基本線図を自動認識できるよう
にしたものもある。
Therefore, it has been attempted to read construction drawings such as architectural drawings drawn on paper and recognize and store them as computer processable data, but there is no special method or device for this purpose, A drawing is read by an image scanner, the image data is input to a personal computer or the like, and line segment recognition and pattern recognition are performed using a general figure recognition function. Alternatively, the graphic recognition function can be upgraded by using a high-performance graphic editor to assist, and even if the automatic recognition function is somewhat imperfect, basic vector diagrams such as straight lines and arcs can be converted by raster-to-vector conversion, for example. Some of them can be automatically recognized.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな建設図面や各種の設計図面などには、寸法補助線,
寸法線,及び寸法数値からなる寸法情報が多数記載され
ている。これは図面に描かれた各部の実際の大きさを示
す重要な情報であるが、従来の図面認識装置ではこの寸
法情報、特にその寸法数値を自動的に認識することがで
きなかった。そのため、寸法数値は操作者がキーボード
等から1つずつ手入力により入力を行なっていた。
However, in such construction drawings and various design drawings, dimensional auxiliary lines,
Many dimensional information consisting of dimensional lines and numerical values is described. This is important information indicating the actual size of each part drawn in the drawing, but the conventional drawing recognition device cannot automatically recognize this size information, especially the size value. Therefore, the operator manually inputs the numerical values one by one from a keyboard or the like.

【0005】OCRを用いて寸法数値を読み取らせる場
合でも、その寸法数値が記載されている読み取り領域を
それぞれ指定する必要があった。したがって、寸法情報
を有する図面の内容をコンピュータで処理できるデータ
ベース化する際に、従来の技術では寸法数値の入力が煩
雑であり、入力ミスが発生する恐れもあるという問題が
あった。
Even when the dimensional numerical value is read by using the OCR, it is necessary to specify each reading area in which the dimensional numerical value is described. Therefore, when the contents of the drawings having the dimension information are converted into a database that can be processed by a computer, there is a problem that the input of the dimension values is complicated and the input error may occur in the conventional technique.

【0006】この発明は上記の点に鑑みてなされたもの
であり、その建設図面等の寸法情報を有する図面の画像
情報から、その重要な情報である寸法数値を精度よく且
つ迅速に自動認識できるようにすることを目的とする。
The present invention has been made in view of the above points, and it is possible to automatically and accurately and quickly recognize a dimensional value which is important information from image information of a drawing having dimensional information such as a construction drawing. The purpose is to do so.

【0007】[0007]

【課題を解決するための手段】この発明は上記の目的を
達成するため、次のような図面の寸法数値認識方法及び
寸法数値認識装置を提供する。この発明による図面の寸
法数値認識方法は、寸法補助線,寸法線,及び寸法数値
からなる寸法情報を有する図面の画像情報を入力し、入
力した画像情報内の各寸法補助線を抽出し、その抽出し
た寸法補助線間に存在する寸法線を探索し、探索できた
寸法線に対してどちら側の領域に文字があるかを探索
し、文字があると判断した側の寸法線の近傍で寸法線間
の領域に対して文字認識処理を行なって寸法数値を認識
することを特徴とする。
In order to achieve the above object, the present invention provides a dimensional numerical value recognizing method and a dimensional numerical value recognizing apparatus in the following drawings. A method of recognizing dimension numerical values of a drawing according to the present invention inputs image information of a drawing having dimension information including a dimension auxiliary line, a dimension line, and a dimension numerical value, extracts each dimension auxiliary line in the input image information, The dimension lines existing between the extracted dimension extension lines are searched, the area on the side where there is a character with respect to the found dimension line is searched, and the dimension is determined near the dimension line on the side where it is determined that there is a character. It is characterized in that character recognition processing is performed on a region between lines to recognize a numerical value.

【0008】また、この発明による図面の寸法数値認識
装置は、寸法補助線,寸法線,及び寸法数値からなる寸
法情報を有する図面の画像情報を入力する画像情報入力
手段と、入力された画像情報の内の各寸法補助線を抽出
する手段と、該手段によって抽出された寸法線間に存在
する寸法線を探索する手段と、探索できた寸法線に対し
てどちら側の領域に文字があるかを探索する手段と、該
手段によって文字があると判断した側の寸法線の近傍で
寸法補助線間の領域に対して文字認識処理を行なって寸
法数値を認識する手段とを備えたものである。
Further, the drawing numerical value recognizing device according to the present invention includes image information input means for inputting image information of a drawing having size information consisting of auxiliary dimension lines, dimension lines and numerical values, and the inputted image information. Means for extracting each of the dimension auxiliary lines, means for searching the dimension lines existing between the dimension lines extracted by the means, and which side of the searched dimension line the character is in And means for recognizing the dimension numerical value by performing character recognition processing on the area between the dimension extension lines in the vicinity of the dimension line on the side where the character is determined to be present by the means. .

【0009】したがって、寸法数値が記載されている領
域を自動的に探索して、その寸法数値をOCR等によっ
て確実に認識することができるので、寸法数値を手入力
したり、読み取り領域を個々に指定したりする必要がな
くなる。
Therefore, it is possible to automatically search the area in which the dimensional numerical value is described and recognize the dimensional numerical value by OCR or the like, so that the dimensional numerical value can be manually input or the reading areas can be individually read. There is no need to specify it.

【0010】さらに、この図面の寸法数値認識装置にお
いて、探索できた寸法線のデータと、その寸法線に対応
する2本の寸法補助線のデータと、該寸法線に関して認
識した寸法数値とをひとまとめにした寸法リストを寸法
線の数分作成する寸法リスト作成手段を設けるとよい。
これによって、寸法数値と寸法線とを1対1で対応付け
することができる。
Further, in the dimensional numerical value recognizing apparatus of this drawing, the data of the dimensional line which can be searched, the data of the two dimensional auxiliary lines corresponding to the dimensional line, and the dimensional numerical value recognized about the dimensional line are put together. It is advisable to provide dimension list creating means for creating the number of dimension lists described above according to the number of dimension lines.
As a result, the numerical values and the dimension lines can be associated with each other on a one-to-one basis.

【0011】また、その寸法リスト作成手段によって作
成された寸法リストの情報に基づいて、既に認識した寸
法数値から近傍の他の寸法線に係る寸法数値を演算する
演算手段を設けるとよい。これによって、全ての寸法数
値をOCR等の文字認識処理によらなくても、認識済み
の寸法数値から近傍の他の寸法線の寸法数値を演算によ
って求めることができ、認識時間の短縮と認識精度の向
上を図ることができる。
Further, it is preferable to provide a calculating means for calculating a dimension numerical value related to another dimension line in the vicinity from the already recognized dimension numerical value based on the information of the dimension list created by the dimension list creating means. As a result, it is possible to calculate the dimension values of other dimension lines in the vicinity from the recognized dimension values without performing all the dimension values by character recognition processing such as OCR, thereby reducing the recognition time and the recognition accuracy. Can be improved.

【0012】上記画像情報入力手段が、図面の画像を読
み取ってそのイメージ画像情報を入力する画像読取手段
であれば、紙に描かれた図面上の寸法数値の認識を容易
に行なうことができる。また、上記画像情報入力手段
が、図面の画像情報を通信により受信して入力する画像
情報受信手段であれば、離れた場所にある他の装置から
図面の画像情報を受信して、その図面上の寸法数値の認
識を容易に行なうことができる。
If the image information input means is an image reading means for reading the image of the drawing and inputting the image information of the image, it is possible to easily recognize the dimensional values on the drawing drawn on the paper. Further, if the image information input means is an image information receiving means for receiving and inputting the image information of the drawing by communication, the image information of the drawing is received from another device at a remote place, It is possible to easily recognize the dimensional numerical value of.

【0013】さらにまた、認識した寸法数値を入力した
画像情報のイメージと同時に表示する表示手段を設けれ
ば、認識結果を確認して誤認識を発見することが容易に
できる。そして、その表示手段に表示した認識した寸法
数値を外部からの指示により確定する認識結果確認手段
を設ければ、操作者が認識結果を確認した後、その指示
によってそれを確定することができる。
Further, by providing a display means for displaying the recognized dimensional numerical value at the same time as the input image information image, it is possible to easily confirm the recognition result and find the erroneous recognition. If the recognition result confirmation means for confirming the recognized dimensional numerical value displayed on the display means by an instruction from the outside is provided, the operator can confirm the recognition result and then confirm it by the instruction.

【0014】[0014]

【発明の実施の形態】以下、この発明の実施の形態を図
面を参照して具体的に説明する。図1は、この発明によ
る図面の寸法数値認識方法を実施する寸法数値認識装置
の概略構成を示すブロック図であり、ハード構成とマイ
クロコンピュータによるソフト処理の機能とを混在して
示している。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be specifically described below with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration of a dimensional numerical value recognizing apparatus for carrying out the dimensional numerical value recognizing method according to the present invention, in which a hardware configuration and a software processing function by a microcomputer are shown in a mixed manner.

【0015】この装置は、全体制御部1,画像読取部
2,通信制御部3,メモリ4,自動スキュー補正部5,
寸法位置認識部6,寸法リスト作成7,寸法数値認識部
8,表示部9,操作入力部10,外部記憶装置11,印
刷装置12,及びこれらを接続するバス13などから構
成される。なお、これらの各部(又は装置)とバス13
との間に必要なインタフェース部は図示を省略してい
る。
This apparatus comprises an overall control unit 1, an image reading unit 2, a communication control unit 3, a memory 4, an automatic skew correction unit 5,
It is composed of a dimensional position recognizing unit 6, a dimensional list creating unit 7, a dimensional numerical value recognizing unit 8, a display unit 9, an operation input unit 10, an external storage unit 11, a printing unit 12 and a bus 13 connecting them. In addition, these parts (or devices) and the bus 13
The interface part required between the and is not shown.

【0016】全体制御部1は、この装置全体の動作及び
機能を制御するマイクロコンピュータ(CPU,RO
M,RAM等から構成されるが代表して「CPU」と略
称される)であり、自動スキュー補正部5並びにこの発
明に係る寸法位置認識部6,寸法リスト作成部7,及び
寸法数値認識部8の各機能も、そのCPUのソフト処理
によって実現することができる。
The overall control unit 1 is a microcomputer (CPU, RO) for controlling the operation and function of the entire apparatus.
M, RAM, etc., but is abbreviated as "CPU" as a representative). The automatic skew correction section 5, the dimension position recognition section 6, the dimension list creation section 7, and the dimension value recognition section according to the present invention. Each function of 8 can also be realized by the software processing of the CPU.

【0017】画像読取部2は、セットされた寸法情報を
有する図面をスキャンしてその画像を読み取って、イメ
ージ画像情報を入力する画像情報入力手段であり、スキ
ャン光学系及びCCDなどのイメージセンサとその駆動
回路等からなる公知のイメージスキャナである。また、
その読み取ったイメージ画像情報を所定の解像度で2値
化して白ドットと黒ドットの画像データにする2値化回
路も含んでいる。
The image reading section 2 is an image information input means for scanning a drawing having set dimension information, reading the image, and inputting image information. The image reading section 2 includes a scanning optical system and an image sensor such as a CCD. It is a known image scanner including its drive circuit and the like. Also,
It also includes a binarizing circuit that binarizes the read image image information at a predetermined resolution to produce image data of white dots and black dots.

【0018】通信制御部3は、画像読取部2から画像情
報を取り込む代りに、外部から通信によりイメージ画像
情報又はそのランレングスが符号化された符号化画像デ
ータを受信して入力する画像情報受信手段であると共
に、この装置によって認識した寸法数値あるいはそれを
含む寸法情報を外部装置へ送信することもできる。具体
的にはFAXモデムやパソコン通信制御手段を含むもの
である。
The communication control unit 3 receives the image information from the image reading unit 2 instead of receiving the image information from the image reading unit 2, and receives and inputs the image image information or the encoded image data in which the run length is encoded by communication from the outside. In addition to the means, the dimensional numerical value recognized by this device or dimensional information including it can be transmitted to an external device. Specifically, it includes a FAX modem and personal computer communication control means.

【0019】メモリ4は、画像読取部2によって読み取
ったイメージ画像情報、通信制御部3によって受信した
イメージ画像情報又は符号化画像データをはじめ、自動
スキュー補正部5によってスキュー補正された画像デー
タ、寸法位置認識部6によって認識された寸法領域、寸
法リスト作成手段7によって作成される寸法リストの情
報、寸法数値認識部8によって認識された寸法数値等を
格納する大容量のRAMあるいはハードディスク等によ
るメモリである。
The memory 4 includes image image information read by the image reading unit 2, image image information received by the communication control unit 3 or encoded image data, image data skew-corrected by the automatic skew correction unit 5, and dimensions. A large-capacity RAM or a memory such as a hard disk for storing the dimensional area recognized by the position recognizing unit 6, the information of the dimensional list created by the dimensional list creating means 7, the dimensional numerical value recognized by the dimensional numerical value recognizing unit 8, and the like. is there.

【0020】自動スキュー補正部5は、メモリ4に格納
した画像データの角度を調整して水平及び垂直の線分方
向を装置の水平及び垂直の基準方向(X,Y方向)と一
致させるように補正するためのものであり、公知の自動
スキュー補正技術を用いることができる。なお、この自
動スキュー補正部5により修正された画像データは、再
びメモリ4に格納される。
The automatic skew correction unit 5 adjusts the angle of the image data stored in the memory 4 so that the horizontal and vertical line segment directions coincide with the horizontal and vertical reference directions (X and Y directions) of the apparatus. This is for correction, and a known automatic skew correction technique can be used. The image data corrected by the automatic skew correction unit 5 is stored in the memory 4 again.

【0021】寸法位置認識部6は、自動スキュー補正が
なされてメモリ4に格納されたイメージ画像データ又は
符号化画像データに対して、その画像データ内の寸法情
報が存在する領域(以下「寸法領域」という)を認識
し、その各寸法領域毎に寸法補助線を抽出して、寸法位
置を認識する寸法位置認識手段である。
The dimensional position recognizing unit 6 is a region where the dimensional information in the image data or the encoded image data stored in the memory 4 after the automatic skew correction is present (hereinafter referred to as "dimension region"). )), And a dimension auxiliary line is extracted for each of the dimension regions to recognize the dimension position.

【0022】寸法リスト作成部7は、寸法位置認識部6
で抽出された寸法補助線間の寸法線を探索し、抽出した
寸法線のデータと、その寸法線に対応する2本の寸法補
助線のデータと、その寸法線に係る寸法数値(後述する
寸法数値認識部8によって認識される)をひとまとめに
した寸法リストを作成する寸法リスト作成手段である。
The dimension list creating section 7 includes a dimension position recognizing section 6
The dimension lines between the dimension extension lines extracted by are searched, and the data of the extracted dimension lines, the data of the two dimension extension lines corresponding to the dimension lines, and the dimension values related to the dimension lines (dimensions described later) Dimension list creating means for creating a dimensional list in which the numerical value recognizing unit 8 is recognized.

【0023】寸法数値認識部8は、寸法リスト作成部に
よって作成された寸法リストの各寸法線に対して、どち
ら側の領域に文字があるかを探索し、文字があると判断
した側の寸法線の近傍で寸法線間の領域に対してOCR
による文字認識処理を行なって寸法数値を認識する寸法
数値認識手段である。また、寸法リストの情報に基づい
て、既に認識した寸法数値から近傍の他の寸法線に係る
寸法数値を演算する演算手段の機能も備えている。これ
らの、寸法位置認識部6,寸法リスト作成部7,及び寸
法数値認識部8の処理の詳細は後述する。
The dimensional numerical value recognizing unit 8 searches for the area on the side of each dimensional line of the dimensional list created by the dimensional list creating section to find a character, and determines the size of the side on which the character is found. OCR for the area between the dimension lines near the line
Is a dimensional numerical value recognizing means for recognizing a dimensional numerical value by performing character recognition processing according to. Further, it also has a function of a calculating means for calculating the dimension numerical values of other dimension lines in the vicinity from the already recognized dimension numerical values based on the information of the dimension list. Details of these processes of the dimension position recognition unit 6, the dimension list creation unit 7, and the dimension value recognition unit 8 will be described later.

【0024】表示部9は、画像読取部2又は通信制御部
3から入力し、自動スキュー補正部5によってスキュー
補正された図面の画像データ、寸法位置認識部6によっ
て認識された寸法領域及び寸法補助線、寸法リスト作成
部7によって探索された寸法線、寸法数値認識部8によ
って認識された寸法数値などを表示するためのものであ
り、例えば、CRTや液晶ディスプレイ等である。特
に、寸法数値認識部8によって認識された寸法数値、あ
るいは寸法線及び寸法補助線を含む寸法情報を、入力し
た図面の画像情報のイメージと同時に表示する機能を備
えている。
The display unit 9 receives the image data of the drawing which is input from the image reading unit 2 or the communication control unit 3 and is skew-corrected by the automatic skew correction unit 5, the dimension area and the dimension auxiliary recognized by the dimension position recognition unit 6. It is for displaying a line, a dimension line searched by the dimension list creating unit 7, a dimension value recognized by the dimension value recognizing unit 8, and the like, for example, a CRT or a liquid crystal display. In particular, it has a function of displaying the dimensional numerical value recognized by the dimensional numerical value recognizing unit 8 or the dimensional information including the dimensional line and the dimensional auxiliary line simultaneously with the image of the image information of the inputted drawing.

【0025】その場合、認識された寸法情報と、入力し
た図面の画像情報のイメージの寸法情報とを隣接して表
示したり、重ね合わせて表示したりすることができる。
そして、両者の識別が容易にできるように、イメージ画
像はハーフトーンで表示し、認識結果の寸法数値は高コ
ントラストで表示するとよい。また、表示部9がカラー
の表示装置である場合には、両画像の色を変えて表示す
れば、識別性を向上させることができる。また、認識し
た寸法数値の誤認識の可能性が高い(所定値以上)場合
には、その寸法数値を点滅表示するなどによって、誤認
識の可能性が高いことも表示することができる。
In this case, the recognized dimension information and the dimension information of the image of the inputted image information of the drawing can be displayed adjacent to each other or can be superimposed and displayed.
Then, in order to easily identify the two, it is preferable to display the image image in halftone and display the dimension value of the recognition result in high contrast. In the case where the display unit 9 is a color display device, the distinguishability can be improved by displaying the two images in different colors. Further, when the possibility of erroneous recognition of the recognized dimensional numerical value is high (equal to or more than a predetermined value), it is possible to display that the erroneous recognition is high by blinking the dimensional numerical value.

【0026】さらに、この表示部9は、認識結果を操作
者が確認するための画面も表示する。すなわち、上記認
識結果の寸法数値を表示し、「この認識結果でよろしい
ですか?(YES/NO)」というような表示を行な
う。これにより、寸法数値が正確に認識できているかど
うかを操作者が確認することができる。
Further, the display unit 9 also displays a screen for the operator to confirm the recognition result. That is, the dimension value of the recognition result is displayed, and a display such as "Are you sure with this recognition result? (YES / NO)" is displayed. As a result, the operator can confirm whether or not the dimensional numerical value can be accurately recognized.

【0027】操作入力部10は、各種操作指示や機能選
択指令、編集データ等を入力するためのものであり、キ
ーボードやマウスあるいはタッチパネル等である。この
操作入力部10は、表示選定手段としての機能も有し、
表示部9の表示状態を操作者の所望の表示状態に変更す
ることができる。例えばキー操作により、入力された図
面の画像イメージと認識結果の寸法情報とを重ね合わせ
て表示させたり、どちらか一方のみを選択して表示させ
たりすることができる。
The operation input unit 10 is for inputting various operation instructions, function selection instructions, edit data, etc., and is a keyboard, a mouse, a touch panel, or the like. The operation input unit 10 also has a function as a display selection unit,
The display state of the display unit 9 can be changed to a display state desired by the operator. For example, by operating a key, it is possible to superimpose and display the input image image of the drawing and the dimension information of the recognition result, or select and display only one of them.

【0028】さらに、操作入力部10は、上記「この認
識結果でよろしいですか?(YES/NO)」の表示に
対し、「YES」または「NO」の情報を入力するため
のキー等の入力手段も有する。そして、「YES」が選
択された場合は表示している認識結果を確定して認識処
理を終了し、「NO」が選択された場合は再認識処理あ
るいは訂正処理に移行する。これにより、操作者は認識
結果の内容を確認してそれを確定することができる。
Further, the operation input unit 10 inputs a key or the like for inputting "YES" or "NO" information in response to the above-mentioned "is this recognition result OK? (YES / NO)" display. We also have means. Then, when "YES" is selected, the displayed recognition result is confirmed and the recognition process is ended, and when "NO" is selected, the process is shifted to the re-recognition process or the correction process. As a result, the operator can confirm the content of the recognition result and confirm it.

【0029】また、この操作入力部10にポインティン
グ・デバイスであるマウスを備え、表示部9に表示され
た図面の入力画像イメージの寸法補助線や寸法線を、マ
ウスカーソルでなぞることによって寸法補助線や寸法線
の位置情報を入力する機能を設けることも可能である。
Further, the operation input unit 10 is provided with a mouse as a pointing device, and the dimension auxiliary line or the dimension line of the input image image of the drawing displayed on the display unit 9 is traced by the mouse cursor. It is also possible to provide a function for inputting position information of the or dimension line.

【0030】外部記憶装置11は、寸法数値認識部8に
よって認識された寸法数値や、寸法リスト作成部7によ
って作成された寸法リストの情報を、フロッピディスク
(FD)や光磁気ディスク(OMD)等の外部へ取り出
し可能な記憶媒体に記憶させる記憶装置である。印刷装
置12は、入力した図面の画像イメージや認識した寸法
情報を紙に印刷あるいは描画して出力するプリンタある
いはプロッタである。
The external storage device 11 stores the dimensional numerical values recognized by the dimensional numerical value recognizing section 8 and the information of the dimensional list created by the dimensional list creating section 7 into a floppy disk (FD), a magneto-optical disk (OMD) or the like. Is a storage device for storing in a storage medium that can be taken out of the computer. The printing device 12 is a printer or plotter that prints or draws the input image image of the drawing or the recognized dimension information on paper and outputs it.

【0031】ここで、図面の寸法情報について説明す
る。一般に、図面上で長さ,大きさ,位置,角度などを
指示する記載が寸法情報である。建設図面(主に建築図
面)において、長さを示す寸法情報は通常図2に示すよ
うな寸法図形の組み合わせで表わされる。すなわち、対
象となる図形の寸法を指示したい部分の両端から引き出
される寸法2本の寸法補助線間に、それに直交する方向
に寸法線を引き、その上の中央部に寸法数値を記載して
いる。すなわち、寸法数値と寸法線とは1対1で対応し
ている。
[0031] Here, a description will be given to the size information of the drawing. Generally, the dimension information is a description indicating the length, size, position, angle, etc. on the drawing. In a construction drawing (mainly an architectural drawing), dimensional information indicating the length is usually represented by a combination of dimensional figures as shown in FIG. That is, a dimension line is drawn between two dimension extension lines that are drawn out from both ends of a portion where the dimension of the target graphic is desired to be designated, and a dimension value is written in the central portion on the dimension line. . That is, the dimensional values and the dimensional lines are in one-to-one correspondence.

【0032】図2の(a)は図形の上側に寸法情報が配
置される場合、(b)は図形の下側に寸法情報が配置さ
れる場合の例を示している。両者は寸法補助線に対する
寸法線の位置が異なるが、いずれも寸法線の上(寸法線
が縦の場合は右側)に寸法数値があり、いずれも寸法線
に近い方が数字の下側になる。しかし、場合によって
は、寸法数値を寸法線の下(寸法線が縦の場合は左側)
に記載する場合もある。
FIG. 2A shows an example in which the dimension information is arranged on the upper side of the figure, and FIG. 2B shows an example in which the dimension information is arranged on the lower side of the figure. Although the position of the dimension line with respect to the dimension extension line is different for both, there is a dimension numerical value on the dimension line (on the right side if the dimension line is vertical), and both are closer to the dimension line below the number. . However, in some cases, the dimension number is below the dimension line (left side if the dimension line is vertical).
It may be described in.

【0033】図3は、長い寸法の間を複数の部分に区切
ってその個々の寸法を示す場合の表示例であり、(a)
に示す寸法情報を分解すると(b)に示すようになる。
図4は、実際の寸法情報を有する建築図面の間取り図の
例を示す。
FIG. 3 is a display example in the case where a long dimension is divided into a plurality of parts and the individual dimensions are shown.
When the dimensional information shown in is decomposed, it becomes as shown in (b).
FIG. 4 shows an example of a floor plan of an architectural drawing having actual dimension information.

【0034】次に、図1に示した図面の寸法数値認識装
置による建設図面(主に家屋やビル等の建築図面)の寸
法数値認識処理の手順について、図5及び図6のフロー
チャートにしたがって説明する。図5のフローチャート
において、各ステップを「S」で示している。なお、こ
こで説明する例では、認識する建設図面がポジ図面であ
るものとする。
Next, the procedure of the dimensional numerical value recognition process of the construction drawings (mainly architectural drawings of houses, buildings, etc.) by the dimensional numerical value recognizing apparatus shown in FIG. 1 will be described with reference to the flowcharts of FIGS. 5 and 6. To do. In the flowchart of FIG. 5, each step is indicated by “S”. In the example described here, the construction drawing to be recognized is assumed to be a positive drawing.

【0035】図5は、この発明による建設図面の寸法数
値認識装置の全体制御部(CPU)1によるこの発明に
関わる処理のメインルーチンを示す。まず、ステップ1
において、画像読取部2にセットされた建設図面の画像
を読み取り、それを2値化したイメージ画像データを入
力し、メモリ4の画像データ格納エリアに格納する。あ
るいは、通信制御部3によって外部から建設図面の画像
データ(イメージ画像データあるいはそのランレングス
を符号化した符号化画像データ)を受信して入力しても
よい。
FIG. 5 shows the main routine of the processing relating to the present invention by the overall control unit (CPU) 1 of the dimension numerical value recognition apparatus for construction drawings according to the present invention. First, step 1
At, the image of the construction drawing set in the image reading unit 2 is read, and the image data obtained by binarizing the image is input and stored in the image data storage area of the memory 4. Alternatively, the communication control unit 3 may externally receive and input image data of the construction drawing (image image data or encoded image data obtained by encoding the run length).

【0036】ステップ2において、メモリ4に格納した
入力画像データの水平及び垂直の線分方向を装置の水平
及び垂直の基準方向(X,Y方向)と一致させるよう
に、自動スキュー補正部5によって補正させる。これは
以後のステップ3,4の寸法情報認識処理における認識
精度を向上させるために行なう。この自動スキュー補正
は、従来から知られているいくつかの方法により行なえ
ばよいので、その内容の詳細な説明は省略する。
In step 2, the automatic skew correction unit 5 makes the horizontal and vertical line segment directions of the input image data stored in the memory 4 coincide with the horizontal and vertical reference directions (X, Y directions) of the apparatus. Correct it. This is performed in order to improve the recognition accuracy in the dimensional information recognition processing in the subsequent steps 3 and 4. Since this automatic skew correction may be performed by some conventionally known methods, detailed description of its contents will be omitted.

【0037】次にステップ3のサブルーチンに進み、自
動スキュー補正された画像データの全体を対象として、
寸法領域認識処理を実行する。この処理は、入力した建
設図面の画像データ中の寸法情報が存在する領域(「寸
法領域」という)を決定する処理であり、次のステップ
4での寸法補助線抽出処理と共に図1における寸法位置
認識部6によって行なうが、その詳細は後述する。
Next, the process proceeds to the subroutine of step 3, where the entire image data on which the automatic skew correction is performed is targeted.
Dimension area recognition processing is executed. This process is a process of determining an area (referred to as a "dimension area") in which the dimension information in the input construction drawing image data exists, and together with the dimension auxiliary line extraction processing in the next step 4, the dimension position in FIG. This is performed by the recognition unit 6, but the details will be described later.

【0038】この寸法領域認識処理が済んで寸法領域を
決定すると、ステップ4のサブルーチンに進んで、寸法
補助線抽出処理を実行する。この処理はステップ3の処
理で決定された各寸法領域ごとに、図7に示すようにそ
こに存在する寸法補助線のみを抽出する処理であり、そ
の詳細は後述する。
When the size area recognition process is completed and the size area is determined, the process proceeds to the subroutine of step 4 to execute the size auxiliary line extraction process. This processing is processing for extracting only the auxiliary dimension lines existing therein for each of the dimension areas determined in the processing of step 3 as shown in FIG. 7, and the details thereof will be described later.

【0039】全ての寸法領域の寸法線の認識が終了する
と、次にステップ5へ進んで、寸法リスト作成部7によ
って寸法の探索及び寸法リストの作成を行なう。すなわ
ち、図8に示すように1対の寸法補助線a−a間に存在
する寸法線bを探索する。この探索は、ステップ3で認
識された各寸法領域内を走査(スキャン)することによ
って、寸法補助線に直交する方向に連続する所定長さ以
上の黒ドット列を寸法線の候補とし、その両端が寸法補
助線に当接しているものを探索する。
When the recognition of the dimension lines of all the dimension areas is completed, the process proceeds to step 5 where the dimension list creating section 7 searches for dimensions and creates dimension lists. That is, as shown in FIG. 8, the dimension line b existing between the pair of dimension extension lines aa is searched. In this search, by scanning within each dimension area recognized in step 3, black dot rows having a predetermined length or more continuous in the direction orthogonal to the dimension extension line are candidates for the dimension line, and both ends thereof are determined. Search for those that are in contact with the extension line.

【0040】そして、その探索した寸法線とそれに対応
する2本の寸法補助線を組みにして寸法リストを作成す
る。この寸法リストには、後で認識する寸法数値の組み
合わせる。寸法線の探索を全て終了するまでこの処理を
繰り返し、終了するとステップ7へ進んで、寸法数値認
識部8によって寸法数値認識処理を行なう。この処理は
ステップ5で作成された寸法リストの各寸法線に対して
寸法数値を認識して寸法リストに加える処理であるが、
その詳細は図6によって後述する。
Then, a dimension list is created by combining the retrieved dimension line and two dimension extension lines corresponding thereto. This dimension list is combined with dimension numbers to be recognized later. This process is repeated until the search for the dimension line is completed, and when the process is completed, the process proceeds to step 7 where the dimension value recognition unit 8 performs dimension value recognition processing. This process is a process of recognizing the dimension numerical value for each dimension line of the dimension list created in step 5 and adding it to the dimension list.
The details will be described later with reference to FIG.

【0041】ステップ8で、認識結果の寸法数値を表示
部9に表示する、あるいは寸法線及び寸法補助線を含む
全ての寸法情報を表示してもよい。そして、ステップ9
で確定するか否か、すなわち操作入力部10の確定キー
が押された(マウスカーソルによる指示でもよい)かど
うかを判断し、確定すると判断すると、ステップ10へ
進んでそのときの認識結果を確定し、メモリ4の確定認
識結果格納領域に格納して処理を終了する。
In step 8, the dimensional numerical value of the recognition result may be displayed on the display unit 9 or all dimensional information including the dimensional line and the dimensional auxiliary line may be displayed. And step 9
To determine whether or not to confirm, that is, whether or not the confirmation key of the operation input unit 10 has been pressed (may be an instruction with a mouse cursor), and if it is determined to proceed, proceed to step 10 to confirm the recognition result at that time. Then, it is stored in the definite recognition result storage area of the memory 4 and the processing is terminated.

【0042】ステップ9で確定キーが押されない場合
は、ステップ11で認識結果を修正するか否か、すなわ
ち修正入力選択キーが押されたか(マウスカーソルによ
る指示でもよい)どうかを判断し、修正すると判断する
と、ステップ13で表示部9に入力した建設図面のイメ
ージ画像を含む修正入力用の画面を表示させる。そし
て、オペレータが操作入力部10によって修正データ
(寸法数値等)を修正データの入力(追加,訂正,削除
を含む)をすると、それをメモリ4に記憶し、ステップ
8でその修正結果を表示部9に表示する。修正を終了す
るまで、ステップ8,9,11,13,14,11の処
理を繰り返す。
If the confirm key is not pressed in step 9, it is determined in step 11 whether or not the recognition result is to be corrected, that is, whether the correction input selection key has been pressed (or the mouse cursor may be used), and the correction is made. If judged, the screen for correction input including the image image of the construction drawing input to the display unit 9 in step 13 is displayed. Then, when the operator inputs (including addition, correction and deletion) the correction data (including numerical values) into the memory 4 through the operation input unit 10, the correction data is stored in the memory 4, and the correction result is displayed in the display unit in step 8. Display on 9. The processing of steps 8, 9, 11, 13, 14, 11 is repeated until the correction is completed.

【0043】ステップ11で修正しないと判断した場合
には、ステップ12で再処理するか(再処理の指示がな
されたか)否かを判断し、再処理の指示がなされた場合
にはステップ3へ戻り、寸法領域認識処理からステップ
10又は14までの処理を繰り返す。ステップ12で再
処理の指示がなされなかった(終了の指示がなされる
か、何の指示もなされずに所定時間経過した)ときに
は、処理を終了する。
If it is determined in step 11 that the correction is not made, it is determined in step 12 whether or not to reprocess (whether a reprocessing instruction has been issued). If a reprocessing instruction has been issued, go to step 3. Then, the process from the dimension area recognition process to step 10 or 14 is repeated. When the reprocessing instruction is not given in step 12 (the end instruction is given or a predetermined time has passed without giving any instruction), the processing is ended.

【0044】なお、このフローチャートでは省略してい
るが、この確定した認識結果を図1における外部記憶装
置11の記憶媒体に格納したり、印刷装置12によって
紙に印刷したり、通信制御部3からホストコンピュータ
等に送信することもできる。
Although not shown in this flow chart, the confirmed recognition result is stored in the storage medium of the external storage device 11 in FIG. 1, printed on the paper by the printing device 12, or transmitted from the communication control unit 3. It can also be sent to a host computer or the like.

【0045】次に、この図5のステップ7における寸法
数値認識処理の詳細を、図6のフローチャートに従って
説明する。この処理を開始すると、寸法リストの寸法線
毎に、図9に示すように寸法線bの中央部の上側の領域
Uを切り出し、そこに文字の画像があるかどうかを走査
して調べる。文字画像があるか否かは、黒ドットが所定
密度で密集しているか否かで判断する。所定密度以下で
あればノイズ(ごみ)と判断する。
Next, details of the dimension numerical value recognition processing in step 7 of FIG. 5 will be described with reference to the flowchart of FIG. When this process is started, an area U above the center of the dimension line b is cut out for each dimension line in the dimension list as shown in FIG. 9, and it is checked by scanning whether or not there is a character image. Whether or not there is a character image is determined by whether or not black dots are densely arranged at a predetermined density. If the density is less than the predetermined density, it is determined as noise (dust).

【0046】文字画像がなければ、次に同じく図9に示
すように寸法線bの中央部の下側の領域Lを切り出し、
同様にそこに文字の画像があるかどうかを走査して調べ
る。そこにも文字画像がなければ、表示部9にエラーメ
ッセージを表示して処理を終了する。エラーメッセージ
の内容としては、「数値を認識できません。数値がある
かどうか原画像を確認して下さい。」等とする。実際に
数値があるが、認識できなかった場合には、前述した図
5のステップ14等で修正入力することができる。
If there is no character image, then the lower region L of the central portion of the dimension line b is cut out as shown in FIG.
Similarly, scan to see if there is an image of the character. If there is no character image there, an error message is displayed on the display unit 9 and the process ends. The content of the error message is "Unable to recognize the numerical value. Check the original image for the numerical value." If there is an actual numerical value but it cannot be recognized , it can be corrected and input in step 14 of FIG.

【0047】寸法線の上側の領域Uあるいは下側の領域
Lのいずれかに文字画像がある場合には、図10に示す
ように、そのあった方の側の寸法線bの近傍(予め設定
した幅)で1対の寸法補助線a−a間の領域Sに対して
OCRをかけて、文字列(文字コード)を認識する。
When there is a character image in either the area U above the dimension line or the area L below the dimension line, as shown in FIG. The width S) is applied to the area S between the pair of dimension extension lines aa by OCR to recognize the character string (character code).

【0048】その認識した文字列を数値に変換して寸法
リストの対応する寸法線の寸法数値としてストアする。
寸法リスト内の全ての寸法線の領域Sに対してOCRを
かけるまで、上述の処理を繰り返し、それを完了した
ら、図5のメインルーチンへリターンする。
The recognized character string is converted into a numerical value and stored as the numerical value of the corresponding dimension line in the dimension list.
The above-described processing is repeated until the OCR is applied to all the dimension lines S in the dimension list, and when the processing is completed, the process returns to the main routine of FIG.

【0049】次に、図5のメインルーチンにおけるステ
ップ3の寸法領域認識処理とステップ4の寸法補助線抽
出処理について説明する。まず、寸法領域認識処理のサ
ブルーチンのフローチャートを図11の左側の(a)に
示し、その各ステップの処理に関する説明図を右側の
(b)〜(f)に示す。図11の(b)は入力してスキ
ュー補正した建設図面の画像データ(建設図面データ)
を簡略化して示したものである。
Next, the dimension area recognition processing of step 3 and the dimension auxiliary line extraction processing of step 4 in the main routine of FIG. 5 will be described. First, a flow chart of a subroutine of the dimension area recognition processing is shown in (a) on the left side of FIG. 11, and explanatory diagrams regarding the processing of each step are shown in (b) to (f) on the right side. FIG. 11B shows the image data of the construction drawing that has been input and skew-corrected (construction drawing data).
Is shown in a simplified form.

【0050】この画像データに対して、まずステップ2
1で水平方向(X方向)の黒ドット数を1ドットライン
毎に計測して、水平方向ドット数計測配列データ、すな
わち図11の(c)に示すような図面全体の横方向のド
ットヒストグラムを作成する。なお、読み取った建設図
面がポジ図面(地の明度より図の明度が低い図面)の場
合には黒ドット数を計測し、ネガ図面(地の明度より図
の明度が高い図面)の場合には白ドット数を計測する。
For this image data, first step 2
In 1, the number of black dots in the horizontal direction (X direction) is measured for each dot line, and the horizontal dot number measurement array data, that is, the horizontal dot histogram of the entire drawing as shown in FIG. create. The number of black dots is measured when the read construction drawing is a positive drawing (a drawing whose brightness is lower than the brightness of the ground), and a negative drawing (a drawing whose brightness is higher than the brightness of the ground). Measure the number of white dots.

【0051】そして、ステップ22でその黒ドット数計
測配列から寸法領域の特徴が見られる部分を探索する。
そして、この特徴が見られる範囲を(d)に網点を施し
て示すように仮の寸法領域(水平方向)とする。
Then, in step 22, a portion in which the characteristic of the dimension area is seen is searched from the black dot number measurement array.
Then, the range in which this feature can be seen is defined as a provisional size region (horizontal direction) as shown by the dot in (d).

【0052】これらの処理について図12によってさら
に説明する。図12の(a)は寸法データの構成例を示
し、複数の引出線aと複数の寸法線b及び寸法文字cか
ら構成されている。引出線aの内側の先端は建物に接す
る場合と離れている場合があるが、外側の先端部寄りに
は、建物からある程度離れて、略一定の間隔で平行に複
数の寸法線bがあり、その線幅は細い。この寸法線は建
物の上側又は下側では水平方向に、右側又は左側では垂
直方向に延びている。図示の例は上側であり、水平方向
に延びている。
These processes will be further described with reference to FIG. FIG. 12A shows a configuration example of the dimension data, which is composed of a plurality of leader lines a, a plurality of dimension lines b, and dimension characters c. The inner tip of the leader line a may be in contact with the building or separated from it, but there is a plurality of dimension lines b in parallel to each other at a substantially constant distance from the building to the outer tip part side, The line width is thin. This dimension line extends horizontally on the upper or lower side of the building and vertically on the right or left side. The example shown is on the upper side and extends horizontally.

【0053】そのため、この寸法データの水平方向の黒
ドット数計測配列であるドットヒストグラムは、図12
の(b)に示すようになる。すなわち、Y方向の狭い範
囲に黒ドット数(黒ランの数)が非常に多いことを示す
長い線が集中した部分Bが、略一定の間隔で複数現われ
る。これは寸法線bによるものである。Aは引出線によ
る部分で黒ドット数が極めて少ないことを示す短い線が
Y方向に密接して垂直方向の太線のように現われる。C
は寸法文字による部分で、Bの部分の間に比較的短い線
が多数Y方向に隣接して現われる。
Therefore, the dot histogram which is the horizontal black dot number measurement array of this dimension data is shown in FIG.
(B). That is, a plurality of portions B in which long lines indicating that the number of black dots (the number of black runs) are very large appear in a narrow range in the Y direction appear at substantially constant intervals. This is due to the dimension line b. A is a leader line, and a short line indicating that the number of black dots is extremely small appears in close contact with the Y direction like a vertical thick line. C
Is a portion formed by a dimensional character, and a number of relatively short lines appear adjacent to each other in the Y direction between portions B.

【0054】これらが寸法領域の特徴である。そこで、
このドットヒストグラムをスキャンして、一番外側の長
い線状のBの部分から、一番内側のBの部分よりさらに
建物側に予め設定した一定幅dまでの幅Wの範囲を仮の
寸法領域とする。
These are the characteristics of the size domain. Therefore,
This dot histogram is scanned, and the range of width W from the outermost long linear portion B to a predetermined width d further preset to the building side than the innermost portion B is provisionally dimensioned. And

【0055】図11に戻って、次にステップ23で垂直
方向黒ドット数計測配列データ、すなわち図面全体の縦
方向のドットヒストグラムを作成する。そして、ステッ
プ24においてステップ22における水平方向の場合と
同様の処理で、黒ドット数計測配列から寸法領域の特徴
が見られる部分を探索し、その範囲を(e)に網点を施
して示すように仮の寸法領域(垂直方向)とする。
Returning to FIG. 11, next, in step 23, vertical black dot number measurement array data, that is, vertical dot histogram of the entire drawing is created. Then, in step 24, the same processing as in the horizontal direction in step 22 is performed to search for a portion in which the characteristic of the dimension area is seen from the black dot number measurement array, and the range is indicated by hatching in (e). To be a temporary dimension area (vertical direction).

【0056】そして、最後のステップ25で、垂直およ
び水平方向の仮の寸法領域を合成し、両領域が重なる部
分から外側の各領域は削除して、図11の(f)に網点
を施して示すような寸法領域を認識して決定する。この
例では、建物に対して上下左右に位置する4つの寸法領
域が存在している。この各寸法領域の4角の座標データ
をメモリに記憶しておく。その後図5のメインルーチン
へリターンする。
Then, in the final step 25, the vertical and horizontal tentative size regions are combined, each region outside the overlapping region is deleted, and halftone dots are applied to FIG. 11 (f). The dimensional area as shown by is recognized and determined. In this example, there are four dimension regions located above, below, to the left and to the right of the building. The coordinate data of the four corners of each size area is stored in the memory. After that, the process returns to the main routine of FIG.

【0057】次に、図5のステップ4における寸法補助
線抽出処理のサブルーチンのフローチャートを図13に
示し、これを図14乃至図16も参照して説明する。図
13に示す寸法補助線抽出処理を開始すると、まずステ
ップ31で先に認識した4つの寸法領域の座標データを
順番に読み込む。
Next, FIG. 13 shows a flowchart of a subroutine of the dimension auxiliary line extraction processing in step 4 of FIG. 5, which will be described with reference to FIGS. 14 to 16. When the dimension auxiliary line extraction processing shown in FIG. 13 is started, first, the coordinate data of the four dimension areas previously recognized in step 31 are read in order.

【0058】ステップ32で、その読み込んだ寸法領域
の建物に対する位置を判別する。その判別結果が左又は
右であればステップ33へ進み、その寸法領域内の画像
データによって水平方向黒ドット数計測配列データを作
成する。その判別結果が上又は下であればステップ34
へ進み、その寸法領域内の画像データによって垂直方向
黒ドット数計測配列データを作成する。
In step 32, the position of the read dimension area with respect to the building is determined. If the determination result is left or right, the process proceeds to step 33, and horizontal direction black dot number measurement array data is created from the image data in the dimension area. If the determination result is up or down, step 34
Then, the vertical black dot number measurement array data is created from the image data in the dimension area.

【0059】例えば、図14に示すように、画像データ
中の建物の画像20に対して左側の寸法領域21内の水
平方向黒ドット数計測配列データを作成すると、図15
に示すような黒ドット数計測配列(ドットヒストグラ
ム)が得られる。この黒ドット数計測配列は、各寸法補
助線のある位置で幅の狭いピークが現われる。
For example, as shown in FIG. 14, when the horizontal black dot number measurement array data in the dimension area 21 on the left side of the image 20 of the building in the image data is created, FIG.
A black dot number measurement array (dot histogram) as shown in FIG. In this black dot number measurement array, a narrow peak appears at the position where each dimension extension line is present.

【0060】そこでステップ35で、その黒ドット数計
測配列を走査して、黒ドット数がしきい値以上のライン
が連続する幅とその間の黒ドット数のピーク値を検出す
る。その走査方向は、水平方向黒ドット数計測配列に対
してはY方向(垂直方向)で、垂直方向黒ドット数計測
配列に対してはX方向(水平方向)である。
Therefore, in step 35, the black dot number measuring array is scanned to detect the width of a line in which the number of black dots is greater than or equal to the threshold value and the peak value of the number of black dots between them. The scanning direction is the Y direction (vertical direction) for the horizontal black dot number measurement array and the X direction (horizontal direction) for the vertical black dot number measurement array.

【0061】そして、例えば図16に示すように、水平
方向黒ドット数計測配列に対してY方向に走査して、黒
ドット数がしきい値以上のラインを検出するとそれが走
査方向に連続して検出される幅Dと、その間の黒ドット
数のピーク値(図示の例では2番目に検出されたライン
の黒ドット数)を検出して記憶する。
Then, for example, as shown in FIG. 16, scanning is performed in the Y direction with respect to the horizontal black dot number measurement array, and when a line having a black dot number equal to or larger than a threshold value is detected, it is continued in the scanning direction. The detected width D and the peak value of the number of black dots between them (the number of black dots in the second detected line in the illustrated example) are detected and stored.

【0062】幅Dを検出したとき、すなわち黒ドット数
がしきい値以上のラインを検出した後最初にそれを検出
できなくなった(黒ドット数がしきい値未満のラインを
走査した)時、及び1つの寸法領域の黒ドット数計測配
列に対する走査を終了した時にステップ36に進む。
When the width D is detected, that is, when the line where the number of black dots is equal to or larger than the threshold value is detected and the line cannot be detected first (the line where the number of black dots is smaller than the threshold value is scanned), And when the scanning for the black dot number measurement array in one size area is completed, the process proceeds to step 36.

【0063】そこでは黒ドット数がしきい値以上のライ
ンがあったか否かを判断し、あればステップ37へ進ん
で、ピークの高さに対して幅(図16に示すD)が十分
狭い(予め1/5以下,1/10以下のように設定して
おく)かどうかをチェックする。狭ければ寸法補助線と
判断して、ステップ38でそのX座標(X方向に走査し
た時)又はY座標(Y方向に走査した時)を、メモリ4
内の寸法補助線情報リストに加える。
Then, it is judged whether or not there is a line in which the number of black dots is equal to or larger than the threshold value, and if there is, the process proceeds to step 37 and the width (D shown in FIG. 16) is sufficiently narrow with respect to the height of the peak ( (1/5 or less, 1/10 or less in advance). If it is narrow, it is determined to be a dimension auxiliary line, and its X coordinate (when scanned in the X direction) or Y coordinate (when scanned in the Y direction) is stored in the memory 4 in step 38.
Add to the extension line information list in.

【0064】例えば、左右の寸法領域の場合は、図16
に示した幅(配列中の黒ドット数がしきい値以上のライ
ンが連続する範囲)Dの中点PのY方向走査位置を寸法
補助線のY座標とする。上下の寸法領域の場合は、同様
な幅Dの中点のX方向走査位置を寸法補助線のX座標と
する。
For example, in the case of the left and right dimension areas, FIG.
The Y-direction scanning position of the midpoint P of the width (range in which lines in which the number of black dots in the array is equal to or greater than the threshold value) shown in FIG. In the case of the upper and lower dimension regions, the X-direction scanning position of the similar midpoint of the width D is set as the X coordinate of the dimension extension line.

【0065】その後、図13のステップ39へ進んで、
1つの寸法領域の黒ドット数計測配列に対する走査を終
了したか否かを判断し、終了していなければステップ3
5へ戻って、以後の処理を繰り返す。走査を終了すると
ステップ40へ進み、全ての寸法領域に対する寸法補助
線抽出処理を終了したか否かを判断し、終了していなけ
ればステップ31に戻って、次の寸法領域の座標データ
を読み込み、上述の処理を繰り返す。
After that, the process proceeds to step 39 in FIG.
It is judged whether or not the scanning for the black dot number measurement array in one dimension area is completed, and if it is not completed, step 3
Returning to step 5, the subsequent processing is repeated. When the scan ends
In step 40, it is determined whether or not the dimension extension line extraction processing has been completed for all dimension areas. If not completed, the procedure returns to step 31, the coordinate data of the next dimension area is read, and the above-described processing is performed. repeat.

【0066】そして、建物に対して上下左右の全ての寸
法領域に対する寸法補助線抽出処理を終了すると、この
サブルーチンを抜けて図5のメインルーチンへリターン
する。この方法によれば、単純なアルゴリズムでほぼ1
00%の寸法線が指すポイントの座標を認識することが
できる。また、輪郭線抽出や細線化処理と比較して、処
理速度も速い。A3図面でも1秒以内で抽出可能であ
る。
When the dimension auxiliary line extraction processing for all the dimension areas above, below, left and right with respect to the building is completed, the process exits this subroutine and returns to the main routine of FIG. According to this method, it is almost 1 with a simple algorithm.
The coordinates of the point indicated by the 00% dimension line can be recognized. Further, the processing speed is higher than that of the contour line extraction and the thinning processing. Extraction is possible within 1 second even with A3 drawing.

【0067】さらに、ドットヒストグラムによる分析を
行なうため、ノイズやカスレにも強く、精度よく寸法補
助線の座標データを取得できる。また、図面が大きくな
ってもメモリ使用量は1次元的にしか増加しないので、
例えばA4図面で約6Kバイト、A0図面でも約24K
バイト程度で済む。
Further, since the dot histogram analysis is performed, it is resistant to noise and blurring, and the coordinate data of the dimension extension line can be acquired accurately. Also, since the memory usage only increases one-dimensionally even if the drawing becomes large,
For example, about 6K bytes for A4 drawings and about 24K for A0 drawings.
Only a part-time job is required.

【0068】ここで、実際の建築図面である家屋の間取
り図について、上述の寸法領域認識処理及び寸法補助線
抽出処理の具体例を、図17乃至図20によって説明す
る。図17は、家屋の間取り図を読み取ったイメージ画
像データである。このイメージ画像データに対して寸法
領域認識処理を行なうため、水平方向及び垂直方向の黒
ドット数を計数して、図17に(H)で示す水平方向の
黒ドット数計測配列データと、(V)で示す垂直方向の
黒ドット数計測配列データ(ドットヒストグラム)を作
成する。
Here, a concrete example of the above-mentioned dimension area recognition processing and dimension extension line extraction processing for a floor plan of a house which is an actual architectural drawing will be described with reference to FIGS. 17 to 20. FIG. 17 is image image data obtained by reading a floor plan of a house. In order to perform the dimension area recognition processing on this image image data, the number of black dots in the horizontal direction and the number of black dots in the vertical direction are counted, and horizontal black dot number measurement array data shown in (H) of FIG. () Creates vertical black dot number measurement array data (dot histogram).

【0069】この水平方向及び垂直方向の黒ドット数計
測配列データから、寸法領域の特徴が見られる部分を探
索して、図18におけるイメージ画像データに対して斜
線を施して示す寸法領域(寸法情報が存在する範囲)を
認識する。この例では、建物の画像に対して上下左右の
4個所に寸法領域が存在する。
From the horizontal and vertical black dot number measurement array data, a portion in which the characteristics of the dimension area can be seen is searched for, and the dimension area (dimension information indicated by hatching the image image data in FIG. 18 is indicated. (The range in which exists) is recognized. In this example, there are four dimension regions in the upper, lower, left and right sides of the image of the building.

【0070】このようにして決定した各寸法領域の画像
データについて、それぞれ寸法補助線の認識処理を行な
うため、図19に示すように、建物の左右の寸法領域内
の各画像データについては水平方向黒ドット数計測配列
データを作成し、建物の上下の寸法領域内の各画像デー
タについては垂直方向黒ドット数計測配列データを作成
する。
Since the dimension auxiliary lines are recognized for the image data of each dimension area determined in this way, as shown in FIG. 19, the image data in the dimension areas on the left and right of the building are horizontally aligned. Black dot number measurement array data is created, and vertical black dot number measurement array data is created for each image data in the upper and lower dimension areas of the building.

【0071】 そして、図20にその一つの寸法領域の垂
直方向黒ドット数計測配列を示すように、黒ドット数が
しきい値以上の黒ランがピークに対して十分狭い幅で存
在する各部分の中心点の座標をそれぞれ寸法補助線のX
座標(水平方向黒ドット数計測配列の場合はY座標)と
認識して、それぞれ寸法補助線情報リストに記憶する。
[0071] Then, as shown in a vertical black dots counting sequence of the one dimension region in FIG. 20, the portion where the number of black dots present in sufficient narrower than the black run thresholds the peak The coordinates of the center point of the
The coordinates (Y coordinate in the case of the horizontal black dot number measurement array) are recognized and stored in the dimension auxiliary line information list.

【0072】 図1における寸法数値認識部8の付加的機
能により、寸法リストに格納されている認識された寸法
数値と、その寸法線及び寸法補助線の位置データを利用
して近傍の他の寸法線に係る寸法数値を演算によって
めることもできる。寸法リストは、メモリ4の中に2本
の寸法補助線で得られる領域毎に作成される。寸法数値
の演算方法の例を図21によって説明する。
By the additional function of the dimensional numerical value recognizing unit 8 in FIG . 1, the recognized dimensional numerical values stored in the dimensional list and the other dimensional values in the vicinity are utilized by utilizing the position data of the dimensional lines and dimensional auxiliary lines. the dimension numbers according to the line can also result determined <br/> Mel that operation. The dimension list is created in the memory 4 for each area obtained by the two dimension extension lines. An example of a method of calculating the dimension value will be described with reference to FIG.

【0073】 はじめに、寸法線AとBに係る寸法数値
「1000」と「 1500」を認識し、その後それを
加算してして(1000+1500=2500)を寸法
線Cに係る寸法数値として算出する。さらに、寸法線C
に対する領域にもOCRを実施した後、演算結果と比較
して、寸法線Cに係る寸法数値を決定するようにしても
よい。OCRをすべて寸法線の領域に対して行なった
後、この演算方法で検算して、矛盾が生じる場合は、そ
の部分を表示した、操作者に確認させるようにすること
もできる。
[0073] First of all, the dimension values related to dimension lines A and B
Recognize "1000" and "1500", then
Add and measure (1000 + 1500 = 2500)
It is calculated as the dimensional numerical value related to the line C. Furthermore, the dimension line C
After performing OCR in the area for, compare with the calculation result
Then, even if the dimensional numerical value related to the dimension line C is determined
Good. OCR for all dimension areasDone
Later, if there is a contradiction when the calculation is performed using this calculation method,
Display the part of, and let the operator confirm
Can also.

【0074】 図22は認識した寸法数値の表示例を示
し、できるだけ原画像のイメージの近傍(上下左右)に
認識した寸法数値(枠で囲んで示す)表示させることに
より、比較を容易にすることができる。
FIG . 22 shows a display example of the recognized dimensional numerical values. The recognized dimensional numerical values (enclosed in a frame) are displayed as close to the image of the original image (upper, lower, left and right) as possible to facilitate comparison. You can

【0075】[0075]

【発明の効果】以上説明してきたように、この発明の図
面の寸法数値認識方法及び認識装置によれば、建設図面
等の寸法情報を有する図面の画像情報から、その重要な
情報である寸法数値を精度よく且つ迅速に自動認識でき
る。
As described above, according to the dimensional numerical value recognizing method and recognizing apparatus for drawings of the present invention, the dimensional numerical value which is important information from the image information of the drawing having the dimensional information such as the construction drawing is important. Can be automatically and accurately recognized.

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】図4[Correction target item name] Fig. 4

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【図4】寸法情報を有する建設図面の例を示す図であ
る。
FIG. 4 is a diagram showing an example of a construction drawing having dimensional information.

【手続補正3】[Procedure 3]

【補正対象書類名】図面[Document name to be amended] Drawing

【補正対象項目名】図2[Correction target item name] Figure 2

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【図2】 [Fig. 2]

【手続補正4】[Procedure amendment 4]

【補正対象書類名】図面[Document name to be amended] Drawing

【補正対象項目名】図3[Correction target item name] Figure 3

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【図3】 [Figure 3]

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 15/60 606F 680B ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 15/60 606F 680B

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 寸法補助線,寸法線,及び寸法数値から
なる寸法情報を有する図面の画像情報を入力し、入力し
た画像情報内の各寸法補助線を抽出し、その抽出した寸
法補助線間に存在する寸法線を探索し、探索できた寸法
線に対してどちら側の領域に文字があるかを探索し、文
字があると判断した側の寸法線の近傍で寸法線間の領域
に対して文字認識処理を行なって寸法数値を認識するこ
とを特徴とする図面の寸法数値認識方法。
1. Inputting image information of a drawing having dimension information including dimension extension lines, dimension lines, and dimension numerical values, extracting each dimension extension line in the input image information, and between the extracted dimension extension lines. Search for the dimension line existing in, and search for the area on the side where there is a character with respect to the dimension line that can be searched, and for the area between the dimension lines near the dimension line on the side where it is determined that there is a character A method for recognizing dimensional numerical values in a drawing, characterized in that dimensional numerical values are recognized by performing character recognition processing.
【請求項2】 寸法補助線,寸法線,及び寸法数値から
なる寸法情報を有する図面の画像情報を入力する画像情
報入力手段と、入力された画像情報の内の各寸法補助線
を抽出する手段と、該手段によって抽出された寸法線間
に存在する寸法線を探索する手段と、探索できた寸法線
に対してどちら側の領域に文字があるかを探索する手段
と、該手段によって文字があると判断した側の寸法線の
近傍で寸法補助線間の領域に対して文字認識処理を行な
って寸法数値を認識する手段とを備えたことを特徴とす
る図面の寸法数値認識装置。
2. Image information input means for inputting image information of a drawing having dimension information consisting of dimension extension lines, dimension lines, and dimension numerical values, and means for extracting each dimension extension line from the input image information. A means for searching for a dimension line existing between the dimension lines extracted by the means, a means for searching which side of the dimension line can be searched for the character, and the means for character A dimensional numerical value recognizing device for a drawing, comprising means for recognizing a dimensional numerical value by performing character recognition processing on a region between auxiliary dimension lines in the vicinity of a dimensional line judged to be present.
【請求項3】 請求項2に記載の図面の寸法数値認識装
置において、探索できた寸法線のデータと、その寸法線
に対応する2本の寸法補助線のデータと、該寸法線に関
して認識した寸法数値とをひとまとめにした寸法リスト
を寸法線の数分作成する寸法リスト作成手段を設けたこ
とを特徴とする図面の寸法数値認識装置。
3. The dimension numerical value recognizing device for a drawing according to claim 2, wherein the data of the dimension line that can be searched, the data of two dimension auxiliary lines corresponding to the dimension line, and the dimension line are recognized. A dimension numerical value recognizing device for a drawing, which is provided with a dimension list creating means for creating a dimension list including the dimension numerical values as many as the number of dimension lines.
【請求項4】 請求項3に記載の図面の寸法数値認識装
置において、前記寸法リスト作成手段によって作成され
た寸法リストの情報に基づいて、既に認識した寸法数値
から近傍の他の寸法線に係る寸法数値を演算する演算手
段を設けたことを特徴とする寸法数値認識手段。
4. A dimension numerical value recognizing device for a drawing according to claim 3, wherein the dimension numerical value already recognized is related to other dimension lines in the vicinity based on the information of the dimension list created by the dimension list creating means. A dimensional numerical value recognizing means provided with a calculating means for calculating a dimensional numerical value.
【請求項5】 前記画像情報入力手段が、前記図面の画
像を読み取ってそのイメージ画像情報を入力する画像読
取手段である請求項2乃至4のいずれか一項に記載の図
面の寸法数値認識装置。
5. The dimensional numerical value recognition device for a drawing according to claim 2, wherein the image information input means is an image reading means for reading an image of the drawing and inputting the image information of the image. .
【請求項6】 前記画像情報入力手段が、前記図面の画
像情報を通信により受信して入力する画像情報受信手段
である請求項2乃至4のいずれか一項に記載の図面の寸
法数値認識装置。
6. The dimensional numerical value recognizing device for a drawing according to claim 2, wherein the image information input means is an image information receiving means for receiving and inputting image information of the drawing by communication. .
【請求項7】 請求項1乃至6のいずれか一項に記載の
図面の寸法数値認識装置において、認識した寸法数値を
入力した画像情報のイメージと同時に表示する表示手段
を設けたことを特徴とする図面の寸法数値認識装置。
7. The dimensional numerical value recognizing device according to claim 1, further comprising display means for displaying the recognized dimensional numerical value at the same time as the image of the input image information. A numerical value recognition device for drawings.
【請求項8】 請求項7に記載の図面の寸法数値認識装
置において、前記表示手段に表示した認識した寸法数値
を外部からの指示により確定する認識結果確認手段を設
けたことを特徴とする図面の寸法数値認識装置。
8. The dimension numerical value recognizing device according to claim 7, further comprising a recognition result confirmation means for confirming the recognized dimension numerical value displayed on the display means by an external instruction. Dimensional number recognition device.
JP28541895A 1995-11-01 1995-11-01 Method and apparatus for recognizing dimensions of drawings Expired - Lifetime JP3571128B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28541895A JP3571128B2 (en) 1995-11-01 1995-11-01 Method and apparatus for recognizing dimensions of drawings

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28541895A JP3571128B2 (en) 1995-11-01 1995-11-01 Method and apparatus for recognizing dimensions of drawings

Publications (2)

Publication Number Publication Date
JPH09128429A true JPH09128429A (en) 1997-05-16
JP3571128B2 JP3571128B2 (en) 2004-09-29

Family

ID=17691269

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28541895A Expired - Lifetime JP3571128B2 (en) 1995-11-01 1995-11-01 Method and apparatus for recognizing dimensions of drawings

Country Status (1)

Country Link
JP (1) JP3571128B2 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004515828A (en) * 2000-04-18 2004-05-27 マイケル シー スケッティン Method and apparatus for structural layout
US7302443B2 (en) 2002-03-26 2007-11-27 Honda Giken Kogyo Kabushiki Kaisha Parts list system which generates and manages a parts list simply and effectively
US7526441B2 (en) 2002-03-25 2009-04-28 Honda Giken Kogyo Kabushiki Kaisha Parts list system used for part number management and method for preparing the same
CN111860513A (en) * 2019-04-25 2020-10-30 国际商业机器公司 Optical character recognition support system
JP2020184267A (en) * 2019-05-09 2020-11-12 福井コンピュータホールディングス株式会社 Three-dimensional cad device and three-dimensional cad program
WO2020241567A1 (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 System for assisting with installation of air conditioner
JP2020194353A (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 Arrangement presentation system for air conditioner
JP2020194352A (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 Air conditioner necessity determination system
WO2023171664A1 (en) * 2022-03-08 2023-09-14 キャディ株式会社 Device for managing drawing data including raster data, method, and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5821994B2 (en) 2014-04-21 2015-11-24 富士ゼロックス株式会社 Image processing apparatus, image forming apparatus, and program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004515828A (en) * 2000-04-18 2004-05-27 マイケル シー スケッティン Method and apparatus for structural layout
US7526441B2 (en) 2002-03-25 2009-04-28 Honda Giken Kogyo Kabushiki Kaisha Parts list system used for part number management and method for preparing the same
US7302443B2 (en) 2002-03-26 2007-11-27 Honda Giken Kogyo Kabushiki Kaisha Parts list system which generates and manages a parts list simply and effectively
CN111860513A (en) * 2019-04-25 2020-10-30 国际商业机器公司 Optical character recognition support system
JP2020184267A (en) * 2019-05-09 2020-11-12 福井コンピュータホールディングス株式会社 Three-dimensional cad device and three-dimensional cad program
WO2020241567A1 (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 System for assisting with installation of air conditioner
JP2020194353A (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 Arrangement presentation system for air conditioner
JP2020194352A (en) * 2019-05-28 2020-12-03 ダイキン工業株式会社 Air conditioner necessity determination system
WO2023171664A1 (en) * 2022-03-08 2023-09-14 キャディ株式会社 Device for managing drawing data including raster data, method, and storage medium

Also Published As

Publication number Publication date
JP3571128B2 (en) 2004-09-29

Similar Documents

Publication Publication Date Title
US5416849A (en) Data processing system and method for field extraction of scanned images of document forms
JP3805005B2 (en) Image processing apparatus, optical character recognition apparatus, and methods thereof
JPH08190604A (en) Method and apparatus for generation of hybrid data structurefor display of raster image
JPH11143986A (en) Processing method and processor of bit map image and storage medium storing image processing program to process bit map image
JPH09128429A (en) Method for recognizing dimensional numerical value and its device
JP3516541B2 (en) Method and apparatus for recognizing dimension information of construction drawings
JP3516540B2 (en) Construction drawing recognition method and recognition device
JP3607433B2 (en) Method and apparatus for extracting electrical symbols from construction drawings
JP3516502B2 (en) Construction drawing recognition method and recognition device
JP3658468B2 (en) Architectural drawing recognition method and recognition device
JP3678523B2 (en) Construction drawing recognition method and construction drawing recognition apparatus
JP3648006B2 (en) Toilet recognition method and construction drawing recognition device from construction drawings
JP3595393B2 (en) Construction drawing recognition method and recognition device
JP3679241B2 (en) Construction drawing recognition method and recognition apparatus
JP3961595B2 (en) Architectural drawing recognition method and recognition device
JP2686479B2 (en) Graphic identification code input device
JP3645404B2 (en) Method and apparatus for recognizing door from architectural drawing
JP3678521B2 (en) Construction drawing recognition method and recognition apparatus
JP3686214B2 (en) Construction drawing recognition method and recognition apparatus
JP3545481B2 (en) Image recognition method and apparatus
JP3595394B2 (en) Drawing recognition method and apparatus
JPH11259550A (en) Construction drawing recognition method and recognition device and computer readable recording medium recording program therefor
JP2002157550A (en) Device and method for recognizing character and recording medium
JPH0434655A (en) Drawing reader
JP2000187730A (en) Method and device for processing picture data of construction drawing and computer readable recording medium storing control program for the method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040513

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040608

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040623

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

Free format text: PAYMENT UNTIL: 20070702

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080702

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080702

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090702

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100702

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110702

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120702

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120702

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 9

EXPY Cancellation because of completion of term