JPS6049482A - Approximate describer for on-line handwritten linear pattern - Google Patents

Approximate describer for on-line handwritten linear pattern

Info

Publication number
JPS6049482A
JPS6049482A JP58158355A JP15835583A JPS6049482A JP S6049482 A JPS6049482 A JP S6049482A JP 58158355 A JP58158355 A JP 58158355A JP 15835583 A JP15835583 A JP 15835583A JP S6049482 A JPS6049482 A JP S6049482A
Authority
JP
Japan
Prior art keywords
line
approximation
approximate
input
linear pattern
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
JP58158355A
Other languages
Japanese (ja)
Inventor
Etsuji Nishino
西野 悦二
Motohiro Matsuzaka
松坂 基弘
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP58158355A priority Critical patent/JPS6049482A/en
Publication of JPS6049482A publication Critical patent/JPS6049482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Abstract

PURPOSE:To decrease the processing time and to attain coding with a high data compression factor by obtaining automatically each approximate allowable error of a straight line, a circle and an arc respectively in consideration of a geometric form of an input linear pattern. CONSTITUTION:An input part 3 which feeds the time-series coordinate value data on a linear pattern is provided together with a flexion point extracting part 4 which extracts a flexion point out of the coordinate value data, an automatic approximate allowable error setting part 5 which calculates automatically an approximate allowable error in consideration of a geometric form of the linear pattern, and a linear element analysis/detection part 6 which analyzes roughly the linear pattern. Thus the fine and rough approximate coding operations are possible for the fine and rough linear elements since an approximate allowable error is automatically set to each element of a straight line, a circle and an arc respectively in consideration of the geometric form of the linear pattern. Furthermore, the part 6 detects hierarchically and preferentially the elements having high appearing frequencies. This device attains an approximate coding action in real time and with a high compression factor.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、線図形入力装置に手書きで入力される線図形
の時系列的な座標値データを計算機により実時間で近似
・符号化処理し、前記手書き線図形の近似記述結果をデ
ィスプレイに表示するオンライン手書き線図形近似記述
装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION Field of Industrial Application The present invention approximates and encodes time-series coordinate value data of a line figure input by hand into a line figure input device in real time using a computer. The present invention relates to an online handwritten line figure approximation description device that displays the approximate description result of a handwritten line figure on a display.

従来例の構成とその問題点 従来−手書き線図形の時系列的な座標値データを近似符
号化する方法として、座標値データを等時間間隔でサン
プリングし、サンプリングされた各画素を直線で補間す
る方法がよく知られている0しかし、この方法は円や円
弧部を直線近似するため、滑らかな近似結果が得られな
いうえに、高いデータ圧縮率が得られないという問題が
ある。
Configuration of conventional example and its problems Conventional method - As a method for approximately encoding time-series coordinate value data of handwritten line figures, coordinate value data is sampled at equal time intervals, and each sampled pixel is interpolated with a straight line. This method is well known. However, since this method approximates a circle or an arc portion by a straight line, there are problems in that smooth approximation results cannot be obtained and a high data compression rate cannot be obtained.

動的な座標値データを解析し、前記手書き線図形を直線
と円弧(円も含む)で近似記述する方法として、従来は
第1図に示す様に手書き線図形の座標値データ1を小領
域に分割し、それぞれの領域ごとに直線であるか、ある
いは円弧であるか、また円弧であれば曲車半径をめる等
の微視的な解析を行なった後、属性が類似した小領域を
統合し。
Conventionally, as a method of analyzing dynamic coordinate value data and approximately describing the handwritten line figure using straight lines and circular arcs (including circles), the coordinate value data 1 of the handwritten line figure is divided into small areas as shown in Figure 1. After performing microscopic analysis such as determining whether each area is a straight line or a circular arc, and if it is an arc, determining the radius of the curved wheel, small areas with similar attributes are determined. Integrate.

最終的に第2図の様な近似結果2を得る方法を用いてい
た。近似記述結果2は第1図の座標値データ1を、かな
シ正確に、近似記述してい苧。しかし、上記座標値デー
タ1が手書きによる入力データであることを考慮し、上
記座標値データ1全体゛を大局的に解析すれば、一つの
円を表わしていると判断するべきであることがわかる。
Finally, a method was used to obtain approximation result 2 as shown in Figure 2. Approximate description result 2 is an approximate description of the coordinate value data 1 in FIG. 1, accurately and accurately. However, if we take into account that the coordinate value data 1 is handwritten input data and broadly analyze the entire coordinate value data 1, we will find that it should be determined that it represents one circle. .

従来技法では、この様に手書き線図形を微視的に解析す
るために、線図形の全体像を把握することができないう
え、多大の処理時間を要し、しかもデータ圧縮率の高い
符号化が行なえないという問題がある。
Conventional techniques microscopically analyze handwritten line figures in this way, making it impossible to grasp the entire picture of the line figure, requiring a large amount of processing time, and requiring high data compression rate encoding. The problem is that it cannot be done.

