JPH043274A - Vector piece number reduction processing system - Google Patents

Vector piece number reduction processing system

Info

Publication number
JPH043274A
JPH043274A JP2103158A JP10315890A JPH043274A JP H043274 A JPH043274 A JP H043274A JP 2103158 A JP2103158 A JP 2103158A JP 10315890 A JP10315890 A JP 10315890A JP H043274 A JPH043274 A JP H043274A
Authority
JP
Japan
Prior art keywords
vector
vectors
processing
upper limit
number reduction
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.)
Pending
Application number
JP2103158A
Other languages
Japanese (ja)
Inventor
Reiji Okada
玲二 岡田
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2103158A priority Critical patent/JPH043274A/en
Publication of JPH043274A publication Critical patent/JPH043274A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To execute the processing at a high speed by setting the upper limit number of the final vector piece number obtained by a vector piece number reduction processing, and executing repeatedly the vector piece number reduction processing until the vector piece number obtained by the vector piece number reduction processing becomes below the designated upper limit number. CONSTITUTION:Under the control of a main processor 17, as a parameter at the time of converting image data to a vector, the upper limit number of the vector piece number outputted finally by a vector piece number reduction processing is set 184, and a vector conversion processing 14 for converting the image data to vector data is executed. Subsequently, whether the vector piece number obtained by the vector conversion processing 14 or the post- processing 16 is below the designated upper limit number or not is decided, and when the vector piece number is larger than the designated upper limit number, a prescribed vector piece number reduction processing for decreasing the vector piece number is executed until the vector piece number becomes below the upper limit number. In such a way, the image data can be converted automatically and quickly to the vector data having the prescribed output vector number.

Description

