JPH0535921A - Device and method for collating character - Google Patents

Device and method for collating character

Info

Publication number
JPH0535921A
JPH0535921A JP3187434A JP18743491A JPH0535921A JP H0535921 A JPH0535921 A JP H0535921A JP 3187434 A JP3187434 A JP 3187434A JP 18743491 A JP18743491 A JP 18743491A JP H0535921 A JPH0535921 A JP H0535921A
Authority
JP
Japan
Prior art keywords
character
matching
characters
signal
binarizing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP3187434A
Other languages
Japanese (ja)
Inventor
Tetsuo Yanagida
徹郎 柳多
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.)
Nippon Steel Corp
Original Assignee
Sumitomo Metal Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sumitomo Metal Industries Ltd filed Critical Sumitomo Metal Industries Ltd
Priority to JP3187434A priority Critical patent/JPH0535921A/en
Publication of JPH0535921A publication Critical patent/JPH0535921A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To improve recognition accuracy by setting an optimum binarizing level for every picture. CONSTITUTION:A character to be discriminated is read (S1). The read picture is binarized by a first binarizing level (S2, S3). Characters are segmented from the binarized picture one by one (S4). The segment character is collated with a standard pattern (S5). Whether a coincidence degree exceeds a prescribed value or not is decided, and a first signal is outputted when it is decided that the degree exceeds and a second signal is outputted when it is decided that the degree does not exceed (S6). In response to the second signal, a second binarizing level relating to the first binarizing level is set (S9). Characters are segmented by the second binarizing level (S4). In response to the first signal, the next segmented character is collated (S5).

Description

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

【0001】[0001]

【発明の利用分野】本発明は、画像処理による文字照合
装置及びそのための方法に関するもので、特に、計測領
域内の文字の色が互いに違っていたり照明が不均一だっ
たりした場合にも適正な文字照合を行うことができる文
字照合装置及びそのための方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character collating apparatus by image processing and a method therefor, and particularly, it is suitable even when the colors of characters in the measurement area are different from each other or the illumination is uneven. BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character matching device that can perform character matching and a method therefor.

【0002】なお、この明細書において、「文字」とい
う語は、ひらがな、カタカナ、アルファベット等の文字
ばかりでなく、数字や記号をも含む広い意味で使用され
るものとする。
In this specification, the word "character" is used in a broad sense to include not only characters such as hiragana, katakana and alphabets but also numbers and symbols.

【0003】[0003]

【従来の技術】断面円形の部材(例えば円筒形のコイル
等の鋼材)の表面にマーキングされた文字は、にじみや
かすれを含む場合があり、また、曲面上に描かれている
が故に均一に照明され得ないため、こうした文字の自動
認識を可能とするためには、文字を読み取るための、し
たがって濃淡を判別するための2値化レベルをどう検
出、設定するかが重要になる。
2. Description of the Related Art Characters marked on the surface of a member having a circular cross section (for example, a steel material such as a cylindrical coil) may include bleeding or blurring, and since it is drawn on a curved surface, it is uniform. Since it cannot be illuminated, it is important to detect and set the binarization level for reading the character and thus for determining the shade, in order to enable such automatic recognition of the character.

【0004】従来の文字認識装置及び認識方法は、読み
取るべき文字の濃淡により2値化が適性に行われている
ことを前提にしたものであった。このような例として
は、文字の線素のなす閉ループ、交差、端点等の特徴パ
ラメータによって1文字ずつ基準文字と比較し、最近似
値によって文字認識を行う方法及び装置を開示した特開
平1−229388号公報、従来からのX−Y方向での
文字毎の画素濃度(出現頻度)をパターン化した基準値
と対象文字との比較を行い、近似値により文字決定を行
う場合、ノイズ部分を取り出して該ノイズ部分を除いた
残りの部分を照合するパターンマッチング法を開示した
特開平2−68683号公報、基準文字パターンを構成
する画素群を、基準文字パターン全てについて非文字領
域となる画素群と、当該基準文字パターンでは非文字領
域であるが他の基準文字パターンでは文字領域となる画
素群と、当該基準文字パターンで文字領域となる画素群
とに分けて異なる重み付けを行い、マッチ率を評価する
文字認識法を開示する特開平2−68681号公報を挙
げることができる。
The conventional character recognizing apparatus and recognizing method have been premised on that the binarization is appropriately performed depending on the shade of the character to be read. As such an example, form a closed loop of a character line element, crossing the characteristic parameters of the endpoints such as compared to the reference characters character by character, and discloses a method and apparatus for performing character recognition by-nearest Patents
Japanese Patent Laid-Open No. 1-229388 , a conventional reference value in which pixel density (appearance frequency) of each character in the XY direction is patterned is compared with a target character, and when a character is determined by an approximate value, noise is generated. A pattern matching method for extracting a part and matching the remaining part excluding the noise part has been disclosed.
Japanese Unexamined Patent Publication ( Kokai) No. 2-68683 discloses a pixel group that forms a reference character pattern, a pixel group that is a non-character area for all the reference character patterns, and a character group that is a non-character area in the reference character pattern but is a non-character area Japanese Unexamined Patent Application Publication No. 2-68681, which discloses a character recognition method in which a pixel group that becomes a region and a pixel group that becomes a character region in the reference character pattern are separately weighted and the match rate is evaluated, can be cited. .