発明の目的 本発明は、この様な従来の問題点を除去し、線図形入力
装置に手書きで入力される線図形の描画速度に着目する
ことにより効率的に屈曲点を抽出し、前記線図形を屈曲
点の前後で分割した線要素を大局的に解析し、直線(点
を含む)と円弧(円を含む)を用いて前記手書き線図形
に対し、実時間でデータ圧縮率の高い近似・符号化を行
ない。
OBJECTS OF THE INVENTION The present invention eliminates such conventional problems and efficiently extracts bending points by focusing on the drawing speed of line figures input by hand into a line figure input device. We globally analyze the line elements that are divided before and after the bending point, and use straight lines (including points) and arcs (including circles) to approximate the handwritten line figure with high data compression rate in real time. Perform encoding.

その近似結果をディスプレイに表示するオンライン手書
き線図形近似記述装置を提供することを目的とする。
The present invention aims to provide an online handwritten line figure approximation description device that displays the approximation results on a display.

発明の構成 本発明のオンライン手書き線図形近似記述装置は1手書
き入力される線図形の時系列的な座標値データを得る手
書き線図形入力部と、上記座標値データから屈曲点を抽
出する屈曲点抽出部と、入力された線図形の幾何学的形
状を考慮して近似許容誤差を自動的に算出する近似許容
誤差自動設定部と、入力された線図形を大局的に解析す
ることにより直線や円の様な出現頻度が高い図形要素を
階層的に優先して検出し、近似記述の最小単位に分割す
る線要素解析検出部と、検出された線要素の符号化デー
タをリスト内に格納する符号化データ格納部と、原画お
よび近似結果を表示する近似記述出力部を備えておυ、
前記線図形を屈曲点の前後で分割した各線要素を大局的
に把握し、その幾何学的形状から自動設定される点直線
9円2円弧の各近似許容誤差内に納まる各線要素を直線
や円の様な出現頻度が高いものから優先的に検出して近
似・符号化処理を行ない、近似結果をディスプレイに表
示するものである。
Composition of the Invention The online handwritten line figure approximation description device of the present invention includes: a handwritten line figure input unit that obtains time-series coordinate value data of a line figure that is input by hand; and a bend point that extracts a bend point from the coordinate value data. An extraction section, an approximation tolerance automatic setting section that automatically calculates an approximation tolerance considering the geometrical shape of the input line shape, and a straight line or A line element analysis and detection unit that hierarchically prioritizes and detects geometric elements that appear frequently, such as circles, and divides them into minimum units of approximate description, and stores encoded data of detected line elements in a list. Equipped with an encoded data storage unit and an approximation description output unit that displays the original image and approximation results,
The above-mentioned line figure is divided before and after the bending point, and each line element is grasped holistically, and each line element that falls within the approximation tolerance of each point straight line 9 circles 2 circular arcs automatically set from the geometric shape is divided into straight lines and circles. It preferentially detects items with a high frequency of appearance, performs approximation and encoding processing, and displays the approximation results on a display.

実施例の説明 以下本発明の一実施例を図面を参照して説明する。第3
図に本発明のオンライン手書き線図形近似記述装置の構
成図を示す0第3図において、3は手書き線図形入力部
であシ1本本実側では入力装置としてタブレットを使用
した。4は屈曲点抽出部であ91手書き線図形入力部3
で入力された手書き線図形の時系列的な座標値データか
ら屈曲点を抽出する。6は近似許容誤差自動設定部であ
り、直線9円1円弧の各線要素に対する近似許容誤差を
、自動設定する。6は線要素解析検出部であシ、近似許
容誤差自動設定部6でめた近似許容誤差内に納まる直線
1円2円弧および点の各線要素を階層的に検出する。7
は符号化データ格納部であり、線要素解析検出部6で検
出された近似記述の最小単位である各線要素の符号化デ
ータをリスト8内に格納する09は近似記述出力部であ
り、符号化データ格納部7で得られた各線要素の符号化
データより、近似記述結果をディスプレイ10上に出力
する。
DESCRIPTION OF EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. Third
FIG. 3 shows a block diagram of the online handwritten line figure approximation description device of the present invention. In Fig. 3, numeral 3 denotes a handwritten line figure input unit. In this case, a tablet was used as an input device. 4 is a bending point extraction unit 91 handwritten line figure input unit 3
The bending points are extracted from the time-series coordinate value data of the handwritten line figure input in . Reference numeral 6 denotes an approximation allowable error automatic setting unit, which automatically sets approximation allowable errors for each line element of nine straight lines and one circular arc. Reference numeral 6 denotes a line element analysis and detection unit, which hierarchically detects each line element of one straight line, one circle, two circular arcs, and a point that falls within the approximation tolerance determined by the approximation tolerance automatic setting unit 6. 7
is an encoded data storage unit, and 09 is an approximate description output unit that stores encoded data of each line element, which is the minimum unit of approximate description detected by the line element analysis detection unit 6, in the list 8. Approximate description results are output on the display 10 from the encoded data of each line element obtained in the data storage section 7.

上記の様に構成された装置において、以下その動作を各
処理部毎に説明する。
In the apparatus configured as described above, the operation of each processing section will be explained below.

