JP2020091817A - Drawing recognition device, drawing recognition method, and program - Google Patents

Drawing recognition device, drawing recognition method, and program Download PDF

Info

Publication number
JP2020091817A
JP2020091817A JP2018230463A JP2018230463A JP2020091817A JP 2020091817 A JP2020091817 A JP 2020091817A JP 2018230463 A JP2018230463 A JP 2018230463A JP 2018230463 A JP2018230463 A JP 2018230463A JP 2020091817 A JP2020091817 A JP 2020091817A
Authority
JP
Japan
Prior art keywords
line
colored
region
recognition
recognizes
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
JP2018230463A
Other languages
Japanese (ja)
Other versions
JP7111599B2 (en
Inventor
亜紀 福本
Aki Fukumoto
亜紀 福本
徹也 福留
Tetsuya Fukutome
徹也 福留
一雄 坂元
Kazuo Sakamoto
一雄 坂元
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.)
Kozo Keikaku Engineering Inc
Original Assignee
Kozo Keikaku Engineering Inc
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 Kozo Keikaku Engineering Inc filed Critical Kozo Keikaku Engineering Inc
Priority to JP2018230463A priority Critical patent/JP7111599B2/en
Publication of JP2020091817A publication Critical patent/JP2020091817A/en
Application granted granted Critical
Publication of JP7111599B2 publication Critical patent/JP7111599B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)

Abstract

To provide a drawing recognition device, drawing recognition method, and program, capable of easily and appropriately extracting graphic objects, such as line segments and closed areas, from a drawing image.SOLUTION: A drawing recognition device (100) is provided, comprising: drawing image input means (101) configured to receive input of a colored drawing image; and drawing line recognition means (105, 107, 109, 111, 113, 115 or 117) configured to recognize colored areas, recognize specific drawing lines based on the colored areas, and generate line segment objects corresponding to the drawing lines.SELECTED DRAWING: Figure 3A

Description

本発明は図面認識装置、図面認識方法及びプログラムに関し、特に図面の画像から線分や閉領域等の図形オブジェクトを容易かつ的確に抽出できる図面認識装置、図面認識方法及びプログラムに関する。 The present invention relates to a drawing recognition device, a drawing recognition method, and a program, and more particularly to a drawing recognition device, a drawing recognition method, and a program capable of easily and accurately extracting a graphic object such as a line segment or a closed region from an image of a drawing.

手書き、印刷、画面表示又は投影などにより提供される図面(以下、単に図面という)を画像(以下、画像、画像データ、図面画像又は図面画像データという)として読み込み、図面画像データから寸法線、外周線及び描画線等の線分、並びに閉領域等の図形オブジェクトを抽出し、図形オブジェクトに対して建具、壁や柱、部屋等の意味づけを行う技術が種々提案されている。図形オブジェクトはCADアプリケーショ等で扱うことが可能であるから、これらの技術により設計、施工、検査及びメンテナンス業務等の生産性が格段に向上する。 A drawing (hereinafter, simply referred to as drawing) provided by handwriting, printing, screen display, or projection is read as an image (hereinafter, referred to as image, image data, drawing image or drawing image data), and the dimension line and the outer circumference are drawn from the drawing image data. Various techniques have been proposed for extracting line objects such as lines and drawing lines, and graphic objects such as closed areas, and giving meanings to fittings such as fittings, walls and columns, and rooms. Since a graphic object can be handled by a CAD application or the like, productivity of design, construction, inspection, maintenance work, etc. is significantly improved by these techniques.

例えば特許文献1には、図面画像から水平および垂直線分を抽出し、当該線分に囲まれた閉領域を抽出するとともに、当該図面画像から間取り記号や図面記号を認識し、当該閉領域の部屋機能を識別する建築図面認識装置が記載されている。 For example, in Patent Document 1, horizontal and vertical line segments are extracted from a drawing image, a closed region surrounded by the line segment is extracted, and a floor plan symbol and a drawing symbol are recognized from the drawing image to identify the closed region. An architectural drawing recognition device for identifying room functions is described.

関連技術として、特許文献2には、建設図面の画像に含まれる輪郭線をスムージングすることにより、直線や円弧等の基本線図の認識精度を向上させる画像処理装置が記載されている。 As a related technique, Patent Document 2 describes an image processing device that improves the recognition accuracy of a basic line drawing such as a straight line or an arc by smoothing a contour line included in an image of a construction drawing.

特開平10−124547号公報JP-A-10-124547 特開2000−187730号公報JP-A-2000-187730 特開2006−195622号公報JP, 2006-195622, A

しかしながら、図面の仕様は業種や作成者によって様々であり、図面画像から線分や閉領域等を抽出する際のルールを一律に規定することが困難である。また、図面が込み入っている場合には、画像から抽出すべき線分や閉領域等を識別すること自体が困難であることが少なくない。よって、図面の画像データから抽出すべき線分や閉領域等を容易かつ的確に特定し、図形オブジェクトとして抽出する技術の確立が望まれている。 However, drawings have various specifications depending on industries and creators, and it is difficult to uniformly define rules for extracting line segments, closed regions, and the like from drawing images. In addition, when the drawings are complicated, it is often difficult to identify the line segment or the closed region to be extracted from the image. Therefore, it is desired to establish a technique for easily and accurately identifying a line segment, a closed region, or the like to be extracted from the image data of the drawing, and extracting it as a graphic object.

本発明はこれらの問題を解決するためになされたものであり、図面の画像から線分や閉領域等の図形オブジェクトを容易かつ的確に抽出できる図面認識装置、図面認識方法及びプログラムを提供することを目的とする。 The present invention has been made to solve these problems, and provides a drawing recognition device, a drawing recognition method, and a program capable of easily and accurately extracting a graphic object such as a line segment or a closed region from an image of a drawing. With the goal.

本発明の一実施形態に係る図面認識装置は、着色が施された図面画像を入力する図面画像入力手段と、前記着色された領域を認識し、前記領域に基づいて特定の描画線を認識し、前記描画線に相当する線分オブジェクトを生成する描画線認識手段と、を有する。
本発明の一実施形態に係る図面認識装置は、前記図面画像入力手段は、複数の種類の前記描画線に対し前記種類ごとに異なる色で着色が施された前記図面画像を入力し、前記描画線認識手段は、前記色ごとに、前記着色された領域を認識し、前記領域に基づいて特定の種類の前記描画線を認識し、前記描画線に相当する線分オブジェクトを生成する。
本発明の一実施形態に係る図面認識装置は、前記図面画像において所定の色で着色された領域を認識し、前記領域に基づいて外周線を認識し、前記外周線に相当する線分オブジェクトを生成する外周線認識手段をさらに有する。
本発明の一実施形態に係る図面認識装置は、前記図面画像において所定の色で着色が施された領域を認識し、前記領域に基づいて寸法線を認識し、前記寸法線に基づきグリッド線を生成する寸法線認識手段をさらに有する。
本発明の一実施形態に係る図面認識装置は、前記描画線認識手段は、前記所定の色で着色が施された領域を認識し、前記領域に基づいて線分要素を認識し、前記線分要素を前記グリッド線に合わせて補正することにより、前記描画線に相当する線分オブジェクトを生成する。
本発明の一実施形態に係る図面認識装置は、前記描画線認識手段は、前記所定の色で着色された領域を認識し、前記領域内に前記グリッド線に合わせた線分要素を生成することにより、前記描画線に相当する線分オブジェクトを生成する。
本発明の一実施形態に係る図面認識装置は、前記外周線認識手段は、前記所定の色で着色された領域を認識し、前記領域に基づいて線分要素を認識し、前記線分要素を前記グリッド線に合わせて補正することにより、前記外周線に相当する線分オブジェクトを生成する。
本発明の一実施形態に係る図面認識装置は、前記外周線認識手段は、前記所定の色で着色された領域を認識し、前記領域内に前記グリッド線に合わせた線分要素を生成することにより、前記外周線に相当する線分オブジェクトを生成する。
本発明の一実施形態に係る図面認識装置は、前記描画線により形成される閉領域を認識する閉領域認識手段をさらに有する。
本発明の一実施形態に係る図面認識方法は、図面画像入力手段と描画線認識手段とを有するコンピュータが、前記図面画像入力手段が、着色が施された図面画像を入力する図面画像入力ステップと、前記描画線認識手段が、前記着色された領域を認識し、前記領域に基づいて特定の描画線を認識し、前記描画線に相当する線分オブジェクトを生成する描画線認識ステップと、を有する。
本発明の一実施形態に係るプログラムは、上記図面認識方法をコンピュータに実行させるためのプログラムである。
A drawing recognition apparatus according to an embodiment of the present invention recognizes a drawing image input unit for inputting a colored drawing image, the colored area, and a specific drawing line based on the area. , And a drawing line recognition means for generating a line segment object corresponding to the drawing line.
In the drawing recognition device according to an embodiment of the present invention, the drawing image input means inputs the drawing images in which a plurality of kinds of drawing lines are colored with different colors for each kind, and the drawing images are drawn. The line recognition means recognizes the colored region for each color, recognizes the drawing line of a specific type based on the region, and generates a line segment object corresponding to the drawing line.
A drawing recognition apparatus according to an embodiment of the present invention recognizes an area colored with a predetermined color in the drawing image, recognizes an outer peripheral line based on the area, and detects a line segment object corresponding to the outer peripheral line. It further has a peripheral line recognition means for generating.
A drawing recognition apparatus according to an embodiment of the present invention recognizes a region colored in a predetermined color in the drawing image, recognizes a dimension line based on the region, and forms a grid line based on the dimension line. It further has a dimension line recognition means for generating.
In the drawing recognition device according to an embodiment of the present invention, the drawing line recognition means recognizes a region colored with the predetermined color, recognizes a line segment element based on the region, and the line segment A line segment object corresponding to the drawing line is generated by correcting the element according to the grid line.
In the drawing recognition device according to an embodiment of the present invention, the drawing line recognition means recognizes a region colored with the predetermined color, and generates a line segment element in the region that matches the grid line. Thus, a line segment object corresponding to the drawing line is generated.
In the drawing recognition device according to an embodiment of the present invention, the peripheral line recognition means recognizes a region colored with the predetermined color, recognizes a line segment element based on the region, and detects the line segment element. A line segment object corresponding to the outer peripheral line is generated by performing correction according to the grid line.
In the drawing recognition device according to one embodiment of the present invention, the outer peripheral line recognition means recognizes a region colored with the predetermined color, and generates a line segment element in the region that matches the grid line. Thus, a line segment object corresponding to the outer peripheral line is generated.
The drawing recognition apparatus according to an exemplary embodiment of the present invention further includes a closed area recognition unit that recognizes a closed area formed by the drawing line.
A drawing recognition method according to an embodiment of the present invention includes a drawing image input step in which a computer having a drawing image input unit and a drawing line recognition unit causes the drawing image input unit to input a colored drawing image. A drawing line recognition step in which the drawing line recognition means recognizes the colored region, recognizes a specific drawing line based on the region, and generates a line segment object corresponding to the drawing line. ..
A program according to an embodiment of the present invention is a program for causing a computer to execute the drawing recognition method.

