JPS60132280A - Straight line/curve data separating device - Google Patents

Straight line/curve data separating device

Info

Publication number
JPS60132280A
JPS60132280A JP58240271A JP24027183A JPS60132280A JP S60132280 A JPS60132280 A JP S60132280A JP 58240271 A JP58240271 A JP 58240271A JP 24027183 A JP24027183 A JP 24027183A JP S60132280 A JPS60132280 A JP S60132280A
Authority
JP
Japan
Prior art keywords
vector
straight line
dot
curve
train
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
JP58240271A
Other languages
Japanese (ja)
Inventor
Kuniaki Konishi
邦明 小西
Yuji Ito
裕二 伊藤
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP58240271A priority Critical patent/JPS60132280A/en
Publication of JPS60132280A publication Critical patent/JPS60132280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To increase a processing speed by converting a dot train to a vector, deriving each vector length of a vector train, and discriminating and separating the dot train to a linear or curve data in accordance with whether the vector length exceeds a parescribed threshold level or not. CONSTITUTION:A vector converting circuit 12c is provieded with a prescribed allowable range on both sides of a straight line for connecting the start point and the end point of a dot train, checks whether each point of the dot train is contained in this range or not, and sets the start point and the end points of the dot train to the start point and the end point of a vector in case all the points are within this range. On the other hand, in case a dot train which is not contained in said allowable range exists, the same processing is executed with regard to each dot train which has divided its dot train into two by the middle point, the processing is repeated until all the points of the dot train are contained in the allowable range, and in case all the points are contained in the allowable range, its allowable range is set as one vector. Subsequently, each vector length is derived by a vector length operating circuit 12d, and thereafter, when it is decided by a deciding circuit 12e that it exceeds a prescribed thershold level (t), the vector train concerned is supplied as a linear proposed example to a straight line recognizing device 14.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は直線/曲線データ分離装置、特に直線図形及び
曲線図形の混在した図形から直線データ。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention relates to a straight line/curve data separation device, particularly for separating straight line data from figures containing a mixture of straight lines and curved figures.

曲線データを分離する直線/曲線データ分離装置に関す
るものである。
The present invention relates to a straight line/curve data separation device that separates curve data.

従来技術 直線図形及び曲線図形の混在した図形から直線。Conventional technology Straight lines from shapes that are a mixture of straight and curved shapes.

曲線をそれぞれ認識分離する直線/曲線データ認識装置
が周知であり、従来の直線/曲線データ認識装置として
は、まず全ての線図形から直線認識装置で直線として認
識しその後曲線認識装置で曲線として認識するもの、あ
るいは逆に、まず全ての線図形から曲線認識装置で曲線
として認識しその後直線認識装置で直線として認識する
ものが用いられている。しかしなが′ら、このような従
来装置においては、直線認識装置及び曲線認識装置での
処理負担が大きくなり、処理速度が遅く、効率が低いと
いう問題があった。そこで、処理速度を速めるため、直
線らしき図形と曲線らしき図形とを予め分離する直線/
曲線データ分離装置が提案されており、直線/曲線デー
タ分離装置を使用した場合には、該装置により直線候補
1曲線候補を予め分離しその後直線認識装置1曲線認識
装置での処理が行われるので、処理速度を速めることが
可能となる。
A straight line/curve data recognition device that recognizes and separates each curve is well known. Conventional straight line/curve data recognition devices first recognize all line shapes as straight lines with a straight line recognition device, and then recognize them as curves with a curve recognition device. Or, conversely, a curve recognition device recognizes all line figures as curves, and then a straight line recognition device recognizes them as straight lines. However, in such conventional devices, there has been a problem that the processing load on the straight line recognition device and the curve recognition device is large, the processing speed is slow, and the efficiency is low. Therefore, in order to speed up the processing speed, a straight line /
A curve data separation device has been proposed, and when a straight line/curve data separation device is used, one straight line candidate and one curve candidate are separated in advance by the device, and then processing is performed by a straight line recognition device and a curve recognition device. , it becomes possible to speed up the processing speed.

第1図には、直線/曲線データδ忍識装置の概略構成が
示されている。
FIG. 1 shows a schematic configuration of a straight line/curve data δ tracking device.

なお、線図形の人力信号は、予め光電変換。Note that the human input signal in the form of a line figure is photoelectrically converted in advance.

Δ/D変換、フィルタ、2進化、芯線又は輪郭の抽出、
追跡、及びデジタルアーク化等の各処理作用を受けた後
、第1図の認識装置に供給される。
Δ/D conversion, filter, binary evolution, core line or contour extraction,
After being subjected to various processing operations such as tracking and digital arcing, it is supplied to the recognition device shown in FIG.