【発明の詳細な説明】 [概要〕 イメージデータをベクトル化して得られるベクトル本数
を低減するベクトル本数低減処理に関し、イメージデー
タを所定の出力ベクトル数を持つベクトルデータに自動
的かつ速やかに変換することを目的して、 図面から読み取られるイメージデータをベクトルデータ
に変換するベクトル化処理により得られるベクトル本数
を低減するベクトル本数低減処理方式において、イメー
ジデータをベクトル化する際のパラメータとして、ベク
トル本数低減処理によって最終的に出力されるベクトル
本数の上限数を設定し、イメージデータをベクトルデー
タに変換するベクトル化処理を実行し、ベクトル化処理
又は後処理により得られるベクトル本数が指定された上
限数以下であるかを判定し、ベクトル本数が指定された
上限数より大きいときは、ベクトル本数が前記上限数以
下となるまでベクトル本数を減らす所定のベクトル本数
低減処理を実行するように構成する。
[Detailed Description of the Invention] [Summary] Regarding vector number reduction processing that reduces the number of vectors obtained by vectorizing image data, the present invention automatically and quickly converts image data into vector data having a predetermined number of output vectors. In a vector number reduction processing method that reduces the number of vectors obtained by vectorization processing that converts image data read from a drawing into vector data, the vector number reduction processing is used as a parameter when vectorizing image data. Set the upper limit for the number of vectors that will be finally output, execute the vectorization process to convert the image data to vector data, and check if the number of vectors obtained by the vectorization process or post-processing is less than or equal to the specified upper limit. If the number of vectors is larger than the specified upper limit number, a predetermined vector number reduction process is executed to reduce the number of vectors until the number of vectors becomes equal to or less than the upper limit number.

〔産業上の利用分野〕[Industrial application field]

本発明は、図面から読み取られるイメージデータをベク
トルデータに変換するベクトル化処理により得られるベ
クトル本数を低減するベクトル本数低減処理方式に関す
る。
The present invention relates to a vector number reduction processing method that reduces the number of vectors obtained by vectorization processing that converts image data read from a drawing into vector data.

(従来の技術〕 CA D (compu ter A 1ded De
s ign 、コンピュータ支援設計)システム、CA
 M (computer AidedManufac
tuaring、コンピュータ支援生産)システム、コ
ンピュータマツピングシステム等の図面入力システムに
おいては、図面入力時の効率化、項精度化を図るために
自動入力システムが活用されている。
(Prior art) CA D (computer A 1ded De
sign, computer-aided design) system, CA
M (computer aided manufac
2. Description of the Related Art In drawing input systems such as tuaring (computer-aided production) systems and computer mapping systems, automatic input systems are utilized to improve efficiency and accuracy when inputting drawings.

この図面自動入力システムでは、入力されたイメージデ
ータは、前処理により2値化処理、画質改善処理、細線
化処理等の各処理がなされた後、図面内容について認識
する図面認識処理が行われる。
In this drawing automatic input system, the input image data is subjected to pre-processing such as binarization processing, image quality improvement processing, line thinning processing, etc., and then drawing recognition processing is performed to recognize the content of the drawing.

図面認識処理では、細線化されたイメージデータが線分
、文字及びシンボルに分離された後、線分についてはベ
クトル化処理がなされ、文字及びシンボルについては、
それぞれの認識処理がなされる。
In drawing recognition processing, thinned image data is separated into line segments, characters, and symbols, and then vectorization processing is performed on the line segments, and vectorization processing is performed on the characters and symbols.
Respective recognition processing is performed.

この図面認識処理は複雑であり、かつ処理結果のデータ
量も膨大であるため、大型又は専用のコンピュータによ
って行われ、メモリも大容量のものが必要であった。
This drawing recognition process is complex and the amount of data resulting from the process is enormous, so it is performed by a large or dedicated computer and requires a large memory capacity.

しかしながら、図面自動入力システムの利用方法として
、入力図面を精密に読み取る以外に、背景図面やレイア
ウト図のように、入力図面の大まかな内容を示す概略図
を読み取るものでよい場合も少なくない。
However, in addition to precisely reading input drawings, automatic drawing input systems can often be used to read schematic diagrams showing the rough contents of input drawings, such as background drawings and layout diagrams.

このような概略図は、データ容量も少なくて済むので、
いわゆるオフィスコンピュータ等の小型コンピュータに
よっても図面入力処理を行うことが可能である。
Such a schematic diagram requires less data, so
Drawing input processing can also be performed using a small computer such as a so-called office computer.

第4図は、このような入力図面の概略図を得るための従
来のイメージデータのベクトル本数低減処理方式を示し
たものである。
FIG. 4 shows a conventional image data vector number reduction processing method for obtaining a schematic diagram of such an input drawing.

第4図において、イメージスキャナ22は、図面21上
の図形(文字も含む)を読み取り、そのイメージデータ
を前処理部23に送る。
In FIG. 4, an image scanner 22 reads figures (including characters) on a drawing 21 and sends the image data to a preprocessing section 23.

前処理部23は、イメージデータを2値化する2値化処
理、2値化イメージデータから各種ノイズを除去する画
質改選処理、イメージデータの特徴を抽出する処理及び
この画質改選された各図形の線幅を狭めて中心線を求め
る細線化処理を行う。
The preprocessing unit 23 performs a binarization process to binarize image data, an image quality selection process to remove various noises from the binarized image data, a process to extract features of the image data, and a process for each figure whose image quality has been changed. Line thinning processing is performed to narrow the line width and find the center line.

ベクトル化処理部24は、前処理部23で細線化された
各図形のイメージデータをベクトルデータに変換するベ
クトル化処理を行う。ベクトル化処理の典型的な例は、
図形を折れ線で近似し、各折れ線の両端の座標データ系
列に変換する処理である。
The vectorization processing unit 24 performs vectorization processing to convert the image data of each figure thinned by the preprocessing unit 23 into vector data. A typical example of vectorization processing is
This is a process of approximating a figure with polygonal lines and converting it into a series of coordinate data at both ends of each polygonal line.

分離処理部25は、公知の各種の方法により、ベクトル
データから文字、シンボル、及び線分の各ベクトルデー
タに分離する処理を行う。文字は、例えば小さな枠領域
内にある短い多数の線分からなる孤立したベクトルデー
タ列という特徴によって分離することができる。また、
シンボルは、例えば各シンボル用のテンプレートとのマ
ツチングをとることにより分離することができる。
The separation processing unit 25 performs a process of separating vector data into character, symbol, and line segment vector data using various known methods. Characters can be separated, for example, by the feature of isolated vector data sequences consisting of a number of short line segments within a small frame area. Also,
Symbols can be separated, for example, by matching with templates for each symbol.

この分離処理により、文字数、シンボル数及び全線分の
ベクトル本数が検出される。
Through this separation process, the number of characters, the number of symbols, and the number of vectors of all line segments are detected.

図形の線分量は多いために、このようにして求められた
ベクトルデータのデータ量は極めて多量なものとなる。
Since the number of line segments in a figure is large, the amount of vector data obtained in this way is extremely large.

しかし、概略図では各図形の微細構造に関するデータは
必要でないので、ベクトル化処理部24で求められた高
精度のベクトルデータを、後処理部26により概略図の
へクトルデータに変換する処理、すなわちベクトル本数
を減らすベクトル本数低減処理が行われる。
However, since the schematic diagram does not require data regarding the fine structure of each figure, the post-processing unit 26 converts the highly accurate vector data obtained by the vectorization processing unit 24 into hector data of the schematic diagram, i.e. Vector number reduction processing is performed to reduce the number of vectors.

この後処理部26で行われるベクトル本数を減らす後処
理として、例えば、第5図(a)に示す直線化法(1)
及び同図(b)に示す直線化法(2)がある。
As a post-processing to reduce the number of vectors performed in the post-processing unit 26, for example, the linearization method (1) shown in FIG. 5(a) is used.
There is also a linearization method (2) shown in FIG.

直線化法(1)は、同図(a)に示すように、2本のベ
クトルa及びbがあるとき、その間の角度θが180度
に近ければ1本のベクトルa′に変換する方法である。
Linearization method (1) is a method of converting two vectors a and b into one vector a' if the angle θ between them is close to 180 degrees, as shown in Figure (a). be.

これにより、2本のベクトルが1本のベクトルに減少さ
れる。パラメータθを180度よりも小さくする程、図
形精度は低下するが、ベクトル本数の減少量は増加する
This reduces two vectors to one vector. As the parameter θ is made smaller than 180 degrees, the graphic accuracy decreases, but the amount of decrease in the number of vectors increases.

直線化法(2)は、同図(b)に示すように、連続した
3本のベクトルa、b及びCを挟む2本の平行線に1及
びに2の幅りが、3本のベクトルの始点から終点までの
距離lに比べて充分に小さいとき、3本のベクトルa、
b及びCをその始点と終点を結ぶ1本の直線a′に変換
する方法である。これにより、3本ベクトルが1本に減
少される。パラメータh/lの値を大きくする程、図形
精度は低下するが、ベクトル本数の減少量は増加する。
Linearization method (2), as shown in the same figure (b), shows that two parallel lines sandwiching three consecutive vectors a, b, and C have a width of 1 and 2, and the width of the three vectors is 1 and 2. When the distance l from the starting point to the ending point is sufficiently small compared to the three vectors a,
This is a method of converting b and C into one straight line a' connecting their starting and ending points. This reduces the three vectors to one. As the value of the parameter h/l increases, the graphic accuracy decreases, but the amount of decrease in the number of vectors increases.

一方、小型コンピュータでは、メモリ容量の関係から、
出力されるベクトルの本数には上限が設定されている。
On the other hand, in small computers, due to memory capacity,
An upper limit is set for the number of vectors to be output.

そこで、操作者は、直線化法(1)のθ及び直線化法(
2)のh/I等のベクトル本数削減処理用の各パラメー
タの値を適宜設定して、後処理部26による後処理を実
行させる。
Therefore, the operator should check the θ of the linearization method (1) and the linearization method (
The value of each parameter for the vector number reduction process such as h/I in 2) is set appropriately, and the post-processing section 26 executes the post-processing.

後処理後のベクトル本数が規定の上限本数よりも多いと
きは、θやh/1等の各パラメータの値を再設定して後
処理を実行する。以下、ベクトル本数が規定の上限本数
よりも少なくなるまで、パラメータの値の修正して後処
理を繰り返し実行する。
When the number of vectors after post-processing is greater than the specified upper limit number, the values of each parameter such as θ and h/1 are reset and post-processing is executed. Thereafter, the parameter values are corrected and post-processing is repeatedly executed until the number of vectors becomes less than the specified upper limit number.

以上のようにして、規定のベクトル本数以下になるよう
に後処理された図形のベクトルデータが得られ、図示し
ないホストコンピュータ等の利用装置に送られる。
In the manner described above, vector data of a figure that has been post-processed so that the number of vectors is equal to or less than a predetermined number of vectors is obtained, and is sent to a utilization device such as a host computer (not shown).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来のイメージデータのベクトル化方式においてベクト
ル本数を減らす場合は、前述のように、ベクトル本数が
規定の上限本数よりも少なくなるまで、ベクトル本数削
減処理用の各パラメータの値の修正してベクトル本数を
低減する後処理を繰り返し実行するようにしていた。
When reducing the number of vectors in the conventional image data vectorization method, as described above, the values of each parameter for vector number reduction processing are corrected until the number of vectors becomes less than the specified upper limit number. Post-processing to reduce the amount of damage was repeatedly executed.

このように後処理を繰り返す毎に、各ベクトル本数低減
処理方式のパラメータをその都度操作員が修正するため
、ベクトル削減の後処理部に多くの時間が掛かるととも
に、操作員の負担が多くなるという問題があった。
Each time post-processing is repeated in this way, the operator must modify the parameters of each vector number reduction processing method, which requires a lot of time in the vector reduction post-processing section and places a heavy burden on the operator. There was a problem.

更に、パラメータの値の修正は操作員が試行錯誤により
行うため、設定に時間が掛かるうえに正確な設定が困難
であることから、後処理の繰り返し回数が多くなりやす
く、後処理を効率化することが困難であるという問題が
あった。
Furthermore, since parameter values are corrected by the operator through trial and error, it takes time to set them up and it is difficult to set them accurately, so post-processing is likely to be repeated many times, making post-processing more efficient. The problem was that it was difficult to

本発明は、イメージデータを所定の出力へクトル数を持
つベクトルデータに自動的かつ速やかに変換することが
できるように改良したイメージデータのベクトル化方式
を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide an improved image data vectorization method that can automatically and quickly convert image data into vector data having a predetermined number of output hectors.

〔課題を解決するための手段〕[Means to solve the problem]

前述の課題を解決するために本発明が採用した手段を、
第1図の原理図を参照して説明する。第1図は、本発明
のベクトル本数低減方式の処理フローチャートを示した
ものである。
The means adopted by the present invention to solve the above-mentioned problems are as follows:
This will be explained with reference to the principle diagram shown in FIG. FIG. 1 shows a processing flowchart of the method for reducing the number of vectors according to the present invention.

ステップSlにおいては、イメージデータをベクトル化
する際のパラメータとして、ベクトル本数低減処理によ
って最終的に出力されるベクトル本数の上限数が設定さ
れる。
In step Sl, the upper limit of the number of vectors to be finally output by the vector number reduction process is set as a parameter when vectorizing the image data.

ステップS2では、イメージデータをベクトルデータに
変換するベクトル化処理が実行される。
In step S2, vectorization processing for converting image data into vector data is executed.

ステップS3では、ベクトル化処理又は後処理により得
られるベクトル数が指定された上限数以下であるかが判
定される。
In step S3, it is determined whether the number of vectors obtained by vectorization processing or post-processing is less than or equal to a specified upper limit number.

ステップS4では、ベクトル数が指定された上限数より
大きいときは、所定のベクトル本数低減方式に従ってベ
クトル本数を減らすためのベクトル本数低減処理が実行
される。このベクトル本数低減処理の具体な方法につい
ては、次の作用に項で説明する。
In step S4, when the number of vectors is larger than the specified upper limit number, a vector number reduction process is executed to reduce the number of vectors according to a predetermined vector number reduction method. A specific method for this vector number reduction process will be explained in the next section.

〔作用〕[Effect]

本発明の作用を、第2図を参照し、その処理ステップに
従って説明する。第2図は、本発明で使用されるベクト
ル本数低減処理方式の例を示したものである。なお、図
面からイメージスキャナ等により読み取られたイメージ
データは、図示しない前処理により、細線化処理が実行
済みであるとする。
The operation of the present invention will be explained according to its processing steps with reference to FIG. FIG. 2 shows an example of the vector number reduction processing method used in the present invention. It is assumed that the image data read from the drawing by an image scanner or the like has been subjected to line thinning processing by preprocessing (not shown).

(1)  ステップS1 ベクトル化処理に必要な各種パラメータが設定され、そ
のパラメータの一つとして、ベクトル化処理によって最
終的に出力されるベクトル本数の上限数が設定される。
(1) Step S1 Various parameters necessary for the vectorization process are set, and as one of the parameters, an upper limit number of vectors to be finally output by the vectorization process is set.

このベクトル本数の上限数は、必要とする図面の読み取
り精度や図面入力システムのメモリ容量等によって規定
される。
The upper limit of the number of vectors is determined by the required drawing reading accuracy, the memory capacity of the drawing input system, and the like.

(2)ステップS2 細線化されたイメージデータをベクトルデータに変換す
るベクトル化処理が、従来と同様にして実行される。こ
の段階ではベクトル本数低減処理は実行されていないの
で、そのベクトル本数は極めて大きい値になっている。
(2) Step S2 Vectorization processing for converting the thinned image data into vector data is performed in the same manner as in the past. At this stage, the vector number reduction process has not been executed, so the number of vectors is an extremely large value.

(3)ステップS。(3) Step S.

ベクトル化処理により得られるベクトル数が指定された
上限数以下であるかが判定される。
It is determined whether the number of vectors obtained by the vectorization process is less than or equal to a specified upper limit number.

(4)ステップS4 ベクトル数が指定された上限数より大きいときは、所定
のベクトル本数低減処理方式に従ってベクトル本数を減
らす後処理が実行される。
(4) Step S4 When the number of vectors is larger than the specified upper limit number, post-processing is performed to reduce the number of vectors according to a predetermined vector number reduction processing method.

第2図は、本発明で使用されるベクトル本数低減処理方
式の例を示したものである。
FIG. 2 shows an example of the vector number reduction processing method used in the present invention.

第2図(a)は、第5図(a)で説明したと同じ直線化
法(1)である。図示のように、2本のベクトルa及び
bがあるとき、その間の角度θが180度に近ければ1
本のベクトルa′に変換する方法である。これにより、
2本のベクトルが1本のベクトルに減少される。パラメ
ータθを180度よりも小さくする程、図形精度は低下
するが、ベクトル本数の減少量は増加する。
FIG. 2(a) shows the same linearization method (1) as explained in FIG. 5(a). As shown in the figure, when there are two vectors a and b, if the angle θ between them is close to 180 degrees, then 1
This is a method of converting into a book vector a'. This results in
Two vectors are reduced to one vector. As the parameter θ is made smaller than 180 degrees, the graphic accuracy decreases, but the amount of decrease in the number of vectors increases.

第2図0))は、第5図Q:1)で説明したと同じ直線
化法(2)である。図示のように、連続した3本のベク
トルa、b及びCを挟む2本の平行線k及びに2の幅り
が、3本のベクトルの始点から終点までの距離1に比べ
て充分に小さいとき、3本のヘクトルa、b及びCをそ
の始点と終点を結ぶ1本の直線a′に変換する方法であ
る。
FIG. 2 0)) is the same linearization method (2) as explained in FIG. 5 Q:1). As shown in the figure, the widths of two parallel lines k and 2 that sandwich three consecutive vectors a, b, and C are sufficiently smaller than the distance 1 from the starting point to the ending point of the three vectors. This is a method of converting three hectares a, b, and C into one straight line a' connecting the starting point and the ending point.

