Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0584946B2 - - Google Patents
[go: Go Back, main page]

JPH0584946B2 - - Google Patents

Info

Publication number
JPH0584946B2
JPH0584946B2 JP62072480A JP7248087A JPH0584946B2 JP H0584946 B2 JPH0584946 B2 JP H0584946B2 JP 62072480 A JP62072480 A JP 62072480A JP 7248087 A JP7248087 A JP 7248087A JP H0584946 B2 JPH0584946 B2 JP H0584946B2
Authority
JP
Japan
Prior art keywords
pattern
character
standard
background
creating
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.)
Expired - Fee Related
Application number
JP62072480A
Other languages
Japanese (ja)
Other versions
JPS63237186A (en
Inventor
Koichi Yamada
Tomoaki Nakano
Arata Yamamoto
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.)
Daihatsu Motor Co Ltd
Toyota Central R&D Labs Inc
Original Assignee
Daihatsu Motor Co Ltd
Daihatsu Kogyo KK
Toyota Central R&D Labs 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 Daihatsu Motor Co Ltd, Daihatsu Kogyo KK, Toyota Central R&D Labs Inc filed Critical Daihatsu Motor Co Ltd
Priority to JP62072480A priority Critical patent/JPS63237186A/en
Publication of JPS63237186A publication Critical patent/JPS63237186A/en
Publication of JPH0584946B2 publication Critical patent/JPH0584946B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Discrimination (AREA)

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、標準パターン作成装置に関し、特
に、刻印文字の認識を正確かつ高速に行うための
標準パターンを作成する標準パターン作成装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to a standard pattern creating device, and more particularly to a standard pattern creating device that creates a standard pattern for accurately and quickly recognizing stamped characters.

従来技術 刻印文字は、耐環境性に優れ、経年変化に強
く、各種生産工程における生産制御、生産管理の
重要な情報を与える指示文字として広く用いられ
ている。特に自動車の生産工程では、車体の各部
品やエンジンなどに固有の番号を付すものとして
使用されている。
Prior Art Engraved characters have excellent environmental resistance and are resistant to changes over time, and are widely used as instruction characters that provide important information for production control and production management in various production processes. Particularly in the automobile production process, it is used to assign unique numbers to each part of the car body, engine, etc.

このような刻印文字の認識を行う文字認識装置
は、刻印文字部分をITVカメラ等を用いて撮像
することにより濃淡画像を得、この濃淡画像を2
値の画像パターンに変換し、その画像パターンを
予め登録した標準文字パターンと比較し(パター
ン・マツチング)、両者の一致度に基づいて文字
種の認識を行つている。
A character recognition device that recognizes such engraved characters obtains a grayscale image by capturing an image of the engraved character using an ITV camera, etc., and converts this grayscale image into two.
The value is converted into an image pattern, the image pattern is compared with a standard character pattern registered in advance (pattern matching), and the character type is recognized based on the degree of matching between the two.

かかる標準文字パターンは、同一文字種につき
異なる条件下で得た複数個の2値の画像パターン
を累積し各画素が文字部分となる確率の高い領域
を抽出して作成されている。
Such standard character patterns are created by accumulating a plurality of binary image patterns of the same character type obtained under different conditions and extracting regions where each pixel has a high probability of becoming a character part.

発明が解決しようとする問題点 パターン・マツチングによる文字認識を行う場
合には、画像パターンにおける文字部分の線幅と
予め登録した標準文字パターンにおける文字部分
の線幅とがほぼ等しいことが前提となる。
Problems to be Solved by the Invention When performing character recognition by pattern matching, it is assumed that the line width of the character part in the image pattern is approximately equal to the line width of the character part in the standard character pattern registered in advance. .

ところが、現在広く用いられている刻印機で
は、打刻圧や打刻面に対する傾きを正確に制御す
ることが難しく、刻印文字毎に溝深さ等がばらつ
くことが多い。更に、車体番号のように文字の桁
数が多い場合には、照明に対する各文字の溝の角
度や向きが不均一となる。このため、刻印文字に
おいては、同じ文字種でも画像パターンの文字部
分の線幅は変動する。
However, with the currently widely used stamping machines, it is difficult to accurately control the stamping pressure and the inclination with respect to the stamping surface, and the groove depth etc. often vary for each stamped character. Furthermore, when characters have a large number of digits, such as a vehicle body number, the angles and orientations of the grooves of each character relative to the illumination become uneven. Therefore, in the case of engraved characters, the line width of the character portion of the image pattern varies even if the character type is the same.

したがつて、通常のパターン・マツチングで
は、刻印文字の認識が困難となる問題点がある。
Therefore, with normal pattern matching, there is a problem in that it is difficult to recognize the engraved characters.

そこで、2値の画像パターンを得るためのしき
い値を変化して最適のしきい値を選択することに
より画像パターンの文字部分の線幅を標準文字パ
ターンの文字部分の線幅に近付ける技術が提案さ
れている。このような技術としては、例えば特開
昭61−208178号公報に開示の技術や昭和60年電子
通信学会総合全国大会講演要旨集第6−153頁に
開示の技術がある。
Therefore, a technology has been proposed that changes the threshold value for obtaining a binary image pattern and selects the optimal threshold value, thereby bringing the line width of the character part of the image pattern closer to the line width of the character part of the standard character pattern. Proposed. Examples of such techniques include the technique disclosed in Japanese Patent Application Laid-Open No. 61-208178 and the technique disclosed in 1985 Electronics and Communication Engineers of Japan Comprehensive National Conference Lecture Abstracts, page 6-153.

しかし、これらの従来技術でも最適のしきい値
を得るのに多大の処理時間を要するため、迅速に
刻印文字の認識を行うことが出来ない問題点があ
る。
However, even with these conventional techniques, a large amount of processing time is required to obtain the optimum threshold value, so there is a problem in that the stamped characters cannot be quickly recognized.