【0005】これらの文字認識装置、文字認識方法は、
上記のとおり、2値化が正しく行われていることが前提
であるうえ、ノイズ等の分離除去にしても、別原因の大
きなものを対象としており、また、文字のにじみや色の
変化、濃淡の変化に追従するものではなかった。
These character recognition devices and character recognition methods are
As mentioned above, it is premised that the binarization is performed correctly, and even if the separation and removal of noise etc. is performed, the main cause is another cause. Also, character bleeding, color change, shading It did not follow the changes in.

【0006】しかも、従来の文字認識装置にあっては、
文字認識を行う全領域を単一且つ同一のレベルで2値化
しているため、そのような装置によって円筒形の鋼材の
外面等の曲面上にマーキングされた文字を認識しようと
しても、照明のむらやレンズのシェーデイングの影響を
受けてしまい、全領域から鮮明な2値化画像を得ること
は不可能なことが多い。
Moreover, in the conventional character recognition device,
Since the entire area for character recognition is binarized at a single and the same level, even if an attempt is made to recognize a character marked on a curved surface such as the outer surface of a cylindrical steel material by such a device, there is uneven illumination. It is often impossible to obtain a clear binary image from the entire area because of the influence of lens shading.

【0007】[0007]

【発明が解決しようとする課題】一般に、複数の領域を
検査する場合、各領域に存在する文字の形状、色、光沢
度等が違っていても、各領域毎に2値化レベルを設定す
ることができるようにする必要がある。
Generally, when a plurality of areas are inspected, a binarization level is set for each area even if the shape, color, glossiness, etc. of the characters existing in each area are different. Need to be able to.

【0008】本発明は、全領域を単一且つ同一の2値化
レベルで文字認識するという従来の欠点を改善するため
になされたもので、文字照合の過程で鮮明な2値化が得
られない場合、各領域毎に最適な2値化レベルを設定す
るようにした文字照合装置及び方法を提供することを目
的とする。
The present invention has been made in order to improve the conventional drawback of recognizing characters in the entire region with a single and same binarization level, and clear binarization can be obtained in the process of character collation. An object of the present invention is to provide a character collating apparatus and method for setting an optimum binarization level for each area when there is no such character.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明に係る文字照合装置は、識別されるべき文
字を読み取るための画像読み取り手段と、前記読み取り
手段で読み取られた画像を第1の2値化レベルで2値化
するための2値化手段と、前記2値化された画像から前
記文字を切り出し、切り出した文字を1つずつ出力する
ための切り出し手段と、前切り出し手段から出力された
文字を標準パターンと照合するための照合手段と、前記
照合手段での照合における一致度が所定値を越えたかど
うかを判定し、越えたと判定した場合には第1の信号
を、越えていないと判定した場合には第2の信号を出力
する判定手段と、前記第2の信号に応答して、前記第1
の2値化レベルと関連する第2の2値化レベルを前記2
値化手段に設定させ、前記切り出し手段に前記第2の2
値化レベルで文字を切り出させるための手段と前記第1
の信号に応答して、前記切り出し手段から次の文字を切
り出させるための手段とを具備する。
In order to achieve the above object, a character collating apparatus according to the present invention comprises an image reading means for reading a character to be identified and an image read by the reading means. Binarization means for binarizing at a first binarization level, cutting-out means for cutting out the character from the binarized image, outputting the cut-out characters one by one, and pre-cutting-out The collating means for collating the character output from the means with the standard pattern, and whether or not the degree of coincidence in the collation by the collating means exceeds a predetermined value is judged. And a first determining unit that outputs a second signal when it is determined that the first signal does not exceed the first signal,
The second binarization level associated with the binarization level of
The quantizing means is set and the clipping means is set to the second 2
The means for cutting out a character at a digitization level and the first
In response to the signal, the means for cutting out the next character from the cutting-out means.