これにより、3本ベクトルが1本に減少される。This reduces the three vectors to one.

パラメータh/lの値を大きくする程、図形精度は低下
するが、ベクトル本数の減少量は増加する。
As the value of the parameter h/l increases, the graphic accuracy decreases, but the amount of decrease in the number of vectors increases.

第2図(c)は、短ベクトル削除法を示したものである
。この方法は図示のベクトル51〜S3のように、片側
の端点がベクトルaに接し、かつその長さが所定長より
短くてノイズと考えられるものを削除して、1本のベク
トルa′に変換する方法である。
FIG. 2(c) shows the short vector deletion method. This method deletes vectors like vectors 51 to S3 shown in the figure, where one end point is in contact with vector a and whose length is shorter than a predetermined length and is considered to be noise, and converts it into a single vector a'. This is the way to do it.

これにより、前述の各直線化法よりも一般に多くのベク
トル本数を減少することができる。
As a result, the number of vectors can generally be reduced more than each of the linearization methods described above.

この短ベクトル削除法ではノイズと考えるベクトルの長
さWがパラメータであり、パラメータWの値を大きくす
る程、図形精度は低下するが、ベクトル本数の減少量は
増加する。
In this short vector deletion method, the length W of vectors considered as noise is a parameter, and as the value of the parameter W increases, the graphic accuracy decreases, but the amount of reduction in the number of vectors increases.