発明の目的 本発明は、上述のような文字認識における問題
点を解決するためになされたものであり、その目
的とするところは、文字部分の線幅が変動する文
字とりわけ刻印文字の認識を正確かつ迅速に行う
ための標準パターンを作成することが出来る標準
パターン作成装置を提供することにある。
Purpose of the Invention The present invention was made in order to solve the above-mentioned problems in character recognition, and its purpose is to accurately recognize characters whose line widths vary, especially engraved characters. Another object of the present invention is to provide a standard pattern creation device that can quickly create standard patterns.

問題を解決するための手段 本発明の標準パターン作成装置は、同一文字種
について異なる条件下で複数の2値の画像パター
ンを得る画像パターン検出手段と、同一文字種の
複数個の2値の画像パターンを累積し各画素が文
字部分となるか背景部分となるかの頻度分布を表
す累積パターンを作成する累積パターン作成手段
と、前記累積パターンから文字部分となる頻度の
高い部分を抽出して文字スケルトンパターンを作
成する文字スケルトンパターン作成手段と、前記
文字スケルトンパターンを細線化して標準文字パ
ターンを作成する標準文字パターン作成手段と、
前記標準文字パターンを上、下、左、右に所定量
だけ位置ずれさせて位置ずれ標準文字パターンを
作成する位置ずれ標準文字パターン作成手段と、
前記累積パターンから文字部分となる頻度のやや
高い部分を抽出して平均文字パターンを作成する
平均文字パターン作成手段と、前記標準文字パタ
ーンをその標準文字パターンの文字種以外の文字
種の各平均文字パターンと比較して一致度を演算
する一致度演算手段と、各一致度の値から類似文
字種を選定する類似文字種選定手段と、前記累積
パターンから背景部分となる頻度の高い部分を抽
出して背景スケルトンパターンを作成する背景ス
ケルトンパターン作成手段と、ある文字種の背景
スケルトンパターンの背景部分とその文字種の類
似文字種の各文字スケルトンパターンの文字部分
とが重なる積のパターンをその文字種のすべての
類似文字種について求め、それらの和のパターン
を背景特徴パターンとする背景特徴パターン作成
手段と、前記標準文字パターン、位置ずれ標準文
字パターンおよび背景特徴パターンを各文字種毎
に組として標準パターンメモリへ出力する標準パ
ターン作成手段とを具備してなることを構成上の
特徴とするものである。
Means for Solving the Problem The standard pattern creation device of the present invention includes an image pattern detection means that obtains a plurality of binary image patterns of the same character type under different conditions; A cumulative pattern creating means for creating a cumulative pattern representing a frequency distribution of whether each pixel becomes a character part or a background part; and a character skeleton pattern by extracting a part that frequently becomes a character part from the cumulative pattern. a character skeleton pattern creation means for creating a standard character pattern; a standard character pattern creation means for creating a standard character pattern by thinning the character skeleton pattern;
Misaligned standard character pattern creation means for creating a misaligned standard character pattern by shifting the standard character pattern by a predetermined amount upward, downward, left, and right;
an average character pattern creation means for creating an average character pattern by extracting portions with a relatively high frequency of becoming characters from the cumulative pattern; and an average character pattern for each of character types other than the character types of the standard character pattern. A matching calculation means for comparing and calculating a matching degree, a similar character type selection means for selecting similar character types from each matching degree value, and a background skeleton pattern for extracting a portion that frequently becomes a background portion from the cumulative pattern. a background skeleton pattern creation means for creating a background skeleton pattern, and a product pattern in which a background part of a background skeleton pattern of a certain character type overlaps with a character part of each character skeleton pattern of similar character types of that character type is obtained for all similar character types of that character type; a background feature pattern creation means that uses a sum pattern of these as a background feature pattern; and a standard pattern creation device that outputs the standard character pattern, positional deviation standard character pattern, and background feature pattern as a set for each character type to a standard pattern memory. It is characterized in that it is equipped with the following.

実施例 以下、図に示す実施例に基づいて本発明を更に
詳しく説明する。ここに第1図は本発明の一実施
例の標準パターン作成装置を具備した文字認識装
置の構成ブロツク図、第2図は本発明の一実施例
の標準パターン作成装置の要部詳細ブロツク部、
第3図aは文字種「2」についての細線化文字パ
ターンを作成する状態を示す説明図、第3図bは
文字種「2」についての背景特徴パターンの例示
図、第4図aは文字種「7」についての第3図a
相当図、第4図bは文字種「7」についての背景
特徴パターンの例示図、第5図は第1図に示す文
字認識装置で文字の認識を行う作動のフローチヤ
ートである。尚、図に示す実施例により本発明が
限定されるものではない。
EXAMPLES The present invention will be described in more detail below based on examples shown in the drawings. Here, FIG. 1 is a block diagram of a character recognition device equipped with a standard pattern creation device according to an embodiment of the present invention, and FIG. 2 is a detailed block diagram of main parts of the standard pattern creation device according to an embodiment of the present invention.
FIG. 3a is an explanatory diagram showing the state of creating a thinned character pattern for character type "2", FIG. 3b is an illustration of a background feature pattern for character type "2", and FIG. Figure 3a for ``
The corresponding diagram, FIG. 4b, is an illustration of a background feature pattern for the character type "7", and FIG. 5 is a flowchart of the operation of character recognition by the character recognition device shown in FIG. 1. Note that the present invention is not limited to the embodiments shown in the figures.

