JPH11250114A - Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program - Google Patents

Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program

Info

Publication number
JPH11250114A
JPH11250114A JP10049126A JP4912698A JPH11250114A JP H11250114 A JPH11250114 A JP H11250114A JP 10049126 A JP10049126 A JP 10049126A JP 4912698 A JP4912698 A JP 4912698A JP H11250114 A JPH11250114 A JP H11250114A
Authority
JP
Japan
Prior art keywords
image data
color
image
construction drawing
horizontal
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
JP10049126A
Other languages
Japanese (ja)
Other versions
JP3679241B2 (en
Inventor
Yutaka Miyoshi
豊 三好
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 JP04912698A priority Critical patent/JP3679241B2/en
Publication of JPH11250114A publication Critical patent/JPH11250114A/en
Application granted granted Critical
Publication of JP3679241B2 publication Critical patent/JP3679241B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately recognize the contour and framework (walls) of a house drawn in a construction drawing constituted of plural colors. SOLUTION: An image reader 2 reads out an image of a construction drawing constituted of plural colors and a specific color extracting/removing part 13 extracts or removes the image data of a specific color from the read color image data. A number-of-dots measurement array data preparing part 6 measures the number of color dots (black dots in the case of a black-and-white data) or the number of white clots in horizontal and vertical directions from the extracted image data or image data left after removal and prepares horizontal and vertical number-of-dots measurement array data and a contour/ framework recognizing part 7 recognizes the contour and framework of the construction drawing based on the horizontal and vertical number-of-dots measurement array data.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、建築・建設設備
業や不動産等の固定資産を取り扱う業種など、建築・建
設図面を利用する業務を支援するもので、意図的に色分
けして複数の情報が記述された建築・建設図面からその
輪郭及び骨格を認識する方法及びその装置と、コンピュ
ータによってその機能を実現するための制御プログラム
を記録したコンピュータ読み取り可能な記録媒体に関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention supports the use of architectural / construction drawings, such as the construction / construction equipment business and the business dealing with fixed assets such as real estate. The present invention relates to a method and an apparatus for recognizing a contour and a skeleton from an architectural / construction drawing in which a function is described, and a computer-readable recording medium in which a control program for realizing the function by a computer is recorded.

【0002】[0002]

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

【0003】そこで、紙に描かれた建設図面を読み取っ
て、コンピュータで処理できるデータとして認識して記
憶させることも試みられているが、そのための特別な方
法や装置はなく、建設図面をイメージスキャナで読み取
り、そのイメージ画像データをパーソナルコンピュータ
等に入力させて、一般の図形認識機能を利用して線分認
識やパターン認識を行なっている。あるいはさらに、高
機能の図形エディタを補助に使うことによって図形認識
機能をレベルアップし、自動認識機能が多少不完全な場
合でも、例えばラスタ・ベクタ変換することにより直線
や円弧等の基本線図を自動認識できるようにしたものも
ある。
[0003] Therefore, it has been attempted to read a construction drawing drawn on paper and recognize and store the data as data that can be processed by a computer. However, there is no special method or apparatus for that, and the construction drawing is image-scanned. And input the image data to a personal computer or the like, and perform line segment recognition and pattern recognition using a general graphic 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 the like, and its use is limited to persons who are accustomed to using a personal computer or the like or a specialized operator, and the construction drawing is not used. It was far from easy to use for those who use it frequently. Although basic diagrams such as straight lines and circular arcs can be automatically recognized, graphic symbols unique to construction drawings (such as walls and columns) composed of combinations of basic diagrams can be individually recognized. Did not. Therefore, when the recognized drawing is corrected, it must be performed for each line segment, which requires much labor.

【0005】さらに、建設業において使用される家屋や
ビル等の建設図面は、その図面上の各線分が人間の目に
は同じ大きさの連続線として見えても、厳密に見れば太
さも一様でなく、軌跡もゆらいでいる。また、連続線の
はずであっても所々切れている場合もある。これらの不
完全さは作図時のみならず、用紙の経年変化や読み取り
時の誤差などからも生じるものである。そのため、例え
ば線分として認識できる太さの限界があまり細いと、わ
ずかなかすれでも線分が切れていると認識してしまう。
また太めの線分を長方形のように認識してしまうことも
ある。
Further, in the construction drawings of houses and buildings used in the construction industry, even if each line segment on the drawings appears as continuous lines of the same size to the human eye, if they are viewed strictly, they have a thickness of one. The trajectory is not fluctuating. 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.

【0006】これは、原図の品質は勿論であるが、感光
紙を使用したいわゆる青焼き図面のようにコントラスト
が低い(黒と白の境界がはっきりしない)図面が多く、
さらにその青焼きの特徴である細かな点が表面に現れる
ため、従来の図面認識装置では精度の高い自動認識をす
ることは困難であり、その修正に多くの手間を要するの
で殆ど実用にならなかった。
[0006] 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.

【0007】ところで、家屋の建設図面(建築図面)で
は間取りを仕切る壁が図面の中心的役割を果たし、図面
中のどの部分が壁であるかを認識することによって、建
設図面のおおよその間取りを理解することができる。従
って、図面中の壁の位置及びその長さを認識すること
は、建設図面を認識する上で最も重要な事項である。
By the way, in a house construction drawing (architectural drawing), a wall partitioning a floor plan plays a central role in the drawing, and by recognizing which part in the drawing is a wall, the approximate drawing of the construction drawing is made. 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.

【0008】さらに、建設・設備業で使用する図面は、
意図的に色分けして複数の情報を記述されていたり、色
付きの用紙上に、用紙色と異なる色のペンで記述又は印
刷されているなど、複数色で構成されることが多い。そ
のため、図面のイメージ画像データを、図面全体に単色
の濃淡値又は2値化したデータで認識しようとしても、
色分けした複数の情報を識別することが非常に困難であ
る。
Further, the drawings used in the construction / equipment industry are:
It is often composed of a plurality of colors, such as a plurality of pieces of information being described intentionally by color, or being described or printed on a colored sheet with a pen of a color different from the sheet color. Therefore, even if an attempt is made to recognize the image data of the drawing as a single color shading value or binarized data throughout the drawing,
It is very difficult to distinguish a plurality of pieces of color-coded information.

【0009】そのため、図面内の色別情報を識別できる
ようにするために、カラースキャナなどでは、3原色や
それらの混色を含めた6色によるものなどの、カラード
ロップアウト機能が開発されている。このカラードロッ
プアウト機能は、不要な色の情報を除いて読み取ること
がができるものである。
For this reason, in order to be able to identify color-specific information in a drawing, a color scanner or the like has developed a color drop-out function such as a function using six colors including three primary colors and a mixture thereof. . This color drop-out function can read out information of unnecessary colors.

【0010】しかし、従来のカラースキャナは、次のよ
うな問題があった。 (1)カラードロップアウト機能は、3色や6色など非
常に限定された減色機能しかないため、細かいレベルあ
るいは任意の色に対する減色機能ではない。 (2)建設図面には古い図面も多いため、ドロップアウ
トカラーでない色で方眼線が印刷された用紙に描かれた
図面が多く、カラードロップアウト機能では対処できな
い場合がある。
However, the conventional color scanner has the following problems. (1) Since the color dropout function has only a very limited color reduction function such as three colors or six colors, it is not a color reduction function for a fine level or any color. (2) Since many construction drawings are old drawings, there are many drawings drawn on paper on which grid lines are printed in a color other than the dropout color, and the color dropout function may not be able to cope with them.

【0011】この発明は上記の点に鑑みてなされたもの
であり、複数色で構成された建設図面から家屋等の輪郭
及び骨格を精度よく認識できるようにすること、特に図
面が描かれた用紙に地の色や方眼線などがあっても、確
実に輪郭及び骨格を認識できるようにすることを目的と
する。図面用紙に方眼線が印刷されている場合にはそれ
を積極的に利用して、認識結果を修正できるようにする
ことも目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and has an object to accurately recognize the outline and skeleton of a house or the like from a construction drawing composed of a plurality of colors. An object of the present invention is to make it possible to reliably recognize a contour and a skeleton even if there is a ground color or a grid line. Another object of the present invention is to make it possible to correct the recognition result by positively using a grid line printed on a drawing sheet when the grid line is printed.

【0012】[0012]

【課題を解決するための手段】この発明は上記の目的を
達成するため、次のような特徴をもつ建設図面認識方法
を提供する。複数の色で構成された建設図面の画像を読
み取ったカラーイメージ画像データの中から、特定色の
画像データを抽出し、その抽出した画像データに対して
水平方向及び垂直方向の色ドット又は白ドット数を計測
して水平及び垂直方向のドット数計測配列データを作成
し、その作成した水平及び垂直方向のドット数計測配列
データに基づいて建設図面の輪郭及び骨格を認識するこ
とを特徴とする。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a construction drawing recognition method having the following features. Image data of a specific color is extracted from color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and horizontal and vertical color dots or white dots are extracted from the extracted image data. The number of lines is counted to create horizontal and vertical dot number measurement array data, and the outline and skeleton of the construction drawing are recognized based on the created horizontal and vertical dot number measurement array data.

【0013】あるいは、複数の色で構成された建設図面
の画像を読み取ったカラーイメージ画像データの中か
ら、特定色の画像データを除去し、その除去後に残った
画像データに対して水平方向及び垂直方向の色ドット又
は白ドット数を計測して水平及び垂直方向のドット数計
測配列データを作成し、その作成した水平及び垂直方向
のドット数計測配列データに基づいて建設図面の輪郭及
び骨格を認識するようにしてもよい。
Alternatively, image data of a specific color is removed from color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and the image data remaining after the removal is horizontally and vertically removed. The number of color dots or white dots in the direction is measured to create horizontal and vertical dot number measurement array data, and the outline and skeleton of the construction drawing are recognized based on the created horizontal and vertical dot number measurement array data. You may make it.

【0014】さらに、上記建設図面の画像を読み取った
カラーイメージ画像をカラー表示し、その表示画像の特
定色で表示された部分領域が直接指定されることによ
り、上記抽出又は除去する画像データの特定色を決定す
るとよい。
Further, the color image image obtained by reading the image of the construction drawing is displayed in color, and the partial area of the display image displayed in a specific color is directly specified, thereby specifying the image data to be extracted or removed. Color should be determined.

【0015】また、上記建設図面の認識した輪郭及び骨
格に基づいて認識する画像データの範囲を限定し、その
各範囲毎に水平方向及び垂直方向の色ドット又は白ドッ
ト数を計測して水平及び垂直方向のドット数計測配列デ
ータを作成し、その作成した水平及び垂直方向のドット
数計測配列データに基づいて各限定した範囲内の輪郭及
び骨格を認識することを、新たな輪郭又は骨格を認識で
きなくなるまで繰り返すことにより、認識精度を高める
ことができる。
Further, the range of image data to be recognized is limited based on the outline and skeleton of the construction drawing, and the number of color dots or white dots in the horizontal and vertical directions is measured for each range. Creates a new outline or skeleton by creating vertical dot count measurement array data and recognizing contours and skeletons within each limited range based on the created horizontal and vertical dot count measurement array data. By repeating the process until it becomes impossible, recognition accuracy can be improved.

【0016】さらに、上記建設図面の画像を読み取った
カラーイメージ画像データの中から、建設図面の用紙の
地に印刷されている方眼線の色の画像データを抽出し、
その抽出した画像データから水平方向及び垂直方向の直
線を認識して、その各方向の直線の間隔を計測し、その
各間隔の平均値を求めて上記方眼線の間隔を認識し、上
記建設図面の輪郭及び骨格の認識結果を、その水平方向
及び垂直方向の間隔が認識した方眼線の間隔の整数倍に
なるように修正することができる。
Further, from the color image image data obtained by reading the image of the construction drawing, image data of a grid line color printed on the ground of the paper of the construction drawing is extracted.
Recognizing the horizontal and vertical straight lines from the extracted image data, measuring the intervals between the straight lines in each direction, obtaining the average value of each interval, recognizing the intervals between the grid lines, Can be modified so that the horizontal and vertical intervals are integer multiples of the recognized grid line intervals.

【0017】また、この発明による建設図面認識装置
は、上記の目的を達成するため、次の各手段を有するも
のである。複数の色で構成された建設図面の画像を読み
取ったカラーイメージ画像データを入力する画像データ
入力手段、該手段によって入力したカラーイメージ画像
データから指定された特定色の画像データを抽出する特
定色抽出手段、
A construction drawing recognition apparatus according to the present invention has the following means in order to achieve the above object. Image data input means for inputting color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, specific color extraction for extracting image data of a specified color from the color image image data input by the means means,

【0018】該手段によって抽出した特定色の画像デー
タに対して水平方向及び垂直方向の色ドット又は白ドッ
ト数を計測して水平及び垂直方向のドット数計測配列デ
ータを作成するドット数計測配列データ作成手段、該手
段により作成された水平及び垂直方向のドット数計測配
列データに基づいて建設図面の輪郭及び骨格を認識する
輪郭・骨格認識手段、
The number-of-dots measurement array data for generating the number-of-dots measurement data in the horizontal and vertical directions by measuring the number of color dots or white dots in the horizontal and vertical directions for the image data of the specific color extracted by the means. Creating means, contour / skeleton recognizing means for recognizing the outline and skeleton of the construction drawing based on the horizontal and vertical dot number measurement array data created by the means;

【0019】あるいは、上記特定色抽出手段に代えて、
入力したカラーイメージ画像データから指定された特定
色の画像データを除去する特定色除去手段を設け、ドッ
ト数計測配列データ作成手段が、特定色の画像データを
除去した後に残っ画像データに対して、水平方向及び垂
直方向の色ドット又は白ドット数を計測して水平及び垂
直方向のドット数計測配列データを作成するようにして
もよい。
Alternatively, instead of the specific color extracting means,
Providing a specific color removing means for removing the specified color image data from the input color image image data, the dot count measurement array data creating means, for the remaining image data after removing the specific color image data, The number of color dots or white dots in the horizontal direction and the vertical direction may be measured to create the horizontal and vertical dot number measurement array data.

【0020】さらに、建設図面の画像を読み取ったカラ
ーイメージ画像をカラー表示する表示手段と、その表示
されたカラーイメージ画像中の特定色で表示された部分
領域を直接指定する特定色指定手段と、その指定された
部分領域の表示色を抽出又は除去する画像データの特定
色として決定する特定色決定手段とを設けるとよい。
Further, a display means for displaying a color image image obtained by reading the image of the construction drawing in color, a specific color designating means for directly designating a partial area displayed in a specific color in the displayed color image image, It is preferable to provide a specific color determining means for determining a display color of the specified partial area as a specific color of the image data to be extracted or removed.

【0021】また、上記建設図面の画像を読み取ったカ
ラーイメージ画像データの中から、建設図面の用紙の地
に印刷されている方眼線の色の画像データを抽出する手
段と、その抽出した画像データから水平方向及び垂直方
向の直線を認識して、その各方向の直線の間隔を計測
し、その各間隔の平均値を求めて前記方眼線の間隔を認
識する手段と、上記建設図面の輪郭及び骨格の認識結果
を、その水平方向及び垂直方向の間隔が上記認識した方
眼線の間隔の整数倍になるように修正する図面認識結果
修正手段とを設けることができる。
Means for extracting, from the color image image data obtained by reading the image of the construction drawing, image data of the color of a grid line printed on the ground of the paper of the construction drawing; Recognizing the horizontal and vertical straight lines from, measuring the interval between the straight lines in each direction, finding the average value of each interval and recognizing the interval between the grid lines, Drawing recognition result correcting means for correcting the recognition result of the skeleton so that the interval in the horizontal and vertical directions is an integral multiple of the interval of the recognized grid lines can be provided.

【0022】この発明はさらに、コンピュータによって
上記建設図面を認識するための制御プログラムを記録し
たコンピュータ読み取り可能な記録媒体も提供する。そ
の制御プログラムは、上記コンピュータを次の各手段と
して機能させるための制御プログラムである。
The present invention further provides a computer-readable recording medium on which a control program for recognizing the construction drawing by a computer is recorded. The control program is a control program for causing the computer to function as the following units.

【0023】複数の色で構成された建設図面の画像を読
み取ったカラーイメージ画像データを入力する画像デー
タ入力手段、該手段によって入力したカラーイメージ画
像データから指定された特定色の画像データを抽出又は
除去する特定色抽出/除去手段、
Image data input means for inputting color image image data obtained by reading an image of a construction drawing composed of a plurality of colors; extracting image data of a specified color from the color image image data input by the means; Specific color extraction / removal means for removal,

【0024】該手段によって抽出した特定色の画像デー
タ又は該特定色の画像データを除去した残りの画像デー
タに対して、水平方向及び垂直方向の色ドット又は白ド
ット数を計測して水平及び垂直方向のドット数計測配列
データを作成するドット数計測配列データ作成手段、該
手段により作成された水平及び垂直方向のドット数計測
配列データに基づいて建設図面の輪郭及び骨格を認識す
る輪郭・骨格認識手段、
With respect to the specific color image data extracted by the means or the remaining image data from which the specific color image data has been removed, the number of color dots or white dots in the horizontal and vertical directions is measured to determine the horizontal and vertical numbers. Dot number measurement array data creating means for creating direction dot number measurement array data, contour / skeleton recognition for recognizing the outline and skeleton of a construction drawing based on the horizontal and vertical direction dot number measurement array data created by the means means,

【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 implementing 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 mixedly shown.

【0026】この装置は、全体制御部1,画像読取部
2,通信制御部3,メモリ4,自動スキュー補正部5,
ドット数計測配列データ作成部6,輪郭・骨格認識部
7,再マッピング制御部8,表示部9,操作入力部1
0,外部記憶装置11,印刷装置12,特定色抽出/除
去部13、及びこれらを接続するバス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, an external storage device 11, a printing device 12, a specific color extraction / removal unit 13, and a bus 14 connecting these components. 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などから構成されるが代表して
「CPU」と略称される)であり、自動スキュー補正部
5並びにこの発明に係わるドット数計測配列データ作成
部6,輪郭・骨格認識部7,再マッピング制御部8,特
定色抽出/除去部13も、そのCPUのソフト処理によ
って実現できる。外部記憶装置11は、上記全体制御部
1で実行する制御プログラムを記録した記録媒体の読み
取り装置の役目もする。
The overall control unit 1 includes a microcomputer (C) for controlling the operation and functions of the entire construction drawing recognition apparatus.
An automatic skew correction unit 5, a dot number measurement array data creation unit 6, a contour / skeleton recognition unit 7, and the like. , The remapping control unit 8 and the specific color extraction / removal unit 13 can also be realized by software processing of the CPU. The external storage device 11 also serves as a reading device for a recording medium on which a control program executed by the overall control unit 1 is recorded.