【0010】また、本発明に係る文字照合方法は、識別
されるべき文字を読み取るための画像読み取り段階と、
前記読み取り段階で読み取られた画像を第1の2値化レ
ベルで2値化するための2値化段階と、前記2値化され
た画像から前記文字を切り出し、切り出した文字を1つ
ずつ出力するための切り出し段階と、前記の出力された
文字を標準パターンと照合するための照合段階と、前記
照合段階での照合における一致度が所定値を越えたかど
うかを判定し、越えたと判定した場合には第1の信号
を、越えていないと判定した場合には第2の信号を出力
する判定段階と、前記第2の信号に応答して、前記第1
の2値化レベルと関連する第2の2値化レベルを設定
し、前記切り出し段階において前記第2の2値化レベル
で文字を切り出させる段階と前記第1の信号に応答し
て、前記切り出し段階において切り出された次の文字を
出力する段階とを具備する。
The character collating method according to the present invention further comprises an image reading step for reading a character to be identified,
A binarization step for binarizing the image read in the reading step at a first binarization level; cutting out the character from the binarized image; outputting the cut out characters one by one And a matching step for matching the output character with a standard pattern, and whether the degree of matching in the matching in the matching step exceeds a predetermined value. A first signal, and a second signal is output when it is determined that the first signal has not been exceeded, and the first signal is output in response to the second signal.
Setting a second binarization level associated with the binarization level of, and cutting out characters at the second binarization level in the cutting out step, and the cutting out in response to the first signal. Outputting the next character cut out in step.

【0011】本発明に係る文字照合装置及び文字照合方
法は、文字が曲面上にマーキングされている場合や、前
記文字が複数の文字を含む文字列であり、そのうちの少
なくとも1つの文字の色が他の文字とは異なる場合に適
している。
A character collating apparatus and a character collating method according to the present invention are used when a character is marked on a curved surface or when the character is a character string including a plurality of characters, and at least one of the characters has a color. Suitable when different from other characters.

【0012】前記第2の2値化レベルは、切り出されて
出力された文字の文字部の割合と該文字と照合された標
準パターンの文字部の割合との差によって前記第1の2
値化レベルを修正したものである。
The second binarization level is determined by the difference between the ratio of the character part of the character cut out and output and the ratio of the character part of the standard pattern matched with the character.
This is a modification of the valuation level.

【0013】[0013]

【作用】本発明においては、1つの画像を標準パターン
と照合する際の一致度が所定値を越えるかどうかを判定
し、越えない場合には当該画像を切り出すための2値化
レベルをそれと関連する別の2値化レベルへ変更し、変
更された2値化レベルで当該画像を再度切り出し、標準
パターンとの照合の際の一致度を再判定する。
According to the present invention, it is determined whether or not the degree of coincidence in matching one image with a standard pattern exceeds a predetermined value, and if it does not exceed the predetermined value, the binarization level for cutting out the image is associated with it. To another binarization level, the image is cut out again with the changed binarization level, and the degree of coincidence at the time of matching with the standard pattern is determined again.

【0014】[0014]

【実施例】以下、本発明の一実施例を図面を参照して詳
細に説明する。図1は、本発明に係る文字照合装置の実
際の使用状態を示している。同図において、コイル1の
湾曲した外面にコイル識別のための数字列2がマーキン
グされている。数字列2は照明装置3によって照明され
るが、数字列2が湾曲した面にマーキングされているた
めに、数字がマーキングされているそれぞれの領域が不
均一に照明されがちである。数字列2に対向して、本発
明に係る文字照合装置4が配置される。文字照合装置4
は、従来の装置同様に、数字列2の数字を読み取るカメ
ラ、該カメラの出力をA/D変換するA/Dコンバー
タ、該A/Dコンバータの出力を記憶する第1のメモ
リ、標準の文字パターンを記憶する第2のメモリ、照合
結果を記憶する第3のメモリ、これら第1及び第2のメ
モリの出力を比較して複数の数字を1つずつ照合し、そ
の結果を第3のメモリに記憶させるプロセッサ、及び、
照合の結果を表示する表示装置を含む。文字照合装置4
を上位の計算機5と接続し、上位の計算機5から文字照
合装置4へ、識別されるべき数字列と関連する情報(例
えば、コイルナンバ)を送って該情報に基づいて当該数
字列に対する標準パターンを決定するようにしてもよ
い。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below in detail with reference to the drawings. FIG. 1 shows an actual usage state of the character collating apparatus according to the present invention. In the figure, a number string 2 for identifying the coil is marked on the curved outer surface of the coil 1. The numeral string 2 is illuminated by the lighting device 3, but since the numeral string 2 is marked on the curved surface, each area where the numeral is marked tends to be unevenly illuminated. The character matching device 4 according to the present invention is arranged so as to face the numeral string 2. Character matching device 4
Is a camera for reading the numbers in the number string 2, an A / D converter for A / D converting the output of the camera, a first memory for storing the output of the A / D converter, and a standard character, as in the conventional device. A second memory for storing a pattern, a third memory for storing a collation result, and outputs of the first and second memories are compared to collate a plurality of numbers one by one, and the result is stored in a third memory. A processor to be stored in, and
A display device for displaying the result of the collation is included. Character matching device 4
Is connected to a higher-order computer 5, information from the higher-order computer 5 to the character collating device 4 is transmitted to the character collating device 4 (for example, coil number), and a standard pattern for the number sequence is sent based on the information. May be determined.