第2図(d)は、置き換え法(1)を示したものである
。この方法は、図示のように、文字を構成するベクトル
の集合を文字であることを示すシンボルQに置き換える
方法である。ただし、この方法は、ベクトル化のパラメ
ータの中に「文字認識は行わず、文字候補はシンボルに
置き換えるJという指示がある場合に限られるものとす
る。この置き換え法(1)は、文字情報は消失するが、
前述の直線化法や短ベクトル削除法よりも−aに多くの
ベクトル本数を減少することができる。
FIG. 2(d) shows replacement method (1). In this method, as shown in the figure, a set of vectors forming a character is replaced with a symbol Q indicating that the character is a character. However, this method is limited to cases where there is an instruction in the vectorization parameters, ``Character recognition is not performed and character candidates are replaced with symbols.'' This replacement method (1) It disappears, but
The number of vectors can be reduced to -a more than the linearization method and short vector deletion method described above.

第2図(e)は、置き換え法(2)を示したものである
。この方法は、図示のように、塗り潰しの属性を持った
ベクトルの集合を塗り潰し領域の外形を示すベクトルa
 −Cだけをシンボルとして残し、その内部のベクトル
を削除する方法である。この方法も置き換え法(1)と
同様に、パラメータの中に「塗り潰し領域内部のベクト
ルを削除する」という指示かある場合にだけ実行される
FIG. 2(e) shows replacement method (2). As shown in the figure, this method converts a set of vectors with the fill attribute into a vector a indicating the outline of the fill area.
This method leaves only -C as a symbol and deletes the vector inside it. Similar to replacement method (1), this method is executed only when there is an instruction to "delete vectors inside the filled area" in the parameters.