【0028】画像読取部2は、複数の色で構成された建
築図面等の建設図面セットされると、それをスキャンし
てその画像を読み取ってカラーイメージ画像データを入
力する画像データ入力手段であり、スキャン光学系及び
複数のカラーフィルタと各色毎のCCDなどのイメージ
センサとその各駆動回路等からなる公知のカラー・イメ
ージスキャナである。また、その読み取ったイメージ画
像データを所定の解像度で2値化して白ドットと色ドッ
トの画像データにする回路も含んでいる。
The image reading section 2 is an image data input means for scanning a construction drawing such as an architectural drawing composed of a plurality of colors, reading the image, and inputting color image data. A known color image scanner comprising a scanning optical system, a plurality of color filters, an image sensor such as a CCD for each color, and respective driving circuits thereof. It also includes a circuit for binarizing the read image image data at a predetermined resolution to obtain white dot and color dot image data.

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

【0030】メモリ4は、画像読取部2によって読み取
ったイメージ画像データ、通信制御部3によって受信し
たイメージ画像データ又は符号化画像データをはじめ、
自動スキュー補正部5によってスキュー補正された画像
データ、ドット数計測配列データ作成部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 dot number measurement array data created by the dot number measurement array data creation unit 6, the outline and skeleton recognition results recognized by the outline / skeleton recognition unit 7, and the This is a large-capacity RAM or a hard disk memory for storing image data and the like remapped by the mapping control unit 8.

