JPH09128425A - Method and device for recognizing construction drawing - Google Patents

Method and device for recognizing construction drawing

Info

Publication number
JPH09128425A
JPH09128425A JP7282260A JP28226095A JPH09128425A JP H09128425 A JPH09128425 A JP H09128425A JP 7282260 A JP7282260 A JP 7282260A JP 28226095 A JP28226095 A JP 28226095A JP H09128425 A JPH09128425 A JP H09128425A
Authority
JP
Japan
Prior art keywords
image data
image
construction drawing
wall
contour
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
JP7282260A
Other languages
Japanese (ja)
Other versions
JP3595393B2 (en
Inventor
Takayuki Nishimura
隆之 西村
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 JP28226095A priority Critical patent/JP3595393B2/en
Publication of JPH09128425A publication Critical patent/JPH09128425A/en
Application granted granted Critical
Publication of JP3595393B2 publication Critical patent/JP3595393B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately and automatically recognize outline, skeleton, and especially wall which are important information in order to know the room arrangement from a handwritten construction drawing. SOLUTION: The outline of a part consisting of the black or white dots of image picture data obtained by reading the picture of the handwritten construction drawing is extended to measure the number of horizontal and that of vertical black or white dots to prepare horizontal and vertical dot numbers measuring and arranging data. Further, based on the prepared both-direction dot numbers measuring and arranging data, the outline and the skeleton of the construction drawing are recognized. In addition, the limiting of the recognizing object area so as to be subdivided based on the recognized outline and skeleton to prepare the black or white dot numbers measuring and arranging data again, and the recognition of the outline and the skeleton for each of the limited ranges, are repeated until an outline or skeleton is no longer newly recognized.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、建築・設備業等の建
設業界で広く使用されている建設図面の認識方法及びそ
の認識装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a construction drawing recognizing method and a recognizing apparatus therefor, which are widely used in the construction industry such as building and equipment industries.

【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 an extension or renovation of a house is performed, it is often the case that there are only old construction drawings drawn on paper, and it is necessary to redraw the entire floor plan including the portions that do not change the floor plans and the like.

【0003】そこで、紙に描かれた建設図面を読み取っ
て、コンピュータで処理できるデータとして認識して記
憶させることも試みられているが、そのための特別な方
法や装置はなく、建設図面をイメージスキャナで読み取
り、そのイメージ画像データをパーソナルコンピュータ
等に入力させて、一般の図形認識機能を利用して線分認
識やパターン認識を行なっている。あるいはさらに、高
機能の図形エディタを補助に使うことによって図形認識
機能をレベルアップし、自動認識機能が多少不完全な場
合でも、例えばラスタ・ベクタ変換することにより直線
や円弧等の基本線図を自動認識できるようにしたものも
ある。
Therefore, it has been attempted to read a construction drawing drawn on paper and recognize and store it as data that can be processed by a computer, but there is no special method or device for that purpose, and the construction drawing is scanned by an image scanner. Then, the image data is read into a personal computer or the like, and line segment recognition or pattern recognition is 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]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の図面認識装置は、高度の操作知識等を必要と
し、パソコンなどを使い慣れている人や専門のオペレー
タに利用が限定され、建設図面を頻繁に使用する業界関
係者にとって、決して使い勝手のよいものであるとはい
えなかった。
However, such a conventional drawing recognition apparatus requires a high degree of operation knowledge and is limited in usage to those who are familiar with a personal computer or the like and specialized operators. It was never easy to use for the industry people who frequently use it.

【0005】また、直線や円弧等の基本線図は自動認識
することができるが、基本線図の組み合わせ等からなる
建設図面特有の図形シンボル(例えば、壁や柱等)を個
別に認識をすることはできなかった。そのため、認識し
た図面を修正する際には線分毎に行なわなければなら
ず、多くの手間を要していた。
Although a basic diagram such as a straight line or an arc can be automatically recognized, a graphic symbol (for example, a wall or a pillar) peculiar to a construction drawing, which is a combination of the basic diagrams, is individually recognized. I couldn't do that. Therefore, when the recognized drawing is corrected, it must be performed for each line segment, which requires much labor.

【0006】さらに、建設業において使用される家屋や
ビル等の建設図面は、その図面上の各線分が人間の目に
は同じ大きさの連続線として見えても、厳密に見れば太
さも一様でなく、軌跡もゆらいでいる。また、連続線の
はずであっても所々切れている場合もある。これらの不
完全さは作図時のみならず、用紙の経年変化や読み取り
時の誤差などからも生じるものである。そのため、例え
ば線分として認識できる太さの限界があまり細いと、わ
ずかなかすれでも線分が切れていると認識してしまう。
また太めの線分を長方形のように認識してしまうことも
ある。
Further, the construction drawings of houses and buildings used in the construction industry have a single thickness even if each line segment on the drawing appears to the human eye as a continuous line of the same size. The trajectory is fluctuating as well. In addition, even if it should be a continuous line, it may be broken in some places. These imperfections occur not only at the time of drawing, but also due to aging of paper, errors in reading, and the like. Therefore, for example, if the limit of the thickness that can be recognized as a line segment is too small, it is recognized that the line segment is broken even with a slight blur.
Also, thick line segments may be recognized as rectangles.

【0007】これは、原図の品質は勿論であるが、感光
紙を使用したいわゆる青焼き図面のようにコントラスト
が低い(黒と白の境界がはっきりしない)図面が多く、
さらにその青焼きの特徴である細かな点が表面に現れる
ため、従来の図面認識装置では精度の高い自動認識をす
ることは困難であり、その修正に多くの手間を要するの
で殆ど実用にならなかった。
[0007] This is of course not only the quality of the original drawing, but also many drawings with low contrast (the boundary between black and white is not clear) like a so-called blueprint using photosensitive paper.
Furthermore, since the fine points characteristic of the blue printing appear on the surface, it is difficult to perform highly accurate automatic recognition with a conventional drawing recognition device, and the correction requires a lot of trouble, so that it is hardly practical. Was.

【0008】ところで、家屋の建設図面(建築図面)で
は間取りを仕切る壁が図面の中心的役割を果たし、図面
中のどの部分が壁であるかを認識することによって、建
設図面のおおよその間取りを理解することができる。従
って、図面中の壁の位置及びその長さを認識すること
は、建設図面を認識する上で最も重要な事項である。
By the way, in a construction drawing (architectural drawing) of a house, a partition wall plays a central role in the drawing, and by recognizing which part in the drawing is the wall, the floor plan of the construction drawing can be roughly estimated. I can understand. Therefore, recognizing the position and length of the wall in the drawing is the most important matter in recognizing the construction drawing.

【0009】さらに、建設図面の大半は、水平及び垂直
の壁で仕切られた間取図になっている。この建設図面を
手書きで表現すると、1つの壁や仕切りは1本の水平又
は垂直線に近い線で記述されることが多い。従って、手
書きの建設図面を認識するとき、水平線と垂直線を確実
に認識できるか否かが重要な鍵になる。
[0009] Furthermore, most construction drawings are floor plans separated by horizontal and vertical walls. When this construction drawing is expressed by hand, one wall or partition is often described by a line close to one horizontal or vertical line. Therefore, when recognizing a handwritten construction drawing, whether or not the horizontal line and the vertical line can be reliably recognized is an important key.

【0010】しかし、従来の直線の認識では次のような
問題があった。 (1)輪郭線追跡方法では、カスレや凹凸が多いと途切
れた直線として認識され、あるいは2本や3本に分かれ
た直線として認識されてしまって正確に認識できなかっ
た。 (2)黒ドットの度数分布から求める射影特徴抽出方法
では、線が細いと水平及び垂直方向の直線を見つけ出す
とき、線が少しでも傾いていると特徴抽出ができなくな
ってしまい、直線らしい線の認識ができなくなってい
た。
However, the conventional straight line recognition has the following problems. (1) In the contour tracking method, if there are many scratches or irregularities, it is recognized as a broken straight line, or it is recognized as a straight line divided into two or three lines, and cannot be recognized accurately. (2) In the projected feature extraction method obtained from the frequency distribution of black dots, when a straight line in the horizontal and vertical directions is found when the line is thin, if the line is slightly inclined, the feature cannot be extracted. I could not recognize it.

【0011】この発明は上記の点に鑑みてなされたもの
であり、手書きにより線が途切れたり多少傾いた直線で
紙に描かれた建設図面を読み取ったイメージ画像デー
タ、あるいはそのランレングスを符号化した符号化画像
データから、その建設図面の間取りを知る上で重要な情
報である輪郭や骨格、特に壁を精度よく自動認識できる
ようにすることを目的とする。
The present invention has been made in view of the above points, and encodes image image data obtained by reading a construction drawing drawn on paper with a straight line that is broken or slightly inclined by handwriting, or its run length. An object of the present invention is to enable automatic and accurate recognition of contours and skeletons, especially walls, which is important information for knowing the floor plan of the construction drawing, from the encoded image data.

【0012】[0012]

【課題を解決するための手段】この発明は上記の目的を
達成するため、次のような建設図面認識方法及び建設図
面認識装置を提供する。この発明による建設図面認識方
法は、建設図面の画像を読み取ったイメージ画像データ
の黒又は白ドットからなる部分の輪郭を拡張し、その輪
郭を拡張したイメージ画像データの水平方向及び垂直方
向の黒又は白ドット数を計測して水平及び垂直方向のド
ット数計測配列データを作成し、その作成した両方向の
ドット数計測配列データに基づいて建設図面の輪郭及び
骨格を認識することを特徴とする。
In order to achieve the above object, the present invention provides the following construction drawing recognition method and construction drawing recognition apparatus. A construction drawing recognition method according to the present invention extends a contour of a portion consisting of black or white dots of image image data obtained by reading an image of a construction drawing, and extends the contour in the horizontal and vertical directions of black or white in the image image data. The number of white dots is measured to create dot number measurement array data in the horizontal and vertical directions, and the outline and skeleton of the construction drawing are recognized based on the created dot number measurement array data in both directions.

【0013】さらに、上記のようにして作成した水平及
び垂直方向のドット数計測配列データに基づいて建設図
面の輪郭及び骨格を認識した後、その認識した輪郭及び
骨格に基づいて限定した範囲毎に上記イメージ画像デー
タの水平方向及び垂直方向の黒又は白ドット数を計測し
て再度水平及び垂直方向のドット数計測配列データを作
成し、その作成した両方向のドット数計測配列データに
基づいて上記限定した各範囲内の建設図面の輪郭及び骨
格を認識することを、新たな輪郭又は骨格を認識できな
くなるまで繰り返すようにするとよい。
Further, after recognizing the outline and skeleton of the construction drawing based on the horizontal and vertical direction dot number measurement array data created as described above, the range and the range limited based on the recognized outline and skeleton are recognized. The number of black or white dots in the horizontal and vertical directions of the image image data is measured, and the dot number measurement array data in the horizontal and vertical directions are created again. Based on the created dot number measurement array data in both directions, the above limitation is applied. The recognition of the outline and the skeleton of the construction drawing within each range may be repeated until the new outline or the skeleton cannot be recognized.

【0014】また、この発明による建設図面認識装置
は、建設図面の画像を読み取ったイメージ画像データを
入力する画像データ入力手段と、該手段によって入力し
たイメージ画像データの黒又は白ドットからなる部分の
輪郭を拡張する拡張手段と、該手段によって輪郭を拡張
したイメージ画像データの水平方向及び垂直方向の黒又
は白ドット数を計測して水平及び垂直方向のドット数計
測配列データを作成するドット数計測配列データ作成手
段と、該手段により作成された両方向のドット数計測配
列データに基づいて建設図面の輪郭及び骨格を認識する
輪郭・骨格認識手段とを設けたものである。上記画像デ
ータ入力手段は、建設図面の画像を読み取ってそのイメ
ージ画像データを入力する画像読取手段であるとよい。
Further, the construction drawing recognition apparatus according to the present invention comprises an image data input means for inputting image image data obtained by reading an image of a construction drawing, and a portion consisting of black or white dots of the image image data input by the means. Expansion means for expanding the contour, and dot number measurement for measuring the number of black or white dots in the horizontal and vertical directions of the image image data whose contour is expanded by the means to create dot number measurement array data in the horizontal and vertical directions Arrangement data creating means and contour / skeleton recognizing means for recognizing the contour and skeleton of the construction drawing based on the dot number measurement arrangement data in both directions created by the means are provided. The image data input means may be an image reading means for reading an image of a construction drawing and inputting the image data.

【0015】あるいはまた、上記画像データ入力手段
を、建設図面の画像を読み取ったイメージ画像データの
ランレングスを符号化した符号化画像データを入力する
ものとして、ドット数計測配列データ作成手段が、その
入力した符号化画像データから元のイメージ画像データ
黒又は白ドットからなる部分の輪郭を拡張する拡張手段
と、その手段によって輪郭を拡張したイメージ画像デー
タの水平方向及び垂直方向の黒又は白ドット数を計測し
て水平及び垂直方向のドット数計測配列データを作成す
るように構成してもよい。その場合の画像データ入力手
段は、上記符号化画像データを通信により受信して入力
する画像データ受信手段であってもよい。
Alternatively, the image data input means inputs the encoded image data obtained by encoding the run length of the image image data obtained by reading the image of the construction drawing, and the dot number measurement array data creating means outputs the encoded image data. Original image image data from the input coded image data. Expanding means for expanding the contour of a portion consisting of black or white dots, and the number of black or white dots in the horizontal and vertical directions of the image image data whose contour is expanded by the means. May be measured to generate dot number measurement array data in the horizontal and vertical directions. In this case, the image data input means may be image data receiving means for receiving and inputting the encoded image data by communication.

【0016】さらに、これらの建設図面認識装置におい
て、上記輪郭・骨格認識手段によって認識された輪郭及
び骨格に基づいて上記イメージ画像データの範囲を限定
し、その各範囲毎に上記ドット数計測配列データ作成手
段によって再度水平及び垂直方向のドット数計測配列デ
ータを作成させ、その作成した両方向のドット数計測配
列データに基づいて上記輪郭・骨格認識手段に各限定し
た範囲内の建設図面の輪郭及び骨格を認識させること
を、新たな輪郭又は骨格を認識できなくなるまで繰り返
す手段を設けるとよい。
Further, in these construction drawing recognition devices, the range of the image data is limited based on the contour and the skeleton recognized by the contour / skeleton recognizing means, and the dot number measurement array data is set for each range. The creation means again creates the dot number measurement array data in the horizontal and vertical directions, and based on the created dot number measurement array data in both directions, the contour / skeleton of the construction drawing within each limited range to the contour / skeleton recognition means. It is advisable to provide a means for repeating the recognition of (1) until the new contour or skeleton cannot be recognized.

【0017】これらの建設図面認識装置に、上記輪郭・
骨格認識手段により認識した結果を表示する表示手段を
設けるとよい。その表示手段は、上記画像データ入力手
段により入力したイメージ画像データを上記認識結果と
同時に表示する手段を有するのが望ましい。さらにその
同時に表示する手段が、上記イメージ画像データと認識
結果とを重ね合わせて表示する手段であるとよい。
In these construction drawing recognition devices,
Display means for displaying the result recognized by the skeleton recognition means may be provided. The display means preferably has means for displaying the image data input by the image data input means simultaneously with the recognition result. The means for simultaneously displaying the image data and the recognition result may be a means for superimposing and displaying the image image data and the recognition result.

【0018】あるいは、上記画像データ入力手段により
入力したイメージ画像データと上記認識結果とを選択的
に表示するように表示内容を変更する表示選定手段を設
けてもよい。また、上記認識結果を操作者が確認して、
その認識結果を外部からの指示によって確定する認識結
果確認手段を設けるのが望ましい。
Alternatively, there may be provided display selection means for changing display contents so as to selectively display the image image data input by the image data input means and the recognition result. Also, the operator confirms the above recognition result,
It is desirable to provide a recognition result confirmation means for confirming the recognition result by an instruction from the outside.