■ 手書き線図形入力部3 本実施例では第3図の手書き線図形入力部3の入力装置
として座標値データのサンプリング周波数が一定である
タブレットを使用する。タブレット−手書き入力される
線図形は、タブレットの座標値データサンプリング機能
によシ、その座標値データが得られる。手書き線図形入
力部3は、これを受け一筆で描かれた線図形(以下、ス
トロークと呼ぶ)毎に、その座標値データを以下の処理
部へ出力する。
(2) Handwritten line figure input unit 3 In this embodiment, a tablet whose sampling frequency of coordinate value data is constant is used as an input device for the handwritten line figure input unit 3 shown in FIG. Tablet - The coordinate value data of a line figure that is input by hand is obtained by the coordinate value data sampling function of the tablet. The handwritten line figure input section 3 receives this and outputs the coordinate value data for each line figure drawn with one stroke (hereinafter referred to as a stroke) to the following processing section.

■ 屈曲点抽出部4 一定周波数で座標値データをサンプリングするタブレッ
トに手書き入力される線図形の時系列的な座標値データ
から屈曲点を抽出するために、屈曲点抽出部4では、前
処理として屈曲点付近では手書き入力される線図形の描
画速度が激減することに着目して屈曲点候補点を抽出す
る屈曲点候補点抽出処理と、前記屈曲点候補点が屈曲点
であるか否かを検証する屈曲点検証処理を行なう。
■ Inflection Point Extraction Unit 4 In order to extract inflection points from time-series coordinate value data of a line figure that is handwritten into a tablet that samples coordinate value data at a constant frequency, the inflection point extraction unit 4 performs preprocessing. A bending point candidate point extraction process that extracts bending point candidate points by paying attention to the fact that the drawing speed of a line figure input by hand is drastically reduced near the bending point, and determining whether or not the bending point candidate point is a bending point. Performs bending point verification processing.

以下に前記屈曲点候補点抽出処理と屈曲点検証処理につ
いて説明する。
The bending point candidate point extraction process and bending point verification process will be described below.

(1)屈曲点候補点抽出処理 第4図に矢印によシ示す様に描画速度の極小値をすべて
屈曲点候補点として抽出すると1手のプレや量子化に伴
なう雑音等の影響がすべて含まれてしまうので効率的で
はない。従って第6図に示す様に、描画速度が激減する
画素を含むし」h領域11.12を設定し、その小領域
11.12内で描画速度が最示値となる画素13.14
を屈曲点候補点として抽出する0 前記小領域は以下の手順で設定する。
(1) Bend point candidate point extraction process If all the minimum values of the drawing speed are extracted as bend point candidate points as shown by the arrows in Figure 4, the effects of noise caused by one-move play and quantization will be eliminated. It is not efficient as it includes everything. Therefore, as shown in FIG. 6, a pixel 13.14 where the drawing speed reaches the optimum value is set within the small area 11.12, which includes pixels where the drawing speed sharply decreases.
0 is extracted as a bending point candidate point. The small area is set by the following procedure.