【0015】次に、本発明に係る文字照合装置の動作
を、図2のフローチャートを用いて説明する。
Next, the operation of the character collating apparatus according to the present invention will be described with reference to the flowchart of FIG.

【0016】まず、ステップS1において、文字照合装
置4のカメラにより、被写体である数字列2を取り込
む。続いて、ステップS2において、取り込んだ画像の
2値化レベルXを濃淡ヒストグラム計測によって求め、
ステップS3において、この2値化レベルXを用いて数
字列2の画像を2値化する(全領域単一同一レベルでの
2値化)。
First, in step S1, the camera of the character collating device 4 captures the number string 2 as an object. Subsequently, in step S2, the binarization level X of the captured image is obtained by the density histogram measurement,
In step S3, the image of the number string 2 is binarized by using this binarization level X (binarization at the same level in all areas).

【0017】次に、ステップS4において、それぞれの
数字に対応する画像の切り出しを行う。このためには、
画素の横方向の周辺分布(画素の値を横方向に1列ずつ
合計した値)を求め、それぞれの画像の位置を決定し、
次いで、画素の縦方向の周辺分布を求め、1つ1つの画
像を切り出していく。このようにして切り出された画像
においては、各数字とカメラとの距離の違いによる画像
の大きさの変動が補正される(数字の大きさの正規
化)。
Next, in step S4, an image corresponding to each number is cut out. For this,
The lateral distribution of the pixels in the lateral direction (the value of the pixels is summed up one by one in the lateral direction) is determined, and the position of each image is determined.
Then, the vertical distribution of the pixels is obtained, and each image is cut out. In the image cut out in this manner, the variation in the image size due to the difference in the distance between each number and the camera is corrected (normalization of the number size).

【0018】数字列をなすそれぞれの数字は、ほぼ一定
のピッチでマーキングされてはいるが、マーキングされ
た各数字の位置が上下にずれていたり、数字の大きさが
不揃いだったりするのが普通であるから、数字列を取り
込むに当たっては、数字列の上下に一定数の画素に相当
する空白を設定して基準読み込み高さを決め、それに応
じて1つの画像の読み込み幅を決めて各画像の中心位置
を求める。これによって最適読み込み中心位置を決め、
所定のピッチで数字列の一端から1数字分ずつ切り出し
ていけばよい。
Although the respective numbers forming the number string are marked at a substantially constant pitch, it is common that the positions of the marked numbers are vertically displaced or the sizes of the numbers are not uniform. Therefore, when importing a number string, set a blank corresponding to a certain number of pixels above and below the number string to determine the reference reading height, and according to that, determine the reading width of one image to determine the reading width of each image. Find the center position. By this, the optimum reading center position is decided,
It suffices to cut out one number from each end of the number string at a predetermined pitch.

【0019】続いて、ステップS5において、前記ステ
ップS4で切り出された1つの画像を前記第2のメモリ
に記憶された標準パターンとパターンマッチングにより
照合し、その画像における一致度を計算する。
Subsequently, in step S5, the one image cut out in step S4 is collated with the standard pattern stored in the second memory by pattern matching, and the degree of coincidence in the image is calculated.