塗り潰しの属性を持った三角形の図形を細線化処理を行
うと、同図(e)の上側に例示するように、内部に多数
のベクトルを含む複雑なベクトル線図になる。したがっ
て、このようなベクトル線図をその外形だけのベクトル
データにすることにより、前述の各方法よりも一般に多
くのベクトル本数を減少することが可能である。
When a triangular figure with a fill attribute is subjected to line thinning processing, it becomes a complex vector line diagram containing many vectors, as illustrated in the upper part of the figure (e). Therefore, by converting such a vector diagram into vector data of only its outline, it is generally possible to reduce the number of vectors more than in each of the above-mentioned methods.

この第2図で例示した各ベクトル本数低減処理をどのよ
うな順番で実行するかは、ベクトル化処理によって得ら
れるベクトル本数と設定されたベクトル本数の上限数の
差、必要とする図形精度、読み取り対象図面におけるノ
イズの多寡、文字情報の重要度等に対応して、実験や計
算等により予め求められている。
The order in which the vector number reduction processes illustrated in Figure 2 are executed depends on the difference between the number of vectors obtained by the vectorization process and the set upper limit of the number of vectors, the required graphic accuracy, and the reading It is determined in advance through experiments, calculations, etc., depending on the amount of noise in the target drawing, the importance of character information, etc.

例えば、ベクトル化処理によって得られるベクトル本数
と設定されたベクトル本数の上限数の差が少ない場合は
、直線化法(1)及び(2)を順次実行するようにする
。これにより、良好な精度を保持しつつベクトル本数を
低減することができる。
For example, if the difference between the number of vectors obtained by the vectorization process and the set upper limit of the number of vectors is small, linearization methods (1) and (2) are sequentially executed. This makes it possible to reduce the number of vectors while maintaining good accuracy.

また、ベクトル化処理によって得られるベクトル本数と
設定されたベクトル本数の上限数の差が大きい場合は、
短ベクトル削除法、置き換え法(1)及び(2)を先に
実行し、ベクトル本数か上限数に近づいたとき、直線化
法(1)及び(2)を実行するようにする。
Also, if the difference between the number of vectors obtained by vectorization processing and the upper limit of the set number of vectors is large,
The short vector deletion method and replacement methods (1) and (2) are executed first, and when the number of vectors approaches the upper limit, the linearization methods (1) and (2) are executed.

(5)ベクトル本数低減処理が一回終了する毎に、ステ
ップS3に戻ってベクトル本数低減処理後のベクトル本
数と上限数を比較し、前者が後者の上限数より大きいと
きは、前述のステップS4のベクトル本数低減処理を再
び実行する。
(5) Every time the vector number reduction process is completed, the process returns to step S3 to compare the number of vectors after the vector number reduction process with the upper limit number, and if the former is greater than the latter upper limit number, step S4 described above The vector number reduction process is executed again.

以下、同様にして、ベクトル本数低減処理により得られ
るベクトル本数が指定された上限数以下となるまで、前
記ステップS、及びS4のベクトル本数低減処理を繰り
返し実行する。
Thereafter, in the same manner, the vector number reduction processes in steps S and S4 are repeatedly executed until the number of vectors obtained by the vector number reduction process becomes equal to or less than the specified upper limit number.

ベクトル本数低減処理後のベクトル本数が、指定上限数
以下になったときに、ベクトル本数低減処理を終了し、
図示しないホストコンピュータ等に出力する。
When the number of vectors after the vector number reduction process becomes less than or equal to the specified upper limit, the vector number reduction process is terminated.
The data is output to a host computer (not shown), etc.

以上のように、ベクトル本数低減処理によって得られる
最終のベクトル本数の上限数を設定し、ベクトル本数低
減処理により得られるベクトル本数が指定された上限数
以下となるまで、ベクトル本数低減処理を繰り返し実行
するようにしたので、指定された上限数までベクトル本
数を低減処理が自動的に実行され、ベクトル本数低減処
理を高速化することができる。
As described above, the upper limit of the final number of vectors obtained by the vector number reduction process is set, and the vector number reduction process is repeatedly executed until the number of vectors obtained by the vector number reduction process becomes less than or equal to the specified upper limit. As a result, the process of reducing the number of vectors to the specified upper limit is automatically executed, and the process of reducing the number of vectors can be speeded up.

また、操作員がベクトル本数低減処理のための各パラメ
ータを設定したり、修正したりする必要なくなるので、
操作員の負担を低減し、作業能率を向上させることがで
きる。
In addition, there is no need for the operator to set or modify each parameter for vector number reduction processing.
It is possible to reduce the burden on the operator and improve work efficiency.

〔実施例〕〔Example〕

本発明の一実施例を、第2図及び第3図を参照して説明
する。第3図は、本発明の一実施例の実施に使用する図
面自動入力システムを示したものである。
An embodiment of the present invention will be described with reference to FIGS. 2 and 3. FIG. 3 shows an automatic drawing input system used to implement an embodiment of the present invention.

