JPS60230278A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPS60230278A
JPS60230278A JP59086596A JP8659684A JPS60230278A JP S60230278 A JPS60230278 A JP S60230278A JP 59086596 A JP59086596 A JP 59086596A JP 8659684 A JP8659684 A JP 8659684A JP S60230278 A JPS60230278 A JP S60230278A
Authority
JP
Japan
Prior art keywords
pattern
contour
profile
code
point
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
JP59086596A
Other languages
Japanese (ja)
Other versions
JPH07104908B2 (en
Inventor
Masatoshi Okutomi
正敏 奥富
Tetsuo Sueda
末田 哲夫
Michihiro Tokuhara
徳原 満弘
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP59086596A priority Critical patent/JPH07104908B2/en
Priority to GB08510712A priority patent/GB2161006B/en
Priority to DE19853515159 priority patent/DE3515159A1/en
Publication of JPS60230278A publication Critical patent/JPS60230278A/en
Priority to US07/157,147 priority patent/US4833721A/en
Publication of JPH07104908B2 publication Critical patent/JPH07104908B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To express stably features of a profile of a pattern by obtaining the difference between the profile line direction in each profile point at the time of tracking the profile of the pattern and the profile line direction in the previous profile point and encoding it. CONSTITUTION:A preprocessing circuit 16 executes binalization, removal of noises, etc., with respect to an input pattern from a photoelectric convertor 14. Then a CPU17 and a memory 18 extract features of the pattern. Namely, the CPU17 obtains the difference between the profile line direction in each profile point at the time of tracking the profile of the pattern in a certain direction and the profile line direction in the previous profile point, and encodes it, thereby extracting stably features of the profile of the pattern.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は手書文字、印字文字、その他あらゆるパターン
の認識が可能な画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to an image processing device capable of recognizing handwritten characters, printed characters, and all other patterns.

〔従来技術〕[Prior art]

従来からパターン認識について様々な提案がある。例え
ば、パターンの輪郭情報を用いてパターン認識を行う場
合、各輪郭点における輪郭線方向を第1図に示す1〜8
の方向コードに従って量子化したコードとしてめられて
いた0 しかし為この方法では為例えば第2図に示す様なパター
ンがめった場合、図の81を始点とし、時計回りに輪郭
を追跡した時に得られる方向コードは、第6図に示す様
になり、本来連続的に変化する方向コードが、第6図の
A、Hの部分(第2図のa、bに対応)で示す様に、コ
ード上不連続になってしまい、認識する際に不都合を生
じる。
There have been various proposals regarding pattern recognition. For example, when performing pattern recognition using contour information of a pattern, the contour line directions at each contour point are 1 to 8 shown in FIG.
However, if a pattern like the one shown in Figure 2 is rarely found, it can be obtained by starting from 81 in the figure and tracing the contour clockwise. The direction code is as shown in Figure 6, and the direction code that originally changes continuously changes on the code as shown in parts A and H in Figure 6 (corresponding to a and b in Figure 2). This results in discontinuity, which causes inconvenience during recognition.

さらに、上記の不連続性を防ぐ手段として、第1図の(
)で示す如く、方向コード「8」から「1」に変化する
場合等、方向コードが不連続に変化する場合に社、方向
コードの値に8を加減算して連続性を保つ方法がある。
Furthermore, as a means to prevent the above-mentioned discontinuity, (
), when the direction code changes discontinuously, such as when the direction code changes from "8" to "1", there is a method to maintain continuity by adding or subtracting 8 to the value of the direction code.

この方法によれば、前記第2図のパターンの場合、その
コードは第4図(alに示す様に連続となる。
According to this method, in the case of the pattern shown in FIG. 2, the code becomes continuous as shown in FIG. 4 (al).

しかし、この方法では、パターンの輪郭を1周して、輪
郭追跡の開始点に戻って来た時に、第2図の81に示す
様に、その開始点におけるコードが最初にめたコードと
一致しない。
However, with this method, when the pattern contour is circled once and the contour tracking starts, the code at the starting point matches the first code as shown at 81 in Figure 2. do not.

言いかえると、開始点の前後でコードの値が不連続であ
る。このことは、同一パターンにおいても開始点の位置
により、得られるコード列が変化してしまうということ
になるO例えば、第2図で開始点を82とし、やけシ輪
郭を時計回りに追跡していった時に得られる方向コード
は第4図(b)の様になり、(a)で示したものと社か
なり違ったものとなっている。このことは、元のパター
ンが回転した場合等による開始点の変化が、その後の認
識を困難にするということを意味する。
In other words, the code values are discontinuous before and after the starting point. This means that even for the same pattern, the resulting code string will change depending on the position of the starting point. The direction code obtained when this is done is as shown in FIG. 4(b), which is quite different from that shown in FIG. 4(a). This means that changes in the starting point, such as when the original pattern is rotated, make subsequent recognition difficult.

さらに、不連続であることを見い出して、コードに8を
加減算することは、かかる処理を複雑にする。
Furthermore, finding a discontinuity and adding or subtracting 8 to the code complicates such processing.

〔目 的〕〔the purpose〕

以上の点に鑑み、本願発明は上記欠点を除去しパターン
の輪郭を連続したデータとしてとらえ、パターンの位置
ずれ、回転などに影響されない安定したパターンの認識
が可能な画像処理装置を提供することにある。
In view of the above points, it is an object of the present invention to eliminate the above-mentioned drawbacks, capture the outline of a pattern as continuous data, and provide an image processing device that is capable of stable pattern recognition unaffected by pattern displacement, rotation, etc. be.

〔実施例〕〔Example〕

以下、図面を参照し、本願発明について詳細に説明する
。本願でい5画像社文字、マーク、記号、絵等を示すも
のである0 第5図は本願発明の適用が可能な画像処理装置の1例を
示す図である0なお、この様な構造に限る必要社ない。
Hereinafter, the present invention will be described in detail with reference to the drawings. 5 Images in the present application are those showing characters, marks, symbols, pictures, etc. 0 Figure 5 is a diagram showing an example of an image processing device to which the present invention can be applied 0 It should be noted that such a structure There is no need to limit the company.

10はハンディ型の画像処理装置本体で、11社光源、
12は読み取るべき原稿である。なお13社光学系で、
光源11及び原稿12上のパターンからの光を光電変換
素子(例えば面状CCD)14に導<、、15は光電変
換素子14から出力データ処理及び/又は出力を行5処
理部である。
10 is a hand-held image processing device, light sources from 11 companies,
12 is a document to be read. In addition, with optical systems from 13 companies,
A row 5 processing section 15 guides light from the light source 11 and the pattern on the original 12 to a photoelectric conversion element (for example, a planar CCD) 14 and processes output data and/or outputs data from the photoelectric conversion element 14 .

次に前記処理部15について、詳細に説明する0第6−
1図は前記処理部15のブロック図である。
Next, the processing section 15 will be explained in detail.
FIG. 1 is a block diagram of the processing section 15.

16紘前処理回路で入カバターンに対し、2値化、ノイ
ズ除去等を行う0次にCPU17及びメモリ18によっ
てパターンの特徴を抽出する。特徴抽出については、第
6−2図に示す流れとなる。つまシ、1次特徴抽出で該
パターンの輪郭情報をコード化する。そしてパターンあ
るい岐抽出法によってはそのコードをそのまま用いる。
The zero-order CPU 17 and memory 18 extract the features of the pattern, which performs binarization, noise removal, etc. on the input pattern in the 16th pre-processing circuit. Regarding feature extraction, the flow is shown in Figure 6-2. Then, the contour information of the pattern is encoded by primary feature extraction. Depending on the pattern or branch extraction method, the code is used as is.

又、更に2次特徴抽出により前記コード列と祉別の特徴
を抽出してもよい。そして以上によって得られた特徴に
ついて、メモリ18等の辞書と照合したシ、あるいは類
似度や相関を計算し、該パターンを判定する。又、更に
上記特徴抽出を繰り返してもよいし、他の特徴抽出を行
い、その後パターンを決定してもよい。
Further, the code string and the feature by function may be extracted by secondary feature extraction. Then, the features obtained in the above manner are checked against a dictionary in the memory 18 or the like, or the degree of similarity or correlation is calculated, and the pattern is determined. Furthermore, the above feature extraction may be repeated, or other feature extraction may be performed and then the pattern may be determined.

次に本発明の特徴抽出について、更に詳細に説明する。Next, feature extraction according to the present invention will be explained in more detail.

第7図は本発明適用の各輪郭点における方向コードを示
す。本実施例の場合、パターンの輪郭を時計回りに追跡
していった時の各輪郭点における方向を表わすコードで
ある。なお追跡方向はこれに限る必要蝶ない。
FIG. 7 shows the direction code at each contour point to which the present invention is applied. In the case of this embodiment, the code represents the direction at each contour point when tracing the contour of the pattern clockwise. Note that it is not necessary to limit the tracking direction to this.

ここで、ある輪郭点における方向コードは、1つ前の輪
郭点における輪郭線方向を0として決定する。すなわち
、パターンの輪郭を時計回りに追跡して行く時、ある輪
郭点Piにおける方向コード社、Piの輪郭線方向が、
1つ前の輪郭点Pi−1における輪郭線方向と一致して
いれば0、またPi−1の輪郭線方向に比べ、右に45
.90,135゜180°回転していれば、各々1.2
,5.4、逆に左に45 、90°、135回転してい
れば各々−1,−2,−3と決める0例えば、第8図に
示場合方向コードはro、0,1,0.−2.0,1,
2.OJと決まる0ここでSPlに対する方向コード祉
、その前の輪郭点の輪郭線方向がわからなければ決まら
ないが、一般に、パターンの輪郭を追跡していくと、必
ず開始点に戻って来るので、その時点間ホ゛ 始点の方向コードも必ず決まる。
Here, the direction code at a certain contour point is determined by setting the contour line direction at the previous contour point to 0. That is, when tracing the contour of a pattern clockwise, the direction code at a certain contour point Pi, the contour direction of Pi is
0 if it matches the contour line direction at the previous contour point Pi-1, and 45 to the right compared to the contour line direction of Pi-1.
.. If the rotation is 90, 135° and 180°, each will be 1.2
, 5.4, and vice versa, if the rotation is 45 degrees, 90 degrees, and 135 degrees to the left, they are determined as -1, -2, and -3, respectively.0 For example, in the case shown in Figure 8, the direction codes are ro, 0, 1, 0. .. −2.0,1,
2. OJ is determined as 0. Here, the direction code for SPl cannot be determined unless the contour line direction of the previous contour point is known, but in general, when tracing the contour of a pattern, it always returns to the starting point, so The direction code of the starting point between those points is also determined.

この方法により、第2図に示すパターンの方向コードを
めると、第9図に示す様になる0図から明らかな様に、
この方法によれば、得られるコード列社連続になる。さ
らに、輪郭を一周した後でも、同じ輪郭点に対するコー
ドは同じ値を持つ。
By this method, when the direction code of the pattern shown in Fig. 2 is inserted, it becomes as shown in Fig. 9, as is clear from Fig. 0.
According to this method, the resulting code train will be continuous. Furthermore, even after going around the contour, the codes for the same contour point have the same value.

すなわち輪郭点の個数を周期とする周期性を持つ。In other words, it has periodicity whose period is the number of contour points.

これKより、得られるコード列を周期関数として扱5こ
とができる。この場合、輪郭追跡の開始点が変わっても
、その周期関数の位相がずれるだけである。例えば第2
図の82を開始点とした場合、第9図の82からコード
列は始まるがそれを周期関数とみなせば、その関数は横
軸方向にずれるだけで、関数の形は不変である。
From this K, the obtained code string can be treated as a periodic function5. In this case, even if the starting point of contour tracking changes, only the phase of the periodic function shifts. For example, the second
If 82 in the figure is taken as the starting point, the code string starts from 82 in FIG. 9, but if it is regarded as a periodic function, the function only shifts in the horizontal axis direction, and the shape of the function remains unchanged.

以上の性質により、本発明により得られるコード列は、
第6図、第4因に示すものより優れている0 次に、第10図に前記説明したコード列をめるフローチ
ャートを示す。ステップ1において輪郭追跡の開始点を
決める。次にステップ2において、次の第1輪郭点をめ
る。ステップ6で、開始点と第1輪郭点とで、輪郭接線
方向をめる。
Due to the above properties, the code string obtained by the present invention is
FIG. 6 is superior to that shown in the fourth factor.Next, FIG. 10 shows a flowchart for inserting the code string described above. In step 1, a starting point for contour tracing is determined. Next, in step 2, the next first contour point is found. In step 6, the contour tangent direction is determined between the starting point and the first contour point.

次にステップ4で、第m番目の輪郭点をめ(m−2,3
,4・・―)、ステップ゛5で第m −1番目の輪郭点
とで輪郭接線方向をめる。ステップ6で輪郭接線方向の
差をコード化する。次にステップ7で開始点に戻ったか
どうかを判断する。開始点に戻っていない場合は、以上
の動作を繰り返す。
Next, in step 4, select the m-th contour point (m-2, 3
, 4, . . . ), and in step 5, the contour tangent direction is determined with the m-1th contour point. In step 6, the difference in the contour tangent direction is encoded. Next, in step 7, it is determined whether the process has returned to the starting point. If you have not returned to the starting point, repeat the above steps.

さて、パターンの識別は、ここで得られたコード列より
、例えば輪郭の曲がり具合(真直ぐ1右曲がり、左曲が
り、急な右曲がり、急な左曲がり、・会・・壷)を検出
して行なうことができる。例えば、第11図に対応する
輪郭情報を、第12図に示す様に得ることができる0こ
こで、直、右、左、急右は各々真直ぐ、右曲り、左曲り
、急な右曲りを表す。
Now, pattern identification is done by detecting, for example, the degree of curvature of the outline (straight, 1 right turn, left turn, sudden right turn, sudden left turn, ... meeting ... pot) from the code string obtained here. can be done. For example, the contour information corresponding to FIG. 11 can be obtained as shown in FIG. represent.

さらに、コード列を周期関数として扱えることから、そ
の関数に例えば離散フーリエ変換を施し、周波数軸上で
識別することもできる。
Furthermore, since the code string can be treated as a periodic function, it is also possible to perform, for example, a discrete Fourier transform on the function and identify it on the frequency axis.

このように、本発明による方法は、パターンの持つ輪郭
情報を安定に抽出することを可能とするもので、その後
に続くパターンの識別処理を容易にし、又逆にパターン
の認識処理を限定するものでもない。
As described above, the method according to the present invention makes it possible to stably extract contour information of a pattern, facilitates the subsequent pattern identification process, and conversely limits the pattern recognition process. not.

以上の説明では、方向コードをめる各輪郭点が互いに隣
接していたが、これを第16図のパターンのP1〜P2
8に示す様に隣接した輪郭点を例えば2つ置きに標本化
してもよく、ある距離だけ離れた輪郭点に対し、方向コ
ードをめる方法を用いてもよい。この方法によれば、パ
ターンの輪郭における細かな凹凸に影響されず、より安
定した輪郭の特徴を抽出することができる。
In the above explanation, each contour point where the direction code is placed is adjacent to each other, but this is
As shown in 8, adjacent contour points may be sampled, for example, every second contour point, or a method of assigning direction codes to contour points separated by a certain distance may be used. According to this method, more stable contour features can be extracted without being affected by fine irregularities in the pattern contour.

又、上記説明では、方向コードとして8方向に量子化し
たものを用いたが、例えば、第14図に示す様に細分化
してもよい。第16図に示した()内の番号は第14図
に示す方向コードに従ってめられたもので、輪郭の曲が
り具合をより忠実にfultすることができ、似かよっ
たカテゴリーを含むバネ〜ン集合におけるパターン認識
に適している。
Further, in the above description, the direction code is quantized in eight directions, but it may be subdivided as shown in FIG. 14, for example. The numbers in parentheses shown in Fig. 16 were determined according to the direction code shown in Fig. 14, and can more faithfully display the curvature of the contour. Suitable for pattern recognition.

なお以上説明した方法を繰り返してもよく、又、組み合
わせてもよいことは言うまでもない。
It goes without saying that the methods described above may be repeated or may be combined.

〔効 果〕〔effect〕

以上、詳述したよ5に本願発明によりパターンの輪郭を
おる方向に追跡して行った時の、各輪郭点における輪郭
線方向と、以前の輪郭点における輪郭線方向との差をめ
、それをコード化することにより、上記パターンの輪郭
の特徴を安定に表現でき、又、連続かつ周期的な方向コ
ード列を容易に得ることができ、上記パターン認識全体
に要する処理を軽減すると共に、昭織率の向上が可能と
な9)又以上の効果を有するm像処理装置を提供するこ
とが可能となった。
As described in detail above, in 5, when the contour of a pattern is traced in the direction along which the present invention passes, the difference between the contour line direction at each contour point and the contour line direction at the previous contour point is determined. By encoding, the characteristics of the outline of the pattern can be stably expressed, and a continuous and periodic direction code string can be easily obtained, which reduces the processing required for the overall pattern recognition, and It has become possible to provide an m-image processing device that can improve the weaving rate (9) and has the above-mentioned effects.

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

第1図は、従来の方向コードを示す図、第2図は、パタ
ーンの1何を示す図、 第6図を第4図は輪郭点と方向コードの関係を示す図、 第5図は、本発明の適用が可能な画像処理装置の1例を
示す図、 第6−1図は、処理部のブロック図、 第6−2図社、パターンの特徴抽出の流れを示す図、 第7図は、本発明適用の各輪郭点における方向コードを
示す図、 第8図は、パターンの1例を示す図、 第9図は、輪郭点と方向コードの関係を示す図、第10
図は、コード列をめるフローチャート、第11図L1パ
ターンと輪郭情報を示す図、第12図は、パターンのコ
ード情報と輪郭情報を示す図、 第16図は、パターンの1例を示す図、第14図は、細
分化した方向コードを示す図。 17はCPU、15は処理部。 出願人 キャノン株式会社 兜1j霞 潟12図
FIG. 1 is a diagram showing a conventional direction code, FIG. 2 is a diagram showing what the pattern is, FIG. 6 is a diagram showing the relationship between contour points and direction codes, and FIG. Figure 6-1 is a block diagram of the processing unit; Figure 6-2 is a diagram showing the flow of pattern feature extraction; Figure 7; FIG. 8 is a diagram showing an example of a pattern; FIG. 9 is a diagram showing the relationship between contour points and direction codes; FIG.
The figures are a flowchart for assembling a code string, Figure 11 is a diagram showing the L1 pattern and outline information, Figure 12 is a diagram showing the code information and outline information of the pattern, and Figure 16 is a diagram showing an example of the pattern. , FIG. 14 is a diagram showing subdivided direction codes. 17 is a CPU, and 15 is a processing unit. Applicant: Canon Co., Ltd. Kabuto 1j Kasumigata 12

Claims (1)

【特許請求の範囲】 画像パターンの輪郭情報を所定方向に追跡し、輪郭点を
検出する検出手段と、前記検出手段によって検出された
複数の輪郭点に基づいてそれぞれ輪郭接線方向をめる演
算手段を有し、更に前記輪郭接線方向の方向差を順次求
め、コード化する− 、−−4手段を有したこと を特徴とする画像処理装置。
[Scope of Claims] Detection means for tracing contour information of an image pattern in a predetermined direction and detecting contour points, and calculation means for determining contour tangential directions based on the plurality of contour points detected by the detection means. An image processing apparatus characterized in that the image processing apparatus further comprises means for sequentially determining and encoding the directional differences in the contour tangential directions.
JP59086596A 1984-04-27 1984-04-27 Image processing method Expired - Lifetime JPH07104908B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP59086596A JPH07104908B2 (en) 1984-04-27 1984-04-27 Image processing method
GB08510712A GB2161006B (en) 1984-04-27 1985-04-26 Character recognition apparatus
DE19853515159 DE3515159A1 (en) 1984-04-27 1985-04-26 IMAGE PROCESSING DEVICE
US07/157,147 US4833721A (en) 1984-04-27 1988-02-11 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59086596A JPH07104908B2 (en) 1984-04-27 1984-04-27 Image processing method

Publications (2)

Publication Number Publication Date
JPS60230278A true JPS60230278A (en) 1985-11-15
JPH07104908B2 JPH07104908B2 (en) 1995-11-13

Family

ID=13891380

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59086596A Expired - Lifetime JPH07104908B2 (en) 1984-04-27 1984-04-27 Image processing method

Country Status (1)

Country Link
JP (1) JPH07104908B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57104371A (en) * 1980-12-19 1982-06-29 Matsushita Electric Ind Co Ltd Profile code converter
JPS5872934A (en) * 1981-10-27 1983-05-02 Olympus Optical Co Ltd Light source device for endoscope

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57104371A (en) * 1980-12-19 1982-06-29 Matsushita Electric Ind Co Ltd Profile code converter
JPS5872934A (en) * 1981-10-27 1983-05-02 Olympus Optical Co Ltd Light source device for endoscope

Also Published As

Publication number Publication date
JPH07104908B2 (en) 1995-11-13

Similar Documents

Publication Publication Date Title
McKee et al. Computer recognition of partial views of curved objects
EP0391044B1 (en) Pattern generation method for registering handwriting
Wolfson On curve matching
US10699109B2 (en) Data entry from series of images of a patterned document
CN110718228B (en) Voice separation method and device, electronic equipment and computer readable storage medium
US4833721A (en) Image processing apparatus
RU2619712C1 (en) Optical character recognition of image series
RU2621601C1 (en) Document image curvature eliminating
JP2001092919A (en) Method for determining angle of torsion of two- dimensional bar code
US10977511B2 (en) Optical character recognition of series of images
WO2012070474A1 (en) Object or form information expression method
Pinheiro et al. Piecewise approximation of contours through scale-space selection of dominant points
JPH05506115A (en) Correlation masking process for deskewing, filtering and recognition of vertically segmented characters
Gueham et al. Automatic recognition of shoeprints using Fourier-Mellin transform
JPH09128485A (en) Improved method and apparatus for recognition of handwritten sentence by using unchangeable feature
JPS60230278A (en) Picture processor
CN112085816B (en) Font curve generation method and device
JPH0520794B2 (en)
JP2008276758A (en) Fingerprint singular point extractor and fingerprint singular points extraction method
Pal et al. Circular arc segmentation by curvature estimation and geometric validation
RU2059979C1 (en) Method for recognition of prints of papillary patterns
JPS61156487A (en) Picture processing device
JPS61156486A (en) Picture processing device
JP2959054B2 (en) Line type discrimination method in pattern recognition device
JPS6170674A (en) Image processor

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term