【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に格納する。すなわち、図面認識やその
他の処理に先立って、読み取ったカラーイメージ画像デ
ータの内の特定色のデータを抽出/除去する手段であ
り、その詳細は後述する。
When a specific color of the color image image data of the construction drawing read by the image reading unit and stored in the memory 4 is designated, the specific color extracting / removing unit 13 extracts or removes the data of the specific color. Then, the extracted image data of the specific color or the remaining image data from which the image data has been removed is stored in the memory 4 again. That is, it is means for extracting / removing data of a specific color from the read color image image data prior to drawing recognition or other processing, the details of which will be described later.

【0033】ドット数計測配列データ作成部6は、自動
スキュー補正がなされてメモリ4に格納されたイメージ
画像データ又は符号化画像データ、及び後述する再マッ
ピング制御部8によって再マッピングされた画像データ
に対して、その画像データを水平及び垂直方向の2方向
に限定して、それぞれドット幅単位に色ドット(白黒の
場合は黒ドット)又は白ドット数を計測(カウント)
し、その結果により水平及び垂直方向のドット数計測配
列データ(ヒストグラム)を作成してメモリ4に格納す
るドット数計測配列データ作成手段である。
The number-of-dots-measuring-array-data creating section 6 converts the image data or the coded image data stored in the memory 4 after the automatic skew correction, and the image data re-mapped by the re-mapping control section 8 described later. On the other hand, the image data is limited to two directions of the horizontal and vertical directions, and the number of color dots (black dots in the case of black and white) or the number of white dots is measured (counted) for each dot width unit.
Then, it is a dot number measurement array data creating means for creating dot number measurement array data (histogram) in the horizontal and vertical directions based on the result and storing it in the memory 4.

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

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

【0036】なお、参照したドット数計測配列データで
は、壁の認識(抽出)が困難あるいは不確実な場合は、
図面の水平及び垂直方向のドット数計測配列データ作成
範囲の再設定要求を全体制御部1へ送り、作成範囲を変
更設定してドット数計測配列データ作成部6に再度ドッ
ト数計測配列データを作成させる。
If it is difficult or uncertain to recognize (extract) the wall from 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 the number-of-dots measurement array data creation unit 6 creates the number-of-dots measurement array data again. Let it.

【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 and remaps the part after considering other recognition information. Then, image data for causing the dot number measurement array data creation unit 6 to create dot number measurement array data again for each of the limited ranges 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によってスキュー
補正された建設図面のカラー画像データ、ドット数計測
配列データ作成部6で作成された水平及び垂直方向の黒
又は白のドット数計測配列データ、輪郭・骨格認識部7
によって認識された壁データ、再マッピング制御部8に
よって再マッピングされた画像データ等を表示するため
のものであり、例えば、カラーCRTやカラー液晶ディ
スプレイ等でを使用する表示装置である。
The display unit 9 is input from the image reading unit 2 or the communication control unit 3 and is created by the color image data of the construction drawing and the dot number measurement array data creating unit 6 skew-corrected by the automatic skew correcting unit 5. Horizontal or vertical black or white dot number measurement array data, contour / skeleton recognition unit 7
It is for displaying the wall data recognized by the image data, the image data re-mapped by the re-mapping control unit 8, and the like, and is, for example, a display device used in a color CRT or a color 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は、自動スキュー補正部5によってス
キュー補正された建設図面の画像データ(入力したイメ
ージ画像データ)と、上記再マッピングされた認識結果
である壁の画像データを同時に重ね合わせて表示した例
を示す。この場合、両者の識別が容易にできるように、
スキュー補正された建設図面のイメージ画像データはハ
ーフトーンで表示し(図3では図示の都合上点描で示し
ている)、認識結果である壁の画像データを実線で表示
する。
FIG. 3 shows the image data of the construction drawing (input image data) skew-corrected by the automatic skew correction unit 5 and the image data of the wall which is the remapped recognition result simultaneously superimposed and displayed. An example is shown below. In this case, to make it easy to identify both,
The skew-corrected image image data of the construction drawing is displayed in halftone (in FIG. 3, it is indicated by stippling for convenience of illustration), and the image data of the wall as the recognition result is displayed in solid lines.

【0041】また、表示部9がカラーの表示装置である
から、両画像の色を変えて表示することにより、識別性
を向上させることができる。例えば、スキュー補正され
た入力イメージ画像データは薄青色で、認識結果の画像
データをオレンジ色あるいは緑色等で表示することによ
り、操作者は認識結果の部分を容易に識別できる。
Further, since the display section 9 is a color display device, the discriminability can be improved by displaying both images in different colors. For example, by displaying the skew-corrected input image image data in light blue and displaying the recognition result image data in orange or green, the operator can easily identify the recognition result portion.

【0042】あるいは、表示部9の画面9aを分割し
て、スキュー補正された入力イメージ画像データと認識
結果の画像データをその分割したそれぞれの画面に対比
させて表示することもできる。または、同一の画面上に
スキュー補正された入力イメージ画像データと再マッピ
ングされた認識結果の画像データを選択的に表示できる
ようにしてもよい。その場合には後述する操作入力部1
0に表示選定手段(キー等)を設ければよい。
Alternatively, the screen 9a of the display unit 9 may be divided, and the skew-corrected input image data and the image data of the recognition result may be displayed in comparison with each of the divided screens. Alternatively, the skew-corrected input image data and the remapped image data of the recognition result may be selectively displayed on the same screen. In that case, the operation input unit 1 described later
0 may be provided with display selection means (keys or the like).

【0043】さらに、この表示部9は、入力力したカラ
ーイメージ画像を表示して、その表示画像の特定色で表
示された部分領域をマウスカーソルによって指定させる
ことにより、抽出あるいは除去したい特定色を直接指定
させるための手段としても機能する。さらに、認識結果
を操作者が確認するための画面も表示する。すなわち、
上記再マッピングされた認識結果の画像データを表示
し、「この認識結果でよろしいですか?(YES/N
O)」というような表示を行なう。これにより、壁の認
識が正確にできているかどうかを操作者が確認すること
ができる。
Further, the display section 9 displays the input color image image and allows the mouse cursor to designate a partial area of the display image which is displayed in a specific color, thereby allowing a specific color to be extracted or removed to be specified. It also functions as a means for direct designation. Further, a screen for the operator to confirm the recognition result is also displayed. That is,
The image data of the re-mapped recognition result is displayed, and the message "Is this recognition result OK? (YES / N
O) ". 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 key operation, the input image data of the skew-corrected construction drawing and the image data of the re-mapped recognition result can be superimposed and displayed, or only one of them can be selected and displayed.

【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は、入力した画像データ
や、ドット数計測配列データ作成部6で作成された黒ド
ット数計測配列データ、輪郭・骨格認識部7によって認
識された壁データ、再マッピング制御部8によって再マ
ッピングされた認識結果の画像データ等をフロッピディ
スク(FD)や光磁気ディスク(OMD)等の外部へ取
り出し可能な記憶媒体に記録させる記憶装置である。こ
の外部記憶装置11はまた、マイクロコンピュータによ
る全体制御部1でCPUが実行する制御プログラムを記
録した、フロッピディスク(FD)あるいはCDROM
等の記録媒体の読み取り装置の役目も果たす。
The external storage device 11 stores the input image data, the black dot number measurement array data created by the dot number measurement array data creation section 6, the wall data recognized by the contour / skeleton recognition section 7, and the remapping control. This is a storage device for recording image data or the like of the recognition result re-mapped by the unit 8 on a storage medium that can be taken out, such as a floppy disk (FD) or a magneto-optical disk (OMD). The external storage device 11 is also provided with a floppy disk (FD) or a CDROM in which a control program executed by the CPU in the overall control unit 1 by the microcomputer is recorded.
And the like also serves as a device for reading a recording medium.

【0047】印刷装置12は、上記の各種データを紙に
印刷あるいは描画して出力するプリンタあるいはプロッ
タである。ここで、建設図面(主に建築図面)における
「輪郭」と「骨格」及び「外壁」と「内壁」の定義につ
いて、表1及び表2と図4によって説明する。
The printing device 12 is a printer or a plotter that prints or renders the above-described various data on paper and outputs the data. Here, the definitions of “outline” and “skeleton” and “outer wall” and “inner wall” in construction drawings (mainly architectural drawings) will be described with reference to Tables 1, 2 and 4.