第1図において、自動車の車体の構成部品であ
るカウルパネルAに刻印文字Bが打刻されてい
る。この打刻文字Bは、例えば英文字、英記号及
び数字よりなる11桁の文字列である。
In FIG. 1, a stamped character B is engraved on a cowl panel A, which is a component of an automobile body. This stamped character B is, for example, an 11-digit character string consisting of alphabetic characters, alphanumeric symbols, and numbers.

文字認識装置1は、上記刻印文字Bを自動読取
りするためのもので、刻印文字Bを蛍光灯2で照
明し、CCDカメラ3で撮像している。刻印文字
Bは、文字部分が溝になつているため暗く、
CCDカメラ3では文字部分が暗く、カウルパネ
ルAの表面部分が明るい濃淡画像としてとらえら
れる。
The character recognition device 1 is for automatically reading the engraved character B, and illuminates the engraved character B with a fluorescent lamp 2 and images it with a CCD camera 3. The engraved character B is dark because the character part is grooved.
The CCD camera 3 captures a grayscale image in which the text is dark and the surface of the cowl panel A is bright.

CCDカメラ3の出力信号は、A/D変換回路
4でデジタル値に変換され、第1の画像メモリ5
に記憶される。
The output signal of the CCD camera 3 is converted into a digital value by an A/D conversion circuit 4, and the output signal is transferred to a first image memory 5.
is memorized.

第1の画像メモリ5に記憶された濃淡画像デー
タは、2値化回路6において所定のしきい値によ
り2値化され、2値画像データとして第2の画像
メモリ7に記憶される。例えば、濃淡画像データ
の暗部すなわち文字部分が「1」、明部すなわち
背景部分が「0」で記憶される。
The grayscale image data stored in the first image memory 5 is binarized by a predetermined threshold value in a binarization circuit 6, and is stored in the second image memory 7 as binary image data. For example, a dark part, that is, a character part, of the grayscale image data is stored as "1", and a bright part, that is, a background part, is stored as "0".

第2の画像メモリ7に記憶された2値画像デー
タは、膨張・収縮回路8において膨張処理と収縮
処理とを1回ずつ施される。かかる膨張処理又は
収縮処理はいわゆる4連結の膨張又は収縮処理を
用いることができる。膨張・収縮処理によつて、
例えば「1」の部分すなわち文字部分の欠除や途
切れが補正される。
The binary image data stored in the second image memory 7 is subjected to expansion processing and contraction processing once each in an expansion/deflation circuit 8. Such an expansion or contraction process may be a so-called 4-connection expansion or contraction process. Through expansion and contraction processing,
For example, deletions or discontinuities in the "1" portion, that is, the character portion, are corrected.

次に、文字検出・切出し回路9では、例えば11
桁の文字列の2値画像データから各文字を1文字
ずつ検出し、所定の矩形の枠で切り出し、各文字
毎の2値画像データとする。
Next, in the character detection/cutout circuit 9, for example, 11
Each character is detected one by one from binary image data of a character string of digits, and cut out in a predetermined rectangular frame to generate binary image data for each character.

次に、位置正規化回路10は、各文字毎の2値
画像データの文字部分の中心座標を計算し、文字
部分を所定の枠内で位置合わせした画像データと
する。
Next, the position normalization circuit 10 calculates the center coordinates of the character portion of the binary image data for each character, and sets the image data in which the character portion is aligned within a predetermined frame.

位置合わせされた各文字の画像データは、ライ
ン切換回路11を介して、一致度演算回路12若
しくは標準パターン自動作成回路20へと送られ
る。
The aligned image data of each character is sent via the line switching circuit 11 to the coincidence calculation circuit 12 or the standard pattern automatic creation circuit 20.

さて、ライン切換回路11を破線側とすると、
前記CCDカメラ3から標準パターン自動作成回
路20までの構成によつて、この文字認識装置1
は、標準パターン作成装置として機能するように
なる。
Now, if the line switching circuit 11 is on the broken line side,
This character recognition device 1 is configured from the CCD camera 3 to the standard pattern automatic creation circuit 20.
now functions as a standard pattern creation device.

このときは、同一の文字種につき打刻位置や打
刻強さや照明等を代えて種々の条件下で画像デー
タを得、それを標準パターン自動作成回路20に
入力する。
At this time, image data of the same character type is obtained under various conditions by changing the embossing position, embossing strength, illumination, etc., and inputting it to the standard pattern automatic creation circuit 20.

標準パターン自動作成回路20の構成は第2図
に示すようになつており、画像データは、まず、
累積パターン作成回路21に入力される。
The configuration of the standard pattern automatic creation circuit 20 is as shown in FIG.
It is input to the cumulative pattern creation circuit 21.

累積パターン作成回路21は、同一文字種の画
像データの各画素毎に文字部分となるか背景部分
となるかの頻度を計算し、頻度分布を表す累積パ
ターンを作成し、第3の画像メモリ22に記憶す
る。例えば文字種を「2」としたときの累積パタ
ーンを第3図a,aに模式的に示している。破線
で囲まれた領域内が文字部分となる確率10%以上
の領域であり、黒く塗り潰した領域が文字部分と
なる確率が90%以上の領域である。
The cumulative pattern creation circuit 21 calculates the frequency of whether each pixel of image data of the same character type becomes a character part or a background part, creates a cumulative pattern representing the frequency distribution, and stores it in the third image memory 22. Remember. For example, the cumulative pattern when the character type is "2" is schematically shown in FIGS. 3a and 3a. The area surrounded by the broken line is an area with a probability of 10% or more to be a text part, and the area filled in black is an area with a probability of 90% or more to be a text part.

スケルトンパターン作成回路23は、第3の画
像メモリ22に記憶された累積パターンから文字
部分となる確率が90%以上の領域のみ抽出して文
字スケルトンパターンを作成し、第4の画像メモ
リ24に記憶する。例えば文字種「2」について
の文字スケルトンパターンを第3図a,bに例示
している。
The skeleton pattern creation circuit 23 extracts only regions with a probability of 90% or more to become character parts from the cumulative pattern stored in the third image memory 22, creates a character skeleton pattern, and stores it in the fourth image memory 24. do. For example, character skeleton patterns for character type "2" are illustrated in FIGS. 3a and 3b.

