JPH0245892A - Method and device for recognizing character - Google Patents
Method and device for recognizing characterInfo
- Publication number
- JPH0245892A JPH0245892A JP63197537A JP19753788A JPH0245892A JP H0245892 A JPH0245892 A JP H0245892A JP 63197537 A JP63197537 A JP 63197537A JP 19753788 A JP19753788 A JP 19753788A JP H0245892 A JPH0245892 A JP H0245892A
- Authority
- JP
- Japan
- Prior art keywords
- threshold
- preprocessing
- threshold value
- image data
- unit
- 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
Links
Landscapes
- Character Input (AREA)
Abstract
Description
【発明の詳細な説明】 〔産業上の利用分野〕 この発明は9文字認識の前処理過程において。[Detailed description of the invention] [Industrial application field] This invention is in the preprocessing process of nine character recognition.
様々な利点を持つ複数のしきい値決定方法を実行し、得
られたしきい値を用いて処理することによリ、あらゆる
条件下の文字の認識1ζ対応することができる文字認識
方法及び装置1ど関するものである。A character recognition method and device capable of supporting character recognition under all conditions by executing a plurality of threshold determination methods having various advantages and processing using the obtained thresholds. 1.
一般に9文字認識過程における前処理過程では。 In general, in the preprocessing process in the nine character recognition process.
画像データに含まれる雑音や歪み成分の除去、上記前処
理過程に続く特徴抽出・認識過程の処理を容易に行うた
めの文字の位置や大きさの変換などの処理が行われる。Processes such as removing noise and distortion components contained in the image data and converting the position and size of characters are performed to facilitate the feature extraction and recognition process that follows the preprocessing process.
前処理過程における雑音除去の最も一般的な方法として
、しきい値処理による画像データの2値化が知られてい
る。つまり9画像IP(i、j) をしきい値tに関
して、各画素の濃度を
JP (i、 j)= 1: IP (i、 j)≧t
O: IP (i、 j) < t
と処理するものである。Binarization of image data by threshold processing is known as the most common method of noise removal in the preprocessing process. In other words, for the 9 images IP (i, j) with respect to the threshold t, the density of each pixel is JP (i, j) = 1: IP (i, j) ≧ t
O: Processes IP (i, j) < t.
このしきい値を決定する方法にはさまざまな種類があり
、1つ1つが違った利点を持つ。There are various methods for determining this threshold, each with different advantages.
このような方法で設定されたしきい値で2値化された画
像が、lf処理過程を経て特徴抽出、・識別過程に送ら
れるので、不適当なしきい値で2値化された場合、不適
当に認識される可能性がある。An image that has been binarized using the threshold set in this way is sent to the feature extraction/identification process after passing through the lf processing process, so if it is binarized using an inappropriate threshold, it will cause errors. It may be recognized appropriately.
このように2文字認識において2値化を行う場合、あら
ゆる条件下の1画像に対する最適なしきい値をどのよう
にして設定するかということが重要な問題となる。When performing binarization in two-character recognition in this way, an important issue is how to set the optimal threshold for one image under all conditions.
しきい値決定方法に関する従来の一例1こ、各画素の濃
度の平均からしきい値を得る平均−次式法という方法が
ある。この方法は2画像の濃度ヒストグラムを求めるこ
となくしきい値を決定できるので、非常に簡単なアルゴ
リズムで済み、ステップ数も少ないという利点がある。One conventional example of a threshold value determination method is a method called the average-order method, in which a threshold value is obtained from the average density of each pixel. This method has the advantage that a threshold value can be determined without determining the density histograms of two images, and that it requires a very simple algorithm and requires a small number of steps.
平均−次式法を用いた文字認識方法の従来例について、
第3因。Regarding the conventional example of character recognition method using mean-order method,
Third cause.
第4図を用いて説明する。This will be explained using FIG.
第3図は従来の実施例の機能ブロック図を示したもので
あり、第4図は従来の実施例の前処理部の一例を示した
ものである。FIG. 3 shows a functional block diagram of a conventional embodiment, and FIG. 4 shows an example of a preprocessing section of the conventional embodiment.
図において、111は走査部、(2)は前処理部、(3
)は特徴抽出部、(4)は識別部、(8)はしきい値決
定処理。In the figure, 111 is a scanning section, (2) is a preprocessing section, and (3
) is a feature extraction unit, (4) is an identification unit, and (8) is a threshold value determination process.
(9)は2値化処理、 +IGは正規化処理である。入
力文字を照明し、上記入力文字の濃淡情報を得る走査部
1!)を経た画像データは、様々な雑音、歪みなどを含
むため、このままでは識別は困難である。このデータは
つぎに前処理部(2)に送られる。前処理部(2)では
、しきい値決定処理(8)において平均−次式法を用い
てしきい値を設定し、そのしきい値によってデータを2
値化しく2値化処理19+)、さらに認識を行いやす(
するために2色々な大きさの文字を一定の大きさに拡大
、縮小して寸法を合せる正規化処理+IGが行われる。(9) is a binarization process, and +IG is a normalization process. A scanning unit 1 that illuminates input characters and obtains shading information of the input characters! ) image data contains various noises, distortions, etc., so it is difficult to identify them as is. This data is then sent to the preprocessing section (2). In the preprocessing section (2), a threshold value is set using the mean-order equation method in the threshold value determination process (8), and the data is divided into two according to the threshold value.
Binarization processing (19+), which makes recognition easier (
In order to do this, normalization processing + IG is performed to enlarge or reduce characters of various sizes to a fixed size to match the dimensions.
次に、特徴抽出部(3)に送られ9文字を認識する上で
必要となる文字の特徴を決定し9次にその文字と1文字
認識装置内の基準となる1セツトの辞書とマツチングさ
せ。Next, the characters are sent to the feature extraction unit (3), which determines the characteristics of the characters necessary to recognize the nine characters, and then matches the characters with a set of dictionaries that serve as a reference in the character recognition device. .
認識を行う識別部(4)に送られる。The information is sent to an identification unit (4) that performs recognition.
従来の文字認識方法は、上記のようにしきい値決定方法
を平均−次式法という1つの方法薯ど限定してしきい値
を決定し、そのしきい値を用いて2値化、識別を行って
いた。Conventional character recognition methods limit the threshold value determination method to one method, the average-order equation method, as described above, determine the threshold value, and use that threshold value to perform binarization and identification. I was going.
従来の文字認識方法は、上記のようにしきい値決定方法
を平均−次式法という1つの方法に限定していた。入力
文字の条件(印字文字のインキのにじみ、かすれ等)が
一定の場合は、従来方法でも問題はないが、このような
ケースはまれであって、現実には、入力文字1つ1つに
よって条件は異なるものである。In the conventional character recognition method, the threshold value determination method is limited to one method, the mean-order equation method, as described above. If the input character conditions (ink bleeding, blurring, etc. of printed characters) are constant, there is no problem with the conventional method, but such cases are rare, and in reality, each input character The conditions are different.
この場合、その1つ1つの条件に対して、限定された平
均−次式法というしきい値決定方法が最適なものとは限
らない。例えば、活字や線、記号等の、比率が安定して
いる場合にはP−タイル法が最適であると考えられてい
る。また、自動車ナンバー自動読取システムでは、天気
による明暗。In this case, the threshold value determination method called the limited mean-order equation method is not necessarily optimal for each condition. For example, the P-tile method is considered to be optimal when the ratio is stable, such as for typefaces, lines, symbols, etc. In addition, automatic vehicle number reading systems are subject to brightness and darkness depending on the weather.
スピードによるナンバーのぼやけ等あらゆる条件が考え
られ、このよう゛な場合は9判別分析法−大津の方法の
ように柔軟性のあるしきい値決定方法が最適であると思
われる。Various conditions can be considered, such as blurring of numbers due to speed, and in such cases, a flexible threshold determination method such as the 9-discriminant analysis method--Otsu's method seems to be optimal.
つまり、限定されたしきい値決定方法により設定された
しきい値では認識できなかった文字が。In other words, characters that could not be recognized by the threshold set by the limited threshold determination method.
別のしきい値決定方法により設定されたしきい値では認
識できる可能性がある。There is a possibility that it can be recognized with a threshold value set by another threshold determination method.
この発明は、このような課題を解決するためになされた
もので1文字認識におけるしきい値の設定を重視し、様
々な利点を持つ複数のしきい値決定方法の実行を可能と
する文字認識方法及びその装置を提供することを目的と
するものである。This invention was made to solve these problems, and it is a character recognition system that emphasizes the setting of a threshold value in single character recognition and enables the execution of multiple threshold value determination methods with various advantages. The object of the present invention is to provide a method and an apparatus thereof.
本発明は1文字認識におけるlif処理部(2)で、し
きい値決定処程を複数、並列に実行することにより、上
記しきい値決定処理に続く面処理過程の処理を並列に実
行し、特徴抽出過程、識別過程を経て識別された複数の
結果から入力文字を判定するようにしたものである。The present invention executes a plurality of threshold determination processes in parallel in the lif processing unit (2) in single character recognition, thereby executing the surface processing process subsequent to the threshold determination process in parallel, The input character is determined from a plurality of results identified through a feature extraction process and a recognition process.
この発明においては1文字認識においてしきい値処理を
行う場合に、しきい値決定方法を1つに限定しないこと
により2文字の認識率を高める。In the present invention, when performing threshold processing in single character recognition, the recognition rate for two characters is increased by not limiting the threshold value determination method to one.
しきい値決定方法には、平均−次式法、P−タイル法、
モード法2判別分析法−大津の方法等があり、それぞれ
が違った特徴を持つ。Threshold determination methods include mean-order method, P-tile method,
There are modes such as the mode method 2 discriminant analysis method - Otsu's method, etc., and each has different characteristics.
平均−次式法とは9曲に説明した通りであり。The mean-order equation method is as explained in section 9.
P−タイル法とは、a度ヒストグラムの面積の比率によ
ってしきい値を決定する方法、モード法とは、濃度ヒス
トグラムの中の山(モード)の間に谷を見つけて、その
谷の濃度値をしきい値とする方法9判別分析法−大津の
方法とは、濃度ヒストグラムのクラス分離度を最大にす
るという判別分析の基準を用いた方法で、ヒストグラム
が双峰的な場合はモード法として働き、モードがない場
合でもしきい値が自動的に決まるという優れた方法であ
る。The P-tile method is a method that determines the threshold value based on the ratio of the area of the a-degree histogram, and the mode method is a method that finds a valley between the peaks (modes) in the density histogram and calculates the density value of that valley. 9 Discriminant analysis method - Otsu's method is a method that uses the criterion of discriminant analysis to maximize the class separation of the concentration histogram.If the histogram is bimodal, it is used as a mode method. This is a great way to automatically determine the threshold even if there is no mode.
以下、これらのしきい値決定方法の中から3つのしきい
値決定方法を実行する場合を例に9図面を参照して本発
明を説明する。Hereinafter, the present invention will be described with reference to nine drawings, taking as an example a case where three threshold value determination methods are executed from among these threshold value determination methods.
第1図は本発明の実施例のブロック図、第2図は本発明
の実施例のフローチャートである。FIG. 1 is a block diagram of an embodiment of the invention, and FIG. 2 is a flowchart of an embodiment of the invention.
与えられた入力文字は走査部(l目とおいて画像データ
に変換される(ステップQυ)。走査部(1)を経た画
像データは次に前処理部(2)へ送られるが、3つのし
きい値決定処理を実行するため、データは第1の前処理
部(5)、第2の前処理部(6)、第3の前処理部(7
)へ送られる。The given input character is converted into image data at the scanning section (lth step) (step Qυ).The image data that has passed through the scanning section (1) is then sent to the preprocessing section (2), which undergoes three steps. In order to execute the threshold value determination process, the data is passed through the first preprocessing unit (5), the second preprocessing unit (6), and the third preprocessing unit (7).
).
前処理部では、ステップ四〜@が実行される。In the preprocessing section, steps 4 to @ are executed.
第1の前処理部(5)では2例えば平均−次式法によっ
てしきい値を決定しくステップ(23) 、そのしきい
値で画像データを2値化する(ステップ0)。The first preprocessing unit (5) determines a threshold value by, for example, the mean-order method (step 23), and binarizes the image data using the threshold value (step 0).
さらに、認識を行いやすくするために色々な大きさの文
字を一定の大きさに拡大、縮小して寸法を合せることに
より正規化する(ステップQ4)。Further, in order to facilitate recognition, characters of various sizes are enlarged or reduced to a certain size and normalized by matching the dimensions (step Q4).
第2の前処理部(61では、第1の前処理部のしきい値
決定方法とは別の方法2例えばP−タイル法によってし
きい値を決定しくステップcl!3) 、そのしきい値
で画像データを2値化する(ステップc13)。The second preprocessing unit (step cl!3 in which the threshold value is determined by a method 2 different from the threshold value determination method of the first preprocessing unit, for example, the P-tile method), the threshold value The image data is binarized (step c13).
さらに、第1の前処理部と同じよう1ζ正規化する(ス
テップ@)。Furthermore, 1ζ normalization is performed in the same way as in the first preprocessing section (step @).
第3の前処理部(7)では、第1の訂処理部、第2の前
処理部のしきい値決定方法とは別の方法9例えば判別分
析法−大津の方法によってしきい値を決定しくステップ
(23) 、そのしきい値で画像データを2値化する(
ステップc13)。さらに第1の前処理部、第2の前処
理部と同じように正規化する(ステップc!4)第1の
前処理部(51,第2の前処理部(6)、第3の前処理
部(7)を経たデータはすべて特徴抽出部(3)へ送ら
れる。In the third preprocessing unit (7), the threshold value is determined by a method different from the threshold value determination method of the first correction processing unit and the second preprocessing unit 9, for example, the discriminant analysis method - Otsu's method. Step (23): binarize the image data using the threshold value (
Step c13). Further, the first preprocessing unit (51), the second preprocessing unit (6), and the third preprocessing unit perform normalization in the same way as the first preprocessing unit and the second preprocessing unit (step c! 4). All data that has passed through the processing section (7) is sent to the feature extraction section (3).
特徴抽出部(3)では、正規化が施された3つの2値デ
ータに対し、従来の方法(例えば、メッシ特微量の計算
)でそれぞれ特微量を計算する(ステップ(ハ))。The feature extraction unit (3) calculates a feature amount for each of the three normalized binary data using a conventional method (for example, calculating a Messi feature amount) (step (c)).
次に、データは識別部(4)に送られ、計算機の内部の
辞口の特微量と比較することにより入力文字が何という
文字であるかを識別し、それぞれのしきい値決定方法に
対する候補文字を3つ決定する。Next, the data is sent to the identification unit (4), which identifies what the input character is by comparing it with the characteristic amount of the character inside the computer, and selects candidates for each threshold value determination method. Decide on three letters.
(ステップc!1)。(Step c!1).
以上のようにこの発明によれば、しきい値を1つに限定
しないで複数のしきい値を設定することにより、あらゆ
る条件下の文字への対応が可能なので9文字の認識率が
向上する。As described above, according to the present invention, by setting multiple thresholds instead of limiting the threshold to one, it is possible to respond to characters under all conditions, thereby improving the recognition rate of nine characters. .
第1図は、この発明の実施例のブロック図、第2図はこ
の発明の実施例のフローチャート、第3図は従来の実施
例のブロック図、第4図は従来の実施例の面処理過程の
一例を示した図である。
図において、(1:は走査部、(2)は面処理部、(3
)は特徴抽出部、(41は識別部である。
なお9図中同一あるいは相当部分には同一符号を付して
示しである。Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a flowchart of an embodiment of the invention, Fig. 3 is a block diagram of a conventional embodiment, and Fig. 4 is a surface processing process of a conventional embodiment. It is a figure showing an example. In the figure, (1: scanning section, (2) surface processing section, (3)
) is a feature extraction unit, and (41 is an identification unit. In FIG. 9, the same or corresponding parts are designated by the same reference numerals.
Claims (2)
入力文字の濃淡情報を得る走査過程と、上記走査過程で
得られた画像データに含まれる雑音や歪み成分を除去す
る前処理過程と、上記前処理過程を経た画像データから
文字を読み取る上で必要となる文字の特徴を抽出する特
徴抽出過程と、上記特徴抽出過程で得られた特徴をもと
に入力文字が何という文字であるかを判定する識別過程
からなる文字認識過程において、上記前処理過程の1つ
の方法であるしきい値処理を行う場合に、1つ1つが異
なるしきい値決定方法からなる複数のしきい値決定処理
を用意し、上記走査過程を経た画像データに対し、上記
複数のしきい値決定処理と、上記複数のしきい値決定処
理に続く前処理過程の処理を並列に施すことを特徴とす
る文字認識方法。(1) a scanning process for obtaining shading information of a given input character by illuminating the input character; a preprocessing process for removing noise and distortion components contained in the image data obtained in the scanning process; A feature extraction process that extracts character features necessary for reading characters from the image data that has undergone the preprocessing process, and a process that determines what the input character is based on the features obtained in the feature extraction process. In the character recognition process, which consists of the identification process of determining Character recognition characterized in that the image data that has undergone the scanning process is subjected to the plurality of threshold determination processes and the preprocessing process that follows the plurality of threshold determination processes in parallel. Method.
入力文字の濃淡情報を得る走査部と、上記走査部で得ら
れた画像データに含まれる雑音や歪み成分を除去する前
処理部と、上記前処理部を経た画像データから文字を読
み取る上で必要となる文字の特徴を抽出する特徴抽出部
と、上記特徴抽出部で得られた特徴をもとに入力文字が
何という文字であるかを判定する識別部からなる文字認
識装置において、第1のしきい値決定方法によりしきい
値を決定し、データの2値化、正規化を行う第1の前処
理部と、第2のしきい値決定方法によりしきい値を決定
し、データの2値化、正規化を行う第2の前処理部と、
第3のしきい値決定方法によりしきい値を決定し、デー
タの2値化、正規化を行う第3の前処理部からなる前処
理部を具備することを特徴とする文字認識装置。(2) a scanning unit that obtains shading information of the input character by illuminating the input character; a preprocessing unit that removes noise and distortion components contained in the image data obtained by the scanning unit; A feature extraction unit that extracts character features necessary for reading characters from the image data that has passed through the preprocessing unit, and a feature extraction unit that determines what the input character is based on the features obtained by the feature extraction unit. The character recognition device includes a first preprocessing unit that determines a threshold value using a first threshold determination method, binarizes and normalizes data, and a second preprocessing unit that determines a threshold value using a first threshold determination method. a second preprocessing unit that determines a threshold using a threshold value determination method and binarizes and normalizes the data;
A character recognition device characterized by comprising a preprocessing unit including a third preprocessing unit that determines a threshold value using a third threshold value determination method and binarizes and normalizes data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63197537A JPH0245892A (en) | 1988-08-08 | 1988-08-08 | Method and device for recognizing character |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP63197537A JPH0245892A (en) | 1988-08-08 | 1988-08-08 | Method and device for recognizing character |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0245892A true JPH0245892A (en) | 1990-02-15 |
Family
ID=16376124
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP63197537A Pending JPH0245892A (en) | 1988-08-08 | 1988-08-08 | Method and device for recognizing character |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0245892A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11312220A (en) * | 1998-03-13 | 1999-11-09 | Canon Inc | Classification-Driven Thresholding of Normalized Grayscale Images |
| JP2012118737A (en) * | 2010-11-30 | 2012-06-21 | Fujitsu Ltd | Inspection support program, inspection support method and inspection support device |
-
1988
- 1988-08-08 JP JP63197537A patent/JPH0245892A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH11312220A (en) * | 1998-03-13 | 1999-11-09 | Canon Inc | Classification-Driven Thresholding of Normalized Grayscale Images |
| JP2012118737A (en) * | 2010-11-30 | 2012-06-21 | Fujitsu Ltd | Inspection support program, inspection support method and inspection support device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107609549B (en) | A text detection method for document images in natural scenes | |
| KR100523898B1 (en) | Identification, separation and compression of multiple forms with mutants | |
| US9965695B1 (en) | Document image binarization method based on content type separation | |
| CN114596242B (en) | Defect detection method, defect detection device, electronic equipment and computer readable storage medium | |
| JP2002298085A (en) | Character recognition device, character recognition method, and recording medium | |
| JPH096957A (en) | Binarization method of density image and image binarization apparatus | |
| CN107067006A (en) | A kind of method for recognizing verification code and system for serving data acquisition | |
| EP2553626A2 (en) | Segmentation of textual lines in an image that include western characters and hieroglyphic characters | |
| CN111209865A (en) | File content extraction method and device, electronic equipment and storage medium | |
| JP2006067585A (en) | Method and apparatus for locating and extracting captions in digital images | |
| CN115995080A (en) | Archive intelligent management system based on OCR (optical character recognition) | |
| Saddami et al. | Improvement of binarization performance using local otsu thresholding. | |
| EP0516576A2 (en) | Method of discriminating between text and graphics | |
| CN113159054A (en) | Character recognition method based on neural network, computing device and readable medium | |
| KR100295360B1 (en) | Image Processing Method Using Shading Algorithm | |
| JPH0245892A (en) | Method and device for recognizing character | |
| JP2005250786A (en) | Image recognition method | |
| CN116503871A (en) | Character segmentation preprocessing method, terminal device and computer-readable storage medium | |
| JP4409713B2 (en) | Document image recognition apparatus and recording medium | |
| JPH02116987A (en) | Character recognizing device | |
| JPH05342412A (en) | Gradient Vector Extraction Method and Character Recognition Feature Extraction Method | |
| CN115909330B (en) | A method and system for identifying musical strings | |
| JP2001291058A (en) | Character recognition device and recording medium | |
| CN117351523A (en) | Fingerprint comparison method and device and processor equipment | |
| CN119296111A (en) | Image text recognition method and device for image scene |