【0019】この発明による建設図面認識方法によれ
ば、建設図面の黒又は白ドットからなる部分の輪郭を拡
張し、その輪郭を拡張したイメージ画像データから、そ
の水平方向及び垂直方向の黒又は白ドット数を計測して
水平及び垂直方向のドット数計測配列データ(ヒストグ
ラム)を作成し、その両方向のドット数計測配列データ
に基づいて建設図面の輪郭及び骨格を認識するので、手
書き図面や青焼きなどの比較的コントラストが低い図面
や、ノイズの多い図面あるいは古い建設図面など、線が
途中で途切れていたり多少傾いている状態で記載された
建設図面や画質の悪い建設図面でも、かなり精度よくそ
の輪郭及び骨格を認識することができる。
According to the method for recognizing a construction drawing according to the present invention, the contour of a portion consisting of black or white dots in the construction drawing is expanded, and from the image image data whose contour is expanded, black or white in the horizontal and vertical directions is obtained. The number of dots is measured to create horizontal and vertical direction dot number measurement array data (histogram), and the outline and skeleton of the construction drawing are recognized based on the dot number measurement array data in both directions. For example, a drawing with a relatively low contrast, a drawing with a lot of noise, an old construction drawing, or a construction drawing with lines broken or slightly inclined, or a construction drawing with poor image quality, can be The outline and skeleton can be recognized.

【0020】さらに、この方法で認識した輪郭及び骨格
に基づいて、その認識対象とする範囲を限定し、その範
囲毎に建設図面のイメージ画像データの水平方向及び垂
直方向の黒又は白ドット数を計測して再度水平及び垂直
方向のドット数計測配列データを作成し、その両方向の
ドット数計測配列データに基づいて上記限定した各範囲
内の建設図面の輪郭及び骨格を認識することを、新たな
輪郭又は骨格を認識できなくなるまで繰り返すようにす
れば、短い壁等の骨格をも確実に認識でき、且つ実際に
は存在しない部分の輪郭や骨格を誤認識する恐れもなく
なる。
Further, based on the contour and skeleton recognized by this method, the range to be recognized is limited, and the number of black or white dots in the horizontal and vertical directions of the image image data of the construction drawing is limited for each range. It is necessary to measure and re-create the horizontal and vertical dot number measurement array data, and to recognize the outline and skeleton of the construction drawing within each limited range based on the dot number measurement array data in both directions. By repeating the process until the contour or the skeleton cannot be recognized, the skeleton such as a short wall can be surely recognized, and the contour or the skeleton of a portion that does not actually exist can be erroneously recognized.

【0021】また、この発明による建設図面認識装置に
よれば、上記建設図面認識方法を容易に実施することが
でき、線が途中で途切れていたり多少傾いている状態で
記載された建設図面や比較的画質の悪い建設図面から
も、その壁等の輪郭及び骨格を精度よく自動的に認識し
てその認識データを得ることができ、それをパソコンな
どに取り込んで利用すれば、増改築の際の間取り図など
の建設図面を容易且つ迅速に作成することが可能にな
る。
Further, according to the construction drawing recognition apparatus of the present invention, the above construction drawing recognition method can be easily implemented, and the construction drawings and the comparisons in which the lines are discontinuous or slightly inclined are described. It is possible to accurately and automatically recognize the contours and skeletons of walls, etc. even from construction drawings with poor image quality, and obtain the recognition data. Construction drawings such as floor plans can be easily and quickly created.

【0022】建設図面の画像を読み取ったイメージ画像
データのランレングスを符号化した符号化画像データを
入力し、符号化画像データから元のイメージ画像データ
の黒又は白ドットからなる部分の輪郭を拡張し、その輪
郭を拡張したイメージ画像データの水平方向及び垂直方
向の黒又は白ドット数を計測して水平及び垂直方向のド
ット数計測配列データを作成することもでき、それによ
って画像データのデータ量を圧縮できるので、それを記
憶するメモリの容量を小さくできる。また、外部からフ
ァクシミリ機能などによって建設図面の画像データを受
信して認識処理を行なうことも容易になる。
The encoded image data obtained by encoding the run length of the image image data obtained by reading the image of the construction drawing is input, and the outline of the portion consisting of black or white dots of the original image image data is expanded from the encoded image data. However, it is also possible to create horizontal and vertical dot number measurement array data by measuring the number of black or white dots in the horizontal and vertical directions of the image image data whose contour has been expanded, and thereby the data amount of the image data. Can be compressed, so the memory capacity for storing it can be reduced. Further, it becomes easy to receive the image data of the construction drawing from the outside by a facsimile function or the like and perform the recognition processing.

【0023】輪郭・骨格認識手段により認識した結果を
表示手段が表示することにより、その認識結果を確認す
ることができる。その場合、拡張手段により輪郭を拡張
したイメージ画像データを認識結果と同時に表示するこ
とにより、誤認識箇所や認識できなかった部分を見つけ
ることができる。その際、上記イメージ画像データと認
識結果とを重ね合わせて表示すれば、誤認識箇所や認識
できなかった部分の発見及びその修正が一層容易にな
る。
The recognition result can be confirmed by displaying the result recognized by the contour / skeleton recognition means on the display means. In this case, by displaying the image image data whose contour has been expanded by the expansion means at the same time as the recognition result, it is possible to find an erroneously recognized part or a part that could not be recognized. At this time, if the image image data and the recognition result are displayed in an overlapping manner, it becomes easier to find and correct the erroneously recognized portion or the unrecognized portion.

【0024】あるいは、建設図面の輪郭を拡張したイメ
ージ画像データとその認識結果とを選択的に表示させ
て、その表示内容を比較検討することもできる。そし
て、その認識結果を操作者が確認して確定することもで
きる。
Alternatively, it is also possible to selectively display the image image data in which the outline of the construction drawing is expanded and the recognition result, and compare and examine the display contents. Then, the operator can confirm and confirm the recognition result.

【0025】[0025]

【発明の実施の形態】以下、この発明の実施形態を図面
に基づいて具体的に説明する。図1は、この発明による
建設図面認識方法を実施する建設図面認識装置の一例の
概略構成を示すブロック図であり、ハード構成とマイク
ロコンピュータによるソフト処理の機能とを混在して示
している。
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 an example of a construction drawing recognition apparatus for carrying out a construction drawing recognition method according to the present invention, in which a hardware configuration and a function of software processing by a microcomputer are shown in a mixed manner.

【0026】この装置は、全体制御部1,画像読取部
2,通信制御部3,メモリ4,自動スキュー補正部5,
ドット数計測配列データ作成部6,輪郭・骨格認識部
7,再マッピング制御部8,表示部9,操作入力部1
0,外部記憶装置11,印刷装置12,拡張処理部1
3,及びこれらを接続するバス14などから構成され
る。なお、これらの各部(又は装置)とバス14との間
に必要なインタフェース部は図示を省略している。
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,
Dot number measurement array data creation unit 6, contour / skeleton recognition unit 7, remapping control unit 8, display unit 9, operation input unit 1
0, external storage device 11, printing device 12, expansion processing unit 1
3 and a bus 14 for connecting them. It should be noted that interface units required between these units (or devices) and the bus 14 are not shown.

【0027】全体制御部1は、この建設図面認識装置全
体の動作及び機能を制御するマイクロコンピュータ(C
PU,ROM,RAM等から構成されるが代表して「C
PU」と略称される)であり、自動スキュー補正部5並
びにこの発明に係るドット数計測配列データ作成部6,
輪郭・骨格認識部7,再マッピング制御部8,及び拡張
処理部13の各機能も、そのCPUのソフト処理によっ
て実現できる。
The overall control unit 1 is a microcomputer (C) for controlling the operation and function of the entire construction drawing recognition apparatus.
PU, ROM, RAM, etc.
PU ”), the automatic skew correction unit 5 and the dot number measurement array data creation unit 6 according to the present invention.
The functions of the contour / skeleton recognition unit 7, the remapping control unit 8, and the expansion processing unit 13 can also be realized by software processing of the CPU.

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

【0029】通信制御部3は、画像読取部2から画像デ
ータを取り込む代りに、外部から通信によりイメージ画
像データ又はそのランレングスが符号化された符号化画
像データを受信して入力する画像データ受信手段である
と共に、この装置によって認識した建設図面の輪郭及び
骨格データを外部装置へ送信することもできる。具体的
にはFAXモデムやパソコン通信制御手段を含むもので
ある。
The communication control unit 3 receives the image data from the image reading unit 2 instead of receiving the image data from the image reading unit 2 and receives and inputs the image image data or the encoded image data in which the run length is encoded by communication from the outside. As a means, it is also possible to transmit the outline and skeleton data of the construction drawing recognized by this device to an external device. Specifically, it includes a FAX modem and personal computer communication control means.

【0030】メモリ4は、画像読取部2によって読み取
ったイメージ画像データ、通信制御部3によって受信し
たイメージ画像データ又は符号化画像データをはじめ、
自動スキュー補正部5によってスキュー補正された画像
データ、拡張処理部13によって輪郭を拡張したイメー
ジ画像データ、ドット数計測配列データ作成部6によっ
て作成されたドット数計測配列データ、輪郭・骨格認識
部7によって認識された輪郭及び骨格の認識結果、及び
再マッピング制御部8によって再マッピングされた画像
データ等を格納する大容量のRAMあるいはハードディ
スク等によるメモリである。
The memory 4 stores image image data read by the image reading unit 2, image image data or coded image data received by the communication control unit 3,
The image data skew-corrected by the automatic skew correction unit 5, the image image data whose contour is expanded by the expansion processing unit 13, the dot number measurement array data created by the dot number measurement array data creation unit 6, the contour / skeleton recognition unit 7 A large-capacity RAM or a memory such as a hard disk for storing the recognition result of the contour and skeleton recognized by, the image data remapped by the remapping control unit 8, and the like.

【0031】自動スキュー補正部5は、メモリ4に格納
した画像データの角度を調整して水平及び垂直の線分方
向を装置の水平及び垂直の基準方向と一致させるように
補正するためのものであり、公知の自動スキュー補正技
術を用いることができる。なお、この自動スキュー補正
部5により修正された画像データは、再びメモリ4に格
納される。
The automatic skew correction section 5 adjusts the angle of the image data stored in the memory 4 to correct the horizontal and vertical line segments so as to match the horizontal and vertical reference directions of the apparatus. Yes, 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.

【0032】拡張処理部13は、メモリ4に格納した画
像データの黒又は白ドットからなる部分(直線部分及び
孤立した島など)の輪郭を上下左右又は斜めに所定ドッ
ト分拡張することにより太線化する処理を行なう。この
輪郭が拡張された画像データは再びメモリ4に格納され
る。すなわち、イメージ画像データの黒又は白ドットか
らなる部分の輪郭を拡張する手段であり、その詳細は後
で説明する。
The expansion processing unit 13 expands the contour of a portion (a straight line portion, an isolated island, etc.) consisting of black or white dots of the image data stored in the memory 4 vertically, horizontally, or diagonally by a predetermined dot to make a thick line. Perform the process. The image data whose contour has been expanded is stored in the memory 4 again. That is, it is a means for expanding the outline of the portion of the image data consisting of black or white dots, the details of which will be described later.

【0033】ドット数計測配列データ作成部6は、メモ
リ4に格納されたスキュー補正された画像データ、輪郭
が拡張された画像データ、及び後述する再マッピング制
御部8によって再マッピングされた画像データに対し
て、その画像データを水平及び垂直方向の2方向に限定
して、それぞれドット幅単位に黒又は白ドット数を計測
(カウント)し、その結果により水平及び垂直方向のド
ット数計測配列データ(ヒストグラム)を作成してメモ
リ4に格納するドット数計測配列データ作成手段であ
る。
The dot number measurement array data creation unit 6 converts the skew-corrected image data stored in the memory 4, the image data whose contour has been expanded, and the image data remapped by the remapping control unit 8 described later. On the other hand, the image data is limited to two directions, horizontal and vertical, and the number of black or white dots is measured (counted) in each dot width unit, and the result is the dot number measurement array data in the horizontal and vertical directions ( It is a dot number measurement array data creating means for creating a histogram) and storing it in the memory 4.

【0034】なお、読み取った建設図面がポジ図面(地
の明度より図の明度が低い図面)の場合には黒ドット数
を計測し、ネガ図面(地の明度より図の明度が高い図
面)の場合には白ドット数を計測する。
When the read construction drawing is a positive drawing (a drawing whose brightness is lower than that of the ground), the number of black dots is measured, and a negative drawing (a drawing whose brightness is higher than that of the ground) is used. In that case, the number of white dots is measured.

【0035】輪郭・骨格認識部7は、ドット数計測配列
データ作成部6によって作成された水平及び垂直方向の
ドット数計測配列データに基づいて、建設図面の輪郭及
び骨格を認識し、特に壁の位置,長さ,厚さ,種類等の
壁データを抽出するための輪郭・骨格認識手段であり、
その詳細は後で詳述する。
The contour / skeleton recognizing section 7 recognizes the contour and skeleton of the construction drawing based on the dot number measuring array data in the horizontal and vertical directions created by the dot number measuring array data creating section 6, and in particular the wall A contour / skeleton recognition means for extracting wall data such as position, length, thickness, and type,
The details will be described later.

【0036】なお、参照したドット数計測配列データで
は、壁の認識(抽出)が困難あるいは不確実な場合は、
図面の水平及び垂直方向のドット数計測配列データ作成
範囲の再設定要求を全体制御部1へ送り、作成範囲を変
更設定してドット数計測配列データ作成部6に再度ドッ
ト数計測配列データを作成させる。さらに、壁の認識結
果が所定の条件を満たさずに家図面としての体裁を保て
ない場合は、画像データの拡張要求を全体制御部1へ送
り、拡張処理部13によって画像データの拡張処理を実
行させる。
If it is difficult or uncertain to recognize (extract) a wall with the referenced dot number measurement array data,
A request for resetting the creation range of the number-of-dots measurement array data in the horizontal and vertical directions of the drawing is sent to the overall control unit 1, the creation range is changed and set, and the number-of-dots measurement array data creation unit 6 creates the number-of-dots measurement array data again. Let it. Further, when the wall recognition result does not satisfy the predetermined condition and the appearance as the house drawing cannot be maintained, the expansion request of the image data is sent to the overall control unit 1, and the expansion processing unit 13 performs the expansion process of the image data. Let it run.

【0037】再マッピング制御部8は、輪郭・骨格認識
部7により、壁と認識された部分により建設図面の範囲
を限定して、その部分を他の認識情報をも考慮した上
で、再度マッピングし、その限定した範囲毎にドット数
計測配列データ作成部6に再度ドット数計測配列データ
を作成させるための画像データを作成するものであり、
その際に原稿のノイズあるいは画像読取部2での読取ノ
イズも除去した画像データを作成する。このデータもメ
モリ4に格納される。
The remapping control unit 8 limits the range of the construction drawing by the part recognized as a wall by the contour / skeleton recognition unit 7, considers other recognition information for that part, and remaps it. Then, the image data for making the dot number measurement array data creation unit 6 create the dot number measurement array data again for each limited range is created.
At this time, image data is created in which noise of the original or noise read by the image reading unit 2 is also removed. This data is also stored in the memory 4.

【0038】表示部9は、画像読取部2又は通信制御部
3から入力し、自動スキュー補正部5によってスキュー
補正された建設図面の画像データ、拡張処理部13によ
って輪郭が拡張された画像データ、ドット数計測配列デ
ータ作成部6で作成された水平及び垂直方向の黒又は白
のドット数計測配列データ、輪郭・骨格認識部7によっ
て認識された壁データ、再マッピング制御部8によって
再マッピングされた画像データ等を表示するためのもの
であり、例えば、CRTや液晶ディスプレイ等である。
The display unit 9 receives the image data of the construction drawing input from the image reading unit 2 or the communication control unit 3 and skew-corrected by the automatic skew correction unit 5, and the image data whose contour is expanded by the expansion processing unit 13. Horizontal or vertical black or white dot number measurement array data created by the dot number measurement array data creation unit 6, wall data recognized by the contour / skeleton recognition unit 7, and remapping by the remapping control unit 8 It is for displaying image data and the like, and is, for example, a CRT or a liquid crystal display.

【0039】図2,図3は、表示部9の画面9aの表示
状態の例を示すものであり、図2は輪郭・骨格認識部7
によって認識された建設図面の輪郭及び骨格(この例で
は壁)のデータを再マッピング制御部8によって再マッ
ピングした画像データ(認識結果)の表示例である。こ
の表示例において、二重の実線は壁の両面を示し、細線
は壁の芯線及びその延長線を示している。
FIGS. 2 and 3 show examples of the display state of the screen 9a of the display unit 9. FIG.
7 is a display example of image data (recognition result) obtained by remapping data of a contour and a skeleton (in this example, a wall) of a construction drawing recognized by the remapping control unit 8. In this display example, double solid lines indicate both sides of the wall, and thin lines indicate the core line of the wall and its extension.