(A)  図面自動入力システムの構成第3図において
、12はイメージスキャナであり、図面11上の図形(
文字も含む)を読み取る処理を行う。
(A) Structure of automatic drawing input system In Fig. 3, 12 is an image scanner, and the figure (
(including characters).

13は前処理部であり、イメージデータを2値化する2
値化処理、2値化イメージデータから各種ノイズを除去
する画質改選処理、イメージデータの特徴を抽出する処
理及びこの画質改選された各図形の線幅を狭めて中心線
を求める細線化処理を行う。
13 is a preprocessing unit, which binarizes image data;
Value conversion processing, image quality selection processing to remove various noises from binarized image data, processing to extract features of the image data, and line thinning processing to narrow the line width of each figure whose image quality has been improved to obtain a center line. .

14はベクトル化処理部であり、前処理部13で細線化
された各図形のイメージデータをベクトルデータに変換
するベクトル化処理を行う。
A vectorization processing section 14 performs vectorization processing to convert the image data of each figure thinned by the preprocessing section 13 into vector data.

15は分離処理部であり、ベクトルデータを文字、シン
ボル、塗り潰し図形及び線分の各−・クトルデータに分
離する処理を行う。
Reference numeral 15 denotes a separation processing section, which performs a process of separating vector data into vector data of characters, symbols, filled figures, and line segments.

16は後処理部であり、ヘクトル本数を指定された上限
数以下に低減するためのベクトル本数低減処理を行う。
A post-processing unit 16 performs a vector number reduction process to reduce the number of hectors to a specified upper limit number or less.

後処理部16において、161は第1直線化処理部であ
り、直線化法(1)によるベクトル本数低減処理を行う
。162は第2直線化処理部であり、直線化法(2)に
よるベクトル本数低減処理を行う。
In the post-processing section 16, 161 is a first linearization processing section, which performs vector number reduction processing using the linearization method (1). Reference numeral 162 denotes a second linearization processing unit, which performs vector number reduction processing using the linearization method (2).

163は短ベクトル削除処理部であり、短ヘクトル削除
法によるベクトル本数低減処理を行う。164は第1置
き換え処理部であり、置き換え法(1)によるベクトル
本数低減処理を行う。165は第2置き換え処理部であ
り、置き換え法(2)によるベクトル本数低減処理を行
う。
A short vector deletion processing unit 163 performs vector number reduction processing using a short hector deletion method. A first replacement processing unit 164 performs vector number reduction processing using replacement method (1). Reference numeral 165 denotes a second replacement processing unit, which performs vector number reduction processing using replacement method (2).

17は主プロセンサであり、前処理部13、ベクトル化
処理部14、分離処理部15及び後処理部16の行う各
処理を制御する。
17 is a main processor, which controls each process performed by the pre-processing section 13, the vectorization processing section 14, the separation processing section 15, and the post-processing section 16.

18はメモリ部であり、前処理部13、ベクトル化処理
部14、分離処理部15、後処理部16及び主プロセツ
サ17の行う各処理を制御する制御プログラムが格納さ
れる制御プログラム領域181、ベクトルデータ等の各
データを格納するデータ領域182、ベクトル化処理及
び後処理用の各種パラメータが格納されるパラメータ領
域183、ベクトルか処理及びベクトル本数低減処理に
より得られるベクトル本数が格納されるカウンタ領域1
84、各部の処理に処理に使用する各作業領域185等
が設けられている。
Reference numeral 18 denotes a memory unit, which includes a control program area 181 in which control programs for controlling each process performed by the preprocessing unit 13, vectorization processing unit 14, separation processing unit 15, postprocessing unit 16, and main processor 17 are stored; A data area 182 that stores various data such as data, a parameter area 183 that stores various parameters for vectorization processing and post-processing, and a counter area 1 that stores the number of vectors obtained by vector processing and vector number reduction processing.
84, each work area 185 used for processing each part is provided.

(B)  実施例の動作 第3図の動作を、第2図を参照して、その動作順に従っ
て説明する。なお、各部においてなされる以下の各動作
は、主プロセツサ17の制御のもとで、メモリ部1日の
制御プログラム領域181にある制御プログラムによっ
て実行されるが、特に必要でない限りそのことに言及し
ない。
(B) Operation of the Embodiment The operation shown in FIG. 3 will be explained in the order of operation with reference to FIG. 2. The following operations performed in each section are executed by the control program stored in the control program area 181 of the memory section 1 under the control of the main processor 17, but this will not be mentioned unless it is particularly necessary. .

(1)  図示しないホストコンピュータより、ベクト
ル化処理及びベクトル本数低減処理を行うために必要な
各種パラメータが指定され、各パラメータは、メモリ部
18のパラメータ領域183に格納される。ベクトル本
数低減処理用のパラメータとして、直線化法(1)及び
(2)、短ヘクトル削除法、置き換え法(1)及び(2
)の各パラメータが指定される。
(1) A host computer (not shown) specifies various parameters necessary for vectorization processing and vector number reduction processing, and each parameter is stored in the parameter area 183 of the memory unit 18. Parameters for vector number reduction processing include linearization methods (1) and (2), short hector deletion method, and replacement methods (1) and (2).
) are specified.

また、ベクトル本数の上限数が、メモリ部18のカウン
タ領域184に格納される。
Further, the upper limit number of vectors is stored in the counter area 184 of the memory unit 18.

(2)イメージスキャナ12は、図面11上の図形(文
字も含む)を読み取り、そのイメージデータをメモリ部
18のデータ領域182に格納する。
(2) The image scanner 12 reads figures (including characters) on the drawing 11 and stores the image data in the data area 182 of the memory unit 18.

(3)  前処理部13は、データ領域182よりイメ
ージデータを取り出し、このイメージデータを2値化す
る2値化処理、2値化イメージデータから各種ノイズを
除去する画質改選処理、イメージデータの特徴を抽出す
る処理及びこの画質改選された各図形の線幅を狭めて中
心線を求める細線化処理を行う。
(3) The preprocessing unit 13 extracts image data from the data area 182, performs a binarization process to binarize the image data, an image quality selection process to remove various noises from the binarized image data, and features of the image data. Then, a line thinning process is performed to narrow the line width of each figure whose image quality has been improved to obtain a center line.

この細線化処理されたイメージデータは、メモリ部18
のデータ領域182に格納される。
This thinned image data is stored in the memory section 18.
It is stored in the data area 182 of .