【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のフロー図によっ
て説明する。これらのフロー図において、各ステップを
「S」で示している。また、この実施例では、認識する
建設図面がポジ図面であるものとする。
Next, the procedure for recognizing construction drawings (mainly architectural drawings of houses, buildings, etc.) by the construction drawing recognition apparatus shown in FIG. 1 will be described with reference to the flowcharts of FIGS. 5 to 8 and FIG. In these flowcharts, each step is indicated by "S". In this embodiment, the construction drawing to be recognized is a positive drawing.

【0055】図5は、図面の特定色を抽出/除去して図
面認識する認識処理のメインルーチンを示すフローチャ
ートである。まず、ステップ101において、画像読取
部2であるカラー・イメージスキャナによってセットさ
れた建設図面をカラーイメージ画像として読み取って、
そのカラーイメージ画像データを入力する。それに代え
て、通信制御部3によって外部から建築図面のカラーイ
メージ画像データあるいはそのランレングスを符号化し
た符号化カラー画像データを受信して入力してもよい。
FIG. 5 is a flowchart showing a main routine of a recognition process for recognizing a drawing by extracting / removing a specific color from the drawing. First, in step 101, the construction drawing set by the color image scanner as the image reading unit 2 is read as a color image image,
The color image data is input. Instead, the communication control unit 3 may receive and input color image data of an architectural drawing or encoded color image data obtained by encoding the run length of the architectural drawing from outside.

【0056】次に、ステップ102では、抽出/除去す
る特定色を決定し、読み取り済みのカラーイメージ画像
データからその特定色のデータを抽出あるいは除去す
る。この場合は、建築図面が記述されている用紙の地に
印刷されてる方眼線の色を特定色として指定市し、その
特定色と同じのデータを除去するものとする。その特定
色の決定は、例えば入力したカラー画像データを表示部
9にカラ表示させ、マウスカーソルで指示されてクリッ
クされた部分領域の画像データの色を抽出又は除去した
い特定色として決定することができる。すなわち、その
指定された部分領域の画像データのカラー構成(RGB
又はYMCの構成比率)を判別し、それと同じ比率の画
像データをカラーフィルタ機能によって除去する。
Next, in step 102, a specific color to be extracted / removed is determined, and data of the specific color is extracted or removed from the read color image image data. In this case, the color of the grid line printed on the ground of the paper on which the architectural drawing is described is designated as a specific color, and the same data as the specific color is removed. For the determination of the specific color, for example, the input color image data is displayed in color on the display unit 9 and the color of the image data of the partial area clicked by pointing with the mouse cursor is determined as the specific color to be extracted or removed. it can. That is, the color configuration (RGB) of the image data of the designated partial area
Alternatively, the image data having the same ratio is removed by the color filter function.

【0057】その後、ステップ103に進み、特定色の
データを抽出又は除去した(この場合は除去した残り
の)図面のイメージ画像データを対象に図面認識する。
その図面認識のサブルーチンの処理については詳細に後
述する。
Thereafter, the process proceeds to step 103, in which the drawing image recognition is performed on the image image data of the drawing from which the data of the specific color has been extracted or removed (in this case, the remaining removed data).
The processing of the drawing recognition subroutine will be described later in detail.

【0058】そして、ステップ104では、図面認識の
精度を向上させるために、カラーイメージ画像データか
ら、特定色を抽出あるいは除去し尽くしているか否かを
判断する。これ以上の特定色の抽出あるいは除去ができ
なければ、そのまま一連の処理を終了してもよいが、こ
の実施形態ではステップ106で方眼間隔を認識し、ス
テツプ103で認識した図面を修正する処理を行なった
後、処理を終了する。そのステツプ103のサブルーチ
ンの処理も図25によって後述する。
In step 104, it is determined whether or not a specific color has been extracted or removed from the color image data in order to improve the accuracy of drawing recognition. If the specific color cannot be extracted or removed any more, the series of processes may be terminated as it is. However, in this embodiment, the process of recognizing the grid interval in step 106 and correcting the drawing recognized in step 103 is performed. After performing, the process ends. The processing of the subroutine of step 103 will be described later with reference to FIG.

【0059】ステップ104の判断で、さらに細分化し
た領域に対して特定色を抽出あるいは除去する余地があ
る場合には、ステップ105に進む。そして、図面認識
された輪郭や骨格で仕切られた領域(部屋)を新しい限
定領域として、ステップ102に戻る。そして、その限
定した領域に対して、ステツブ102で特定色のデータ
を抽出又は除去し、ステップ103で抽出した特定色の
画像データ、あるいは特定色の画像データを除去した残
りの画像データに対して図面認識の処理を行なう。
If it is determined in step 104 that there is room to extract or remove a specific color from the further subdivided region, the process proceeds to step 105. Then, the process returns to step 102 with an area (room) partitioned by the outline or skeleton recognized as a drawing as a new limited area. Then, in step 102, data of a specific color is extracted or removed from the limited area, and the image data of the specific color extracted in step 103 or the remaining image data from which the specific color image data has been removed is extracted. Perform drawing recognition processing.

【0060】図6は、図5のステップ103の図面認識
処理のサブルーチンを示すフローチャートである。この
図6のフローチャートによって、この実施形態による図
面認識処理の詳細を説明する。図6の処理はステップ2
から始まっているが、図5におけるステップ101のカ
ラーイメージ画像読み取りと、ステップ102の特定色
の抽出/除去が、この図面認識処理のスイテツブ1に相
当する。
FIG. 6 is a flowchart showing a subroutine of the drawing recognition process in step 103 of FIG. The details of the drawing recognition process according to this embodiment will be described with reference to the flowchart in FIG. The processing in FIG.
5, the reading of a color image image in step 101 and the extraction / removal of a specific color in step 102 in FIG. 5 correspond to the drawing recognition processing in step 1.

【0061】なお、以下の説明では、読み取ったカラー
イメージ画像データから、用紙の地に印刷されていた方
眼線の色を特定色として指定し、その色の画像データを
除去した残りの白黒の2値化画像データに対して図面認
識を行なうものとする。勿論逆に、黒色あるいは他の色
を特定色として指定して、黒あるいは他の色の画像デー
タのみを抽出して図面認識対象とすることもできる。
In the following description, the color of the grid line printed on the background of the paper is designated as a specific color from the read color image image data, and the remaining black and white two-color image data of that color is removed. It is assumed that drawing recognition is performed on the valued image data. Conversely, of course, it is also possible to designate black or another color as a specific color, and extract only black or other color image data to be a drawing recognition target.

【0062】このサブルーチンでは、まずステップ2に
おいて、ドット数計測配列データ作成部6によって作成
される水平及び垂直方向の黒ドット数計測配列データに
基づく輪郭・骨格認識部7等による壁認識処理の精度を
向上させるために、認識対象の画像データを自動スキュ
ー補正部5によって自動的にそのスキューを補正する。
そして、ステップ3において、自動スキュー補正された
画像データの全体を調査対象とする。
In this subroutine, first, in step 2, the accuracy of the wall recognition processing by the contour / skeleton recognition unit 7 and the like based on the horizontal and vertical black dot number measurement array data created by the dot number measurement array data creation unit 6 In order to improve the skew, the skew of the image data to be recognized is automatically corrected by the automatic skew correction unit 5.
Then, in step 3, the entirety of the automatically skew-corrected image data is set as a survey target.

【0063】ステップ4において、ネスト変数は0(初
期値:画像全体を対象にするという意味)である。「ネ
スト変数」は建設図面の解析範囲をトップダウンで絞り
込む時の絞り込み段階を表す。ネスト変数の値が大きい
ほど解析が深くなっている(細かい部分まで進んでい
る)ことを表わす。
In step 4, the nest variable is 0 (initial value: meaning that the whole image is targeted). The “nest variable” indicates a narrowing-down stage when narrowing down the analysis range of the construction drawing from the top down. The larger the value of the nested variable, the deeper the analysis (the more advanced the part).

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

【0065】ステップ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.
When image data of another color is to be recognized, the number of dots of that color is measured. Then step 7
In step, 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.

【0066】ステップ8では、ステップ6と同様に垂直
方向の黒ドット数計測配列データを作成する。すなわ
ち、画像データの水平方向の1ドット幅毎に垂直方向の
黒ドット数を計数(計測)し、その各計数データを保持
する。ステップ9では、その垂直方向の黒ドット数計測
配列データに基づいて壁の抽出(認識)処理を行なう。
In step 8, as in step 6, black dot number measurement array data in the vertical direction 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.

【0067】そして、ステップ10において領域を分割
する壁候補があるかどうかを判断する。ここで、水平あ
るいは垂直方向で1つでも領域を分割する壁候補があれ
ば、ステップ11へ、1つもそのような壁候補がなけれ
ば、ステップ13へ進む。例えば、図9の(a)に示す
ような調査対象領域Sa内に領域を分割する壁候補Wd
が存在するかどうかを判断する。ステップ11では、ネ
スト変数を+1して再設定する。これは、現在の解析領
域の中から壁を認識し、その壁を使って新たに区切られ
た現在の領域内の小領域に解析範囲を限定する段階に入
ることを表わす。
Then, in step 10, it is determined 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.

【0068】そして、ステップ12において、その調査
対象の領域の細分化を行なう。具体的には、ステップ
7,ステップ9で認識した壁候補の芯線(中心線)で、
例えば図9の(a)に示すように調査対象領域Saを壁
候補W,Wdの細線で示す芯線によって領域Sa1,S
a2に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 survey target area Sa is defined by core lines indicated by thin lines of the wall candidates W and Wd.
a2 is divided into two. Further, the position of the survey target is set in the first subdivided area (for example, the upper left area).

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