【0040】図3は、拡張処理部13によって輪郭が拡
張された建設図面の画像データ(図3では図示の都合上
画像の輪郭の拡張を目立たないように示している)と、
上記再マッピングされた認識結果である壁の画像データ
を同時に重ね合わせて表示した例を示す。この場合、両
者の識別が容易にできるように、建設図面の輪郭を拡張
したイメージ画像データはハーフトーンで表示し(図3
では図示の都合上点描で示している)、認識結果である
壁の画像データを実線で表示する。
FIG. 3 shows image data of a construction drawing whose contour is expanded by the expansion processing unit 13 (in FIG. 3, the contour expansion of the image is shown inconspicuous for convenience of illustration),
An example in which the image data of the wall, which is the remapped recognition result, is displayed at the same time will be shown. In this case, the image image data obtained by expanding the outline of the construction drawing is displayed in halftone so that the two can be easily distinguished (see FIG. 3).
For the sake of convenience of illustration, the image data of the wall, which is the recognition result, is shown by a solid line.

【0041】また、表示部9がカラーの表示装置である
場合には、両画像の色を変えて表示することにより、識
別性を向上させることができる。例えば、輪郭が拡張さ
れた入力イメージ画像データは薄青色で、認識結果の画
像データをオレンジ色あるいは緑色等で表示することに
より、操作者は認識結果の部分を容易に識別できる。
When the display section 9 is a color display device, the discriminability can be improved by displaying the two images in different colors. For example, the input image image data whose contour has been expanded is light blue, and the image data of the recognition result is displayed in orange or green, so that the operator can easily identify the part of the recognition result.

【0042】あるいは、表示部9の画面9aを分割し
て、輪郭が拡張された入力イメージ画像データと認識結
果の画像データをその分割したそれぞれの画面に対比さ
せて表示することもできる。または、同一の画面上に輪
郭が拡張された入力イメージ画像データと再マッピング
された認識結果の画像データを選択的に表示できるよう
にしてもよい。その場合には後述する操作入力部10に
表示選定手段(キー等)を設ければよい。
Alternatively, it is also possible to divide the screen 9a of the display unit 9 and display the input image image data whose contour has been expanded and the image data of the recognition result in contrast to each of the divided screens. Alternatively, the input image image data whose contour has been expanded and the image data of the recognition result re-mapped on the same screen may be selectively displayed. In that case, a display selection means (keys or the like) may be provided in the operation input unit 10 described later.

【0043】さらに、この表示部9は、認識結果を操作
者が確認するための画面も表示する。すなわち、上記再
マッピングされた認識結果の画像データを表示し、「こ
の認識結果でよろしいですか?(YES/NO)」とい
うような表示を行なう。これにより、壁の認識が正確に
できているかどうかを操作者が確認することができる。
Further, the display unit 9 also displays a screen for the operator to confirm the recognition result. That is, the image data of the re-mapped recognition result is displayed, and a display such as "Is this recognition result OK? (YES / NO)" is performed. This allows the operator to confirm whether the wall has been correctly recognized.

【0044】操作入力部10は、各種操作指示や機能選
択指令、編集データ等を入力するためのものであり、キ
ーボードやマウスあるいはタッチパネル等である。この
操作入力部10は、表示選定手段としての機能も有し、
表示部9の表示状態を操作者の所望の表示状態に変更す
ることができる。例えばキー操作により、輪郭が拡張さ
れた建設図面の入力画像データと再マッピングされた認
識結果の画像データを重ね合わせて表示させたり、どち
らか一方のみを選択して表示させたりすることができ
る。
The operation input unit 10 is for inputting various operation instructions, function selection commands, edit data, and the like, 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 display the input image data of the construction drawing whose contour has been expanded and the image data of the remapped recognition result in a superimposed manner, or to display only one of them.

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

【0046】外部記憶装置11は、入力した画像データ
や、拡張処理部13で輪郭が拡張された画像データ、ド
ット数計測配列データ作成部6で作成された黒ドット数
計測配列データ、輪郭・骨格認識部7によって認識され
た壁データ、再マッピング制御部8によって再マッピン
グされた認識結果の画像データ等をフロッピディスク
(FD)や光磁気ディスク(OMD)等の外部へ取り出
し可能な記憶媒体に記憶させる記憶装置である。印刷装
置12は、上記の各種データを紙に印刷あるいは描画し
て出力するプリンタあるいはプロッタである。
The external storage device 11 stores the input image data, the image data whose contour has been expanded by the expansion processing unit 13, the black dot number measurement array data created by the dot number measurement array data creation unit 6, the outline / skeleton. The wall data recognized by the recognition unit 7, the image data of the recognition result remapped by the remapping control unit 8, and the like are stored in a storage medium such as a floppy disk (FD) or magneto-optical disk (OMD) that can be taken out to the outside. This is a storage device. The printing device 12 is a printer or a plotter that prints or renders the above various data on paper and outputs the data.

【0047】ここで、建設図面(主に建築図面)におけ
る「輪郭」と「骨格」及び「外壁」と「内壁」の定義に
ついて、表1及び表2と図4によって説明する。
Here, the definitions of "contour" and "skeleton" and "outer wall" and "inner wall" in construction drawings (mainly architectural drawings) will be described with reference to Tables 1 and 2 and FIG.

【0048】[0048]

【表1】 [Table 1]

【0049】[0049]

【表2】 [Table 2]

【0050】「輪郭」とは「外輪郭」のことであり、表
1に○印で示すように外周壁の外部に面している箇所の
み(図4の(a)に示す二重線の外側の線の部分)を意
味するケース1の場合と、外部に接する壁の全体(図4
の(b)に太線で示す部分)を意味するケース2,3の
場合とがある。
The "outline" means the "outside outline", and only the portion facing the outside of the outer peripheral wall as indicated by a circle in Table 1 (the double line shown in FIG. Case 1 which means the outer line part) and the entire wall (FIG. 4)
(B) is a case indicated by a bold line).

【0051】「骨格」とは、壁の総て(図4の(b)
(c)に太線で示す部分の両方)を意味するケース1,
2の場合と、外輪郭を除く壁(図4の(c)に太線で示
す部分のみ)を意味するケース3の場合とがある。これ
らの定義において、特に断わらない場合はケース1の通
常の意味として扱われる。
"Skeleton" means all of the walls (FIG. 4 (b)
(C) both cases indicated by bold lines)
There are two cases, and a case 3 meaning a wall excluding the outer contour (only a portion indicated by a thick line in FIG. 4C). In these definitions, unless otherwise specified, they are treated as the normal meaning of Case 1.

【0052】「外壁」とは表2に○印で示すように、外
輪郭と同じく外周壁の外部に面している箇所のみ(図4
の(a)に示す二重線の外側の線で示す部分)を意味す
るケース4の場合と、外部に接する壁の全体(図4の
(b)に太線で示す部分)を意味するケース5の場合と
がある。
The "outer wall" means only the portion facing the outside of the outer peripheral wall as in the case of the outer contour (see FIG. 4).
Case 4 meaning the portion indicated by the line outside the double line shown in FIG. 4A), and Case 5 meaning the entire wall in contact with the outside (the portion indicated by the thick line in FIG. 4B). There are cases.

【0053】「内壁」とは表2に○印で示すように、ケ
ース4,5とも外壁を除く壁(壁=外壁+内壁)である
が、ケース4の場合は図4の(a)に示す二重線の内側
の線の部分と図4の(c)に太線で示す部分であり、ケ
ース5の場合は図4の(c)に太線で示す部分である。
これらの定義においても、特に断わらない場合はケース
5の通常の意味として扱われる。
The "inner wall" is a wall excluding the outer wall (wall = outer wall + inner wall) in both cases 4 and 5, as shown by a circle in Table 2, whereas in case 4 the case is shown in FIG. 4 (c) and the thick line in FIG. 4 (c), and the case 5 is the thick line in FIG. 4 (c).
Also in these definitions, unless otherwise specified, it is treated as the normal meaning of Case 5.

【0054】次に、図1に示した建設図面認識装置によ
る建設図面(主に家屋やビル等の建築図面)認識の手順
について、図5乃至図8のフロー図と、図25乃至図3
1によって説明する。上記図6〜図8において、各ステ
ップを「S」で示している。また、この実施例では、認
識する建設図面がポジ図面であるものとする。
Next, the procedure for recognizing a construction drawing (mainly a construction drawing of a house or a building) by the construction drawing recognizing apparatus shown in FIG. 1 will be described with reference to the flowcharts of FIGS. 5 to 8 and FIGS.
This will be described with reference to 1. 6 to 8, each step is indicated by “S”. Further, in this embodiment, it is assumed that the recognized construction drawing is a positive drawing.

【0055】図5は、建設図面の認識処理のメインルー
チンを示すフローチャートである。図5の処理を開始す
ると、図1の画像読取部2にセットされた建設図面を読
み取り、そのイメージ画像データを入力して、自動スキ
ュー補正部5によって自動的にそのスキューを補正す
る。
FIG. 5 is a flowchart showing the main routine of the construction drawing recognition process. When the process of FIG. 5 is started, the construction drawing set in the image reading unit 2 of FIG. 1 is read, its image data is input, and the skew is automatically corrected by the automatic skew correction unit 5.

【0056】そして、ステップAのサブルーチンでドッ
ト数計測配列データ作成部6及び輪郭・骨格認識部7等
によりその入力した画像データに対して壁の認識処理を
実行する。この処理については後に詳述する。なお、イ
メージ画像データを符号化したデータを通信制御部3か
ら入力するようにしてもよい。その後、輪郭・骨格認識
部7により、ステップBの判断で、ステップAでの壁の
認識処理による認識結果の直線で形成されるベクトルデ
ータが建物の図面としての体裁を保てるか否かを判断
し、保てればステップDへ進んで、その時点で認識でき
た壁の位置及びサイズを認識結果として出力し、この処
理を終了する。
Then, in the subroutine of step A, a wall recognition process is executed on the input image data by the dot number measurement array data creation unit 6, the contour / skeleton recognition unit 7, and the like. This processing will be described later in detail. Note that data obtained by encoding image image data may be input from the communication control unit 3. Thereafter, the contour / skeleton recognition unit 7 judges in step B whether or not the vector data formed by the straight line of the recognition result by the wall recognition processing in step A can maintain the appearance as a drawing of the building. If so, the process proceeds to step D, where the position and size of the wall that can be recognized at that time are output as the recognition result, and this process ends.

【0057】また、ステップBの判断で建物の図面とし
ての体裁を保てなければ、その判断を5回以上行なった
か否かを判断して、行なっていなければステップCへ進
んで拡張処理部13により画像データの黒ドットからな
る部分に対して水平及び垂直方向に所定ドット数の黒ド
ットを付加して輪郭を拡張する2値画像拡張処理を施し
てステップAへ戻り、その輪郭を拡張した画像データに
対して壁の認識処理と建物の図面としての体裁の判断処
理を再び行なう。
If the appearance of the building as a drawing cannot be maintained in the judgment in step B, it is judged whether or not the judgment is made five times or more. If not, the process proceeds to step C and the expansion processing unit 13 is executed. By this, a binary image expansion process for expanding a contour by adding a predetermined number of black dots in the horizontal and vertical directions to a portion made up of black dots of the image data is performed, and the process returns to step A, and the image in which the contour is expanded. The wall recognition processing and the appearance determination processing as a drawing of the building are performed again on the data.

【0058】こうして、入力した画像データに対する壁
の認識処理の結果によるベクトルデータが建物の図面の
体裁を保てないときには、その認識対象の画像データに
2値画像拡張処理を施して太線化し、再度壁の認識処理
を施し、その認識結果によるベクトルデータが建物の図
面の体裁を保てるか否かを繰り返す。
In this way, when the vector data resulting from the wall recognition processing for the input image data cannot maintain the appearance of the drawing of the building, the image data to be recognized is subjected to binary image expansion processing to be thickened, and again. The wall recognition process is performed, and it is repeated whether the vector data resulting from the recognition result can maintain the appearance of the drawing of the building.

【0059】そして、ステップBの判断を5回行なうま
でに、ステップAでの壁の認識結果によるベクトルデー
タが建物の図面の体裁を保てるようになると、ステップ
Dへ進んで、その時点で認識できた壁の位置及び大きさ
を認識結果として出力し、この処理を終了する。しか
し、ステップBの判断を5回以上繰り返しても壁の認識
結果によるベクトルデータが建物の図面の体裁を保てな
い場合には、認識不可能な画像データとしてエラー表示
などのエラー処理を行なって、この処理を終了する。
If the vector data obtained by the recognition result of the wall in step A can maintain the appearance of the drawing of the building by the time the judgment in step B is performed five times, the process proceeds to step D and the recognition can be performed at that time. The position and size of the opened wall are output as the recognition result, and this processing ends. However, if the vector data resulting from the recognition result of the wall cannot maintain the appearance of the drawing of the building even after repeating the determination in step B five times or more, error processing such as error display is performed as unrecognizable image data. , This process ends.

【0060】なお、上記判断で用いる数値は認識対象の
建設図面の内容に応じて適当な値を設定すると良い。ま
た、ステップCにおける拡張処理部13による2値画像
拡張処理で斜め方向についても所定ドット数の黒ドット
を拡張すれば、手書き図面のように多少直線部分がかす
れたり直線同士が正しく結合されていなくても、その直
線を認識可能な程度に補正することができる。
The numerical value used in the above judgment may be set to an appropriate value according to the contents of the construction drawing to be recognized. Further, if the predetermined number of black dots are expanded in the diagonal direction by the binary image expansion processing by the expansion processing unit 13 in step C, the straight line portions may be slightly faint or the straight lines may not be correctly connected as in the handwritten drawing. However, the straight line can be corrected to a recognizable level.

【0061】図25は壁の認識結果の画像データが家図
面としての体裁を保てるか否かを判断するときの画像処
理の説明図である。この判断では、壁の認識結果の画像
データから認識できた直線の両端が他の直線に結合して
いる関係にある直線だけを残し、または枝切りして、残
りの直線数が例えば8本以上のときに家図面としての体
裁を保てたと判断する。
FIG. 25 is an explanatory diagram of the image processing when it is determined whether the image data of the wall recognition result can maintain the appearance as a house drawing. In this determination, only the straight lines that have a relationship in which both ends of the straight line recognized from the image data of the wall recognition result are connected to other straight lines are left or branched, and the remaining number of straight lines is, for example, 8 or more. At that time, it is judged that the appearance as a house drawing could be maintained.

【0062】すなわち、図25の(a)に示すように単
独の直線は削除し、(b)に示すように単独の直線の中
間に他の直線が1本接続されている枝線を枝切りして削
除し、この場合は残りが単独の直線だからそれも削除す
る。
That is, a single straight line is deleted as shown in FIG. 25A, and a branch line in which one other straight line is connected to the middle of the single straight line is cut off as shown in FIG. 25B. And delete it, and in this case the rest is a straight line, so delete it as well.

【0063】そして、例えば(c)に示すように、両端
が他の直線に接続されている直線の本数が8本(この本
数は予め設定しておく)以上ある場合に、建物の図面と
しての体裁を保てると判断する。なお、(c)の画像に
ついては、そのLで示す直線部分は、右端が別の直線に
接続されていないので削除される。
Then, for example, as shown in (c), when the number of straight lines whose both ends are connected to another straight line is eight (this number is set in advance) or more, a building drawing is obtained. We judge that we can keep the appearance. In the image (c), the straight line portion indicated by L is deleted because the right end is not connected to another straight line.

【0064】また、図5のステップCにおける2値画像
の膨張処理では、一度に膨張させる画像の黒ドット数の
幅は画像密度によって決定する。例えば、400DPI
(ドット/インチ)の画像の場合、水平及び垂直方向に
2ドットずつ拡張する。さらに、斜め方向に2ドットず
つ拡張しても良い。
In the binary image expansion processing in step C of FIG. 5, the width of the number of black dots in the image to be expanded at one time is determined by the image density. For example, 400 DPI
In the case of a (dot / inch) image, it is expanded by 2 dots in the horizontal and vertical directions. Further, it may be extended by 2 dots diagonally.

