JPH07182509A - Graphic recognition device - Google Patents

Graphic recognition device

Info

Publication number
JPH07182509A
JPH07182509A JP5326789A JP32678993A JPH07182509A JP H07182509 A JPH07182509 A JP H07182509A JP 5326789 A JP5326789 A JP 5326789A JP 32678993 A JP32678993 A JP 32678993A JP H07182509 A JPH07182509 A JP H07182509A
Authority
JP
Japan
Prior art keywords
point
elevation angle
points
reference point
interest
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP5326789A
Other languages
Japanese (ja)
Other versions
JP2682416B2 (en
Inventor
Takahisa Shirakawa
貴久 白川
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP5326789A priority Critical patent/JP2682416B2/en
Priority to US08/360,293 priority patent/US5638462A/en
Publication of JPH07182509A publication Critical patent/JPH07182509A/en
Application granted granted Critical
Publication of JP2682416B2 publication Critical patent/JP2682416B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To comparatively prevent random noise from affecting by dividing a block based on the dispersion of each sample point sandwiched by two reference points and an elevation angle formed by two vectors linking both the reference points. CONSTITUTION:Point data with the dispersion of the elevation angle and a maximum elevation angle change outputted from a separate elevation angle calculating means 105 are outputted to a reference point setting means 106. At the means 106, the dispersion of the elevation angle is compared with a prescribed first threshold value and when it is larger than the first threshold value, the point data with the maximum elevation angle change are outputted and stored in a reference point storage means 107 as the new reference point to divide the block between two reference points. When no new reference point is set, at the means 107, the curvature of that stored block is compared with the curvature of a block adjacent to that block and when the difference of respective curvatures is smaller than a prescribed second threshold value, two blocks are merged into one block. Therefore, dividing processing is continued until the blocks not to decide the division are eliminated in the means 107. Then, the reference point remained through this processing is defined as a feature point.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は線図形を認識する図形
認識装置に関するものであり、特にデジタイザやタブレ
ットを用いた手書き図形の認識装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a figure recognition apparatus for recognizing a line figure, and more particularly to a handwritten figure recognition apparatus using a digitizer or a tablet.

【0002】[0002]

【従来の技術】一般に、光学的手段で図面を読みとる図
面読みとり装置や、デジタイザやタブレットを用いた対
話的図面入力装置において、図形を認識する場合には、
図形を構成する線を直線や円弧といった基本的な区間に
分割する点(特徴点と呼ぶ)で細分化し、その区間の線
種や特徴点の位置を特定する事によって図形認識を行う
ようにしている。そのためには、図形を構成する全ての
点に対して、特徴点か否かを判定する事が必要である。
2. Description of the Related Art Generally, when a figure is recognized by a drawing reading device for reading a drawing by optical means or an interactive drawing input device using a digitizer or a tablet,
The lines that make up the figure are subdivided into points (called feature points) that divide the line into basic sections such as straight lines and arcs, and the figure recognition is performed by specifying the line types and the positions of the feature points in that section. There is. For that purpose, it is necessary to determine whether or not all the points forming the figure are characteristic points.

【0003】従来、特徴点か否かを判定するために、次
のような大別して2種類の手段がとられている。
Conventionally, in order to determine whether or not a feature point is present, the following two types of means are roughly classified.

【0004】第1の従来例は、例えば、特公平4−62
107号公報、もしくは特開昭63−24473号公報
に記載されているように、点列化された各点を所定距離
毎にサンプル点とし、n個ずつ離れた3つのサンプル点
を結んでできる2つのベクトルのなす仰角や仰角の変化
率が所定の閾値より大きい区間を特徴点とするものがあ
る。
The first conventional example is, for example, Japanese Patent Publication No. 4-62.
As described in Japanese Patent Application Laid-Open No. 107 or Japanese Patent Application Laid-Open No. 63-24473, each point formed into a sequence of points is set as a sample point at a predetermined distance, and three sample points separated by n points can be connected. There is a feature point in which an elevation angle formed by two vectors or a rate of change in elevation angle is greater than a predetermined threshold value.

【0005】図3は、この第1の従来例の構成を示すブ
ロック図である。図3を参照すると、この従来技術は、
光学的手段などにより図形を読みとる図形入力手段10
1と、読みとられた図形の点列化を行う点列読みだし手
段102と、点列読みだし手段102から入力される点
データのうち、所定距離以上離れた点毎にサンプル点と
して出力する間引き手段103と、間引き手段103の
出力するサンプル点データを、所定の個数分だけ順次記
憶する点データ記憶手段104と、点データ記憶手段1
04中の点データについて、n個ずつ離れた連続する3
つのサンプル点を順に結んでできる2つのベクトルのな
す仰角に基づき、特徴点か否かを判定し、特徴点の点デ
ータを出力する隣接仰角算出手段150と、隣接仰角算
出手段150で特徴点と判別された点データと、その特
徴点間のサンプル点データから、特徴点間の区間が直線
か曲線かを判別する線種判別手段108と、隣接仰角算
出手段150の出力する特徴点位置と、線出力判定手段
108の出力する線種に基づき図形の形状を認識する図
形形状判定手段109と、図形形状判定手段109の出
力する認識結果をディスプレイなどに表示する認識結果
表示手段110から構成される。
FIG. 3 is a block diagram showing the structure of the first conventional example. Referring to FIG. 3, this prior art
Graphic input means 10 for reading a graphic by optical means or the like
1, the point sequence reading means 102 for converting the read figure into a point sequence, and the point data input from the point sequence reading means 102 are output as sample points for each point separated by a predetermined distance or more. Thinning means 103, point data storage means 104 for sequentially storing a predetermined number of sample point data output from the thinning means 103, and point data storage means 1
For point data in 04, 3 consecutive points separated by n
Based on an elevation angle formed by two vectors formed by connecting two sample points in order, it is determined whether or not it is a feature point, and the adjacent elevation angle calculation means 150 that outputs point data of the feature point and the adjacent elevation angle calculation means 150 Line type discriminating means 108 for discriminating whether the section between the characteristic points is a straight line or a curved line from the discriminated point data and the sample point data between the characteristic points; and the characteristic point position output by the adjacent elevation angle calculating means 150, It is composed of a graphic shape determination means 109 for recognizing the shape of the graphic based on the line type output by the line output determination means 108, and a recognition result display means 110 for displaying the recognition result output by the graphic shape determination means 109 on a display or the like. .

【0006】次に、図3を参照して、第1の従来例の動
作について説明する。
Next, the operation of the first conventional example will be described with reference to FIG.

【0007】光学的手段で図面を読みとる図面読取装置
の場合と、デジタイザやタブレットを用いた対話的図面
入力装置の場合は、図形入力手段101と、点列読みだ
し手段102の処理内容が多少異なるため、それぞれに
説明する。
The processing contents of the figure input means 101 and the point sequence reading means 102 are somewhat different between the drawing reading device for reading the drawings by optical means and the interactive drawing input device using a digitizer or tablet. Therefore, each will be described.

【0008】光学的手段で図面を読みとる図面読取装置
の場合は、図形入力手段101は、例えばCCDセンサ
により図面をイメージデータに変換して、点列読みだし
手段102に供給する。例えばプログラム制御により動
作する点列読みだし手段102は、細線化処理を行うこ
とにより図面のイメージデータを連続する点列データに
変換する。
In the case of a drawing reading device for reading a drawing by optical means, the figure input means 101 converts the drawing into image data by a CCD sensor and supplies it to the point sequence reading means 102. For example, the point sequence reading means 102 that operates under program control converts the image data of the drawing into continuous point sequence data by performing thinning processing.

【0009】一方、デジタイザやタブレットを用いた対
話的図面入力装置の場合は、図形入力手段101は、例
えば抵抗皮膜センサにより人間の筆跡を座標値などを含
む点データに変換して、点列読みだし手段102に供給
する。この場合、点列読みだし手段102は、一定時間
毎に図形入力手段101から点データを読みだす。
On the other hand, in the case of an interactive drawing input device using a digitizer or a tablet, the figure input means 101 converts a human handwriting into point data including coordinate values, for example, by reading a sequence of points by a resistive film sensor. The soup stock 102 is supplied. In this case, the point sequence reading means 102 reads the point data from the figure input means 101 at regular time intervals.

【0010】これ以降の部分については、ほとんど同じ
処理となるので一括して説明する。なお、これ以降の手
段は記述のある場合をのぞき、プログラム制御により構
成されているものとする。
Since the subsequent processes are almost the same, they will be described collectively. It should be noted that the means thereafter is assumed to be configured by program control, except where described.

【0011】間引き手段103は、点列読みだし手段1
02より入力された点データと、点データ記憶手段10
4に対して最後に出力したサンプル点との距離を求め、
その距離が所定の閾値より短い時はその点を破棄し、所
定の閾値以上の時はその点をサンプル点として、点デー
タ記憶手段104に出力する。
The thinning means 103 is a point sequence reading means 1
02 and the point data storage means 10
Find the distance from the last output sample point for 4,
When the distance is shorter than the predetermined threshold value, the point is discarded, and when the distance is equal to or larger than the predetermined threshold value, the point is output to the point data storage means 104 as a sample point.

【0012】点データ記憶手段104は、例えばRAM
で構成されたFIFOであり、所定個数分の点データを
順次記憶する事ができる。所定個数を越えた点データを
入力された場合は、古い点データから順に捨てられる。
The point data storage means 104 is, for example, a RAM.
It is a FIFO configured by, and can store a predetermined number of point data sequentially. When the point data exceeding the predetermined number is input, the old point data are discarded in order.

【0013】隣接仰角算出手段150は、点データ記憶
手段104中の点データについて、n個ずつ離れた連続
する3つのサンプル点を結んでできる2つのベクトルの
なす仰角に基づき、特徴点か否かを判定する。
The adjacent elevation angle calculating means 150 determines whether or not the point data in the point data storing means 104 is a feature point based on the elevation angle formed by two vectors formed by connecting three consecutive sample points separated by n. To judge.

【0014】なお、n=1のときは隣合う3つのサンプ
ル点を順に結んでできる2つのベクトルのなす仰角を表
している。
When n = 1, the elevation angle formed by two vectors formed by sequentially connecting three adjacent sample points is shown.

【0015】また、仰角は、前後m個の以内の点におけ
る仰角との算術平均、すなわち、移動平均法による平滑
化処理を行ってもよい。
Further, the elevation angle may be subjected to arithmetic mean with the elevation angles at points within m points before and after, that is, smoothing processing by a moving average method.

【0016】この仰角に基づき特徴点を求めるには、仰
角の大きさが所定の閾値より大きい時に特徴点と判断し
ても良いし、隣合う2つの仰角の差が所定の閾値より大
きいときに特徴点と判断しても良い。
In order to obtain the feature point based on this elevation angle, it may be judged as a feature point when the magnitude of the elevation angle is larger than a predetermined threshold value, or when the difference between two adjacent elevation angles is larger than the predetermined threshold value. You may judge it as a characteristic point.

【0017】線種判別手段108では、例えば隣接仰角
算出手段150の出力する連続した2つの特徴点に挟ま
れた各サンプル点に対応する仰角を平均した値が、所定
値より大きいか否かで、その区間が直線か曲線かを判別
する。さらに、曲線と判別された場合は、同じく2つの
特徴点に挟まれた各サンプル点に対応する各仰角の分散
が、所定値より小さいか否かで円弧か否かを判別する。
In the line type discriminating means 108, for example, it is determined whether the average value of the elevation angles corresponding to the respective sample points sandwiched by two consecutive characteristic points output from the adjacent elevation angle calculating means 150 is larger than a predetermined value. , Determine whether the section is a straight line or a curve. Further, when it is determined to be a curve, it is determined whether or not the variance of each elevation angle corresponding to each sample point sandwiched between two feature points is smaller than a predetermined value to form an arc.

【0018】図形形状判定手段109は、隣接仰角算出
手段150で特徴点と判定された特徴点位置と、線種判
別手段108で判別された線種に基づき、認識対象の図
形カテゴリ毎に予め定義してある認識辞書データとの整
合を求め、その整合の度合いにより図形の形状を認識
し、その結果を認識結果表示手段110に供給する。
The figure shape determining means 109 is defined in advance for each figure category to be recognized, based on the characteristic point positions determined to be characteristic points by the adjacent elevation angle calculating means 150 and the line types determined by the line type determining means 108. Matching with the recognized recognition dictionary data is obtained, the shape of the figure is recognized according to the degree of matching, and the result is supplied to the recognition result display means 110.

【0019】認識結果表示手段110は、認識結果の図
形を表示する。なお、この認識結果を元に図形の形状や
線種などを修正するなどして清書させることも可能であ
る。
The recognition result display means 110 displays the recognition result graphic. In addition, it is also possible to make a clean copy by correcting the shape or line type of a figure based on the recognition result.

【0020】第2の従来例は、例えば、特開昭58−6
2767号公報に記載されているように、図4のような
構成をとり、任意の2点を結んでできる直線と、その2
点に挟まれた区間の点列データとの距離の最大値が所定
の閾値以下になるように、その区間を分割し、分割され
た区間を結ぶ折れ線近似を行ったのち、隣接する2つの
直線からなる折れ線のそれぞれの部分について、中央の
仰角の大小から、“かどである”、“一つの曲線にまと
められるべき部分である”、“一直線にまとめられるべ
き部分である”といった判定を行う。ここで、最後まで
残った分割点が、特徴点に対応している。
The second conventional example is, for example, Japanese Patent Laid-Open No. 58-6.
As described in Japanese Patent No. 2767, a straight line formed by connecting two arbitrary points with the configuration shown in FIG.
After dividing the section so that the maximum value of the distance between the point sequence data of the section sandwiched between the points is less than or equal to a predetermined threshold value, and performing line approximation to connect the divided sections, two adjacent straight lines For each part of the polygonal line consisting of, the judgment is made based on the magnitude of the elevation angle at the center, such as "is a corner", "is a part that should be combined into one curve", and "is a part that should be combined into a straight line". Here, the division points remaining until the end correspond to the feature points.

【0021】同様に特開平4−160687号公報に記
載されているように、任意の2点を結んでできる直線
と、その2点に挟まれた区間の点列によって囲まれた領
域の面積の大小によって、その区間を分割するか否かを
判定する方法もある。
Similarly, as described in Japanese Patent Application Laid-Open No. 4-1606887, the area of a region surrounded by a straight line formed by connecting arbitrary two points and a point sequence of a section sandwiched between the two points There is also a method of determining whether or not to divide the section depending on the size.

【0022】図4は、第2の従来例の一実施例を示すブ
ロック図である。
FIG. 4 is a block diagram showing an embodiment of the second conventional example.

【0023】図4を参照すると、この実施例は、図3に
示した第1の従来例と以下の点が異なる構成をしてい
る。
Referring to FIG. 4, this embodiment is different from the first conventional example shown in FIG. 3 in the following points.

【0024】この実施例は、点データ記憶手段104の
出力する点データを入力されて特徴点を出力する第1の
従来例の隣接仰角算出手段150に代わり、基準点記憶
手段153の出力する2つの基準点と、2つの基準点間
の点データ記憶手段104の出力する点列データとを入
力されて、基準点間を結ぶ直線と点データとの距離の最
大値と距離最大の点列データを出力する例えばプログラ
ム制御により構成された乖離距離算出手段151を備
え、第1の従来例の構成に加えて、乖離距離算出手段1
51の出力する距離の最大値が所定の閾値以上であると
き、乖離距離算出手段151の出力する距離最大の点デ
ータを出力する例えばプログラム制御により構成された
基準点設定手段152と、例えば、RAMで構成された
基準点を記憶する基準点記憶手段153を備える。
In this embodiment, instead of the adjacent elevation angle calculating means 150 of the first conventional example which receives the point data output from the point data storing means 104 and outputs the characteristic points, the reference point storing means 153 outputs 2 One reference point and the point sequence data output from the point data storage means 104 between the two reference points are input, and the maximum value of the distance between the straight line connecting the reference points and the point data and the maximum distance point sequence data Is provided, for example, the deviation distance calculating unit 151 configured by program control is provided, and the deviation distance calculating unit 1 is provided in addition to the configuration of the first conventional example.
When the maximum value of the distance output by 51 is equal to or larger than a predetermined threshold value, the reference point setting means 152 configured by, for example, program control, which outputs point data of the maximum distance output by the deviation distance calculating means 151, and, for example, RAM And a reference point storage unit 153 for storing the reference point configured by.

【0025】次に、図4を参照して、第2の従来例の動
作のうち第1の従来例と異なる部分に関する動作につい
て説明する。
Next, with reference to FIG. 4, an operation relating to a part of the operation of the second conventional example different from that of the first conventional example will be described.

【0026】基準点記憶手段153は、例えばストロー
クの開始点と終了点といった相異なる任意の2点の点デ
ータを初期値として記憶している。
The reference point storage means 153 stores point data of arbitrary two different points such as a stroke start point and a stroke end point as initial values.

【0027】乖離距離算出手段151は、基準点記憶手
段153より連続する2つの基準点を入力され、その2
つの基準点に挟まれた点列の点データを点データ記憶手
段104から読み込む。2つの基準点を結ぶ直線と、読
み込んだ各点データとの距離を求め、距離の最大値と距
離が最大となる点データを算出し、基準点設定手段15
2に出力する。
The deviation distance calculating means 151 receives two consecutive reference points from the reference point storing means 153, and then
Point data of a point sequence sandwiched between two reference points is read from the point data storage means 104. The distance between the straight line connecting the two reference points and each read point data is obtained, the maximum value of the distance and the point data having the maximum distance are calculated, and the reference point setting means 15
Output to 2.

【0028】基準点設定手段152では、基準点設定手
段152から入力された距離の最大値と所定の閾値とを
比較し、距離の最大値が閾値以上であるとき、基準点設
定手段152から入力された距離が最大となる点データ
を基準点記憶手段153に記憶させる。
The reference point setting means 152 compares the maximum value of the distance input from the reference point setting means 152 with a predetermined threshold value, and when the maximum value of the distance is equal to or larger than the threshold value, the reference point setting means 152 inputs the value. The reference point storage means 153 stores the point data having the maximum distance.

【0029】以上の処理を、乖離距離算出手段151が
評価していない連続する2つの基準点が、基準点記憶手
段153中に存在する限り繰り返し行う。
The above processing is repeated as long as two continuous reference points that are not evaluated by the deviation distance calculating means 151 exist in the reference point storing means 153.

【0030】このようにして分割された区間を結ぶ折れ
線近似を行ったのち、隣接する2つの直線からなる折れ
線のそれぞれの部分について、中央の仰角の大小から、
“かどである”、“一つの曲線にまとめられるべき部分
である”“一直線にまとめられるべき部分である”とい
った判定を行い、区間の統合処理をする。
After performing a polygonal line approximation connecting the sections divided in this way, for each part of the polygonal line consisting of two adjacent straight lines, from the magnitude of the central elevation angle,
The determination is made as to "which is the corner", "the part that should be grouped into one curve", and "the part that should be grouped into one straight line", and the sections are integrated.

【0031】[0031]

【発明が解決しようとする課題】図形入力手段101に
おいて、光学的読みとり装置を行う場合は、CCDセン
サの出力するアナログ波形を2値化するときにエッジノ
イズと呼ばれるランダムノイズが発生する。
When an optical reading device is used in the graphic input means 101, random noise called edge noise occurs when the analog waveform output from the CCD sensor is binarized.

【0032】また、タブレットなどの人間の手書きの軌
跡を読みとる装置を使う場合も、手ぶれなどのランダム
ノイズが発生する。さらに、特にLCDとタブレットを
一体化した表示一体型のタブレットの場合には、LCD
の出す電磁波の影響などでバーストノイズが発生する。
Also, when using a device such as a tablet for reading human handwritten loci, random noise such as camera shake occurs. Furthermore, especially in the case of a display-integrated tablet in which an LCD and a tablet are integrated, the LCD
Burst noise occurs due to the effect of electromagnetic waves emitted by the device.

【0033】ここで、ランダムノイズとバーストノイズ
の含まれた図形入力手段101の出力結果の例を、模式
的に図5(a)に示す。
Here, an example of the output result of the graphic input means 101 containing random noise and burst noise is schematically shown in FIG. 5 (a).

【0034】そこで上述した第1の従来の図形認識装置
では、間引き判定手段103において図形入力時のノイ
ズによる影響を排除するのに十分な長さの距離を閾値と
して用いたり、隣接仰角算出手段150においてサンプ
ル点間の個数(n)や移動平均法で用いる点の個数
(m)を調整するなど、ノイズの状態に合わせて調節を
行っている。
Therefore, in the first conventional graphic recognition apparatus described above, the thinning-out determination means 103 uses a distance long enough to eliminate the influence of noise at the time of graphic input, or the adjacent elevation angle calculation means 150. In, the number of sample points (n) and the number of points used in the moving average method (m) are adjusted to adjust to the noise state.

【0035】しかしながら、かかる方法では調整が難し
く、十分にノイズの影響が除去できない事がある。
However, this method is difficult to adjust, and the influence of noise may not be sufficiently removed.

【0036】すなわち、間引き処理での調節の場合は、
ノイズ除去能力を大きくするために、間引き距離を大き
くしすぎると、真の特徴点の付近の点が間引かれ、特徴
点の位置がずれて正しく形状の補正をした清書ができな
かったり、特徴点らしさが低く算出され特徴点数や線種
を誤まる原因となる。
That is, in the case of adjustment in the thinning process,
If the thinning distance is made too large in order to increase the noise removal capability, points near the true feature points will be thinned, and the feature points will be misaligned, making it impossible to make a clean copy with the correct shape. The point-likeness is calculated to be low, which causes a mistake in the number of characteristic points and line type.

【0037】図4(b)に示すように、ランダムノイズ
だけを除去するような長さの距離を閾値として設定する
と、間引き判定手段でバーストノイズを除去できず、そ
の位置を特徴点と誤認識する。
As shown in FIG. 4B, when a distance having a length that removes only random noise is set as a threshold value, burst noise cannot be removed by the thinning-out determination means, and its position is erroneously recognized as a feature point. To do.

【0038】また、図4(c)に示すように、バースト
ノイズをも除去するような長さの距離を閾値として設定
すると、真の特徴点付近の点を間引いてしまうことがあ
るため、点データ記憶手段104中の隣合うサンプル点
を結ぶベクトル間のなす仰角が小さくなり、隣接仰角算
出手段150において、特徴点らしさを低く算出してし
まう。
Further, as shown in FIG. 4C, if a distance having a length that also removes burst noise is set as a threshold value, points near the true feature point may be thinned out. The elevation angle formed between the vectors connecting the adjacent sample points in the data storage unit 104 becomes small, and the adjacent elevation angle calculation unit 150 calculates the feature point likelihood as low.

【0039】また、移動平均法での調節の場合は、ノイ
ズ除去能力を大きくするために、平滑化に用いる点の個
数(m)を多くしすぎると、平滑化されすぎて円弧以外
の曲線を円弧と誤認識したり、短い線の線種判定が困難
になったりする。
In the case of adjustment by the moving average method, if the number of points (m) used for smoothing is increased too much in order to increase the noise removal capability, the curve is smoothed too much and a curve other than a circular arc is generated. It may be erroneously recognized as an arc or it may be difficult to determine the line type of a short line.

【0040】移動平均法によって得られる仰角関数は、
ノイズの少ない場合には、例えば図6(a)に示すよう
になり、入力した図形の円弧部や直線部に対応する部分
は水平な線になり、その接続点に対応する部分に段差や
ピークが生じる。さらに、入力した図形の円弧以外の曲
線部に対応する部分は、傾きのある直線もしくは曲線に
なる。
The elevation function obtained by the moving average method is
When there is little noise, for example, as shown in FIG. 6A, the portion corresponding to the arc portion or the straight portion of the input figure becomes a horizontal line, and the portion corresponding to the connection point has a step or a peak. Occurs. Further, the portion corresponding to the curved portion other than the circular arc of the input figure becomes a straight line or curved line having an inclination.

【0041】しかしながら、バーストノイズなどが除去
できないほど発生した場合には、例えば図6(b)に示
すように、入力した図形の線種と仰角関数の特徴の上記
した関係が抽出困難になったり、失われたりしてしま
う。
However, when the burst noise or the like occurs to such an extent that it cannot be removed, for example, as shown in FIG. 6B, it becomes difficult to extract the above-described relationship between the line type of the input figure and the feature of the elevation angle function. , Will be lost.

【0042】また、サンプル点間の個数(n)での調節
の場合は、バーストノイズの除去には効果が少ない。す
なわち中央のサンプル点がバーストノイズであった場合
に、仰角が不当に大きくなり、その部分を特徴点と誤認
識することが多い。
Further, in the case of adjusting the number (n) between sample points, the effect of removing the burst noise is small. That is, when the central sample point is burst noise, the elevation angle becomes unreasonably large, and that portion is often mistakenly recognized as a feature point.

【0043】さらに、ランダムノイズ除去能力を大きく
するために、個数(n)を多くしすぎると、曲率の大き
な曲線部分で仰角が不当に大きくなる。そのため、曲線
部分に特徴点が生じる事がある。
Further, if the number (n) is too large in order to increase the random noise removing ability, the elevation angle becomes unreasonably large in the curved portion having a large curvature. Therefore, characteristic points may occur in the curved portion.

【0044】第2の従来の図形認識装置では、ランダム
ノイズの影響は比較的少ない。特に分割の判断指針とし
て、基準点を結ぶ直線と基準点に挟まれた点列に囲まれ
た領域の面積を用いる例ではバーストノイズの影響も小
さい。
In the second conventional figure recognition apparatus, the influence of random noise is relatively small. In particular, in the example of using the area of the region surrounded by the straight line connecting the reference points and the sequence of points sandwiched between the reference points as the determination guideline of the division, the effect of burst noise is small.

【0045】しかしながら、かかる方法では直線だけで
構成された図形の場合は問題ないが、曲線部もいくつか
の直線で構成される折れ線で近似するので、曲線部のあ
る図形の場合は問題がある。
However, with this method, there is no problem in the case of a figure composed of only straight lines, but there is a problem in the case of a figure with a curved part because the curved section is approximated by a polygonal line composed of several straight lines. .

【0046】すなわち、曲線部分を折れ線で近似した場
合、同じ円弧の一部であっても、閾値による分割のばら
つきのために折れ線の各仰角にばらつきが生じる。
That is, when the curved line portion is approximated by a polygonal line, even if it is a part of the same circular arc, the elevation angles of the polygonal line vary due to variations in division due to the threshold value.

【0047】このような仰角や仰角の推移を用いて曲線
への統合処理を行うことは、誤認識の原因となる。
Performing the integration processing into a curve using such elevation angle and elevation angle transition causes erroneous recognition.

【0048】また、曲線部分に対して多くの不要な分割
を行うため、処理速度的にも不利である。
Further, since many unnecessary divisions are performed on the curved portion, the processing speed is also disadvantageous.

【0049】[0049]

【課題を解決するための手段】上述した問題点を解決す
るための、本発明による図形認識装置は、線図形を構成
する点列中の任意の二点を基準点の初期設定値とし、点
列のつながりの順に前記基準点と、連続する2つの前記
基準点に挟まれた区間に対応する後述する仰角の平均値
から求めた曲率とを記憶し、任意の前記基準点を挟む2
つの区間に対応する前記曲率の差が、所定の第2の閾値
以下であるとき、その基準点を削除し2つの区間を統合
し、統合した区間の曲率を元の2つの区間の曲率から算
出し直す基準点記憶手段と、前記基準点記憶手段に記憶
された連続する2つの前記基準点を入力され、それらの
基準点に挟まれた区間の点列の個数で決まる間隔係数k
に従って、それら両基準点近傍の点を除くその区間の点
列について、k個間隔で順に着目点とし、それらの一方
の基準点からその着目点を経て他方の基準点に到る2つ
の線分のなす仰角の分散と、仰角変化の変化が最大であ
った着目点の点データと、前記仰角の平均値とを求める
離間仰角算出手段と、前記離間仰角算出手段の出力する
前記仰角の分散が、所定の第1の閾値より大きい時に、
対応する区間を分割する新たな基準点として、前記仰角
変化の変化が最大であった着目点の点データを前記基準
記憶手段に記憶させる基準点設定手段と、を備える。
In order to solve the above-mentioned problems, a figure recognition apparatus according to the present invention uses an arbitrary two points in a point sequence forming a line figure as an initial setting value of a reference point, The reference point and the curvature obtained from an average value of elevation angles described later corresponding to a section sandwiched between two consecutive reference points are stored in the order of connection of columns, and the reference point is sandwiched between the two.
When the difference in curvature corresponding to one section is less than or equal to a predetermined second threshold value, the reference point is deleted, the two sections are integrated, and the curvature of the integrated section is calculated from the curvatures of the two original sections. An interval coefficient k which is determined by the number of point sequences in the section sandwiched between the reference point storage means and the two consecutive reference points stored in the reference point storage means.
According to the above, regarding the point sequence of the section excluding the points in the vicinity of the both reference points, two line segments from the one reference point to the other reference point are sequentially set as the attention points at k intervals. Of the elevation angle made by, the point data of the point of interest where the change of the elevation angle is the largest, the separation elevation angle calculating means for obtaining the average value of the elevation angle, the dispersion of the elevation angle output by the separation elevation angle calculating means , Greater than a predetermined first threshold,
As a new reference point for dividing the corresponding section, there is provided a reference point setting means for storing the point data of the point of interest having the largest change in elevation angle in the reference storage means.

【0050】[0050]

【実施例】本発明について図面を参照して、説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described with reference to the drawings.

【0051】図1は、本発明の実施例を示すブロック図
である。
FIG. 1 is a block diagram showing an embodiment of the present invention.

【0052】図1を参照すると、本発明の実施例は、図
4に示した従来例と以下の点が異なる構成をしている。
Referring to FIG. 1, the embodiment of the present invention has a configuration different from the conventional example shown in FIG. 4 in the following points.

【0053】この実施例は、従来の乖離距離算出手段1
51に代わり、離間仰角算出手段105を備え、従来の
基準点設定手段152に代わり、基準点設定手段106
を備え、従来の基準点記憶手段153に代わり、基準点
記憶手段107を備える。
In this embodiment, the conventional deviation distance calculating means 1 is used.
In place of 51, a separation elevation angle calculating means 105 is provided, and in place of the conventional reference point setting means 152, reference point setting means 106.
In addition to the conventional reference point storage means 153, the reference point storage means 107 is provided.

【0054】なお、離間仰角算出手段105と、基準点
設定手段106は、例えばプログラム制御により動作す
る。基準点記憶手段107は、例えばプログラム制御に
より動作する制御部と、線形リスト構造や木構造になっ
ている記憶部からなる。
The separation elevation angle calculating means 105 and the reference point setting means 106 operate under program control, for example. The reference point storage means 107 includes, for example, a control unit that operates under program control and a storage unit that has a linear list structure or a tree structure.

【0055】次に、図1を参照して、この実施例の動作
のうち前記した従来例と異なる部分に関係する動作につ
いて説明する。
Next, with reference to FIG. 1, an operation relating to a part of the operation of this embodiment different from the above-mentioned conventional example will be described.

【0056】認識開始時点では、基準点記憶手段107
は、例えばストロークの開始点と終了点といった相異な
る任意の2点の点データを初期値として記憶している。
At the start of recognition, the reference point storage means 107
Stores, as initial values, point data of arbitrary two different points such as a stroke start point and a stroke end point.

【0057】基準点記憶手段107中の連続する2つの
基準点に挟まれた区間について、さらに細かい区間に分
割するか否かを判定する分割処理と、基準点記憶手段1
07中の連続する2つの区間について、1つの区間に統
合するか否かを判定する統合処理とを、以下のようにし
て行う。
Division processing for determining whether or not to divide a section sandwiched between two consecutive reference points in the reference point storage means 107 into finer sections, and the reference point storage means 1
An integration process for determining whether or not to integrate two continuous sections in 07 into one section is performed as follows.

【0058】離間仰角算出手段105は、基準点記憶手
段107より連続する2つの基準点を入力され、その2
つの基準点に挟まれた両基準点の近傍を除く点列の点デ
ータを点データ記憶手段104から読み込み、順に着目
点とする。
The separation elevation angle calculation means 105 receives two consecutive reference points from the reference point storage means 107, and then 2
Point data of a point sequence excluding the vicinity of both reference points sandwiched between two reference points is read from the point data storage means 104, and is set as a point of interest in order.

【0059】この際、全ての点を着目点とすることは、
冗長であり計算時間の浪費となるので一定の間隔で間引
いても良い。さらに、短い区間でも必要な着目点数が得
られ、かつ長い区間でも間引きの効果がでるように、間
引きの幅を区間の点列の個数に応じて増減させても良
い。
At this time, setting all points as the points of interest means
Since it is redundant and wastes calculation time, it may be thinned out at regular intervals. Furthermore, the width of thinning may be increased or decreased according to the number of point sequences in the section so that the required number of points of interest can be obtained even in a short section and the thinning effect can be obtained even in a long section.

【0060】各着目点について、一方の基準点から着目
点を経て他方の基準点に到る2つの線分のなす仰角を求
め、その平均と分散を求め、さらに仰角変化の変化が最
大であった着目点の点データを求める。
For each point of interest, the elevation angle formed by the two line segments from one reference point to the other reference point via the point of interest is determined, the average and variance are determined, and the change in elevation angle is the largest. Obtain the point data of the point of interest.

【0061】離間仰角算出手段105の出力した仰角の
分散と仰角変化の変化が最大であった点データは、基準
点設定手段106に出力される。
The point data output by the separated elevation angle calculation means 105 at which the variance of the elevation angle and the change in elevation angle are the maximum are output to the reference point setting means 106.

【0062】基準点設定手段106では、仰角の分散と
所定の第1の閾値とを比較する。そして、仰角の分散が
所定の第1の閾値以上である時は、仰角変化の変化が最
大であった点データを出力し、先ほどの2つの基準点間
の区間を分割する新たな基準点として基準点記憶手段1
07に記憶させる。
The reference point setting means 106 compares the variance of the elevation angle with a predetermined first threshold value. Then, when the variance of the elevation angle is equal to or greater than the predetermined first threshold value, the point data with the largest change in elevation angle is output, and is used as a new reference point for dividing the section between the two reference points. Reference point storage means 1
It is stored in 07.

【0063】離間仰角算出手段105の出力した仰角の
平均値は基準点記憶手段107に出力される。先ほどの
2つの基準点に挟まれた区間の曲率に変換されて記憶さ
れる。
The average value of the elevation angles output from the separation elevation angle calculation means 105 is output to the reference point storage means 107. It is converted into the curvature of the section sandwiched between the two reference points and stored.

【0064】基準点記憶手段107では、先ほどの2つ
の基準点に挟まれた区間を分割するような新たな基準点
が設定されなかったときは、先ほど記憶したその区間の
曲率とその区間に隣接する区間の曲率とを比較する。
In the reference point storage means 107, when a new reference point that divides the section sandwiched between the two reference points is not set, the curvature of the section stored earlier and the adjacent section are stored. Compare with the curvature of the section.

【0065】互いの曲率の差が所定の第2の閾値以下で
あるときは、その2つの区間を1つの区間に統合する。
すなわち、その2つの区間に挟まれた基準点を削除し、
元の区間の曲率から(平均をとるなどして)統合された
区間の曲率を計算し設定する。
When the difference between the curvatures is equal to or smaller than the predetermined second threshold value, the two sections are integrated into one section.
That is, the reference point sandwiched between the two sections is deleted,
Calculate and set the curvature of the integrated section from the curvature of the original section (by taking the average, etc.).

【0066】平均仰角より曲率を求める方法は、例えば
次のようにすれば良い。まず、両基準点を結ぶ直線を底
辺とし、頂角が平均仰角と等しい第1の2等辺三角形を
もとめる。つぎに、第1の2等辺三角形のどちらか一方
の斜辺を底辺とし、低角が平均仰角の半分である第2の
2等辺三角形を求める。すると、第2の2等辺三角形の
斜辺の長さが曲率になる。
The method of obtaining the curvature from the average elevation angle may be as follows, for example. First, a straight line connecting both reference points is taken as a base, and a first isosceles triangle whose apex angle is equal to the average elevation angle is obtained. Next, using either one of the first isosceles triangles as the base, the second isosceles triangle whose low angle is half the average elevation angle is obtained. Then, the length of the hypotenuse of the second isosceles triangle becomes the curvature.

【0067】以上のようにして、基準点記憶手段107
中に分割判定をしていない区間が無くなるまで分割処理
が行われる。このような処理を経て、残った基準点を特
徴点とする。
As described above, the reference point storage means 107
The division process is performed until there is no section in which division determination is not performed. After such processing, the remaining reference points are set as feature points.

【0068】図2を参照して、具体的に説明する。A specific description will be given with reference to FIG.

【0069】入力された図形が図2(a)であったとす
ると、特徴点はA,D,Bの3点である。
If the input figure is as shown in FIG. 2A, the characteristic points are three points A, D and B.

【0070】ここで、A,Bの2点は端点であるので検
出は容易である。そこで、この2点を基準点の初期値と
して、基準点記憶手段107に格納し分割処理を開始す
る。
Since the two points A and B are end points, detection is easy. Therefore, these two points are stored in the reference point storage means 107 as initial values of the reference points, and the division processing is started.

【0071】基準点記憶手段107は、離間仰角算出手
段105に基準点として、点Aと点Bを出力する。
The reference point storage means 107 outputs the points A and B to the separated elevation angle calculation means 105 as reference points.

【0072】離間仰角算出手段105は、AB間の点列
の個数に応じた適当な間隔でもって、AB両基準点近傍
を除く点列を順に着目点とし、基準点Aから着目点を経
て基準点Bに到る線分の仰角を求め、それらの仰角の平
均値と分散を算出し、さらに仰角変化の変化が最大の着
目点を算出する。
The spaced-apart elevation angle calculation means 105 sets the point sequence excluding the vicinity of both AB reference points in order at an appropriate interval according to the number of point sequences between AB, and sets the reference point A to the reference point. The elevation angle of the line segment reaching the point B is obtained, the average value and variance of the elevation angles are calculated, and the point of interest with the largest change in elevation angle is calculated.

【0073】仰角の平均値は、基準点記憶手段107に
出力され、基準点ABに挟まれる区間の曲率に変換され
て記憶される。
The average value of the elevation angles is output to the reference point storage means 107, converted into the curvature of the section sandwiched between the reference points AB, and stored.

【0074】ABを両基準点とする仰角は、ノイズの無
い理想状態では図2(b)のようになる。
The elevation angle with AB as both reference points is as shown in FIG. 2B in the ideal state where there is no noise.

【0075】ランダムノイズによる変動は基準点と着目
点の距離と比較して非常に小さいので、大きな影響は受
けないが、バーストノイズによる変動は基準点と着目点
の距離と比較して無視できない程度の大きさである。
Since the fluctuation due to random noise is very small compared to the distance between the reference point and the point of interest, it is not greatly affected, but the fluctuation due to burst noise is not negligible compared with the distance between the reference point and the point of interest. Is the size of.

【0076】ここで曲線部A,D間の点Cにバーストノ
イズがあったとすると、ABを両基準点とする仰角は、
図2(c)のようになる。
If there is a burst noise at the point C between the curved portions A and D, the elevation angle with AB as both reference points is
It becomes like FIG.2 (c).

【0077】以降は、図2(c)のような状態の入力で
あったとして説明を行う。
Hereinafter, description will be made assuming that the input is in the state as shown in FIG.

【0078】離間仰角算出手段105は、仰角変化の変
化の最大の着目点として点Cを選択する。
The separated elevation angle calculating means 105 selects the point C as the point of greatest interest in the change in elevation angle.

【0079】基準点設定手段106は、離間仰角算出手
段105の出力した仰角の分散を所定の第1の閾値と比
較する。図2(c)から分かるように仰角はかなりばら
ついた値をしており、仰角の分散は所定の第1の閾値よ
り大きくなる。
The reference point setting means 106 compares the variance of the elevation angle output from the separated elevation angle calculating means 105 with a predetermined first threshold value. As can be seen from FIG. 2 (c), the elevation angle varies considerably, and the dispersion of the elevation angle becomes larger than the predetermined first threshold value.

【0080】そこで基準点設定手段106は、点Cを新
たな基準点として基準点記憶手段107に記憶させる。
Therefore, the reference point setting means 106 stores the point C in the reference point storage means 107 as a new reference point.

【0081】この時点で、基準点記憶手段107には、
点A,点C,点Bの3点が記憶され、分割判定をしてい
ない区間としてACとCBの2区間が存在している。
At this point, the reference point storage means 107 stores
Three points, point A, point C, and point B, are stored, and two sections, AC and CB, exist as sections for which division determination has not been performed.

【0082】次に基準点記憶手段107は、離間仰角算
出手段105に基準点として、点Aと点Cを出力する。
Next, the reference point storage means 107 outputs the points A and C to the separated elevation angle calculation means 105 as reference points.

【0083】離間仰角算出手段105は、同様にAC間
の点列の個数に応じた適当な間隔でもって、AC両基準
点近傍を除く点列を順に着目点とし、基準点Aから着目
点を経て基準点Cに至る線分の仰角を求め、それらの仰
角の平均値と分散を算出し、さらに仰角変化の変化が最
大の着目点を算出する。
Similarly, the separation elevation angle calculation means 105 sets the point sequence excluding the vicinity of both AC reference points in order at appropriate intervals according to the number of point sequences between ACs, and determines the reference point from the reference point A. Then, the elevation angle of the line segment reaching the reference point C is obtained, the average value and variance of the elevation angles are calculated, and the point of interest with the largest change in elevation angle is calculated.

【0084】仰角の平均値は、基準点記憶手段107に
出力され、基準点ACに挟まれる区間の曲率に変換され
て記憶される。
The average value of the elevation angles is output to the reference point storage means 107, converted into the curvature of the section sandwiched between the reference points AC, and stored.

【0085】ACを両基準点とする仰角は、図2(d)
のようになる。
The elevation angle with AC as both reference points is shown in FIG.
become that way.

【0086】離間仰角算出手段105は、仰角変化の変
化の最大の着目点として点Dを選択する。
The separated elevation angle calculation means 105 selects the point D as the maximum focus point of the change in elevation angle.

【0087】基準点設定手段106は、離間仰角算出手
段105の出力した仰角の分散を所定の第1の閾値と比
較する。図2(d)から分かるように仰角はかなりばら
ついた値をしており、仰角の分散は所定の第1の閾値よ
り大きくなる。
The reference point setting means 106 compares the variance of the elevation angle output from the separated elevation angle calculating means 105 with a predetermined first threshold value. As can be seen from FIG. 2 (d), the elevation angle varies considerably, and the dispersion of the elevation angle becomes larger than the predetermined first threshold value.

【0088】そこで基準点設定手段106は、点Dを新
たな基準点として基準点記憶手段107に記憶させる。
Therefore, the reference point setting means 106 stores the point D in the reference point storage means 107 as a new reference point.

【0089】この時点で、基準点記憶手段107には、
点A,点D,点C,点Bの4点が記憶され、分割判定を
していない区間としてAD,DCとCBの3区間が存在
している。
At this point, the reference point storage means 107 stores
Four points, point A, point D, point C, and point B are stored, and there are three sections, AD, DC, and CB, which are not subjected to division determination.

【0090】次に基準点記憶手段107は、離間仰角算
出手段105に基準点として、点Aと点Dを出力する。
Next, the reference point storage means 107 outputs points A and D as reference points to the separation elevation angle calculation means 105.

【0091】離間仰角算出手段105は、同様に仰角の
平均値と分散を算出し、さらに仰角変化の変化が最大の
着目点を算出する。
The separated elevation angle calculation means 105 similarly calculates the average value and variance of the elevation angles, and further calculates the point of interest with the largest change in elevation angle.

【0092】仰角の平均値は、基準点記憶手段107に
出力され、基準点ADに挟まれる区間の曲率に変換され
て記憶される。
The average value of the elevation angles is output to the reference point storage means 107, converted into the curvature of the section sandwiched between the reference points AD, and stored.

【0093】ADを両基準点とする仰角は、区間ADが
直線区間であるから、全てほぼ0である。
The elevation angles with AD as both reference points are all substantially 0 because the section AD is a straight section.

【0094】すなわち仰角の分散は非常に小さい値とな
るため、基準点設定手段106は区間ADを分割しな
い。
That is, since the variance of the elevation angle becomes a very small value, the reference point setting means 106 does not divide the section AD.

【0095】この時点で、基準点記憶手段107には、
点A,点D,点C,点Bの4点が記憶され、分割判定を
していない区間としてDCとCBの2区間が存在してい
る。
At this point, the reference point storage means 107 stores
Four points, point A, point D, point C, and point B are stored, and two sections, DC and CB, exist as sections for which division determination has not been performed.

【0096】次に基準点記憶手段107は、離間仰角算
出手段105に基準点として、点Dと点Cを出力する。
Next, the reference point storage means 107 outputs the points D and C as the reference points to the separation elevation angle calculation means 105.

【0097】離間仰角算出手段105は、同様に仰角の
平均値と分散を算出し、さらに仰角変化の変化が最大の
着目点を算出する。
The separated elevation angle calculation means 105 similarly calculates the average value and variance of the elevation angles, and further calculates the point of interest with the largest change in elevation angle change.

【0098】仰角の平均値は、基準点記憶手段107に
出力され、基準点DCに挟まれる区間の曲率に変換され
て記憶される。
The average value of elevation angles is output to the reference point storage means 107, converted into the curvature of the section sandwiched between the reference points DC, and stored.

【0099】DCを両基準点とする仰角は、区間DCが
円弧区間であるから、ほぼ一定の値をとる。すなわち仰
角の分散は非常に小さい値となるため、基準点設定手段
106は区間DCを分割しない。
The elevation angle with DC as both reference points has a substantially constant value because the section DC is an arc section. That is, since the variance of the elevation angle is a very small value, the reference point setting unit 106 does not divide the section DC.

【0100】ここで、基準点記憶手段107において、
区間ADの曲率と区間DCの曲率との比較が行われる
が、無限大と区間DCの半径の比較であるから統合され
る事はない。
Here, in the reference point storage means 107,
Although the curvature of the section AD and the curvature of the section DC are compared, they are not integrated because they are the infinity and the radius of the section DC.

【0101】この時点で、基準点記憶手段107には、
点A,点D,点C,点Bの4点が記憶され、分割判定を
していない区間としてCBの1区間が存在している。
At this point, the reference point storage means 107 stores
Four points, point A, point D, point C, and point B are stored, and one section CB exists as a section for which division determination is not performed.

【0102】次に基準点記憶手段107は、離間仰角算
出手段105に基準点として、点Cと点Bを出力する。
Next, the reference point storage means 107 outputs points C and B as reference points to the separated elevation angle calculation means 105.

【0103】離間仰角算出手段105は、同様に仰角の
平均値と分散を算出し、さらに仰角変化の変化が最大の
着目点を算出する。
The separated elevation angle calculation means 105 similarly calculates the average value and variance of the elevation angles, and further calculates the point of interest with the largest change in elevation angle change.

【0104】仰角の平均値は、基準点記憶手段107に
出力され、基準点CBに挟まれる区間の曲率に変換され
て記憶される。
The average value of the elevation angles is output to the reference point storage means 107, converted into the curvature of the section sandwiched between the reference points CB, and stored.

【0105】CBを両基準点とする仰角は、区間CBが
円弧区間であるから、ほぼ一定の値をとる。
The elevation angle with CB as both reference points takes a substantially constant value because the section CB is an arc section.

【0106】すなわち仰角の分散は非常に小さい値とな
るため、基準点設定手段106は区間CBを分割しな
い。
That is, since the variance of the elevation angle becomes a very small value, the reference point setting means 106 does not divide the section CB.

【0107】ここで、区間DCの曲率と区間CBの曲率
との比較が行われる。もともと区間DCと区間CBは同
一円弧であるので、2つの曲率の差は第2の閾値より小
さい値となり、区間DCと区間CBは統合される。すな
わち、基準点Cを削除し、区間DCの曲率と区間CBの
曲率から区間DBの曲率が求められる。
Here, the curvature of the section DC and the curvature of the section CB are compared. Since the section DC and the section CB are originally the same arc, the difference between the two curvatures is a value smaller than the second threshold value, and the section DC and the section CB are integrated. That is, the reference point C is deleted, and the curvature of the section DB is obtained from the curvature of the section DC and the curvature of the section CB.

【0108】この時点で、基準点記憶手段107には分
割判定をしていない区間は存在しないので、記憶されて
いる3つの基準点 − 点A,点D,点B − が特徴
点として出力される。
At this point, since there is no section in the reference point storage means 107 for which division determination has not been made, three stored reference points--point A, point D, and point B--are output as feature points. It

【0109】[0109]

【発明の効果】以上説明したように、本発明による図形
認識装置では、2つの基準点に挟まれた各サンプル点と
両基準点とを結ぶ2つのベクトルのなす仰角の分散を元
に区間の分割を行う。
As described above, in the figure recognition apparatus according to the present invention, the interval of the section is determined based on the variance of the elevation angle formed by the two vectors connecting the sample points sandwiched between the two reference points and the two reference points. Make a split.

【0110】基準点間のサンプル点と基準点とを結ぶベ
クトルは、隣合うサンプル点を結ぶベクトルに比べて非
常に長いので、サンプル点の位置変動があっても仰角の
変動は小さい。すなわち、ランダムノイズの影響を比較
的受けない。
Since the vector connecting the sample points between the reference points and the reference point is much longer than the vector connecting the adjacent sample points, the elevation angle variation is small even if the position of the sample point varies. That is, it is relatively unaffected by random noise.

【0111】さらに同じ理由から、同じ解像度の入力図
形から区間の分割判定の基礎となる仰角を高精度に求め
ることができる。
Further, for the same reason, the elevation angle, which is the basis for the division determination of the section, can be obtained with high accuracy from the input figure having the same resolution.

【0112】また、これらの仰角の分散をとることによ
り区間の分割判定を行うので、変動距離が大きくても発
生頻度の少ないバーストノイズの影響を比較的受けな
い。
Since the division of the section is determined by taking the variance of these elevation angles, it is relatively unaffected by the burst noise, which rarely occurs even if the variation distance is large.

【0113】このためランダムノイズやバーストノイズ
に比較的影響されない、良好な特徴点抽出が可能であ
る。
Therefore, excellent feature points can be extracted which are relatively unaffected by random noise and burst noise.

【0114】また、直線だけでなく曲率の等しい曲線の
場合も仰角の分散が小さくなるため、円弧を分割するこ
とがなく、曲線部の途中に誤った特徴点を生成する事が
なくなる。
Further, in the case of not only a straight line but also a curve having the same curvature, the variance of the elevation angle is small, so that the arc is not divided and an erroneous feature point is not generated in the middle of the curved portion.

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

【図1】本発明による図形認識装置の実施例を示すブロ
ック図である。
FIG. 1 is a block diagram showing an embodiment of a figure recognition device according to the present invention.

【図2】図1に示す実施例の動作の説明図である。FIG. 2 is an explanatory diagram of an operation of the embodiment shown in FIG.

【図3】第1の従来の図形認識装置の一実施例を示すブ
ロック図である。
FIG. 3 is a block diagram showing an embodiment of a first conventional graphic recognition apparatus.

【図4】第2の従来の図形認識装置の一実施例を示すブ
ロック図である。
FIG. 4 is a block diagram showing an embodiment of a second conventional graphic recognition apparatus.

【図5】図1〜3に示す間引き手段103の出力の説明
図である。
FIG. 5 is an explanatory diagram of an output of the thinning means 103 shown in FIGS.

【図6】図3に示す隣接仰角算出手段150の説明図で
ある。
6 is an explanatory diagram of an adjacent elevation angle calculating means 150 shown in FIG.

【符号の説明】[Explanation of symbols]

101 図形入力手段 102 点列読みだし手段 103 間引き手段 104 点データ記憶手段 105 本発明による離間仰角算出手段 106 本発明による基準点設定手段 107 本発明による基準点記憶手段 108 線種判別手段 109 図形形状判定手段 110 認識結果表示手段 150 第1の従来例による隣接仰角算出手段 151 第2の従来例による乖離距離算出手段 152 第2の従来例による基準点設定手段 153 第2の従来例による基準点記憶手段 101 Graphic Input Means 102 Point Sequence Reading Means 103 Thinning Means 104 Point Data Storage Means 105 Separation and Elevation Angle Calculation Means 106 Present Reference Point Setting Means 107 Present Reference Point Storage Means 108 Line Type Discrimination Means 109 Graphic Shapes Judgment means 110 Recognition result display means 150 Adjacent elevation angle calculation means 151 according to first conventional example 151 Deviation distance calculation means according to second conventional example 152 Reference point setting means 153 according to second conventional example Reference point storage according to second conventional example means

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06K 9/48 9289−5L 9061−5L G06F 15/70 365 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display location G06K 9/48 9289-5L 9061-5L G06F 15/70 365

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 入力された線図形を少なくとも座標値を
含む点データの並びに変換し、前記点データの並びから
特徴点(端点、屈曲点や変曲点)を算出し、直線や円弧
といった基本的な線種と見なせる区間に前記特徴点を境
に前記線図形を分割し、 前記特徴点の位置関係や前記区間の線種を補正すること
により前記線図形を近似する、あるいは前記特徴点や前
記区間の線種と所定の辞書データとの整合性を計算する
ことにより前記線図形の種類を認識する図形認識装置に
おいて、 前記点データ中の任意の二点を初期設定値として、点デ
ータのつながりの順に基準点を記憶する基準点記憶手段
と、 前記基準点記憶手段に記憶された連続する2つの前記基
準点を着目基準点とし、 前記着目基準点に挟まれた区間の点列についてk個間隔
で順に着目点とし、 2つの前記着目基準点から前記着目点へ向かう2つの線
分のなす仰角の散布度を求める離間仰角算出手段と、 前記離間仰角算出手段の出力する前記仰角の散布度が所
定の第1の閾値より大きい時に、対応する区間を分割す
る新たな基準点を生成し前記基準点記憶手段に記憶させ
る基準点設定手段と、 を備えることを特徴とする図形認識装置。
1. An input line figure is converted into an array of point data including at least coordinate values, characteristic points (end points, bending points and inflection points) are calculated from the arrangement of the point data, and basic points such as straight lines and arcs are calculated. The line figure is divided at the feature point into a section that can be regarded as a typical line type, and the line figure is approximated by correcting the positional relationship of the feature points or the line type of the section, or the feature point or In the figure recognition device for recognizing the type of the line figure by calculating the consistency between the line type of the section and predetermined dictionary data, any two points in the point data are set as initial setting values, and A reference point storage unit that stores reference points in the order of connection, and two consecutive reference points stored in the reference point storage unit are reference points of interest, and k is a point sequence in a section sandwiched between the reference points of interest. Wear one by one at intervals And a separation elevation angle calculating unit that obtains a dispersion degree of an elevation angle formed by two line segments extending from the two attention reference points to the attention point, and a dispersion degree of the elevation angle output by the separation elevation angle calculation unit is a predetermined number. A reference point setting unit that generates a new reference point that divides a corresponding section when the threshold value is greater than 1 and stores the new reference point in the reference point storage unit.
【請求項2】 前記離間仰角算出手段が、前記着目基準
点に挟まれた区間の点列のうち2つの前記着目基準点近
傍を除く点列についてk個間隔で順に着目点とし、 2つの前記着目基準点から前記着目点へ向かう2つの線
分のなす仰角の散布度を求めることを特徴とする請求項
1記載の図形認識装置。
2. The distance elevation angle calculating means sequentially sets k points of interest as point-of-interest points for point sequences excluding two points near the reference point of interest in the point sequence of the section sandwiched between the reference points of interest, and the two points The pattern recognition apparatus according to claim 1, wherein the degree of elevation angle dispersion made by two line segments from the reference point of interest to the target point is obtained.
【請求項3】 前記離間仰角算出手段が、前記着目基準
点に挟まれた区間の点列の個数に応じて、前記着目点を
選択する際のkの値を増減することを特徴とする請求項
1ないし2記載の図形認識装置。
3. The separation elevation angle calculating means increases or decreases the value of k when selecting the point of interest in accordance with the number of point sequences in the section sandwiched by the reference points of interest. The pattern recognition device according to items 1 or 2.
【請求項4】 前記離間仰角算出手段が、前記散布度に
加えて仰角変化の変化が最大であった前記着目点の点デ
ータを出力し、 前記基準点設定手段が、新たな基準点を生成する条件が
成立したときに、前記仰角変化の変化が最大であった着
目点の点データを新たな前記基準点として生成すること
を特徴とする請求項1ないし3記載の図形認識装置。
4. The separation elevation angle calculating means outputs point data of the point of interest that has the largest change in elevation angle in addition to the dispersion degree, and the reference point setting means generates a new reference point. 4. The figure recognition device according to claim 1, wherein the point data of the point of interest at which the change in elevation angle is the largest is generated as the new reference point when the condition is satisfied.
【請求項5】 前記離間仰角算出手段が、前記散布度や
前記仰角変化の変化が最大であった着目点の点データに
加えて、仰角の代表値を出力し、 前記基準点記憶手段が、前記基準点に加えて、連続する
2つの前記基準点に挟まれた区間に対応する前記仰角の
代表値から求めた曲率を記憶し、 任意の前記基準点を挟む2つの区間に対応する前記曲率
の差が、所定の第2の閾値以下であるとき、その基準点
を削除し、それら2つの区間を統合し、統合した区間の
曲率を元の2つの区間の曲率から算出し直すことを特徴
とする請求項1ないし4記載の図形認識装置。
5. The separated elevation angle calculating means outputs a representative value of elevation angle in addition to the point data of the point of interest at which the degree of dispersion or the change in elevation angle is the largest, and the reference point storage means, In addition to the reference point, a curvature obtained from a representative value of the elevation angle corresponding to a section sandwiched between two consecutive reference points is stored, and the curvature corresponding to two sections sandwiching any reference point is stored. When the difference of is less than or equal to a predetermined second threshold value, the reference point is deleted, the two sections are integrated, and the curvature of the integrated section is recalculated from the curvatures of the original two sections. The pattern recognition device according to claim 1.
【請求項6】 前記離間仰角算出手段で算出する前記散
布度が分散であり、前記代表値が平均値であることを特
徴とする請求項1ないし5記載の図形認識装置。
6. The figure recognition device according to claim 1, wherein the dispersion degree calculated by the separation elevation angle calculation means is dispersion, and the representative value is an average value.
JP5326789A 1993-12-24 1993-12-24 Figure recognition device Expired - Fee Related JP2682416B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP5326789A JP2682416B2 (en) 1993-12-24 1993-12-24 Figure recognition device
US08/360,293 US5638462A (en) 1993-12-24 1994-12-21 Method and apparatus for recognizing graphic forms on the basis of elevation angle data associated with sequence of points constituting the graphic form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5326789A JP2682416B2 (en) 1993-12-24 1993-12-24 Figure recognition device

Publications (2)

Publication Number Publication Date
JPH07182509A true JPH07182509A (en) 1995-07-21
JP2682416B2 JP2682416B2 (en) 1997-11-26

Family

ID=18191729

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5326789A Expired - Fee Related JP2682416B2 (en) 1993-12-24 1993-12-24 Figure recognition device

Country Status (1)

Country Link
JP (1) JP2682416B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007287145A (en) * 2006-04-12 2007-11-01 Fujitsu Ltd Shape comparing device and shape comparing method
US7359551B2 (en) 2001-10-15 2008-04-15 Silverbrook Research Pty Ltd Method and apparatus for decoding handwritten characters
CN113256461A (en) * 2021-05-18 2021-08-13 杭州米络星科技(集团)有限公司 Online operation approval method, device, server and storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7359551B2 (en) 2001-10-15 2008-04-15 Silverbrook Research Pty Ltd Method and apparatus for decoding handwritten characters
US7697761B2 (en) 2001-10-15 2010-04-13 Silverbrook Research Pty Ltd Method and apparatus for classifying an input character
US7848574B2 (en) 2001-10-15 2010-12-07 Silverbrook Research Pty Ltd Classifying an input character
US8009914B2 (en) 2001-10-15 2011-08-30 Silverbrook Research Pty Ltd Handwritten character recognition
US8280168B2 (en) 2001-10-15 2012-10-02 Silverbrook Research Pty Ltd Handwritten character recognition system
JP2007287145A (en) * 2006-04-12 2007-11-01 Fujitsu Ltd Shape comparing device and shape comparing method
CN113256461A (en) * 2021-05-18 2021-08-13 杭州米络星科技(集团)有限公司 Online operation approval method, device, server and storage medium

Also Published As

Publication number Publication date
JP2682416B2 (en) 1997-11-26

Similar Documents

Publication Publication Date Title
JP3343864B2 (en) How to separate words
US20030185445A1 (en) Method for extracting and matching gesture features of image
WO2003077199A1 (en) Fingerprint matching device, fingerprint matching method, and program
JP2003529114A (en) Optical scanner and software for it
US6430308B1 (en) Handwriting verification device
US5638462A (en) Method and apparatus for recognizing graphic forms on the basis of elevation angle data associated with sequence of points constituting the graphic form
US7295707B2 (en) Method for aligning gesture features of image
JPH07220026A (en) Method and device for picture processing
JP2682416B2 (en) Figure recognition device
JP2626528B2 (en) Figure recognition device
JP2778439B2 (en) Figure recognition device
JP2865528B2 (en) Fingerprint collation device
JP3574562B2 (en) Method for recognizing and detecting deformation of a series of patterns in an image and recording medium storing the program
JP2858530B2 (en) Edge enhancement device
JPH07200735A (en) Graphic recognition device
JP3883993B2 (en) Image processing apparatus, method, and program
JP4796165B2 (en) Image processing device
JPH10162102A (en) Character recognition device
KR100313991B1 (en) Method for detecting slope of document image
JP2840485B2 (en) Image processing method and apparatus
JP2755299B2 (en) Image processing method
JPH0528260A (en) Contour vector extraction system
JP2865530B2 (en) Fingerprint collation device
JP2935331B2 (en) Figure recognition device
JPH05135208A (en) On-line character recognition method and device thereof

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19970708

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070808

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080808

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090808

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100808

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110808

Year of fee payment: 14

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R371 Transfer withdrawn

Free format text: JAPANESE INTERMEDIATE CODE: R371

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120808

Year of fee payment: 15

LAPS Cancellation because of no payment of annual fees