(4)ベクトル化処理部14は、前処理部13で細線化
された各図形のイメージデータをベクトルデータに変換
するベクトル化処理を行い、求められたベクトルデータ
をメモリ部18のデータ領域182に格納する。
(4) The vectorization processing unit 14 performs vectorization processing to convert the image data of each figure thinned by the preprocessing unit 13 into vector data, and stores the obtained vector data in the data area 182 of the memory unit 18. Store.

(5)分離処理部15は、データ領域182よりベクト
ルデータを取り出し、公知の各種の方法により、ベクト
ルデータから文字、シンボル、線分及び塗り潰し図形の
の各ベクトルデータに分離する処理を行う。文字は、例
えば小さな枠領域内にある短い多数の線分からなる孤立
したベクトルデータ列という特徴によって分離される。
(5) The separation processing unit 15 extracts vector data from the data area 182 and performs a process of separating the vector data into vector data of characters, symbols, line segments, and filled figures using various known methods. Characters are separated by features such as isolated vector data sequences consisting of a number of short line segments within a small frame area, for example.

シンボルは、例えば各シンボル用のテンプレートとのマ
ツチングをとることにより分離される。
The symbols are separated, for example, by matching with templates for each symbol.

塗り潰し図形は、例えば文字枠よりも大きくかつ不規則
な領域内にある、短い多数の線分からなる孤立したベク
トルデータ列という特徴によって分離される。
Filled shapes are separated by the characteristic of isolated vector data sequences consisting of a number of short line segments, for example larger than a character frame and within an irregular area.

この分離処理により、文字数、シンボル数及び塗り潰し
図形数が及び全線分のベクトル本数が検出される。
Through this separation process, the number of characters, symbols, and filled figures, as well as the number of vectors of all line segments, are detected.

(6)主プロセツサ17は、分離処理部15で分離され
た文字数、シンボル数及び塗り潰し図形数が及び全線分
のベクトル本数とメモリ部18のカウンタ領域184に
セットされたベクトル本数に基づいて、制御プログラム
領域181にあるベクトル本数低減処理プログラムを選
択する。
(6) The main processor 17 performs control based on the number of characters, symbols, and filled figures separated by the separation processing unit 15, the number of vectors for all line segments, and the number of vectors set in the counter area 184 of the memory unit 18. Select the vector number reduction processing program in the program area 181.

次いで、主プロセツサ17は、そのベクトル本数低減処
理プログラムにしたがって、後処理部16の第1直線化
処理部161、第2直線化処理部162、類ベクトル削
減処理部163、第1置き換え処理部164及び第2置
き換え処理部165の一つに指示して、第2図で説明し
た方法によりそのベクトル本数低減処理を実行させる。
Next, the main processor 17 executes the first linearization processing section 161, second linearization processing section 162, similar vector reduction processing section 163, and first replacement processing section 164 of the post-processing section 16 according to the vector number reduction processing program. and instructs one of the second replacement processing units 165 to execute the vector number reduction process using the method explained in FIG.

(7)ベクトル本数低減処理が一回終了する毎に、主プ
ロセツサ17は、ベクトル本数低減処理後のベクトル本
数とカウンタ領域184にある上限数を比較し、前者が
後者の上限数より大きいときは、前述ベクトル本数低減
処理プログラムに従って、次のベクトル本数低減処理を
再び実行する。
(7) Each time the vector number reduction process is completed, the main processor 17 compares the number of vectors after the vector number reduction process with the upper limit number in the counter area 184, and if the former is larger than the latter upper limit, , the next vector number reduction process is executed again according to the vector number reduction process program described above.

以下、同様にして、ベクトル本数低減処理により得られ
るベクトル本数が指定された上限数以下となるまで、前
述のベクトル本数低減処理を繰り返し実行させる。
Thereafter, in the same manner, the above-described vector number reduction process is repeatedly executed until the number of vectors obtained by the vector number reduction process becomes equal to or less than the specified upper limit number.

ベクトル本数低減処理後のベクトル本数が、指定上限数
以下になったときに、ベクトル本数低減処理を終了し、
図示しないホストコンピュータ等に出力する。
When the number of vectors after the vector number reduction process becomes less than or equal to the specified upper limit, the vector number reduction process is terminated.
The data is output to a host computer (not shown), etc.

以上本発明の一実施例について説明したが、本発明はこ
の実施例に限定されるものではなく、その発明の主旨に
従った種々の変形が可能である。
Although one embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and various modifications can be made in accordance with the gist of the invention.

例えば、ベクトル本数低減処理方式として、第2図で示
し方式以外の公知の各種のベクトル本数低減処理方式を
用いることができる。
For example, as the vector number reduction processing method, various known vector number reduction processing methods other than the method shown in FIG. 2 can be used.

〔効果〕〔effect〕

以上説明したように、本発明によれば、次の諸効果が得
られる。
As explained above, according to the present invention, the following effects can be obtained.

(1)  ベクトル本数低減処理によって得られる最終
のベクトル本数の上限数を設定し、ベクトル本数低減処
理により得られるベクトル本数が指定された上限数以下
となるまで、ベクトル本数低減処理を繰り返し実行する
ようにしたので、指定された上限数までベクトル本数を
低減処理が自動的に実行され、ベクトル本数低減処理処
理を高速化することができる。
(1) Set the upper limit of the final number of vectors obtained by the vector number reduction process, and repeat the vector number reduction process until the number of vectors obtained by the vector number reduction process becomes less than or equal to the specified upper limit. Therefore, the process of reducing the number of vectors is automatically executed to the specified upper limit, and the process of reducing the number of vectors can be speeded up.