【0065】さらに、この拡張処理について具体的な画
像で説明する。図26は入力後スキュー補正された後の
イメージ画像データの一例を示す図である。この画像デ
ータに対して上記ステップBによる壁の認識処理を施し
た場合、所定幅未満の直線ばかりなのでその直線をほと
んど認識することができない。したがって、上記ステッ
プCにより2値画像拡張処理を施して画像データの黒ド
ット部分の輪郭を所定ドットずつ拡張する(図示は省略
する)。その画像データに対して再度上記ステップAに
よる壁の認識処理を施すと、今度は図27に示すように
なり、ほとんどの壁を示す直線が認識することができた
が、所々直線同士が結合していないまま認識された部分
もある。
Further, this expansion process will be described with a concrete image. FIG. 26 is a diagram showing an example of image image data after skew correction after input. When the wall recognition processing in step B is performed on this image data, only straight lines having a width less than a predetermined width can be recognized. Therefore, in step C, the binary image expansion processing is performed to expand the contour of the black dot portion of the image data by a predetermined dot (not shown). When the wall recognition processing in step A is performed again on the image data, the result is as shown in FIG. 27, and the straight lines showing most of the walls can be recognized. There are some parts that have been recognized without being identified.

【0066】図27に示した認識結果の画像データに対
して上記ステップBによる判断処理で、建物の図面とし
て体裁を保てるか否かを判断する。まず、この画像デー
タから図25の(a)と(b)に示した両端が他の直線
と接続せずに単独で存在する直線と枝線を有する直線の
部分を削除して、図28に示すような画像データを得
る。この画像データは、総ての直線の両端が他の直線と
結合しているが、その総直線数が7本である。
In the judgment processing in step B for the image data of the recognition result shown in FIG. 27, it is judged whether or not the appearance can be maintained as the drawing of the building. First, from this image data, the straight line portion having both ends shown in (a) and (b) of FIG. Obtain the image data as shown. In this image data, both ends of all straight lines are connected to other straight lines, but the total number of straight lines is seven.

【0067】したがって、その総直線数が予め設定され
た8本以下なので、この画像データは建物の図面として
の体裁を保てないと判断し、先に2値画像拡張処理を施
した画像データに再度上記ステップCで2値画像拡張処
理を施し、その黒ドットの部分を所定ドット数拡張す
る。例えば、黒ドット部分の水平,垂直,及び斜め方向
にそれぞれ2ドットずつ黒ドットを付加して拡張し、図
29に示すような画像データを得る。
Therefore, since the total number of straight lines is not more than 8 which is set in advance, it is judged that this image data cannot maintain the appearance as a drawing of the building, and the image data that has been subjected to the binary image expansion processing first is selected. The binary image expansion process is performed again in step C, and the black dot portion is expanded by a predetermined number of dots. For example, two black dots are added in each of the horizontal, vertical, and diagonal directions of the black dot portion for expansion, and image data as shown in FIG. 29 is obtained.

【0068】そして、その輪郭を拡張した後の画像デー
タに対して上記ステップAによる壁の認識処理を再び施
し、図30に示すような認識結果の画像データを得る。
この画像データではまだ若干直線同士が結合していない
枝線が所々残っているが、黒ドットの拡張によって最初
の処理では結合していなかった大体の直線同士が接続さ
れる。
Then, the wall recognition processing in step A is performed again on the image data after the contour is expanded, and the image data of the recognition result as shown in FIG. 30 is obtained.
In this image data, there are still some branch lines where some straight lines are not yet connected, but due to the expansion of the black dots, most of the straight lines that were not connected in the first process are connected.

【0069】さらに、この画像データについて再度上記
ステップBによる建物の図面として体裁を保てるか否か
の判断を施し、図31に示すような画像データを得る。
その画像データでは枝線が削除された画像データが残
り、両端が他の直線に接続された直線の総数が17本に
なり、今度はそれが8本以上になるので、建物の図面と
して有効であると判断する。そして、上記ステップDに
よる処理で図30に示した画像データの壁の位置及びサ
イズを建設図面からの壁の認識結果としてメモリ4又は
外部記憶装置11に記憶、あるいは表示部9に表示等の
出力をする。
Further, with respect to this image data, it is judged again in step B whether or not the appearance can be maintained as the drawing of the building, and the image data as shown in FIG. 31 is obtained.
In that image data, the image data with the branch lines deleted remains, and the total number of straight lines with both ends connected to other straight lines is 17, and this time it is 8 or more, so it is effective as a building drawing. Judge that there is. Then, the position and size of the wall of the image data shown in FIG. 30 is stored in the memory 4 or the external storage device 11 as the recognition result of the wall from the construction drawing by the process in the above step D, or output such as display on the display unit 9. do.

【0070】このようにして、手書きによって線がカス
レや凹凸によって所々途切れている図面についても、そ
の画像の不完全な部分を補正することができるので、壁
認識処理をより正確に実施することができる。
In this way, even with respect to a drawing in which lines are cut in places due to scratches or irregularities due to handwriting, the incomplete portion of the image can be corrected, so that the wall recognition processing can be performed more accurately. it can.

【0071】次に、図5のステップAによる壁の認識処
理について説明する。図6はその壁の位置を認識する処
理のサブルーチンの内容を示すフロー図である。まず、
ステップ3において、自動スキュー補正された画像デー
タ又はその輪郭が拡張された画像データの全体を調査対
象とする。そして、ステップ4において、ネスト変数は
0(初期値:画像全体を対象にするという意味)であ
る。「ネスト変数」は建設図面の解析範囲をトップダウ
ンで絞り込む時の絞り込み段階を表す。ネスト変数の値
が大きいほど解析が深くなっている(細かい部分まで進
んでいる)ことを表わす。
Next, the wall recognition processing in step A of FIG. 5 will be described. FIG. 6 is a flowchart showing the contents of the subroutine of the processing for recognizing the position of the wall. First,
In step 3, the entire image data that has been automatically skew-corrected or the image data whose contour has been expanded is to be investigated. Then, in step 4, the nest variable is 0 (initial value: meaning the entire image is targeted). “Nest variable” represents the stage of narrowing down the analysis range of construction drawings from the top down. The larger the value of the nested variable, the deeper the analysis (the more advanced the part).

【0072】ステップ5において、壁の位置の調査対象
の領域を限定する処理を行なう。具体的には、この処理
にいたる直前に調査領域の指示が示されていて、ここで
は以降のステップ6〜9の処理のための準備(インタフ
ェースの共通化)を行なうだけである。個々の調査対象
領域の形は矩形図になる。最初はネスト変数が0なので
図面全体を調査対象とする。
In step 5, a process of limiting the region to be investigated of the position of the wall is performed. Specifically, the instruction of the investigation area is shown immediately before this processing, and here, only preparation for the processing of the subsequent steps 6 to 9 (standardization of the interface) is performed. The shape of each survey target area is a rectangular diagram. At first, since the nest variable is 0, the whole drawing is to be investigated.

【0073】ステップ6において、水平方向の黒ドット
数計測配列データを作成する。これは、画像データの垂
直方向の1ドット幅毎に水平方向の黒ドット数を計数
(計測)し、その各計数データを保持するものである。
次にステップ7において、ステップ6で作成した水平方
向の黒ドット数計測配列データに基づいて、壁の抽出
(認識)処理を行なう。その処理手順については後述す
る。
In step 6, horizontal black dot number measurement array data is created. In this method, the number of black dots in the horizontal direction is counted (measured) for each one dot width in the vertical direction of the image data, and the counted data is held.
Next, in step 7, a wall extraction (recognition) process is performed based on the horizontal black dot number measurement array data created in step 6. The processing procedure will be described later.

【0074】ステップ8では、ステップ6と同様に垂直
方向の黒ドット数計測配列データを作成する。すなわ
ち、画像データの水平方向の1ドット幅毎に垂直方向の
黒ドット数を計数(計測)し、その各計数データを保持
する。ステップ9では、その垂直方向の黒ドット数計測
配列データに基づいて壁の抽出(認識)処理を行なう。
In step 8, as in step 6, vertical black dot number measurement array data is created. That is, the number of black dots in the vertical direction is counted (measured) for each horizontal dot width of the image data, and the counted data is held. In step 9, a wall extraction (recognition) process is performed based on the black dot number measurement array data in the vertical direction.

【0075】そして、ステップ10において領域を分割
する壁候補があるかどうかを判断する。ここで、水平あ
るいは垂直方向で1つでも領域を分割する壁候補があれ
ば、ステップ11へ、1つもそのような壁候補がなけれ
ば、ステップ13へ進む。例えば、図9の(a)に示す
ような調査対象領域Sa内に領域を分割する壁候補Wd
が存在するかどうかを判断する。ステップ11では、ネ
スト変数を+1して再設定する。これは、現在の解析領
域の中から壁を認識し、その壁を使って新たに区切られ
た現在の領域内の小領域に解析範囲を限定する段階に入
ることを表わす。
Then, in step 10, it is judged whether there is a wall candidate for dividing the area. If there is at least one wall candidate that divides the region in the horizontal or vertical direction, the process proceeds to step 11. If there is no such wall candidate, the process proceeds to step 13. For example, a wall candidate Wd that divides a region into a survey target region Sa as shown in FIG.
To determine if is present. In step 11, the nest variable is incremented by 1 and reset. This indicates that a wall is recognized from the current analysis area, and the analysis area is limited to a small area in the newly partitioned current area using the wall.

【0076】そして、ステップ12において、その調査
対象の領域の細分化を行なう。具体的には、ステップ
7,ステップ9で認識した壁候補の芯線(中心線)で、
例えば図9の(a)に示すように調査対象領域を壁候補
W,Wdの細線で示す芯線によって領域Sa1,Sa2
に2分割する。さらに、その最初の細分化領域(例えば
最も左上の領域)に調査対象の位置づけを行なう。
Then, in step 12, the area to be investigated is subdivided. Specifically, at the core line (center line) of the wall candidate recognized in steps 7 and 9,
For example, as shown in FIG. 9A, the investigation target area is defined by the core lines indicated by the thin lines of the wall candidates W and Wd.
Into two parts. Further, the position of the survey target is set in the first subdivided area (for example, the upper left area).

【0077】この新たに細分化された領域群の中での解
析の順番には特別な順序が必要になる訳ではないが、例
えば、領域開始位置のx,y座標値の小さい順番に行な
うことなどが考えられる。図9の(b)は、壁候補によ
って細分化された各領域のネストNo.とその解析処理順
序の一例を示し、実線は壁候補の芯線(中心線)を、
,,はネストNo.を、1〜8の小さい数字は処理
順序をそれぞれ示している。
The order of analysis in the newly subdivided region group does not require a special order. For example, the analysis is performed in the order of small x, y coordinate values of the region start position. And so on. FIG. 9B shows an example of the nest No. of each area subdivided by the wall candidates and the analysis processing order. The solid line indicates the core line (center line) of the wall candidate.
,, Indicate the nest number, and small numbers 1 to 8 indicate the processing order.

【0078】その後、ステップ5に戻って上述の処理を
繰り返し行なう。ステップ10において、領域を分割す
べき壁候補が1つもなかった場合は、ステップ13に進
んで同次ネスト領域(図9の(b)で同じネストNo.の
領域)の残りがないかどうかを判断する。残りがある場
合は、ステップ15において同次ネストの次の領域に調
査対象を進めてステップ5に戻る。
Thereafter, the flow returns to step S5 to repeat the above-mentioned processing. If there is no wall candidate to be divided in step 10, the process proceeds to step 13 to determine whether there is any remaining homogeneous nest area (the area of the same nest No. in FIG. 9B). to decide. If there is any remaining, the object to be investigated is advanced to the next area of the homogeneous nest in step 15, and the process returns to step 5.

【0079】同次ネスト領域の残りがない場合は、ステ
ップ14へ進んでネスト変数が0であるかどうかを判断
する。ネスト変数が0でない場合は、ステップ16にお
いてネスト変数を−1して1段階上位のネスト領域の処
理に戻り、ステップ13でその段階の残りのネスト領域
があるかどうかを判断する。あればステップ15で次の
ネスト領域に調査対象を進めてステップ5に戻る。
If there is no remaining homogeneous nest area, the routine proceeds to step 14, where it is determined whether the nest variable is 0 or not. If the nest variable is not 0, the nest variable is decremented by 1 at step 16 and the process returns to the processing of the nest area one level higher. At step 13, it is determined whether there is a nest area remaining at that level. If there is, in step 15 the search target is advanced to the next nest area, and the process returns to step 5.

【0080】ステップ14でネスト変数が0の場合は、
ステップ17へ進んで、ステップ7,9によって得られ
た各領域毎の壁候補の認識データをもとに各壁の位置及
びサイズを確定し、その壁認識データをメモリ4に格納
する。その格納方法については後述する。そして、ステ
ップ18でその認識データを必要に応じて表示部9に表
示、又は印刷装置12によって印刷、あるいは外部記憶
装置11に記憶させて、処理を終了する。
If the nest variable is 0 in step 14,
Proceeding to step 17, the position and size of each wall are determined based on the recognition data of the wall candidates for each area obtained in steps 7 and 9, and the wall recognition data is stored in the memory 4. The storage method will be described later. Then, in step 18, the recognition data is displayed on the display unit 9 as necessary, printed by the printing device 12, or stored in the external storage device 11, and the process ends.

【0081】次に図7に基づいて、図6のステップ7及
び9の壁の抽出(認識)処理の手順を説明するが、それ
に先立って、建設図面である建築図面(家屋の間取り
図)の輪郭を拡張した後の画像データとその全領域から
作成した水平及び垂直方向の黒ドット数計測配列データ
の具体例を図10及び図11に示す。これらの図におい
て、(a)は建築図面の画像データ、(b)は水平方向
の黒ドット数計測配列データ、(c)は垂直方向の黒ド
ット数計測配列データである。さらに、図10の(c)
に示した垂直方向の黒ドット数計測配列データを拡大し
て図12に示す。
Next, the procedure of the wall extraction (recognition) processing in steps 7 and 9 of FIG. 6 will be described with reference to FIG. 7. Prior to that, a construction drawing (house floor plan), which is a construction drawing, will be described. 10 and 11 show specific examples of the image data after the outline is expanded and the horizontal and vertical direction black dot number measurement array data created from the entire area thereof. In these drawings, (a) is image data of architectural drawings, (b) is horizontal black dot number measurement array data, and (c) is vertical black dot number measurement array data. Further, FIG. 10 (c)
FIG. 12 is an enlarged view of the vertical black dot number measurement array data shown in FIG.

【0082】図10の建築図面では、壁のシンボルが壁
の両面と芯線によって表わされており、図11の建築図
面では、壁のシンボルが壁の厚さ内の塗りつぶし(黒)
によって表わされている。この黒ドット数計測配列デー
タにおいて、一番細い黒線の幅が1ドット幅であり、各
黒線の長さが(a)に示す建築図面の画像データの1ド
ット幅毎の水平方向又は垂直方向の黒ドット数の計数値
に相当する。
In the architectural drawing of FIG. 10, the symbol of the wall is represented by both sides of the wall and the core, and in the architectural drawing of FIG. 11, the symbol of the wall is filled (black) within the thickness of the wall.
Is represented by In this black dot number measurement array data, the width of the thinnest black line is one dot width, and the length of each black line is horizontal or vertical for each one dot width of the image data of the architectural drawing shown in FIG. It corresponds to the counted value of the number of black dots in the direction.

【0083】これらの図から明らかなように、建築図面
を構成する線分の大部分(90%以上)は水平方向又は
垂直方向に描かれており、特に壁の部分で黒ドットの密
度が高くなっている。そのため、水平方向及び垂直方向
の黒ドット数計測配列データには、壁が存在する位置に
ピークが表われることになる。
As is clear from these figures, most (90% or more) of the line segments constituting the architectural drawing are drawn in the horizontal direction or the vertical direction. Has become. Therefore, a peak appears at the position where the wall exists in the black dot number measurement array data in the horizontal direction and the vertical direction.

【0084】図7のフローの処理を開始すると、まずス
テップ21において、指定方向とクロスする方向(水平
方向の黒ドット数計測配列データ作成の指定であれば垂
直方向に、また垂直方向の指定であれば水平方向に)
に、建設図面の基準の単位長に相当する所定間隔ごとに
何回壁認識処理のループが可能かを確認する。ここで、
この単位長は一般の住宅の場合にはその最小壁間隔であ
る半間あるいは1メートルであり、ここでは半間(91
cm)とする。
When the processing of the flow shown in FIG. 7 is started, first, in step 21, a direction crossing the designated direction (vertical direction if the black dot number measurement array data creation in the horizontal direction is designated, and vertical direction if designated in the vertical direction). If it is horizontal)
Next, it is confirmed how many times the loop of the wall recognition process can be performed at predetermined intervals corresponding to the reference unit length of the construction drawing. here,
This unit length is half a space or 1 meter which is the minimum wall interval in the case of a general house.
cm).