【0070】その後、ステップ5に戻って上述の処理を
繰り返し行なう。ステップ10において、領域を分割す
べき壁候補が1つもなかった場合は、ステップ13に進
んで同次ネスト領域(図9の(b)で同じネストNo.の
領域)の残りがないかどうかを判断する。残りがある場
合は、ステップ15において同次ネストの次の領域に調
査対象を進めてステップ5に戻る。
Thereafter, the flow returns to step 5 to repeat the above 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.

【0071】同次ネスト領域の残りがない場合は、ステ
ップ14へ進んでネスト変数が0であるかどうかを判断
する。ネスト変数が0でない場合は、ステップ16にお
いてネスト変数を−1して1段階上位のネスト領域の処
理に戻り、ステップ13でその段階の残りのネスト領域
があるかどうかを判断する。あればステップ15で次の
ネスト領域に調査対象を進めてステップ5に戻る。
If there is no remaining homogeneous nest area, the flow advances to step 14 to determine 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.

【0072】ステップ14でネスト変数が0の場合は、
ステップ17へ進んで、ステップ7,9によって得られ
た各領域毎の壁候補の認識データをもとに各壁の位置及
びサイズを確定し、その壁認識データをメモリ4に格納
する。その格納方法については後述する。そして、ステ
ツプ18で認識データを表示,印刷,記憶等を選択的に
実行して、当該サブルーチンの処理を終了し図5のメイ
ンルーチンへリターンする。
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, display, printing, storage and the like of the recognition data are selectively executed in step 18, and the processing of the subroutine is terminated, and the process returns to the main routine of FIG.

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

【0074】図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 line. 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.

【0075】これらの図から明らかなように、建築図面
を構成する線分の大部分(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.

【0076】図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).

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

【0078】次いで、ステップ22で大ループの回数カ
ウンタのカウント値iの初期設定(i←1)を行なう。
そして、ステップ23において回数カウンタのカウント
値iが可能な大ループの実行回数nを超えた(i>n)
かどうかを判定する。超えていれば、当該領域の解析を
終了する。超えていなければ、ステップ24において当
該i番目の半間内の最初の解析処理として最高ピーク
(図12にPで示す)に位置付け、その点をxpとす
る。このように半間毎に解析処理することにより、その
中のピーク値が壁の一部である可能性が高いことにな
る。
Next, in step 22, the initial value (i ← 1) of the count value i of the large loop number counter is performed.
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-hour in this way, it is highly likely that the peak value in the analysis value is a part of the wall.

【0079】次に、ステップ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-ahead. 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 from the position of the highest peak (e.g., 2W width) examine the range of wall thickness (double-sided position: 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.

【0080】この絞り込み方法としては、(最高ピーク
値−min)* rate+min 以上の値を持つ最高ピーク位置
の両端又は片側のピーク位置を、壁の両面の位置W1
2又は最高ピーク位置xpが壁の一方の面の位置W1
であるときの他方の面の位置W2 として絞り込む方法が
ある。
As a method of narrowing down, 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 ,
Position W 1 of W 2 or highest peak position one side of xp wall
There is a method to narrow the position W 2 of the other surface of the case is.

【0081】図13はこの絞り込み処理の説明図であ
り、(a)は最高ピーク位置xpの両側に壁の両面の位
置W1,W2が存在する場合の例である。この場合は、最
高ピーク位置xpは壁の芯線位置の候補と推定される。
FIG. 13 is an explanatory diagram of this narrowing-down processing. FIG. 13A shows an example in which positions W 1 and W 2 on 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.

【0082】図13の(b)は最高ピーク位置xpが壁
の一方の面の位置W1であり、その片側に他方の面の位
置W2 が存在する場合の例である。この場合は、長い方
のピーク位置が図2に二重線で示した外輪郭の外壁位置
の候補で、それに近接する短い方のピークがその内壁位
置の候補と推定し得る。ここで、 rate は解析の前半
(ネスト変数の値が小さい時)は小さめに、後半(ネスト
変数の値が大きい時)では大きめにする(例えば、最初
は rater=0.70とする)。min は図13の(c)に示
すように現在注目している最大ピークPの位置xpの左
右両側2Wに拡がった4W幅程度の幅内の黒ドット数計
測データの最小値である。
[0082] (b) in FIG. 13 is a position W 1 of one side of the highest peak position xp wall, an example in which there are position W 2 of the other side to 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. Where rate is the first half of the analysis
(When the value of the nest variable is small), it is made small, and in the second half (when the value of the nest variable is large), it is made large (for example, rater = 0.70 at first). min is the minimum value of the black dot number measurement data within a width of about 4 W widened to the left and right sides 2 W of the position xp of the current maximum peak P as shown in FIG. 13C.

【0083】このようにして、図7のステップ26で絞
り込んだ結果を基に、ステップ27と28で壁としての
妥当性を確認する。まずステップ27においては、壁の
厚みWeがその最大値 Wmax(例えば30cm)を超え
ているか否かを判断し、超えている時は壁の認識不明と
して次の半間先の解析に移るためステップ34に進む。
超えていなければステップ28へ進み、壁の厚みWeが
最小値Wmin(例えば2.5cm)未満か否かを判断す
る。
In this manner, based on the result narrowed down in step 26 in FIG. 7, the validity as a wall is confirmed in steps 27 and 28. 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).

【0084】その結果、壁の厚み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.

【0085】ステップ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.

【0086】ステップ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.

【0087】このようにして、対象となる黒ドット数計
測配列データの一端(先頭要素)から半間毎に解析処理
し、反対の端まで解析が終われば、今回の範囲の解析を
終了する。水平方向と垂直方向の2方向のを黒ドット数
計測配列データに対して別々に解析し、次回の解析範囲
は、今回の解析で壁と認識できた範囲に限定する。その
ため、水平及び垂直方向の黒ドット数計測配列データを
解析した結果を組み合わせて、総当たりの場合分けを行
なう。
In this way, the analysis processing is performed every half from one end (head 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.

【0088】この実施形態では、壁の芯線位置は隣の壁
との間隔が半間単位の整数倍になるように配置されてい
るとみなす。そして、特徴的なピークが発見できる範囲
までを解析データとして有効に使用する。逆に云えば、
解析対象とするある範囲内に壁に相当する特徴が、水平
方向及び垂直方向の両方合わせても一つも発見できなか
ったときは解析を終了する。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 the 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 is initially targeted at the entire drawing, and is then limited to a range delimited by the walls that have been discovered thereafter, making it easier to find the peaks on the walls and to analyze the details in detail. So that

【0089】次に、図7のステップ29において「壁と
しての条件を満たすか」を判断する2等分割探索法につ
いて、図8のフロー図によって説明する。この図8に示
すフローの処理を開始すると、まずステップ41におい
て、2等分割探索法の初期設定を行なう。すなわち、壁
分析のための領域分割要素数nを1にし、壁部か非壁部
かが未確定である分割要素の配列要素の最も小さいNo.
を指すkを0に、また、調査領域の分割配列要素とし
て、S
Next, the bisecting 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.

【0090】その後、ステップ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.

【0091】すなわち、分割する前半の領域のスタート
及びエンド画像アドレス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].

【0092】それによって、例えば図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 the 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.

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

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

【0095】ステップ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 or not 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).

【0096】ステップ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] and v [n] are set as new storage array elements in 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).

【0097】ステップ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.

【0098】ステップ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.

【0099】ステップ54においては、壁分析のための
領域分割要素数nと、壁部か非壁部かが未確定である分
割要素の配列要素の最も小さいNo.を指すkとが、等し
くなっているかどうか判定し、等しければ壁認識のため
の分割処理が終了したと判断してステップ55へ進む。
等しくなければステップ52へ戻る。
In step 54, the number n of the area division elements for the wall analysis is equal to k indicating the smallest No. of the array elements of the division elements whose wall or non-wall is 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 not, the process returns to step 52.

【0100】ステップ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.

【0101】ステップ56においては、壁部分及び非壁
部分が連続している場合は、それぞれ縮退処理(一つの
範囲で表現)して終了する。すなわち、連続したv
〔 〕値が0又は1の状態の場合は、S〔 〕,E
〔 〕データを圧縮する。なお、この時に、壁が存在す
るかどうか判らない内容(v=2)の配列要素を含む場
合は、その要素の前後の要素が壁を示している場合には
壁データに変更し、また、非壁を示している場合には非
壁データに変更して処理する。
In step 56, if the wall portion and the non-wall portion are continuous, the process is reduced (represented in one range), and the process is terminated. 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.

【0102】上述した二等分割探索処理による画像デー
タ中の壁位置の分析例を図16に示す。この図16の
(a)には壁のイメージ画像(斜線を施した部分)Wと
その調査対象領域を破線で示しており、この調査領域は
先に認識された壁候補の存在位置に沿って設定される。
そして、S
FIG. 16 shows an example of analysis of 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.

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

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

【0105】そこで次に、ネスト変数=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 closed loop area divided 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, the actual wall is represented by (a).
It is confirmed that there is only the portion shown in FIG. 2B, and the state of the wall shown in FIG.

【0106】さらに、ネスト変数=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.

【0107】その後、ネスト変数=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.

【0108】このように、分割した各調査対象領域のい
ずれでも新たな壁候補が抽出されなくなるまで、調査対
象領域を細分化して壁の抽出を行なう。それによって、
小さな壁でも確実に認識することができ、且つ壁候補の
うち実際には壁が存在する部分と存在しない部分とを正
確に判別することができる。
As described above, until no new wall candidate is extracted in any of the divided investigation target areas, the investigation 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.

【0109】ここでさらに、前述した図6のフローチャ
ートに従った具体的な建設図面の認識処理手順の例を、
図18乃至図20によって説明する。図18乃至図20
は一連の図であるが、図示の都合上3枚の図に分割して
示している。これらの図におけるS2〜S18は、図5
のS2〜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. S2 to S18 in these figures are shown in FIG.
S2 to S18. In addition, an area division diagram and an actual wall state at each stage are also shown.

【0110】以下の説明ではステップを「S」と略称す
る。図18のS1で画像データを入力し(図5のS10
1,S102に対応する)、S2で自動スキュー補正を
行ない、S3で図面全体を調査対象とし、S4でネスト
変数を0にする。S5で調査対象の限定を行なうが、ネ
スト変数が0なのでやはり図面全体を調査対象とする。
In the following description, steps are abbreviated as “S”. Image data is input in S1 of FIG. 18 (S10 of FIG. 5).
1, corresponding to S102), automatic skew correction is performed in S2, the entire drawing is investigated in S3, 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.

【0111】S6〜S7で水平方向の黒ドット数計測配
列データを作成して壁を抽出するが、輪郭以外の壁を発
見できず、S8〜S9で垂直方向の黒ドット数計測配列
データを作成して壁を抽出し、輪郭以外の壁を2か所に
発見する。したがって、S10でYESになり、S11
でネスト変数を1にし、S12で領域の細分化(各壁の
位置で)をしてS5へ戻り、調査対象領域を一番左の領
域に限定する。
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. To extract a wall, and find a wall other than the contour at two places. Therefore, YES is obtained in S10, and S11
To set the nest variable to 1, subdivide the area (at each wall position) in S12, return to S5, and limit the investigation target area to the leftmost area.

【0112】そして、S6〜S7で壁を2か所に発見
し、S8〜S9では壁を発見できなかったがS10では
YESになり、S11でネスト変数を2にして「入れ子
処理」を、図19のS14でNOになり入れ子処理を終
了するまで繰り返し実行し、左側の縦長の領域を新たに
発見された2つの壁によって区切った3つの分割領域に
対して、順次壁の抽出処理を行なう。
Then, in S6 and S7, a wall was found in two places. In S8 and S9, no wall was found. However, 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.

【0113】この例ではそれによって新たな壁は発見さ
れず、図19のS16でネスト変数を−1して1に戻
し、真中の縦長の領域を調査対象領域として同様に壁の
抽出を行なうが、この例では新たな壁候補は発見されな
い。そこで、S15,S5で右側の縦長の領域に調査対
象領域を変更し、S6〜S7で壁を1ケ所発見する。
In this example, a new wall is not found by this, and the nest variable is decremented by 1 in S16 of FIG. 19 to 1 and a vertically elongated region in the middle is set as a survey target region, 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.

【0114】そこで、図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.

【0115】次に、上述のようにして認識した建設図面
の輪郭及び骨格に相当する壁の位置及びサイズ等の情報
(解析結果データ)を図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.

【0116】ネスト数は、子ネストポインタの入れ子
(親子関係)の深さを示し、壁が全然認識されなかった
場合は、ネスト数=0である。固有ネスト情報は、ネス
トNo.,NEXT兄弟ポインタ,子ネストポインタ,壁
数(水平方向及び垂直方向),壁情報ポインタ(水平方
向及び垂直方向)からなる。
The nest number indicates the depth of the nesting of the child nest pointers (parent-child relationship). If no wall is recognized, the nest number = 0. 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).

【0117】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.

【0118】(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.

【0119】同様に、固有ネスト情報中の垂直方向の壁
情報ポインタが示すアドレスを先頭アドレスとして、
(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.

【0120】ところで、実際の建築図面の画像データに
対して、その図面全体を調査対象領域として水平方向及
び垂直方向の黒ドット数計測配列データを作成した例を
図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 entire 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

【0121】図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.

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

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

【0124】次に、図5のメインルーチンのステツプ1
06による方眼間隔を認識し、認識図面を修正する処理
のサブルーチンの詳細例を、図25のフローチャートに
よって説明する。この図25のサプルーチンでは、ステ
ップ121で抽出する特定色を決定し、読取り済みのカ
ラーイメージ画像データから特定色のデータを抽出す
る。
Next, step 1 of the main routine of FIG.
A detailed example of the subroutine of the process of recognizing the grid interval by 06 and correcting the recognition drawing will be described with reference to the flowchart of FIG. In the subroutine of FIG. 25, a specific color to be extracted is determined in step 121, and data of the specific color is extracted from the read color image data.

【0125】ここでは、建設図面が描かれている用紙の
地に印刷されている方眼線の色を、前述の場合と同様に
表示したカラー・イメージ画像の地の部分領域がマウス
カーソルで指定するされると、その部分領域の画像の色
を特定色として決定し、その特定色の画像データ(方眼
線の画像データ)を抽出する。
Here, the color of the grid line printed on the ground on the paper on which the construction drawing is drawn is specified by the mouse cursor in the ground partial area of the color image image displayed in the same manner as described above. Then, the color of the image of the partial area is determined as the specific color, and the image data of the specific color (grid line image data) is extracted.

【0126】そして、ステツプ122で、その抽出した
データから水平方向及び垂直方向の直線を認識する。次
いで、ステツプ123で、認識した水平方向及び垂直方
向の直線の間隔を計測しステツプ124でその間隔の最
大値と最小値の差を求め、ステツプ125でその差が所
定値(誤差の範囲の値)以下か否かを判断する。
In step 122, horizontal and vertical straight lines are recognized from the extracted data. Next, at step 123, the interval between the recognized horizontal and vertical straight lines is measured, and at step 124 the difference between the maximum value and the minimum value of the interval is determined. At step 125, the difference is set to a predetermined value (the value of the range of error). ) Judge whether or not:

【0127】間隔の差が所定以下でない場合は、間隔の
バラツキが大きいため方眼線ではないかもしれないの
で、ステツプ129で間隔の認識が不可であることを表
示して図5のメインルーチンへリターンする。なお、こ
の場合、計測した間隔の最大値と最小値を削除して、そ
の削除後の新たな最大値と最小値の差を再度求め、ステ
ツプ125でその差が所定値(誤差の範囲の値)以下か
否かを判断し直すようにしてもよい。これによって、ノ
イズ成分によるデータの影響を少なくすることができ
る。
If the difference between the intervals is not smaller than the predetermined value, it may not be a grid line because the variation of the intervals is large, so that it is displayed at step 129 that recognition of the intervals is not possible, and the process returns to the main routine of FIG. I do. In this case, the maximum value and the minimum value of the measured interval are deleted, and the difference between the new maximum value and the minimum value after the deletion is obtained again. In step 125, the difference is set to a predetermined value (the value of the error range). ) It may be determined whether or not the following is true. Thereby, the influence of the data due to the noise component can be reduced.

【0128】ステップ125で差が所定値以下で合った
場合は、ステップ126で間隔の平均値を算出し、ステ
ップ127でそれを認識図面と照合し、認識した輪郭及
び骨格の間隔が、算出した間隔の平均値(方眼間隔)の
整数倍になるように、認識した図面を修正する。そし
て、その方眼線と修正した認識図面とを重ねて表示した
後、図5のメインルーチンへ戻る。
If the difference is equal to or smaller than the predetermined value in step 125, the average value of the interval is calculated in step 126, and the average value is compared with the recognition drawing in step 127, and the interval between the recognized outline and the skeleton is calculated. The recognized drawing is corrected so as to be an integral multiple of the average value of the intervals (the grid intervals). Then, after the grid line and the corrected recognition drawing are superimposed and displayed, the process returns to the main routine of FIG.

【0129】図26は、特定色(例えば薄い青色)の方
眼線が印刷された用紙に黒色の手書きで間取図が描かれ
た建築図面をカラー・イメージスキャナで読み取って、
マッピングさせた画像データの表示例である。方眼線は
実際には、水平方向及び垂直方向共に1間(1.8m)
を4分割あるいは6分割などした間隔で印刷されている
が、図示の都合上1間を2分割した半間間隔の方眼線を
示している。
FIG. 26 is a diagram in which a color image scanner reads an architectural drawing in which a floor plan is drawn by hand in black on paper on which grid lines of a specific color (for example, light blue) are printed,
5 is a display example of mapped image data. The grid line is actually one space (1.8 m) both in the horizontal and vertical directions.
Is printed at intervals of 4 divisions or 6 divisions, but for convenience of illustration, a grid line of a half interval is shown in which one is divided into two.

【0130】図27は、その特定色のデータを除去した
間取図のイメージ画像の表示例を示す。さらに、図28
は、その特定色のデータを除去した間取図のイメージ画
像データから図面認識した結果である、家屋の輪郭及び
骨格を形成する閉ループ画像の表示例を示す。
FIG. 27 shows a display example of a floor plan image image from which the data of the specific color has been removed. Further, FIG.
Fig. 8 shows a display example of a closed-loop image that forms the outline and skeleton of a house as a result of drawing recognition from the floor plan image image data from which the data of the specific color has been removed.

【0131】図29は、その認識した家屋の輪郭及び骨
格の位置を、その水平方向及び垂直方向の間隔が認識し
た方眼線の間隔の整数倍になるように修正した結果を、
方眼線と重ねて表示した例を示している。この場合の方
眼線の間隔は1/4間となっている。
FIG. 29 shows the result of correcting the recognized outline of the house and the position of the skeleton so that the horizontal and vertical intervals are integer multiples of the recognized grid line intervals.
An example is shown in which the display is superimposed on a grid line. In this case, the interval between the grid lines is 1/4.

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

【0133】[0133]

【発明の効果】以上説明してきたように、従来は、多目
的のために複数色で記述された図面、あるいは用紙の地
に特定色(空色,黄色,茶色など)の方眼線が印刷され
ているような複数の色出で構成さけている建設図面か
ら、家屋の輪郭や骨格を認識するのは難しく、誤認識す
る率が高くなっていたが、この発明によれば、そのよう
な建設図面からでも精度よくその輪郭及び骨格(壁)を
認識することができる。その際、入力したカラーイメー
ジ画像データから抽出あるいは除去する特別色の指定も
簡単に行なうことができる。また、地の方眼線の間隔を
認識して、図面の認識結果である輪郭及び骨格の間隔を
修正することもできる。
As described above, conventionally, a grid line of a specific color (sky blue, yellow, brown, etc.) is printed on a drawing described in a plurality of colors for multipurpose or on the background of paper. It was difficult to recognize the outline and skeleton of a house from a construction drawing composed of a plurality of colors, and the rate of misrecognition was high, but according to the present invention, from such a construction drawing However, the outline and the skeleton (wall) can be accurately recognized. At this time, it is possible to easily designate a special color to be extracted or removed from the input color image image data. It is also possible to recognize the interval between the grid lines on the ground and to correct the interval between the outline and the skeleton as the recognition result of the drawing.

【0134】さらに、この発明によれば、従来正確な認
識が困難であった線が途切れたり直線が多少傾いて記載
された手書き図面、青焼きなどの比較的コントラストが
低い図面、ノイズが多い図面、家屋の輪郭や骨格を認識
する上で不要な色付きメモののある図面、あるいは古い
建設図面など、記載状態や画質の悪い建設図面でも、簡
単にその輪郭及び骨格、特に壁を精度良く認識すること
ができる。
Further, according to the present invention, a handwritten drawing in which a line is broken or a straight line is slightly inclined, a drawing having a relatively low contrast such as a blue print, and a drawing having a lot of noise, which were conventionally difficult to accurately recognize. Even in construction drawings with poorly described or poor image quality, such as drawings with colored memos unnecessary for recognizing the outline and skeleton of a house, or old construction drawings, the outline and skeleton, especially walls, can be easily and accurately recognized. be able to.

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

【図1】この発明による建設図面認識方法を実施する建
設図面認識装置一実施形態の構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing the configuration of an embodiment 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, which has also been skew-corrected, is superimposed on image data of a recognition result and displayed.

【図4】建設図面における外輪郭,外壁,内壁及び骨格
の定義を説明するための図である。
FIG. 4 is a diagram for explaining definitions 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】図5におけるステップ103の特定色を抽出又
は除去した図面のイメージ画像データを図面認識するサ
ブルーチンを示すフロー図である。
6 is a flowchart showing a subroutine for recognizing a drawing of image data of a drawing from which a specific color has been extracted or removed in step 103 in FIG. 5;

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

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

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

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

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

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

【図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 illustrating an example of image data in which the investigation target area of the architectural drawing illustrated in FIG. 10 is limited, and an example of black dot number measurement array data 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 black dot number measurement array data 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のステップ106における方眼間隔を認
識して認識図面を修正する処理のサブルーチンを示すフ
ロー図である。
25 is a flowchart showing a subroutine of processing for recognizing a grid interval and correcting a recognition drawing in step 106 of FIG. 5;

【図26】特定色の方眼線が印刷された用紙上に手書き
された間取図のカラーイメージ画像データの表示例を示
す図である。
FIG. 26 is a diagram showing a display example of color image image data of a floor plan handwritten on paper on which grid lines of a specific color are printed.

【図27】図26に示した間取図のイメージ画像データ
に対して特定色の方眼線を除去した後の図面認識の対象
とするイメージ画像データの表示例を示す図である。
FIG. 27 is a diagram showing a display example of image image data to be subjected to drawing recognition after grid lines of a specific color have been removed from the image image data of the floor plan shown in FIG. 26;

【図28】図27のイメージ画像データに対して図面認
識した結果である家屋の輪郭及び骨格の表示例を示す図
である。
28 is a diagram showing a display example of the outline and skeleton of a house as a result of drawing recognition of the image image data of FIG. 27.

【図29】同じくその認識結果を方眼線の間隔の認識結
果によって修正し、それを方眼線と重ね合わせて表示し
た例を示す図である。
FIG. 29 is a diagram showing an example in which the recognition result is corrected based on the recognition result of the grid line interval, and is displayed by being superimposed on the grid line.

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