本発明により、図面の画像から線分や閉領域等の図形オブジェクトを容易かつ的確に抽出できる図面認識装置、図面認識方法及びプログラムを提供することができる。 According to the present invention, it is possible to provide a drawing recognition device, a drawing recognition method and a program capable of easily and accurately extracting a graphic object such as a line segment or a closed region from an image of a drawing.

着色された図面の画像データの一例である。It is an example of image data of a colored drawing. 前処理が施された図面の画像データの一例である。It is an example of image data of a drawing that has been subjected to preprocessing. 図面認識装置100の概略的なハードウェア構成を示すブロック図である。3 is a block diagram showing a schematic hardware configuration of the drawing recognition device 100. FIG. 実施の形態1にかかる図面認識装置100の概略的な機能構成を示すブロック図である。1 is a block diagram showing a schematic functional configuration of a drawing recognition apparatus 100 according to a first exemplary embodiment. 実施の形態2にかかる図面認識装置100の概略的な機能構成を示すブロック図である。FIG. 4 is a block diagram showing a schematic functional configuration of a drawing recognition device 100 according to a second exemplary embodiment. 建物サイズデータの一例である。It is an example of building size data. 寸法線認識手段105による処理過程を示す図である。FIG. 6 is a diagram showing a processing process by a dimension line recognizing means 105. 寸法線認識手段105による処理過程を示す図である。FIG. 6 is a diagram showing a processing process by a dimension line recognizing means 105. 寸法線認識手段105による処理過程を示す図である。FIG. 6 is a diagram showing a processing process by a dimension line recognizing means 105. 外周線認識手段107による処理過程を示す図である。It is a figure which shows the process of the outer peripheral line recognition means 107. 描画線(開口部)認識手段109による処理過程を示す図である。FIG. 7 is a diagram showing a processing process by a drawing line (opening) recognition means 109. 描画線(間仕切)認識手段111による処理過程を示す図である。FIG. 6 is a diagram showing a processing process by a drawing line (partition) recognition means 111. 閉領域認識手段119による処理過程を示す図である。It is a figure which shows the process of the closed area|region recognition means 119. 出力データの一例である。It is an example of output data. 出力データの一例である。It is an example of output data. グリッド作成処理の一例である。It is an example of a grid creation process. グリッド作成処理の一例である。It is an example of a grid creation process. グリッド作成処理の一例である。It is an example of a grid creation process. 着色された図面の画像データの一例である。It is an example of image data of a colored drawing. 着色された図面の画像データの一例である。It is an example of image data of a colored drawing.

<実施の形態1>
本発明を適用した具体的な実施の形態について、図面を参照しながら詳細に説明する。本発明の実施の形態1にかかる図面認識装置100は、図1Aに示すような、予め着色された図面の画像データを取得し、その着色に基づいて、抽出すべき図形オブジェクト(例えば外周線、窓等の開口部、壁等の間仕切、扉等の建具などに分類されるオブジェクト)やその種類を特定するものである。すなわち、図面に含まれる所定の要素は、予め、その種類に応じた所定の色で着色されている必要がある。
<Embodiment 1>
Specific embodiments to which the present invention is applied will be described in detail with reference to the drawings. The drawing recognition apparatus 100 according to the first exemplary embodiment of the present invention obtains image data of a previously colored drawing as shown in FIG. 1A, and based on the coloring, a graphic object to be extracted (for example, a peripheral line, Objects such as openings such as windows, partitions such as walls, fittings such as doors) and their types are specified. That is, the predetermined element included in the drawing needs to be colored in advance with a predetermined color according to its type.

例えば、外周線は赤及び黄、外周線のうち開口部に当たる部分の描画線は黄、間仕切を示す描画線は青、建具を示す描画線は緑で着色する。この際の着色は、外周線及び描画線等を覆い、かつ外周線及び描画線等が透過するように行われることが好ましい。例えば、外周線及び描画線等が黒色で印刷された紙の図面において、黄、青、緑のラインマーカ等で外周線及び描画線等をなぞるように着色する。また、寸法線はその周囲を囲むように緑で着色する。外周線、描画線及び寸法線等は、着色と明確に区別できるよう、典型的には黒色で描くことが好ましい。 For example, the outer peripheral line is colored in red and yellow, the drawing line of the portion corresponding to the opening in the outer peripheral line is colored in yellow, the drawing line indicating the partition is colored in blue, and the drawing line indicating the fitting is colored in green. The coloring at this time is preferably performed so as to cover the outer peripheral line and the drawing line and to transmit the outer peripheral line and the drawing line. For example, in a paper drawing in which the outer peripheral line and the drawing line are printed in black, coloring is performed by tracing the outer peripheral line and the drawing line with yellow, blue, and green line markers. Also, the dimension line is colored in green so as to surround it. Peripheral lines, drawing lines, dimension lines and the like are typically preferably drawn in black so that they can be clearly distinguished from coloring.

図2は、図面認識装置100の概略的なハードウェア構成を示すブロック図である。図面認識装置100は、CPU11、揮発性メモリ13、不揮発性メモリ14、インタフェース15、インタフェース16、バス20、入出力装置70、撮影装置80を有する情報処理装置である。 FIG. 2 is a block diagram showing a schematic hardware configuration of the drawing recognition device 100. The drawing recognition apparatus 100 is an information processing apparatus including a CPU 11, a volatile memory 13, a non-volatile memory 14, an interface 15, an interface 16, a bus 20, an input/output device 70, and a photographing device 80.

図面認識装置100は、単体の情報処理装置であっても良く、複数の情報処理装置により構成されていても良い。例えば、図面認識装置100の全ての機能が1つの携帯端末装置等に実装されても良い。または、1部の機能は携帯端末装置等に、他の機能はサーバコンピュータ等に実装されても良い。この場合、サーバコンピュータはクラウドコンピューティング、エッジコンピューティング及びフォグコンピューティング等の技術を利用して提供されるものであっても良い。 The drawing recognition apparatus 100 may be a single information processing apparatus, or may be configured by a plurality of information processing apparatuses. For example, all the functions of the drawing recognition device 100 may be implemented in one mobile terminal device or the like. Alternatively, some functions may be installed in a mobile terminal device or the like, and other functions may be installed in a server computer or the like. In this case, the server computer may be provided using technologies such as cloud computing, edge computing, and fog computing.

CPU11(中央処理装置)は、不揮発性メモリ14に格納されたプログラムを、バス20を介して読み出し、プログラムに従った情報処理を実行することにより特有の機能を実現する。 The CPU 11 (central processing unit) reads out the program stored in the non-volatile memory 14 via the bus 20 and executes information processing according to the program to realize a specific function.

不揮発性メモリ14は、図面認識装置100の電源の状態にかかわらず記憶状態が保持される記憶装置であり、例えばハードディスクやSSD等である。一般に、不揮発性メモリ14に記憶されているプログラムやデータは、プログラム実行時に揮発性メモリ13に展開される。 The non-volatile memory 14 is a storage device that retains a storage state regardless of the power state of the drawing recognition apparatus 100, and is, for example, a hard disk or SSD. Generally, programs and data stored in the non-volatile memory 14 are expanded in the volatile memory 13 when the program is executed.

揮発性メモリ13には、不揮発性メモリ14から展開されたプログラムやデータをはじめ、一時的な計算データや入出力装置70を介して入力又は出力されるデータ等が格納される記憶装置である。 The volatile memory 13 is a storage device that stores programs and data expanded from the non-volatile memory 14, temporary calculation data, data input or output through the input/output device 70, and the like.

入出力装置70はディスプレイ等のデータ出力装置、キーボード等のデータ入力装置、外部装置(例えばネットワークを介して接続された他の情報処理装置など)との通信を制御する通信インタフェース等を含む。CPU11から出力された表示データは、インタフェース15を介してディスプレイに表示される。キーボードから入力された指令やデータは、インタフェース15を介してCPU11に渡される。通信インタフェースはCPU11が出力する送信データをインタフェース15により取得し、外部装置に対して出力する。また通信インタフェースは外部装置より受信データを取得し、インタフェース15を介してCPU11に引き渡す。 The input/output device 70 includes a data output device such as a display, a data input device such as a keyboard, and a communication interface that controls communication with an external device (for example, another information processing device connected via a network). The display data output from the CPU 11 is displayed on the display via the interface 15. Instructions and data input from the keyboard are passed to the CPU 11 via the interface 15. The communication interface acquires the transmission data output by the CPU 11 through the interface 15 and outputs the transmission data to an external device. Further, the communication interface acquires the received data from the external device and transfers it to the CPU 11 via the interface 15.

撮影装置80は、カメラ等により図面を撮影し、画像データを出力する装置である。画像データは、インタフェース16を介してCPU11に渡される。 The photographing device 80 is a device that photographs a drawing with a camera or the like and outputs image data. The image data is passed to the CPU 11 via the interface 16.

図3Aは、本発明の実施の形態1にかかる図面認識装置100の概略的な機能構成を示すブロック図である。図面認識装置100は、図面画像入力手段101、前処理手段103、寸法線認識手段105、外周線認識手段107、描画線(開口部)認識手段109、描画線(間仕切)認識手段111、描画線(建具)認識手段117、閉領域認識手段119、出力手段121を有する。 FIG. 3A is a block diagram showing a schematic functional configuration of the drawing recognition device 100 according to the first exemplary embodiment of the present invention. The drawing recognition device 100 includes a drawing image input unit 101, a preprocessing unit 103, a dimension line recognition unit 105, a peripheral line recognition unit 107, a drawing line (opening) recognition unit 109, a drawing line (partition) recognition unit 111, and a drawing line. It has (joint) recognition means 117, closed area recognition means 119, and output means 121.

(図面画像の入力)
図面画像入力手段101は、手書き、印刷、画面表示又は投影などにより提供される図面の画像データを取得する。図面画像入力手段101は、典型的には撮影装置80により図面を撮影して画像データを得る。または、作成済みの画像データを、揮発性メモリ13、不揮発性メモリ14又は入出力装置70から読み込んでも良い。
(Enter drawing image)
The drawing image input unit 101 acquires image data of a drawing provided by handwriting, printing, screen display, projection, or the like. The drawing image input means 101 typically captures a drawing by an image capturing device 80 to obtain image data. Alternatively, the created image data may be read from the volatile memory 13, the non-volatile memory 14, or the input/output device 70.

ここで、画像データは、上述のように予め着色されている必要がある。また、図面中に図面枠が描かれている場合は、図面枠を画像内に収めることが好ましい。図1Aは、図面画像入力手段101が読み込んだ図面画像データの例を示している。この例では、図面が色1乃至色4の4色を用いて着色されており、寸法線及び建具は色1、外周線(開口部を除く)は色2、開口部は色3、間仕切は色4で着色されているものとする。 Here, the image data needs to be colored in advance as described above. Further, when a drawing frame is drawn in the drawing, it is preferable to fit the drawing frame in the image. FIG. 1A shows an example of drawing image data read by the drawing image input means 101. In this example, the drawing is colored using four colors, color 1 to color 4, the dimension line and fittings are color 1, the outer peripheral line (excluding the opening) is color 2, the opening is color 3, and the partition is Color 4 is assumed.

(建物サイズデータの入力)
前処理手段103は、図面画像入力手段101から図面の画像データを取得する。また、図4に示すような、建物サイズデータを併せて取得することができる。建物サイズデータは、図面に描かれている建物の最大外形寸法を示す情報である。図4の例では、図面ファイル名と、当該図面に描かれた建物のX方向の最大外形寸法とY方向の最大外形寸法がテキスト形式で記載されたcsvファイルとして、建物サイズデータが与えられている。例えば、図4の1レコード目は、図面ファイル「IMG_0000」においては、建物の最大外形寸法がwidth(X方向の幅)=「10060」,height(Y方向の奥行)=「6560」であることが示されている。なお、ファイルのフォーマットや形式等はこの例に限定されず任意に決定しうる。また、建物サイズデータは、例えばキーボードからの直接入力など他の手法で与えられても良い。
(Enter building size data)
The preprocessing unit 103 acquires drawing image data from the drawing image input unit 101. In addition, building size data as shown in FIG. 4 can also be acquired together. The building size data is information indicating the maximum external dimensions of the building drawn in the drawing. In the example of FIG. 4, the building size data is given as a csv file in which the drawing file name and the maximum external dimension in the X direction and the maximum external dimension in the Y direction of the building depicted in the drawing are described in text format. There is. For example, in the 1st record of FIG. 4, in the drawing file “IMG — 0000”, the maximum external dimension of the building is width (width in the X direction)=“10060”, height (depth in the Y direction)=“6560”. It is shown. The file format and format are not limited to this example, and can be arbitrarily determined. Further, the building size data may be given by another method such as direct input from a keyboard.

(影やノイズの除去)
前処理手段103は、図面の画像データに含まれる影やノイズ等を除去するための画像処理を行うことができる。これにより、後述の線分取得処理等におけるエラー発生を抑制できる。
(Remove shadows and noise)
The pre-processing unit 103 can perform image processing for removing shadows, noises, etc. included in the image data of the drawing. As a result, it is possible to suppress the occurrence of an error in the line segment acquisition processing, which will be described later.

・影の除去
前処理手段103は、例えば図面をカメラで撮影する際に照明むら等に起因して発生した影を、画像処理により除去することができる。影の除去技術のひとつに凹凸係数を用いるものがある。特許文献3によれば、凹凸係数とは、数画素平方単位に分割した画素ブロック単位で計算される、各画素値をブロック内の全画素の平均輝度値で除算した値である。凹凸係数を用いて閾値を自動的に変動させつつ2値化処理を行うことにより、照明むらに起因する低周波数成分の影響を受けることなく、影が除去された明瞭な図面画像データを得ることができる。
-Shadow Removal The pre-processing unit 103 can remove, by image processing, a shadow caused by, for example, uneven illumination when a drawing is photographed by a camera. One of the techniques for removing shadows is to use the unevenness coefficient. According to Patent Document 3, the unevenness coefficient is a value obtained by dividing each pixel value by the average luminance value of all the pixels in the block, which is calculated in pixel block units divided into several pixel square units. By performing the binarization process while automatically changing the threshold value using the unevenness coefficient, it is possible to obtain clear drawing image data with shadows removed, without being affected by low frequency components caused by uneven lighting. You can

・ノイズの除去
前処理手段103は、図面データに含まれるノイズを除去することができる。ノイズの除去技術のひとつにモルフォロジー変換がある。例えば影の除去処理を行った後の2値画像を対象として、収縮(Erosion)及び膨張(Dilation)と呼ばれる処理を繰り返すことにより、ノイズが除去された明瞭な図面画像データを得ることができる。
-Removal of noise The pre-processing unit 103 can remove noise included in the drawing data. Morphological transformation is one of the noise removal techniques. For example, by performing processing called contraction (erosion) and expansion (dilation) on a binary image after the shadow removal processing is performed, clear drawing image data from which noise is removed can be obtained.

(図枠によるトリミング)
前処理手段103は、図面内に描かれた図枠で画像データをトリミングし、形状を整える補正を行うことができる。これにより、後述の線分取得処理等を効率的に進めることが可能となる。図枠は図面の最も外側に描かれた矩形であるから、前処理手段103は、画像データに含まれる最も大きな閉領域を抽出することで図枠を認識する。次に、認識した図枠を境界とするトリミングを行い、トリミング後の領域を透視変換などの公知の手法により矩形に補正する。
(Trimming with picture frame)
The pre-processing means 103 can perform correction for trimming the image data with a drawing frame drawn in the drawing to adjust the shape. This makes it possible to efficiently proceed with the line segment acquisition processing, which will be described later, and the like. Since the drawing frame is a rectangle drawn on the outermost side of the drawing, the preprocessing unit 103 recognizes the drawing frame by extracting the largest closed region included in the image data. Next, trimming is performed with the recognized drawing frame as a boundary, and the region after trimming is corrected into a rectangle by a known method such as perspective transformation.

(色の変換)
前処理手段103は、着色部分の色を、色マスクを用いた処理において扱いやすい色へと変換する処理を行う。これにより、後述の線分取得処理等におけるエラー発生を抑制できる。色の変換処理には、例えば色の強調及び色クラスタリングが含まれる。
(Color conversion)
The pre-processing unit 103 performs a process of converting the color of the colored portion into a color that is easy to handle in the process using the color mask. As a result, it is possible to suppress the occurrence of an error in the line segment acquisition processing, which will be described later. The color conversion processing includes, for example, color enhancement and color clustering.

・色の強調
前処理手段103は、例えば明度及び彩度による2値化により、着色部分の色を強調することができる。前処理手段103は、画像の色空間を、彩度及び色差信号をパラメータに持つ色空間(YCbCrやHSV等)に変換した後、色差信号及び彩度チャネルにおいて2値化処理を行う。これにより、図面画像内で着色されている部分と、その他の部分との相違を明確化する。
Color enhancement The preprocessing unit 103 can enhance the color of the colored portion by binarizing the lightness and the saturation, for example. The pre-processing unit 103 converts the color space of the image into a color space (YCbCr, HSV, etc.) having saturation and color difference signals as parameters, and then performs binarization processing on the color difference signals and the saturation channel. As a result, the difference between the colored portion and the other portions in the drawing image is clarified.

・色クラスタリング
また、前処理手段103は、画像内で使用されている色のばらつきを吸収し、色数を抑制する処理を行うことができる。この処理を色クラスタリング、減色又は単純化という。着色した図面の画像や、その画像に色の2値化(強調)処理を施した画像から、特定の色で着色された領域のみを抽出しようとすると、所望の領域を正しく抽出できない場合がある。これは、着色部分の色合いの変化や色ムラなどにより、同じ色で着色した部分であってもRGBの各値が微妙に異なっていることがあるためである。色クラスタリングは、例えばK−means法などの公知技術により実現できる。例えば色数K=6で色クラスタリングをおこなうことにより、着色部分を6色(白、黒、緑に近い色、ピンクに近い色、オレンジに近い色、青に近い色)に分類することができる。前処理手段103は、各クラスタに分類された画素に対し、クラスタを示すマーキングを行う、画素の色をクラスタの代表値(平均値等)で置き換えるなどの処理を行う。
Color clustering Further, the pre-processing unit 103 can perform processing of absorbing variation in colors used in the image and suppressing the number of colors. This process is called color clustering, color reduction, or simplification. If you try to extract only a region colored with a specific color from an image of a colored drawing or an image obtained by subjecting the image to color binarization (enhancement) processing, the desired region may not be extracted correctly. .. This is because the RGB values may be slightly different even in a portion colored with the same color due to a change in the hue of the colored portion, color unevenness, or the like. Color clustering can be realized by a known technique such as the K-means method. For example, by performing color clustering with the number of colors K=6, colored portions can be classified into 6 colors (white, black, colors close to green, colors close to pink, colors close to orange, colors close to blue). .. The pre-processing unit 103 performs processing such as marking the clusters on the pixels classified into each cluster and replacing the color of the pixel with a representative value (average value, etc.) of the clusters.

図1Bは、前処理手段103が上述の影やノイズの除去、図枠でのトリミング、色の変換の各処理を行った後の図面画像データの例を示している。 FIG. 1B shows an example of drawing image data after the preprocessing unit 103 has performed the above-described processing of removing shadows and noises, trimming in a drawing frame, and color conversion.

(寸法線の取得)
寸法線認識手段105は、図面画像中の寸法線を認識する。本実施の形態では、図1Bに示すように、寸法線の周囲を色1により着色されているものとする。
(Get dimension line)
The dimension line recognizing means 105 recognizes the dimension line in the drawing image. In the present embodiment, as shown in FIG. 1B, the circumference of the dimension line is colored with color 1.

図5Aに示すように、寸法線認識手段105は、画像中の色1の着色領域(図5Aでは白抜きで示されている領域)を抽出する。また、抽出した領域の内部にある閉領域を抽出する。さらに、図5Bに示すように、閉領域の内部にある描画線から直線成分を抽出する。着色領域の抽出、閉領域の抽出は種々の公知技術により実現可能であるため詳細な説明を省略する。直線成分の抽出は、閉領域に含まれる描画線を抽出し、描画線の近似線分を計算して、線分オブジェクトを生成することにより行う。画像内からの線分要素の抽出に用いられる公知の手法として代表的なものにLSD(Line Segment Detector)がある。 As shown in FIG. 5A, the dimension line recognizing unit 105 extracts a colored region of color 1 (region shown in white in FIG. 5A) in the image. Also, a closed area inside the extracted area is extracted. Further, as shown in FIG. 5B, a straight line component is extracted from the drawing line inside the closed region. Since the extraction of the colored area and the extraction of the closed area can be realized by various known techniques, detailed description thereof will be omitted. The extraction of the straight line component is performed by extracting a drawing line included in the closed region, calculating an approximate line segment of the drawing line, and generating a line segment object. As a well-known method used for extracting the line segment element from the image, there is LSD (Line Segment Detector) as a typical method.

図5Aに示すように、X方向又はY方向に対向する1対の着色領域がある場合、双方の着色領域内に存在する寸法線の全長(端点から端点までの長さ)は同一である場合が多い。しかしながら、ノイズの影響で描画線が実際よりも長く認識されるなどの要因により、対向する寸法線の全長が相違することがある。そこで寸法線認識手段105は、双方の寸法線の全長を比較し、相違する場合は全長を一致させる補正を行うことができる。 As shown in FIG. 5A, when there is a pair of colored regions facing each other in the X direction or the Y direction, the lengths of the dimension lines existing in both colored regions (the lengths from the end points to the end points) are the same. There are many. However, the total length of the dimension lines that face each other may differ due to factors such as the fact that the drawing line is recognized longer than it actually is due to the influence of noise. Therefore, the dimension line recognizing means 105 can compare the total lengths of both dimension lines, and if they are different from each other, the dimension line recognition means 105 can perform correction so that the total lengths match.

例えば、寸法線認識手段105は、双方の寸法線の端点を比較し、いずれか内側にある方(寸法線の全長が短くなる方)に双方の端点を一致させることができる。図5Cは、X方向に伸長する寸法線1と、これに対向する寸法線2との全長が異なっている場合の一例を示している。まず、寸法線1の端点Aと寸法線2の端点Bとにずれがある。この場合は、端点A及びBのX座標を端点Bのものに統一する。また、寸法線1の端点Cと寸法線2の端点Dとにずれがある。この場合は、端点C及びDのX座標を端点Cのものに統一する。すなわち、寸法線の伸長方向における座標が小さい端点のグループ(A,B)では座標が大きい方(B)、座標が大きいグループ(C,D)では座標が小さい方(C)に座標値を揃える。 For example, the dimension line recognizing unit 105 can compare the end points of both dimension lines and match both end points with whichever is inside (the one whose total length of the dimension line is shorter). FIG. 5C shows an example in which the dimension line 1 extending in the X direction and the dimension line 2 facing the dimension line 1 have different total lengths. First, there is a deviation between the end point A of the dimension line 1 and the end point B of the dimension line 2. In this case, the X coordinates of the end points A and B are unified to those of the end point B. Further, there is a deviation between the end point C of the dimension line 1 and the end point D of the dimension line 2. In this case, the X coordinates of the end points C and D are unified to those of the end point C. That is, the coordinate values are aligned to the one having the larger coordinates (B) in the end point group (A, B) having the smaller coordinates in the extension direction of the dimension line, and the one having the smaller coordinates (C) in the group having the larger coordinates (C, D). ..