【0085】そして、水平方向の黒ドット数計測配列デ
ータに対しては垂直方向の画像幅より若干長い寸法を幅
サイズLとし、垂直方向の黒ドット数計測配列データに
対しては水平方向の画像幅より若干長い寸法を幅サイズ
Lとして自動設定する。また、半間サイズをhとし、こ
の値は予め図面の縮尺データ及び半間長を入力するか又
は計算による自動算出などにより決定する。この幅サイ
ズLと半間サイズをhからL/hを算出して小数点以下
は切上げた数値を壁認識処理の大ループの実行回数nと
する。図12にhで示す範囲が1回の大ループでの処理
範囲である。
For the array data of the number of black dots in the horizontal direction, a dimension slightly longer than the image width in the vertical direction is defined as the width size L. A dimension slightly longer than the width is automatically set as the width size L. Further, the half size is set to h, and this value is determined by inputting the scale data and half length of the drawing in advance or by automatic calculation by calculation or the like. L / h is calculated from the width size L and the half space size from h, and the value rounded up to the decimal point is defined as the number of executions n of the large loop of the wall recognition process. The range indicated by h in FIG. 12 is the processing range in one large loop.

【0086】次いで、ステップ22で大ループの回数カ
ウンタのカウント値iの初期設定(i←1)を行なう。
そして、ステップ23において回数カウンタのカウント
値iが可能な大ループの実行回数nを超えた(i>n)
かどうかを判定する。超えていれば、当該領域の解析を
終了する。超えていなければ、ステップ24において当
該i番目の半間内の最初の解析処理として最高ピーク
(図12にPで示す)に位置付け、その点をxpとす
る。このように半間毎に解析処理することにより、その
中のピーク値が壁の一部である可能性が高いことにな
る。
Next, in step 22, the count value i of the large loop number counter is initialized (i ← 1).
Then, in step 23, the count value i of the number counter exceeds the number of possible large loop executions n (i> n).
Is determined. If so, the analysis of the area is terminated. If not, in step 24, it is positioned at the highest peak (indicated by P in FIG. 12) as the first analysis process within the i-th half, and that point is defined as xp. By performing the analysis processing every half period in this way, it is highly possible that the peak value therein is a part of the wall.

【0087】次に、ステップ25において壁の対象とし
ての最初の条件であるピーク(極大値)の高さが半間
(h)以上かどうかを判定する。その結果、ピークの高
さが半間未満の場合には壁の認識不明として、次の半間
先の解析に移るためにステップ34に進む。ピークの高
さが半間以上ある時には次の解析ステップ26に移行す
る。このステップ26において、最高ピークの位置から
左右両側(例えば、2W幅)を調べて、壁の厚みの範囲
(両面の位置:W1,W2及び厚みWe=|W1−W2|)
の絞り込みを行なう。ここでWは壁の厚みの意味で、例
えばWmax と同じ値で使用する。
Next, in step 25, it is determined whether or not the height of the peak (maximum value), which is the first condition as an object of the wall, is equal to or longer than a half (h). As a result, if the height of the peak is less than half a minute, the recognition of the wall is unknown, and the process proceeds to step 34 in order to proceed to the analysis of the next half a point. When the height of the peak is half or more, the process proceeds to the next analysis step 26. In this step 26, the left and right sides (for example, 2 W width) are checked from the position of the highest peak, and the range of wall thickness (positions on both sides: W 1 , W 2 and thickness We = | W 1 −W 2 |)
To narrow down. Here, W means the thickness of the wall, and is used, for example, with the same value as Wmax.

【0088】この絞り込み方法としては、(最高ピーク
値−min)* rate+min以上の値を持つ最高ピーク位置の
両端又は片側のピーク位置を、壁の両面の位置W1,W2
又は最高ピーク位置xpが壁の一方の面の位置W1 であ
るときの他方の面の位置W2 として絞り込む方法があ
る。
As a narrowing-down method, the peak positions at both ends or one side of the highest peak position having a value of (maximum peak value−min) * rate + min or more are determined by the positions W 1 and W 2 on both surfaces of the wall.
Or highest peak position xp is a method to narrow the position W 2 of the other surface when the position W 1 of one side of the wall.

【0089】図13はこの絞り込み処理の説明図であ
り、(a)は最高ピーク位置xpの両側に壁の両面の位
置W1,W2が存在する場合の例である。この場合は、最
高ピーク位置xpは壁の芯線位置の候補と推定される。
FIG. 13 is an explanatory diagram of this narrowing-down processing. FIG. 13A shows an example in which the positions W 1 and W 2 of both sides of the wall exist on both sides of the highest peak position xp. In this case, the highest peak position xp is estimated as a candidate for the center line position of the wall.

【0090】図13の(b)は最高ピーク位置xpが壁
の一方の面の位置W1 であり、その片側に他方の面の位
置W2 が存在する場合の例である。この場合は、長い方
のピーク位置が図2に二重線で示した外輪郭の外壁位置
の候補で、それに近接する短い方のピークがその内壁位
置の候補と推定し得る。
FIG. 13B shows an example in which the highest peak position xp is the position W 1 on one surface of the wall, and the position W 2 on the other surface exists on one side. In this case, it can be estimated that the longer peak position is a candidate for the outer wall position of the outer contour indicated by the double line in FIG. 2 and the shorter peak adjacent thereto is a candidate for the inner wall position.

【0091】ここで、 rate は解析の前半(ネスト変数
の値が小さい時)は小さめに、後半(ネスト変数の値が
大きい時)では大きめにする(例えば、最初は rater=
0.70とする)。min は図13の(c)に示すように現
在注目している最大ピークPの位置xpの左右両側2W
に拡がった4W幅程度の幅内の黒ドット数計測データの
最小値である。
Here, the rate is set small in the first half of the analysis (when the value of the nest variable is small) and large in the second half (when the value of the nest variable is large) (for example, at first, rater =
0.70). As shown in (c) of FIG. 13, min is 2 W on both sides of the position xp of the maximum peak P that is currently focused on.
Is the minimum value of the black dot number measurement data within the width of about 4 W widened.

【0092】このようにして、図7のステップ26で絞
り込んだ結果を基に、ステップ27と28で壁としての
妥当性を確認する。まずステップ27においては、壁の
厚みWeがその最大値 Wmax(例えば30cm)を超え
ているか否かを判断し、超えている時は壁の認識不明と
して次の半間先の解析に移るためステップ34に進む。
超えていなければステップ28へ進み、壁の厚みWeが
最小値Wmin(例えば2.5cm)未満か否かを判断す
る。
In this way, the validity as a wall is confirmed in steps 27 and 28 based on the result narrowed down in step 26 in FIG. First, in step 27, it is determined whether or not the wall thickness We exceeds its maximum value Wmax (for example, 30 cm). Proceed to.
If not, the process proceeds to step 28, where it is determined whether or not the wall thickness We is less than a minimum value Wmin (for example, 2.5 cm).

【0093】その結果、壁の厚みWeが最小値 Wmin未
満の場合はステップ30へ進み、そうでない時はステッ
プ29に進む。ステップ30においては壁以外のピーク
(例えば、畳,窓,引戸など)を認識したものとしてそ
の情報を得る。ステップ29においては、壁の候補とな
る領域から、壁としての条件を満たすかどうかを後述す
る2等分割探索法によって判定し、壁だと認識できたも
のについて、ステップ31において当該壁の両面の位置
1,W2及び厚みWeなどの情報を退避(記憶)してス
テップ32に進む。
As a result, if the wall thickness We is less than the minimum value Wmin, the process proceeds to step 30; otherwise, the process proceeds to step 29. In step 30, the information is obtained on the assumption that a peak other than a wall (for example, a tatami mat, a window, a sliding door, etc.) has been recognized. In step 29, it is determined from the candidate area of the wall whether or not the condition as a wall is satisfied by a bisecting search method described later. Information such as the positions W 1 and W 2 and the thickness We is saved (stored), and the process proceeds to step 32.

【0094】ステップ29で壁としての条件を満たさな
ければステップ32に移行する。ステップ32において
は、壁の両面位置(座標)W1及びW2が共に現在処理を
行なっている領域の内側かどうかを判定し、内側であれ
ばステップ33に進む。そうでなければステップ34に
移行する。
If the condition as a wall is not satisfied in step 29, the process proceeds to step 32. In step 32, it is determined whether both side positions (coordinates) W 1 and W 2 of the wall are inside the area currently being processed. If not, the process proceeds to step 34.

【0095】ステップ33では、現在の処理領域を細分
化し、新しい細分領域を示す境界データとして、W1
2,Weを退避(記憶)する。また、(W1+W2)/
2 がその壁の芯線位置である。ステップ34では、次
の半間先の処理を行なうために大ループの回数カウンタ
のカウント値iを+1してから、ステップ23に戻って
上述の処理を繰り返し行なう。
In step 33, the current processing area is subdivided, and W 1 ,
W 2 and We are saved (stored). Also, (W 1 + W 2 ) /
2 is the center line position of the wall. In step 34, the count value i of the large loop number counter is incremented by 1 in order to perform the next half-ahead process, and the process returns to step 23 to repeat the above-described processing.

【0096】このようにして、対象となる黒ドット数計
測配列データの一端(先頭要素)から半間毎に解析処理
し、反対の端まで解析が終われば、今回の範囲の解析を
終了する。水平方向と垂直方向の2方向のを黒ドット数
計測配列データに対して別々に解析し、次回の解析範囲
は、今回の解析で壁と認識できた範囲に限定する。その
ため、水平及び垂直方向の黒ドット数計測配列データを
解析した結果を組み合わせて、総当たりの場合分けを行
なう。
In this way, the analysis processing is performed every half a period from one end (leading element) of the target black dot number measurement array data, and when the analysis is completed up to the opposite end, the analysis of the current range is completed. The two directions of the horizontal direction and the vertical direction are separately analyzed with respect to the black dot number measurement array data, and the next analysis range is limited to a range that can be recognized as a wall in the current analysis. Therefore, the result of analyzing the array data of the number of black dots in the horizontal and vertical directions is combined to perform the round robin classification.

【0097】この実施例では、壁の芯線位置は隣の壁と
の間隔が半間単位の整数倍になるように配置されている
とみなす。そして、特徴的なピークが発見できる範囲ま
でを解析データとして有効に使用する。逆に云えば、解
析対象とするある範囲内に壁に相当する特徴が、水平方
向及び垂直方向の両方合わせても一つも発見できなかっ
たときは解析を終了する。1回の解析範囲は、最初は図
面全体を対象にし、以後発見された壁で区切られた範囲
に限定し直す方法をとって、壁のピークが発見されやす
くし、且つ細部までの解析が容易になるようにする。
In this embodiment, it is considered that the center line position of the wall is arranged so that the interval between the adjacent wall is an integral multiple of a half unit. Then, a range up to a characteristic peak can be effectively used as analysis data. Conversely, if no feature corresponding to a wall is found within a certain range to be analyzed, even in both the horizontal and vertical directions, the analysis ends. A single analysis range initially covers the entire drawing, and is then limited to a range demarcated by walls that have been discovered since then, making it easier to find wall peaks and to analyze details in detail. So that

【0098】次に、図7のステップ29において「壁と
しての条件を満たすか」を判断する2等分割探索法につ
いて、図8のフロー図によって説明する。この図8に示
すフローの処理を開始すると、まずステップ41におい
て、2等分割探索法の初期設定を行なう。すなわち、壁
分析のための領域分割要素数nを1にし、壁部か非壁部
かが未確定である分割要素の配列要素の最も小さいNo.
を指すkを0に、また、調査領域の分割配列要素とし
て、S
Next, the halving search method for judging “whether the condition as a wall is satisfied” in step 29 of FIG. 7 will be described with reference to the flowchart of FIG. When the processing of the flow shown in FIG. 8 is started, first, in step 41, initialization of the halving search method is performed. In other words, the number n of the area division elements for the wall analysis is set to 1, and the smallest No. of the array elements of the division elements for which the wall or the non-wall is undetermined.
Is set to 0, and S is set as a divided array element of the survey area.

〔0〕,E[0], E

〔0〕それぞれに入力のスタート及び
エンド画像アドレスを代入して初期設定とする。
[0] Substitute the input start and end image addresses for each and set the initial settings.

【0099】その後、ステップ42に進み、調査領域の
開始アドレスS〔k〕と終了アドレスE〔k〕が等しけ
ればステップ53に移行し、等しくなければステップ4
3に進む。ステップ43においてはイメージ画像データ
の対象領域の分割処理を行ない、元の領域を小数以下の
誤差を除いて2等分割する。
Thereafter, the flow advances to step 42. If the start address S [k] of the investigation area is equal to the end address E [k], the flow shifts to step 53;
Proceed to 3. In step 43, the target area of the image data is divided, and the original area is divided into two equal parts except for errors of decimal numbers or less.

【0100】すなわち、分割する前半の領域のスタート
及びエンド画像アドレスS1,E1を、S1=S
〔k〕,E1=(1/2)(S〔k〕+E〔k〕)とし、
後半の領域のスタート及びエンド画像アドレスS2,E
2を、S2=(1/2)(S〔k〕+E〔k〕)+1,E
2=E〔k〕とする。
That is, the start and end image addresses S1 and E1 of the first half area to be divided are set as S1 = S
[K], E1 = (1/2) (S [k] + E [k]),
Start and end image addresses S2, E of the latter half area
2 as S2 = (1/2) (S [k] + E [k]) + 1, E
Let 2 = E [k].

【0101】それによって、例えば図14に示すよう
に、建設図面のイメージ画像データ中において、壁候補
が存在する線(一点鎖線で示す)の元の領域幅を最初は
1の位置で2等分割する。その後壁の有無を判別できる
まで、順次図14に示す位置2で2回目、3の位置で3
回目、4の位置で4回目というように2等分割を繰り返
して細分化した領域でステップ44及び45の壁調査を
行なうようにする。ステップ44及び45においては、
2等分割したそれぞれの領域P1,P2が壁で満たされ
ているかどうかを調査し、ステップ46に進む。
As a result, as shown in FIG. 14, for example, in the image data of the construction drawing, the original area width of the line (indicated by a dashed line) where the wall candidate exists is initially divided into two equal parts at the position of one. I do. Thereafter, until the presence or absence of the wall can be determined, the second time at the position 2 shown in FIG.
The wall inspection of steps 44 and 45 is performed in the subdivided area by repeating the halving such as the fourth time at the fourth and fourth positions. In steps 44 and 45,
It is checked whether or not each of the equally-divided areas P1 and P2 is filled with a wall.

【0102】ここでは、指定された領域(スタートアド
レスからエンドアドレスまで)の黒ドット数計測配列デ
ータを分析した結果、黒ドットのピーク(壁の厚みの広
がりを保って)高さが、指定された領域の幅(長さ)と
比較して次の〜の判断をする。
Here, as a result of analyzing the black dot number measurement array data in the designated area (from the start address to the end address), the height of the peak of the black dot (while keeping the thickness of the wall wide) is designated. The following (1) to (3) are compared with the width (length) of the region.

【0103】 :5%以下のとき、 v=0:非壁部と判断 :95%以上のとき、v=1:壁部と判断 :上記以外のとき、 v=2:どちらとも判断できな
い これを図に示すと図15に,,で示すようにな
る。
: When 5% or less, v = 0: Judge as non-wall part: When 95% or more, v = 1: Judge as wall part: Other than the above, v = 2: Neither can be judged As shown in the figure, it is as shown in FIG.

【0104】ステップ46においては、ステップ43で
分割された前半の領域P1について、壁が存在するかど
うか判断できない(v=2)場合はステップ47に進
み、そうでなければステップ49に進む。ステップ47
においては、ステップ43によって分割する前の領域範
囲の格納配列要素S〔k〕,E〔k〕,v〔k〕を、ス
テップ43で分割された後半の領域データ(スタート及
びエンド画像アドレスS2,E2と判定結果v2)で置
き換える。
In step 46, if it is not possible to determine whether a wall exists in the first half area P1 divided in step 43 (v = 2), the flow proceeds to step 47; otherwise, the flow proceeds to step 49. Step 47
In, the storage array elements S [k], E [k], and v [k] of the area range before being divided in step 43 are converted into the latter half of the area data (start and end image addresses S2, E2 is replaced with the determination result v2).

