JP2510722B2 - How to distinguish uppercase and lowercase letters in English - Google Patents
How to distinguish uppercase and lowercase letters in EnglishInfo
- Publication number
- JP2510722B2 JP2510722B2 JP1106054A JP10605489A JP2510722B2 JP 2510722 B2 JP2510722 B2 JP 2510722B2 JP 1106054 A JP1106054 A JP 1106054A JP 10605489 A JP10605489 A JP 10605489A JP 2510722 B2 JP2510722 B2 JP 2510722B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- uppercase
- lowercase
- height
- letters
- 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 - Lifetime
Links
Landscapes
- Character Input (AREA)
- Character Discrimination (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、文字認識装置における英文の大文字,小
文字の判別方法に関する。Description: TECHNICAL FIELD The present invention relates to a method for discriminating between uppercase and lowercase letters in English in a character recognition device.
従来、大文字,小文字を判別するに当たり、対象とす
る文字の或る行の高さを大文字の高さとし、その高さに
対して予め設定された小文字の高さの比よりしきい値を
求め、対象文字の高さをこのしきい値と比較し、大文
字,小文字の判別を行なうものが知られている。Conventionally, in distinguishing uppercase and lowercase letters, the height of a certain line of the target character is set as the height of the uppercase letter, and the threshold value is obtained from the ratio of the height of the lowercase letter set in advance to that height, It is known that the height of the target character is compared with this threshold value to discriminate between uppercase and lowercase letters.
しかしながら、この方法では、小文字ばかりの行では
その行の高さは小文字の高さになる場合があり、従来方
法ではこれを大文字の高さに誤って計算,比較するた
め、全ての文字を大文字と誤判別してしまうという問題
がある。However, in this method, the height of the line may be the height of the lowercase letter in the case of only lowercase letters, and in the conventional method, this is erroneously calculated and compared with the height of the uppercase letter. There is a problem that it is erroneously determined.
したがって、この発明の課題は英字には大文字と小文
字で字形の異なる文字が存在することを利用し、大文字
の文字高さと小文字の文字高さを別々に求め、この2つ
の値と対象文字の大きさより大文字,小文字の判別を行
なうことにより、英字の大文字,小文字の判別精度を向
上させることにある。Therefore, an object of the present invention is to use the fact that uppercase letters and lowercase letters have different glyphs in the alphabet, and obtain the uppercase letter height and the lowercase letter height separately, and determine these two values and the size of the target character. By distinguishing uppercase letters from lowercase letters, the accuracy of distinguishing uppercase letters from lowercase letters is improved.
少なくとも対象英文字の大きさを正規化し、大文字も
小文字も同じ標準パターンを用いて認識する文字認識装
置にて大文字,小文字の判別を行なうべく、前記文字認
識装置による認識結果から、対象文字が大文字と小文字
で字形が異なる文字種かまたは字形が同じ文字種かを判
断し、字形が異なる文字種ならばその文字が大文字か小
文字かを判断して対象文字種の文字高さを大文字,小文
字別々に積算する一方、字形の同じ文字種ならばその文
字の高さを記憶する処理を1文字行分行ない、しかる後
前記字形が異なる文字種の文字高さの積算値より大文
字,小文字の平均高さをそれぞれ計算して大文字,小文
字の判別しきい値を求め、しかる後前記字形の同じ文字
種について各々の文字高さをこのしきい値と比較して大
文字か小文字かを判別する。At least the size of the target English character should be normalized, and the character recognition device that recognizes uppercase and lowercase letters using the same standard pattern should distinguish uppercase letters from lowercase letters. If the character type is different between lowercase and lowercase, or if the character type is the same, and if the character type is different, it is determined whether the character is uppercase or lowercase, and the character height of the target character type is summed separately for uppercase and lowercase. , If the character type is the same, perform the process of storing the height of that character for one character line, and then calculate the average height of uppercase letters and lowercase letters respectively from the integrated value of the character height of the character types with different glyphs. Determine the uppercase / lowercase distinction threshold, and then compare the height of each character for the same character type of the above-mentioned glyph with this threshold to determine whether it is uppercase or lowercase. That.
対象文字の認識結果から、対象文字が大文字と小文字
で字形が異なる文字種か、字形が同じ文字種かを判断
し、字形の異なる文字ならば、その文字が大文字か小文
字かを判断し、対象文字の文字高さを大文字,小文字別
々に積算し、字形の同じ文字種ならば、その文字の高さ
を記憶する処理をして1行分の認識結果を得、高さの積
算値と文字数より大文字,小文字の平均高さを計算し、
この2つの値から大文字,小文字の判別しきい値を求
め、字形の同じ文字の高さをこのしきい値と比較し、大
文字,小文字の判別を行なう。From the recognition result of the target character, it is determined whether the target character has different upper and lower case glyphs, or the same glyph, and if the characters have different glyphs, it is determined whether the character is uppercase or lowercase. Character heights are summed separately for uppercase and lowercase letters, and if the character type is the same, the height of the character is memorized to obtain the recognition result for one line. Calculate the average height of lowercase letters,
A threshold for discriminating uppercase letters and lowercase letters is obtained from these two values, and the heights of characters having the same character shape are compared with this threshold value to discriminate uppercase letters and lowercase letters.
第1図はこの発明の実施例を示すフローチャートであ
る。FIG. 1 is a flowchart showing an embodiment of the present invention.
まず、公知の画像処理手法により文字画像データを抽
出し(参照)、同じく公知の手法により対象文字を認
識する(参照)。次いで、認識結果より対象文字が英
字かどうかを判別し(参照)、英字であればその文字
が例えば“C(c)”のように大文字,小文字で字形が
同じか、“A(a)”のように大文字,小文字で字形が
異なるかを判断し(参照)、異なる文字であれば大文
字か小文字かを判断し(参照)、大文字ならば大文字
の積算値に、その文字高さとそれに対する文字高さの相
対テーブルの値を掛け合わせたものを加え(参照)、
もし、小文字ならば小文字の積算値に、その文字高さと
それに対する文字高さの相対テーブルの値を掛け合わせ
たものを加える(参照)。First, character image data is extracted by a known image processing method (see), and the target character is recognized by a known method (see). Next, it is determined whether the target character is an alphabetic character from the recognition result (see). If the character is an alphabetic character, whether the character is the same in uppercase and lowercase, such as "C (c)", or "A (a)" It is determined whether the letter shape is different between upper case and lower case (see), and if it is a different character, it is determined whether it is upper case or lower case (see). Add the ones multiplied by the values in the relative height table (see),
If it is a lowercase letter, add the sum of the lowercase letters and the character height multiplied by the value in the relative table of the character height to it (see).
相対テーブルの例を第2図に示す。すなわち、大文字
T1のテーブル値は全て“1"であるが、小文字T2のテーブ
ル値については、b,h,lの如くその文字高さが大文字と
同程度のものもあるので、これらについてはテーブル値
を例えば“0.5"として、他の小文字とのバランスをとる
ようにしている。An example of the relative table is shown in FIG. Ie uppercase
The table values for T1 are all "1", but for the table values for lowercase T2, there are some character heights that are similar to uppercase, such as b, h, l. It is set to "0.5" to balance it with other small letters.
一方、大文字,小文字で字形が同じ文字種であれば、
その文字高さを保持する(参照)。以上のステップ
〜を繰り返し、1行の認識結果を得る(参照)。1
行の認識終了後、大文字,小文字の積算値と文字数から
各々の平均値を計算し、この2つの値の中間値等から最
適な大文字,小文字の判別しきい値を求める(参
照)。そして、ステップで保存しておいた、大文字,
小文字で字形が同じ文字種の文字高さを呼び出し(参
照)、その各々をしきい値と比較して大文字,子文字の
判別を行なう(参照)。この,のステップは保存
した文字がなくなるまで繰り返す(参照)。On the other hand, if the character type is the same in uppercase and lowercase,
Holds the character height (see). The above steps (1) to (3) are repeated to obtain the recognition result of one line (see). 1
After recognizing the line, the average value of each case is calculated from the integrated value of uppercase and lowercase letters and the number of characters, and the optimum uppercase and lowercase discrimination threshold value is obtained from the intermediate value of these two values (see). And the capital letters that you saved in step,
Calls the character heights of lowercase letters with the same character type (reference), compares each with a threshold value, and determines uppercase letters and child characters (reference). This step is repeated until there are no stored characters (see).
この発明によれば、小文字ばかりの英字でも大文字か
小文字かの判別が可能となり、判別精度を向上し得る利
点がもたらされる。According to the present invention, it is possible to discriminate between uppercase letters and lowercase letters even in English letters having only lowercase letters, and there is an advantage that the discrimination accuracy can be improved.
第1図はこの発明の実施例を示すフローチャート、第2
図は相対テーブルを示す概要図である。 符号説明 T1……大文字テーブル、T2……小文字テーブル。FIG. 1 is a flow chart showing an embodiment of the present invention,
The figure is a schematic diagram showing a relative table. Code Explanation T1 …… Upper case table, T2 …… Lower case table.
Claims (1)
し、大文字も小文字も同じ標準パターンを用いて認識す
る文字認識装置にて大文字,小文字の判別を行なうべ
く、前記文字認識装置による認識結果から、対象文字が
大文字と小文字で字形が異なる文字種かまたは字形が同
じ文字種かを判断し、字形が異なる文字種ならばその文
字が大文字か小文字かを判断して対象文字種の文字高さ
を大文字,小文字別々に積算する一方、字形の同じ文字
種ならばその文字の高さを記憶する処理を1文字行分行
ない、しかる後前記字形が異なる文字種の文字高さの積
算値より大文字,小文字の平均高さをそれぞれ計算して
大文字,小文字の判別しきい値を求め、しかる後前記字
形の同じ文字種について各々の文字高さをこのしきい値
と比較して大文字か小文字かを判別することを特徴とす
る英文の大文字,小文字の判別方法。1. A character recognition device for normalizing at least the size of a target alphabetic character and recognizing a capital letter and a small letter by using a standard pattern having the same upper and lower case, based on the recognition result by the character recognizing device. , The upper and lower case of the target character type is determined by determining whether the target character is in uppercase and lowercase, and if the glyphs have different glyphs or the same glyph has the same glyph. While summing separately, if the character type of the glyph is the same, the process of storing the height of that character is performed for one character line, and then the average height of uppercase letters and lowercase letters from the cumulative value of the character height of the character types with different glyphs Is calculated to obtain the upper and lower case discrimination threshold, and then the height of each character of the same character type of the above-mentioned glyph is compared with this threshold to determine whether it is capital or small. Uppercase English, characterized in that to determine character, lowercase determination method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1106054A JP2510722B2 (en) | 1989-04-27 | 1989-04-27 | How to distinguish uppercase and lowercase letters in English |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP1106054A JP2510722B2 (en) | 1989-04-27 | 1989-04-27 | How to distinguish uppercase and lowercase letters in English |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH02285477A JPH02285477A (en) | 1990-11-22 |
JP2510722B2 true JP2510722B2 (en) | 1996-06-26 |
Family
ID=14423906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP1106054A Expired - Lifetime JP2510722B2 (en) | 1989-04-27 | 1989-04-27 | How to distinguish uppercase and lowercase letters in English |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2510722B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0457534B1 (en) * | 1990-05-14 | 2001-10-31 | Canon Kabushiki Kaisha | Image processing method and apparatus |
-
1989
- 1989-04-27 JP JP1106054A patent/JP2510722B2/en not_active Expired - Lifetime
Also Published As
Publication number | Publication date |
---|---|
JPH02285477A (en) | 1990-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6643401B1 (en) | Apparatus and method for recognizing character | |
JP2510722B2 (en) | How to distinguish uppercase and lowercase letters in English | |
JPS58214973A (en) | Similar character discriminating system | |
JP3911942B2 (en) | Character recognition device | |
JP2930605B2 (en) | How to distinguish between uppercase, lowercase and Kanji Kana-like characters | |
JP3457094B2 (en) | Character recognition device and character recognition method | |
JP2671985B2 (en) | Information recognition method | |
JPH0527916B2 (en) | ||
JPS62271086A (en) | Pattern recognizing device | |
JPH01114991A (en) | Method for discriminating capital letter/small letter | |
JP4143148B2 (en) | Character recognition device | |
JP2993252B2 (en) | Homomorphic character discrimination method and apparatus | |
JP2851865B2 (en) | Character recognition device | |
JPH076211A (en) | On-line character recognition device | |
JP4092847B2 (en) | Character recognition device and character recognition method | |
JP3595081B2 (en) | Character recognition method | |
JPH10162103A (en) | Character recognition device | |
JPH0855185A (en) | Character recognition device | |
JPH0210480A (en) | Character deciding method | |
JPS6081688A (en) | Recognizing method of information | |
JPH0632074B2 (en) | Normalization method | |
JPH07117995B2 (en) | Character recognition device | |
JPH0436885A (en) | Optical character reader | |
JPH0797397B2 (en) | Handwritten character recognition device | |
JPH0371380A (en) | Character recognizing device |