すなわち、線図形は、通常の場合、芯線又は輪郭の抽出
、追跡により16ドツト/1lllllの黒画素とされ
、更に芯線を細線化するために、デジタルアーク化が行
われる。ここで、デジタルアークとは、端点、交差点り
外の各点の8近傍に唯?個の黒画素のみのあるドツト列
をいう。そして、第2Δ図。
That is, in a normal case, a line figure is made into 16 dots/1llllll black pixels by extraction and tracing of skeleton lines or contours, and then digital arcing is performed to further thin the skeleton lines. Here, a digital arc is defined as only 8 points in the vicinity of each point outside the end points and intersections. A dot row with only black pixels. And Fig. 2 Δ.

第2B図には、それぞれ、直線S1曲線Cをデジタルア
ーク化したドツト列が示され、第2Δ図。
Fig. 2B shows a dot array obtained by converting the straight line S1 curve C into a digital arc, and Fig. 2Δ.

第2B図において、端点以外の各点は、その8近傍に唯
2個の黒画素を有しており、本図から、デジタル了−り
化により、ドツト列は座標の点列となることが理解され
る。なお、通常の場合、図形中には複数本のドツト列が
存在するが、第1図装置では、1本のドツト列ごと、す
なわちドツト列単位で処理が行われる。
In Figure 2B, each point other than the end points has only two black pixels in its 8 neighborhoods, and from this figure it can be seen that with digitalization, the dot array becomes a coordinate dot array. be understood. Normally, there are a plurality of dot rows in a figure, but in the apparatus shown in FIG. 1, processing is performed for each dot row, that is, for each dot row.

第1図において、デジタルアーク化されたドツト列は、
ドツト列データ記憶装置10に記憶され、該記1意装置
10のドツト列データはドツト列単位で直線/曲線デー
タ分離装置12に供給される。
In Figure 1, the dot row converted into a digital arc is
The dot string data is stored in a dot string data storage device 10, and the dot string data of the memory device 10 is supplied to a straight line/curve data separation device 12 in units of dot strings.

この直線/曲線データ分離装置12は、前述したように
、ドツト列から直線らしき図形と曲線らしき図形とを予
め分離する装置であり、該分離装置12により、ドツト
列は直線候補あるいは曲線候補に弁別分離され、直線候
補、曲線候補は、それぞれ直線δ忍識装置14、曲線認
識装置16に供給される。そして、直線候補2曲線候補
は、それぞれ直線認識装置14、曲線認識装置16によ
り認識、判定され、直線あるいは曲線であると判定され
たドツト列は、それぞれ直線データ記憶装置18、曲線
データ記憶装置20に供給され、直線。
As described above, this straight line/curve data separation device 12 is a device that preliminarily separates figures that appear to be straight lines and figures that appear to be curves from a dot sequence, and the separator 12 distinguishes a dot sequence into straight line candidates or curve candidates. The separated straight line candidates and curve candidates are supplied to a straight line δ recognition device 14 and a curve recognition device 16, respectively. The straight line candidates and the curve candidates are recognized and determined by the straight line recognition device 14 and the curve recognition device 16, respectively, and the dot rows determined to be straight lines or curves are stored in the straight line data storage device 18 and the curve data storage device 20, respectively. Supplied in a straight line.

曲線のパラメータとして該記憶装置18.20に記憶さ
れる。
It is stored in the storage device 18.20 as a parameter of the curve.

なお、前期認識装置14.16で直線あるいは曲線であ
ると判定されなかったドツト列は、それぞれドツト列2
分割化装置22.2/Iに供給される。ドツト列2分割
化装置22.24では、判定不能のドツト列をその中点
で2分割化して直線/曲線データ分離装置12にフィー
ルドハックする。
Note that each dot row that is not determined to be a straight line or a curved line by the recognition device 14.16 is
It is fed to a splitting device 22.2/I. The dot row dividing devices 22 and 24 divide the undeterminable dot row into two at the midpoint, and field-hack into the straight line/curve data separating device 12.

ずなわち、2分割化された1本のドツト列は分離装置1
2に供給されて直線候補1曲線候補に分離され、この分
離作用の終了後、2分割化された他の1本のドツト列が
分離装置12に供給され同様の分離処理を受ける。
In other words, one dot row divided into two is the separation device 1.
After this separation operation is completed, another dot row divided into two is supplied to the separation device 12 and subjected to the same separation process.

以上のように、第1図装置によれば、ドツト列を直線あ
るいは曲線に弁別分離することができる。
As described above, according to the apparatus shown in FIG. 1, it is possible to distinguish and separate dot rows into straight lines or curved lines.

そして、この第1図装置において、データ処理速度に最
も影響を与えるのは直線/曲線データ分離装置12であ
り、以下、直線/曲線データ分離装置12について詳細
に説明する。
In the apparatus shown in FIG. 1, it is the straight line/curve data separator 12 that has the greatest effect on the data processing speed, and the straight line/curve data separator 12 will be described in detail below.