【0105】ステップ48においては、新しい格納配列
要素S〔n〕,E〔n〕,v〔n〕として、ステップ4
3で分割された前半の領域データ(スタート及びエンド
画像アドレスS1,E1と判定結果v1)を退避し、ス
テップ51に移行する。ステップ49においては、ステ
ップ43によって分割する前の領域範囲の格納配列要素
S〔k〕,E〔k〕,v〔k〕を、ステップ43で分割
された前半の領域データ(スタート及びエンド画像アド
レスS1,E1と判定結果v1)で置き換える。
In step 48, new storage array elements S [n], E [n], v [n] are set as step 4
The first half area data (start and end image addresses S1, E1 and determination result v1) divided by 3 are saved, and the process proceeds to step 51. In step 49, the storage array elements S [k], E [k], and v [k] of the area range before the division in step 43 are replaced with the first half area data (start and end image addresses) divided in step 43. S1 and E1 are replaced with the determination result v1).

【0106】ステップ50においては、新しい格納配列
要素S〔n〕,E〔n〕,v〔n〕として、ステップ4
3で分割された後半の領域データ(スタート及びエンド
画像アドレスS2,E2と判定結果v2)を退避し、ス
テップ51に移行する。ステップ51では、領域アドレ
スの新しい格納配列要素を示せるように新しい格納配列
要素No.を示す変数nを+1してから、ステップ52に
進む。
In step 50, new storage array elements S [n], E [n], v [n] are set as step 4
The second half area data (start and end image addresses S2, E2 and determination result v2) divided by 3 are saved, and the process proceeds to step 51. In step 51, the variable n indicating the new storage array element No. is incremented by 1 so as to indicate the new storage array element of the area address, and then the process proceeds to step 52.

【0107】ステップ52においては、壁部か非壁部か
が未確定である分割要素の最も小さいNo.を指すk要素
内の分類コードvが壁が存在するかどうか判らない内容
(v=2)の場合は、ステップ42に戻って更に細分割
する処理を繰り返す。そうでない場合はステップ53に
進む。ステップ53では、壁が存在するかどうか判らな
い内容が一つ解決したとして、その指標kを+1してか
らステップ54に進む。
In step 52, the classification code v in the k element indicating the smallest No. of the divided elements for which the wall portion or the non-wall portion is undetermined is a content for which it is not known whether or not a wall exists (v = 2 In the case of ()), the process returns to step 42 and the process of further subdividing is repeated. Otherwise, go to step 53. In step 53, it is determined that one content that cannot be determined whether or not a wall exists has been resolved, and the index k is incremented by one, and then the process proceeds to step 54.

【0108】ステップ54においては、壁分析のための
領域分割要素数nと、壁部か非壁部かが未確定である分
割要素の配列要素の最も小さいNo.を指すkとが、等し
くなっているかどうか判定し、等しければ壁認識のため
の分割処理が終了したと判断してステップ55へ進む。
等しくなければステップ52へ戻る。
In step 54, the number n of the area dividing elements for the wall analysis is equal to k indicating the smallest No. of the array elements of the dividing elements whose walls or non-walls are undetermined. It is determined whether or not they are equal, and if they are equal, it is determined that the division processing for wall recognition has been completed, and the flow proceeds to step 55.
If they are not equal, the process returns to step 52.

【0109】ステップ55においては、分割された領域
アドレス・データ(配列)が上昇順に並ぶよう、スター
トアドレス順(昇順)にソートを実行してステップ56
に移行する。すなわち、S
In step 55, sorting is performed in the order of the start addresses (ascending order) so that the divided area address data (array) is arranged in the ascending order.
Move to That is, S

〔0〕〜S〔n−1〕,E
[0] to S [n-1], E

〔0〕〜E〔n−1〕,v[0] to E [n-1], v

〔0〕〜v〔n−1〕のデー
タをS〔 〕をキーにして昇順にソートする。
The data [0] to v [n-1] are sorted in ascending order using S [] as a key.

【0110】ステップ56においては、壁部分及び非壁
部分が連続している場合は、それぞれ縮退処理(一つの
範囲で表現)して終了する。すなわち、連続したv
〔 〕値が0又は1の状態の場合は、S〔 〕,E
〔 〕データを圧縮する。なお、この時に、壁が存在す
るかどうか判らない内容(v=2)の配列要素を含む場
合は、その要素の前後の要素が壁を示している場合には
壁データに変更し、また、非壁を示している場合には非
壁データに変更して処理する。
In step 56, when the wall portion and the non-wall portion are continuous, the degeneracy process (represented by one range) is performed and the process ends. That is, continuous v
If the value of [] is 0 or 1, S [], E
[] Compress the data. At this time, if an array element having contents (v = 2) for which it is not known whether or not a wall exists is included, if the element before and after that element indicates a wall, the data is changed to wall data. If it indicates a non-wall, it is changed to non-wall data and processed.

【0111】上述した二等分割探索処理による画像デー
タ中の壁位置の分析例を図16に示す。この図16の
(a)には壁のイメージ画像(斜線を施した部分)Wと
その調査対象領域を破線で示しており、この調査領域は
先に認識された壁候補の存在位置に沿って設定される。
そして、S
FIG. 16 shows an example of analyzing the wall position in the image data by the above-mentioned halving search processing. In FIG. 16A, a wall image image (shaded portion) W and its investigation target area are indicated by broken lines, and this investigation area is located along the position of the previously recognized wall candidate. Is set.
And S

〔0〕=0がその調査領域の最初のスタート
アドレス、E
[0] = 0 is the first start address of the investigation area, E

〔0〕=15が最初のエンドアドレスであ
る。4,5,7等の途中の数字は分割後の対象領域のス
タート又はエンドアドレス(いずれも画像アドレス)で
ある。
[0] = 15 is the first end address. The numbers in the middle such as 4, 5, 7 are the start or end address (all are image addresses) of the target area after division.

【0112】図16の(b)には変数n=1〜10の各
調査段階における各対象領域のスタートアドレスS,エ
ンドアドレスE,及び壁の有無に関する判断結果vとそ
の確定状況、ソート状況、並びに縮退処理結果をkの値
と共に示している。そして、最終的には画像アドレス5
〜12に壁が存在することを認識している。
FIG. 16B shows the start address S, end address E, and judgment result v regarding the presence / absence of a wall of each target area at each investigation stage of variables n = 1 to 10, the confirmation status, the sorting status, Also, the result of the degeneration process is shown together with the value of k. And finally, the image address 5
Recognizing the presence of walls at ~ 12.

【0113】次に、図17によって簡単な建設図面の壁
認識例を説明する。この図17には、ネスト変数(ne
st)と、領域分割状態と認識された実際の壁の状態と
を示している。まず、ネスト変数=0で建設図面の全体
を壁位置の調査対象として壁の抽出を行なう。その結果
(A)に実線で示すように建設図面の家屋部の輪郭と水
平及び垂直方向の壁候補の位置を認識できたとする。し
かし、その認識できた壁候補のうち実際の壁は(a)に
示す部分だけであるが、それはまだ判らない。
Next, an example of a simple construction drawing wall recognition will be described with reference to FIG. FIG. 17 shows a nested variable (ne
(st) and the actual state of the wall recognized as the region division state. First, with the nest variable = 0, the wall is extracted with the entire construction drawing as the wall position survey target. As a result, it is assumed that the outline of the house in the construction drawing and the positions of the horizontal and vertical wall candidates can be recognized as indicated by the solid line in (A). However, among the recognized wall candidates, the actual wall is only the portion shown in (a), but it is not yet known.

【0114】そこで次に、ネスト変数=1にして、
(A)に示す認識できた壁候補の芯線で区切られた各矩
形領域毎に調査対象領域を限定して壁の抽出を行なう。
それによって(B)に,,,で示す4つの調査
対象領域で新たに太線で示す壁候補が認識されると共
に、先に認識された壁候補のうち、実際の壁は(a)に
示された部分だけであったことが確認され、(b)に示
す壁の状態が認識される。
Then, next, the nest variable = 1 is set, and
A wall is extracted by limiting the investigation target area for each rectangular area demarcated by the core line of the recognized wall candidate shown in FIG.
As a result, in (B), wall candidates indicated by thick lines are newly recognized in the four investigation target regions indicated by,, and among the previously recognized wall candidates, actual walls are indicated in (a). That is, it is confirmed that the part is only the part which has been changed, and the state of the wall shown in (b) is recognized.

【0115】さらに、ネスト変数=2にして、(B)に
おいて新たな壁候補が認識された4つの領域〜をそ
れぞれその新たに認識された壁によって分割して、調査
対象領域をさらに限定して壁の抽出を行なう。それによ
って、(C)に,で示す2つの調査対象領域で新た
に太線で示す壁候補が認識され、(c)に示す壁の状態
が認識される。
Further, by setting the nest variable = 2, the four regions in which the new wall candidate is recognized in (B) are divided by the newly recognized wall to further limit the region to be investigated. Extract the wall. As a result, a wall candidate indicated by a thick line is newly recognized in the two investigation target areas indicated by (C), and a state of the wall illustrated by (c) is recognized.

【0116】その後、ネスト変数=3にして、(C)に
おいて新たな壁候補が認識された2つの領域,をそ
れぞれその新たに認識された壁によって分割して、調査
対象領域をさらに限定して壁の抽出を行なう。その結果
いずれの分割領域でも新たな壁候補を抽出できなにかっ
た場合には、それによって壁位置の調査を終了し、
(c)に示す壁位置が最終的な壁認識結果であることが
確定し、そのデータをメモリに格納する。
Thereafter, the nest variable is set to 3, and the two regions in which the new wall candidate is recognized in (C) are divided by the newly recognized wall, respectively, to further limit the region to be investigated. Extract the wall. As a result, if it is not possible to extract a new wall candidate in any of the divided regions, the investigation of the wall position is thereby terminated,
It is determined that the wall position shown in (c) is the final wall recognition result, and the data is stored in the memory.

【0117】このように、分割した各調査対象領域のい
ずれでも新たな壁候補が抽出されなくなるまで、調査対
象領域を細分化して壁の抽出を行なう。それによって、
小さな壁でも確実に認識することができ、且つ壁候補の
うち実際には壁が存在する部分と存在しない部分とを正
確に判別することができる。
As described above, until no new wall candidate is extracted in any of the divided inspection target areas, the inspection target area is subdivided and the wall is extracted. Thereby,
Even a small wall can be reliably recognized, and a portion where a wall actually exists and a portion where no wall exists among wall candidates can be accurately determined.

【0118】ここでさらに、前述した図6のフローチャ
ートに従った具体的な建設図面の認識処理手順の例を、
図18乃至図20によって説明する。図18乃至図20
は一連の図であるが、図示の都合上3枚の図に分割して
示している。これらの図におけるS3〜S18は、図6
のS3〜S18の各ステップに対応している。また、各
段階での領域分割図と実壁状態も図示している。
Here, an example of a concrete construction drawing recognition procedure according to the flowchart of FIG.
This will be described with reference to FIGS. 18 to 20
Is a series of figures, which are divided into three figures for convenience of illustration. S3 to S18 in these figures are the same as those in FIG.
It corresponds to each step of S3 to S18. In addition, an area division diagram and an actual wall state at each stage are also shown.

【0119】以下の説明ではステップを「S」と略称す
る。図18のS3で図面全体を調査対象とし、S4でネ
スト変数を0にする。S5で調査対象の限定を行なうが
ネスト変数が0なのでやはり図面全体を調査対象とす
る。S6〜S7で水平方向の黒ドット数計測配列データ
を作成して壁を抽出するが、輪郭以外の壁を発見でき
ず、S8〜S9で垂直方向の黒ドット数計測配列データ
を作成して壁を抽出し、輪郭以外の壁を2か所に発見す
る。したがって、S10でYESになり、S11でネス
ト変数を1にし、S12で領域の細分化(各壁の位置
で)をしてS5へ戻り、調査対象領域を一番左の領域に
限定する。
In the following description, steps are abbreviated as “S”. In S3 of FIG. 18, the entire drawing is to be investigated, and the nest variable is set to 0 in S4. In S5, the search target is limited. However, since the nest variable is 0, the whole drawing is also set as the search target. In steps S6 and S7, the black dot number measurement array data in the horizontal direction is created and the wall is extracted. However, a wall other than the contour cannot be found, and the black dot number measurement array data in the vertical direction is created in S8 and S9. Is extracted, and a wall other than the contour is found in two places. Therefore, YES is determined in S10, the nest variable is set to 1 in S11, the area is subdivided (at each wall position) in S12, and the process returns to S5 to limit the investigation target area to the leftmost area.

【0120】そして、S6〜S7で壁を2か所に発見
し、S8〜S9では壁を発見できなかったがS10では
YESになり、S11でネスト変数を2にして「入れ子
処理」を、図19のS14でNOになり入れ子処理を終
了するまで繰り返し実行し、左側の縦長の領域を新たに
発見された2つの壁によって区切った3つの分割領域に
対して、順次壁の抽出処理を行なう。
Then, in S6 and S7, the wall was found in two places. In S8 and S9, the wall could not be found, but in S10, the result was YES. The processing is repeatedly executed until the result of the determination in S14 of NO becomes NO and the nesting processing is completed, and wall extraction processing is sequentially performed on three divided areas obtained by dividing the vertically long area on the left side by two newly discovered walls.

【0121】この例ではそれによって新たな壁は発見さ
れず、図19のS16でネスト変数を−1して1に戻
し、真中の縦長の領域を調査対象領域として同様に壁の
抽出を行なうが、この例では新たな壁候補は発見されな
い。そこで、S15,S5で右側の縦長の領域に調査対
象領域を変更し、S6〜S7で壁を1ケ所発見する。
In this example, no new wall is found, and the nest variable is decremented by 1 in step S16 in FIG. 19 to return it to 1, and a vertically elongated region in the middle is used as a region to be investigated, and a wall is similarly extracted. In this example, no new wall candidate is found. Therefore, the investigation target area is changed to the right vertically elongated area in S15 and S5, and one wall is found in S6 and S7.

【0122】そこで、図20のS10でYESになり、
S11でネスト変数を2にして「入れ子処理」を開始
し、右側の縦長の領域を新たに発見された壁によって分
割し、その各分割領の壁抽出処理を順次行なう。その結
果、いずれの分割領域でも新たな壁は発見されず、S1
3でNOになり入れ子処理を終了し、S16でネスト変
数を−1して1にするが、ネスト変数1の領域は残って
いないので、さらにネスト変数を0に戻すが、その領域
も残っていない。そのため、壁抽出の処理は完了したと
判断し、S17で抽出された壁候補の認識データにより
各壁の位置及びサイズを確定し、そのデータをメモリに
格納する。
Then, YES is obtained in S10 of FIG.
In step S11, the nesting variable is set to 2 and the "nesting process" is started, and the vertical region on the right is divided by a newly discovered wall, and the wall extraction process for each of the divided regions is sequentially performed. As a result, no new wall is found in any of the divided areas, and S1
At 3 the answer is NO and the nesting process is terminated, and the nest variable is decremented to 1 at S16. Since the area of the nest variable 1 does not remain, the nest variable is further returned to 0, but the area still remains. Absent. Therefore, it is determined that the wall extraction process has been completed, the position and size of each wall are determined based on the recognition data of the wall candidates extracted in S17, and the data is stored in the memory.

【0123】次に、上述のようにして認識した建設図面
の輪郭及び骨格に相当する壁の位置及びサイズ等の情報
(解析結果データ)を図1に示したメモリ4及び外部記
憶装置11の記憶媒体に格納する内容の一例について、
図21によって説明する。図21において、(A)はネ
スト数、(B)は固有ネスト情報、(C)水平方向の壁
情報、(D)は垂直方向の壁情報、(E)は水平な壁の
モデル、(F)は垂直な壁のモデルを示す。
Next, information (analysis result data) such as the position and size of the wall corresponding to the outline and skeleton of the construction drawing recognized as described above is stored in the memory 4 and the external storage device 11 shown in FIG. For an example of the content stored on the medium,
This will be described with reference to FIG. In FIG. 21, (A) is the number of nests, (B) is the specific nest information, (C) is the horizontal wall information, (D) is the vertical wall information, (E) is the model of the horizontal wall, (F) ) Indicates a vertical wall model.

【0124】ネスト数は、子ネストポインタの入れ子
(親子関係)の深さを示し、壁が全然認識されなかった
場合は、ネスト数=0である。固有ネスト情報は、ネス
トNo.,NEXT兄弟ポインタ,子ネストポインタ,壁
数(水平方向及び垂直方向),壁情報ポインタ(水平方
向及び垂直方向)からなる。
The number of nests indicates the depth of nesting (parent-child relationship) of child nest pointers. If no wall is recognized, the number of nests is zero. The unique nest information includes a nest No., a NEXT sibling pointer, a child nest pointer, the number of walls (horizontal and vertical directions), and a wall information pointer (horizontal and vertical directions).

【0125】NEXT兄弟ポインタは、同時階層ネスト
情報の次のアドレスを持つ。したがって、このポインタ
が示す場所の固有ネスト情報内のネストNo.は、当該処
理のものと同じ値である。子ネストポインタは、一階層
下の階層ネスト情報の先頭データのアドレスを持つ。し
たがって、このポインタが示す場所の固有ネスト情報内
のネストNo.は、当該処理のものに+1した値である。
The NEXT sibling pointer has the next address of the simultaneous hierarchical nest information. Therefore, the nest number in the unique nest information at the location indicated by the pointer has the same value as that of the processing. The child nest pointer has the address of the leading data of the hierarchy nest information one level lower. Therefore, the nest number in the specific nest information at the location indicated by this pointer is a value obtained by adding +1 to that of the processing.

【0126】(B)に示す固有ネスト情報中の水平方向
の壁情報ポインタが示すアドレスを先頭アドレスとし
て、(C)に示す水平方向の壁情報が格納される。その
壁情報は、次の水平方向の壁情報の先頭アドレスの位置
を示すNEXTポインタ、壁の始点座標(x座標:a,
y座標:b)、壁の横(x方向)サイズ:c、壁の縦
(y方向)サイズ:壁の厚みdからなる。これらのa〜
dによって(E)に示す水平な壁のモデルを記憶し、ま
たそれを再現することができる。
The horizontal wall information shown in (C) is stored with the address indicated by the horizontal wall information pointer in the unique nest information shown in (B) as the head address. The wall information includes a NEXT pointer indicating the position of the start address of the next horizontal wall information, and the starting point coordinates (x coordinate: a,
y coordinate: b), horizontal (x-direction) size of wall: c, vertical (y-direction) size of wall: wall thickness d. These a ~
By d, the model of the horizontal wall shown in (E) can be stored and reproduced.

【0127】同様に、固有ネスト情報中の垂直方向の壁
情報ポインタが示すアドレスを先頭アドレスとして、
(D)に示す垂直方向の壁情報が格納される。その壁情
報は、次の垂直方向の壁情報の先頭アドレスの位置を示
すNEXTポインタ、壁の始点座標(x座標:e,y座
標:f)、壁の縦(y方向)サイズ:g、壁の横(x方
向)サイズ:壁の厚みhからなる。これらのe〜hによ
って(F)に示す垂直な壁のモデルを記憶し、またそれ
を再現することができる。
Similarly, the address indicated by the vertical wall information pointer in the unique nest information is set as the head address.
The vertical wall information shown in (D) is stored. The wall information includes a NEXT pointer indicating the position of the start address of the next vertical wall information, the starting point coordinates of the wall (x coordinate: e, y coordinate: f), the vertical (y direction) size of the wall: g, the wall Horizontal (x-direction) size: Consists of wall thickness h. With these e to h, the model of the vertical wall shown in (F) can be stored and reproduced.

【0128】ところで、実際の建築図面の画像データに
対して、その図面全体を調査対象領域として水平方向及
び垂直方向の黒ドット数計測配列データを作成した例を
図10及び図11に示したが、その黒ドット数計測配列
データに基づいて壁候補を認識した次の段階で、その図
面の領域を認識した壁候補によって分割し、調査対象領
域を限定した画像データに基づく水平及び垂直方向の黒
ドット数計測配列データの作成例を、図22乃至図24
に示す。
By the way, FIGS. 10 and 11 show examples in which the black dot number measurement array data in the horizontal direction and the vertical direction is prepared with respect to the image data of an actual architectural drawing by using the whole drawing as an investigation area. In the next step of recognizing a wall candidate based on the black dot count measurement array data, the area of the drawing is divided by the recognized wall candidate, and black in the horizontal and vertical directions based on image data in which the investigation target area is limited. FIGS. 22 to 24 show examples of creating dot number measurement array data.
Shown in

【0129】図23及び図24は、図22よりさらに調
査対象領域を細分化した例である。このようにして、新
たな壁候補が発見されなくなるまで、調査対象領域を細
分化して、その画像データによる水平及び垂直方向の黒
ドット数計測配列データを作成し、壁の抽出を行なう。
FIGS. 23 and 24 are examples in which the investigation target area is further subdivided than in FIG. In this way, until no new wall candidates are found, the investigation target area is subdivided, and the horizontal and vertical black dot number measurement array data based on the image data is created, and the wall is extracted.

【0130】なお、この実施形態ではポジ画像の建設図
面を認識対象としたので、その2値化した画像データの
水平及び垂直方向の黒ドット数を計測(カウント)して
黒ドット数計測配列データを作成したが、ネガ画像の建
設図面を認識対象とする場合には、その2値化した画像
データの水平及び垂直方向の白ドット数を計測(カウン
ト)して白ドット数計測配列データを作成すれば、壁の
認識を同様に行なうことができる。
In this embodiment, since the construction drawing of the positive image is targeted for recognition, the number of black dots in the horizontal and vertical directions of the binarized image data is measured (counted) to calculate the black dot number array data. However, when the construction drawing of the negative image is to be recognized, the number of white dots in the horizontal and vertical directions of the binarized image data is measured (counted) and the white dot number measurement array data is created. Then, the wall can be recognized in the same manner.

【0131】また、上述のようにして認識した建設図面
の輪郭及び骨格に関する認識データは、CAD用ベクト
ルデータに変換をすることができ、異機種間のCADデ
ータの互換性を得ることができる。
Further, the recognition data concerning the outline and skeleton of the construction drawing recognized as described above can be converted into CAD vector data, and compatibility of CAD data between different models can be obtained.

【0132】さらに、この実施形態では黒ドットからな
る部分の輪郭を水平方向及び垂直方向の両方向又は斜め
方向に所定ドット数拡張する2値画像拡張処理を施し、
それによって途切れた線を結合し、また多少傾いた直線
でも射影特徴抽出できる状態の画像データにして壁など
の認識処理を行なうので、次に示すようなメリットがあ
る。
Further, in this embodiment, a binary image expansion process is performed in which the contour of the portion consisting of black dots is expanded by a predetermined number of dots in both the horizontal and vertical directions or in the oblique direction,
As a result, the broken lines are combined, and even if the straight line is slightly inclined, the image data in a state in which the projective feature can be extracted is used for the recognition processing of the wall and the like, and therefore the following advantages are obtained.

【0133】(1)壁を水平及び垂直の細い1本線で記
述しても確実に認識できる。 (2)線を引く道具としては黒線が粗く不連続になるよ
うな鉛筆などの文房具で記述された建築図面でも確実に
認識することができる。 (3)定規などを使用せずにフリーハンドで記述された
図面でも、壁の記述において線の揺らぎを相殺すると、
水平及び垂直方向への正対性がよければ認識することが
できる。
(1) Even if a wall is described by a thin horizontal and vertical single line, it can be surely recognized. (2) As a tool for drawing a line, even an architectural drawing described with a stationery such as a pencil in which a black line is coarse and discontinuous can be reliably recognized. (3) Even in drawings written freehand without using a ruler, etc., if the fluctuation of the line is offset in the description of the wall,
If the correctness in the horizontal and vertical directions is good, it can be recognized.

【0134】なお、手書き図面でスキュー補正が困難な
場合、手書き図面を方眼紙に記述して、スキュー補正は
その方眼紙のマス目を利用して行なうようにするとよ
い。また、やむをえず利用者の手作業に委ねる場合、ス
キャナ読込時にできるだけスキュー補正が不要な正対す
る図面を作成するように注意を促すマニュアルを添える
とよい。
When it is difficult to correct the skew in the handwritten drawing, it is preferable to describe the handwritten drawing on the graph paper and perform the skew correction by using the grid of the graph paper. If it is unavoidable to leave it to the user's manual work, a manual may be attached to draw attention to creating a facing drawing that requires as little skew correction as possible when reading the scanner.

【0135】[0135]

【発明の効果】以上説明してきたように、この発明の建
設図面認識方法及び認識装置によれば、従来正確な認識
が困難であった線が途切れたり直線が多少傾いて記載さ
れた手書き図面や、青焼きなどの比較的コントラストが
低い図面や、ノイズの多い図面あるいは古い建設図面な
ど、記載状態や画質の悪い建設図面でも、簡単にその輪
郭及び骨格、特に壁を精度よく認識することができる。
As described above, according to the construction drawing recognition method and the recognition apparatus of the present invention, a handwritten drawing in which a line which has been difficult to be recognized accurately or a straight line is slightly inclined is described. , It is possible to easily and accurately recognize the contour and skeleton of a construction drawing, such as blueprint, which has a relatively low contrast, a drawing with a lot of noise, or an old construction drawing, which has a poor description or poor image quality. .

【0136】特に、最初に図面全体に対して認識した輪
郭及び骨格に基づいて、その認識対象を細分化するよう
にその対象範囲を限定し、その範囲毎に建設図面のイメ
ージ画像データの水平方向及び垂直方向の黒又は白ドッ
トの数計測配列データを作成し、その両方向のドット数
計測配列データに基づいて上記限定した各範囲内の建設
図面の輪郭及び骨格を認識することを、新たな輪郭又は
骨格を認識できなくなるまで繰り返すようにすれば、短
い壁等の骨格をも確実に認識でき、且つ実際には存在し
ない部分の輪郭や骨格を誤認識する恐れもなくなる。
In particular, the target range is limited so as to subdivide the recognition target based on the outline and skeleton recognized first for the entire drawing, and the horizontal direction of the image image data of the construction drawing is limited for each range. And vertical black or white dot number measurement array data are created, and based on the dot number measurement array data in both directions, recognizing the outline and skeleton of the construction drawing within each of the above-mentioned limited ranges, a new outline Alternatively, if the process is repeated until the skeleton cannot be recognized, the skeleton such as a short wall can be surely recognized, and there is no risk of erroneously recognizing the outline or skeleton of a portion that does not actually exist.

【0137】また、その認識したデータをパソコンなど
に取り込んで利用すれば、増改築の際の見取り図などの
建設図面を容易且つ迅速に作成することが可能になる。
さらに、建設図面のイメージデータをランレングス符号
化した画像データとしてFAX通信等によって入力し、
その建設図面の輪郭及び骨格を認識することもできる。
Further, if the recognized data is loaded into a personal computer or the like and used, a construction drawing such as a sketch at the time of extension and renovation can be easily and quickly created.
Furthermore, the image data of the construction drawing is input as run-length encoded image data by facsimile communication or the like,
It is also possible to recognize the outline and skeleton of the construction drawing.

【0138】そしてまた、一般の建設図面における最小
壁間隔に相当する半間あるいは1mに相当する間隔ごと
にドット数計測配列データのピーク値があるか否かを解
析することにより、壁認識の精度を高めることができ
る。さらに、壁及びその芯線あるいは内壁と外壁を認識
することもできる。
Further, by analyzing whether or not there is a peak value of the dot number measurement array data at a half interval corresponding to the minimum wall interval in a general construction drawing or at intervals corresponding to 1 m, the accuracy of wall recognition is improved. Can be increased. Further, it is possible to recognize the wall and its core wire or the inner wall and the outer wall.

【0139】さらに、輪郭・骨格認識手段により認識し
た結果を表示することにより、その認識結果を確認し、
確定することができる。その場合、入力した後に輪郭を
拡張した建設図面のイメージ画像データを認識結果と同
時にあるいは選択的に表示することにより、その表示内
容を比較検討して、誤認識箇所や認識できなかった部分
を見つけることができる。入力して輪郭を拡張したイメ
ージ画像データと認識結果とを重ね合わせて表示すれ
ば、誤認識箇所や認識できなかった部分の発見及びその
修正が一層容易になる。
Further, by displaying the result recognized by the contour / skeleton recognition means, the recognition result is confirmed,
Can be confirmed. In this case, the image data of the construction drawing whose contour has been expanded after input is displayed simultaneously with the recognition result or selectively, so that the displayed contents are compared and examined to find erroneously recognized parts or unrecognized parts. be able to. If the image image data whose input contour has been expanded and the recognition result are displayed in a superposed manner, it becomes easier to find and correct an erroneously recognized portion or a portion that cannot be recognized.

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

【図1】この発明による建設図面認識方法を実施する建
設図面認識装置の一例の概略構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a schematic configuration of an example of a construction drawing recognition device for implementing a construction drawing recognition method according to the present invention.

【図2】図1の表示部9における再マッピングされた認
識結果の画像データの表示例を示す図である。
FIG. 2 is a diagram showing a display example of image data of a re-mapped recognition result on a display unit 9 of FIG. 1;

【図3】同じくスキュー補正して輪郭を拡張した建設図
面の入力画像データを認識結果の画像データと重ね合わ
せて表示した例を示す図である。
FIG. 3 is a diagram showing an example in which input image data of a construction drawing whose skew has been corrected and whose contour has been expanded is displayed by being superimposed on image data of a recognition result.

【図4】建設図面における外輪郭,外壁,内壁及び骨格
の定義を説明するための図である。
FIG. 4 is a diagram for explaining the definition of an outer contour, an outer wall, an inner wall, and a skeleton in a construction drawing.

【図5】図1に示した建設図面認識装置による建設図面
認識処理のメインルーチンを示すフローチャートであ
る。
FIG. 5 is a flowchart showing a main routine of construction drawing recognition processing by the construction drawing recognition device shown in FIG. 1;

【図6】図2におけるステップAの壁の位置認識処理の
サブルーチンの詳細を示すフロー図である。
FIG. 6 is a flowchart showing details of a subroutine of wall position recognition processing of step A in FIG.

【図7】図6におけるステッブ7及び9の壁の抽出(認
識)処理のサブルーチンのフロー図である。
FIG. 7 is a flowchart of a subroutine of extraction (recognition) processing of walls of steps 7 and 9 in FIG. 6;

【図8】同じく壁の位置を認識する2等分探索法を実行
処理するフロー図である。
FIG. 8 is a flowchart for executing a bisection search method for recognizing the position of a wall.

【図9】調査対象領域内の壁候補とそれによる領域分割
例及び壁候補によって細分化された領域群のネストN
o.とその解析処理順序の一例を示す説明図である。
FIG. 9 is a diagram illustrating an example of a wall candidate in a survey target region, a region division by the wall candidate, and a nest N of a region group subdivided by the wall candidate.
o. FIG. 4 is an explanatory diagram showing an example of the order of analysis processing.

【図10】建築図面(家屋の間取り図)の画像データと
その全領域から作成した水平及び垂直方向の黒ドット数
計測配列データの具体例を示す図である。
FIG. 10 is a diagram showing a specific example of image data of an architectural drawing (floor floor plan) and black dot number measurement array data in the horizontal and vertical directions created from the entire area thereof.

【図11】同じくその他の具体例を示す図である。FIG. 11 is a diagram showing another specific example.

【図12】図10の(c)に示した垂直方向の黒ドット
数計測配列データを拡大して示す図である。
FIG. 12 is an enlarged view showing the arrangement data of the black dot number measurement array in the vertical direction shown in FIG.

【図13】図6のステップ26におけるピークの両側又
は片側に壁の両面を絞り込む処理の説明図である。
FIG. 13 is an explanatory diagram of a process of narrowing both sides of the wall to both sides or one side of the peak in step 26 of FIG.

【図14】図7のステップ43における領域幅の分割処
理の説明図である。
14 is an explanatory diagram of region width division processing in step 43 of FIG. 7. FIG.

【図15】図7のステップ44,45における対象領域
の壁調査による判断の説明図である。
15 is an explanatory diagram of the determination by wall survey of the target area in steps 44 and 45 of FIG.

【図16】図7に示した2等分割探索処理による壁のサ
ンプル(壁候補)の分析例を示す説明図である。
16 is an explanatory diagram showing an example of analysis of a wall sample (wall candidate) by the equally divided search process shown in FIG. 7. FIG.

【図17】この発明による簡単な建設図面の壁認識例の
説明図である。
FIG. 17 is an explanatory diagram of a wall recognition example of a simple construction drawing according to the present invention.

【図18】図5のフローチャートに従った具体的な建設
図面の認識処理手順の例を示す説明図である。
FIG. 18 is an explanatory diagram showing an example of a specific construction drawing recognition processing procedure according to the flowchart of FIG. 5;

【図19】図18の続きの説明図である。FIG. 19 is an explanatory view continued from FIG. 18;

【図20】図19の続きの説明図である。FIG. 20 is an explanatory view continued from FIG. 19;

【図21】解析結果データのメモリへの格納内容の一例
を示す説明図である。
FIG. 21 is an explanatory diagram showing an example of the contents of analysis result data stored in a memory;

【図22】図10に示した建築図面の調査対象領域を限
定した画像データとそれに基づく水平及び垂直方向の黒
ドット数計測配列データの例を示す図である。
22 is a diagram showing an example of image data of the architectural drawing shown in FIG. 10 in which the investigation target area is limited, and the array data of the number of black dots measured in the horizontal and vertical directions based on the image data.

【図23】図22より調査対象領域をさらに限定した画
像データとそれに基づく水平及び垂直方向の黒ドット数
計測配列データの例を示す図である。
FIG. 23 is a diagram showing an example of image data in which the investigation target area is further limited from FIG. 22, and an example of the arrangement data of the number of black dots in the horizontal and vertical directions based on the image data.

【図24】図22より調査対象領域をさらに限定した他
の部分の画像データとそれに基づく水平及び垂直方向の
黒ドット数計測配列データの例を示す図である。
24 is a diagram showing an example of image data of another portion in which the investigation target area is further limited from FIG. 22 and black dot count measurement array data in the horizontal and vertical directions based on the image data.

【図25】図5のステップBにおける画像データが建物
の図面としての体裁を保てるか否かを判断するときの画
像処理の説明図である。
FIG. 25 is an explanatory diagram of image processing for determining whether or not the image data in step B of FIG. 5 can maintain the appearance as a drawing of the building.

【図26】図1に示した建設図面認識装置による建設図
面認識処理の処理対象の画像データの一例を示す図であ
る。
26 is a diagram showing an example of image data to be processed by the construction drawing recognition processing by the construction drawing recognition apparatus shown in FIG.

【図27】図26に示した画像データに2値画像拡張処
理を施した後に図5のステップAによる壁認識処理を施
したときに得られる画像データを示す図である。
27 is a diagram showing image data obtained when the wall recognition process in step A of FIG. 5 is performed after the binary image expansion process is performed on the image data shown in FIG. 26.

【図28】図27に示した画像データに図5のステップ
Bによる判断処理を施すときに得た画像データを示す図
である。
28 is a diagram showing image data obtained when the determination process in step B of FIG. 5 is performed on the image data shown in FIG. 27.

【図29】図28に示した画像データに図5のステップ
Cによる2値画像拡張処理を施したときに得られた画像
データを示す図である。
FIG. 29 is a diagram showing image data obtained when the binary image expansion processing in step C of FIG. 5 is performed on the image data shown in FIG. 28.

【図30】図29に示した画像データに図5のステップ
Aによる壁認識処理を施したときに得られた画像データ
を示す図である。
30 is a diagram showing image data obtained when the wall recognition processing in step A of FIG. 5 is performed on the image data shown in FIG. 29.

【図31】図30に示した画像データに図5のステップ
Bによる判断処理を施すときに得た画像データを示す図
である。
31 is a diagram showing image data obtained when the determination process in step B of FIG. 5 is performed on the image data shown in FIG. 30.

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

1:全体制御部 2:画像読取部 3:通信制御部 4:メモリ 5:自動スキュー補正部 6:ドット数計測配列データ作成部 7:輪郭・骨格認識部 8:再マッピング制御部 9:表示部 10:操作入力部 11:外部記憶装置 12:印刷装置 13:拡張処理部 14:バス 1: Overall control unit 2: Image reading unit 3: Communication control unit 4: Memory 5: Automatic skew correction unit 6: Dot count measurement array data creation unit 7: Contour / skeleton recognition unit 8: Remapping control unit 9: Display unit 10: Operation input unit 11: External storage device 12: Printing device 13: Expansion processing unit 14: Bus

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 建設図面の画像を読み取ったイメージ画
像データの黒又は白ドットからなる部分の輪郭を拡張
し、その輪郭を拡張したイメージ画像データの水平及び
垂直方向の黒又は白ドット数を計測して水平及び垂直方
向のドット数計測配列データを作成し、その作成した両
方向のドット数計測配列データに基づいて建設図面の輪
郭及び骨格を認識することを特徴とする建設図面認識方
法。
1. The number of black or white dots in the horizontal and vertical directions of the image image data obtained by expanding the outline of a portion consisting of black or white dots of the image image data obtained by reading an image of a construction drawing and expanding the outline. A method for recognizing a construction drawing in which horizontal and vertical dot number measurement array data is created, and the contour and skeleton of the construction drawing are recognized based on the created dot number measurement array data in both directions.
【請求項2】 建設図面の画像を読み取ったイメージ画
像データの黒又は白ドットからなる部分の輪郭を拡張
し、その輪郭を拡張したイメージ画像データの水平及び
垂直方向の黒又は白ドット数を計測して水平及び垂直方
向のドット数計測配列データを作成し、その作成した両
方向のドット数計測配列データに基づいて建設図面の輪
郭及び骨格を認識し、その認識した輪郭及び骨格に基づ
いて限定した範囲毎に前記イメージ画像データの水平方
向及び垂直方向の黒又は白ドット数を計測して再度水平
及び垂直方向のドット数計測配列データを作成し、その
作成した両方向のドット数計測配列データに基づいて前
記限定した各範囲内の建設図面の輪郭及び骨格を認識す
ることを、新たな輪郭又は骨格を認識できなくなるまで
繰り返すことを特徴とする建設図面認識方法。
2. The number of black or white dots in the horizontal and vertical directions of the image image data obtained by expanding the contour of the portion consisting of black or white dots of the image image data obtained by reading the image of the construction drawing is measured. Then, the dot number measurement array data in the horizontal and vertical directions is created, the contour and skeleton of the construction drawing are recognized based on the created dot number measurement array data in both directions, and the limitation is made based on the recognized contour and skeleton. The number of black or white dots in the horizontal and vertical directions of the image image data is measured for each range, and the dot number measurement array data in the horizontal and vertical directions is created again, and based on the created dot number measurement array data in both directions. And recognizing the outline and skeleton of the construction drawing within each of the limited ranges described above are repeated until a new outline or skeleton cannot be recognized. A method for recognizing construction drawings.
【請求項3】 建設図面の画像を読み取ったイメージ画
像データを入力する画像データ入力手段と、該手段によ
って入力したイメージ画像データの黒又は白ドットから
なる部分の輪郭を拡張する拡張手段と、該手段によって
輪郭を拡張したイメージ画像データの水平及び垂直方向
の黒又は白ドット数を計測して水平及び垂直方向のドッ
ト数計測配列データを作成するドット数計測配列データ
作成手段と、該手段により作成された両方向のドット数
計測配列データに基づいて建設図面の輪郭及び骨格を認
識する輪郭・骨格認識手段とを有することを特徴とする
建設図面認識装置。
3. An image data inputting means for inputting image image data obtained by reading an image of a construction drawing, an expanding means for expanding the contour of a portion of the image image data input by the means, which is composed of black or white dots, Dot number measurement array data creation means for creating horizontal and vertical dot number measurement array data by measuring the number of black or white dots in the horizontal and vertical directions of the image image data whose contour has been expanded by the means, and by the means A construction drawing recognizing device, comprising: a contour / skeleton recognizing means for recognizing a contour and a skeleton of a construction drawing based on the generated dot number measurement array data in both directions.
【請求項4】 前記画像データ入力手段が、建設図面の
画像を読み取ってそのイメージ画像データを入力する画
像読取手段である請求項3記載の建設図面認識装置。
4. The construction drawing recognizing apparatus according to claim 3, wherein the image data input means is an image reading means for reading an image of a construction drawing and inputting image data of the image.
【請求項5】 建設図面の画像を読み取ったイメージ画
像データのランレングスを符号化した符号化画像データ
を入力する画像データ入力手段と、該手段によって入力
した符号化画像データから元のイメージ画像データの黒
又は白ドットからなる部分の輪郭を拡張する拡張手段
と、該手段によって輪郭を拡張したイメージ画像データ
の水平及び垂直方向の黒又は白ドット数を計測して水平
及び垂直方向のドット数計測配列データを作成するドッ
ト数計測配列データ作成手段と、該手段により作成され
た両方向のドット数計測配列データに基づいて建設図面
の輪郭及び骨格を認識する輪郭・骨格認識手段とを有す
ることを特徴とする建設図面認識装置。
5. Image data input means for inputting encoded image data obtained by encoding run lengths of image image data obtained by reading an image of a construction drawing, and original image image data from the encoded image data input by the means. Expansion means for expanding the contour of a portion consisting of black or white dots, and measuring the number of black or white dots in the horizontal and vertical directions of the image image data whose contour is expanded by the means to measure the number of dots in the horizontal and vertical directions. It has a dot number measurement array data creating means for creating array data, and a contour / skeleton recognizing means for recognizing a contour and a skeleton of a construction drawing based on the dot number measuring array data in both directions created by the means. A construction drawing recognition device.
【請求項6】 前記画像データ入力手段が、前記符号化
画像データを通信により受信して入力する画像データ受
信手段である請求項5記載の建設図面認識装置。
6. The construction drawing recognition apparatus according to claim 5, wherein said image data input means is image data receiving means for receiving and inputting said encoded image data by communication.
【請求項7】 請求項3乃至6のいずれか一項に記載の
建設図面認識装置において、前記輪郭・骨格認識手段に
よって認識された輪郭及び骨格に基づいて前記イメージ
画像データの範囲を限定し、その各範囲毎に前記ドット
数計測配列データ作成手段によって再度前記水平及び垂
直方向のドット数計測配列データを作成させ、その作成
した両方向のドット数計測配列データに基づいて前記輪
郭・骨格認識手段に前記各限定した範囲内の建設図面の
輪郭及び骨格を認識させることを、新たな輪郭又は骨格
を認識できなくなるまで繰り返す手段を有することを特
徴とする建設図面認識装置。
7. The construction drawing recognition device according to claim 3, wherein the range of the image data is limited based on the contour and the skeleton recognized by the contour / skeleton recognition means. The dot number measurement array data creating means for each range again creates the dot number measurement array data in the horizontal and vertical directions, and the contour / skeleton recognizing means based on the created dot number measurement array data in both directions. A construction drawing recognizing device comprising: means for repeating recognition of the contours and skeletons of the construction drawings within the respective limited ranges until a new contour or skeleton cannot be recognized.
【請求項8】 請求項3乃至7のいずれか一項に記載の
建設図面認識装置において、前記輪郭・骨格認識手段に
よる認識結果を表示する表示手段を設けたことを特徴と
する建設図面認識装置。
8. The construction drawing recognition device according to claim 3, further comprising display means for displaying a recognition result by the contour / skeleton recognition means. .
【請求項9】 請求項8記載の建設図面認識装置におい
て、前記表示手段は、前記拡張手段により輪郭を拡張し
たイメージ画像データを前記認識結果と同時に表示する
手段を有することを特徴とする建設図面認識装置。
9. The construction drawing recognizing device according to claim 8, wherein the display means has means for displaying image image data whose contour is expanded by the expanding means at the same time as the recognition result. Recognition device.
【請求項10】 請求項9記載の建設図面認識装置にお
いて、前記イメージ画像データを前記認識結果と同時に
表示する手段は、前記輪郭を拡張したイメージ画像デー
タを前記認識結果と重ね合わせて表示する手段であるこ
とを特徴とする建設図面認識装置。
10. The construction drawing recognition apparatus according to claim 9, wherein the means for displaying the image image data at the same time as the recognition result is means for displaying the image image data in which the contour has been expanded, overlapping the recognition result. The construction drawing recognition device characterized by being.
【請求項11】 請求項8記載の建設図面認識装置にお
いて、前記拡張手段により輪郭を拡張したイメージ画像
データと前記認識結果とを選択的に表示するように表示
内容を変更する表示選定手段を設けたことを特徴とする
建設図面認識装置。
11. The construction drawing recognition device according to claim 8, further comprising display selection means for changing display contents so as to selectively display image image data whose contour is expanded by said expansion means and said recognition result. A construction drawing recognition device characterized in that
【請求項12】 請求項8乃至11のいずれか一項に記
載の建設図面認識装置において、前記表示手段に表示し
た前記認識結果を外部からの指示により確定する認識結
果確認手段を設けたことを特徴とする建設図面認識装
置。
12. The construction drawing recognition device according to claim 8, further comprising a recognition result confirmation means for confirming the recognition result displayed on the display means by an external instruction. Characterizing construction drawing recognition device.
JP28226095A 1995-10-30 1995-10-30 Construction drawing recognition method and recognition device Expired - Lifetime JP3595393B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP28226095A JP3595393B2 (en) 1995-10-30 1995-10-30 Construction drawing recognition method and recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP28226095A JP3595393B2 (en) 1995-10-30 1995-10-30 Construction drawing recognition method and recognition device

Publications (2)

Publication Number Publication Date
JPH09128425A true JPH09128425A (en) 1997-05-16
JP3595393B2 JP3595393B2 (en) 2004-12-02

Family

ID=17650143

Family Applications (1)

Application Number Title Priority Date Filing Date
JP28226095A Expired - Lifetime JP3595393B2 (en) 1995-10-30 1995-10-30 Construction drawing recognition method and recognition device

Country Status (1)

Country Link
JP (1) JP3595393B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10198805A (en) * 1996-12-31 1998-07-31 Ricoh Co Ltd Toilet recognizing method from construction drawing, and construction drawing recognizing device
JPH11110548A (en) * 1997-09-30 1999-04-23 Ricoh Co Ltd Method and device for recognizing door from building drawing
JP2019121386A (en) * 2017-12-28 2019-07-22 ダッソー システムズDassault Systemes Generating 3d models representing buildings

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10198805A (en) * 1996-12-31 1998-07-31 Ricoh Co Ltd Toilet recognizing method from construction drawing, and construction drawing recognizing device
JPH11110548A (en) * 1997-09-30 1999-04-23 Ricoh Co Ltd Method and device for recognizing door from building drawing
JP2019121386A (en) * 2017-12-28 2019-07-22 ダッソー システムズDassault Systemes Generating 3d models representing buildings

Also Published As

Publication number Publication date
JP3595393B2 (en) 2004-12-02

Similar Documents

Publication Publication Date Title
JPH08293001A (en) Image processing unit and method and optical character recognition unit and method
JP2021124933A (en) System for generating image
JP3571128B2 (en) Method and apparatus for recognizing dimensions of drawings
JP3595393B2 (en) Construction drawing recognition method and recognition device
JP3516541B2 (en) Method and apparatus for recognizing dimension information of construction drawings
JP3516502B2 (en) Construction drawing recognition method and recognition device
JP3658468B2 (en) Architectural drawing recognition method and recognition device
JP3516540B2 (en) Construction drawing recognition method and recognition device
JP3679241B2 (en) Construction drawing recognition method and recognition apparatus
JP3678523B2 (en) Construction drawing recognition method and construction drawing recognition apparatus
JPH10105592A (en) Method and device for recognizing building drawing
JP3686214B2 (en) Construction drawing recognition method and recognition apparatus
JP3648006B2 (en) Toilet recognition method and construction drawing recognition device from construction drawings
JP3678521B2 (en) Construction drawing recognition method and recognition apparatus
JP3645404B2 (en) Method and apparatus for recognizing door from architectural drawing
JP3545481B2 (en) Image recognition method and apparatus
JPH11259550A (en) Construction drawing recognition method and recognition device and computer readable recording medium recording program therefor
JP2000194744A (en) Method and device for processing image data of construction drawing and computer readable recording medium recording control program therefor
JP2000187730A (en) Method and device for processing picture data of construction drawing and computer readable recording medium storing control program for the method
JP3607433B2 (en) Method and apparatus for extracting electrical symbols from construction drawings
CN112906469A (en) Fire-fighting sensor and alarm equipment identification method based on building plan
JP3701778B2 (en) Architectural drawing recognition method and architectural drawing recognition device
JP2003216958A (en) Device, method and program for detecting polygon
JPH0589142A (en) House evaluation point calculation processor
JP3595394B2 (en) Drawing recognition method and apparatus

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040113

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040311

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040601

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040730

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: 20040824

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040903

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

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080910

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090910

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100910

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110910

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120910

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 9

EXPY Cancellation because of completion of term