また、スケルトンパターン作成回路23は、累
積パターンから文字部分となる確率が10%以下の
部分を抽出して、それを背景スケルトンパターン
として第4の画像メモリ24に記憶する。例えば
文字種「2」についての背景スケルトンパターン
を第3図a,iに例示している。
Further, the skeleton pattern creation circuit 23 extracts a portion having a probability of becoming a character portion of 10% or less from the cumulative pattern, and stores it in the fourth image memory 24 as a background skeleton pattern. For example, the background skeleton pattern for the character type "2" is illustrated in FIGS. 3a and 3i.

第4の画像メモリ24に記憶された文字スケル
トンパターンは、細線化回路25によつて細線化
され、文字部分の線幅が1画素の標準文字パター
ンとして第5の画像メモリ27に記憶される。例
えば文字種「2」についての標準文字パターンを
第3図a,cに例示している。
The character skeleton pattern stored in the fourth image memory 24 is thinned by the thinning circuit 25, and is stored in the fifth image memory 27 as a standard character pattern in which the line width of the character portion is 1 pixel. For example, standard character patterns for character type "2" are illustrated in FIGS. 3a and 3c.

標準文字パターンは、更にずらし演算回路26
に入力され、ずらし演算回路26は、標準文字パ
ターンを上、左、下、右の4方向にそれぞれ1画
素ずつ平行移動させて、各位置ずれ標準文字パタ
ーンを作成し、それらを第5の画像メモリ27に
記憶する。例えば文字種「2」についての位置ず
れ標準文字パターンを第3図aのd,e,f,g
に例示している。
The standard character pattern is further processed by the shift calculation circuit 26.
is input, and the shift calculation circuit 26 translates the standard character pattern by one pixel in each of four directions: up, left, down, and right, creates each positional shift standard character pattern, and converts them into a fifth image. It is stored in the memory 27. For example, the positional deviation standard character pattern for character type "2" is d, e, f, g in Figure 3 a.
For example:

一方、平均文字パターン作成回路28は、第3
の画像メモリ22に記憶された累積パターンから
文字部分となる確率が50%以上の画素の領域を抽
出して平均文字パターンを作成し、第6の画像メ
モリ29に記憶する。例えば文字種「2」につい
て平均文字パターンを第3図a,hに例示してい
る。
On the other hand, the average character pattern creation circuit 28
An average character pattern is created by extracting a pixel region with a probability of 50% or more of becoming a character part from the cumulative pattern stored in the sixth image memory 22, and is stored in the sixth image memory 29. For example, average character patterns for character type "2" are illustrated in FIGS. 3a and 3h.

第3図aは、文字種「2」についての各種パタ
ーンを示したものであるが、第4図aは文字種
「7」について同様に作成された各種パターンを
示したものである。
FIG. 3a shows various patterns for the character type "2", while FIG. 4a shows various patterns similarly created for the character type "7".

このように、すべての文字種についての各種パ
ターンが作成され、第4の画像メモリ24から第
6の画像メモリ29にそれぞれ記憶される。
In this way, various patterns for all character types are created and stored in the fourth image memory 24 to the sixth image memory 29, respectively.

標準パターン自動作成回路20の一致度演算回
路30は、排他的論理和演算回路31と一致度メ
モリ32とから構成され、第5の画像メモリ27
に記憶した標準文字パターンと、その標準文字パ
ターンの文字種以外の文字種についての第6の画
像メモリ29に記憶した平均文字パターンとをそ
れぞれ比較する。即ち、排他的論理和演算回路3
1により両方のパターンで「1」又は「0」が一
致する画素数の全画素数に対する比を一致度とし
て算出し、一致度メモリ32に記憶させる。
The coincidence degree calculation circuit 30 of the standard pattern automatic creation circuit 20 is composed of an exclusive OR operation circuit 31 and a coincidence degree memory 32, and includes a fifth image memory 27.
The standard character pattern stored in the standard character pattern is compared with the average character pattern stored in the sixth image memory 29 for character types other than the standard character pattern. That is, exclusive OR operation circuit 3
1, the ratio of the number of pixels that match "1" or "0" in both patterns to the total number of pixels is calculated as the matching degree, and is stored in the matching degree memory 32.

類似文字種選定回路33は、各文字種の標準文
字パターンに対して一致度の高い平均文字パター
ンを持つ文字種を選別し、それを類似文字種とし
て選定し、類似文字種データメモリ34にその文
字種を記憶する。例えば、文字種「2」の標準文
字パターン(第3図a,c)と文字種「7」の平
均文字パターン(第4図a,h)の一致度が高い
場合は、文字種「2」に対して文字種「7」が類
似文字種として選定される。また逆に、文字種
「7」の標準文字パターン(第4図a,c)と文
字種「2」の平均文字パターン(第3図a,h)
の一致度が高い場合には、文字種「7」に類似す
る文字種として文字種「2」を選定する。
A similar character type selection circuit 33 selects a character type having an average character pattern with a high degree of coincidence with the standard character pattern of each character type, selects it as a similar character type, and stores the character type in a similar character type data memory 34. For example, if the standard character pattern for character type "2" (Fig. 3 a, c) and the average character pattern for character type "7" (Fig. 4 a, h) have a high degree of matching, then Character type "7" is selected as a similar character type. Conversely, the standard character pattern for character type "7" (Figure 4 a, c) and the average character pattern for character type "2" (Figure 3 a, h)
If the matching degree is high, character type "2" is selected as a character type similar to character type "7".

類似文字種は複数選定しても良く、一致度の高
いものがないときは類似文字種なしとしても良
い。
A plurality of similar character types may be selected, and if there is no similar character type, no similar character type may be selected.

背景特徴パターン作成回路35は、ある文字種
についての背景スケルトンパターンを読み込むと
共に、その文字種の類似文字種の文字スケルトン
パターンを読み込み、背景スケルトンパターンの
背景部分と文字スケルトンパターンの文字部分と
が重なる積領域のパターンをその文字種のすべて
の類似文字種について作成する。類似文字種が2
以上ある場合には、それぞれの場合について積領
域のパターンを求め、それらの積領域のパターン
を合わせて和領域のパターンを作成する。そし
て、作成した和領域のパターンを背景部特徴パタ
ーンとして第7の画像メモリ36に記憶する。例
えば、文字種「2」については、その背景スケル
トンパターン(第3図a,i)の背景部分と、そ
の類似文字種「7」の文字スケルトンパターン
(第4図a,b)の文字部分の重なる積領域のパ
ターンとして第3図bに示す如き背景特徴パター
ンが得られる。類似文字種が「7」だけなのでこ
れが背景特徴パターンとなるが、他にも類似文字
種があればそれらの積領域のパターンを合わせた
和領域のパターンが背景特徴パターンとなる。ま
た、文字種「7」についての背景スケルトンパタ
ーン(第4図a,i)の背景部分と、類似文字種
「2」の文字スケルトンパターン(第3図a,b)
の文字部分の重なる領域のパターンとして第4図
bに示す背景特徴パターンが得られる。
The background feature pattern creation circuit 35 reads the background skeleton pattern of a certain character type, reads the character skeleton pattern of similar character types of the character type, and generates a product area where the background part of the background skeleton pattern and the character part of the character skeleton pattern overlap. Create a pattern for all similar character types of that character type. There are 2 similar character types
If there are more than one, a product area pattern is obtained for each case, and the sum area pattern is created by combining the product area patterns. The created sum area pattern is then stored in the seventh image memory 36 as a background feature pattern. For example, for character type "2", the overlap product of the background part of its background skeleton pattern (Fig. 3 a, i) and the character part of its similar character type "7" character skeleton pattern (Fig. 4 a, b) A background feature pattern as shown in FIG. 3b is obtained as a region pattern. Since "7" is the only similar character type, this becomes the background feature pattern, but if there are other similar character types, the pattern of the sum area that combines the patterns of their product areas becomes the background feature pattern. In addition, the background part of the background skeleton pattern for the character type "7" (Fig. 4 a, i) and the character skeleton pattern for the similar character type "2" (Fig. 3 a, b)
A background feature pattern shown in FIG. 4b is obtained as a pattern of an area where the character portions overlap.

標準パターン作成回路37は、第5の画像メモ
リ27に記憶している標準文字パターンと位置ず
れ標準文字パターン並びに第7の画像メモリ36
に記憶している背景特徴パターンを各文字種毎に
組とし、標準パターンとして出力する。
The standard pattern creation circuit 37 generates standard character patterns and misaligned standard character patterns stored in the fifth image memory 27 and the seventh image memory 36.
The background feature patterns stored in the memory are grouped for each character type and output as standard patterns.

出力された標準パターンは、第1図に示す標準
パターンメモリ16に記憶される。
The output standard pattern is stored in the standard pattern memory 16 shown in FIG.

かくして、文字種「2」については、第3図a
のc,d,e,f,g及び第3図bの各種パター
ンが標準パターンとして記憶される。また、文字
種「7」については、第4図aのc,d,e,
f,g及び第4図bの各種パターンが標準パター
ンとして記憶される。
Thus, for the character type "2", Figure 3a
c, d, e, f, g and various patterns shown in FIG. 3b are stored as standard patterns. In addition, for the character type "7", c, d, e in Figure 4 a,
The various patterns f, g and FIG. 4b are stored as standard patterns.

さて第1図に戻り、ライン切換回路11を破線
側として全文字種について標準パターンを作成す
ると、ライン切換回路11を実線側に切り換え
る。これにより文字認識装置1は、未知文字の認
識を行う本来の機能に戻る。
Now, returning to FIG. 1, once standard patterns are created for all character types with the line switching circuit 11 set to the dotted line side, the line switching circuit 11 is switched to the solid line side. Thereby, the character recognition device 1 returns to its original function of recognizing unknown characters.

第5図は、この未知文字の認識を行うフローチ
ヤートで、S1〜S5の処理は第1図に示す位置
正規化回路10までの処理である。
FIG. 5 is a flowchart for recognizing this unknown character, and the processes S1 to S5 are the processes up to the position normalization circuit 10 shown in FIG.

ステツプS6及びステツプS7は、排他的論理
和演算回路13で行われるもので、まず未知文字
の画像データと、細線化文字パターンとのマツチ
ングを行う。ここで細線化文字パターンとは、前
記標準文字パターン及び位置ずれ標準文字パター
ンをいう。このステツプS6のマツチングによつ
て、未知文字の画像データと各文字種の細線化文
字パターンの両方において「1」又は「0」が一
致する画素数と全画素数の比が文字部分一致度と
してまず算出される。
Steps S6 and S7 are performed by the exclusive OR operation circuit 13, and first, the image data of the unknown character and the thinned character pattern are matched. Here, the thinned character pattern refers to the standard character pattern and the misaligned standard character pattern. Through this matching in step S6, the ratio of the number of pixels that match "1" or "0" to the total number of pixels in both the image data of the unknown character and the thinned character pattern of each character type is determined as the degree of character partial matching. Calculated.