(1)第6図に示す様な線図形の時系列的な画素列(P
+ 、 P2 、・・・・・・・・・、 Pt−4,P
t−3,Ps−2・Pl−1、Pt 、 Pi+1 、
−−− 、 Pin lにおいて各画素の描画速度は、
タブレットの座標値データサンプリング周波数が一定で
あることにより一隣接する各画素間距離から算出された
ものである。従って画素Plの描画速度Siは Si = Dt 、 1−1 (Di 、 i−+は画素PiとPl−1との画素間距
離)で表わされる。
(1) Time-series pixel array (P
+ , P2 , Pt-4, P
t-3, Ps-2・Pl-1, Pt, Pi+1,
--- , the drawing speed of each pixel in Pin l is
Since the tablet coordinate value data sampling frequency is constant, it is calculated from the distance between each adjacent pixel. Therefore, the drawing speed Si of the pixel Pl is expressed by Si=Dt, 1-1 (Di, i-+ is the inter-pixel distance between the pixels Pi and Pl-1).

(ii) (1)で算出された画素Pi−4の描画速度
5i−4ニ定数c(o<c<1)e掛nfc値GXSl
−4と81を比較すれば次の二つの場合が考えられる0 CjXSi−4≧St ・・・・・・・・・・・・・・
・(a)GXSl−4< St ・・・・・・・・・・
・・・・・(b)(iii)すべてのl(s<t<n 
: nは全画素数)について(1) 、 (li)を繰
り返し−(a) 、 (b)いずれの状態であるか調べ
る。
(ii) Drawing speed of pixel Pi-4 calculated in (1) 5i-4 constant c (o<c<1)e multiplied by nfc value GXSl
Comparing −4 and 81, the following two cases are possible0 CjXSi−4≧St ・・・・・・・・・・・・・・・
・(a) GXSl-4< St ・・・・・・・・・・
・・・・・・(b)(iii) All l(s<t<n
: Repeat (1) and (li) for (n is the total number of pixels) - Check which state is in (a) or (b).

例えばi −jl において状態が申)から(a)へ変
化すれば画素j1が前記小領域の初めの画素であシ。
For example, if the state changes from (in) to (a) at i - jl, pixel j1 is the first pixel in the small area.

逆にt=j2において状態が(a)から(b)へ変化す
れば画素(j2−1)が前記小領域の終わシの画素であ
ることがわかシ、画素j1から画素(コ2−1)までの
間に含まれる画素群が一つの小領域として設定される。
Conversely, if the state changes from (a) to (b) at t=j2, it can be seen that pixel (j2-1) is the last pixel of the small area, and the change from pixel j1 to pixel (k2-1) ) is set as one small area.

第6図にC=1.C=0.6の場合を示す。第6図aか
ら明らかな様に、Cみ1に近い程描画速度が最小値をと
る画素16.16g17を含んだ小領域18.19.2
0が抽出されるが。
In FIG. 6, C=1. The case where C=0.6 is shown. As is clear from FIG. 6a, the small area 18, 19, 2 including the pixel 16.16g17 where the drawing speed takes the minimum value as it approaches C1.
0 is extracted.

画素16は描画速度が速いため、屈曲点でないと判断す
るのが妥当である。第6図bKc=o、6の場合を示す
が、小領域は18.19となり1画素16を含む小領域
は抽出されなくなり、効率的である。
Since the drawing speed of pixel 16 is fast, it is appropriate to determine that it is not an inflection point. FIG. 6 b shows the case of Kc=o, 6, where the small area is 18.19, and the small area containing 1 pixel 16 is not extracted, which is efficient.

・以上の様にして抽出される各小領域内で描画速度が最
小となる画素を屈曲点候補点として抽出する0 (2)屈曲点検証処理 前記屈曲点候補点抽出処理で抽出した屈曲点候補点が屈
曲点であるか否かを検証する。
・Extract the pixel with the minimum drawing speed in each small area extracted as described above as a bending point candidate point0 (2) Bent point verification process The bending point candidate extracted in the bending point candidate point extraction process. Verify whether a point is an inflection point.

まず屈曲点候補点を中心とする画素列の開き角を測定す
るために、開き角測定の際の腕長さを以下の手順でめる
First, in order to measure the opening angle of a pixel row centered on the bending point candidate point, the arm length for measuring the opening angle is determined by the following procedure.

(1)腕長さlの初期値10を与える。(1) Give an initial value of 10 to the arm length l.

(11)第7図乙に示す様に屈曲点候補点20の前後両
方向に、それぞれl離れた地点に最も近い画素21.2
2を抽出する。
(11) As shown in FIG. 7B, the pixels 21.2 closest to the point l apart from the bending point candidate point 20 in both directions
Extract 2.

(iiD第7図すに示す様に抽出された両画素21゜2
2を結ぶ直線に屈曲点候補点20から垂線を降ろし1足
の長さdを算出する。
(iiD. Both pixels 21°2 extracted as shown in Figure 7)
A perpendicular line is drawn from the bending point candidate point 20 to the straight line connecting the points 2 to 2 to calculate the length d of one foot.

Ov)前記垂線の足の長さdが閾値りよυ小さければ1
.4−11+Δlとする0 (V) d > Dとなるまで(++)〜Gy)を繰り
返す。
Ov) 1 if the leg length d of the perpendicular line is υ smaller than the threshold
.. 4-11+Δl. Repeat (++) to Gy) until 0 (V) d>D.

以上の手順により一屈曲点候補点付近の幾伺学的な形状
を考慮した前記腕長さが算出できる0次にまった腕長さ
で屈曲点候補点を中心とする画素列の開き角を算出する
。第8図に示す様に屈曲点候補点20を中心に距離が前
記腕長さEを初めて超える両画素21.22と屈曲点候
補点20を結んだ直線の交差角を開き角とする。
Through the above procedure, the arm length can be calculated taking into account the geometrical shape in the vicinity of one bending point candidate point.The opening angle of the pixel row centered at the bending point candidate point can be calculated using the zero-order rounded arm length. calculate. As shown in FIG. 8, the intersection angle of a straight line connecting the bending point candidate point 20 and both pixels 21 and 22 whose distance exceeds the arm length E for the first time with the bending point candidate point 20 as the center is defined as the opening angle.

算出した開き角よシ、屈曲点候補点が屈曲点であるか否
か一回目の検証を行なう。その際、予め設定した次の二
つのパラメータによシ屈曲点抽出処理時間の短縮を図っ
ている。
Based on the calculated opening angle, a first verification is performed to determine whether the bending point candidate point is a bending point. At this time, the following two parameters set in advance are used to reduce the processing time for extracting bending points.

(1)認識円弧最小直径 手書き入力の際、描画方向を反転しようとすると、スタ
イラスペンの滑り等の影響により、屈曲点付近で描画勅
跡が丸まってしまう現象が起こる。この影響を無視する
ために、このパラメータ以下の直径で描かれる円弧上に
屈曲点候補点が抽出された場合1円弧として認識せず一
無条件に屈曲点としている。
(1) Recognition Minimum Arc Diameter When attempting to reverse the drawing direction during handwriting input, a phenomenon occurs in which the drawing trace becomes rounded near the bending point due to the effects of stylus pen slipping, etc. In order to ignore this influence, when a bending point candidate point is extracted on a circular arc drawn with a diameter less than this parameter, it is not recognized as one circular arc and is unconditionally set as a bending point.

(11)認識屈曲点最大開き角 このパラメータ以上の開き角を有する屈曲点候補点は、
屈曲点ではなく直線上の一点であるとみなす。
(11) Recognized bending point maximum opening angle The bending point candidate points having an opening angle greater than this parameter are:
It is considered to be a point on a straight line, not an inflection point.

以上の処理により屈曲点であるか否かを判断できない屈
曲点候補点に対して一二次元平面上の情報より二回目の
検証を行なう。即ち第9図に示す様に、直線23.24
に、それぞれ両端間に位置する画素から垂線を降ろし、
各画素からの足の長さがすべて閾値以下であれば屈曲点
候補点20を屈曲点として抽出する。
A second verification is performed on the bending point candidate points for which it cannot be determined whether or not they are bending points through the above processing, based on information on a 12-dimensional plane. That is, as shown in Fig. 9, the straight line 23.24
Drop a perpendicular line from the pixel located between each end,
If all the leg lengths from each pixel are equal to or less than the threshold value, the bending point candidate point 20 is extracted as the bending point.

■ 近似許容誤差自動設定部6 第10図に示す様に長さの異なる二本の直線を手書きし
た場合、明らかに長い線分の誤差ε2の方が大きくなる
。従って近似を行なう際の許容誤差は線分長に依存して
決定することが望ましい。
■ Approximation tolerance automatic setting section 6 When two straight lines with different lengths are drawn by hand as shown in FIG. 10, the error ε2 of the longer line segment is obviously larger. Therefore, it is desirable to determine the allowable error in approximation depending on the line segment length.

従って第11図に示す様に線分長に比例して直線と円と
円弧の各近似許容誤差を自動設定しておシ。
Therefore, as shown in Figure 11, approximation tolerances for straight lines, circles, and arcs are automatically set in proportion to the line segment length.

緻密な線要素に対しては厳密に、粗大・−な線要素に対
しては粗く近似する様に考慮している。但し一タブレッ
トの広さを考慮して上限値εhを、またタブレットの座
標値読み取り誤差を考慮して下限値εlを設定している
Consideration is given to strictly approximating dense line elements and roughly approximating coarse and negative line elements. However, the upper limit value εh is set in consideration of the width of one tablet, and the lower limit value εl is set in consideration of the error in reading the coordinate values of the tablet.

■ 線要素解析検出部6 人力されるストロークを大局的に解析し、直線や円の様
に出現頻度が高い線要素から優先的に検出するために一
ストロークを以下の手順で階層的に分割し、各線要素の
検出処理を行なう。
■Line element analysis and detection unit 6 Analyzes human strokes in a global manner and divides each stroke hierarchically according to the following steps in order to preferentially detect line elements that appear more frequently, such as straight lines and circles. , performs detection processing for each line element.

(1) 直線1円2点の検出処理(ストロークおよびプ
レセグメント単位) 屈曲点前後で分割されたプレセグメント(屈曲点が存在
し彦い場合はストローク)が直線1円あるいは点である
か否かを判断する。以下にプレセグメントが直線1円あ
るいは点として検出されるための条件をしるす。
(1) Detection process of 2 points in 1 straight line (stroke and pre-segment unit) Whether the pre-segment divided before and after the bending point (stroke if there is a bending point) is 1 straight line or a point. to judge. The conditions for detecting a pre-segment as a straight line or a point are listed below.

(1)直線の条件;第12図に示す様にプレセグメント
26の両端点を結ぶ直線26にプレセグメント26内の
全画素から垂線を降ろし。
(1) Straight line conditions: As shown in FIG. 12, perpendicular lines are drawn from all pixels in the pre-segment 26 to the straight line 26 connecting both end points of the pre-segment 26.

すべての足の長さが直線近似許容誤差内にあれば直線で
あると判断する。
If the lengths of all legs are within the straight line approximation tolerance, it is determined that the line is a straight line.

(11)円の条件:第13図に示す様なプレセグメント
27が円であるためには以下の三条性が満たされなけれ
ばならない0 (1L)プレセグメント27が閉曲線であるか否か−即
ち第13図でプレセグメント27の始終点28.29の
座標間距離Eが閾値以下であること。
(11) Condition for a circle: In order for the pre-segment 27 as shown in FIG. 13 to be a circle, the following three-row property must be satisfied. In FIG. 13, the distance E between the coordinates of the start and end points 28 and 29 of the pre-segment 27 is less than or equal to the threshold value.

(b)プレセグメント27の偏平状態を調べる。(b) Check the flatness of the pre-segment 27.

即ち、第13図においてプレセグメント27に外接する
矩形の縦横比(dy/dX)が許容偏平率内にあること
That is, the aspect ratio (dy/dX) of the rectangle circumscribing the pre-segment 27 in FIG. 13 is within the permissible aspect ratio.

(0)プレセグメント27に外接する矩形の対角線の交
点を−プレセグメント27の仮の中心点30とする。前
記中心点30と全画素間との距離を算出し、すべての画
素が離心長の許容範囲FLmtn ” RmaX内であ
ること。
(0) The intersection of the diagonal lines of the rectangle circumscribing the pre-segment 27 is set as the temporary center point 30 of the -pre-segment 27. The distance between the center point 30 and all pixels is calculated, and all pixels are within the allowable eccentric length range FLmtn''RmaX.

(111) 点の条件:プレセグメント27の始点と全
画素との距離が、すべて閾値以下であれば、点であると
判断する。
(111) Point condition: If the distances between the starting point of the pre-segment 27 and all pixels are all less than the threshold value, it is determined that the point is a point.

プレセグメントが直線2円1点のいずれでもない場合は
曲線であると判断する。
If the pre-segment is neither a straight line nor a single point, it is determined that it is a curved line.

(2)曲線プレセグメントの分割処理 曲線プレセグメントを以下の手順で直線部分と曲線部分
(右旋回線と左旋回線)に分割する。
(2) Dividing processing of curved pre-segment The curved pre-segment is divided into a straight line part and a curved part (right turning line and left turning line) according to the following procedure.

(1)曲線プレセグメントの各画素の旋回方向をめる。(1) Determine the turning direction of each pixel of the curved pre-segment.

第14図aに示す様に画素31が画素32.33を結ぶ
直線よシ、描画方向に対して左にある場合、右旋回線と
いい、ラベル2で表わし、逆に第14図すに示す様に右
にある場合、左旋回線といい、ラベル1で表わす。なお
直線上にある場合は一つ前の画素が持つラベルを引き継
ぐものとする。
If the pixel 31 is on the left of the straight line connecting the pixels 32 and 33 with respect to the drawing direction, as shown in Figure 14a, it is called a right-turning line, and is represented by label 2, and conversely as shown in Figure 14. If it is to the right, it is called a left turn line and is indicated by label 1. Note that if the pixel is on a straight line, the label of the previous pixel is inherited.

(11)第15図に示す様に曲線プレセグメントを連続
した同一旋回方向の画素群に分割する。
(11) As shown in FIG. 15, the curved pre-segment is divided into continuous pixel groups in the same turning direction.

(iii) (tDで分割した画素群のうち1画素群を
構成するために必要な最小画素数に満たない画素群に対
し、以下の処理を行なう。
(iii) (The following process is performed on pixel groups that are less than the minimum number of pixels required to form one pixel group among the pixel groups divided by tD.

(a)第16図aに示す様に一隣接する定方向旋回画素
群2.3の構成画素数が、共に最小構成画素数以上の場
合1着目している画素群34の旋回方向を隣接する画素
群36゜360旋回方向に変更する。
(a) As shown in FIG. 16a, when the number of constituent pixels of one adjacent fixed direction turning pixel group 2.3 is equal to or greater than the minimum number of constituent pixels, the turning direction of the pixel group 34 of interest is Change the pixel group rotation direction to 36°360.

(b)第16図すに示す様に、隣接する定方向旋回画素
群の構成画素数が、一方で°も最小構成画素数以下であ
れば1着目している画素群のラベルを0(直進)とする
(b) As shown in FIG. ).

Gv) (iii)で修正された定方向旋回画素群の旋
回方向に着目して1曲線プレセグメントを直線部と右旋
回線部と左旋回線部(以下セグメントと呼ぶ)に分割す
る。
Gv) Focusing on the turning direction of the fixed direction turning pixel group corrected in (iii), the one-curve pre-segment is divided into a straight line part, a right turning line part, and a left turning line part (hereinafter referred to as segments).

(3)直線セグメント検証処理 (2)でめられた直線セグメントが直線の近似許容誤差
内にあるか否かを検証する。直線セグメント内の各画素
から両端点を結ぶ直線に垂線を降ろし、全画素からの足
の長さが閾値以下であれば直線であると判断する。また
、一画素でも閾値を越える場合、両端点を結ぶ直線の左
右いずれの側に画素が偏っているかにより、左右いずれ
かの旋回線部とみなす。
(3) Verify whether the straight line segment determined in the straight line segment verification process (2) is within the straight line approximation tolerance. A perpendicular line is drawn from each pixel in the straight line segment to the straight line connecting both end points, and if the length of the legs from all pixels is equal to or less than a threshold value, it is determined that the straight line is a straight line. Furthermore, if even one pixel exceeds the threshold, it is regarded as either the left or right turning line portion, depending on whether the pixel is biased to the left or right side of the straight line connecting both end points.

(4)曲線セグメントの分割処理 @)と(3)で抽出された左右旋回線より成る曲線セグ
メントを以下の手順で一つの円弧で近似可能な部分旋回
線(以下プリミティブと呼ぶ)に分割する。
(4) Curve segment division processing @) The curved segment consisting of the left and right turning lines extracted in (3) is divided into partial turning lines (hereinafter referred to as primitives) that can be approximated by one circular arc using the following procedure.

(+) 左、右旋回線を強制的に一つの円弧で近似する
。第17図に示す様に近似円弧と各画素間との距離が、
すべて近似許容誤差内であれば、このセグメントを近似
符号化の際の最小単位であるプリミティブとする。
(+) Forcibly approximate the left and right turning lines with one circular arc. As shown in Figure 17, the distance between the approximate arc and each pixel is
If all are within the approximation tolerance, this segment is treated as a primitive, which is the minimum unit for approximation encoding.

Ui ) (i )の処理において一画素でも近似許容
誤差を越える場合は、旋回線を二つの部分旋回線に二分
割し、それぞれの部分旋回線について(1)の処理を行
なう。
If even one pixel exceeds the approximation tolerance in the process of Ui) (i), the turning line is divided into two partial turning lines, and the process (1) is performed for each partial turning line.

■ 符号化データ格納部7 ■で近似符号化の最小単位にまで分割されたプリミティ
ブの符号化データをリスト8に格納するO■ 近似記述
出力部9 手書き入力された線図形、即ち原画と、前記手書き線図
形から抽出された各プリミティブの符号化データから記
述される近似結果をディスプレイ10上に表示する0 発明の効果 以上の様に一本発明は手書き入力される線図形の幾例学
的形状を考慮して、直線要素と円要素と円弧要素の各近
似許容誤差を自動的に設定するため、緻密な線要素に対
しては厳密な、逆に粗大な線要素に対しては粗い近似符
号化が行なえる。さらに手書き入力される線図形を大局
的に解析することによシ、出現頻度が高い直線要素と円
要素を階層的に優先して検出するため、実時間で圧縮率
の高い近似符号化が行なえ、認識処理へ発展するうえで
も極めて効率的な装置である。
■ Encoded data storage unit 7 Stores the encoded data of primitives divided into the minimum units for approximate encoding in list 8 in ■ Approximate description output unit 9 The handwritten input line figure, that is, the original image, and the The approximation result described from the coded data of each primitive extracted from the handwritten line figure is displayed on the display 10. Effects of the Invention As described above, the present invention provides a geometrical shape of a line figure input by hand. The approximation tolerances for linear elements, circular elements, and arc elements are automatically set in consideration of can be converted. Furthermore, by globally analyzing line figures input by hand, linear elements and circular elements that appear frequently are prioritized and detected hierarchically, allowing for approximate encoding with high compression rates in real time. , it is an extremely efficient device for development into recognition processing.

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

第1図は手書き線図形の座標値データ図、第2図は手書
き線図形の近似記述結果を示す近似図形図、第3図は本
発明の一実施例におけるオンライン手書き線図形近似記
述装置の構成を示すブロック図、第4図〜第6図は屈曲
点候補点抽出の原理を説明するための速度分布図、第7
図〜第9図は屈曲点検証の原理を説明するための図−第
10図は手書き線図形の線分長に比例した誤差を示す比
較図、第11図は線分長と近似許容誤差の関係を示す対
応図−第12図は直線検証の原理図、第13図は円検証
の原理図−第14図は旋回方向の定義図、第16図は曲
線セグメントの分割図、第16図はラベル付けの修正図
、第17図は円弧検証の原理図である。 3・・・・・・手書き線図形入方部、4・川・・屈曲点
抽出部、6・・・・・・近似許要誤差自動設定部、6・
・・・・・線要素解析検出部、7・・・・・・符号化デ
ータ格納部、9・・・・・・近似記述出力部。 代理人の氏名 弁理士 中 尾 敏 男 ほか1名第1
図 @2図 第3図 第4図 第5図 第6図 第6図 α b 第8図 第9図 第10図 第11図 論I張 第12図 ん 第13図 第14図 Lb 第15図  O
Fig. 1 is a coordinate value data diagram of a handwritten line figure, Fig. 2 is an approximate figure diagram showing the approximate description result of a handwritten line figure, and Fig. 3 is a configuration of an online handwritten line figure approximation description device in an embodiment of the present invention. 4 to 6 are velocity distribution diagrams for explaining the principle of extraction of bending point candidate points.
Figures to Figure 9 are diagrams for explaining the principle of bending point verification. Figure 10 is a comparison diagram showing the error proportional to the line segment length of a handwritten line figure, and Figure 11 is a comparison diagram of the line segment length and approximation tolerance. Correspondence diagrams showing relationships - Figure 12 is a diagram of the principle of straight line verification, Figure 13 is a diagram of the principle of circle verification - Figure 14 is a diagram of the definition of turning direction, Figure 16 is a division diagram of curved segments, Figure 16 is a diagram of the principle of circular verification. The corrected labeling diagram, FIG. 17, is a diagram of the principle of arc verification. 3...Handwritten line figure input section, 4.River...bending point extraction section, 6...Approximation tolerance automatic setting section, 6.
. . . Line element analysis detection section, 7 . . . Encoded data storage section, 9 . . . Approximate description output section. Name of agent: Patent attorney Toshio Nakao and 1 other person No. 1
Figure @2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 6 α b Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure Lb Figure 15 O

Claims (1)

【特許請求の範囲】 手書き入力される線図形の時系列的な座標値データを得
る手書き線図形入力部と、上記座標値データから屈曲点
を抽出する屈曲点抽出部と、入力される線図形の幾何学
的な形状を考慮し直線9円。 円弧の各近似許容誤差を、緻密な線要素に対しては小さ
く、粗大な線要素に対しては大きく設定する近似待客誤
差自動設定部と、入力される線図形を大局的に解析する
ことによシ、直線や円の様な出現頻度が高い図形要素を
階層的に優先して検出し一近似記述の最小単位に分割す
る線要素解析検出部と、検出された線要素の符号化デー
タを1ノスト内に格納する符号化データ格納部と、原画
ふ・よび線要素の符号化データよシ記述される近似結果
をディスプレイ上に表示する近似記述出力部を具備し、
前記線図形を屈曲点の前後で分割した各線符号化処理を
行ない、近似記述結果をディスプレイ上に表示するオン
ライン手書き線図形近似記述装置。
[Scope of Claims] A handwritten line figure input unit that obtains time-series coordinate value data of a line figure that is input by hand; a bending point extraction unit that extracts bending points from the coordinate value data; and a line figure that is input. Considering the geometric shape of the straight line 9 circles. An automatic approximation waiting error setting unit that sets each approximation tolerance for arcs to be small for dense line elements and large for coarse line elements, and to broadly analyze input line figures. In addition, there is a line element analysis and detection unit that hierarchically prioritizes and detects frequently appearing graphical elements such as straight lines and circles and divides them into minimum units of approximation description, and encoded data of the detected line elements. an encoded data storage unit that stores the coded data in one nost, and an approximation description output unit that displays on a display an approximation result that is described based on the encoded data of the original picture and line elements,
An online handwritten line figure approximation description device that performs line encoding processing on each line by dividing the line figure before and after a bending point, and displays approximate description results on a display.
JP58158355A 1983-08-29 1983-08-29 Approximate describer for on-line handwritten linear pattern Pending JPS6049482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58158355A JPS6049482A (en) 1983-08-29 1983-08-29 Approximate describer for on-line handwritten linear pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58158355A JPS6049482A (en) 1983-08-29 1983-08-29 Approximate describer for on-line handwritten linear pattern

Publications (1)

Publication Number Publication Date
JPS6049482A true JPS6049482A (en) 1985-03-18

Family

ID=15669847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58158355A Pending JPS6049482A (en) 1983-08-29 1983-08-29 Approximate describer for on-line handwritten linear pattern

Country Status (1)

Country Link
JP (1) JPS6049482A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6257084A (en) * 1985-09-06 1987-03-12 Alps Electric Co Ltd System for processing automatic vector forming for character picture
JPH06223229A (en) * 1993-07-30 1994-08-12 Sanyo Electric Co Ltd Method for thinning out feature point of hand-written character recognition and method for detecting feature point
CN106022476A (en) * 2016-04-15 2016-10-12 河南理工大学 DE approximate representation acceleration module calculating method in rough approximate representation system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6257084A (en) * 1985-09-06 1987-03-12 Alps Electric Co Ltd System for processing automatic vector forming for character picture
JPH06223229A (en) * 1993-07-30 1994-08-12 Sanyo Electric Co Ltd Method for thinning out feature point of hand-written character recognition and method for detecting feature point
CN106022476A (en) * 2016-04-15 2016-10-12 河南理工大学 DE approximate representation acceleration module calculating method in rough approximate representation system

Similar Documents

Publication Publication Date Title
US7450125B2 (en) Method and system for representing and displaying digital ink
US7068821B2 (en) Information processing method and apparatus
JP3218004B2 (en) Test signature verification method
US6580826B1 (en) Method and apparatus for parametric representation of handwritten symbols
JP3078166B2 (en) Object recognition method
US5023918A (en) Cross-product filter
CN1619581A (en) Video based handwriting recognition system and method
JPH06274619A (en) Image processor
Qin et al. On-line segmentation of freehand sketches by knowledge-based nonlinear thresholding operations
Wolin et al. Sort, merge, repeat: An algorithm for effectively finding corners in hand-sketched strokes
JP2003051014A (en) Device and method for processing information
JP2002099911A (en) Raster image vector conversion method based on computerized automation
JPS6049482A (en) Approximate describer for on-line handwritten linear pattern
KR910001525B1 (en) Method of curve approximation
US20050207653A1 (en) Method for analysis of line objects
JPS6049483A (en) Approximate coding device for handwritten linear graphic
JP2002183739A (en) Ellipse detection method and ellipse detection device
JPH0729002A (en) Handwritten graphic recognition device
Shankar et al. Sketching in three dimensions: A beautification scheme
Yip et al. Line segment patterns Hough transform for circles detection using a 2-dimensional array
JPH0624018B2 (en) Ellipse detector
JP3368807B2 (en) Character recognition method and apparatus, and storage medium storing character recognition program
JP2633523B2 (en) Handwriting input device
JP3581506B2 (en) Shape processing method
Wang et al. Segmentation of Online Freehand Sketching Based on Speed Feature