第3図には、従来の直線/曲線データ分Ij[装置12
のブロック回路が示され、分離装置12は、判別式計算
回路12aを含み、該判別式計算回路12aでは、ドツ
ト列の始点と終点とを結ぶ直線からドツト列の中点まで
の距離りがめられる。
FIG. 3 shows the conventional straight line/curve data portion Ij [device 12
The separation device 12 includes a discriminant calculation circuit 12a, and the discriminant calculation circuit 12a calculates the distance from the straight line connecting the start point and the end point of the dot sequence to the midpoint of the dot sequence. .

すなわち、第4A図、第4B図には、それぞれ直線1曲
線をデジタルアーク化したドツト列が示されており、第
4A図、第4B図において、ドツト列の始点、中点、終
点をそれぞれPs、 Pm、 Ptとし、そのX、y座
標をそれぞれ(xs、ys)(xrn、ym>(XJ 
、Xj ) とすると、始点Psと終点P、fとを結ぶ
直線β から中点Pmまでの距離りは、 となり、判別式計算回路12aでは、この割算式に基づ
いて距離りがめられる。
That is, FIGS. 4A and 4B each show a dot array obtained by converting a straight line curve into a digital arc, and in FIGS. 4A and 4B, the starting point, middle point, and end point of the dot array are respectively designated as Ps. , Pm, Pt, and their X and y coordinates are (xs, ys) (xrn, ym>(XJ
.

そして、判別式計算回路12aがらの距離りの信号は、
判定回路12bに供給され、判定回路12bでは、距離
りと予め設定された許容範囲Rとを比較し、ドツト列の
判定を行う。すなわち、第4Δ図に示されるように、h
≦Rである場合には、ドツト列は直線候補であると判定
され、一方、第4B図に示されるように、h > Rで
ある場合には、ドツト列は曲線候補であると判定され、
このようにして、ドツト列は、直線候補あるいは曲線候
補にブr別分離されることとなる。
The distance signal from the discriminant calculation circuit 12a is
The information is supplied to the determination circuit 12b, which compares the distance with a preset tolerance range R to determine the dot row. That is, as shown in Fig. 4Δ, h
If ≦R, then the dot array is determined to be a straight line candidate, while, as shown in FIG. 4B, if h > R, the dot array is determined to be a curved line candidate,
In this way, the dot array is separated into straight line candidates or curved line candidates by r.

従って、従来の直線/曲線データ分11Jl:装置12
においては、ドツト列の始点Ps、中点Plnsm点P
Zから距離りをめ、この距離l)と許容範囲1くとを比
較することにより、ドツト列の判定を11っており、こ
れにより、ドツト列の直線9曲線分離を行うことが可能
となる。
Therefore, conventional straight line/curve data 11 Jl: device 12
In , the starting point Ps, the middle point Plnsm, and the point P of the dot row are
By determining the distance from Z and comparing this distance l) with the allowable range 1, the dot array is determined, and this makes it possible to separate the dot array into straight lines and 9 curves. .

しかしながら、このような従来の直線/曲線データ分離
装置においては、ドツト単位の処理を行っているだけで
あるので、この従来の直線/曲線データ分離装置を直線
/曲線データ認識装置に使用した場合には、その後段に
くる直M 821識装置及び曲線認識装置でもドツト単
位の処理となり、処理量が増大し、処理速度が遅いとい
う問題があった。更に、従来の直線、/曲線データ分離
装置では、必ずしも正確な分離ができず、従って、後段
の直線認識装置1曲線認識装置で直線3曲線のどちらと
もいえない場合が生じ、この場合には、ドツト列2分割
化装置を介して直線/曲線データ分離装置にフィードバ
ック示さればならず、このため、従来の直線/曲線デー
タδ忍識装置ではそのための特別なループが必要よなっ
ており、装置全体の処理速度が遅いという問題があった
。例えば、第4C図に 示されるように、図形が直線及
び曲線の結合図形である場合には、h>Rであるので、
ドツト列は曲線候補であると分離されるが、曲線認識装
置ではこのドツト列を曲線であると判定することができ
ず、このため、ドツト列2分割化装置を介して直線/曲
線データ分離装置にフィードバックされ、装置全体の処
理速度が遅くなるという欠点があった。
However, such conventional straight line/curve data separation devices only process dots, so when this conventional straight line/curve data separation device is used in a straight line/curve data recognition device, In this case, the straight M821 recognition device and the curve recognition device that follow are also processed in units of dots, which has the problem of increasing the amount of processing and slowing down the processing speed. Furthermore, with conventional straight line/curve data separation devices, accurate separation is not always possible, and therefore, there may be cases where the subsequent straight line recognition device 1 curve recognition device cannot identify either straight line or 3 curves, and in this case, The data must be fed back to the linear/curve data separator via the dot row splitting device, and for this reason, conventional linear/curve data delta detection devices require a special loop for this purpose. There was a problem that the overall processing speed was slow. For example, as shown in Figure 4C, if the figure is a combination of straight lines and curved lines, h>R, so
The dot string is separated as a curve candidate, but the curve recognition device cannot determine that this dot string is a curve, so the straight line/curve data separation device This has the drawback of slowing down the overall processing speed of the device.

発明の目的 本発明は、前期従来の課題に鑑み為されたものであり、
その目的は、直線/曲線データ認識装置に使用したとき
、後段の直線認識装置及び曲線認識装置での処理速度を
速め、更に、その直線/曲線データ認識装置内の前述し
たようなループを不要とし、装置全体の処理速度を速め
ることができる直線/曲線データ分離装置を提供するこ
とにある。
Purpose of the Invention The present invention has been made in view of the problems that existed in the previous period.
When used in a straight line/curve data recognition device, its purpose is to speed up the processing speed of the subsequent straight line/curve recognition device and to eliminate the need for the above-mentioned loop in the straight line/curve data recognition device. An object of the present invention is to provide a linear/curve data separation device that can increase the processing speed of the entire device.

発明の構成 本発明は、ドツト列をベクタ化し、・くクク列の各ベク
タ長をめ、ベクタ長が闇値を越え−Cいるか否かにより
、ドツト列の−811たは全EaSを直線データあるい
は曲線データに弁別分離することを特徴とする。
Structure of the Invention The present invention converts a dot string into a vector, determines the length of each vector in the dot string, and converts -811 or the total EaS of the dot string into linear data depending on whether the vector length exceeds the dark value or not. Alternatively, it is characterized by discriminative separation into curve data.

実施例 以下、主として、添イ(1図面の第5図から第6Δ図、
第6B図及び第6C図に基づいて本発明の好適な実施例
を説明する。
In the following examples, we will mainly refer to attached A (Fig. 5 to 6 Δ of 1 drawing,
A preferred embodiment of the present invention will be described based on FIGS. 6B and 6C.

まず、本発明の詳細な説明する。First, the present invention will be explained in detail.

本発明においては、ドツト列をベクタ化し、ベクタ列の
各ベクタ長をめ、ベクタ長が閾値を越えているか否かに
より、ドツト列を直線データあるいは曲線データに分離
している。すなわち、ベクタ長が閾値を越えている場合
には、該ベクタ列′は直線データであると判定されて直
線認識装置に供給され、また、ペクタ長が閾値を越えて
いない場合には、酸ベクタ列は曲線データであると判定
されて曲線認識装置に供給される。そして、従来の直線
J忍識装置及び曲線認識装置においては、人力信号がド
ツト列であり、ドツト列をドツト単位で処理するため、
処理速度が遅いという欠点を有しこれに対し、本発明に
おいては、直線/曲線データ分離装置はベクタ単位で処
理しており、直線認識装置及び曲線8+!i!識装置へ
の人力信号はベクタ列となり、このため、ドツト列をベ
クタ単位で処理するので、処理速度が速′いという利点
を有する。
In the present invention, a dot string is vectorized, each vector length of the vector string is determined, and the dot string is separated into straight line data or curved data depending on whether the vector length exceeds a threshold value. That is, if the vector length exceeds the threshold, the vector sequence' is determined to be straight line data and is supplied to the straight line recognition device, and if the vector length does not exceed the threshold, the vector sequence is The column is determined to be curve data and is supplied to a curve recognition device. In the conventional straight line recognition device and curve recognition device, the human signal is a dot train, and the dot train is processed dot by dot.
However, in the present invention, the straight line/curve data separation device processes on a vector-by-vector basis, and the straight line recognition device and curve 8+! i! The human input signal to the recognition device is a vector sequence, and since the dot sequence is processed in units of vectors, it has the advantage of high processing speed.

従って、本発明の原理によれば、直線認識装置及び曲線
認識装置では、ドツト列をベクタ単位で処理することと
なり、処理速度の高速化を達成することができる。
Therefore, according to the principles of the present invention, in the straight line recognition device and the curve recognition device, the dot string is processed in units of vectors, and the processing speed can be increased.

更に、本発明の原理においては、1本のドツト列の全部
を直線データあるいは曲線データに分離するだけでなく
、1本のドツト列の一部を直線デ−タあるいは曲線デー
タに分離し、1木のドツト列を直線部分と曲線部分とに
分離することも可能である。従って、直線/曲線データ
分11i1ffi装置では、1本のドツト列の一部又は
全部を直線データあるいは曲線データに正確に分離して
おり、このため、直線認識装置1曲線認識装置では、直
線データ。
Furthermore, according to the principle of the present invention, not only the whole of one dot string is separated into straight line data or curved data, but also a part of one dot string is separated into straight line data or curved data. It is also possible to separate the tree dot row into straight and curved parts. Therefore, the straight line/curve data 11i1ffi device accurately separates part or all of one dot row into straight line data or curve data, and therefore, the straight line recognition device 1 curve recognition device separates straight line data.

曲線データを正確に認識することができ、従来装置のご
とくドツト列を2分割化して直線/曲線データ分離装置
にフィードバックするというループを不要とすることが
できる。
Curve data can be recognized accurately, and the loop of dividing the dot row into two and feeding it back to the straight line/curve data separation device, as in conventional devices, can be eliminated.

次に、第5図には、本発明の実施例による直線/曲線デ
ータ分離装置が適用された直線/曲線データ認識装置が
示されている。
Next, FIG. 5 shows a straight line/curve data recognition device to which the straight line/curve data separation device according to the embodiment of the present invention is applied.

第5図において、ドツト列データ記憶装置1Oからのド
ア)列は直線/曲線データ分:i、1[装置12′に供
給され、直線/曲線データ分離装置12′はベクタ化回
路12Cを含み、該ベクタ化回路12Cにより、ドツト
列は、両側の一定範囲にてベクタ化され、ベクタ列とな
る。そして、第6ΔIg+ 、第6B図には、それぞれ
、直線1曲線を一定範囲Qにてベクタ化した状態が示さ
れ、直線2曲線は、それぞれベクタ列v1.ベクタ列V
、、V2v5にベクタ化されている。
In FIG. 5, a door column from a dot column data storage device 1O is supplied to a linear/curve data portion: i, 1 [device 12', and the linear/curve data separator 12' includes a vectorization circuit 12C; The vectorization circuit 12C vectorizes the dot array within a certain range on both sides to form a vector array. 6.DELTA.Ig+ and FIG. 6B each show a state in which straight line 1 curve is vectorized in a certain range Q, and straight line 2 curves are each vector sequence v1. vector sequence V
,, vectorized to V2v5.

なお、ドツト列をベクタ化する方法は数種類あるが、本
実施例においては、以下の処理方法によりベクタ化を行
っている。
There are several methods for vectorizing a dot string, but in this embodiment, vectorization is performed using the following processing method.

まず、ドツト列の始点と終点とを結ぶ直線の両側に一定
の許容範囲を設げ、この範囲内にドツト列の各点が人っ
ているか否かをチェックする。ドツト列の各点が全てこ
の範囲内にある場合にはドツト列の始点と終点とをベク
タの始点と終点とする。この状態が第6Δ図に示されて
おり、第6A図においては、ドツト列め′各点は全て一
定範囲Q内にあり、このため、ドツト列はベクタ列v1
にベクタ化されている。一方、前期許容範囲に入らない
ドツト列の点が存在する場合には、ドツト列をその中点
で2分割した各ドツト列について同様の処理を行う。そ
して、この処理は、ドツト列の全ての点が許容範囲に入
るまで繰り返され、全ての点が許容範囲に入った場合に
は、その許容範囲までを1ベクタとし、残りのドツト列
に関しても同様の処理が為され、これにより、ドツト列
は各点にわたってベクタ列となる。なお、第6B図には
、曲線をベクタ化した状態が示されており、曲線はベク
タ列ベクタ列v1.ν2 v5にベクタ化されているこ
よが理角りされる。
First, a certain tolerance range is set on both sides of a straight line connecting the starting point and end point of the dot array, and it is checked whether each point of the dot array is within this range. If all the points in the dot array are within this range, the start and end points of the dot array are taken as the start and end points of the vector. This state is shown in Fig. 6Δ, and in Fig. 6A, all the points in the dot array are within a certain range Q, so that the dot array is equal to the vector array v1.
It has been vectorized into . On the other hand, if there is a point in the dot array that does not fall within the permissible range, the same process is performed for each dot array obtained by dividing the dot array into two at the midpoint. This process is repeated until all points in the dot array fall within the tolerance range, and when all points fall within the tolerance range, the vector up to that tolerance range is treated as one vector, and the same goes for the remaining dot arrays. As a result, the dot string becomes a vector string across each point. Note that FIG. 6B shows a state in which the curve is vectorized, and the curve is a vector sequence vector sequence v1. The vectorization of ν2 v5 is calculated.

以上のように、ベクタ化回路12cにより、ドツト列は
ベクタ列に変換されることとなる。
As described above, the vectorization circuit 12c converts the dot string into a vector string.

前期ベクタ化回路12Cからのベクタ列信号はベクタ長
演算回路12dに供給され、該ベクタ長演算回路1.2
 dにより、ベクタ列の各ベクタ長がめられる。ずなわ
ら、ベクタ長演毅回路12dは、各ベクタの端点の座標
点列に基づき各ベクク長Cfa点同、古の距離)をめ、
ベクタ長の数列を出力する。ここで、任意のベクタ■の
始点、終点をそれぞれ(X、、 、)!S)、 (X/
 、X/ ) とすると、ベクタ■の であるが、実施例では、処理速度を速めるため、ベクタ
長Vを式1xS−xp l+1yS−y4 lによりめ
、計算を簡略化している。
The vector string signal from the first vectorization circuit 12C is supplied to the vector length calculation circuit 12d, and the vector length calculation circuit 1.2
The length of each vector in the vector sequence is determined by d. In addition, the vector length calculation circuit 12d calculates the vector length (Cfa point, distance) based on the coordinate point sequence of the end points of each vector.
Outputs a sequence of vector lengths. Here, the starting point and ending point of any vector ■ are (X,, ,) respectively! S), (X/
,

以上のようにして、ベクタ長演算回路12dにより、ベ
クタ列の各ベクタ長がめられ、このベクタ長数列信号は
判定回路12eに供給される。
As described above, the vector length calculation circuit 12d determines the length of each vector in the vector sequence, and this vector length sequence signal is supplied to the determination circuit 12e.

判定回路12eは、各ベクタ長Vが予め設定した閾値t
を越えているか否かを比較判定し、各ベクタ長が閾値t
よりも長い場合には、該ベクタ列は、直線候補として直
線認識装置14に供給され、一方、各ベクタ長が閾値t
よりも短い場合には、該ベクタ列は、曲線候補として曲
線認識装置16に供給される。例えば、第6Δ図におい
ては、ベクタ列V、のベクタ長v1は閾′値tよりも長
いので、ベクタ列ν、は直線候補であると判定され、ま
た、第6B図においては、ベクタ列v1.v2v5のベ
クタ長VI+ V2 ””””’ vsは全て闇値tよ
りも短いので、ベクタ列V、、 V2v、は曲線候補で
あると判定される。
The determination circuit 12e determines that each vector length V has a preset threshold value t.
It is compared and determined whether each vector length exceeds the threshold t.
If the length of each vector is longer than the threshold t, the vector string is supplied as a straight line candidate to the straight line recognition device 14,
If the vector sequence is shorter than , the vector sequence is supplied to the curve recognition device 16 as a curve candidate. For example, in Fig. 6Δ, the vector length v1 of the vector sequence V is longer than the threshold value t, so the vector sequence ν is determined to be a straight line candidate, and in Fig. 6B, the vector sequence v1 .. Since the vector lengths VI+V2 ``''''''' vs of v2v5 are all shorter than the darkness value t, the vector sequence V,, V2v, is determined to be a curve candidate.

従って、ベクタ列は、判定回路12eにより直線候補あ
るいは曲線候補に分離され、直線認識装置14、曲線認
識装置16に供給されるので、該直線認識装置14 、
 Fill線δ忍識装置16では、ドツト列をベクタ単
位で処理することができ、処理速度を速めることが可能
となる。
Therefore, the vector sequence is separated into straight line candidates or curve candidates by the determination circuit 12e, and is supplied to the straight line recognition device 14 and the curve recognition device 16, so that the straight line recognition device 14,
The fill line δ tracking device 16 can process dot sequences in vector units, making it possible to increase the processing speed.

更に、直線−/ tflj線データ分離装置12’にお
いては、前述した第6Δ図、第6B図に示されるように
、一本のドツト列の全部を直線1シヒ袖あるいは曲線候
補に分離するだけでなく、−木のドツト列の一部を直線
候補あるいは曲線候補に分離し、これにより、−木のド
ツト列を1−11: i、iij 1′1i分、= +
、li線部分とに分離することも可能である。例えば、
第6C図には、直線及び曲線の結合図ノ[3がベクタ化
された状態が示されており、結合図形のドツト列はベク
タ列νl、’V2 、 V3 ””’−”’ V6にベ
クタ化されている。
Furthermore, in the straight line/tflj line data separation device 12', as shown in Fig. 6Δ and Fig. 6B, all one dot row can be separated into straight line candidates or curve candidates. Instead, part of the dot sequence of the - tree is separated into straight line candidates or curved candidates, and as a result, the dot sequence of the - tree is divided into 1-11: i, iij 1'1i, = +
, Li line portion. for example,
Fig. 6C shows a state in which the combined figure [3] of straight lines and curves has been converted into a vector, and the dot string of the combined figure is the vector string νl, 'V2, V3 ''''-''' V6. has been made into

そして、直線/曲線データ分離装置12′によれば、ベ
クタ列V1に対応するドツト列を直線候補に分離し、更
に、ベクタ列V2.V3v、、に対応するドツト列を曲
線候補に分離することができ、1木のドツト列を直線部
分と曲線部分とに正(1育に分離することができる。
Then, the straight line/curve data separation device 12' separates the dot sequence corresponding to the vector sequence V1 into straight line candidates, and further separates the dot sequence corresponding to the vector sequence V1 into straight line candidates. The dot string corresponding to V3v, , can be separated into curve candidates, and the one-tree dot string can be separated into a straight line part and a curved part.

従って、直線及び曲線の結合図形であっても、直線認識
装置14及び曲線認識装置16では、直線候補1曲線候
補を正確に認識することが可能となる。このため、従来
装置のごとくドツト列を2分割化して直線/曲線データ
分離装置12にフィードバックするというループを不要
とすることができる3、そして、このことは、第1図と
第5図との比較から明らかであり、第5図においては、
ドツト列2分割化装置が設けられていないことが理解さ
れる。
Therefore, even if the figure is a combination of a straight line and a curve, the straight line recognition device 14 and the curve recognition device 16 can accurately recognize one straight line candidate and one curve candidate. Therefore, the loop of dividing the dot row into two and feeding it back to the straight line/curve data separation device 12 as in the conventional device can be eliminated. It is clear from the comparison that in Figure 5,
It will be appreciated that no dot row bisecting device is provided.

以上のように、木発Iす1の天施例によれば、ドツト列
をベクタ単位で処理することができ、更に、直線/曲線
データ認識装−首内のループを不要とすることができる
ので、装置全体の処理速度の高速化を達成することが可
能となる。
As described above, according to the first embodiment of the present invention, it is possible to process dot sequences in vector units, and furthermore, it is possible to eliminate the need for loops in the neck of the straight line/curve data recognition device. Therefore, it is possible to increase the processing speed of the entire device.

なお、上記実施例にj、夕いては、ベクタ化回路1.2
Cは、前述しまた処理方法によりドツト列のベクタ化を
行っているが、ドツト列を一定の許容範囲でベクタ化で
きる処理方法であれば、他の処理方法であっても実施可
能である。
In addition, in the above embodiment, the vectorization circuit 1.2
In C, the dot string is vectorized by the processing method described above, but other processing methods can be used as long as the dot string can be vectorized within a certain tolerance range.

発明の効果 以」ニ説明したように、本発1JIIの直線/曲線デー
タ分甜装置によれば、ドツト列をベクタ化し、ベクタ列
の各ベクタ長をめ、ベクタ長が閾値を越えているか否か
により、ドツト列の一部又(ま全部を直線データあるい
は曲線データにJr別分j)I[しており、従来のごと
きドツト単位の処J!l署Qはなくベクタ単位の処理を
行っているので、この直線/曲線データ分離装置を直線
/曲線データ認識装置に使用したとき、直線認識装置及
び曲線認識装置での処理速度を速めることができる。更
に、本発明の直線/曲線データ分離装置によれば、ドツ
ト列の一部を直線候補あるいは曲線候補にll(N実に
分離し、すなわち1本のドツト列を直線519分と曲線
部分とにG4実に分離することが可能であり、直線及び
曲線の結合図形であっても、後段の直線認識装置及び曲
線認識装置では、直線候補1曲線候補を正確に認識する
ことができる。このため、従来のごとく判定不能のドツ
ト列を2分割化して直線/曲線データ分離装置にフィー
ドバックするというループを不要とすることができる。
As explained in Section 2, "Effects of the Invention", the straight line/curve data splitting device of 1JII of the present invention converts a dot string into a vector, determines the length of each vector in the vector string, and determines whether the vector length exceeds a threshold value. Depending on the situation, part or all of the dot row is divided into straight line data or curved data. Since there is no signature Q and processing is performed in vector units, when this straight line/curve data separation device is used in a straight line/curve data recognition device, the processing speed of the straight line recognition device and curve recognition device can be increased. . Further, according to the straight line/curve data separation device of the present invention, a part of a dot string is separated into straight line candidates or curve candidates, i.e., one dot string is divided into 519 straight lines and curved parts by G4. Even if the figure is a combination of straight lines and curves, the subsequent line recognition device and curve recognition device can accurately recognize one straight line candidate and one curve candidate. This eliminates the need for a loop in which an undeterminable dot row is divided into two and fed back to the straight line/curve data separation device.

従って、本発明によれば、直線/曲線データ認識装置全
体の処理速度を速めることが可能となる。
Therefore, according to the present invention, it is possible to increase the processing speed of the entire straight line/curve data recognition device.

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

第1図は従来の直線/曲線データ認識装置の概略構成図
、 第?Δ図、第2B図はそれぞれ直線1曲線をデジタル′
〕′−り化したドツト列を示ず説1!Ij図、第3図は
従来の直線/曲線データ分離装置のブロック回路図、 第4Δ図、第4B図、第4c図はそれぞれ直線。 曲線、直線及び曲線の結合図形をデジタルγ−タ化した
ドツト列を示し、1台点、中点、終点を示す説明図、 第5図は本発明の実施例による直線/曲線データ分離装
置が適用された直線/曲線データδ忍識装置のブロック
回路図、 第6A図、第6B図、第6C図はそれぞれ直線。 曲線、直線及び曲線の結合図形をベクタ化したベクタ列
を示す説明図である。 12′ 直線/曲線データ分離装置、 12c ベクタ化回路、 12d ベクタ長演算回路、 12e 判定回路。 第1図 第3図 2 @2Aiffl Yt 第4A図 第4B図 第4C図 第6A図 第6B図 第60図
Figure 1 is a schematic configuration diagram of a conventional straight line/curve data recognition device. Figure Δ and Figure 2B each have one straight line curved digitally.
]'- Theory 1 does not show the converted dot row! Figures Ij and 3 are block circuit diagrams of conventional straight line/curve data separation devices, and Figures 4Δ, 4B, and 4c are straight lines, respectively. An explanatory diagram showing a dot array obtained by converting a curve, a straight line, and a combined figure of curves into digital gamma data, and showing the single point, middle point, and end point. The block circuit diagram of the applied straight line/curve data delta ninja device, Figures 6A, 6B, and 6C are straight lines, respectively. FIG. 3 is an explanatory diagram showing a vector sequence obtained by vectorizing a curve, a straight line, and a combined figure of curves. 12' Straight line/curve data separation device, 12c Vectorization circuit, 12d Vector length calculation circuit, 12e Judgment circuit. Figure 1 Figure 3 Figure 2 @2Aiffl Yt Figure 4A Figure 4B Figure 4C Figure 6A Figure 6B Figure 60

Claims (1)

【特許請求の範囲】[Claims] (1)直線図形及び曲線図形の混在した図形を直線デー
タ、曲線データに分離する直線/曲線データ分離装置に
おいて、 前期図形を表すドツト列をベクタ化し該ベクタ列を出力
するベクタ化回路と、 ベクタ化回路からのベクタ列信号に基づきベクタ列の各
ベクタ長をめ該ベクタ長の数列を出力するベクタ長演算
回路と、 ベクタ長演算回路からのベクタ長数列信号に基づき各ベ
クタ長が閾値を越えているか否かを比較判定しドツト列
の一部又は全部を直線データあるいは曲線データに弁別
分離する判定回路と、を含むことを特徴とする直線/曲
線データ分離装置。
(1) A straight/curve data separation device that separates a figure containing a mixture of straight lines and curved figures into straight line data and curved data, which includes a vectorization circuit that converts a dot string representing a previous figure into a vector and outputs the vector string; a vector length calculation circuit that calculates the length of each vector in a vector sequence based on a vector sequence signal from the vector conversion circuit and outputs a numerical sequence of the vector length; 1. A determination circuit that compares and determines whether or not a dot row is present, and discriminately separates part or all of a dot row into straight line data or curve data.
JP58240271A 1983-12-20 1983-12-20 Straight line/curve data separating device Pending JPS60132280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58240271A JPS60132280A (en) 1983-12-20 1983-12-20 Straight line/curve data separating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58240271A JPS60132280A (en) 1983-12-20 1983-12-20 Straight line/curve data separating device

Publications (1)

Publication Number Publication Date
JPS60132280A true JPS60132280A (en) 1985-07-15

Family

ID=17057007

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58240271A Pending JPS60132280A (en) 1983-12-20 1983-12-20 Straight line/curve data separating device

Country Status (1)

Country Link
JP (1) JPS60132280A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01142880A (en) * 1987-11-30 1989-06-05 Fujitsu Ltd System for representing a curve by piecewise linear set
JPH02118781A (en) * 1988-10-28 1990-05-07 Photo Composing Mach Mfg Co Ltd Method for processing picture
WO1990012370A1 (en) * 1989-04-04 1990-10-18 Ntt Data Communications Systems Corporation Recognizing apparatus
JPH02306379A (en) * 1989-05-19 1990-12-19 Nippon Kogyo Shashin Kk Method for making drawing into vector data
JPH0528254A (en) * 1991-07-23 1993-02-05 Mitani Shoji Kk Automatic vectorization processing method for graphic data and device used for the method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01142880A (en) * 1987-11-30 1989-06-05 Fujitsu Ltd System for representing a curve by piecewise linear set
JPH02118781A (en) * 1988-10-28 1990-05-07 Photo Composing Mach Mfg Co Ltd Method for processing picture
WO1990012370A1 (en) * 1989-04-04 1990-10-18 Ntt Data Communications Systems Corporation Recognizing apparatus
JPH02306379A (en) * 1989-05-19 1990-12-19 Nippon Kogyo Shashin Kk Method for making drawing into vector data
JPH0528254A (en) * 1991-07-23 1993-02-05 Mitani Shoji Kk Automatic vectorization processing method for graphic data and device used for the method

Similar Documents

Publication Publication Date Title
US5138668A (en) Character discrimination system employing height-to-width ratio and vertical extraction position information
EP0538038B1 (en) Character recognition method & apparatus
CN112818951B (en) Ticket identification method
US4979227A (en) Method for automatic character recognition employing a lexicon having updated character strings
US4933977A (en) Method for identifying plural connected figures
EP0355748A2 (en) A pattern recognition apparatus and method for doing the same
JPS6274181A (en) Character recognizing device
US5357602A (en) Apparatus for transforming a two-level image into contour vectors by decomposing composite figures into "unitary" (open) and closed-loop figures, especially suitable for minimizing memory use while maintaining system processing speed
JPS60132280A (en) Straight line/curve data separating device
JPS60153574A (en) Character reading system
JPS615383A (en) Character pattern separating device
JPS6244897A (en) Character recognizing device
KR19980025571A (en) Hangul Recognition System Using Regular Noise
JPH0210472B2 (en)
JPS5810274A (en) On-line manuscript character recognizing system
JPS63118993A (en) Character recognizing method
JPH01296394A (en) Character recognizing system
JP2851865B2 (en) Character recognition device
JPH0658689B2 (en) Line figure separation device
JP2509992B2 (en) Separation character integration method
JPS60138689A (en) Character recognizing method
JPH02205990A (en) Optical character recognizing device
JPH0576674B2 (en)
JPH04245390A (en) Type character recognition device
JPS62120589A (en) Hand-written character recognizing device