次に、ステツプS7のマツチングでは、未知文
字の画像パターンと各文字種の背景特徴パターン
の両方において「1」又は「0」が一致する画素
数の全画素数に対する比を背景部分一致度として
算出する。
Next, in matching in step S7, the ratio of the number of pixels that match "1" or "0" in both the image pattern of the unknown character and the background feature pattern of each character type to the total number of pixels is calculated as the degree of background partial matching. .

これらの文字部分一致度と背景部分一致度は、
一致度メモリ14に記憶される。
These character part matching degree and background part matching degree are
It is stored in the coincidence degree memory 14.

文字種判定回路15は、各文字種について文字
部分一致度から背景部分一致度を減算し、それを
総合一致度とする。背景部分一致度は、その文字
種自身については低い値となるが、類似文字種に
ついては高い値となる。そこで、文字部分一致度
においては数種の類似文字の差異が小さくて判定
が困難でも、背景部分一致度を減算することによ
つて総合一致度では差異が大きくなり、判定が容
易になる。
The character type determination circuit 15 subtracts the background part matching degree from the character part matching degree for each character type, and sets it as the overall matching degree. The background partial matching degree has a low value for the character type itself, but has a high value for similar character types. Therefore, even if the difference between several types of similar characters is small in the degree of character matching and difficult to judge, by subtracting the degree of matching in the background part, the difference becomes large in the overall degree of matching, making it easier to judge.

そして、総合一致度の最も大きいものが一致度
90%以上であり、且つ、次に総合一致度の高いも
のが一致度80%以下である場合に、未知文字がそ
の総合一致度の最も高い文字種であると判定す
る。その他の場合には判読の誤りがあるものとし
て判定不能とする。
Then, the one with the highest overall degree of agreement is the degree of agreement
If it is 90% or more and the next highest degree of matching is 80% or less, it is determined that the unknown character is the character type with the highest overall degree of matching. In other cases, it is assumed that there is an error in interpretation and the judgment cannot be made.

かくして、上記文字認識装置1によれば、標準
文字パターン、位置ずれ標準文字パターンおよび
背景特徴パターンからなる標準パターンとのマツ
チングを行うので、刻印文字を迅速且つ正確に判
読することが可能となる。
Thus, according to the character recognition device 1, since matching is performed with the standard pattern consisting of the standard character pattern, the misaligned standard character pattern, and the background feature pattern, it is possible to read the engraved characters quickly and accurately.

なお、標準パターンを一旦記憶させれば、その
標準パターンメモリを用いて文字認識を行い得る
から、ライン切換回路11や標準パターン自動作
成回路20をオプシヨンとし、複数の文字認識装
置で共有することが出来る。
Note that once the standard pattern is stored, character recognition can be performed using the standard pattern memory, so the line switching circuit 11 and the standard pattern automatic creation circuit 20 can be made optional and shared by multiple character recognition devices. I can do it.

発明の効果 本発明によれば、同一文字種について異なる条
件下で複数の2値の画像パターンを得る画像パタ
ーン検出手段と、同一文字種の複数個の2値の画
像パターンを累積し各画素が文字部分となるか背
景部分となるかの頻度分布を表す累積パターンを
作成する累積パターン作成手段と、前記累積パタ
ーンから文字部分となる頻度の高い部分を抽出し
て文字スケルトンパターンを作成する文字スケル
トンパターン作成手段と、前記文字スケルトンパ
ターンを細線化して標準文字パターンを作成する
標準文字パターン作成手段と、前記標準文字パタ
ーンを上、下、左、右に所定量だけ位置ずれさせ
て位置ずれ標準文字パターンを作成する位置ずれ
標準文字パターン作成手段と、前記累積パターン
から文字部分となる頻度のやや高い部分を抽出し
て平均文字パターンを作成する平均文字パターン
作成手段と、前記標準文字パターンをその標準文
字パターンの文字種以外の文字種の各平均文字パ
ターンと比較して一致度を演算する一致度演算手
段と、各一致度の値から類似文字種を選定する類
似文字種選定手段と、前記累積パターンから背景
部分となる頻度の高い部分を抽出して背景スケル
トンパターンを作成する背景スケルトンパターン
作成手段と、ある文字種の背景スケルトンパター
ンの背景部分とその文字種の類似文字種の各文字
スケルトンパターンの文字部分とが重なる積のパ
ターンをその文字種のすべての類似文字種につい
て求め、それらの和のパターンを背景特徴パター
ンとする背景特徴パターン作成手段と、前記標準
文字パターン、位置ずれ標準文字パターンおよび
背景特徴パターンを各文字種毎に組として標準パ
ターンメモリへ出力する標準パターン作成手段と
を具備してなることを特徴とする標準パターン作
成装置が提供され、これにより作成される標準パ
ターンを用いれば、次のような効果が得られる。
Effects of the Invention According to the present invention, there is provided an image pattern detecting means for obtaining a plurality of binary image patterns of the same character type under different conditions, and a means for accumulating a plurality of binary image patterns of the same character type so that each pixel is a character part. A cumulative pattern creating means for creating a cumulative pattern representing a frequency distribution of whether the character is a character part or a background part, and a character skeleton pattern creating means which creates a character skeleton pattern by extracting a part that frequently becomes a character part from the cumulative pattern means for creating a standard character pattern by thinning the character skeleton pattern; and a standard character pattern creating means for creating a standard character pattern by thinning the character skeleton pattern; an average character pattern creation means for creating an average character pattern by extracting portions with a relatively high frequency of character parts from the cumulative pattern; a matching calculation means for calculating a matching degree by comparing with each average character pattern of character types other than character types; a similar character type selection means for selecting similar character types from each matching degree value; and a similar character type selection means for selecting a similar character type from the cumulative pattern. A background skeleton pattern creation means that extracts frequently occurring parts and creates a background skeleton pattern, and a product pattern in which the background part of a background skeleton pattern of a certain character type and the character part of each character skeleton pattern of similar character types of that character type overlap. is obtained for all similar character types of the character type, and a background feature pattern creation means that uses the sum pattern as a background feature pattern; A standard pattern creating device is provided which is characterized by comprising standard pattern creating means for outputting to a standard pattern memory, and by using the standard pattern created thereby, the following effects can be obtained.

標準パターンのうち細線化文字パターンは、
安定して文字部分となる領域から抽出したもの
であり、且つ、それを位置ずれさせたパターン
をも用いているので、未知文字の画像パターン
が位置ずれやノイズ分を含んでいても、同一文
字種との一致度が下がらないため、正確に認識
できる。
Among the standard patterns, the thin line character pattern is
It is extracted from a region that is a stable character part, and also uses patterns that are shifted, so even if the image pattern of an unknown character contains misalignment or noise, it will still be the same character type. Accurate recognition is possible because the degree of matching with the image does not decrease.

標準パターンのうち細線化文字パターンは、
文字部分を構成する画素数が少ないため、標準
パターンのメモリ容量を低減することができ
る。
Among the standard patterns, the thin line character pattern is
Since the number of pixels forming the character part is small, the memory capacity of the standard pattern can be reduced.

標準パターンの一つとして背景部特徴パター
ンを加えてあるため、細線化文字パターンだけ
では類似文字種との一致度の差が小さい場合で
も、背景部特徴パターンの一致度を減算するこ
とによつて大きな差を付けることができ、正確
に文字種を識別できるようになる。
Since the background feature pattern is added as one of the standard patterns, even if the difference in the degree of matching with similar character types is small with only the thinned character pattern, it can be increased by subtracting the degree of match of the background feature pattern. This allows you to distinguish between characters and accurately identify character types.

文字認識の処理時間を高速に行うことができ
る。
The processing time for character recognition can be made faster.

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

第1図は本発明の一実施例の標準パターン作成
装置を具備する文字認識装置の構成ブロツク図、
第2図は本発明の一実施例の標準パターン作成装
置の要部詳細ブロツク図、第3図aは文字種
「2」について細線化文字パターンを作成する状
態を示す説明図、第3図bは文字種「2」につい
ての背景特徴パターンの例示図、第4図aは文字
種「7」についての第3図a相当図、第4図bは
文字種「7」についての背景特徴パターンの例示
図、第5図は第1図に示す実施例装置で文字種の
認識を行う作動のフローチヤートである。 (符号の説明)、1……文字認識装置、3……
CCDカメラ、6……2値化回路、8……膨張・
収縮回路、9……文字検出・切出し回路、10…
…位置正規化回路、12……一致度演算回路、1
5……文字判定回路、16……標準パターンメモ
リ、20……標準パターン自動作成回路、21…
…累積パターン作成回路、23……スケルトンパ
ターン作成回路、25……細線化回路、26……
ずらし演算回路、28……平均文字パターン作成
回路、30……一致度演算回路、33……類似文
字種選定回路、34……類似文字種データ・メモ
リ、35……背景部特徴パターン作成回路、37
……標準パターン作成回路、B……刻印文字。
FIG. 1 is a block diagram of a character recognition device equipped with a standard pattern creation device according to an embodiment of the present invention;
FIG. 2 is a detailed block diagram of the main parts of a standard pattern creation device according to an embodiment of the present invention, FIG. FIG. 4A is a diagram corresponding to FIG. 3A for the character type "7"; FIG. 4B is an example diagram of the background feature pattern for the character type "7"; FIG. 5 is a flowchart of the operation of recognizing character types using the embodiment shown in FIG. (Explanation of symbols), 1...Character recognition device, 3...
CCD camera, 6...binarization circuit, 8...expansion/
Contraction circuit, 9...Character detection/cutting circuit, 10...
...Position normalization circuit, 12...Concordance calculation circuit, 1
5...Character determination circuit, 16...Standard pattern memory, 20...Standard pattern automatic creation circuit, 21...
...Cumulative pattern creation circuit, 23... Skeleton pattern creation circuit, 25... Thinning circuit, 26...
Shift calculation circuit, 28... Average character pattern creation circuit, 30... Matching degree calculation circuit, 33... Similar character type selection circuit, 34... Similar character type data memory, 35... Background feature pattern creation circuit, 37
...Standard pattern creation circuit, B...engraved characters.

Claims (1)