(2)操作員がベクトル本数低減処理のための各パラメ
ータを設定したり、修正したりする必要がなくなったの
で、操作員の負担を低減し、作業能率を向上させること
ができる。
(2) Since the operator no longer needs to set or modify each parameter for vector number reduction processing, the burden on the operator can be reduced and work efficiency can be improved.

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

第1図は本発明の原理図、 第2図は本発明のベクトル本数低減処理方式の説明図、 第3図は本発明の一実施例の実施に使用する図面入力シ
ステムの説明図、 第4図は従来の図面入力システムの説明図、第5図は従
来のベクトル本数低減処理方式の説明図である。 第3図において、 11・・・図面、12・・・イメージスキャナ、13・
・・前処理部、14・・・ベクトル化処理部、15・・
・分離処理部、16・・・後処理部、17・・・主ブロ
セ・ンサ、18・・・メモリ部。
FIG. 1 is a diagram of the principle of the present invention. FIG. 2 is an explanatory diagram of the vector number reduction processing method of the present invention. FIG. 3 is an explanatory diagram of a drawing input system used to implement an embodiment of the present invention. The figure is an explanatory diagram of a conventional drawing input system, and FIG. 5 is an explanatory diagram of a conventional vector number reduction processing method. In FIG. 3, 11... drawing, 12... image scanner, 13...
... Preprocessing unit, 14... Vectorization processing unit, 15...
- Separation processing unit, 16... Post-processing unit, 17... Main processor, 18... Memory unit.

Claims (2)

【特許請求の範囲】[Claims] (1)図面から読み取られるイメージデータをベクトル
データに変換するベクトル化処理により得られるベクト
ル本数を低減するベクトル本数低減処理方式において、 (a)イメージデータをベクトル化する際のパラメータ
として、ベクトル本数低減処理によって最終的に出力さ
れるベクトル本数の上限数を設定し、 (b)イメージデータをベクトルデータに変換するベク
トル化処理を実行し、 (c)ベクトル化処理又は後処理により得られるベクト
ル本数が指定された上限数以下であるかを判定し、 (d)ベクトル本数が指定された上限数より大きいとき
は、ベクトル本数が前記上限数以下となるまでベクトル
本数を減らす所定のベクトル本数低減処理を実行する、 ことを特徴とするベクトル本数低減処理方式。
(1) In a vector number reduction processing method that reduces the number of vectors obtained by vectorization processing that converts image data read from a drawing into vector data, (a) Vector number reduction is used as a parameter when vectorizing image data. (b) Execute vectorization processing to convert image data into vector data; (c) Set the upper limit of the number of vectors that will be finally output by the processing; (d) If the number of vectors is greater than the specified upper limit, perform a predetermined vector number reduction process to reduce the number of vectors until the number of vectors becomes equal to or less than the upper limit. A vector number reduction processing method characterized by executing the following.
(2)ベクトル本数低減処理方式が、複数の直線を単一
の直線に変換する直線化法、ノイズと見られる短ベクト
ルを削除する短ベクトル削除法、文字又は塗り潰し図形
を所定のシンボルに置き換える置き換え法のいずれか一
つ又はそれらのいずれかの組合せであることを特徴とす
る請求項(1)記載のベクトル本数低減処理方式。
(2) Vector number reduction processing methods include a linearization method that converts multiple straight lines into a single straight line, a short vector deletion method that deletes short vectors that are seen as noise, and a replacement that replaces characters or filled figures with predetermined symbols. 2. The vector number reduction processing method according to claim 1, wherein the vector number reduction processing method is any one of the methods or a combination thereof.
JP2103158A 1990-04-20 1990-04-20 Vector piece number reduction processing system Pending JPH043274A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2103158A JPH043274A (en) 1990-04-20 1990-04-20 Vector piece number reduction processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2103158A JPH043274A (en) 1990-04-20 1990-04-20 Vector piece number reduction processing system

Publications (1)

Publication Number Publication Date
JPH043274A true JPH043274A (en) 1992-01-08

Family

ID=14346698

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2103158A Pending JPH043274A (en) 1990-04-20 1990-04-20 Vector piece number reduction processing system

Country Status (1)

Country Link
JP (1) JPH043274A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100348710B1 (en) * 2000-04-17 2002-08-13 한국기계연구원 Modular multi-pass multi-row flat tube evaporator

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100348710B1 (en) * 2000-04-17 2002-08-13 한국기계연구원 Modular multi-pass multi-row flat tube evaporator

Similar Documents

Publication Publication Date Title
US5923782A (en) System for detecting and identifying substantially linear horizontal and vertical lines of engineering drawings
JP2542947B2 (en) Image processing device
JPH043274A (en) Vector piece number reduction processing system
JPH07200735A (en) Graphic recognition device
JPH05225394A (en) Candidate-character classifying method for character recognizing system
CN113924603A (en) Method and system for using facial component specific local refinement for facial landmark detection
JP2910344B2 (en) Image processing method
JPH05303644A (en) Grahic recognition method for picture processor
JP2570866B2 (en) Pattern normalizer
JP2675303B2 (en) Character recognition method
JP2683026B2 (en) Line figure vectorization device
JP4089924B2 (en) Image processing method and apparatus
JP3078038B2 (en) Automatic drawing input system and method
JPH0589190A (en) Drawing information checking system
JPH0434653A (en) Drawing processor
JPS622382A (en) Feature extracting devie for pattern
JP2867650B2 (en) Symbol candidate area detection method
JP2740506B2 (en) Image recognition method
JPS6199461A (en) Processing method of image data
JP2935331B2 (en) Figure recognition device
JPH0773327A (en) Broken line/chain line recognizing method for automatic drawing recognizing device
JP2614356B2 (en) Closed figure extraction method
JP3582143B2 (en) House recognition method in map input system
JPH034953B2 (en)
JPH0420221B2 (en)