【0020】ステップS6は、ステップS5での照合に
おける一致度が所定値(例えば90%)を越えていたか
どうかをチェックする。一致度が所定値を越えていれ
ば、適正な照合が行われたと判定してステップS7へ進
み、ステップS3で2値化された画像全部の照合が終了
したかどうかを判定する。全画像の照合が終了していな
ければステップS5へ戻り、ステップS3において2値
化レベルXで求めた次ぎの画像について標準パターンと
の照合を行い、以下同様にして全部の画像の照合を行っ
ていく。
A step S6 checks whether or not the degree of coincidence in the collation in the step S5 exceeds a predetermined value (for example, 90%). If the degree of coincidence exceeds a predetermined value, it is determined that proper matching has been performed, the process proceeds to step S7, and it is determined whether the matching of all the binarized images in step S3 is completed. If all images have not been collated, the process returns to step S5, and the next image obtained at the binarization level X is collated with the standard pattern in step S3, and then all images are collated in the same manner. Go.

【0021】しかし、ステップS5での照合における一
致度が所定値未満であること、即ち誤照合状態がステッ
プS6において確認されると、所定回数だけ2値化レベ
ルを変更し、その都度、当該画像と標準パターンとの一
致度が所定値を越えるかどうかを判定する。即ち、ステ
ップS6において一致度が所定値を越えないと判定され
ると、ステップS8へ進み、誤照合状態の発生が所定回
数(例えば2回)に達したかどうかを判定する。この場
合には、誤照合状態であると初めて判定されたのである
から、ステップS9へ進む。
However, if the degree of coincidence in the collation in step S5 is less than the predetermined value, that is, if the erroneous collation state is confirmed in step S6, the binarization level is changed a predetermined number of times, and each time the image concerned is changed. It is determined whether the degree of coincidence between the standard pattern and the standard pattern exceeds a predetermined value. That is, when it is determined in step S6 that the degree of coincidence does not exceed the predetermined value, the process proceeds to step S8, and it is determined whether or not the occurrence of the erroneous collation state has reached a predetermined number (for example, twice). In this case, it is first determined that the collation state is incorrect, and thus the process proceeds to step S9.

【0022】ステップS9においては、ステップS4
において切り出された画像の画素数と該画像を含む領域
の全画素数との比即ち文字部の割合(A)を計算し、
前記比(A)と、ステップS4において決定された標準
パターンの数字の画素数と該標準パターンを含む領域の
全画素数との比即ち文字部の割合(B)とを比較し、
それらの差(C=A〜B)に基づいて新たな2値化レベ
ルY(=X+kC;kは定数)を設定してステップS3
へ戻る。
In step S9, step S4
The ratio of the number of pixels of the image cut out in step 1 to the total number of pixels of the area including the image, that is, the ratio (A) of the character portion is calculated,
The ratio (A) is compared with the ratio of the number of pixels of the number of the standard pattern determined in step S4 to the total number of pixels of the area including the standard pattern, that is, the ratio of the character portion (B),
A new binarization level Y (= X + kC; k is a constant) is set based on the difference (C = A to B), and step S3 is performed.
Return to.

【0023】そこでステップS3では、再設定された2
値化レベルYに基づいて当該画像を2値化し、それを再
度切り出し、こうして切り出された画像と標準パターン
との照合をステップS5において行う。そのときの一致
度が所定値を越えたかどうかをステップS6で判定し、
一致度が所定値を越えていることが確認されれば、適正
な照合がなされていると判断されるので、ステップS7
へ進み、次の画像(ステップS3において最初に2値化
レベルXで切り出された画像である)をステップS5、
S6、S7により標準パターンと照合し処理する。この
場合においても、ステップS6において一致度が所定値
を越えないと判定されれば、前記のとおりの手法で新た
な2値化レベルZをその前の2値化レベルと関連させて
再設定してその2値化レベルでの照合を行い、2値化レ
ベルの再設定が所定回数を越えて行われないうちに一致
度が所定値を越えるならば、そのときの2値化レベルを
最適2値化レベルと判断し、適正な照合が行われたと判
定する。こうして、それぞれの画像について最適な2値
化レベルが設定され、それに基づいて全部の画像の照合
が行われる。
Therefore, in step S3, the reset 2
The image is binarized based on the binarization level Y, the image is cut out again, and the image cut out in this way and the standard pattern are collated in step S5. In step S6, it is determined whether the degree of coincidence at that time exceeds a predetermined value,
If it is confirmed that the degree of coincidence exceeds the predetermined value, it is determined that proper collation has been performed, and therefore, step S7.
Proceeding to step S5, the next image (which is the image first cut out at the binarization level X in step S3) is displayed in step S5.
In S6 and S7, the pattern is compared with the standard pattern and processed. Also in this case, if it is determined in step S6 that the degree of coincidence does not exceed the predetermined value, the new binarization level Z is reset in association with the previous binarization level by the method described above. If the degree of coincidence exceeds a predetermined value before the binarization level is reset for more than a predetermined number of times, the binarization level at that time is optimized. It is determined that it is a digitization level, and it is determined that proper matching has been performed. In this way, the optimum binarization level is set for each image, and the matching of all images is performed based on that.

【0024】しかし、所定の回数だけステップS9にお
いて2値化レベルを再設定しても、一致度が所定値を越
えないと、ステップS8は誤照合状態であるとの判定が
所定回数なされたことを確認し、材料の誤投入であると
判断して作業を終了する。
However, if the degree of coincidence does not exceed the predetermined value even if the binarization level is reset in step S9 a predetermined number of times, step S8 determines that the collation state is a predetermined number of times. Check that, it is judged that the material is erroneously input, and the work is finished.

【0025】図3は、曲面上にマーキングされた数字の
6を従来の装置により2値化した画像と本発明に係る文
字照合装置により2値化した場合の画像とを示す。この
図からわかるとおり、本発明に従って2値化された画像
の方が鮮明である。
FIG. 3 shows an image in which the numeral 6 marked on the curved surface is binarized by the conventional device and an image when binarized by the character collating device according to the present invention. As can be seen from this figure, the image binarized according to the present invention is sharper.

【0026】以上、本発明の一実施例を詳細に説明した
が、本発明は上記実施例のみに限定されるものではな
い。例えば、上記実施例においては、ステップS3にお
いて全領域を単一且つ同一の2値化レベルで画像を2値
化するようにしたが、この代わりに、ステップS1にお
いて取り込んだ数字列の画像について切り出し処理を行
って個々の画像の計測領域を検出し、その各領域毎に個
別に2値化レベルを設定して2値化画像を得るようにし
てもよい。
Although one embodiment of the present invention has been described in detail above, the present invention is not limited to the above embodiment. For example, in the above-described embodiment, the image is binarized in step S3 with a single and the same binarization level in the entire area. Instead, however, the image of the number string captured in step S1 is cut out. It is also possible to perform a process to detect a measurement region of each image and set a binarization level individually for each region to obtain a binarized image.

【0027】また、上記実施例は数字列が曲面上にマー
キングされた場合の処理に関するものであるが、数字列
が異なる色の数字を含む場合や照明にむらがある場合等
にも応用することができる。
Further, although the above-mentioned embodiment relates to the processing when the numeral string is marked on the curved surface, it can be applied to the case where the numeral string includes numerals of different colors or the illumination is uneven. You can

【0028】このように、コイルのような曲面上にマー
キングされた数字列を照合する場合にも、2値化レベル
をそれぞれの画像毎に個別に且つアナログ的に設定して
2値化画像を求め、これに基づいて文字照合を行うの
で、数字のにじみやかすれ、照明の不均一等によるノイ
ズに起因する誤認識を低減することができ、したがっ
て、コイルの誤処理を防止し確認するのに必要な人員を
省くことができる。
In this way, also when collating a number string marked on a curved surface such as a coil, the binarization level is set individually and in an analog manner for each image to form a binarized image. Since it is obtained and the character collation is performed based on this, it is possible to reduce erroneous recognition due to noise due to number bleeding, blurring, uneven lighting, etc. Therefore, it is possible to prevent and confirm erroneous coil processing. The necessary personnel can be omitted.

【0029】また、数字をマーキングする色が異なる場
合や文字の照明が不均一である場合にも、各画像毎に最
適な2値化レベルを設定することができるので、文字認
識精度を向上させることができるので、文字の自動認識
を適用する分野を広げ、種々の場合に柔軟に対応するこ
とが可能となる。
Further, even when the colors for marking the numbers are different or the illumination of the characters is uneven, the optimum binarization level can be set for each image, so that the character recognition accuracy is improved. Therefore, it is possible to expand the field to which the automatic recognition of characters is applied and flexibly deal with various cases.

【0030】[0030]

【発明の効果】以上、実施例により本発明を詳細に説明
したところから明らかなように、文字が曲面上にマーキ
ングされている場合、異なる色でマーキングされた文字
を認識する場合、文字が均一に照明されていない場合等
において、文字照合の一致度が所定値を越えないとき、
所定の回数だけ2値化レベルを前回の2値化レベルと関
連させて変更し、その都度、変更された2値化レベルで
文字照合を行うので、照合精度を向上させることがで
き、したがって、文字の自動認識を一層広い範囲に適用
することができるばかりでなく、文字の誤認識による誤
処理を防止するための人員を削減することができる。
As is apparent from the above description of the present invention in detail with reference to the examples, when characters are marked on a curved surface, when characters marked in different colors are recognized, the characters are uniform. If the matching degree of character matching does not exceed the specified value, such as when the
Since the binarization level is changed a predetermined number of times in association with the previous binarization level, and each time the character is collated with the changed binarization level, the collation accuracy can be improved, and therefore, Not only can the automatic recognition of characters be applied to a wider range, but the number of personnel for preventing erroneous processing due to erroneous recognition of characters can be reduced.

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

【図1】本発明に係る文字照合装置の使用状態を説明す
るための図である。
FIG. 1 is a diagram illustrating a usage state of a character matching device according to the present invention.

【図2】本発明に係る文字照合装置の動作を示すフロー
チャートである。
FIG. 2 is a flowchart showing the operation of the character collating device according to the present invention.

【図3】Aは従来の装置による2値化画像を、Bは本発
明に係る文字照合装置に従って2値化レベルを変更して
2値化された場合の画像を示す図である。
3A is a diagram showing a binarized image by a conventional device, and FIG. 3B is a diagram showing an image when binarized by changing the binarization level according to the character collating device according to the present invention.

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

1 コイル 2 数字列 3 照明装置 4 文字照合装置 5 上位計算機 1 coil 2 Number sequence 3 lighting equipment 4-character collation device 5 Host computer

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 識別されるべき文字を読み取るための画
像読み取り手段と、 前記読み取り手段で読み取られた画像を第1の2値化レ
ベルで2値化するための2値化手段と、 前記2値化された画像から前記文字を1つずつ切り出す
ための切り出し手段と、 前切り出し手段から切り出された文字を標準パターンと
照合するための照合手段と、 前記照合手段での照合における一致度が所定値を越えた
かどうかを判定し、越えたと判定した場合には第1の信
号を、越えていないと判定した場合には第2の信号を出
力する判定手段と、 前記第2の信号に応答して、前記第1の2値化レベルと
関連する第2の2値化レベルを前記2値化手段に設定さ
せ、前記切り出し手段に前記第2の2値化レベルで文字
を切り出させるための手段と前記第1の信号に応答し
て、前記切り出し手段から次の文字を切り出させるため
の手段とを具備する文字照合装置。
1. An image reading unit for reading a character to be identified; a binarizing unit for binarizing an image read by the reading unit at a first binarizing level; A cutting-out means for cutting out the characters one by one from the binarized image, a matching means for matching the characters cut out from the front cutting-out means with a standard pattern, and a matching degree in matching by the matching means is predetermined. It is determined whether or not the value has been exceeded. If it is determined that the value has been exceeded, a first signal is output, and if it is determined that the value has not been exceeded, a second signal is output, and in response to the second signal. And means for causing the binarizing means to set a second binarizing level associated with the first binarizing level, and causing the clipping means to clip a character at the second binarizing level. And the first signal To the character collation apparatus and means for causing cut the next character from the cut-out means.
【請求項2】 前記文字が曲面上にマーキングされてい
る請求項1記載の文字照合装置。
2. The character matching device according to claim 1, wherein the character is marked on a curved surface.
【請求項3】 前記文字が複数の文字を含む文字列であ
り、そのうちの少なくとも1つの文字の色が他の文字と
は異なる請求項1記載の文字照合装置。
3. The character collating apparatus according to claim 1, wherein the character is a character string including a plurality of characters, and at least one of the characters has a color different from that of the other characters.
【請求項4】 前記第2の2値化レベルが、前記切り出
し段階において出力された文字の文字部の割合と該文字
と照合された標準パターンの文字部の割合との差によっ
て前記第1の2値化レベルを修正したものである請求項
2又は3記載の文字照合装置。
4. The first binarization level is determined by the difference between the ratio of the character portion of the character output in the cutting step and the ratio of the character portion of the standard pattern matched with the character. The character collating device according to claim 2, wherein the binarization level is corrected.
【請求項5】 識別されるべき文字を読み取る画像読み
取り段階と、 前記読み取り段階で読み取られた画像を第1の2値化レ
ベルで2値化する2値化段階と、 前記2値化された画像から前記文字を1つずつ切り出す
切り出し段階と、 前記の切り出された文字を標準パターンと照合する照合
段階と、 前記照合段階での照合における一致度が所定値を越えた
かどうかを判定し、越えたと判定した場合には第1の信
号を、越えていないと判定した場合には第2の信号を出
力する判定段階と、 前記第2の信号に応答して、前記第1の2値化レベルと
関連する第2の2値化レベルを設定し、前記切り出し段
階において前記第2の2値化レベルで文字を切り出させ
る段階と前記第1の信号に応答して、前記切り出し段階
において切り出された次の文字を出力する段階とを具備
する文字照合方法。
5. An image reading step of reading a character to be identified; a binarizing step of binarizing an image read in the reading step at a first binarizing level; and the binarizing step. A step of cutting out the characters from the image one by one, a matching step of matching the cut-out characters with a standard pattern, and determining whether the degree of matching in the matching in the matching step exceeds a predetermined value, and And a second signal when the first signal is not exceeded, and a second signal when the first signal is not exceeded, and the first binarization level in response to the second signal. A second binarization level associated with the step of cutting out characters at the second binarization level in the cutting out step, and in the cutting out step in response to the first signal. Next character Character collation method comprising the steps of force.
【請求項6】 前記文字が曲面上にマーキングされてい
る請求項5記載の文字照合方法。
6. The character matching method according to claim 5, wherein the character is marked on a curved surface.
【請求項7】 前記文字が複数の文字を含む文字列であ
り、そのうちの少なくとも1つの文字の色が他の文字と
は異なる請求項5記載の文字照合方法。
7. The character matching method according to claim 5, wherein the character is a character string including a plurality of characters, and at least one of the characters has a color different from that of the other characters.
【請求項8】 前記第2の2値化レベルが、前記切り出
し段階において出力された文字の文字部の割合と該文字
と照合された標準パターンの文字部の割合との差によっ
て前記第1の2値化レベルを修正したものである請求項
6又は7記載の文字照合方法。
8. The second binarization level is the first binarization level based on a difference between a ratio of a character portion of a character output in the clipping step and a ratio of a character portion of a standard pattern matched with the character. 8. The character matching method according to claim 6, wherein the binarization level is modified.
JP3187434A 1991-07-26 1991-07-26 Device and method for collating character Pending JPH0535921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3187434A JPH0535921A (en) 1991-07-26 1991-07-26 Device and method for collating character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3187434A JPH0535921A (en) 1991-07-26 1991-07-26 Device and method for collating character

Publications (1)

Publication Number Publication Date
JPH0535921A true JPH0535921A (en) 1993-02-12

Family

ID=16205995

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3187434A Pending JPH0535921A (en) 1991-07-26 1991-07-26 Device and method for collating character

Country Status (1)

Country Link
JP (1) JPH0535921A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0916715A (en) * 1995-06-30 1997-01-17 Nec Corp Character recognition system and method therefor
JP2019057174A (en) * 2017-09-21 2019-04-11 キヤノン株式会社 Image processor, image processing method, and program acquiring character information from scan image

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0916715A (en) * 1995-06-30 1997-01-17 Nec Corp Character recognition system and method therefor
JP2019057174A (en) * 2017-09-21 2019-04-11 キヤノン株式会社 Image processor, image processing method, and program acquiring character information from scan image

Similar Documents

Publication Publication Date Title
US8059868B2 (en) License plate recognition apparatus, license plate recognition method, and computer-readable storage medium
US4903312A (en) Character recognition with variable subdivisions of a character region
US6327385B1 (en) Character segmentation device and character segmentation system
JPH0519753B2 (en)
US5502777A (en) Method and apparatus for recognizing table and figure having many lateral and longitudinal lines
US4797940A (en) Optical character reader
US4596038A (en) Method and apparatus for character recognition
JP2644041B2 (en) Character recognition device
JPH0535921A (en) Device and method for collating character
JPS63205783A (en) Picture tone discriminating device
JP3730073B2 (en) Template creation method, apparatus, and recording medium recording template creation program
JPH0291789A (en) Character recognizing system
JP3022459B2 (en) Form identification registration device
JPH0749926A (en) Character recognizing device
JP2998443B2 (en) Character recognition method and device therefor
JP3220226B2 (en) Character string direction determination method
JPH0916715A (en) Character recognition system and method therefor
CN108171864B (en) Method and device for identifying paper money version
JP3277977B2 (en) Character recognition method
JP2001195584A (en) Image recognizing device
JP2988697B2 (en) Figure recognition method
JPH04311283A (en) Line direction discriminating device
JPH03122786A (en) Optical character reader
JPH05166010A (en) Character siegmenting method
JPH0632074B2 (en) Normalization method