(グリッド線の作成)
寸法線認識手段105は、認識した寸法線に基づいてグリッド線を作成する。グリッド線とは、予め定められたピッチで描かれた複数の平行線である。グリッド線は、X軸に平行なグリッド線と、Y軸な平行なグリッド線とを含む。基本的に、図面においては、建物の外周線、開口部、間仕切等はこのグリッド線に沿って配置される。
(Create grid lines)
The dimension line recognition means 105 creates grid lines based on the recognized dimension lines. The grid lines are a plurality of parallel lines drawn at a predetermined pitch. The grid lines include grid lines parallel to the X axis and parallel grid lines parallel to the Y axis. Basically, in the drawings, the perimeter lines, openings, partitions, etc. of a building are arranged along this grid line.

寸法線認識手段105は、まず寸法補助線(図12A参照)上を通るグリッド線を生成する(図12B参照)。次に、その上下又は左右方向に、所定のピッチで平行なグリッド線を追加していく。すなわち、X方向に伸長するグリッド線はY座標を、Y方向に伸長するグリッド線はX座標をそれぞれ所定のピッチで変化させつつ、グリッド線(図12Cに破線で示す)を追加していく。 The dimension line recognizing means 105 first generates a grid line passing on the dimension auxiliary line (see FIG. 12A) (see FIG. 12B). Next, parallel grid lines are added at a predetermined pitch in the vertical or horizontal direction. That is, grid lines (shown by broken lines in FIG. 12C) are added while changing the Y coordinate for the grid line extending in the X direction and the X coordinate for the grid line extending in the Y direction at a predetermined pitch.

なお、グリッド線のピッチは、前処理手段103が取得する建物サイズデータと、予め定められたモジュール長とから算出できる。モジュール長は、図示しない記憶領域やファイル等に予め記録されたものを取得してもよく、又はユーザがキーボード等を介して入力するものを取得してもよい。例えば、建物のX方向の最大外形寸法がx1(mm)、モジュール長がx2(mm)、X軸に平行な寸法線の長さがx3(ピクセル)である場合、グリッド線のピッチはx2*(x3/x1)(ピクセル)である。 The grid line pitch can be calculated from the building size data acquired by the preprocessing unit 103 and the predetermined module length. The module length may be pre-recorded in a storage area, a file, or the like (not shown), or may be acquired by the user via a keyboard or the like. For example, when the maximum outer dimension of the building in the X direction is x1 (mm), the module length is x2 (mm), and the dimension line length parallel to the X axis is x3 (pixels), the grid line pitch is x2*. (X3/x1) (pixels).

(外周線の取得)
外周線認識手段107は、図面画像中の外周線を認識する。本実施の形態では、図面に描かれている外周線上を、ユーザが予め色2又は色3で着色しているものとする。より具体的には、外周線上の開口部を色3、その他の外周線を色2で着色する。
(Acquisition of peripheral line)
The outer peripheral line recognizing unit 107 recognizes an outer peripheral line in the drawing image. In the present embodiment, it is assumed that the user has previously colored the outer peripheral line drawn in the drawing with color 2 or color 3. More specifically, the opening on the outer peripheral line is colored with color 3, and the other outer peripheral lines are colored with color 2.

図6に示すように、外周線認識手段107は、画像中の色2及び色3の着色領域を抽出し、抽出した領域の内部にある閉領域を抽出する。さらに、閉領域の頂点(外縁を構成する点群)を抽出し、着色領域内で当該頂点に最も近いグリッド線上に各点を移動する。グリッド線上に移動された点群の近似線分を計算し、外周線を示す線分オブジェクトを生成する。 As shown in FIG. 6, the outer peripheral line recognizing unit 107 extracts colored regions of color 2 and color 3 in the image, and extracts a closed region inside the extracted region. Further, the vertices of the closed region (point group forming the outer edge) are extracted, and each point is moved to the grid line closest to the vertex in the colored region. An approximate line segment of the point group moved on the grid line is calculated, and a line segment object indicating the outer peripheral line is generated.

(描画線(開口部)の取得)
描画線(開口部)認識手段109は、図面画像中の開口部の描画線を認識する。本実施の形態では、図面に描かれている開口部の描画線を、ユーザが予め色3で着色しているものとする。
(Get drawing line (opening))
The drawing line (opening) recognition means 109 recognizes the drawing line of the opening in the drawing image. In the present embodiment, it is assumed that the user has previously colored the drawing line of the opening drawn in the drawing with color 3.

図7に示すように、描画線(開口部)認識手段109は、画像中の色3の着色領域を抽出し、抽出した領域に含まれる描画線に対応する線分オブジェクトを、寸法線認識手段105と同様の手法により生成する。さらに、描画線(開口部)認識手段109は、線分オブジェクトの位置を、着色領域内で当該線分に最も近いグリッド線上に移動させる補正を行う。この補正により外周線に一致した部分のみを、描画線(開口部)として抽出する。 As shown in FIG. 7, the drawing line (opening) recognizing unit 109 extracts a colored region of color 3 in the image, and determines the line segment object corresponding to the drawing line included in the extracted region by the dimension line recognizing unit. It is generated by the same method as 105. Further, the drawing line (opening) recognizing unit 109 performs a correction to move the position of the line segment object to the grid line closest to the line segment in the colored region. By this correction, only the portion that matches the outer peripheral line is extracted as the drawing line (opening).

(描画線(間仕切)の取得)
描画線(間仕切)認識手段111は、図面画像中の間仕切の描画線を認識する。本実施の形態では、図面に描かれている間仕切の描画線を、ユーザが予め色4で着色しているものとする。
(Obtain drawing line (partition))
The drawing line (partition) recognition means 111 recognizes the drawing line of the partition in the drawing image. In the present embodiment, it is assumed that the user has previously colored the partition line drawn in the drawing with color 4.

描画線(間仕切)認識手段111は、画像中の色4の着色領域を抽出し、抽出した領域に含まれる描画線に対応する線分オブジェクトを、寸法線認識手段105と同様の手法により生成する。図8に、抽出された線分オブジェクトの例を示す。さらに、描画線(間仕切)認識手段111は、線分オブジェクトの位置を、着色領域内で当該線分に最も近いグリッド線上に移動させる補正を行う。着色領域内に複数のグリッド線が含まれる場合、この補正により二重線などの不要線が発生する場合がある。この場合、いずれか1つのグリッド線上にある線分のみを描画線(間仕切)として抽出する。例えば寸法補助線上にあるグリッド線などの優先度を高く設定し、優先度の高いグリッド線上にある線分のみを描画線(間仕切)として抽出することとしても良い。 The drawing line (partition) recognizing unit 111 extracts a colored region of color 4 in the image, and generates a line segment object corresponding to the drawing line included in the extracted region by the same method as the dimension line recognizing unit 105. .. FIG. 8 shows an example of the extracted line segment object. Further, the drawing line (partition) recognizing unit 111 performs a correction to move the position of the line segment object to a grid line closest to the line segment in the colored region. When a plurality of grid lines are included in the colored area, this correction may cause unnecessary lines such as double lines. In this case, only the line segment on any one of the grid lines is extracted as a drawing line (partition). For example, it is possible to set the priority of grid lines on the dimension auxiliary lines to be high and to extract only the line segments on the grid lines of high priority as drawing lines (partitions).

(描画線(建具)の取得)
描画線(建具)認識手段117は、図面画像中の建具の描画線を生成及び認識する。本実施の形態では、図面に描かれている建具の描画線のあるべき位置を、ユーザが予め色1で着色しているものとする。なお、建具は、そのあるべき位置は決まっているものの、それが描画線として図面中に描かれていない場合が多い(図1A又は図1B参照)。そのため、本実施の形態では、グリッド線を基に建具の描画線を生成する処理を行う。
(Obtain drawing line (joint))
The drawing line (fitting) recognition means 117 generates and recognizes the drawing line of the fitting in the drawing image. In the present embodiment, it is assumed that the position of the drawing line of the fitting drawn in the drawing should be colored by the user with color 1 in advance. In addition, although the fittings have predetermined positions, they are often not drawn as drawing lines in the drawing (see FIG. 1A or 1B). Therefore, in the present embodiment, the process of generating the drawing line of the fitting is performed based on the grid line.

描画線(建具)認識手段117はまず、グリッド線に重畳する、所定の幅を持つ直線の画像(仮描画線)を生成する。さらに、図面画像中の色1の着色領域を抽出し、抽出した領域の内部に含まれる仮描画線に対応する線分オブジェクトを、寸法線認識手段105と同様の手法により生成し、描画線(建具)とする。描画線(建具)認識手段117は、描画線(間仕切)認識手段111と同様に、線分オブジェクトの位置を、最も近い着色領域内のグリッド線上に移動させる補正を行ってもよい。これらの処理の後、仮描画線は破棄して構わない。 The drawing line (jointing tool) recognizing unit 117 first generates an image of a straight line (temporary drawing line) having a predetermined width and superimposed on the grid line. Further, a colored area of color 1 in the drawing image is extracted, a line segment object corresponding to the temporary drawing line included in the extracted area is generated by the same method as the dimension line recognizing unit 105, and the drawing line ( Joinery). Like the drawing line (partition) recognizing unit 111, the drawing line (joining tool) recognizing unit 117 may perform a correction to move the position of the line segment object to a grid line in the closest colored region. After these processes, the temporary drawing line may be discarded.

(閉領域(部屋)の取得)
閉領域認識手段119は、図面画像中の部屋を認識する。図9に示すように、上述の処理により作成された外周線、ならびに描画線(開口部)、描画線(間仕切部)及び描画線(建具)の線分オブジェクトを重畳し、形成される閉領域を抽出する。また、閉領域の頂点(外縁を構成する点群)を抽出し、最も近いグリッド線上に各点を移動する補正を行う。こうして生成される領域を閉領域(部屋)とする。
(Acquisition of closed area (room))
The closed area recognition unit 119 recognizes a room in the drawing image. As shown in FIG. 9, a closed area formed by superimposing the peripheral line created by the above-described processing, and the line segment objects of the drawing line (opening), the drawing line (partition) and the drawing line (joiner) To extract. In addition, the vertices of the closed region (a group of points forming the outer edge) are extracted, and correction is performed to move each point to the closest grid line. The area generated in this way is a closed area (room).

出力手段121は、上述の一連の図面認識処理の結果を出力する。例えば出力手段121は、閉領域認識手段119が認識した各閉領域(部屋)に一意の識別子を付与し、当該識別子と、各閉領域(部屋)を表現する座標値のセット(典型的には閉領域の多角形の頂点のXY座標のセット)とを組にして出力する。図10は、これをテキストファイル形式で出力した場合の例を示している。例えば、図10の1行目のレコードは、識別子「1.0」の閉領域(部屋)の頂点の座標が(6000.0,3000.0),(6000.0,0.0),(10000.0,0.0),(10000.0,3000.0)であることを示している。なお、ファイルのフォーマットや形式等はこの例に限定されず任意に決定しうる。 The output unit 121 outputs the result of the series of drawing recognition processes described above. For example, the output unit 121 assigns a unique identifier to each closed region (room) recognized by the closed region recognition unit 119, and sets the identifier and a set of coordinate values expressing each closed region (room) (typically And a set of XY coordinates of the vertices of the polygon in the closed region) and output. FIG. 10 shows an example in which this is output in a text file format. For example, in the record on the first line in FIG. 10, the coordinates of the vertices of the closed area (room) having the identifier “1.0” are (6000.0, 3000.0), (6000.0, 0.0), ( 10000.0,0.0) and (10000.0,3000.0). The file format and format are not limited to this example, and can be arbitrarily determined.

同様に、出力手段121は、外周線、ならびに描画線(開口部)、描画線(間仕切部)及び描画線(建具)の線分オブジェクトを示す座標値(典型的には線分の始点及び終点のXY座標)を出力することもできる。図11に示すように、線分オブジェクトの種類ごとにテキストファイルを出力することもできる。 Similarly, the output unit 121 has coordinate values (typically the start point and the end point of the line segment) indicating the line segment objects of the outer peripheral line, the drawing line (opening), the drawing line (partitioning part), and the drawing line (joint). It is also possible to output the XY coordinates). As shown in FIG. 11, a text file can be output for each type of line segment object.

<実施の形態2>
図3Bは、本発明の実施の形態2にかかる図面認識装置100の概略的な機能構成を示すブロック図である。実施の形態1と比較して、実施の形態2の図面認識装置100は、中庭認識手段113、描画線(袖壁)認識手段115をさらに有する点に特徴がある。その他の処理手段やハードウェア構成については、実施の形態1と同様である。
<Second Embodiment>
FIG. 3B is a block diagram showing a schematic functional configuration of the drawing recognition device 100 according to the second exemplary embodiment of the present invention. Compared with the first embodiment, the drawing recognition device 100 of the second embodiment is characterized in that it further includes a courtyard recognition means 113 and a drawing line (sleeve) recognition means 115. Other processing means and hardware configuration are the same as those in the first embodiment.

図13及び図14は、実施の形態2において図面画像入力手段101が入力する図面画像データの例を示している。実施の形態1と同様に、寸法線及び建具は色1、外周線(開口部を除く)は色2、開口部は色3、間仕切は色4で着色されている。加えて、本実施の形態では、袖壁が色5(図13参照)、中庭が色6(図14参照)で着色されている。 13 and 14 show an example of the drawing image data input by the drawing image input means 101 in the second embodiment. Similar to the first embodiment, the dimension line and the fitting are colored with color 1, the outer peripheral line (excluding the opening) is colored with 2, the opening is colored with 3, and the partition is colored with 4. In addition, in the present embodiment, the sleeve wall is colored 5 (see FIG. 13) and the courtyard is colored 6 (see FIG. 14).

(中庭の取得)
中庭認識手段113は、図面画像中の中庭を認識する。本実施の形態では、図面に描かれている中庭の外周を、ユーザが予め色6で着色しているものとする。
(Courtyard acquisition)
The courtyard recognition means 113 recognizes the courtyard in the drawing image. In the present embodiment, it is assumed that the user has previously colored the outer periphery of the courtyard illustrated in the drawing with color 6.

中庭認識手段113は、画像中の色6の着色領域(図14参照)を抽出し、抽出した領域の内部にある閉領域を抽出する。ここで抽出される閉領域は、外周線認識手段107が抽出する外周線よりも内側にあるものとする。中庭認識手段113はさらに、閉領域の頂点(外縁を構成する点群)を抽出し、着色領域内で当該頂点に最も近いグリッド線上に各点を移動する。グリッド線上に移動された点群の近似線分を計算し、中庭を示す多角形領域のオブジェクトを生成する。 The courtyard recognition unit 113 extracts a colored region of color 6 (see FIG. 14) in the image, and extracts a closed region inside the extracted region. It is assumed that the closed region extracted here is inside the outer peripheral line extracted by the outer peripheral line recognition means 107. The courtyard recognition unit 113 further extracts the vertices of the closed region (a group of points forming the outer edge) and moves each point on the grid line closest to the vertex in the colored region. The approximate line segment of the point group moved on the grid line is calculated, and the object of the polygonal area showing the courtyard is generated.

(描画線(袖壁)の取得)
描画線(袖壁)認識手段115は、図面画像中の袖壁の描画線を認識する。本実施の形態では、図面に描かれている袖壁の描画線を、ユーザが予め色5で着色しているものとする。
(Get drawing line (sleeve))
The drawing line (sleeve) recognition means 115 recognizes the drawing line of the sleeve wall in the drawing image. In the present embodiment, it is assumed that the user has previously colored the drawing line of the sleeve wall drawn in the drawing with color 5.

描画線(袖壁)認識手段115は、画像中の色5の着色領域(図13参照)を抽出し、抽出した領域に含まれる描画線に対応する線分オブジェクトを、寸法線認識手段105と同様の手法により生成する。さらに、描画線(袖壁)認識手段115は、線分オブジェクトの位置を、着色領域内で当該線分に最も近いグリッド線上に移動させる補正を行う。こうして生成される描画線(袖壁)は、外周線の外側にある点で他の描画線と区別される。 The drawing line (sleeve) recognizing unit 115 extracts a colored region of color 5 (see FIG. 13) in the image, and determines the line segment object corresponding to the drawing line included in the extracted region as the dimension line recognizing unit 105. It is generated by the same method. Further, the drawing line (sleeve) recognition means 115 performs a correction to move the position of the line segment object to the grid line closest to the line segment in the colored region. The drawing line (sleeve wall) thus generated is distinguished from other drawing lines by the point outside the outer peripheral line.

出力手段121は、中庭の閉領域及び描画線(袖壁)の線分を示す座標値を出力することができる。例えば、中庭は実施の形態1の部屋と同様の形式で出力することが可能である。この際、部屋とは別ファイルとして中庭のデータを出力できる。また、描画線(袖壁)も、他の描画線と同様の形式で出力可能である。 The output unit 121 can output the coordinate value indicating the closed area of the courtyard and the line segment of the drawing line (sleeve). For example, the courtyard can be output in the same format as the room of the first embodiment. At this time, the data of the courtyard can be output as a file separate from the room. Further, the drawing line (sleeve) can be output in the same format as other drawing lines.

上述の実施の形態によれば、図面認識装置は、寸法線、描画線など抽出すべき要素に予め着色が施された図面を画像として読み込み、着色を手がかりとして図面オブジェクトを抽出する。これにより、画像から抽出すべき線分や閉領域等を的確に識別することができ、高精度かつ容易に図面オブジェクトを取得することができる。 According to the above-described embodiment, the drawing recognition device reads a drawing in which elements to be extracted such as a dimension line and a drawing line are colored in advance as an image, and extracts a drawing object by using the coloring as a clue. This makes it possible to accurately identify the line segment, the closed region, or the like to be extracted from the image, and to obtain the drawing object with high accuracy and easily.

また、上述の実施の形態によれば、図面認識装置は、抽出すべき図面オブジェクトの種類ごとに最適化された抽出方法を採用する。これを上記着色に基づき識別手法と併用することにより、線分や閉領域等より的確に識別することができる。 Further, according to the above-described embodiment, the drawing recognition device employs an extraction method optimized for each type of drawing object to be extracted. By using this together with the identification method based on the above coloring, it is possible to identify more accurately from a line segment, a closed region, or the like.

以上、本発明の実施の形態について説明したが、本発明は上記実施形態に限られたものではなく、趣旨を逸脱しない範囲で適宜変更することが可能である。本発明はその発明の範囲内において、実施の形態の任意の構成要素の変形、もしくは実施の形態の任意の構成要素の省略が可能である。 Although the embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and can be modified as appropriate without departing from the spirit of the present invention. In the present invention, within the scope of the invention, any constituent element of the embodiment can be modified or any constituent element of the embodiment can be omitted.

例えば、上述の実施の形態では、図面に含まれる外周線が1つである場合を主に想定した。しかしながら、本発明はこれに限定されず、1つの図面に外周線が2つ以上含まれていてもよい。例えば、ツインタワー、廊下で分断された建物、離れを有する建物などでは外周線が2以上となる場合がある。この場合、外周線認識手段107が複数の閉領域を認識したならば、各閉領域(外周線)に一意の識別子を付与することができる。そして出力手段121は、外周線を示す識別子と、各外周線の領域を示す座標値のセットと、各外周線内にある部屋の識別子と、各部屋の領域を示す座標値のセットと、を組にして出力することができる。 For example, in the above-described embodiment, the case where the number of peripheral lines included in the drawing is one is mainly assumed. However, the present invention is not limited to this, and one drawing may include two or more peripheral lines. For example, in a twin tower, a building divided by a corridor, a building having a distance, etc., the outer peripheral line may be two or more. In this case, if the outer peripheral line recognition unit 107 recognizes a plurality of closed regions, a unique identifier can be given to each closed region (outer peripheral line). Then, the output means 121 outputs an identifier indicating the outer peripheral line, a set of coordinate values indicating the area of each outer peripheral line, an identifier of a room within each outer peripheral line, and a set of coordinate values indicating the area of each room. It can be output as a set.

また、上述の実施の形態では、外周線、開口部及び間仕切等の描画線については、予め外周線又は描画線が視認可能な線として描かれていることを前提とした処理を行った。しかしながら、本発明はこれに限定されず、外周線、開口部及び間仕切が描画線として描かれていない場合にも適用可能である。すなわち、着色部分が存在すれば、描画線(建具)認識手段117と同じように、グリッド線上に仮描画線を形成し、着色領域内の仮描画線に相当する線分オブジェクトを生成することができる。 Further, in the above-described embodiment, the drawing lines such as the outer peripheral line, the opening and the partition are processed on the assumption that the outer peripheral line or the drawing line is drawn in advance as a visible line. However, the present invention is not limited to this, and is applicable to the case where the outer peripheral line, the opening, and the partition are not drawn as drawing lines. That is, if there is a colored portion, a temporary drawing line can be formed on a grid line and a line segment object corresponding to the temporary drawing line in the colored area can be generated, as in the drawing line (joint) recognition means 117. it can.

また、上述の実施の形態では、寸法線取得処理及びグリッド線作成処理について、X方向又はY方向に対向する1対の寸法線が存在する場合を例に説明したが、本発明はこれに限定されず、対向する寸法線のうちいずれか一方が欠けていても構わない。すなわち、X方向に対向する1対の(つまり左右の)寸法線のうちいずれかひとつ、及びY方向に対向する1対の(つまり上下の)寸法線のうちいずれかひとつが少なくとも存在すれば、全ての寸法線が揃っている場合に比べ精度は落ちるものの、寸法線の認識及びグリッド線の作成は可能である。 Further, in the above-described embodiment, the dimension line acquisition processing and the grid line creation processing have been described by taking the case where there is a pair of dimension lines facing each other in the X direction or the Y direction as an example, but the present invention is not limited to this. However, one of the opposing dimension lines may be missing. That is, if at least one of a pair of (that is, left and right) dimension lines facing in the X direction and one of a pair of (that is, upper and lower) dimension lines facing in the Y direction are present, Although the accuracy is lower than when all the dimension lines are complete, the dimension lines can be recognized and grid lines can be created.

また、本発明の構成要素は、本発明の趣旨を損なわない範囲において適宜省略し、処理順序を入替え、又は均等物と置換することが可能である。例えば、寸法線の取得(グリッド線生成のために必要である)、外周線の取得(外周線の内外の判別のために必要である)を除く各種処理は、目的に応じ適宜省略して構わない。 Further, the constituent elements of the present invention can be appropriately omitted within the range not impairing the gist of the present invention, and the processing order can be changed or replaced with an equivalent. For example, various processes other than acquisition of dimension lines (necessary for grid line generation) and acquisition of outer peripheral lines (necessary for discrimination between inside and outside of outer peripheral lines) may be appropriately omitted according to the purpose. Absent.

また、上述の実施の形態では、紙の図面に手描きで着色される例を主に示したが、本発明はこれに限定されず、例えば図面の電子ファイルに対し画像処理アプリケーションを使用して着色を行っても良い。また、上述の実施の形態では、着色された図面をカメラで撮影することにより図面画像データを得る例を主に示したが、本発明はこれに限定されず、例えばスキャナにより図面画像データを取得しても良い。 Further, in the above-described embodiment, the example in which the drawing is drawn by hand on the paper drawing is mainly shown, but the present invention is not limited to this, and the electronic file of the drawing is colored by using the image processing application, for example. You may go. Further, in the above-described embodiment, the example in which the drawing image data is obtained by photographing the colored drawing with the camera is mainly shown, but the present invention is not limited to this, and the drawing image data is acquired by, for example, a scanner. You may.

また、本発明はハードウェアにより実現されても良く、CPUがコンピュータプログラムを実行することにより実現されても良い。コンピュータプログラムは、様々なタイプの非一時的なコンピュータ可読媒体(non−transitory computer readable medium)又は一時的なコンピュータ可読媒体(transitory computer readable medium)によりコンピュータに供給され得る。 Further, the present invention may be realized by hardware, or may be realized by the CPU executing a computer program. The computer program may be supplied to the computer by various types of non-transitory computer readable medium or transitory computer readable medium.

100 図面認識装置
11 CPU
13 揮発性メモリ
14 不揮発性メモリ
15 インタフェース
20 バス
70 入出力装置
80 撮影装置
101 図面画像入力手段
103 前処理手段
105 寸法線認識手段
107 外周線認識手段
109 描画線(開口部)認識手段
111 描画線(間仕切)認識手段
113 中庭認識手段
115 描画線(袖壁)認識手段
117 描画線(建具)認識手段
118 閉領域認識手段
121 出力手段
100 Drawing Recognition Device 11 CPU
13 Volatile Memory 14 Nonvolatile Memory 15 Interface 20 Bus 70 Input/Output Device 80 Imaging Device 101 Drawing Image Input Means 103 Pre-Processing Means 105 Dimension Line Recognition Means 107 Perimeter Line Recognition Means 109 Drawing Line (Aperture) Recognition Means 111 Drawing Lines (Partition) recognition means 113 Courtyard recognition means 115 Drawing line (sleeve) recognition means 117 Drawing line (joint) recognition means 118 Closed area recognition means 121 Output means

Claims (11)

着色が施された図面画像を入力する図面画像入力手段と、
前記着色された領域を認識し、前記領域に基づいて特定の描画線を認識し、前記描画線に相当する線分オブジェクトを生成する描画線認識手段と、を有する
図面認識装置。
Drawing image input means for inputting a colored drawing image,
A drawing recognition device, which recognizes the colored area, recognizes a specific drawing line based on the area, and generates a line segment object corresponding to the drawing line.
前記図面画像入力手段は、複数の種類の前記描画線に対し前記種類ごとに異なる色で着色が施された前記図面画像を入力し、
前記描画線認識手段は、前記色ごとに、前記着色された領域を認識し、前記領域に基づいて特定の種類の前記描画線を認識し、前記描画線に相当する線分オブジェクトを生成する
請求項1記載の図面認識装置。
The drawing image input means inputs the drawing image in which a plurality of types of drawing lines are colored with different colors for each type,
The drawing line recognizing unit recognizes the colored region for each color, recognizes a specific type of the drawing line based on the region, and generates a line segment object corresponding to the drawing line. The drawing recognition device according to Item 1.
前記図面画像において所定の色で着色された領域を認識し、前記領域に基づいて外周線を認識し、前記外周線に相当する線分オブジェクトを生成する外周線認識手段をさらに有する
請求項1記載の図面認識装置。
The peripheral line recognition means for recognizing a region colored with a predetermined color in the drawing image, recognizing a peripheral line based on the region, and generating a line segment object corresponding to the peripheral line. Drawing recognition device.
前記図面画像において所定の色で着色が施された領域を認識し、前記領域に基づいて寸法線を認識し、前記寸法線に基づきグリッド線を生成する寸法線認識手段をさらに有する
請求項1又は3記載の図面認識装置。
The dimensional line recognition means for recognizing a region colored in a predetermined color in the drawing image, recognizing a dimensional line based on the region, and generating a grid line based on the dimensional line. 3. The drawing recognition device described in 3.
前記描画線認識手段は、前記所定の色で着色が施された領域を認識し、前記領域に基づいて線分要素を認識し、前記線分要素を前記グリッド線に合わせて補正することにより、前記描画線に相当する線分オブジェクトを生成する
請求項4記載の図面認識装置。
The drawing line recognition means recognizes a region colored with the predetermined color, recognizes a line segment element based on the region, and corrects the line segment element in accordance with the grid line, The drawing recognition device according to claim 4, wherein a line segment object corresponding to the drawing line is generated.
前記描画線認識手段は、前記所定の色で着色された領域を認識し、前記領域内に前記グリッド線に合わせた線分要素を生成することにより、前記描画線に相当する線分オブジェクトを生成する
請求項4記載の図面認識装置。
The drawing line recognition means recognizes an area colored with the predetermined color and generates a line segment element matching the grid line in the area to generate a line segment object corresponding to the drawing line. The drawing recognition device according to claim 4.
前記外周線認識手段は、前記所定の色で着色された領域を認識し、前記領域に基づいて線分要素を認識し、前記線分要素を前記グリッド線に合わせて補正することにより、前記外周線に相当する線分オブジェクトを生成する
請求項4記載の図面認識装置。
The outer circumference line recognizing means recognizes the area colored with the predetermined color, recognizes a line segment element based on the area, and corrects the line segment element in accordance with the grid line to obtain the outer circumference. The drawing recognition device according to claim 4, wherein a line segment object corresponding to a line is generated.
前記外周線認識手段は、前記所定の色で着色された領域を認識し、前記領域内に前記グリッド線に合わせた線分要素を生成することにより、前記外周線に相当する線分オブジェクトを生成する
請求項4記載の図面認識装置。
The outer peripheral line recognition means recognizes a region colored with the predetermined color and generates a line segment element matching the grid line in the region to generate a line segment object corresponding to the outer peripheral line. The drawing recognition device according to claim 4.
前記描画線により形成される閉領域を認識する閉領域認識手段をさらに有する
請求項1記載の図面認識装置。
The drawing recognition device according to claim 1, further comprising a closed area recognition unit that recognizes a closed area formed by the drawing line.
図面画像入力手段と描画線認識手段とを有するコンピュータが、
前記図面画像入力手段が、着色が施された図面画像を入力する図面画像入力ステップと、
前記描画線認識手段が、前記着色された領域を認識し、前記領域に基づいて特定の描画線を認識し、前記描画線に相当する線分オブジェクトを生成する描画線認識ステップと、を有する
図面認識方法。
A computer having drawing image input means and drawing line recognition means,
The drawing image input means, a drawing image input step of inputting a colored drawing image,
The drawing line recognition means recognizes the colored region, recognizes a specific drawing line based on the region, and generates a line segment object corresponding to the drawing line. Recognition method.
請求項10記載の図面認識方法をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute the drawing recognition method according to claim 10.
JP2018230463A 2018-12-08 2018-12-08 Drawing recognition device, drawing recognition method and program Active JP7111599B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2018230463A JP7111599B2 (en) 2018-12-08 2018-12-08 Drawing recognition device, drawing recognition method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2018230463A JP7111599B2 (en) 2018-12-08 2018-12-08 Drawing recognition device, drawing recognition method and program

Publications (2)

Publication Number Publication Date
JP2020091817A true JP2020091817A (en) 2020-06-11
JP7111599B2 JP7111599B2 (en) 2022-08-02

Family

ID=71012955

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018230463A Active JP7111599B2 (en) 2018-12-08 2018-12-08 Drawing recognition device, drawing recognition method and program

Country Status (1)

Country Link
JP (1) JP7111599B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765702A (en) * 2020-12-23 2021-05-07 深圳小库科技有限公司 Building auxiliary line capturing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221978A (en) * 1985-03-28 1986-10-02 Mitsubishi Electric Corp Multi-color drawing reader
JPH0652243A (en) * 1992-07-30 1994-02-25 Toshiba Corp Drawing input processor
JPH11224258A (en) * 1998-02-05 1999-08-17 Canon Inc Device and method for image retrieval and computer-readable memory
JPH11250114A (en) * 1998-03-02 1999-09-17 Ricoh Co Ltd Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program
JP2010219720A (en) * 2009-03-16 2010-09-30 Seiko Epson Corp Facsimile controller and facsimile control program
JP2018503174A (en) * 2014-11-28 2018-02-01 株式会社アーバンベースUrbanbase Inc. 3D autostereoscopic modeling method and program based on 2D drawing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61221978A (en) * 1985-03-28 1986-10-02 Mitsubishi Electric Corp Multi-color drawing reader
JPH0652243A (en) * 1992-07-30 1994-02-25 Toshiba Corp Drawing input processor
JPH11224258A (en) * 1998-02-05 1999-08-17 Canon Inc Device and method for image retrieval and computer-readable memory
JPH11250114A (en) * 1998-03-02 1999-09-17 Ricoh Co Ltd Method and device for recognizing construction drawing and computer-readable recording medium recorded with construction drawing recognizing program
JP2010219720A (en) * 2009-03-16 2010-09-30 Seiko Epson Corp Facsimile controller and facsimile control program
JP2018503174A (en) * 2014-11-28 2018-02-01 株式会社アーバンベースUrbanbase Inc. 3D autostereoscopic modeling method and program based on 2D drawing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
塩 昭夫,外1名: "手書き建築間取り図面理解システム: Sketch Plan", 電子情報通信学会論文誌 , vol. 82, no. 3, JPN6020029177, 1999, pages 431 - 439, ISSN: 0004766162 *
青木 康浩,外1名: "手書き間取り図面認識のための仮想グリッド抽出方法", 1998年電子情報通信学会総合大会, vol. D-12-17, JPN6020029176, 1998, pages 216, ISSN: 0004766161 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112765702A (en) * 2020-12-23 2021-05-07 深圳小库科技有限公司 Building auxiliary line capturing method and device
CN112765702B (en) * 2020-12-23 2023-10-03 深圳小库科技有限公司 Building auxiliary line capturing method and device

Also Published As

Publication number Publication date
JP7111599B2 (en) 2022-08-02

Similar Documents

Publication Publication Date Title
CN111008597A (en) Space identification method and device for CAD drawing, electronic equipment and storage medium
US8218890B2 (en) Method and apparatus for cropping images
JP2011141622A (en) Detection apparatus and method
CN107659799B (en) Image pickup apparatus, image processing method, and storage medium
US20230222829A1 (en) Symbol analysis device and method included in facility floor plan
CN110569774B (en) Automatic line graph image digitalization method based on image processing and pattern recognition
KR101817153B1 (en) Information insertion method, information extraction method and information extraction apparatus using dot based information robust to geometric distortion
US12026840B2 (en) System for generation of floor plans and three-dimensional models
KR101549495B1 (en) An apparatus for extracting characters and the method thereof
JP6197340B2 (en) Image processing apparatus, image processing method, and program
KR20200022453A (en) Intelligent Whiteboard Collaboration Systems and Methods
CN114827562B (en) Projection method, projection device, projection equipment and computer storage medium
WO2018151043A1 (en) Image processing method and computer program
AU2011265380B2 (en) Determining transparent fills based on a reference background colour
US9286513B2 (en) Image processing apparatus, method, and storage medium
JP7111599B2 (en) Drawing recognition device, drawing recognition method and program
JP5618719B2 (en) Image processing apparatus, method and program thereof
JP7043992B2 (en) Change point detection device, change point detection method and change point detection program
WO2022056875A1 (en) Method and apparatus for segmenting nameplate image, and computer-readable storage medium
TWI384418B (en) Image processing method and system using regionalized architecture
US20100238470A1 (en) Document image processing system and document image processing method
US9031324B2 (en) Image-processing device specifying encircling line for identifying sub-region of image
JP7187830B2 (en) Image processing program, image processing apparatus, and image processing method
JP6118295B2 (en) Marker embedding device, marker detection device, method, and program
JP2020154486A (en) Change point detection device, change point detection method and change point detection program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190624

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200714

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200812

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20201011

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210126

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20210315

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210527

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20211012

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20211210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220510

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220607

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220721

R150 Certificate of patent or registration of utility model

Ref document number: 7111599

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150