【特許請求の範囲】 1 (a) 各文字種の各々について、異なる条件下
で複数の2値の画像パターンを得る画像パター
ン検出手段と、 (b) 同一文字種の複数個の2値の画像パターンを
累積し各画素が文字部分となるか背景部分とな
るかの頻度分析を表す累積パターンを作成する
累積パターン作成手段と、 (c) 前記累積パターンから文字部分となる頻度の
高い部分を抽出して文字スケルトンパターンを
作成する文字スケルトンパターン作成手段と、 (d) 前記文字スケルトンパターンを細線化して標
準文字パターンを作成する標準文字パターン作
成手段と、 (e) 前記標準文字パターンを上、下、左、右に所
定量だけ位置ずれさせて位置ずれ標準文字パタ
ーンを作成する位置ずれ標準文字パターン作成
手段と、 (f) 前記累積パターンから文字部分となる頻度の
やや高い部分を抽出して平均文字パターンを作
成する平均文字パターン作成手段と、 (g) 前記標準文字パターンをその標準文字パター
ンの文字種以外の文字種の各平均文字パターン
と比較して一致度を演算する一致度演算手段
と、 (h) 各一致度の値から類似文字種を選定する類似
文字種選定手段と、 (i) 前記累積パターンから背景部分となる頻度の
高い部分を抽出して背景スケルトンパターンを
作成する背景スケルトンパターン作成手段と、 (j) ある文字種の背景スケルトンパターンの背景
部分とその文字種の類似文字種の各文字スケル
トンパターンの文字部分とが重なる積のパター
ンをその文字種のすべての類似文字種について
求め、それらの和のパターンを背景特徴パター
ンとする背景特徴パターン作成手段と、 (k) 前記標準文字パターン、位置ずれ標準文字パ
ターンおよび背景特徴パターンを各文字種毎に
組として標準パターンとする標準パターン作成
手段と を具備してなることを特徴とする標準パターン作
成装置。 2 文字を読み取るための光学的撮像手段と、2
値画像手段と、膨張・収縮演算手段と、文字検
出・切出し手段と、位置正規化手段と、標準パタ
ーンメモリと、標準パターンと未知文字の画像パ
ターンとの一致度を演算する一致度演算手段と、
得られた一致度に基づき文字種の判定を行う文字
種判定手段とを有する文字認識装置の前記標準パ
ターンメモリへ、作成した標準パターンを出力す
る特許請求の範囲第1項記載の標準パターン作成
装置。 3 刻印文字の認識に用いられる標準パターンの
作成を行う特許請求の範囲第1項または第2項記
載の標準パターン作成装置。
[Claims] 1. (a) An image pattern detection means for obtaining a plurality of binary image patterns for each character type under different conditions; (b) An image pattern detection means for obtaining a plurality of binary image patterns for the same character type. (c) a cumulative pattern creating means for creating a cumulative pattern representing a frequency analysis of whether each pixel becomes a character part or a background part; (d) standard character pattern creation means for creating a standard character pattern by thinning the character skeleton pattern; (e) character skeleton pattern creation means for creating a standard character pattern by thinning the character skeleton pattern; , misaligned standard character pattern creation means for creating a misaligned standard character pattern by shifting the position by a predetermined amount to the right; (g) a degree of coincidence calculating means that calculates the degree of coincidence by comparing the standard character pattern with each average character pattern of a character type other than the character type of the standard character pattern; (h) (i) a background skeleton pattern creation means for creating a background skeleton pattern by extracting a portion that frequently becomes a background portion from the cumulative pattern; j) Find the product pattern where the background part of the background skeleton pattern of a certain character type overlaps with the character part of each character skeleton pattern of similar character types of that character type for all similar character types, and use the pattern of their sum as the background feature. (k) standard pattern creation means for creating a standard pattern by combining the standard character pattern, the misaligned standard character pattern, and the background characteristic pattern for each character type; Features of standard pattern creation device. 2. Optical imaging means for reading characters; 2.
A value image means, an expansion/contraction calculation means, a character detection/cutting means, a position normalization means, a standard pattern memory, and a degree of coincidence calculation means for calculating the degree of coincidence between the standard pattern and the image pattern of the unknown character. ,
2. The standard pattern creation device according to claim 1, wherein the standard pattern creation device outputs the created standard pattern to the standard pattern memory of a character recognition device having a character type determination means for determining the character type based on the obtained degree of matching. 3. The standard pattern creation device according to claim 1 or 2, which creates a standard pattern used for recognizing engraved characters.
JP62072480A 1987-03-25 1987-03-25 Standard pattern creation device Granted JPS63237186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62072480A JPS63237186A (en) 1987-03-25 1987-03-25 Standard pattern creation device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62072480A JPS63237186A (en) 1987-03-25 1987-03-25 Standard pattern creation device

Publications (2)

Publication Number Publication Date
JPS63237186A JPS63237186A (en) 1988-10-03
JPH0584946B2 true JPH0584946B2 (en) 1993-12-03

Family

ID=13490523

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62072480A Granted JPS63237186A (en) 1987-03-25 1987-03-25 Standard pattern creation device

Country Status (1)

Country Link
JP (1) JPS63237186A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2776956B2 (en) * 1990-04-27 1998-07-16 株式会社日立製作所 ID code identification method
JPH06231257A (en) * 1993-02-02 1994-08-19 Nec Corp Device for generating learning data
EP0632404B1 (en) * 1993-07-01 1997-12-29 International Business Machines Corporation Pattern recognition by generating and using zonal features and anti-features
JP7418814B2 (en) * 2020-05-26 2024-01-22 国立大学法人 奈良先端科学技術大学院大学 semiconductor circuit

Also Published As

Publication number Publication date
JPS63237186A (en) 1988-10-03

Similar Documents

Publication Publication Date Title
US5497429A (en) Apparatus for automatic fingerprint classification
US7949187B2 (en) Character string recognition method and device
GB2278945A (en) Fingerprint identification system
KR100383858B1 (en) Character extracting method and device
JP4011646B2 (en) Line detection method and character recognition device
JP2004280334A (en) Image reading device
CN117115701A (en) Platform truck operation behavior identification method for customs auxiliary management
JPH0584946B2 (en)
CN120147318A (en) Automobile connector contact pin detection method and system based on machine vision
JPS63237185A (en) character recognition device
JPH1083452A (en) Pattern defect detection device
JPH0256688A (en) character cutting device
JP2005250786A (en) Image recognition method
JP4223295B2 (en) License plate automatic recognition device
JP3307782B2 (en) Character mark recognition device
JPH0769932B2 (en) Character recognition device
KR100713335B1 (en) Image recognition method
JP3064391B2 (en) Character recognition method
JP2006047252A (en) Image processing device
JP3126491B2 (en) Pattern recognition method
JP2581809B2 (en) Character extraction device
JPH11351835A (en) Method for extracting contour line of cutting edge by processing taken image of tool
JPH0769933B2 (en) Standard character pattern creation device
JPS603679B2 (en) Character recognition method
JP3625660B2 (en) Input information correction method and recording medium recording the program

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees