JP3571128B2 - Method and apparatus for recognizing dimensions of drawings - Google Patents
Method and apparatus for recognizing dimensions of drawings Download PDFInfo
- Publication number
- JP3571128B2 JP3571128B2 JP28541895A JP28541895A JP3571128B2 JP 3571128 B2 JP3571128 B2 JP 3571128B2 JP 28541895 A JP28541895 A JP 28541895A JP 28541895 A JP28541895 A JP 28541895A JP 3571128 B2 JP3571128 B2 JP 3571128B2
- Authority
- JP
- Japan
- Prior art keywords
- dimension
- line
- image
- area
- image information
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Description
【0001】
【発明の属する技術分野】
この発明は、建築図面等の建設図面や各種設計図面などのように、寸法補助線,寸法線,及び寸法数値からなる寸法情報を有する図面内の寸法数値を認識する寸法数値認識方法及びその装置に関する。
【0002】
【従来の技術】
近年、CADシステム等を用いて、家屋やビル等の建築図面あるいは水道管,ガス管,電力・通信ケーブル等の配管図面等を含む建設図面を容易に作成したり、そのデータを記憶させておいて設計変更や増改築等の際に利用することは行なわれている。しかし、その建設図面のデータには、作成したシステムにより互換性がなく、期間の経過や業者の変更により利用できなくなる。
また、家屋の増改築等を行なう場合には、紙に描かれた古い建築図面しかない場合が多く、増改築の間取り図等を変更しない部分も含めて全て描きなおさなければならなかった。
【0003】
そこで、紙に描かれた建築図面等の建設図面を読み取って、コンピュータで処理できるデータとして認識して記憶させることも試みられているが、そのための特別な方法や装置はなく、建設図面をイメージスキャナで読み取り、そのイメージ画像データをパーソナルコンピュータ等に入力させて、一般の図形認識機能を利用して線分認識やパターン認識を行なっている。あるいはさらに、高機能の図形エディタを補助に使うことによって図形認識機能をレベルアップし、自動認識機能が多少不完全な場合でも、例えばラスタ・ベクタ変換することにより直線や円弧等の基本線図を自動認識できるようにしたものもある。
【0004】
【発明が解決しようとする課題】
しかしながら、このような建設図面や各種の設計図面などには、寸法補助線,寸法線,及び寸法数値からなる寸法情報が多数記載されている。これは図面に描かれた各部の実際の大きさを示す重要な情報であるが、従来の図面認識装置ではこの寸法情報、特にその寸法数値を自動的に認識することができなかった。
そのため、寸法数値は操作者がキーボード等から1つずつ手入力により入力を行なっていた。
【0005】
OCRを用いて寸法数値を読み取らせる場合でも、その寸法数値が記載されている読み取り領域をそれぞれ指定する必要があった。
したがって、寸法情報を有する図面の内容をコンピュータで処理できるデータベース化する際に、従来の技術では寸法数値の入力が煩雑であり、入力ミスが発生する恐れもあるという問題があった。
【0006】
この発明は上記の点に鑑みてなされたものであり、その建設図面等の寸法情報を有する図面の画像情報から、その重要な情報である寸法数値を精度よく且つ迅速に自動認識できるようにすることを目的とする。
【0007】
【課題を解決するための手段】
この発明は上記の目的を達成するため、次のような図面の寸法数値認識方法及び寸法数値認識装置を提供する。
この発明による図面の寸法数値認識方法は、寸法数値認識装置に寸法補助線,寸法線,及び寸法数値からなる寸法情報を有する図面の画像情報を入力し、上記寸法数値認識装置を用いて、その図面の画像における水平方向及び垂直方向の黒又は白ドット数を計測して水平及び垂直方向のドット数計測配列データを作成し、その作成した両方向のドット数計測配列データを解析して寸法領域の特徴を有する部分を寸法領域と認識し、上記画像情報についてその認識した寸法領域内のドット数計測配列データを作成して解析して入力した画像情報内の各寸法補助線を抽出し、その抽出した寸法補助線間に存在する寸法線を探索し、探索できた寸法線に対してどちら側の領域に文字があるかを探索し、文字があると判断した側の寸法線の近傍で寸法補助線間の領域に対して文字認識処理を行なって寸法数値を認識することを特徴とする。
【0008】
また、この発明による図面の寸法数値認識装置は、寸法補助線,寸法線,及び寸法数値からなる寸法情報を有する図面の画像情報を入力する画像情報入力手段と、その図面の画像における水平方向及び垂直方向の黒又は白ドット数を計測して水平及び垂直方向のドット数計測配列データを作成し、その作成した両方向のドット数計測配列データを解析して寸法領域の特徴を有する部分を寸法領域と認識し、前記画像情報についてその認識した寸法領域内のドット数計測配列データを作成して解析して入力された画像情報の内の各寸法補助線を抽出する手段と、該手段によって抽出された寸法補助線間に存在する寸法線を探索する手段と、探索できた寸法線に対してどちら側の領域に文字があるかを探索する手段と、該手段によって文字があると判断した側の寸法線の近傍で寸法補助線間の領域に対して文字認識処理を行なって寸法数値を認識する手段とを備えたものである。
【0009】
したがって、寸法数値が記載されている領域を自動的に探索して、その寸法数値をOCR等によって確実に認識することができるので、寸法数値を手入力したり、読み取り領域を個々に指定したりする必要がなくなる。
【0010】
さらに、この図面の寸法数値認識装置において、探索できた寸法線のデータと、その寸法線に対応する2本の寸法補助線のデータと、該寸法線に関して認識した寸法数値とをひとまとめにした寸法リストを寸法線の数分作成する寸法リスト作成手段を設けるとよい。
これによって、寸法数値と寸法線とを1対1で対応付けすることができる。
【0011】
また、その寸法リスト作成手段によって作成された寸法リストの情報に基づいて、既に認識した寸法数値から近傍の他の寸法線に係る寸法数値を演算する演算手段を設けるとよい。
これによって、全ての寸法数値をOCR等の文字認識処理によらなくても、認識済みの寸法数値から近傍の他の寸法線の寸法数値を演算によって求めることができ、認識時間の短縮と認識精度の向上を図ることができる。
【0012】
上記画像情報入力手段が、図面の画像を読み取ってそのイメージ画像情報を入力する画像読取手段であれば、紙に描かれた図面上の寸法数値の認識を容易に行なうことができる。
また、上記画像情報入力手段が、図面の画像情報を通信により受信して入力する画像情報受信手段であれば、離れた場所にある他の装置から図面の画像情報を受信して、その図面上の寸法数値の認識を容易に行なうことができる。
【0013】
さらにまた、認識した寸法数値を入力した画像情報のイメージと同時に表示する表示手段を設ければ、認識結果を確認して誤認識を発見することが容易にできる。
そして、その表示手段に表示した認識した寸法数値を外部からの指示により確定する認識結果確認手段を設ければ、操作者が認識結果を確認した後、その指示によってそれを確定することができる。
【0014】
【発明の実施の形態】
以下、この発明の実施の形態を図面を参照して具体的に説明する。
図1は、この発明による図面の寸法数値認識方法を実施する寸法数値認識装置の概略構成を示すブロック図であり、ハード構成とマイクロコンピュータによるソフト処理の機能とを混在して示している。
【0015】
この装置は、全体制御部1,画像読取部2,通信制御部3,メモリ4,自動スキュー補正部5,寸法位置認識部6,寸法リスト作成7,寸法数値認識部8,表示部9,操作入力部10,外部記憶装置11,印刷装置12,及びこれらを接続するバス13などから構成される。なお、これらの各部(又は装置)とバス13との間に必要なインタフェース部は図示を省略している。
【0016】
全体制御部1は、この装置全体の動作及び機能を制御するマイクロコンピュータ(CPU,ROM,RAM等から構成されるが代表して「CPU」と略称される)であり、自動スキュー補正部5並びにこの発明に係る寸法位置認識部6,寸法リスト作成部7,及び寸法数値認識部8の各機能も、そのCPUのソフト処理によって実現することができる。
【0017】
画像読取部2は、セットされた寸法情報を有する図面をスキャンしてその画像を読み取って、イメージ画像情報を入力する画像情報入力手段であり、スキャン光学系及びCCDなどのイメージセンサとその駆動回路等からなる公知のイメージスキャナである。また、その読み取ったイメージ画像情報を所定の解像度で2値化して白ドットと黒ドットの画像データにする2値化回路も含んでいる。
【0018】
通信制御部3は、画像読取部2から画像情報を取り込む代りに、外部から通信によりイメージ画像情報又はそのランレングスが符号化された符号化画像データを受信して入力する画像情報受信手段であると共に、この装置によって認識した寸法数値あるいはそれを含む寸法情報を外部装置へ送信することもできる。具体的にはFAXモデムやパソコン通信制御手段を含むものである。
【0019】
メモリ4は、画像読取部2によって読み取ったイメージ画像情報、通信制御部3によって受信したイメージ画像情報又は符号化画像データをはじめ、自動スキュー補正部5によってスキュー補正された画像データ、寸法位置認識部6によって認識された寸法領域、寸法リスト作成手段7によって作成される寸法リストの情報、寸法数値認識部8によって認識された寸法数値等を格納する大容量のRAMあるいはハードディスク等によるメモリである。
【0020】
自動スキュー補正部5は、メモリ4に格納した画像データの角度を調整して水平及び垂直の線分方向を装置の水平及び垂直の基準方向(X,Y方向)と一致させるように補正するためのものであり、公知の自動スキュー補正技術を用いることができる。なお、この自動スキュー補正部5により修正された画像データは、再びメモリ4に格納される。
【0021】
寸法位置認識部6は、自動スキュー補正がなされてメモリ4に格納されたイメージ画像データ又は符号化画像データに対して、その画像データ内の寸法情報が存在する領域(以下「寸法領域」という)を認識し、その各寸法領域毎に寸法補助線を抽出して、寸法位置を認識する寸法位置認識手段である。
【0022】
寸法リスト作成部7は、寸法位置認識部6で抽出された寸法補助線間の寸法線を探索し、抽出した寸法線のデータと、その寸法線に対応する2本の寸法補助線のデータと、その寸法線に係る寸法数値(後述する寸法数値認識部8によって認識される)をひとまとめにした寸法リストを作成する寸法リスト作成手段である。
【0023】
寸法数値認識部8は、寸法リスト作成部によって作成された寸法リストの各寸法線に対して、どちら側の領域に文字があるかを探索し、文字があると判断した側の寸法線の近傍で寸法線間の領域に対してOCRによる文字認識処理を行なって寸法数値を認識する寸法数値認識手段である。また、寸法リストの情報に基づいて、既に認識した寸法数値から近傍の他の寸法線に係る寸法数値を演算する演算手段の機能も備えている。
これらの、寸法位置認識部6,寸法リスト作成部7,及び寸法数値認識部8の処理の詳細は後述する。
【0024】
表示部9は、画像読取部2又は通信制御部3から入力し、自動スキュー補正部5によってスキュー補正された図面の画像データ、寸法位置認識部6によって認識された寸法領域及び寸法補助線、寸法リスト作成部7によって探索された寸法線、寸法数値認識部8によって認識された寸法数値などを表示するためのものであり、例えば、CRTや液晶ディスプレイ等である。特に、寸法数値認識部8によって認識された寸法数値、あるいは寸法線及び寸法補助線を含む寸法情報を、入力した図面の画像情報のイメージと同時に表示する機能を備えている。
【0025】
その場合、認識された寸法情報と、入力した図面の画像情報のイメージの寸法情報とを隣接して表示したり、重ね合わせて表示したりすることができる。
そして、両者の識別が容易にできるように、イメージ画像はハーフトーンで表示し、認識結果の寸法数値は高コントラストで表示するとよい。
また、表示部9がカラーの表示装置である場合には、両画像の色を変えて表示すれば、識別性を向上させることができる。
また、認識した寸法数値の誤認識の可能性が高い(所定値以上)場合には、その寸法数値を点滅表示するなどによって、誤認識の可能性が高いことも表示することができる。
【0026】
さらに、この表示部9は、認識結果を操作者が確認するための画面も表示する。すなわち、上記認識結果の寸法数値を表示し、「この認識結果でよろしいですか?(YES/NO)」というような表示を行なう。
これにより、寸法数値が正確に認識できているかどうかを操作者が確認することができる。
【0027】
操作入力部10は、各種操作指示や機能選択指令、編集データ等を入力するためのものであり、キーボードやマウスあるいはタッチパネル等である。
この操作入力部10は、表示選定手段としての機能も有し、表示部9の表示状態を操作者の所望の表示状態に変更することができる。例えばキー操作により、入力された図面の画像イメージと認識結果の寸法情報とを重ね合わせて表示させたり、どちらか一方のみを選択して表示させたりすることができる。
【0028】
さらに、操作入力部10は、上記「この認識結果でよろしいですか?(YES/NO)」の表示に対し、「YES」または「NO」の情報を入力するためのキー等の入力手段も有する。そして、「YES」が選択された場合は表示している認識結果を確定して認識処理を終了し、「NO」が選択された場合は再認識処理あるいは訂正処理に移行する。これにより、操作者は認識結果の内容を確認してそれを確定することができる。
【0029】
また、この操作入力部10にポインティング・デバイスであるマウスを備え、表示部9に表示された図面の入力画像イメージの寸法補助線や寸法線を、マウスカーソルでなぞることによって寸法補助線や寸法線の位置情報を入力する機能を設けることも可能である。
【0030】
外部記憶装置11は、寸法数値認識部8によって認識された寸法数値や、寸法リスト作成部7によって作成された寸法リストの情報を、フロッピディスク(FD)や光磁気ディスク(OMD)等の外部へ取り出し可能な記憶媒体に記憶させる記憶装置である。
印刷装置12は、入力した図面の画像イメージや認識した寸法情報を紙に印刷あるいは描画して出力するプリンタあるいはプロッタである。
【0031】
ここで、図面の寸法情報について説明する。一般に、図面上で長さ,大きさ,位置,角度などを指示する記載が寸法情報である。建設図面(主に建築図面)において、長さを示す寸法情報は通常図2に示すような寸法図形の組み合わせで表わされる。すなわち、対象となる図形の寸法を指示したい部分の両端から引き出される寸法2本の寸法補助線間に、それに直交する方向に寸法線を引き、その上の中央部に寸法数値を記載している。すなわち、寸法数値と寸法線とは1対1で対応している。
【0032】
図2の(a)は図形の上側に寸法情報が配置される場合、(b)は図形の下側に寸法情報が配置される場合の例を示している。両者は寸法補助線に対する寸法線の位置が異なるが、いずれも寸法線の上(寸法線が縦の場合は右側)に寸法数値があり、いずれも寸法線に近い方が数字の下側になる。しかし、場合によっては、寸法数値を寸法線の下(寸法線が縦の場合は左側)に記載する場合もある。
【0033】
図3は、長い寸法の間を複数の部分に区切ってその個々の寸法を示す場合の表示例であり、(a)に示す寸法情報を分解すると(b)に示すようになる。
図4は、実際の寸法情報を有する建築図面の間取り図の例を示す。
【0034】
次に、図1に示した図面の寸法数値認識装置による建設図面(主に家屋やビル等の建築図面)の寸法数値認識処理の手順について、図5及び図6のフローチャートにしたがって説明する。図5のフローチャートにおいて、各ステップを「S」で示している。なお、ここで説明する例では、認識する建設図面がポジ図面であるものとする。
【0035】
図5は、この発明による建設図面の寸法数値認識装置の全体制御部(CPU)1によるこの発明に関わる処理のメインルーチンを示す。
まず、ステップ1において、画像読取部2にセットされた建設図面の画像を読み取り、それを2値化したイメージ画像データを入力し、メモリ4の画像データ格納エリアに格納する。あるいは、通信制御部3によって外部から建設図面の画像データ(イメージ画像データあるいはそのランレングスを符号化した符号化画像データ)を受信して入力してもよい。
【0036】
ステップ2において、メモリ4に格納した入力画像データの水平及び垂直の線分方向を装置の水平及び垂直の基準方向(X,Y方向)と一致させるように、自動スキュー補正部5によって補正させる。これは以後のステップ3,4の寸法情報認識処理における認識精度を向上させるために行なう。この自動スキュー補正は、従来から知られているいくつかの方法により行なえばよいので、その内容の詳細な説明は省略する。
【0037】
次にステップ3のサブルーチンに進み、自動スキュー補正された画像データの全体を対象として、寸法領域認識処理を実行する。この処理は、入力した建設図面の画像データ中の寸法情報が存在する領域(「寸法領域」という)を決定する処理であり、次のステップ4での寸法補助線抽出処理と共に図1における寸法位置認識部6によって行なうが、その詳細は後述する。
【0038】
この寸法領域認識処理が済んで寸法領域を決定すると、ステップ4のサブルーチンに進んで、寸法補助線抽出処理を実行する。この処理はステップ3の処理で決定された各寸法領域ごとに、図7に示すようにそこに存在する寸法補助線のみを抽出する処理であり、その詳細は後述する。
【0039】
全ての寸法領域の寸法線の認識が終了すると、次にステップ5へ進んで、寸法リスト作成部7によって寸法の探索及び寸法リストの作成を行なう。すなわち、図8に示すように1対の寸法補助線a−a間に存在する寸法線bを探索する。この探索は、ステップ3で認識された各寸法領域内を走査(スキャン)することによって、寸法補助線に直交する方向に連続する所定長さ以上の黒ドット列を寸法線の候補とし、その両端が寸法補助線に当接しているものを探索する。
【0040】
そして、その探索した寸法線とそれに対応する2本の寸法補助線を組みにして寸法リストを作成する。この寸法リストには、後で認識する寸法数値を組み合わせる。
寸法線の探索を全て終了するまでこの処理を繰り返し、終了するとステップ7へ進んで、寸法数値認識部8によって寸法数値認識処理を行なう。この処理はステップ5で作成された寸法リストの各寸法線に対して寸法数値を認識して寸法リストに加える処理であるが、その詳細は図6によって後述する。
【0041】
ステップ8で、認識結果の寸法数値を表示部9に表示する、あるいは寸法線及び寸法補助線を含む全ての寸法情報を表示してもよい。
そして、ステップ9で確定するか否か、すなわち操作入力部10の確定キーが押された(マウスカーソルによる指示でもよい)かどうかを判断し、確定すると判断すると、ステップ10へ進んでそのときの認識結果を確定し、メモリ4の確定認識結果格納領域に格納して処理を終了する。
【0042】
ステップ9で確定キーが押されない場合は、ステップ11で認識結果を修正するか否か、すなわち修正入力選択キーが押されたか(マウスカーソルによる指示でもよい)どうかを判断し、修正すると判断すると、ステップ13で表示部9に入力した建設図面のイメージ画像を含む修正入力用の画面を表示させる。そして、オペレータが操作入力部10によって修正データ(寸法数値等)を修正データの入力(追加,訂正,削除を含む)をすると、それをメモリ4に記憶し、ステップ8でその修正結果を表示部9に表示する。修正を終了するまで、ステップ8,9,11,13,14,11の処理を繰り返す。
【0043】
ステップ11で修正しないと判断した場合には、ステップ12で再処理するか(再処理の指示がなされたか)否かを判断し、再処理の指示がなされた場合にはステップ3へ戻り、寸法領域認識処理からステップ10又は14までの処理を繰り返す。ステップ12で再処理の指示がなされなかった(終了の指示がなされるか、何の指示もなされずに所定時間経過した)ときには、処理を終了する。
【0044】
なお、このフローチャートでは省略しているが、この確定した認識結果を図1における外部記憶装置11の記憶媒体に格納したり、印刷装置12によって紙に印刷したり、通信制御部3からホストコンピュータ等に送信することもできる。
【0045】
次に、この図5のステップ7における寸法数値認識処理の詳細を、図6のフローチャートに従って説明する。
この処理を開始すると、寸法リストの寸法線毎に、図9に示すように寸法線bの中央部の上側の領域Uを切り出し、そこに文字の画像があるかどうかを走査して調べる。文字画像があるか否かは、黒ドットが所定密度で密集しているか否かで判断する。所定密度以下であればノイズ(ごみ)と判断する。
【0046】
文字画像がなければ、次に同じく図9に示すように寸法線bの中央部の下側の領域Lを切り出し、同様にそこに文字の画像があるかどうかを走査して調べる。そこにも文字画像がなければ、表示部9にエラーメッセージを表示して処理を終了する。エラーメッセージの内容としては、「数値を認識できません。数値があるかどうか原画像を確認して下さい。」等とする。実際に数値があるが、認識できなかった場合には、前述した図5のステップ14等で修正入力することができる。
【0047】
寸法線の上側の領域Uあるいは下側の領域Lのいずれかに文字画像がある場合には、図10に示すように、そのあった方の側の寸法線bの近傍(予め設定した幅)で1対の寸法補助線a−a間の領域Sに対してOCRをかけて、文字列(文字コード)を認識する。
【0048】
その認識した文字列を数値に変換して寸法リストの対応する寸法線の寸法数値としてストアする。
寸法リスト内の全ての寸法線の領域Sに対してOCRをかけるまで、上述の処理を繰り返し、それを完了したら、図5のメインルーチンへリターンする。
【0049】
次に、図5のメインルーチンにおけるステップ3の寸法領域認識処理とステップ4の寸法補助線抽出処理について説明する。
まず、寸法領域認識処理のサブルーチンのフローチャートを図11の左側の(a)に示し、その各ステップの処理に関する説明図を右側の(b)〜(f)に示す。図11の(b)は入力してスキュー補正した建設図面の画像データ(建設図面データ)を簡略化して示したものである。
【0050】
この画像データに対して、まずステップ21で水平方向(X方向)の黒ドット数を1ドットライン毎に計測して、水平方向ドット数計測配列データ、すなわち図11の(c)に示すような図面全体の横方向のドットヒストグラムを作成する。
なお、読み取った建設図面がポジ図面(地の明度より図の明度が低い図面)の場合には黒ドット数を計測し、ネガ図面(地の明度より図の明度が高い図面)の場合には白ドット数を計測する。
【0051】
そして、ステップ22でその黒ドット数計測配列から寸法領域の特徴が見られる部分を探索する。そして、この特徴が見られる範囲を(d)に網点を施して示すように仮の寸法領域(水平方向)とする。
【0052】
これらの処理について図12によってさらに説明する。図12の(a)は寸法データの構成例を示し、複数の引出線aと複数の寸法線b及び寸法文字cから構成されている。引出線aの内側の先端は建物に接する場合と離れている場合があるが、外側の先端部寄りには、建物からある程度離れて、略一定の間隔で平行に複数の寸法線bがあり、その線幅は細い。この寸法線は建物の上側又は下側では水平方向に、右側又は左側では垂直方向に延びている。図示の例は上側であり、水平方向に延びている。
【0053】
そのため、この寸法データの水平方向の黒ドット数計測配列であるドットヒストグラムは、図12の(b)に示すようになる。
すなわち、Y方向の狭い範囲に黒ドット数(黒ランの数)が非常に多いことを示す長い線が集中した部分Bが、略一定の間隔で複数現われる。これは寸法線bによるものである。Aは引出線による部分で黒ドット数が極めて少ないことを示す短い線がY方向に密接して垂直方向の太線のように現われる。Cは寸法文字による部分で、Bの部分の間に比較的短い線が多数Y方向に隣接して現われる。
【0054】
これらが寸法領域の特徴である。そこで、このドットヒストグラムをスキャンして、一番外側の長い線状のBの部分から、一番内側のBの部分よりさらに建物側に予め設定した一定幅dまでの幅Wの範囲を仮の寸法領域とする。
【0055】
図11に戻って、次にステップ23で垂直方向黒ドット数計測配列データ、すなわち図面全体の縦方向のドットヒストグラムを作成する。そして、ステップ24においてステップ22における水平方向の場合と同様の処理で、黒ドット数計測配列から寸法領域の特徴が見られる部分を探索し、その範囲を(e)に網点を施して示すように仮の寸法領域(垂直方向)とする。
【0056】
そして、最後のステップ25で、垂直および水平方向の仮の寸法領域を合成し、両領域が重なる部分から外側の各領域は削除して、図11の(f)に網点を施して示すような寸法領域を認識して決定する。この例では、建物に対して上下左右に位置する4つの寸法領域が存在している。この各寸法領域の4角の座標データをメモリに記憶しておく。その後図5のメインルーチンへリターンする。
【0057】
次に、図5のステップ4における寸法補助線抽出処理のサブルーチンのフローチャートを図13に示し、これを図14乃至図16も参照して説明する。
図13に示す寸法補助線抽出処理を開始すると、まずステップ31で先に認識した4つの寸法領域の座標データを順番に読み込む。
【0058】
ステップ32で、その読み込んだ寸法領域の建物に対する位置を判別する。
その判別結果が左又は右であればステップ33へ進み、その寸法領域内の画像データによって水平方向黒ドット数計測配列データを作成する。その判別結果が上又は下であればステップ34へ進み、その寸法領域内の画像データによって垂直方向黒ドット数計測配列データを作成する。
【0059】
例えば、図14に示すように、画像データ中の建物の画像20に対して左側の寸法領域21内の水平方向黒ドット数計測配列データを作成すると、図15に示すような黒ドット数計測配列(ドットヒストグラム)が得られる。この黒ドット数計測配列は、各寸法補助線のある位置で幅の狭いピークが現われる。
【0060】
そこでステップ35で、その黒ドット数計測配列を走査して、黒ドット数がしきい値以上のラインが連続する幅とその間の黒ドット数のピーク値を検出する。その走査方向は、水平方向黒ドット数計測配列に対してはY方向(垂直方向)で、垂直方向黒ドット数計測配列に対してはX方向(水平方向)である。
【0061】
そして、例えば図16に示すように、水平方向黒ドット数計測配列に対してY方向に走査して、黒ドット数がしきい値以上のラインを検出するとそれが走査方向に連続して検出される幅Dと、その間の黒ドット数のピーク値(図示の例では2番目に検出されたラインの黒ドット数)を検出して記憶する。
【0062】
幅Dを検出したとき、すなわち黒ドット数がしきい値以上のラインを検出した後最初にそれを検出できなくなった(黒ドット数がしきい値未満のラインを走査した)時、及び1つの寸法領域の黒ドット数計測配列に対する走査を終了した時にステップ36に進む。
【0063】
そこでは黒ドット数がしきい値以上のラインがあったか否かを判断し、あればステップ37へ進んで、ピークの高さに対して幅(図16に示すD)が十分狭い(予め1/5以下,1/10以下のように設定しておく)かどうかをチェックする。狭ければ寸法補助線と判断して、ステップ38でそのX座標(X方向に走査した時)又はY座標(Y方向に走査した時)を、メモリ4内の寸法補助線情報リストに加える。
【0064】
例えば、左右の寸法領域の場合は、図16に示した幅(配列中の黒ドット数がしきい値以上のラインが連続する範囲)Dの中点PのY方向走査位置を寸法補助線のY座標とする。上下の寸法領域の場合は、同様な幅Dの中点のX方向走査位置を寸法補助線のX座標とする。
【0065】
その後、図13のステップ39へ進んで、1つの寸法領域の黒ドット数計測配列に対する走査を終了したか否かを判断し、終了していなければステップ35へ戻って、以後の処理を繰り返す。走査を終了するとステップ40へ進み、全ての寸法領域に対する寸法補助線抽出処理を終了したか否かを判断し、終了していなければステップ31に戻って、次の寸法領域の座標データを読み込み、上述の処理を繰り返す。
【0066】
そして、建物に対して上下左右の全ての寸法領域に対する寸法補助線抽出処理を終了すると、このサブルーチンを抜けて図5のメインルーチンへリターンする。
この方法によれば、単純なアルゴリズムでほぼ100%の寸法線が指すポイントの座標を認識することができる。また、輪郭線抽出や細線化処理と比較して、処理速度も速い。A3図面でも1秒以内で抽出可能である。
【0067】
さらに、ドットヒストグラムによる分析を行なうため、ノイズやカスレにも強く、精度よく寸法補助線の座標データを取得できる。また、図面が大きくなってもメモリ使用量は1次元的にしか増加しないので、例えばA4図面で約6Kバイト、A0図面でも約24Kバイト程度で済む。
【0068】
ここで、実際の建築図面である家屋の間取り図について、上述の寸法領域認識処理及び寸法補助線抽出処理の具体例を、図17乃至図20によって説明する。
図17は、家屋の間取り図を読み取ったイメージ画像データである。
このイメージ画像データに対して寸法領域認識処理を行なうため、水平方向及び垂直方向の黒ドット数を計数して、図17に(H)で示す水平方向の黒ドット数計測配列データと、(V)で示す垂直方向の黒ドット数計測配列データ(ドットヒストグラム)を作成する。
【0069】
この水平方向及び垂直方向の黒ドット数計測配列データから、寸法領域の特徴が見られる部分を探索して、図18におけるイメージ画像データに対して斜線を施して示す寸法領域(寸法情報が存在する範囲)を認識する。この例では、建物の画像に対して上下左右の4個所に寸法領域が存在する。
【0070】
このようにして決定した各寸法領域の画像データについて、それぞれ寸法補助線の認識処理を行なうため、図19に示すように、建物の左右の寸法領域内の各画像データについては水平方向黒ドット数計測配列データを作成し、建物の上下の寸法領域内の各画像データについては垂直方向黒ドット数計測配列データを作成する。
【0071】
そして、図20にその一つの寸法領域の垂直方向黒ドット数計測配列を示すように、黒ドット数がしきい値以上の黒ランがピークに対して十分狭い幅で存在する各部分の中心点の座標をそれぞれ寸法補助線のX座標(水平方向黒ドット数計測配列の場合はY座標)と認識して、それぞれ寸法補助線情報リストに記憶する。
【0072】
図1における寸法数値認識部8の付加的機能により、寸法リストに格納されている認識された寸法数値と、その寸法線及び寸法補助線の位置データを利用して近傍の他の寸法線に係る寸法数値を演算によって求めることもできる。
寸法リストは、メモリ4の中に2本の寸法補助線で得られる領域毎に作成される。寸法数値の演算方法の例を図21によって説明する。
【0073】
はじめに、寸法線AとBに係る寸法数値「1000」と「1500」を認識し、その後それを加算してして(1000+1500=2500)を寸法線Cに係る寸法数値として算出する。
さらに、寸法線Cに対する領域にもOCRを実施した後、演算結果と比較して、寸法線Cに係る寸法数値を決定するようにしてもよい。OCRをすべて寸法線の領域に対して行なった後、この演算方法で検算して、矛盾が生じる場合は、その部分を表示して、操作者に確認させるようにすることもできる。
【0074】
図22は認識した寸法数値の表示例を示し、できるだけ原画像のイメージの近傍(上下左右)に認識した寸法数値(枠で囲んで示す)表示させることにより、比較を容易にすることができる。
【0075】
【発明の効果】
以上説明してきたように、この発明の図面の寸法数値認識方法及び認識装置によれば、建設図面等の寸法情報を有する図面の画像情報から、その重要な情報である寸法数値を精度よく且つ迅速に自動認識できる。
【図面の簡単な説明】
【図1】この発明による図面の寸法数値認識方法を実施する装置の概略構成を示すブロック図である。
【図2】建設図面における寸法情報の記載例を示す図である。
【図3】同じくその寸法の分割例を示す図である。
【図4】寸法情報を有する建設図面の例を示す図である。
【図5】図1に示した装置による図面の寸法数値認識に関わる処理のメインルーチンのフロー図である。
【図6】図5におけるステップ7の寸法数値認識処理のサブルーチンのフロー図である。
【図7】寸法補助線抽出の説明図である。
【図8】寸法線探索の説明図である。
【図9】寸法線のどちら側に文字画像があるかを調査するエリアの説明図である。
【図10】文字認識(OCR)を行なう領域の説明図である。
【図11】図5におけるステップ3の寸法領域認識処理のサブルーチンのフローとその各ステップの説明に供する図を対応させて示す図である。
【図12】同じくその寸法領域認識処理を説明するための説明図である。
【図13】図5におけるステップ4の寸法補助線抽出処理のサブルーチンのフロー図である。
【図14】入力した建設図面の画像データにおける建物の画像と寸法領域の一例を示す図である。
【図15】図9の寸法領域における水平方向黒ドット数計測配列を示す図である。
【図16】同じくその黒ドット数計測配列から寸法補助線を認識する処理の説明に供する拡大図である。
【図17】実際の建築図面を読み取ったイメージ画像データとその画像データに対する水平及び垂直方向の黒ドット数計測配列データを示す図である。
【図18】図17の水平及び垂直方向の黒ドット数計測配列データを用いて寸法領域を決定した例を示す図である。
【図19】図18の各寸法領域ごとにその内部の画像データによって水平又は垂直方向の黒ドット数計測配列データを作成した図である。
【図20】同じく一つの寸法領域における垂直方向の黒ドット数計測配列と寸法補助線を抽出するためのしきい値の関係を示す図である。
【図21】寸法数値を演算によって求める例の説明図である。
【図22】認識した寸法数値の表示例を示す図である。
【符号の説明】
1:全体制御部(CPU) 2:画像読取部
3:通信制御部 4:メモリ
5:自動スキュー補正部
6:寸法位置認識部 7:寸法リスト作成部
8:寸法数値認識部 9:表示部
10:操作入力部 11:外部記憶装置
12:印刷装置 13:バス
20:建物の画像 21:寸法領域[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a method and an apparatus for recognizing dimension values in drawings having dimension information including dimension auxiliary lines, dimension lines, and dimension values, such as construction drawings such as architectural drawings and various design drawings. About.
[0002]
[Prior art]
In recent years, CAD systems and the like have been used to easily create architectural drawings of houses and buildings or construction drawings including water pipes, gas pipes, piping drawings of power / communication cables, and the like, and to store the data. It is used for design changes and 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 remodeling a house, there are many cases where there is only an old architectural drawing drawn on paper, and it has been necessary to redraw all parts including the floor plan of the renovation and remodeling, etc.
[0003]
Therefore, attempts have been made to read construction drawings such as architectural drawings drawn on paper and recognize and store the data as data that can be processed by a computer. The image data is read by a scanner, the image data is input to a personal computer or the like, and line segment recognition and pattern recognition are performed using a general graphic recognition function. In addition, even if the automatic recognition function is somewhat incomplete, the basic diagram such as a straight line or an arc can be obtained by performing raster-to-vector conversion even if the automatic recognition function is somewhat incomplete by using a high-performance graphic editor to assist. Some are made automatic recognition possible.
[0004]
[Problems to be solved by the invention]
However, such construction drawings and various design drawings contain a lot of dimensional information composed of auxiliary dimension lines, dimensional lines, and numerical values. This is important information indicating the actual size of each part drawn in the drawing. However, the conventional drawing recognition device could not automatically recognize this dimensional information, especially its numerical value.
Therefore, the operator manually inputs the dimension values one by one from a keyboard or the like.
[0005]
Even in the case where the numerical value is read using the OCR, it is necessary to specify each reading area in which the numerical value is described.
Therefore, when the contents of the drawing having the dimensional information are converted into a database that can be processed by a computer, there is a problem that inputting the dimensional values is complicated in the conventional technology, and an input error may occur.
[0006]
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and enables automatic and accurate recognition of dimensional values, which are important information, from image information of a drawing having dimensional information such as a construction drawing. The purpose is to:
[0007]
[Means for Solving the Problems]
In order to achieve the above object, the present invention provides a dimension numerical value recognizing method and a dimension numerical value recognizing apparatus as shown in the following drawings.
The method for recognizing the dimensions of drawings according to the present invention is as follows.For dimension value recognition deviceEnter the image information of the drawing that has the dimension information consisting of the dimension extension line, dimension line, and dimension value,Using the size numerical value recognition device, the number of black or white dots in the horizontal and vertical directions in the image of the drawing is measured to create horizontal and vertical dot number measurement array data, and the created number of dots in both directions. Analyzing the measurement array data, recognizing the portion having the characteristic of the dimension area as the dimension area, and creating and analyzing the dot number measurement array data in the recognized dimension area for the image information.Extracts each dimension extension line in the input image information, searches for the dimension line existing between the extracted dimension extension lines, and searches for the area in which the character is located with respect to the dimension line that was searched. , Dimension near the dimension line on the side where it is determined that there is a characterauxiliaryCharacter recognition processing is performed on a region between lines to recognize a numerical value.
[0008]
Further, the drawing numerical value recognition apparatus according to the present invention comprises: image information input means for inputting image information of a drawing having dimension information including a dimension auxiliary line, a dimension line, and a dimension value;The number of black or white dots in the horizontal and vertical directions in the image of the drawing is measured to create horizontal and vertical dot count measurement array data, and the created dot count measurement array data in both directions is analyzed to measure the size area. Recognize a portion having the characteristic of a size area, and create and analyze dot number measurement array data in the recognized size area for the image information.Means for extracting each dimension auxiliary line from the input image information, and dimensions extracted by the meansauxiliaryMeans for searching for a dimension line existing between the lines; means for searching in which area the character is located with respect to the searched dimension line; and means for searching for a dimension line determined to have a character by the means. Means for performing a character recognition process on an area between the auxiliary dimension lines in the vicinity to recognize a numerical value.
[0009]
Therefore, the area in which the dimension value is described can be automatically searched, and the dimension value can be reliably recognized by OCR or the like, so that the dimension value can be manually input or the reading area can be individually specified. You don't have to.
[0010]
Further, in the dimension numerical value recognition device of this drawing, the dimension data obtained by collecting the data of the dimension line that could be searched, the data of the two dimension auxiliary lines corresponding to the dimension line, and the dimension values recognized for the dimension line. It is preferable to provide a dimension list creating means for creating lists for the number of dimension lines.
As a result, the dimension value and the dimension line can be associated one-to-one.
[0011]
Further, it is preferable to provide a calculating means for calculating a dimension value related to another dimension line in the vicinity from the already recognized dimension value based on the information of the dimension list created by the dimension list creating means.
As a result, it is possible to calculate the dimension values of other dimension lines in the vicinity from the recognized dimension values without performing all the dimension values by character recognition processing such as OCR, thereby shortening the recognition time and reducing the recognition accuracy. Can be improved.
[0012]
The image information input means is:Any image reading means that reads an image of a drawing and inputs the image image information can easily recognize the numerical values of the dimensions drawn on the paper.
Further, if the image information input means is an image information receiving means for receiving and inputting the image information of the drawing by communication, the image information input means receives the image information of the drawing from another device at a remote place, and Can be easily recognized.
[0013]
Further, if a display means for displaying the recognized dimension value and the image of the input image information at the same time is provided, it is possible to easily confirm the recognition result and find erroneous recognition.
If a recognition result confirming means for confirming the recognized dimension value displayed on the display means by an external instruction is provided, the operator can confirm the recognition result and then confirm it by the instruction.
[0014]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be specifically described with reference to the drawings.
FIG. 1 is a block diagram showing a schematic configuration of a dimension numerical value recognizing apparatus for carrying out the dimension numerical value recognizing method of the drawing according to the present invention, in which a hardware configuration and a function of software processing by a microcomputer are mixedly shown.
[0015]
This apparatus includes an
[0016]
The
[0017]
The
[0018]
The
[0019]
The
[0020]
The automatic
[0021]
The dimension
[0022]
The dimension list creating unit 7 searches for a dimension line between the dimension auxiliary lines extracted by the dimension
[0023]
The dimension numerical
The details of the processing of the dimension
[0024]
The display unit 9 receives the image data of the drawing input from the
[0025]
In this case, the recognized dimensional information and the dimensional information of the image of the input drawing image information can be displayed adjacent to each other or can be displayed in a superimposed manner.
It is preferable that the image is displayed in halftone and the dimension value of the recognition result is displayed in high contrast so that the two can be easily distinguished.
Further, when the display unit 9 is a color display device, discrimination can be improved by displaying the two images in different colors.
In addition, when the possibility of erroneous recognition of the recognized dimension value is high (predetermined value or more), it is possible to display that the possibility of erroneous recognition is high by blinking and displaying the dimension value.
[0026]
Further, the display unit 9 also displays a screen for the operator to confirm the recognition result. That is, the numerical value of the recognition result is displayed, and a display such as "Is this recognition result OK? (YES / NO)" is performed.
As a result, the operator can confirm whether or not the dimension value has been correctly recognized.
[0027]
The
The
[0028]
Further, the
[0029]
The
[0030]
The external storage device 11 sends the dimension values recognized by the dimension
The
[0031]
Here, the dimension information of the drawingaboutexplain. In general, a description indicating a length, a size, a position, an angle, and the like on a drawing is dimensional information. In construction drawings (mainly architectural drawings), dimensional information indicating the length is usually represented by a combination of dimensional figures as shown in FIG. That is, a dimension line is drawn in a direction perpendicular to the two dimension auxiliary lines drawn from both ends of a portion for which the dimension of the target graphic is to be indicated, and the dimension numerical value is described in a central portion above the auxiliary line. . That is, the dimension value and the dimension line correspond one-to-one.
[0032]
FIG. 2A shows an example in which the dimension information is arranged above the figure, and FIG. 2B shows an example in which the dimension information is arranged below the figure. Both differ in the position of the dimension line with respect to the dimension extension line, but in both cases the dimension value is above the dimension line (the right side if the dimension line is vertical), and the one closer to the dimension line is below the number . However, in some cases, the dimension value may be described below the dimension line (left side when the dimension line is vertical).
[0033]
FIG. 3 is a display example in which a long dimension is divided into a plurality of portions to show individual dimensions. When the dimension information shown in FIG. 3A is decomposed, it becomes as shown in FIG.
FIG. 4 shows an example of a floor plan of an architectural drawing having actual dimensional information.
[0034]
Next, a procedure of a process of recognizing dimension values of a construction drawing (mainly an architectural drawing of a house, a building or the like) by the dimension value recognizing device of the drawing shown in FIG. 1 will be described with reference to the flowcharts of FIGS. In the flowchart of FIG. 5, each step is indicated by “S”. In the example described here, the construction drawing to be recognized is a positive drawing.
[0035]
FIG. 5 shows a main routine of a process relating to the present invention by the overall control unit (CPU) 1 of the apparatus for recognizing dimensions of construction drawings according to the present invention.
First, in
[0036]
In
[0037]
Next, the process proceeds to a subroutine of
[0038]
When the dimension area is determined after the dimension area recognition processing, the process proceeds to the subroutine of
[0039]
When the recognition of the dimension lines of all the dimension areas is completed, the process proceeds to step 5, where the dimension list creating section 7 searches for dimensions and creates a dimension list. That is, as shown in FIG. 8, a dimension line b existing between a pair of dimension auxiliary lines aa is searched. In this search, by scanning (scanning) the inside of each dimension area recognized in
[0040]
Then, a dimension list is created by combining the searched dimension line and two corresponding dimension auxiliary lines. This dimension list contains dimension values that you will recognize later.Tocombine.
This process is repeated until the search for the dimension line is completed. When the search is completed, the process proceeds to step 7, where the dimension
[0041]
In
Then, it is determined whether or not to be determined in step 9, that is, whether or not the determination key of the
[0042]
If the confirmation key is not pressed in step 9, it is determined in step 11 whether or not the recognition result is to be corrected, that is, whether or not the correction input selection key has been pressed (or may be indicated by a mouse cursor). In
[0043]
If it is determined in step 11 that the correction is not to be made, it is determined in
[0044]
Although not shown in this flowchart, the determined recognition result is stored in the storage medium of the external storage device 11 in FIG. 1, printed on paper by the
[0045]
Next, details of the dimension numerical value recognition processing in step 7 of FIG. 5 will be described with reference to the flowchart of FIG.
When this processing is started, an area U above the center of the dimension line b is cut out as shown in FIG. 9 for each dimension line in the dimension list, and a scan is performed to determine whether or not there is a character image. Whether or not there is a character image is determined based on whether or not black dots are densely packed at a predetermined density. If the density is equal to or less than the predetermined density, it is determined to be noise (garbage).
[0046]
If there is no character image, an area L below the center of the dimension line b is cut out as shown in FIG. 9, and a scan is performed to determine whether a character image is present there. If there is no character image there, an error message is displayed on the display unit 9 and the process ends. The content of the error message is, for example, "The numerical value cannot be recognized. Check the original image for the numerical value." There are actual numbers, but they could not be recognizedin case of,The correction input can be made in step 14 and the like in FIG.
[0047]
When there is a character image in either the area U above the dimension line or the area L below the dimension line, as shown in FIG. 10, the vicinity of the dimension line b on that side (preset width) OCR is applied to the region S between the pair of dimension auxiliary lines aa to recognize a character string (character code).
[0048]
The recognized character string is converted into a numerical value and stored as the numerical value of the corresponding dimension line in the dimension list.
The above processing is repeated until OCR is applied to the area S of all the dimension lines in the dimension list, and when the processing is completed, the process returns to the main routine of FIG.
[0049]
Next, the dimension area recognition processing in
First, a flowchart of the subroutine of the dimension area recognition processing is shown in FIG.Steps(B) to (f) on the right side of FIG. FIG. 11B is a simplified illustration of image data (construction drawing data) of a construction drawing that has been input and skew-corrected.
[0050]
For this image data, first, in
The number of black dots is counted when the construction drawing read is a positive drawing (a drawing whose brightness is lower than the ground brightness), and when the construction drawing is a negative drawing (a drawing whose brightness is higher than the ground brightness). Measure the number of white dots.
[0051]
[0052]
These processes will be further described with reference to FIG.Of FIG.(A) shows a configuration example of the dimension data, which is composed of a plurality of lead lines a, a plurality of dimension lines b, and a dimension letter c. Although the inner end of the lead line a may be in contact with the building or may be separated therefrom, there are a plurality of dimension lines b near the outer end part that are separated from the building to some extent and are parallel at substantially constant intervals, The line width is thin. This dimension line extends horizontally at the top or bottom of the building and vertically at the right or left side. The illustrated example is on the upper side and extends in the horizontal direction.
[0053]
Therefore, the dot histogram which is the array of the number of black dots in the horizontal direction of the dimension data is as shown in FIG.
That is, a plurality of portions B in which long lines indicating that the number of black dots (the number of black runs) is extremely large are concentrated at a substantially constant interval in a narrow range in the Y direction. This is due to the dimension line b. In A, a short line indicating that the number of black dots is extremely small is a portion formed by a leader line and closely appears in the Y direction and appears as a thick line in the vertical direction. C is a dimension character portion, and a number of relatively short lines appear adjacent to each other in the Y direction between the portions of B.
[0054]
These are the characteristics of the dimension area. Therefore, by scanning this dot histogram, a range of the width W from the outermost long linear B portion to the predetermined width d set in advance on the building side from the innermost B portion is temporarily determined. Dimension area.
[0055]
Returning to FIG. 11, in
[0056]
Then, in the final step 25, the temporary dimension areas in the vertical and horizontal directions are synthesized, and each area outside the area where the two areas overlap with each other is deleted, and as shown in FIG. Is determined by recognizing various dimensional areas. In this example, there are four dimension areas located at the top, bottom, left, and right of the building. The coordinate data of the four corners of each dimension area is stored in a memory. Thereafter, the process returns to the main routine of FIG.
[0057]
Next, FIG. 13 shows a flowchart of a subroutine of the dimension auxiliary line extraction processing in
When the dimension auxiliary line extraction processing shown in FIG. 13 is started, first, in
[0058]
StepsAt 32, the position of the read dimension area with respect to the building is determined.
If the discrimination result is left or right, the process proceeds to step 33, where the horizontal black dot number measurement array data is created based on the image data in the size area. If the result of the determination is upward or downward, the process proceeds to step 34, where the vertical black dot number measurement array data is created based on the image data in the size area.
[0059]
For example, as shown in FIG. 14, when the horizontal black dot number measurement array data in the
[0060]
ThereforeStepsIn step 35, the black dot number measurement array is scanned to detect the width of the line where the number of black dots is equal to or greater than the threshold value and the peak value of the number of black dots between them. The scanning direction is the Y direction (vertical direction) for the horizontal black dot number measurement array, and the X direction (horizontal direction) for the vertical black dot number measurement array.
[0061]
Then, as shown in FIG. 16, for example, as shown in FIG. 16, scanning is performed in the Y direction with respect to the horizontal black dot number measurement array. The width D and the peak value of the number of black dots therebetween (the number of black dots on the second detected line in the illustrated example) are detected and stored.
[0062]
When the width D is detected, that is, when the number of black dots is equal to or more than the threshold value and the line cannot be detected for the first time (line where the number of black dots is less than the threshold value is scanned), When the scanning for the black dot number measurement array in the size area is completed, the process proceeds to step S36.
[0063]
In this case, it is determined whether or not there is a line in which the number of black dots is equal to or larger than the threshold value. If there is, the process proceeds to step 37, where the width (D shown in FIG. 5 or less, and set to 1/10 or less). If it is narrow, it is determined to be a dimension auxiliary line, and the X coordinate (when scanning in the X direction) or the Y coordinate (when scanning in the Y direction) is added to the dimension auxiliary line information list in the
[0064]
For example, in the case of the left and right dimension areas, the Y-direction scanning position of the midpoint P of the width (the range in which the number of black dots in the array is greater than or equal to the threshold) D shown in FIG. Let it be the Y coordinate. In the case of the upper and lower dimension areas, the X-direction scanning position at the same midpoint of the width D is set as the X coordinate of the dimension auxiliary line.
[0065]
Thereafter, the process proceeds to step 39 in FIG. 13 to determine whether or not the scanning for the black dot number measurement array in one dimension area has been completed. If not completed, the process returns to step 35 to repeat the subsequent processing. When you finish scanningStepsProceed to 40 to determine whether or not the dimension auxiliary line extraction processing for all dimension areas has been completed.StepsReturning to 31, the coordinate data of the next dimension area is read, and the above processing is repeated.
[0066]
When the dimension auxiliary line extraction processing is completed for all dimension areas of the building, up, down, left and right, the process exits this subroutine and returns to the main routine of FIG.
According to this method, it is possible to recognize the coordinates of the point indicated by the dimension line of almost 100% with a simple algorithm. In addition, the processing speed is faster than the contour extraction and thinning processing. A3 drawing can be extracted within one second.
[0067]
Furthermore, since the analysis is performed by using the dot histogram, it is resistant to noise and blur, and the coordinate data of the dimension auxiliary line can be acquired with high accuracy. Further, since the memory usage increases only one-dimensionally even if the drawing becomes large, for example, about 6 Kbytes for the A4 drawing and about 24 Kbytes for the A0 drawing.
[0068]
Here, with respect to a floor plan of a house, which is an actual architectural drawing, a specific example of the above-described dimension area recognition processing and dimension auxiliary line extraction processing will be described with reference to FIGS.
FIG. 17 is image image data obtained by reading a floor plan of a house.
In order to perform the dimension area recognition process on the image data, the number of black dots in the horizontal and vertical directions is counted, and the horizontal black dot number measurement array data shown in FIG. ), Black dot number measurement array data (dot histogram) in the vertical direction is created.
[0069]
From the horizontal and vertical black dot count measurement array data, a portion where the feature of the dimension area is found is searched, and the dimension area (dimension information exists) indicated by hatching the image image data in FIG. Range). In this example, there are dimension areas at four locations, up, down, left, and right with respect to the image of the building.
[0070]
As shown in FIG. 19, each of the image data in the left and right dimension areas of the building has the number of black dots in the horizontal direction. The measurement array data is created, and the vertical direction black dot number measurement array data is created for each image data in the upper and lower dimension areas of the building.
[0071]
Then, as shown in the vertical black dot number measurement array of the one dimension area in FIG. 20, the center point of each part where the black run whose black dot number is equal to or more than the threshold exists with a sufficiently narrow width with respect to the peak. Are recognized as the X coordinate of the dimension auxiliary line (Y coordinate in the case of the array of black dots in the horizontal direction) and stored in the dimension auxiliary line information list.
[0072]
The additional function of the dimension numerical
The dimension list is created in the
[0073]
First, the dimension value “1000” related to the dimension lines A and B is"1500", And then add them to calculate (1000 + 1500 = 2500) as a dimension value related to the dimension line C.
Furthermore, after performing the OCR on the area corresponding to the dimension line C, the numerical value of the dimension line C may be determined by comparing the result with the calculation result. After performing all the OCR on the area of the dimension line, the calculation is performed by this calculation method.Display, The operator can confirm it.
[0074]
FIG. 22 shows a display example of the recognized dimension values. By displaying the recognized dimension values (enclosed in a frame) as close to the original image as possible (up, down, left and right), comparison can be facilitated.
[0075]
【The invention's effect】
As described above, according to the method and apparatus for recognizing dimensional values of drawings according to the present invention, dimensional values, which are important information, can be accurately and rapidly obtained from image information of drawings having dimensional information such as construction drawings. Can be automatically recognized.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of an apparatus for implementing a method of recognizing dimensions and numerical values in the drawings according to the present invention.
FIG. 2 is a diagram showing a description example of dimension information in a construction drawing.
FIG. 3 is a diagram showing an example of the division of the dimensions.
[Fig. 4] Dimension informationHavingIt is a figure which shows the example of a construction drawing.
FIG. 5 is a flowchart of a main routine of a process related to recognition of a numerical value of a drawing by the apparatus shown in FIG. 1;
FIG. 6 is a flowchart of a subroutine of a dimension numerical value recognition process in step 7 in FIG. 5;
FIG. 7 is an explanatory diagram of dimension extraction line extraction.
FIG. 8 is an explanatory diagram of a dimension line search.
FIG. 9 is an explanatory diagram of an area for checking which side of a dimension line has a character image.
FIG. 10 is an explanatory diagram of an area for performing character recognition (OCR).
11 is a diagram showing a correspondence between a flow of a subroutine of a dimension area recognition process of
FIG. 12 is an explanatory diagram for explaining the size area recognition process.
FIG. 13 is a flowchart of a subroutine of a dimension auxiliary line extraction process in
FIG. 14 is a diagram showing an example of a building image and a size area in input image data of a construction drawing.
FIG. 15 is a diagram illustrating a horizontal black dot number measurement array in the dimension area of FIG. 9;
FIG. 16 is an enlarged view for explaining a process of recognizing a dimension auxiliary line from the black dot number measurement array.
FIG. 17 is a diagram showing image image data obtained by reading an actual architectural drawing, and black dot number measurement array data in the horizontal and vertical directions for the image data.
18 is a diagram illustrating an example in which a size area is determined using the black dot number measurement array data in the horizontal and vertical directions in FIG.
19 is a diagram in which, for each dimension area in FIG. 18, black dot number measurement array data in the horizontal or vertical direction is created based on image data inside the area.
FIG. 20 is a diagram showing the relationship between the arrangement of the number of black dots measured in the vertical direction in one dimension area and the threshold value for extracting a dimension auxiliary line.
FIG. 21 is an explanatory diagram of an example in which a numerical value is obtained by calculation.
FIG. 22 is a diagram showing a display example of recognized dimension values.
[Explanation of symbols]
1: Overall control unit (CPU) 2: Image reading unit
3: Communication control unit 4: Memory
5: Automatic skew correction unit
6: Dimension position recognition unit 7: Dimension list creation unit
8: Dimension numerical value recognition part 9: Display part
10: operation input unit 11: external storage device
12: Printing device 13: Bus
20: Building image 21: Dimension area
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28541895A JP3571128B2 (en) | 1995-11-01 | 1995-11-01 | Method and apparatus for recognizing dimensions of drawings |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP28541895A JP3571128B2 (en) | 1995-11-01 | 1995-11-01 | Method and apparatus for recognizing dimensions of drawings |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH09128429A JPH09128429A (en) | 1997-05-16 |
| JP3571128B2 true JP3571128B2 (en) | 2004-09-29 |
Family
ID=17691269
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP28541895A Expired - Lifetime JP3571128B2 (en) | 1995-11-01 | 1995-11-01 | Method and apparatus for recognizing dimensions of drawings |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3571128B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9552621B2 (en) | 2014-04-21 | 2017-01-24 | Fuji Xerox Co., Ltd. | Image processing apparatus, image forming apparatus, and computer readable medium |
Families Citing this family (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6766282B1 (en) * | 2000-04-18 | 2004-07-20 | Michael Schettine | Method and apparatus for structure layout |
| JP2003281198A (en) | 2002-03-25 | 2003-10-03 | Honda Motor Co Ltd | Electronic parts list system and electronic parts list creation method |
| JP3824153B2 (en) | 2002-03-26 | 2006-09-20 | 本田技研工業株式会社 | Electronic parts list system |
| US11080545B2 (en) * | 2019-04-25 | 2021-08-03 | International Business Machines Corporation | Optical character recognition support system |
| JP7262296B2 (en) * | 2019-05-09 | 2023-04-21 | 福井コンピュータホールディングス株式会社 | 3D CAD device and 3D CAD program |
| JP6780740B1 (en) * | 2019-05-28 | 2020-11-04 | ダイキン工業株式会社 | Air conditioner placement presentation system |
| WO2020241567A1 (en) * | 2019-05-28 | 2020-12-03 | ダイキン工業株式会社 | System for assisting with installation of air conditioner |
| JP6780739B1 (en) * | 2019-05-28 | 2020-11-04 | ダイキン工業株式会社 | Necessity judgment system for air conditioners |
| JP7799240B2 (en) * | 2021-05-20 | 2026-01-15 | ブラザー工業株式会社 | Inspection device, computer program, and inspection method |
| JP7503085B2 (en) * | 2022-03-08 | 2024-06-19 | キャディ株式会社 | Apparatus, method and program for managing drawing data including raster data |
| KR20240111223A (en) * | 2023-01-09 | 2024-07-16 | 삼성전자주식회사 | Data processing method and device for regenerating a floor plan image |
-
1995
- 1995-11-01 JP JP28541895A patent/JP3571128B2/en not_active Expired - Lifetime
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9552621B2 (en) | 2014-04-21 | 2017-01-24 | Fuji Xerox Co., Ltd. | Image processing apparatus, image forming apparatus, and computer readable medium |
| US10356276B2 (en) | 2014-04-21 | 2019-07-16 | Fuji Xerox Co., Ltd. | Image processing apparatus, image forming apparatus, and computer readable medium |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH09128429A (en) | 1997-05-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8452133B2 (en) | Underline removal apparatus | |
| JPH08293001A (en) | Image processing apparatus, optical character recognition apparatus and methods thereof | |
| JP3571128B2 (en) | Method and apparatus for recognizing dimensions of drawings | |
| JPH11143986A (en) | Processing method and processor of bit map image and storage medium storing image processing program to process bit map image | |
| JPH06301781A (en) | Method and equipment for image transformation for pattern recognition by computer | |
| JP3516541B2 (en) | Method and apparatus for recognizing dimension information of construction drawings | |
| JP3516540B2 (en) | Construction drawing recognition method and recognition device | |
| JP3516502B2 (en) | Construction drawing recognition method and recognition device | |
| JP3607433B2 (en) | Method and apparatus for extracting electrical symbols from construction drawings | |
| JP3595393B2 (en) | Construction drawing recognition method and recognition device | |
| JP3658468B2 (en) | Architectural drawing recognition method and recognition device | |
| JP3961595B2 (en) | Architectural drawing recognition method and recognition device | |
| JP3679241B2 (en) | Construction drawing recognition method and recognition apparatus | |
| JP3678523B2 (en) | Construction drawing recognition method and construction drawing recognition apparatus | |
| JP3648006B2 (en) | Toilet recognition method and construction drawing recognition device from construction drawings | |
| JPH11259550A (en) | Method and apparatus for recognizing construction drawings and computer-readable recording medium storing the program | |
| JP3645404B2 (en) | Method and apparatus for recognizing door from architectural drawing | |
| JP3686214B2 (en) | Construction drawing recognition method and recognition apparatus | |
| JP3545481B2 (en) | Image recognition method and apparatus | |
| JP2000187730A (en) | Method and apparatus for processing image data of construction drawings and computer-readable recording medium recording a control program therefor | |
| JP2803736B2 (en) | Character recognition method | |
| JP3595394B2 (en) | Drawing recognition method and apparatus | |
| JP4406974B2 (en) | Image detection apparatus, image detection method, and recording medium | |
| JP2002157550A (en) | Character recognition device, character recognition method, and recording medium | |
| JP2000194744A (en) | Method and apparatus for processing image data of construction drawings and computer-readable recording medium recording a control program therefor |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20040316 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20040513 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20040608 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20040623 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20070702 Year of fee payment: 3 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080702 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080702 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090702 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100702 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110702 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120702 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120702 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130702 Year of fee payment: 9 |
|
| EXPY | Cancellation because of completion of term |