1:全体制御部(CPU) 2:画像読取部 3:通信制御部 4:メモリ 5:自動スキュー補正部 6:ドット数計測配列データ作成部 7:輪郭・骨格認識部 8:再マッピング制御部 9:表示部 10:操作入力部 11:外部記憶装置 12:印刷装置 13:特定色抽出/除去部 14:バス 1: Overall control unit (CPU) 2: Image reading unit 3: Communication control unit 4: Memory 5: Automatic skew correction unit 6: Dot number measurement array data creation unit 7: Outline / skeleton recognition unit 8: Remapping control unit 9 : Display unit 10: operation input unit 11: external storage device 12: printing device 13: specific color extraction / removal unit 14: bus

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 複数の色で構成された建設図面の画像を
読み取ったカラーイメージ画像データの中から、特定色
の画像データを抽出し、その抽出した画像データに対し
て水平方向及び垂直方向の色ドット又は白ドット数を計
測して水平及び垂直方向のドット数計測配列データを作
成し、その作成した水平及び垂直方向のドット数計測配
列データに基づいて建設図面の輪郭及び骨格を認識する
ことを特徴とする建設図面認識方法。
An image data of a specific color is extracted from color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and the extracted image data is extracted in horizontal and vertical directions. Measure the number of color dots or white dots to create horizontal and vertical dot number measurement array data, and recognize the outline and skeleton of the construction drawing based on the created horizontal and vertical dot number measurement array data. A method for recognizing construction drawings.
【請求項2】 複数の色で構成された建設図面の画像を
読み取ったカラーイメージ画像データの中から、特定色
の画像データを除去し、その除去後に残った画像データ
に対して水平方向及び垂直方向の色ドット又は白ドット
数を計測して水平及び垂直方向のドット数計測配列デー
タを作成し、その作成した水平及び垂直方向のドット数
計測配列データに基づいて建設図面の輪郭及び骨格を認
識することを特徴とする建設図面認識方法。
2. A method for removing image data of a specific color from color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and removing horizontal and vertical image data remaining after the removal. The number of color dots or white dots in the direction is measured to create horizontal and vertical dot number measurement array data, and the outline and skeleton of the construction drawing are recognized based on the created horizontal and vertical dot number measurement array data. And a construction drawing recognition method.
【請求項3】 請求項1又は2記載の建設図面認識方法
において、 前記建設図面の画像を読み取ったカラーイメージ画像を
カラー表示し、その表示画像の特定色で表示された部分
領域が直接指定されることにより、前記抽出又は除去す
る画像データの特定色を決定することを特徴とする建設
図面認識方法。
3. The construction drawing recognition method according to claim 1, wherein a color image image obtained by reading the image of the construction drawing is displayed in color, and a partial area of the display image displayed in a specific color is directly designated. Thereby determining a specific color of the image data to be extracted or removed.
【請求項4】 請求項1乃至3のいずれか一項に記載の
建設図面認識方法において、 前記建設図面の認識した輪郭及び骨格に基づいて前記画
像データの範囲を限定し、その各範囲毎に水平方向及び
垂直方向の色ドット又は白ドット数を計測して水平及び
垂直方向のドット数計測配列データを作成し、その作成
した水平及び垂直方向のドット数計測配列データに基づ
いて各限定した範囲内の輪郭及び骨格を認識すること
を、新たな輪郭又は骨格を認識できなくなるまで繰り返
すことを特徴とする建設図面認識方法。
4. The construction drawing recognition method according to claim 1, wherein a range of the image data is limited based on a recognized outline and a skeleton of the construction drawing. The number of color dots or white dots in the horizontal and vertical directions is measured to create horizontal and vertical dot number measurement array data, and each limited range based on the created horizontal and vertical dot number measurement array data Recognizing a contour and a skeleton in the object until a new contour or skeleton cannot be recognized.
【請求項5】 請求項1乃至4のいずれか一項に記載の
建設図面認識方法において、 前記建設図面の画像を読み取ったカラーイメージ画像デ
ータの中から、建設図面の用紙の地に印刷されている方
眼線の色の画像データを抽出し、その抽出した画像デー
タから水平方向及び垂直方向の直線を認識して、その各
方向の直線の間隔を計測し、その各間隔の平均値を求め
て前記方眼線の間隔を認識し、前記建設図面の輪郭及び
骨格の認識結果を、その水平方向及び垂直方向の間隔が
前記認識した方眼線の間隔の整数倍になるように修正す
ることを特徴とする建設図面認識方法。
5. The construction drawing recognition method according to claim 1, wherein the construction drawing is printed on a ground of a paper of the construction drawing from the color image image data obtained by reading the image of the construction drawing. The image data of the color of the grid line is extracted, horizontal and vertical straight lines are recognized from the extracted image data, the interval between the straight lines in each direction is measured, and the average value of each interval is obtained. Recognizing the grid line intervals and correcting the outline and skeleton recognition results of the construction drawing so that the horizontal and vertical intervals are integer multiples of the recognized grid line intervals. How to recognize construction drawings.
【請求項6】 複数の色で構成された建設図面の画像を
読み取ったカラーイメージ画像データを入力する画像デ
ータ入力手段と、 該手段によって入力したカラーイメージ画像データから
指定された特定色の画像データを抽出する特定色抽出手
段と、 該手段によって抽出した特定色の画像データに対して水
平方向及び垂直方向の色ドット又は白ドット数を計測し
て水平及び垂直方向のドット数計測配列データを作成す
るドット数計測配列データ作成手段と、 該手段により作成された水平及び垂直方向のドット数計
測配列データに基づいて建設図面の輪郭及び骨格を認識
する輪郭・骨格認識手段とを有することを特徴とする建
設図面認識装置。
6. An image data input unit for inputting color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and image data of a specific color designated from the color image image data input by the unit. A specific color extracting means for extracting the number of color dots or white dots in the horizontal direction and the vertical direction with respect to the image data of the specific color extracted by the means, and creating horizontal and vertical dot number measurement array data And a contour / skeleton recognizing means for recognizing the outline and skeleton of the construction drawing based on the horizontal and vertical dot number measurement array data generated by the means. Construction drawing recognition device.
【請求項7】 複数の色で構成された建設図面の画像を
読み取ったカラーイメージ画像データを入力する画像デ
ータ入力手段と、 該手段によって入力したカラーイメージ画像データから
指定された特定色の画像データを除去する特定色除去手
段と、 該手段によって特定色の画像データを除去した後に残っ
画像データに対して、水平方向及び垂直方向の色ドット
又は白ドット数を計測して水平及び垂直方向のドット数
計測配列データを作成するドット数計測配列データ作成
手段と、 該手段により作成された水平及び垂直方向のドット数計
測配列データに基づいて建設図面の輪郭及び骨格を認識
する輪郭・骨格認識手段とを有することを特徴とする建
設図面認識装置。
7. Image data input means for inputting color image image data obtained by reading an image of a construction drawing composed of a plurality of colors, and image data of a specific color designated from the color image image data input by the means. A specific color removing unit that removes image data of a specific color by the unit, and counts the number of color dots or white dots in the horizontal and vertical directions with respect to the image data remaining after removing the image data of the specific color. Dot number measurement array data creating means for creating number measurement array data; contour / skeleton recognition means for recognizing the outline and skeleton of the construction drawing based on the horizontal and vertical dot number measurement array data created by the means; A construction drawing recognition device comprising:
【請求項8】 請求項6又は7記載の建設図面認識方法
において、 前記建設図面の画像を読み取ったカラーイメージ画像を
カラー表示する表示手段と、 該表示手段によって表示されたカラーイメージ画像中の
特定色で表示された部分領域を直接指定する特定色指定
手段と、 該特定色指定手段によって指定された部分領域の表示色
を、前記抽出又は除去する画像データの特定色として決
定する特定色決定手段とを設けたことを特徴とする建設
図面認識装置。
8. The construction drawing recognition method according to claim 6, wherein a display means for displaying a color image image obtained by reading the image of the construction drawing in color, and a specification in the color image image displayed by the display means. Specific color specifying means for directly specifying a partial area displayed in color; and specific color determining means for determining a display color of the partial area specified by the specific color specifying means as a specific color of the image data to be extracted or removed. And a construction drawing recognition device.
【請求項9】 請求項6乃至8のいずれか一項に記載の
建設図面認識装置において、 前記建設図面の画像を読み取ったカラーイメージ画像デ
ータの中から、建設図面の用紙の地に印刷されている方
眼線の色の画像データを抽出する手段と、 該手段によって抽出した画像データから水平方向及び垂
直方向の直線を認識して、その各方向の直線の間隔を計
測し、その各間隔の平均値を求めて前記方眼線の間隔を
認識する手段と、 前記建設図面の輪郭及び骨格の認識結果を、その水平方
向及び垂直方向の間隔が前記認識した方眼線の間隔の整
数倍になるように修正する図面認識結果修正手段とを設
けたことを特徴とする建設図面認識装置。
9. The construction drawing recognition device according to claim 6, wherein the construction drawing recognition image is printed on a construction drawing paper sheet from color image image data obtained by reading the construction drawing image. Means for extracting image data of the color of the grid line, and recognizing straight lines in the horizontal and vertical directions from the image data extracted by the means, measuring the interval between the straight lines in each direction, and averaging the intervals. Means for obtaining a value and recognizing the interval between the grid lines, and recognizing the outline and skeleton of the construction drawing so that the horizontal and vertical intervals are integer multiples of the recognized grid line intervals. A construction drawing recognition device, comprising: a drawing recognition result correcting means for correcting.
【請求項10】 コンピュータによって建設図面を認識
するための制御プログラムを記録した記録媒体であっ
て、 前記コンピュータを、 複数の色で構成された建設図面の画像を読み取ったカラ
ーイメージ画像データを入力する画像データ入力手段
と、 該手段によって入力したカラーイメージ画像データから
指定された特定色の画像データを抽出又は除去する特定
色抽出/除去手段と、 該手段によって抽出した特定色の画像データ又は該特定
色の画像データを除去した残りの画像データに対して、
水平方向及び垂直方向の色ドット又は白ドット数を計測
して水平及び垂直方向のドット数計測配列データを作成
するドット数計測配列データ作成手段と、 該手段により作成された水平及び垂直方向のドット数計
測配列データに基づいて建設図面の輪郭及び骨格を認識
する輪郭・骨格認識手段として機能させるための制御プ
ログラムを記録したコンピュータ読み取り可能な記録媒
体。
10. A recording medium storing a control program for recognizing a construction drawing by a computer, wherein the computer inputs color image image data obtained by reading an image of the construction drawing composed of a plurality of colors. Image data input means; specific color extracting / removing means for extracting or removing specified color image data from color image image data input by the means; specific color image data extracted by the means or the specific color image data For the remaining image data after removing the color image data,
Dot number measurement array data creating means for creating the horizontal and vertical dot number measurement array data by measuring the number of color dots or white dots in the horizontal direction and the vertical direction, and the horizontal and vertical dots created by the means A computer-readable recording medium on which a control program for functioning as a contour / skeleton recognizing means for recognizing a contour and a skeleton of a construction drawing based on number measurement array data is recorded.
JP04912698A 1998-03-02 1998-03-02 Construction drawing recognition method and recognition apparatus Expired - Fee Related JP3679241B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04912698A JP3679241B2 (en) 1998-03-02 1998-03-02 Construction drawing recognition method and recognition apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04912698A JP3679241B2 (en) 1998-03-02 1998-03-02 Construction drawing recognition method and recognition apparatus

Publications (2)

Publication Number Publication Date
JPH11250114A true JPH11250114A (en) 1999-09-17
JP3679241B2 JP3679241B2 (en) 2005-08-03

Family

ID=12822383

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04912698A Expired - Fee Related JP3679241B2 (en) 1998-03-02 1998-03-02 Construction drawing recognition method and recognition apparatus

Country Status (1)

Country Link
JP (1) JP3679241B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5974140B1 (en) * 2015-06-12 2016-08-23 株式会社タカラトミー Image processing apparatus, image processing method, and program
JP2020091817A (en) * 2018-12-08 2020-06-11 株式会社構造計画研究所 Drawing recognition device, drawing recognition method, and program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220091581A1 (en) * 2020-09-23 2022-03-24 Dusty Robotics, Inc. Mobile printing robot system, apparatus, and method to automatically print construction trade information for printed layout lines

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5974140B1 (en) * 2015-06-12 2016-08-23 株式会社タカラトミー Image processing apparatus, image processing method, and program
JP2020091817A (en) * 2018-12-08 2020-06-11 株式会社構造計画研究所 Drawing recognition device, drawing recognition method, and program

Also Published As

Publication number Publication date
JP3679241B2 (en) 2005-08-03

Similar Documents

Publication Publication Date Title
JP2011192274A (en) Method and apparatus for form template definition
JP2021124933A (en) System for generating image
CN110569774B (en) Automatic line graph image digitalization method based on image processing and pattern recognition
JP3571128B2 (en) Method and apparatus for recognizing dimensions of drawings
JP3679241B2 (en) Construction drawing recognition method and recognition apparatus
JP3595393B2 (en) Construction drawing recognition method and recognition device
JP3516502B2 (en) Construction drawing recognition method and recognition device
JP3516541B2 (en) Method and apparatus for recognizing dimension information of construction drawings
WO2006059662A1 (en) Apparatus and method for inspecting display device
JP3658468B2 (en) Architectural drawing recognition method and recognition device
JP3516540B2 (en) Construction drawing recognition method and recognition device
JP3678523B2 (en) Construction drawing recognition method and construction drawing recognition apparatus
JP3545481B2 (en) Image recognition method and apparatus
JP3961595B2 (en) Architectural drawing recognition method and recognition device
JP3686214B2 (en) Construction drawing recognition method and recognition apparatus
JP3645404B2 (en) Method and apparatus for recognizing door from architectural drawing
JP3678521B2 (en) Construction drawing recognition method and recognition apparatus
JPH11259550A (en) Construction drawing recognition method and recognition device and computer readable recording medium recording program therefor
JP3648006B2 (en) Toilet recognition method and construction drawing recognition device from construction drawings
JP2000187730A (en) Method and device for processing picture data of construction drawing and computer readable recording medium storing control program for the method
JP2023031658A (en) Inspection device, method for controlling inspection device, and program
CN112906469A (en) Fire-fighting sensor and alarm equipment identification method based on building plan
JP2000194744A (en) Method and device for processing image data of construction drawing and computer readable recording medium recording control program therefor
JP3701778B2 (en) Architectural drawing recognition method and architectural drawing recognition device
JP3607433B2 (en) Method and apparatus for extracting electrical symbols from construction drawings

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041227

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050308

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050406

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050412

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050512

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

Free format text: PAYMENT UNTIL: 20080520

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20090520

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100520

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110520

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees