JP2001351068A - Device and method for recognizing character, device and method for processing image and computer readable recording medium - Google Patents

Device and method for recognizing character, device and method for processing image and computer readable recording medium

Info

Publication number
JP2001351068A
JP2001351068A JP2001103847A JP2001103847A JP2001351068A JP 2001351068 A JP2001351068 A JP 2001351068A JP 2001103847 A JP2001103847 A JP 2001103847A JP 2001103847 A JP2001103847 A JP 2001103847A JP 2001351068 A JP2001351068 A JP 2001351068A
Authority
JP
Japan
Prior art keywords
color
pixel
image
image processing
binarization
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2001103847A
Other languages
Japanese (ja)
Other versions
JP4571758B2 (en
Inventor
Toshio Miyazawa
利夫 宮澤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2001103847A priority Critical patent/JP4571758B2/en
Publication of JP2001351068A publication Critical patent/JP2001351068A/en
Application granted granted Critical
Publication of JP4571758B2 publication Critical patent/JP4571758B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/16Image preprocessing
    • G06V30/162Quantising the image signal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition

Abstract

PROBLEM TO BE SOLVED: To recognize a character in a color document image by more simple constitution by utilizing the features of the color document image. SOLUTION: A character recognition device for inputting a color document image and recognizing a character in the color document image is provided with a gray convention circuit 1 for converting the maximum value or minimum value of plural color component signals in the color signal of each of pixels constituting the color document image into a gray image as a representative value of the pixel, a binarizing circuit 2 for binarizing the gray image converted by the circuit 1 and a character recognition circuit 3 for recognizing a character from the binary data obtained from the circuit 2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、カラー文書画像な
どを入力し、文字を認識する文字認識処理や、画像処理
を行なう文字認識装置、文字認識方法、画像処理装置、
画像処理方法、並びにコンピュータ読み取り可能な記録
媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character recognition process for recognizing characters by inputting a color document image or the like, a character recognition device for performing image processing, a character recognition method, an image processing device, and the like.
The present invention relates to an image processing method and a computer-readable recording medium.

【0002】[0002]

【従来の技術】従来、文字認識装置で認識対象となる文
書は、新聞や雑誌など白黒で印刷されたものが一般的で
あった。ところが、近年、パーソナルコンピュータの普
及などに伴ってカラープリンタも低価格化などと共に普
及してきている。このため、文字認識の対象となる原稿
がカラー文書画像である場合が多くなってきている。
2. Description of the Related Art Conventionally, a document to be recognized by a character recognition apparatus has been generally printed in black and white, such as a newspaper or a magazine. However, in recent years, with the spread of personal computers and the like, color printers have also been spreading along with lower prices. For this reason, the document to be subjected to character recognition is often a color document image.

【0003】また、パーソナルコンピュータの性能向上
により、カラー文書画像をそのまま認識処理することも
可能になってきているが、カラー画像はメモリサイズが
大きくなるなどの制限があった。そこで、カラー画像を
低解像度のカラー画像に変換したり、グレー画像を入力
画像とし、内部で解像度変換処理を行い、高解像度の2
値画像を作成し、その2値画像を対象に文字認識を行う
ことにより、入力時のメモリサイズを削減することが考
えられる。
[0003] In addition, it has become possible to recognize color document images as they are by improving the performance of personal computers. However, color images have limitations such as an increase in memory size. Therefore, a color image is converted into a low-resolution color image, or a gray image is used as an input image, and a resolution conversion process is internally performed to obtain a high-resolution 2
It is conceivable to reduce the memory size at the time of input by creating a value image and performing character recognition on the binary image.

【0004】また、着目画素(当該画素)の周辺の濃度
情報や濃度変化の情報を用いて2値化の閾値を可変設定
することにより、2値化画像を得る技術が特開平5−2
25329号公報に開示されている。
A technique for obtaining a binarized image by variably setting a binarization threshold using density information or density change information around a pixel of interest (the pixel in question) is disclosed in Japanese Patent Laid-Open No. 5-2 / 1993.
No. 25329.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、低解像
度画像を入力画像としているため、解像度変換をおこな
っても文字認識を実行する場合に必ずしも最適な高解像
度が得られるとは限らない。このため、最適な高解像度
を得るには装置あるいは処理方法を複雑にしなければな
らないという問題点があった。
However, since a low-resolution image is used as an input image, an optimum high resolution is not always obtained when performing character recognition even if resolution conversion is performed. For this reason, there has been a problem that an apparatus or a processing method must be complicated to obtain an optimum high resolution.

【0006】また、入力されたカラー画像から背景濃度
を求める際に、背景濃度が変化した場合について対応す
る必要がある。さらに、特開平5−225392号公報
に開示されている技術にあっては、2値化の閾値を可変
設定しているので、閾値を決定した後に当該画素と比較
処理する必要があり、処理時間が長くなるという問題点
があった。
Further, when the background density is obtained from the input color image, it is necessary to cope with a case where the background density changes. Further, in the technique disclosed in Japanese Patent Application Laid-Open No. 5-225392, since the threshold value for binarization is variably set, it is necessary to compare the pixel with the pixel after determining the threshold value. However, there was a problem that the length was longer.

【0007】本発明は、上記に鑑みてなされたものであ
って、カラー文書画像の特徴を利用することにより、よ
り単純な構成あるいは方法でカラー文書画像の文字を認
識することを第1の目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above, and it is a first object of the present invention to recognize a character of a color document image with a simpler configuration or method by utilizing features of the color document image. And

【0008】また、周辺の色情報を求めることにより背
景濃度の変化に対応可能にさせることを第2の目的とす
る。また、2値化処理における処理効率を向上させるこ
とを第3の目的とする。
It is a second object of the present invention to be able to cope with a change in background density by obtaining peripheral color information. A third object is to improve the processing efficiency in the binarization processing.

【0009】[0009]

【課題を解決するための手段】上記の目的を達成するた
めに、請求項1にかかる文字認識装置にあっては、カラ
ー文書画像を入力し、該カラー文書画像の文字認識を行
う文字認識装置において、前記カラー文書画像を構成す
る各画素のカラー信号における複数の色成分信号の最大
値または最小値を当該画素の代表値としてグレー画像に
変換するグレー変換手段と、前記グレー変換手段で変換
されたグレー画像を2値化する2値化手段と、前記2値
化手段の2値データから文字認識をおこなう文字認識手
段と、を備えたものである。
According to a first aspect of the present invention, there is provided a character recognition apparatus for inputting a color document image and performing character recognition on the color document image. In the color document image, a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel constituting the color document image is converted into a gray image as a representative value of the pixel by a gray conversion unit, and converted by the gray conversion unit. And a character recognizing means for performing character recognition from the binary data of the binarizing means.

【0010】この発明によれば、文字認識装置の対象原
稿であるカラー文書画像は、何らかの印刷装置で印刷さ
れている場合が多いため、白黒以外のカラー部分はカラ
ー信号(RGB,CMY(K))で表現されている場合
が多く、しかも、文書の地肌(紙)部分は白または明度
が高い場合が多く、地肌と区別するためにも、文字部分
の明度値は低くなっていることが一般的である、という
カラー文書画像の特徴を利用し、グレー変換手段によ
り、カラー信号における複数の色成分信号の最大値また
は最小値を当該画素の代表値としてグレー画像に変換し
た後、2値化し、その2値の代表値(代表色)を用いて
文字認識することを単純な構成で実現させることが可能
になる。
According to the present invention, a color document image, which is a target document of the character recognition device, is often printed by a printing device. Therefore, color signals other than black and white are represented by color signals (RGB, CMY (K)). ) In many cases, and the background (paper) portion of the document is often white or high in brightness. To distinguish it from the background, the brightness value of the text portion is generally low. Utilizing the characteristic of the color document image that the target pixel is a target, the maximum value or the minimum value of a plurality of color component signals in the color signal is converted into a gray image as a representative value of the pixel by the gray conversion means, and then binarized. Character recognition using the two representative values (representative colors) can be realized with a simple configuration.

【0011】また、請求項2にかかる文字認識装置にあ
っては、前記色成分信号は、認識対象の原稿を印刷する
ときに用いたインクの色成分信号と同一である。
Further, in the character recognition device according to the present invention, the color component signal is the same as the color component signal of the ink used when printing the document to be recognized.

【0012】この発明によれば、カラー文書画像は、何
らかの印刷装置で印刷されている場合が多いのため、白
黒以外の色成分信号を、認識対象の原稿を印刷したとき
に用いたインクと同一とすることにより、より高精度の
カラー画像の入力による認識装置が実現する。
According to the present invention, since a color document image is often printed by a printing apparatus, a color component signal other than black and white is set to be the same as the ink used when printing the document to be recognized. By doing so, a recognition device based on input of a more accurate color image is realized.

【0013】また、請求項3にかかる文字認識装置にあ
っては、さらに、前記グレー変換手段の変換時に、複数
の色成分信号のうちのどの信号を代表値としたかの色情
報および文字認識結果を記憶しておく記憶手段を設けた
ものである。
Further, in the character recognition device according to the third aspect, the color information and the character recognition as to which signal of the plurality of color component signals was used as the representative value at the time of conversion by the gray conversion means. A storage means for storing the results is provided.

【0014】この発明によれば、グレー変換手段の変換
時に、複数の色成分信号のうちのどの信号を代表値とし
たかの色情報および文字認識結果を記憶しておく記憶手
段を設けることにより、後処理において、代表値の色が
何色であるかを把握することが可能となる。
According to the present invention, at the time of conversion by the gray conversion means, there is provided storage means for storing color information as to which signal among a plurality of color component signals is a representative value and a character recognition result. In the post-processing, it is possible to know what color the representative value is.

【0015】また、請求項4にかかる文字認識装置にあ
っては、さらに、前記記憶手段に記憶した色情報および
文字認識結果を表示する表示手段を設けたものである。
Further, the character recognition apparatus according to a fourth aspect of the present invention further comprises display means for displaying the color information and the character recognition result stored in the storage means.

【0016】この発明によれば、表示手段に、代表値の
色情報および文字コード情報を表示することにより、ユ
ーザーの使い勝手を向上させる。
According to the present invention, the usability of the user is improved by displaying the color information and the character code information of the representative value on the display means.

【0017】また、請求項5にかかる文字認識方法にあ
っては、カラー文書画像を入力し、該カラー文書画像の
文字認識を行う文字認識方法において、前記カラー文書
画像を構成する各画素のカラー信号における複数の色成
分信号の最大値または最小値を当該画素の代表値として
算出する第1の工程と、前記第1の工程で算出した代表
値を2値化する第2の工程と、前記第2の工程で2値化
された代表値を用いて文字認識を行う第3の工程と、を
含むものである。
According to a fifth aspect of the present invention, in the character recognition method for inputting a color document image and performing character recognition of the color document image, the color recognition of each pixel constituting the color document image is performed. A first step of calculating a maximum value or a minimum value of a plurality of color component signals in a signal as a representative value of the pixel; a second step of binarizing the representative value calculated in the first step; A third step of performing character recognition using the representative value binarized in the second step.

【0018】この発明によれば、請求項1と同様に、カ
ラー文書画像の特徴を利用し、カラー信号における複数
の色成分信号の最大値または最小値を当該画素の代表値
としてグレー画像に変換した後、2値化し、その2値の
代表値(代表色)を用いて文字認識することを単純な方
法で実現させることが可能になる。
According to the present invention, the maximum value or the minimum value of a plurality of color component signals in a color signal is converted into a gray image as a representative value of the pixel by utilizing the characteristics of the color document image. After that, binarization and character recognition using the binary representative value (representative color) can be realized by a simple method.

【0019】また、請求項6にかかる文字認識方法にあ
っては、前記色成分信号は、認識対象の原稿を印刷する
ときに用いたインクの色成分信号と同一である。
In the character recognition method according to the present invention, the color component signal is the same as the color component signal of the ink used when printing the document to be recognized.

【0020】この発明によれば、カラー文書画像は、何
らかの印刷装置で印刷されている場合が多いのため、第
1の工程で入力する白黒以外の色成分信号を、認識対象
の原稿を印刷したときに用いたインクと同一とすること
により、より高精度のカラー画像の入力による認識方法
が実現する。
According to the present invention, since a color document image is often printed by a printing apparatus, a color component signal other than black and white input in the first step is printed on a document to be recognized. By using the same ink as that used at the time, a recognition method by inputting a more accurate color image is realized.

【0021】また、請求項7にかかるコンピュータ読み
取り可能な記録媒体にあっては、前記請求項5または6
に記載の文字認識方法を、コンピュータに実行させるプ
ログラムを記録したものである。
According to a seventh aspect of the present invention, there is provided a computer-readable recording medium according to the fifth or sixth aspect.
And a program for causing a computer to execute the character recognition method described in (1).

【0022】この発明によれば、請求項5または6に記
載の文字認識方法を、コンピュータに実行させるプログ
ラムを記録したことにより、請求項5または6に記載の
文字認識動作をコンピュータによって実現することが可
能になる。
According to this invention, the program for causing a computer to execute the character recognition method according to claim 5 or 6 is recorded, whereby the character recognition operation according to claim 5 or 6 is realized by a computer. Becomes possible.

【0023】また、請求項8にかかる画像処理装置にあ
っては、カラー画像を入力し、2値化する画像処理装置
において、前記カラー画像を構成する各画素のカラー信
号における複数の色成分信号の最大値または最小値を当
該画素の代表値として算出する代表値算出手段と、当該
画素の周辺の色成分から当該画素の周辺の色情報を求め
る色情報算出手段と、前記代表値算出手段で算出された
代表値と前記カラー画像の当該画素の色成分信号、およ
び算出された前記当該画素の周辺の色情報を2値化する
2値化手段と、を備えたものである。
Further, in the image processing apparatus according to the present invention, in the image processing apparatus for inputting and binarizing a color image, a plurality of color component signals in a color signal of each pixel constituting the color image are provided. A representative value calculating unit that calculates a maximum value or a minimum value of the pixels as a representative value of the pixel, a color information calculating unit that calculates color information around the pixel from color components around the pixel, and the representative value calculating unit. Binarizing means for binarizing the calculated representative value, the color component signal of the pixel of the color image, and the calculated color information around the pixel.

【0024】この発明によれば、カラー画像の各画素に
おけるカラー信号の複数の色成分信号の最大値または最
小値を求めてその値を代表値とし、この代表値と入力さ
れたカラー画像の当該画素(注目画素)の色成分信号、
当該画素の周辺の色成分信号から求めた周辺の色情報
(背景画素)をもとに、2値化処理することにより、カ
ラー画像における背景濃度の変化に対応することが可能
になる。
According to the present invention, the maximum value or the minimum value of the plurality of color component signals of the color signal in each pixel of the color image is obtained, and the obtained value is set as a representative value. The color component signal of the pixel (pixel of interest),
By performing the binarization processing based on the peripheral color information (background pixel) obtained from the color component signal around the pixel, it becomes possible to cope with a change in the background density in the color image.

【0025】また、請求項9にかかる画像処理装置にあ
っては、前記色成分信号は、赤、青、緑の明度信号また
はシアン、マゼンタ、イエローの明度信号とするもので
ある。
Further, in the image processing apparatus according to the ninth aspect, the color component signals are red, blue, and green lightness signals or cyan, magenta, and yellow lightness signals.

【0026】この発明によれば、請求項8の画像処理装
置において、入力されるカラー画像を赤、青、緑の明度
信号またはシアン、マゼンタ、イエローの明度信号とし
て処理することにより、入力画像信号の色情報の違いに
も対応させることが可能になる。
According to the present invention, in the image processing apparatus according to the present invention, the input color image is processed as a red, blue, and green lightness signal or a cyan, magenta, and yellow lightness signal, thereby obtaining an input image signal. Can be made to correspond to the difference in the color information.

【0027】また、請求項10にかかる画像処理装置に
あっては、前記2値化手段で2値化する際に用いる入力
されたカラー画像の当該画素の色成分信号は、前記代表
値を求める際に用いた色成分信号以外の信号とするもの
である。
Further, in the image processing apparatus according to the tenth aspect, the representative value is obtained from the color component signal of the pixel of the input color image used for binarization by the binarization means. This is a signal other than the color component signal used at that time.

【0028】この発明によれば、請求項8の画像処理装
置において、2値化する際に用いるカラー画像の当該画
素の色成分信号を、代表値を求める際に用いた色成分信
号以外の信号とすることにより、高精度の2値化が可能
になる。
According to the present invention, in the image processing apparatus according to the present invention, the color component signal of the pixel of the color image used for binarization is converted into a signal other than the color component signal used for obtaining the representative value. By doing so, high-precision binarization becomes possible.

【0029】また、請求項11にかかる画像処理装置に
あっては、前記代表値を求める色成分信号は、赤と緑の
色成分信号の最大値とするものである。
Further, in the image processing apparatus according to the eleventh aspect, the color component signal for obtaining the representative value is the maximum value of the red and green color component signals.

【0030】この発明によれば、請求項8の画像処理装
置において、代表値を求める色成分信号は、赤と緑の色
成分信号の最大値とすることにより、たとえば白地の場
合、R(赤),G(緑),B(黒)のいずれの値も8ビ
ットデータの場合、255に近い値になるのに対し、黄
色で非背景画素が描かれているとRとGの値は255に
近く、Bの値はゼロに近くなり、Rの値が大きく、Gと
Bの値が小さい場合の色、Gの値が大きく、RとBの値
が小さい色の3色を同時に検出することが可能になる。
According to the present invention, in the image processing apparatus according to the present invention, the color component signal for obtaining the representative value is the maximum value of the red and green color component signals. ), G (green), and B (black) are values close to 255 in the case of 8-bit data, whereas the values of R and G are 255 if non-background pixels are drawn in yellow. , The value of B is close to zero, and the three colors of the color when the value of R is large and the value of G and B are small, and the color where the value of G is large and the value of R and B are small are simultaneously detected. It becomes possible.

【0031】また、請求項12にかかる画像処理装置に
あっては、前記2値化手段で2値化する際に用いる入力
されたカラー画像の当該画素の色成分信号は、青の色成
分信号とするものである。
Further, in the image processing apparatus according to the twelfth aspect, the color component signal of the pixel of the input color image used for binarization by the binarization means is a blue color component signal. It is assumed that.

【0032】この発明によれば、請求項8の画像処理装
置において、2値化する際に用いる入力されたカラー画
像の当該画素の色成分信号を、青の色成分信号とするこ
とにより、正確な2値化処理が可能になる。
According to the present invention, in the image processing apparatus according to the eighth aspect, the color component signal of the pixel of the input color image used for binarization is set to the blue color component signal, thereby achieving accurate It is possible to perform a binary processing.

【0033】また、請求項13にかかる画像処理装置に
あっては、前記周辺の色情報の算出は、当該画素の処理
以前にすでに処理済みの画素の情報を基に行なうもので
ある。
In the image processing apparatus according to the thirteenth aspect, the calculation of the peripheral color information is performed based on information of a pixel which has been processed before processing of the pixel.

【0034】この発明によれば、請求項8の画像処理装
置において、当該画素よりも以前に処理されたデータを
用いて当該画素の周辺の色情報(背景濃度)とすること
により、正確な当該画素の背景濃度が得られる。
According to the present invention, in the image processing apparatus according to the present invention, the color information (background density) around the pixel is obtained by using data processed before the pixel, thereby obtaining the accurate image data. The background density of the pixel is obtained.

【0035】また、請求項14にかかる画像処理装置に
あっては、前記2値化処理手段による2値化処理の結果
から背景画素と非背景画素とを分離するものである。
In the image processing apparatus according to the present invention, a background pixel and a non-background pixel are separated from the result of the binarization processing by the binarization processing means.

【0036】この発明によれば、請求項8の画像処理装
置において、2値化処理の結果から背景画素と非背景画
素とを分離することにより、対象物(非背景画素)に対
する後処理の簡素化が実現可能になる。
According to the present invention, in the image processing apparatus according to the present invention, the background pixel and the non-background pixel are separated from the result of the binarization processing, thereby simplifying the post-processing for the object (non-background pixel). Can be realized.

【0037】また、請求項15にかかる画像処理装置に
あっては、前記色情報算出手段は、背景画素と判断され
た色成分情報を用いて周辺の色情報を算出するものであ
る。
In the image processing apparatus according to a fifteenth aspect, the color information calculation means calculates peripheral color information using color component information determined as a background pixel.

【0038】この発明によれば、請求項8の画像処理装
置において、背景画素と判断された画素のカラー情報を
用いて周辺の色情報(背景濃度)を求めることにより、
非背景画素に影響されない周辺の色情報が得られる。
According to the present invention, in the image processing apparatus according to the present invention, the peripheral color information (background density) is obtained by using the color information of the pixel determined as the background pixel.
The peripheral color information not affected by the non-background pixels is obtained.

【0039】また、請求項16にかかる画像処理装置に
あっては、前記色情報算出手段は、前記背景画素が所定
の閾値に対して多く連続した場合、背景画素、非背景画
素の区別なく、周辺の色成分信号を用いて周辺の色情報
を算出するものである。
In the image processing apparatus according to the present invention, the color information calculating means may determine whether the background pixel is a background pixel or a non-background pixel if the background pixel is continuous with respect to a predetermined threshold value. The peripheral color information is calculated using the peripheral color component signals.

【0040】この発明によれば、請求項8の画像処理装
置において、背景画素が所定の閾値に対して多く連続し
た場合、背景画素、非背景画素の区別なく、周辺の色成
分信号を用いて周辺の色情報を算出することにより、連
続して非背景画素が続く画像において周辺の色情報が得
られなくなる事態が回避される。
According to the present invention, in the image processing apparatus according to the present invention, when the background pixels are continuous with respect to a predetermined threshold value, the background color component signals are used without distinction between the background pixels and the non-background pixels. By calculating the peripheral color information, it is possible to avoid a situation in which peripheral color information cannot be obtained in an image in which non-background pixels continue continuously.

【0041】また、請求項17にかかる画像処理装置に
あっては、さらに、前記代表値、入力されたカラー画像
の当該画素の色成分信号、周辺の色情報、からなる3次
元の2値化テーブルを備え、前記2値化手段は前記2値
化テーブルの3つの特徴量を用いて2値化処理を行なう
ものである。
Further, in the image processing apparatus according to the seventeenth aspect, three-dimensional binarization comprising the representative value, a color component signal of the pixel of the input color image, and peripheral color information. A table is provided, and the binarization means performs a binarization process by using three feature values of the binarization table.

【0042】この発明によれば、請求項8の画像処理装
置において、代表値、入力されたカラー画像の当該画素
の色成分信号、周辺の色情報、の3つの特徴量を3次元
の2値化テーブルとして用意してくことにより、2値化
処理時における処理が迅速に行なえる。
According to the present invention, in the image processing apparatus according to the eighth aspect, the three characteristic amounts of the representative value, the color component signal of the pixel of the input color image, and the peripheral color information are converted into three-dimensional binary values. By preparing as a conversion table, the processing at the time of the binarization processing can be performed quickly.

【0043】また、請求項18にかかる画像処理装置に
あっては、入力されたカラー画像のビット数を少なくし
た後に、前記代表値を算出するものである。
In the image processing apparatus according to the eighteenth aspect, the representative value is calculated after reducing the number of bits of the input color image.

【0044】この発明によれば、請求項8の画像処理装
置において、入力されたカラー画像が、たとえば各8ビ
ット構成であった場合に、各5ビットに変換した後、代
表値の算出処理を行なうことにより、その処理の迅速化
が可能になる。
According to the present invention, in the image processing apparatus according to the present invention, if the input color image has, for example, an 8-bit configuration, the input color image is converted into 5-bit data, and the representative value is calculated. By doing so, the processing can be sped up.

【0045】また、請求項19にかかる画像処理装置に
あっては、入力されたカラー画像のビット数を少なくし
た後に、2値化テーブルを作成するものである。
In the image processing apparatus according to the nineteenth aspect, a binary table is created after reducing the number of bits of an input color image.

【0046】この発明によれば、請求項17の画像処理
装置において、入力されたカラー画像が、たとえば各8
ビット構成であった場合に、各5ビットに変換した後、
2値化テーブルを作成することによりデータ量の削減が
可能になる。
According to the present invention, in the image processing apparatus of the seventeenth aspect, the input color image is, for example, 8
In the case of bit configuration, after converting to each 5 bits,
By creating a binarization table, the data amount can be reduced.

【0047】また、請求項20にかかる画像処理装置に
あっては、前記2値化手段の処理結果を用い、入力され
たカラー画像中の特定パターンを認識するものである。
In the image processing apparatus according to the twentieth aspect, a specific pattern in an input color image is recognized using the processing result of the binarizing means.

【0048】この発明によれば、請求項8〜19に記載
の画像処理を行なうことにより、背景色と対象物との分
離が実現され、文字などの特定パターンの認識が可能に
なる。
According to the present invention, by performing the image processing as set forth in claims 8 to 19, separation of the background color from the object is realized, and a specific pattern such as a character can be recognized.

【0049】また、請求項21にかかる画像処理方法に
あっては、カラー画像を入力し、2値化する画像処理方
法において、前記カラー画像を構成する各画素のカラー
信号における複数の色成分信号の最大値または最小値を
当該画素の代表値として算出する代表値算出工程と、当
該画素の周辺の色成分から当該画素の周辺の色情報を求
める色情報算出工程と、前記代表値と前記カラー画像の
当該画素の色成分信号、および算出された前記当該画素
の周辺の色情報を2値化する2値化工程と、を含むもの
である。
According to a twenty-first aspect of the present invention, in the image processing method for inputting and binarizing a color image, a plurality of color component signals in a color signal of each pixel constituting the color image are provided. A representative value calculating step of calculating a maximum value or a minimum value of the pixels as a representative value of the pixel; a color information calculating step of obtaining color information around the pixel from color components around the pixel; A binarizing step of binarizing the color component signal of the pixel of the image and the calculated color information around the pixel.

【0050】この発明によれば、カラー画像の各画素に
おけるカラー信号の複数の色成分信号の最大値または最
小値を求めてその値を代表値とし、この代表値と入力さ
れたカラー画像の当該画素(注目画素)の色成分信号、
当該画素の周辺の色成分信号から求めた周辺の色情報
(背景画素)をもとに、2値化処理することにより、カ
ラー画像における背景濃度の変化に対応することが可能
になる。
According to the present invention, the maximum value or the minimum value of the plurality of color component signals of the color signal in each pixel of the color image is obtained, and the obtained value is set as a representative value. The color component signal of the pixel (pixel of interest),
By performing the binarization processing based on the peripheral color information (background pixel) obtained from the color component signal around the pixel, it becomes possible to cope with a change in the background density in the color image.

【0051】また、請求項22にかかる画像処理方法に
あっては、前記色成分信号は、赤、青、緑の明度信号ま
たはシアン、マゼンタ、イエローの明度信号とするもの
である。
In the image processing method according to the present invention, the color component signals are red, blue, and green lightness signals or cyan, magenta, and yellow lightness signals.

【0052】この発明によれば、請求項21の画像処理
方法において、入力されるカラー画像を赤、青、緑の明
度信号またはシアン、マゼンタ、イエローの明度信号と
して処理することにより、入力画像信号の色情報の違い
にも対応させることが可能になる。
According to the present invention, in the image processing method according to the twenty-first aspect, the input color image is processed as a red, blue, and green lightness signal or a cyan, magenta, and yellow lightness signal, whereby the input image signal is processed. Can be made to correspond to the difference in the color information.

【0053】また、請求項23にかかる画像処理方法に
あっては、前記2値化工程で2値化する際に用いる入力
されたカラー画像の当該画素の色成分信号は、前記代表
値を求める際に用いた色成分信号以外の信号とするもの
である。
In the image processing method according to claim 23, the representative value is obtained from the color component signal of the pixel of the input color image used for binarization in the binarization step. This is a signal other than the color component signal used at that time.

【0054】この発明によれば、請求項21の画像処理
方法において、2値化する際に用いるカラー画像の当該
画素の色成分信号を、代表値を求める際に用いた色成分
信号以外の信号とすることにより、高精度の2値化が可
能になる。
According to the present invention, in the image processing method according to the twenty-first aspect, the color component signal of the pixel of the color image used for binarization is a signal other than the color component signal used for obtaining the representative value. By doing so, high-precision binarization becomes possible.

【0055】また、請求項24にかかる画像処理方法に
あっては、前記代表値を求める色成分信号は、赤と緑の
色成分信号の最大値とするものである。
Further, in the image processing method according to claim 24, the color component signal for obtaining the representative value is the maximum value of the red and green color component signals.

【0056】この発明によれば、請求項21の画像処理
方法において、代表値を求める色成分信号は、赤と緑の
色成分信号の最大値とすることにより、たとえば白地の
場合、R(赤),G(緑),B(黒)のいずれの値も8
ビットデータの場合、255に近い値になるのに対し、
黄色で非背景画素が描かれているとRとGの値は255
に近く、Bの値はゼロに近くなり、Rの値が大きく、G
とBの値が小さい場合の色、Gの値が大きく、RとBの
値が小さい色の3色を同時に検出することが可能にな
る。
According to the present invention, in the image processing method according to the twenty-first aspect, the color component signal for obtaining the representative value is the maximum value of the red and green color component signals. ), G (green) and B (black) are all 8
In the case of bit data, while the value is close to 255,
If non-background pixels are drawn in yellow, the values of R and G are 255
, The value of B is close to zero, the value of R is large,
It is possible to simultaneously detect three colors, that is, colors when the values of R and B are small, and colors where the value of G is large and the values of R and B are small.

【0057】また、請求項25にかかる画像処理方法に
あっては、前記2値化工程で2値化する際に用いる入力
されたカラー画像の当該画素の色成分信号は、青の色成
分信号とするものである。
In the image processing method according to the twenty-fifth aspect, the color component signal of the pixel of the input color image used for binarization in the binarization step is a blue color component signal. It is assumed that.

【0058】この発明によれば、請求項21の画像処理
方法において、2値化する際に用いる入力されたカラー
画像の当該画素の色成分信号を、青の色成分信号とする
ことにより、正確な2値化処理が可能になる。
According to the present invention, in the image processing method according to the twenty-first aspect, the color component signal of the pixel of the input color image used for binarization is set to the blue color component signal, thereby achieving accurate It is possible to perform a binary processing.

【0059】また、請求項26にかかる画像処理方法に
あっては、前記周辺の色情報の算出は、当該画素の処理
以前にすでに処理済みの画素の情報を基に行なうもので
ある。
In the image processing method according to the twenty-sixth aspect, the calculation of the surrounding color information is performed based on information of a pixel that has been processed before the processing of the pixel.

【0060】この発明によれば、請求項21の画像処理
方法において、当該画素よりも以前に処理されたデータ
を用いて当該画素の周辺の色情報(背景濃度)とするこ
とにより、正確な当該画素の背景濃度が得られる。
According to the present invention, in the image processing method according to the twenty-first aspect, the data processed before the pixel is used as the color information (background density) around the pixel to obtain an accurate image. The background density of the pixel is obtained.

【0061】また、請求項27にかかる画像処理方法に
あっては、前記2値化処理工程による2値化処理の結果
から背景画素と非背景画素とを分離するものである。
Further, in the image processing method according to claim 27, a background pixel and a non-background pixel are separated from the result of the binarization processing in the binarization processing step.

【0062】この発明によれば、請求項21の画像処理
方法において、2値化処理の結果から背景画素と非背景
画素とを分離することにより、対象物(非背景画素)に
対する後処理の簡素化が実現可能になる。
According to the present invention, in the image processing method according to the twenty-first aspect, the background pixel and the non-background pixel are separated from the result of the binarization processing, thereby simplifying the post-processing for the object (non-background pixel). Can be realized.

【0063】また、請求項28にかかる画像処理方法に
あっては、前記色情報算出工程は、背景画素と判断され
た色成分情報を用いて周辺の色情報を算出するものであ
る。
In the image processing method according to the twenty-eighth aspect, the color information calculation step calculates surrounding color information using color component information determined as a background pixel.

【0064】この発明によれば、請求項21の画像処理
方法において、背景画素と判断された画素のカラー情報
を用いて周辺の色情報(背景濃度)を求めることによ
り、非背景画素に影響されない周辺の色情報が得られ
る。
According to the present invention, in the image processing method according to the twenty-first aspect, the peripheral color information (background density) is obtained by using the color information of the pixel determined to be the background pixel, so that it is not affected by non-background pixels. The surrounding color information can be obtained.

【0065】また、請求項29にかかる画像処理方法に
あっては、前記色情報算出工程は、前記背景画素が所定
の閾値に対して多く連続した場合、背景画素、非背景画
素の区別なく、周辺の色成分信号を用いて周辺の色情報
を算出するものである。
Further, in the image processing method according to claim 29, the color information calculating step is performed without discriminating between a background pixel and a non-background pixel when the background pixel is continuous with respect to a predetermined threshold value. The peripheral color information is calculated using the peripheral color component signals.

【0066】この発明によれば、請求項21の画像処理
方法において、背景画素が所定の閾値に対して多く連続
した場合、背景画素、非背景画素の区別なく、周辺の色
成分信号を用いて周辺の色情報を算出することにより、
連続して非背景画素が続く画像において周辺の色情報が
得られなくなる事態が回避される。
According to the present invention, in the image processing method according to the twenty-first aspect, when a large number of background pixels are continuous with respect to a predetermined threshold value, the background color component signal is used without distinction between the background pixel and the non-background pixel. By calculating the surrounding color information,
A situation in which peripheral color information cannot be obtained in an image in which non-background pixels continue continuously is avoided.

【0067】また、請求項30にかかる画像処理方法に
あっては、さらに、前記代表値、入力されたカラー画像
の当該画素の色成分信号、周辺の色情報、からなる3次
元の2値化テーブルを用意する工程を含み、前記2値化
工程は前記2値化テーブルの3つの特徴量を用いて2値
化処理を行なうものである。
Further, in the image processing method according to claim 30, furthermore, three-dimensional binarization comprising the representative value, a color component signal of the pixel of the input color image, and peripheral color information. The method includes a step of preparing a table, and the binarization step performs a binarization process using three feature values of the binarization table.

【0068】この発明によれば、請求項21の画像処理
方法において、代表値、入力されたカラー画像の当該画
素の色成分信号、周辺の色情報、の3つの特徴量を3次
元の2値化テーブルとして用意してくことにより、2値
化処理時における処理が迅速に行なえる。
According to the present invention, in the image processing method according to the twenty-first aspect, the three feature amounts of the representative value, the color component signal of the pixel of the input color image, and the surrounding color information are converted into three-dimensional binary values. By preparing as a conversion table, the processing at the time of the binarization processing can be performed quickly.

【0069】また、請求項31にかかる画像処理方法に
あっては、入力されたカラー画像のビット数を少なくし
た後に、前記代表値を算出するものである。
In the image processing method according to the thirty-first aspect, the representative value is calculated after reducing the number of bits of the input color image.

【0070】この発明によれば、入力されたカラー画像
が、たとえば各8ビット構成であった場合に、各5ビッ
トに変換した後、代表値の算出処理を行なうことによ
り、その処理の迅速化が可能になる。
According to the present invention, when the input color image has, for example, an 8-bit configuration, it is converted into 5-bit data, and then the representative value is calculated, thereby speeding up the processing. Becomes possible.

【0071】また、請求項32にかかる画像処理方法に
あっては、入力されたカラー画像のビット数を少なくし
た後に、2値化テーブルを作成するものである。
Further, in the image processing method according to claim 32, a binary table is created after reducing the number of bits of an input color image.

【0072】この発明によれば、請求項30の画像処理
方法において、入力されたカラー画像が、たとえば各8
ビット構成であった場合に、各5ビットに変換した後、
2値化テーブルを作成することによりデータ量の削減が
可能になる。
According to the invention, in the image processing method according to the thirtieth aspect, the input color image is, for example, 8
In the case of bit configuration, after converting to each 5 bits,
By creating a binarization table, the data amount can be reduced.

【0073】また、請求項33にかかる画像処理方法に
あっては、前記2値化工程の処理結果を用い、入力され
たカラー画像中の特定パターンを認識するものである。
Further, in the image processing method according to claim 33, a specific pattern in the input color image is recognized using the processing result of the binarization step.

【0074】この発明によれば、請求項8〜19に記載
の画像処理を行なうことにより、背景色と対象物との分
離が実現され、文字などの特定パターンの認識が可能に
なる。
According to the present invention, by performing the image processing as set forth in claims 8 to 19, separation of the background color from the object is realized, and a specific pattern such as a character can be recognized.

【0075】また、請求項34にかかるコンピュータ読
み取り可能な記録媒体にあっては、前記請求項21〜3
3のいずれか1つに記載の画像処理方法を、コンピュー
タに実行させるものである。
Further, in the computer-readable recording medium according to claim 34, the computer-readable recording medium according to claims 21 to 23 is provided.
3. A computer that causes a computer to execute the image processing method according to any one of 3.

【0076】この発明によれば、前記請求項21〜33
のいずれか1つの画像処理方法を、コンピュータに実行
させるプログラムを記録したことにより、請求項21〜
33のいずれか1つに記載の画像処理動作をコンピュー
タによって実現することが可能になる。
According to the present invention, the above-mentioned claims 21 to 33 are provided.
21. A program for causing a computer to execute any one of the image processing methods described above.
The image processing operation described in any one of 33 can be realized by a computer.

【0077】[0077]

【発明の実施の形態】以下、本発明にかかる文字認識装
置、文字認識方法、画像処理装置、画像処理方法、並び
にコンピュータ読み取り可能な記録媒体の好適な実施の
形態について添付図面を参照し、詳細に説明する。な
お、本発明はこの実施の形態に限定されるものではな
い。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a character recognition device, a character recognition method, an image processing device, an image processing method, and a computer-readable recording medium according to the present invention will be described below with reference to the accompanying drawings. Will be described. The present invention is not limited to this embodiment.

【0078】(実施の形態1)まず、この実施の形態で
取り扱うカラー画像について説明する。カラースキャナ
などのカラー画像入力装置から入力されるカラー画像を
デジタル化するには、まず、各点の色をR(赤),G
(緑),B(青)の成分に分解する。これにより、R,
G,Bの濃淡の分布として3つのモノクロ画像が得られ
る。これらRチャンネル,Gチャンネル,Bチャンネル
の各チャンネルに対し、共通の画素への分割、同じ量子
化の階調数をとり、A/D変換を行う。
(Embodiment 1) First, a color image handled in this embodiment will be described. To digitize a color image input from a color image input device such as a color scanner, first, the color of each point is R (red), G
Decomposes into (green) and B (blue) components. This allows R,
Three monochrome images are obtained as the distribution of the shades of G and B. For each of the R channel, G channel, and B channel, A / D conversion is performed by dividing the channel into common pixels and obtaining the same number of gradations for quantization.

【0079】デジタル化されたカラー画像は、R,G,
B3つのモノクロデジタル画像の重ね合わせである。
R,G,Bチャンネルでの画素への分解を共通にとって
あれば、デジタルのカラー画像は、各画素に対してR.
G,Bの明るさを表す3つの数値の組み(R.G,B)
が決まっていると考えられる。たとえば、各チャンネル
毎に階調数256で量子化を行った場合、R.G,Bそ
れぞれは、R=0〜255,G=0〜255,B=0〜
255の整数値をとる。なお、256階調は8ビットの
情報量であるので、各画素あたりの情報量は8ビット×
3=24ビットとなる。このようにRGBそれぞれ8ビ
ット、合計24ビットで表現することをRGB24ビッ
トカラー表現という。
The digitized color images are R, G,
B is a superposition of three monochrome digital images.
If the separation into pixels in the R, G, and B channels is shared, a digital color image is generated for each pixel by the R.G.
A set of three numerical values representing the brightness of G and B (RG, B)
Is considered to have been decided. For example, when quantization is performed with 256 gradations for each channel, R.D. G and B are respectively R = 0 to 255, G = 0 to 255, and B = 0.
It takes an integer value of 255. Since 256 gradations are an 8-bit information amount, the information amount per pixel is 8 bits ×
3 = 24 bits. Representing the RGB with 8 bits each, that is, a total of 24 bits is called RGB 24-bit color expression.

【0080】さて、一般に使われているカラー文書画像
は、100色とか200色とか多くの色を用いて印刷さ
れるのはまれである。たとえば、白黒の文字の中に部分
的にカラーの文字情報があったり、ページ全体が数色の
色文字となっている場合が大半である。また、その色
は、印刷時に用いられるインクの原色であるシアン,マ
ゼンタ,イエロー(以下、C,M,Yという)や、赤,
青,緑(以下、R,B,Gという)であることが多い。
Incidentally, a color document image which is generally used is rarely printed using many colors such as 100 colors or 200 colors. For example, in most cases, black and white characters have partially colored character information, or the entire page has several colored characters. The colors are cyan, magenta, and yellow (hereinafter, referred to as C, M, and Y), which are primary colors of ink used at the time of printing, and red,
Blue, green (hereinafter, referred to as R, B, G) in many cases.

【0081】また、これらの文書画像を読み取るスキャ
ナやファクシミリ装置、デジタルスチルカメラなどの光
学的読取装置は、R,B,GのCCD(固体撮像素子)
を用いていることが多く、これら装置からの出力は、
R,B,Gの色成分信号であることが多い。
Optical scanners such as scanners, facsimile machines, and digital still cameras for reading these document images are provided with R, B, and G CCDs (solid-state image sensors).
Are often used, and the output from these devices is
It is often an R, B, G color component signal.

【0082】さらに、印刷時に用いるインクの原色であ
る、C,M,Yと、上記装置から出力される赤,青,緑
は、補色関係にあり、所定の変換式で簡単に計算するこ
とが可能である。したがって、本発明はこれらのカラー
文書画像の特徴を積極的に活用することにより、より単
純な装置構成でカラー画像を認識し、再現することを可
能にするものである。
Further, C, M, and Y, which are the primary colors of the ink used at the time of printing, and red, blue, and green output from the above-mentioned device have a complementary color relationship, and can be easily calculated by a predetermined conversion formula. It is possible. Therefore, the present invention makes it possible to recognize and reproduce a color image with a simpler device configuration by actively utilizing the features of the color document image.

【0083】つぎに、装置の構成について説明する。図
1は、本発明の実施の形態にかかる文字認識装置の構成
を示すブロック図である。図において、符号1は、スキ
ャナやファクシミリ装置、デジタルスチルカメラなどの
カラー画像入力装置から入力されるカラー文書画像から
グレー画像を作成するグレー変換回路、符号2はグレー
変換回路1でグレー変換されたグレー画像を白/黒の2
値データに変換する2値化回路、符号3は2値化回路2
で2値化された2値データの文字を認識する文字認識回
路である。
Next, the configuration of the apparatus will be described. FIG. 1 is a block diagram illustrating a configuration of a character recognition device according to an embodiment of the present invention. In the figure, reference numeral 1 denotes a gray conversion circuit that creates a gray image from a color document image input from a color image input device such as a scanner, a facsimile device, or a digital still camera, and reference numeral 2 denotes a gray conversion circuit that is gray-converted by the gray conversion circuit 1. Gray image is white / black 2
A binarization circuit for converting to value data, and reference numeral 3 denotes a binarization circuit 2
Is a character recognition circuit for recognizing the character of the binary data binarized by.

【0084】図2は、図1におけるグレー変換回路1お
よび2値化回路2の構成を示すブロック図である。グレ
ー変換回路1は、入力されたカラー文書画像を構成する
R(赤),G(緑),B(青)、あるいはC(シア
ン),M(マゼンタ),Y(イレロー),K(黒)の各
画素のカラー信号の複数の色成分信号の最大値または最
小値を、当該画素の代表値としてグレー画像を作成す
る。2値化回路2は、代表値の8ビット画像から、固定
しきい値あるいは判別分析法などによって白画素データ
と黒画素データとに2値化する。
FIG. 2 is a block diagram showing the configurations of the gray conversion circuit 1 and the binarization circuit 2 in FIG. The gray conversion circuit 1 comprises R (red), G (green), B (blue), C (cyan), M (magenta), Y (eralow), and K (black) constituting the input color document image. A gray image is created using the maximum value or the minimum value of a plurality of color component signals of the color signal of each pixel as a representative value of the pixel. The binarization circuit 2 binarizes the representative 8-bit image into white pixel data and black pixel data by a fixed threshold value or a discriminant analysis method.

【0085】図3は、図1における文字認識回路3の構
成を示すブロック図である。図において、符号10は2
値化回路2の2値データから、たとえば水平射影(横書
き文書では横方向の射影)をとり行画像(文字列画像)
を切り出す行切り出し部、符号11は切り出された行画
像(文字列画像)に対し、垂直射影をとったり黒画素の
連結を追跡することにより文字塊(文字素)を切り出す
文字切り出し部、符号12は文字塊(文字素)から文字
の大きさ、位置情報などを抽出する特徴抽出部、符号1
3は標準文字パターン情報が格納されているパターンメ
モリ、符号14は特徴抽出部12で抽出された情報とパ
ターンメモリ13に格納された情報とから文字を認識
し、文字コード情報を出力する文字認識部である。
FIG. 3 is a block diagram showing the configuration of the character recognition circuit 3 in FIG. In the figure, reference numeral 10 is 2
For example, a horizontal projection (horizontal projection in a horizontal writing document) is taken from the binary data of the value conversion circuit 2 to form a row image (character string image)
Is a character cutout unit for cutting out a character block (character element) by taking a vertical projection or tracking the connection of black pixels to the cutout line image (character string image). A feature extraction unit for extracting character size, position information, and the like from a character block (character element), code 1
Reference numeral 3 denotes a pattern memory storing standard character pattern information, and reference numeral 14 denotes a character recognition for recognizing a character from the information extracted by the feature extracting unit 12 and the information stored in the pattern memory 13 and outputting character code information. Department.

【0086】つぎに、以上のように構成された文字認識
装置の動作について説明する。図4は、本発明の実施の
形態にかかる第1の動作手順例を示すフローチャートで
ある。まず、スキャナなどからカラー文書画像を入力す
る(ステップS11)。なお、カラー文書画像に用いら
れる色成分として代表的なものとしては、R,G,Bと
C,M,Yに黒(以下、Kという)を含めたC,M,
Y,Kが用いられることが多い。これらR,G,Bと
C,M,Yの間には、「Y=255−B」、「C=25
5=R」、「M=225−G」の関係が存在し、簡単な
変換式で変換することができる。
Next, the operation of the character recognition device configured as described above will be described. FIG. 4 is a flowchart illustrating a first operation procedure example according to the embodiment of the present invention. First, a color document image is input from a scanner or the like (step S11). As typical color components used for a color document image, R, G, B and C, M, Y including black (hereinafter referred to as K) in C, M, Y
Y and K are often used. Between these R, G, B and C, M, Y, "Y = 255-B" and "C = 25
5 = R "and" M = 225-G ", which can be converted by a simple conversion formula.

【0087】また、変換式は、上述の変換式に限らず、
一般的には、 C = k1×R + k2×G + k3×B M = k4×R + k5×G + k6×B Y = k7×R + k8×G + k9×B に示すような式で表される。なお、k1〜k9は係数で
ある。
The conversion equation is not limited to the above-mentioned conversion equation.
In general, C = k1 × R + k2 × G + k3 × BM M = k4 × R + k5 × G + k6 × BY = k7 × R + k8 × G + k9 × B expressed. Note that k1 to k9 are coefficients.

【0088】一般に、R,G,BまたはC,M,Y,
(K)が用いられるのは、スキャナやファクシミリ装
置、デジタルスチルカメラなどの光学的読取装置で用い
られているCCDがR,G,Bの色成分信号を出力する
ことにより、また、プリンタなどの印刷装置で用いられ
るインクの原色がC,M,Y,(K)であることによ
る。
In general, R, G, B or C, M, Y,
(K) is used when a CCD used in an optical reading device such as a scanner, a facsimile device, or a digital still camera outputs R, G, and B color component signals, and is used in a printer or the like. This is because the primary colors of the ink used in the printing apparatus are C, M, Y, and (K).

【0089】一方、文字認識装置の対象原稿であるカラ
ー文書画像は、何らかの印刷装置で印刷されている場合
が多い。そのため、白黒以外のカラー部分はR,G,B
またはC,M,Yで表現されている場合が多い。また、
文書の地肌(紙)部分は白または明度が高い場合が多
く、地肌と区別するためにも、文字部分の明度値は低く
なっていることが一般的である。
On the other hand, a color document image which is a target document of the character recognition device is often printed by some printing device. Therefore, color parts other than black and white are R, G, B
Or, it is often represented by C, M, Y. Also,
The background (paper) portion of a document is often white or high in brightness, and the brightness value of a character portion is generally low in order to distinguish it from the background.

【0090】さて、図4のステップS11を実行した
後、R,G,B(C,M,Y,(K))の最小値(また
は最大値)を代表値として算出する(ステップS1
2)。ここで、R,G,B各8ビット256階調(合計
24ビット)から代表値の8ビット画像を作成する例に
ついて説明する。
After executing step S11 in FIG. 4, the minimum (or maximum) value of R, G, B (C, M, Y, (K)) is calculated as a representative value (step S1).
2). Here, an example of creating a representative value 8-bit image from R, G, and B 8-bit 256 gradations (total 24 bits) will be described.

【0091】たとえば、R,G,Bの色信号で、赤色
(R)の文字は、R,G,B値(255,0,0)のよ
うになり、緑色(G)の文字のR,G,B値は(0,2
55,0)のように、青色(B)のR,G,B値は
(0,0,255)のようになる。また、黒文字の場合
は(0,0,0)となり、地肌(紙)の部分は(25
5,255,255)となる。これらをまとめたものを
図5に示す。
For example, in the R, G, B color signals, a red (R) character has an R, G, B value (255, 0, 0), and a green (G) character, R, G, B, The G and B values are (0, 2
55, 0), the R, G, B values of blue (B) are (0, 0, 255). In the case of a black character, it is (0, 0, 0), and the background (paper) part is (25, 0).
5, 255, 255). FIG. 5 shows a summary of the above.

【0092】図5に示すように、文字部分では、R,
G,B値のいずれかの値が小さく(この例では0にな
る)なることを利用し、R,G,B値の最小値を代表値
として用いることにより、色によらず文字部分と地肌部
分とを分けることが可能になる。
As shown in FIG. 5, in the character portion, R,
By utilizing the fact that one of the G and B values becomes smaller (becomes 0 in this example) and using the minimum value of the R, G and B values as a representative value, the character portion and the background are independent of the color. It is possible to separate the parts.

【0093】つぎに、図4のステップS12において代
表値を算出すると、続いて、2値化処理を実行する(ス
テップS13)。すなわち、上記代表値の段階では、図
5の場合、R,G,Bそれぞれ8ビット(256階調)
の24ビットが1画素あたり8ビットになっているだけ
で、2値されているわけではない。代表値の8ビット画
像から2値化する方法は、固定のしきい値で2値化して
よいし、判別分析法など様々なところで用いられている
公知の手法を採用してもよい。
Next, when the representative value is calculated in step S12 of FIG. 4, subsequently, a binarization process is executed (step S13). That is, at the stage of the representative value, in the case of FIG. 5, each of R, G, and B is 8 bits (256 gradations).
Are only 8 bits per pixel, and are not binary. As a method of binarizing a representative value 8-bit image, binarization may be performed with a fixed threshold value, or a known method used in various places such as a discriminant analysis method may be adopted.

【0094】続いて、ステップS13で2値化処理され
た2値データを文字認識回路3に入力し、文字認識処理
を実行する(ステップS14)。すなわち、行切り出し
部10によって文字列が切り出される。さらに、文字切
り出し部11によって切り出された行画像(文字列画
像)から、垂直射影をとったり黒画素の連結を追跡する
ことにより文字塊を切り出し、特徴抽出部12により文
字の大きさや位置などを抽出する。その後、文字認識部
14がパターンメモリ13の辞書を参照し、文字認識を
おこない、文字コード情報を出力する。
Subsequently, the binary data binarized in step S13 is input to the character recognition circuit 3, and the character recognition processing is executed (step S14). That is, a character string is cut out by the line cutout unit 10. Furthermore, a character block is cut out from the line image (character string image) cut out by the character cutout unit 11 by taking a vertical projection or tracing the connection of black pixels, and the size and position of the character are extracted by the feature extraction unit 12. I do. Thereafter, the character recognition unit 14 performs character recognition by referring to the dictionary of the pattern memory 13, and outputs character code information.

【0095】続いて、上述の文字認識結果(文字コード
情報)と、代表値としてR,G,B値のどの値を用いた
かにより、その文字の色が何色であったかの色情報を併
せて装置に備えているメモリあるいは外部メモリに保存
するかまたはディスプレイなどに表示する(ステップS
15)。
Next, the character recognition result (character code information) described above and the color information of the color of the character based on which of the R, G, and B values was used as the representative value are also combined. It is stored in a memory provided in the apparatus or an external memory, or displayed on a display or the like (step S
15).

【0096】図7は、他の文字認識装置の構成を示すブ
ロック図であり、図1に示した文字認識装置の構成に対
し、文字認識回路3の後段に文字コード情報および色情
報を格納するためのメモリ4を設けたものである。ま
た、図8は、図7の文字認識装置の動作手順を示すフロ
ーチャートであり、第2の動作手順例を示すフローチャ
ートである。この動作手順では、前述した図4のフロー
チャートに対し、ステップS23およびステップS26
を付加したものである。
FIG. 7 is a block diagram showing the structure of another character recognition device. In the structure of the character recognition device shown in FIG. 1, character code information and color information are stored at the subsequent stage of the character recognition circuit 3. Memory 4 is provided. FIG. 8 is a flowchart showing an operation procedure of the character recognition device of FIG. 7, and is a flowchart showing a second operation procedure example. In this operation procedure, steps S23 and S26 are added to the flowchart of FIG.
Is added.

【0097】すなわち、ステップS22でR,G,B
(C,M,Y,(K))の最小値(または最大値)を代
表値として算出した後、R,G,B(C,M,Y,
(K))のどの値を代表値として用いたかをメモリ4に
記憶する(ステップS23)。また、ステップS26で
は、ステップS25において認識した文字の文字コード
情報をメモリ4に記憶する。なお、他の処理は図4と同
じであるので省略する。
That is, in step S22, R, G, B
After calculating the minimum value (or maximum value) of (C, M, Y, (K)) as a representative value, R, G, B (C, M, Y,
Which value of (K)) was used as the representative value is stored in the memory 4 (step S23). In step S26, the character code information of the character recognized in step S25 is stored in the memory 4. The other processes are the same as those in FIG.

【0098】このように、代表値としてR,G,B値の
どの値を用いたかを記憶することにより、文字認識結果
と併せて、その文字の何色で書かれていたかの情報を得
ることができる。
As described above, by storing which of the R, G, and B values is used as the representative value, it is possible to obtain information on what color of the character was written together with the character recognition result. it can.

【0099】ところで、上述した実施の形態による手法
を用いずに、従来よく用いられている「カラーからグレ
ー」への変換方式として、G成分のみを抜き出すと図6
に示すようになってしまい、緑文字の場合、地肌との区
別ができなくなる。
By the way, instead of using the method according to the above-described embodiment, only the G component is extracted as a conversion method from “color to gray” which is often used in the related art.
In the case of a green character, it is impossible to distinguish it from the background.

【0100】なお、この実施の形態では、R,G,Bを
用いて説明をおこなったが、C,M,Y,(K)でも
R,G,Bと同様である。また、この実施の形態では、
黒文字のR,G,B値を(0,0,0)としたが、画像
フォーマットによっては、黒文字を(255,255,
255)と白黒反転して保持する場合もあるので、この
ような場合には、代表値は、R,G,B値の最大値を用
いる。
In this embodiment, the description has been made using R, G, and B. However, the same applies to C, M, Y, and (K). Also, in this embodiment,
Although the R, G, and B values of the black character are set to (0, 0, 0), the black character may be set to (255, 255, 255) depending on the image format.
In some cases, the maximum value of the R, G, and B values is used as the representative value.

【0101】(実施の形態2)図9は、本発明の実施の
形態2にかかる画像処理装置の構成を示すブロック図で
ある。この画像処理装置は、R,G,Bのカラー画像信
号を入力するカラー画像入力部100と、R,G,Bの
カラー画像信号の各8ビットの画像信号を各5ビットに
変換するガンマ変換部101と、R,Gの画像信号の最
大値を求める最大値算出部102と、R,G,Bのカラ
ー画像信号から背景濃度を求める背景濃度算出部103
と、上記最大値および背景濃度を2値化する2値化処理
部104と、3次元の特徴がテーブル化されている2値
化テーブル105と、を備えている。
(Embodiment 2) FIG. 9 is a block diagram showing a configuration of an image processing apparatus according to Embodiment 2 of the present invention. This image processing apparatus includes a color image input unit 100 for inputting R, G, and B color image signals, and a gamma conversion for converting each 8-bit image signal of the R, G, and B color image signals into each 5-bit signal. Unit 101, a maximum value calculation unit 102 for obtaining the maximum value of the R and G image signals, and a background density calculation unit 103 for obtaining the background density from the R, G and B color image signals
And a binarization processing unit 104 for binarizing the maximum value and the background density, and a binarization table 105 in which three-dimensional features are tabulated.

【0102】つぎに以上のように構成された画像処理装
置について説明する。まず、カラー画像入力部100
は、デジタル複写機あるいはカラーイメージスキャナな
どのカラー入力装置、あるいはコンピュータなどから
R,G,Bのカラー画像信号を入力する。ガンマ変換部
101はこのR,G,Bのカラー画像信号に対し、それ
ぞれ8ビットの画像を5ビットの画像に変換する。さら
に、最大値算出部102によりRとGの値の最大値を求
め、代表値とする。
Next, an image processing apparatus configured as described above will be described. First, the color image input unit 100
Inputs an R, G, B color image signal from a color input device such as a digital copying machine or a color image scanner, or a computer. The gamma converter 101 converts an 8-bit image into a 5-bit image for each of the R, G, and B color image signals. Further, the maximum value calculation unit 102 obtains the maximum value of the values of R and G and sets the maximum value as a representative value.

【0103】また、背景濃度算出部103により、後述
するように、R,G,Bのカラー画像信号5ビットから
前32画素を参照し、背景濃度を求める。この背景濃
度、上記代表値、代表値の算出に用いなかったBの画素
値を2値化処理部104に送る。2値化処理部104
は、代表値MAX(R、G)5ビット、背景濃度(5ビ
ット)、B(5ビット)を、2値化テーブル105を用
いて2値化処理する。なお、2値化テーブル105は、
後述するような3次元の特徴量をもっている。
As will be described later, the background density calculating section 103 refers to the preceding 32 pixels from the 5 bits of the R, G, B color image signal to determine the background density. The background density, the representative value, and the pixel value of B not used for calculating the representative value are sent to the binarization processing unit 104. Binarization processing unit 104
Performs a binarization process on the representative value MAX (R, G) 5 bits, the background density (5 bits), and B (5 bits) using the binarization table 105. Note that the binarization table 105 is
It has a three-dimensional feature amount as described later.

【0104】ところで、ここではカラー画像信号をR,
G,Bとしているが、C,M,YあるいはC,M,Y,
Kなどの値であってもよい。また、最大値算出部102
により代表値を求める際、ここではRとGとを用いた
が、GとBあるいはRとBであってもよいし、さらには
C,M,Y,Kのいずれの組み合わせであってもよい。
さらに、これら2つの信号の比較ではなく、3つ以上を
比較して代表値を求めてもよい。
Here, the color image signal is represented by R,
G, B, C, M, Y or C, M, Y,
It may be a value such as K. Also, the maximum value calculation unit 102
Although R and G are used here when calculating the representative value, G and B or R and B may be used, or any combination of C, M, Y, and K may be used. .
Further, instead of comparing these two signals, a representative value may be obtained by comparing three or more signals.

【0105】つぎに、当該画素の周辺の色情報として、
背景濃度を求める動作について説明する。デジタルカラ
ー複写機やデジタルカラースキャナなどの場合、主走査
方向に1ラインずつデータを読み込むことになる。読み
込んだデータを逐次的に処理を行なわない場合、前ライ
ンのデータなどをラインメモリに保存しておく必要があ
る。そこで、1ライン内のデータのみ、それも注目画素
よりも以前に入力されたデータのみを用いて当該画素の
周辺の色情報(=背景濃度)を算出する。この背景濃度
の算出について以下に詳述する。
Next, as color information around the pixel,
The operation for obtaining the background density will be described. In the case of a digital color copying machine, a digital color scanner, or the like, data is read line by line in the main scanning direction. If the read data is not processed sequentially, it is necessary to store the data of the previous line in a line memory. Therefore, color information (= background density) around the pixel is calculated using only data within one line, and only data input before the pixel of interest. The calculation of the background density will be described in detail below.

【0106】図10は、本発明の実施の形態2にかかる
背景濃度の算出方法を示す説明図である。この図10で
は、注目画素51の前方32画素の値をみて背景濃度算
出する例について示している。ここで、周辺の色情報
(=背景濃度)として、「RとGの最大値と、Bの値の
差」を1つの特徴量としている。
FIG. 10 is an explanatory diagram showing a method of calculating the background density according to the second embodiment of the present invention. FIG. 10 shows an example in which the background density is calculated by looking at the values of 32 pixels in front of the target pixel 51. Here, as the peripheral color information (= background density), “the difference between the maximum value of R and G and the value of B” is one feature amount.

【0107】すなわち、図10(a)では注目画素51
の前方32画素で、2値化処理によって背景画素52で
あると判定された画素において、 (intens(=Max(R,B)−B) を背景濃度とする。
That is, in FIG. 10A, the target pixel 51
In the 32 pixels in front of the pixel determined to be the background pixel 52 by the binarization process, let (intens (= Max (R, B) -B)) be the background density.

【0108】一方、図10(b)に示す画像パターンの
ように、前方32画素のうち、注目画素51の直前の1
8画素がすべて非背景画素53aの場合には、2値化結
果によらず注目画素51の前方32画素すべての(in
tensの和/32)を背景濃度とする。
On the other hand, as shown in the image pattern shown in FIG.
When all eight pixels are the non-background pixels 53a, the (in) of all 32 pixels in front of the pixel of interest 51 regardless of the binarization result
(sum of tens / 32) is set as the background density.

【0109】したがって、上記特徴量「RとGの最大値
と、Bの値の差」を用いることによって白地に書かれた
3色の非背景画素(対象物)を同時に検出することが可
能になる。すなわち、白地の場合、R,G,Bのいずれ
の値も8ビットデータの場合、255に近い値になるの
に対し、黄色で非背景画素が描かれているとRとGの値
は255に近く、Bの値はゼロに近くなる。同様に、R
の値が大きく、GとBの値が小さい場合の色、Gの値が
大きく、RとBの値が小さい色の3色を同時に検出する
ことができる。
Therefore, it is possible to simultaneously detect non-background pixels (objects) of three colors written on a white background by using the feature amount “difference between the maximum value of R and G and the value of B”. Become. That is, in the case of a white background, all values of R, G, and B are close to 255 in the case of 8-bit data, whereas the values of R and G are 255 when a non-background pixel is drawn in yellow. And the value of B is close to zero. Similarly, R
Can be detected at the same time when the value of G is large and the values of G and B are small, and when the value of G is large and the values of R and B are small.

【0110】また、上述した処理において、背景画素5
2であると判断された画素のカラー情報のみを用いて周
辺の色情報(=背景濃度)を求めることにより、非背景
画素に影響されることなく周辺の色情報を求めることが
できる。
In the above-described processing, the background pixel 5
By obtaining the surrounding color information (= background density) using only the color information of the pixel determined to be 2, it is possible to obtain the surrounding color information without being affected by the non-background pixels.

【0111】ただし、連続して非背景画素が続いた(図
10(b))場合、周辺の色情報が求まらなくなる不具
合が生じる。そこで、抽出を行ないたい対象物の大きさ
を考慮し、たとえば、抽出対象物の最大画素数が16画
素だった場合、16画素以上対象物が続くことがありえ
ないので、これより若干大きめの18画素連続して非背
景画素が続けば、注目画素51の直前のすべての画素値
から背景濃度の算出を行なう。
However, when non-background pixels continue continuously (FIG. 10B), there arises a problem that peripheral color information cannot be obtained. Therefore, in consideration of the size of the object to be extracted, for example, if the maximum number of pixels of the extracted object is 16 pixels, the object cannot continue more than 16 pixels. If the non-background pixels continue, the background density is calculated from all the pixel values immediately before the target pixel 51.

【0112】この背景濃度の算出方法を図11のフロー
チャートに示す。まず、各パラメータを初期化する(ス
テップS31)。すなわち、mean1(注目画素の前
方32画素)、mean(注目画素の前方32画素のう
ち、背景画素と判断されたもの)、flagを0に初期
化する。続いて、2値化処理を実行する(ステップS3
2)。
The method of calculating the background density is shown in the flowchart of FIG. First, each parameter is initialized (step S31). That is, mean1 (the front 32 pixels of the pixel of interest), mean (of the front 32 pixels of the pixel of interest, the pixel determined to be the background pixel), and flag are initialized to 0. Subsequently, a binarization process is executed (step S3).
2).

【0113】すなわち、 rst(x)=binTable(max(x),bl
ue(x),mean) rst(x)=0 白画素(背景) rst(x)=1 黒画素(非背景) の2値化処理を実行する。続いて、背景濃度を図示のア
ルゴリズムにしたがって求める(ステップS33)。
That is, rst (x) = binTable (max (x), bl
ue (x), mean) rst (x) = 0 White pixel (background) rst (x) = 1 Black pixel (non-background) Subsequently, the background density is obtained according to the illustrated algorithm (step S33).

【0114】なお、図11において、 max(x)=Max(red(x),green
(x)) intens(x)=Max(red(x),gree
n(x))−blue(x) mean1=Σintens(x),mean=Σin
tens(x) とする。
In FIG. 11, max (x) = Max (red (x), green
(X)) intens (x) = Max (red (x), green
n (x))-blue (x) mean1 = Σintens (x), mean = Σin
tens (x).

【0115】ところで、これまで説明してきた文字認識
方法、および画像処理方法を、プログラム化し、コンピ
ュータ読み取り可能な記録媒体に記録し、コンピュータ
上で実行することもできる。また、文字認識方法、画像
処理方法の一部をネットワーク上に有し、通信回線を通
して実現することもできる。
The character recognition method and image processing method described above can be programmed, recorded on a computer-readable recording medium, and executed on a computer. Further, a part of the character recognition method and the image processing method may be provided on a network, and may be realized through a communication line.

【0116】すなわち、この実施の形態で説明した文字
認識方法、画像処理方法は、図12に示すように、あら
かじめ用意されたプログラムをパーソナルコンピュータ
やワークステーションなどのコンピュータ(CPU2
0)で実行することにより実現される。このプログラム
は、キーボード25の操作などにより、メモリ21、ハ
ードディスク24、フロッピー(登録商標)ディスク2
7、CD−ROM26、MO、DVDなどのコンピュー
タで読み取り可能な記録媒体に記録され、コンピュータ
(CPU20)によって記録媒体から読み出されること
によって実行される。また、必要に応じてこの文字認
識、あるいは画像処理のデータを通信装置22から外部
装置に送受信することも可能である。
That is, according to the character recognition method and the image processing method described in the present embodiment, as shown in FIG. 12, a program prepared in advance is transferred to a computer (CPU 2) such as a personal computer or a workstation.
0). This program is operated by operating the keyboard 25 or the like, and the memory 21, the hard disk 24, the floppy (registered trademark) disk 2
7. The program is recorded on a computer-readable recording medium such as a CD-ROM 26, an MO, and a DVD, and is executed by being read from the recording medium by a computer (CPU 20). If necessary, the character recognition or image processing data can be transmitted and received from the communication device 22 to an external device.

【0117】また、このプログラムは、図13に示すよ
うに、上記記録媒体を介して、インターネット30など
のネットワークによってパーソナルコンピュータなどの
装置31〜33に配布することができる。
As shown in FIG. 13, this program can be distributed to devices 31 to 33 such as personal computers via the recording medium via a network such as the Internet 30.

【0118】[0118]

【発明の効果】以上説明したように、本発明にかかる文
字認識装置(請求項1)によれば、文字認識装置の対象
原稿であるカラー文書画像は、文字部分では、R,G,
B値のいずれかの値が小さく(この例では0になる)な
ることを利用し、R,G,B値の最小値を代表値として
用いることにより、色によらず文字部分と地肌部分とを
分けることが可能になる、というカラー文書画像の特徴
を利用し、グレー変換手段により、カラー信号における
複数の色成分信号の最大値または最小値を当該画素の代
表値としてグレー画像に変換した後、2値化し、その2
値の代表値(代表色)を用いて文字認識するため、より
単純な構成の装置でカラー文書画像の文字を認識するこ
とができる。
As described above, according to the character recognition device of the present invention (claim 1), the color document image which is the target document of the character recognition device has R, G,
By utilizing the fact that one of the B values becomes small (becomes 0 in this example) and using the minimum value of the R, G, and B values as a representative value, the character portion and the background portion can be separated regardless of the color. After converting the maximum value or the minimum value of a plurality of color component signals in a color signal into a gray image as a representative value of the pixel by using a feature of a color document image that the color document image can be divided. , Binarization, part 2
Since the character is recognized using the representative value (representative color) of the value, the character of the color document image can be recognized with a device having a simpler configuration.

【0119】また、本発明にかかる文字認識装置(請求
項2)によれば、カラー文書画像は、何らかの印刷装置
で印刷されている場合が多いのため、白黒以外の色成分
信号を、認識対象の原稿を印刷したときに用いたインク
と同一とすることにより、印刷時と同一条件での代表値
を用いるため、より高精度のカラー画像の文字認識をお
こなうことができる。
According to the character recognition device of the present invention (claim 2), since a color document image is often printed by some printing device, a color component signal other than black and white is recognized as a recognition target. By using the same ink as that used when printing the original, the representative value under the same conditions as when printing is used, so that more accurate character recognition of a color image can be performed.

【0120】また、本発明にかかる文字認識装置(請求
項3)によれば、グレー変換手段の変換時に、複数の色
成分信号のうちのどの信号を代表値としたかの色情報お
よび文字認識結果を記憶しておく記憶手段を設けること
により、認識結果を利用する際などの後処理において、
代表値の色が何色であるかを迅速に確認することができ
る。
Further, according to the character recognition device of the present invention, the color information and the character recognition as to which signal of the plurality of color component signals was used as the representative value at the time of conversion by the gray conversion means. By providing storage means for storing the result, in post-processing such as when using the recognition result,
It is possible to quickly confirm what color the representative value is.

【0121】また、本発明にかかる文字認識装置(請求
項4)によれば、表示手段に、代表値の色情報および文
字コード情報を表示するため、認識結果の文字コード情
報およびその色情報がディスプレイなどの表示部でユー
ザーが即座に確認することができる。
According to the character recognition device of the present invention, the display means displays the color information and the character code information of the representative value, so that the character code information and the color information of the recognition result are displayed. The user can immediately confirm the information on a display unit such as a display.

【0122】また、本発明にかかる文字認識方法(請求
項5)によれば、請求項1と同様に、カラー文書画像の
特徴を利用し、カラー信号における複数の色成分信号の
最大値または最小値を当該画素の代表値としてグレー画
像に変換した後、2値化し、その2値の代表値(代表
色)を用いて文字認識するため、より単純な方法でカラ
ー文書画像の文字を認識することができる。
According to the character recognition method of the present invention (claim 5), similarly to claim 1, the maximum value or the minimum value of a plurality of color component signals in a color signal is utilized by utilizing the characteristics of a color document image. After the value is converted into a gray image as a representative value of the pixel, the image is binarized, and the character is recognized using the binary representative value (representative color). Therefore, the character of the color document image is recognized by a simpler method. be able to.

【0123】また、本発明にかかる文字認識方法(請求
項6)によれば、カラー文書画像は、何らかの印刷装置
で印刷されている場合が多いのため、第1の工程で入力
する白黒以外の色成分信号を、認識対象の原稿を印刷し
たときに用いたインクと同一とすることにより、印刷時
と同一条件での代表値を用いるため、より高精度のカラ
ー画像の文字認識をおこなうことができる。
According to the character recognition method of the present invention (Claim 6), since a color document image is often printed by a certain printing device, a color document image other than black and white input in the first step is used. By making the color component signal the same as the ink used when printing the document to be recognized, a representative value under the same conditions as at the time of printing is used, so that more accurate character recognition of a color image can be performed. it can.

【0124】また、本発明にかかるコンピュータ読み取
り可能な記録媒体(請求項7)によれば、請求項5また
は6に記載の文字認識方法を、コンピュータに実行させ
るプログラムを記録したので、請求項5または6に記載
の文字認識動作をコンピュータによって実現することが
できる。
According to the computer-readable recording medium of the present invention (claim 7), a program for causing a computer to execute the character recognition method according to claim 5 or 6 is recorded. Alternatively, the character recognition operation described in 6 can be realized by a computer.

【0125】また、本発明にかかる画像処理装置(請求
項8)によれば、カラー画像の各画素におけるカラー信
号の複数の色成分信号の最大値または最小値を求めてそ
の値を代表値とし、この代表値と入力されたカラー画像
の当該画素(注目画素)の色成分信号、当該画素の周辺
の色成分信号から求めた周辺の色情報(背景画素)をも
とに2値化処理するため、入力されたカラー画像の背景
濃度が変化しても対象物画像の2値化データを高精度に
得ることができる。
Further, according to the image processing apparatus of the present invention, the maximum value or the minimum value of a plurality of color component signals of the color signal in each pixel of the color image is obtained, and the obtained value is set as a representative value. The binarization process is performed based on the representative value, the color component signal of the pixel (target pixel) of the input color image, and the peripheral color information (background pixel) obtained from the color component signal of the periphery of the pixel. Therefore, even if the background density of the input color image changes, binarized data of the object image can be obtained with high accuracy.

【0126】また、本発明にかかる画像処理装置(請求
項9)によれば、請求項8の画像処理装置において、入
力されるカラー画像を赤、青、緑の明度信号またはシア
ン、マゼンタ、イエローの明度信号として処理するの
で、入力画像信号の色情報の違いにも対応させることが
できる。
According to the image processing apparatus of the present invention, the input color image is converted to a red, blue, and green lightness signal or cyan, magenta, and yellow. Since the brightness signal is processed as described above, it is possible to cope with a difference in color information of the input image signal.

【0127】また、本発明にかかる画像処理装置(請求
項10)によれば、請求項8の画像処理装置において、
2値化する際に用いるカラー画像の当該画素の色成分信
号を、代表値を求める際に用いた色成分信号以外の信号
とするので、高精度の2値化が可能になる。
Further, according to the image processing apparatus of the present invention (claim 10), in the image processing apparatus of claim 8,
Since the color component signal of the pixel of the color image used for binarization is a signal other than the color component signal used for obtaining the representative value, high-precision binarization becomes possible.

【0128】また、本発明にかかる画像処理装置(請求
項11)によれば、請求項8の画像処理装置において、
代表値を求める色成分信号は、赤と緑の色成分信号の最
大値とするので、白地に書かれた3色の非背景画素(対
象物)を同時に検出することができる。
Further, according to the image processing apparatus of the present invention (claim 11), in the image processing apparatus of claim 8,
Since the color component signal for obtaining the representative value is the maximum value of the red and green color component signals, non-background pixels (objects) of three colors written on a white background can be simultaneously detected.

【0129】また、本発明にかかる画像処理装置(請求
項12)によれば、請求項8の画像処理装置において、
2値化する際に用いる入力されたカラー画像の当該画素
の色成分信号を、青の色成分信号とすることにより、正
確な2値化処理が可能になる。
Further, according to the image processing apparatus of the present invention (claim 12), in the image processing apparatus of claim 8,
By making the color component signal of the pixel of the input color image used for binarization a blue color component signal, accurate binarization processing becomes possible.

【0130】また、本発明にかかる画像処理装置(請求
項13)によれば、請求項8の画像処理装置において、
当該画素よりも以前に処理されたデータを用いて当該画
素の周辺の色情報(背景濃度)とするので、当該画素の
背景濃度を正確にえることができる。
Further, according to the image processing apparatus of the present invention (claim 13), in the image processing apparatus of claim 8,
Since the color information (background density) around the pixel is determined using data processed before the pixel, the background density of the pixel can be accurately obtained.

【0131】また、本発明にかかる画像処理装置(請求
項14)によれば、請求項8の画像処理装置において、
2値化処理の結果から背景画素と非背景画素とを分離す
るため、対象物(非背景画素)に対する後処理を簡単に
行なうことができる。
Further, according to the image processing apparatus of the present invention (claim 14), in the image processing apparatus of claim 8,
Since the background pixel and the non-background pixel are separated from the result of the binarization process, post-processing on the object (non-background pixel) can be easily performed.

【0132】また、本発明にかかる画像処理装置(請求
項15)によれば、請求項8の画像処理装置において、
背景画素と判断された画素のカラー情報を用いて周辺の
色情報(背景濃度)を求めるため、非背景画素に影響さ
れない周辺の色情報を得ることができる。
Further, according to the image processing apparatus of the present invention (claim 15), in the image processing apparatus of claim 8,
Since peripheral color information (background density) is obtained using color information of a pixel determined as a background pixel, peripheral color information not affected by non-background pixels can be obtained.

【0133】また、本発明にかかる画像処理装置(請求
項16)によれば、請求項8の画像処理装置において、
背景画素が所定の閾値に対して多く連続した場合、背景
画素、非背景画素の区別なく、周辺の色成分信号を用い
て周辺の色情報を算出するため、連続して非背景画素が
続く画像において周辺の色情報が得られなくなる事態が
回避され、正しい背景濃度を得ることができる。
According to the image processing apparatus of the present invention (claim 16), in the image processing apparatus of claim 8,
If the background pixels are continuous with respect to a predetermined threshold value, the peripheral color information is calculated using the peripheral color component signals without distinction between the background pixels and the non-background pixels. In this case, a situation in which peripheral color information cannot be obtained is avoided, and a correct background density can be obtained.

【0134】また、本発明にかかる画像処理装置(請求
項17)によれば、請求項8の画像処理装置において、
代表値、入力されたカラー画像の当該画素の色成分信
号、周辺の色情報、の3つの特徴量を3次元の2値化テ
ーブルとして用意してくことにより、2値化処理時にお
ける処理が迅速に行なえるので、処理効率が向上する。
According to the image processing apparatus of the present invention (claim 17),
By preparing the three characteristic amounts of the representative value, the color component signal of the pixel of the input color image, and the surrounding color information as a three-dimensional binarization table, the processing at the time of the binarization processing is quick. , The processing efficiency is improved.

【0135】また、本発明にかかる画像処理装置(請求
項18)によれば、請求項8の画像処理装置において、
入力されたカラー画像が、たとえば各8ビット構成であ
った場合に、各5ビットに変換した後、代表値の算出処
理を行なうため、代表値算出を効率よく行なうことがで
きる。
Further, according to the image processing apparatus of the present invention (claim 18), in the image processing apparatus of claim 8,
If the input color image has, for example, an 8-bit configuration, it is converted into 5-bit data and then the representative value is calculated, so that the representative value can be calculated efficiently.

【0136】また、本発明にかかる画像処理装置(請求
項19)によれば、請求項17の画像処理装置におい
て、入力されたカラー画像が、たとえば各8ビット構成
であった場合に、各5ビットに変換した後、2値化テー
ブルを作成するため、データ量の削減が可能になり、メ
モリの有効活用および容量の低減が実現する。
Further, according to the image processing apparatus of the present invention (claim 19), in the image processing apparatus of claim 17, when the input color image has, for example, an 8-bit configuration, each of the input color images has 5 bits. After the conversion into bits, a binary table is created, so that the data amount can be reduced, and the effective use of the memory and the reduction of the capacity are realized.

【0137】また、本発明にかかる画像処理装置(請求
項20)によれば、請求項8〜19に記載の画像処理を
行なうことにより、背景色と対象物との分離が確実に行
なえるので、文字などの特定パターンの認識を正確に行
なうことが可能になる。
Further, according to the image processing apparatus of the present invention (claim 20), by performing the image processing of claims 8 to 19, the background color and the object can be reliably separated. , Characters and other specific patterns can be accurately recognized.

【0138】また、本発明にかかる画像処理方法(請求
項21)によれば、カラー画像の各画素におけるカラー
信号の複数の色成分信号の最大値または最小値を求めて
その値を代表値とし、この代表値と入力されたカラー画
像の当該画素(注目画素)の色成分信号、当該画素の周
辺の色成分信号から求めた周辺の色情報(背景画素)を
もとに2値化処理するため、入力されたカラー画像の背
景濃度が変化しても対象物画像の2値化データを高精度
に得ることができる。
According to the image processing method of the present invention (claim 21), the maximum value or the minimum value of a plurality of color component signals of a color signal in each pixel of a color image is obtained, and the value is set as a representative value. The binarization process is performed based on the representative value, the color component signal of the pixel (target pixel) of the input color image, and the peripheral color information (background pixel) obtained from the color component signal of the periphery of the pixel. Therefore, even if the background density of the input color image changes, binarized data of the object image can be obtained with high accuracy.

【0139】また、本発明にかかる画像処理方法(請求
項22)によれば、請求項21の画像処理方法におい
て、入力されるカラー画像を赤、青、緑の明度信号また
はシアン、マゼンタ、イエローの明度信号として処理す
るので、入力画像信号の色情報の種類の違いにも対応さ
せることができる。
Further, according to the image processing method of the present invention (claim 22), in the image processing method of claim 21, an input color image is converted into red, blue, and green lightness signals or cyan, magenta, and yellow. Since it is processed as the brightness signal of the input image signal, it is possible to cope with the difference in the type of the color information of the input image signal.

【0140】また、本発明にかかる画像処理方法(請求
項23)によれば、請求項21の画像処理方法におい
て、2値化する際に用いるカラー画像の当該画素の色成
分信号を、代表値を求める際に用いた色成分信号以外の
信号とするので、高精度の2値化処理を行なうことがで
きる。
According to the image processing method of the present invention (claim 23), in the image processing method of claim 21, the color component signal of the pixel of the color image used for binarization is represented by a representative value. Is obtained as a signal other than the color component signal used in the calculation of .times..times.

【0141】また、本発明にかかる画像処理方法(請求
項24)によれば、請求項21の画像処理方法におい
て、代表値を求める色成分信号は、赤と緑の色成分信号
の最大値とするので、白地に書かれた3色の非背景画素
(対象物)を同時に検出することができる。
According to the image processing method of the present invention (claim 24), in the image processing method of claim 21, the color component signal for obtaining the representative value is the maximum value of the red and green color component signals. Therefore, non-background pixels (objects) of three colors written on a white background can be simultaneously detected.

【0142】また、本発明にかかる画像処理方法(請求
項25)によれば、請求項21の画像処理方法におい
て、2値化する際に用いる入力されたカラー画像の当該
画素の色成分信号を、青の色成分信号とするため、正確
な2値化処理を行なうことができる。
According to the image processing method of the present invention (claim 25), in the image processing method of claim 21, the color component signal of the pixel of the input color image used for binarization is obtained. , And a blue color component signal, accurate binarization processing can be performed.

【0143】また、本発明にかかる画像処理方法(請求
項26)によれば、請求項21の画像処理方法におい
て、当該画素よりも以前に処理されたデータを用いて当
該画素の周辺の色情報(背景濃度)とすることにより、
当該画素の背景濃度を正確に得ることができる。
According to the image processing method of the present invention (claim 26), in the image processing method of claim 21, color data around the pixel is determined by using data processed before the pixel. (Background density)
The background density of the pixel can be accurately obtained.

【0144】また、本発明にかかる画像処理方法(請求
項27)によれば、請求項21の画像処理方法におい
て、2値化処理の結果から背景画素と非背景画素とを分
離するので、カラー画像における対象物(非背景画素)
に対する後処理を簡単におこなうことができる。
According to the image processing method of the present invention, the background pixel and the non-background pixel are separated from the result of the binarization processing. Object in image (non-background pixel)
Post-processing can be easily performed.

【0145】また、本発明にかかる画像処理方法(請求
項28)によれば、請求項21の画像処理方法におい
て、背景画素と判断された画素のカラー情報を用いて周
辺の色情報(背景濃度)を求めるので、非背景画素に影
響されない周辺の色情報を得ることができる。
Further, according to the image processing method of the present invention (claim 28), in the image processing method of claim 21, the peripheral color information (background density) is obtained by using the color information of the pixel determined as the background pixel. ), It is possible to obtain peripheral color information that is not affected by non-background pixels.

【0146】また、本発明にかかる画像処理方法(請求
項29)によれば、請求項21の画像処理方法におい
て、背景画素が所定の閾値に対して多く連続した場合、
背景画素、非背景画素の区別なく、周辺の色成分信号を
用いて周辺の色情報を算出するため、連続して非背景画
素が続く画像において周辺の色情報が得られなくなる事
態が回避され、正しい周辺の色情報が得られる。
Further, according to the image processing method of the present invention (claim 29), in the image processing method of claim 21, when a large number of background pixels continue with respect to a predetermined threshold value,
Since the peripheral color information is calculated using the peripheral color component signals without distinction between the background pixel and the non-background pixel, a situation in which the peripheral color information cannot be obtained in an image in which the non-background pixels continue continuously is avoided, Correct peripheral color information can be obtained.

【0147】また、本発明にかかる画像処理方法(請求
項30)によれば、請求項21の画像処理方法におい
て、代表値、入力されたカラー画像の当該画素の色成分
信号、周辺の色情報、の3つの特徴量を3次元の2値化
テーブルとして用意して2値化時に用いるので、2値化
処理時における処理を効率よく行なうことができる。
According to the image processing method of the present invention (claim 30), in the image processing method of claim 21, the representative value, the color component signal of the pixel of the input color image, and the peripheral color information , Are prepared as a three-dimensional binarization table and used at the time of binarization, so that the processing at the time of binarization can be performed efficiently.

【0148】また、本発明にかかる画像処理方法(請求
項31)によれば、入力されたカラー画像が、たとえば
各8ビット構成であった場合に、各5ビットに変換した
後、代表値の算出処理を行なことにより、少ないデータ
での処理となるので、代表値算出の処理効率が向上す
る。
Further, according to the image processing method of the present invention (claim 31), when the input color image has, for example, an 8-bit configuration, converts the input color image into 5-bit data, By performing the calculation processing, the processing is performed with a small amount of data, so that the processing efficiency of the representative value calculation is improved.

【0149】また、本発明にかかる画像処理方法(請求
項32)によれば、請求項30の画像処理方法におい
て、入力されたカラー画像が、たとえば各8ビット構成
であった場合に、各5ビットに変換した後、2値化テー
ブルを作成するので、データ量の削減が実現し、メモリ
容量の有効活用および小型化を図ることができる。
According to the image processing method of the present invention (claim 32), in the image processing method of claim 30, when the input color image has, for example, an 8-bit configuration, each of the input color images has a 5-bit configuration. Since the binarization table is created after the conversion into bits, the amount of data can be reduced, and the memory capacity can be effectively used and the size can be reduced.

【0150】また、本発明にかかる画像処理方法(請求
項33)によれば、請求項21〜32に記載の画像処理
を行なうことにより、背景色と対象物との分離がより確
実になるので、文字などの特定パターンをより正確に認
識することができる。
According to the image processing method of the present invention (claim 33), by performing the image processing according to claims 21 to 32, the separation between the background color and the object becomes more reliable. , Characters and other specific patterns can be more accurately recognized.

【0151】また、本発明にかかるコンピュータ読み取
り可能な記録媒体(請求項34)によれば、請求項21
〜33のいずれか1つの画像処理方法を、コンピュータ
に実行させるプログラムを記録したことにより、請求項
21〜33のいずれか1つに記載の画像処理動作をコン
ピュータによって実現することができる。
According to the computer-readable recording medium of the present invention (claim 34), claim 21
By recording a program for causing a computer to execute any one of the image processing methods according to any one of (1) to (33), the image processing operation according to any one of claims 21 to 33 can be realized by the computer.

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

【図1】本発明の実施の形態1にかかる文字認識装置の
構成を示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of a character recognition device according to a first embodiment of the present invention.

【図2】図1におけるグレー変換回路および2値化回路
の構成を示すブロック図である。
FIG. 2 is a block diagram illustrating a configuration of a gray conversion circuit and a binarization circuit in FIG. 1;

【図3】図1における文字認識回路の構成を示すブロッ
ク図である。
FIG. 3 is a block diagram illustrating a configuration of a character recognition circuit in FIG. 1;

【図4】本発明の実施の形態1にかかる第1の動作手順
例を示すフローチャートである。
FIG. 4 is a flowchart illustrating a first operation procedure example according to the first embodiment of the present invention;

【図5】本発明の実施の形態1にかかるRGB値から代
表値を決定する例を示す説明図である。
FIG. 5 is an explanatory diagram illustrating an example of determining a representative value from RGB values according to the first embodiment of the present invention.

【図6】RGB値からG成分のみを抜き出した場合を示
す説明図である。
FIG. 6 is an explanatory diagram showing a case where only a G component is extracted from RGB values.

【図7】本発明の実施の形態1にかかる他の文字認識装
置の構成を示すブロック図である。
FIG. 7 is a block diagram showing a configuration of another character recognition device according to the first embodiment of the present invention.

【図8】本発明の実施の形態1にかかる第2の動作手順
例を示すフローチャートである。
FIG. 8 is a flowchart illustrating a second operation procedure example according to the first embodiment of the present invention;

【図9】本発明の実施の形態2にかかる画像処理装置の
構成を示すブロック図である。
FIG. 9 is a block diagram illustrating a configuration of an image processing apparatus according to a second embodiment of the present invention;

【図10】本発明の実施の形態2にかかる背景濃度の算
出例を示す説明図である。
FIG. 10 is an explanatory diagram illustrating an example of calculating a background density according to the second embodiment of the present invention;

【図11】本発明の実施の形態2にかかる背景濃度の算
出処理を示すフローチャートである。
FIG. 11 is a flowchart illustrating a calculation process of a background density according to the second embodiment of the present invention;

【図12】本発明にかかる文字認識方法および画像処理
方法をソフトウェアによって実現するコンピュータシス
テム例を示すブロック図である。
FIG. 12 is a block diagram illustrating an example of a computer system that implements a character recognition method and an image processing method according to the present invention by software.

【図13】本発明にかかる文字認識方法および画像処理
方法をネットワーク上で実現するシステム例を示すブロ
ック図である。
FIG. 13 is a block diagram showing an example of a system for realizing a character recognition method and an image processing method according to the present invention on a network.

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

1 グレー変換回路 2 2値化回路 3 文字認識回路 4 メモリ 10 行切り出し部 11 文字切り出し部 12 特徴抽出部 14 文字認識部 100 カラー画像入力部 101 ガンマ変換部 102 最大値算出部 103 背景濃度算出部 104 2値化処理部 105 2値化テーブル DESCRIPTION OF SYMBOLS 1 Gray conversion circuit 2 Binarization circuit 3 Character recognition circuit 4 Memory 10 Line extraction part 11 Character extraction part 12 Feature extraction part 14 Character recognition part 100 Color image input part 101 Gamma conversion part 102 Maximum value calculation part 103 Background density calculation part 104 binarization processing unit 105 binarization table

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 1/46 H04N 1/40 103C 1/46 Z ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) H04N 1/46 H04N 1/40 103C 1/46 Z

Claims (34)

【特許請求の範囲】[Claims] 【請求項1】 カラー文書画像を入力し、該カラー文書
画像の文字認識を行う文字認識装置において、 前記カラー文書画像を構成する各画素のカラー信号にお
ける複数の色成分信号の最大値または最小値を当該画素
の代表値としてグレー画像に変換するグレー変換手段
と、 前記グレー変換手段で変換されたグレー画像を2値化す
る2値化手段と、 前記2値化手段の2値データから文字認識をおこなう文
字認識手段と、 を備えたことを特徴とする文字認識装置。
1. A character recognition apparatus for inputting a color document image and performing character recognition on the color document image, comprising: a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel constituting the color document image. Conversion means for converting a gray image converted by the gray conversion means into a gray image as a representative value of the pixel, binarization means, and character recognition from the binary data of the binarization means And a character recognizing means for performing the following.
【請求項2】 前記色成分信号は、認識対象の原稿を印
刷するときに用いたインクの色成分信号と同一であるこ
とを特徴とする請求項1に記載の文字認識装置。
2. The character recognition device according to claim 1, wherein the color component signal is the same as a color component signal of ink used when printing a document to be recognized.
【請求項3】 さらに、前記グレー変換手段の変換時
に、複数の色成分信号のうちのどの信号を代表値とした
かの色情報および文字認識結果を記憶しておく記憶手段
を設けたことを特徴とする請求項1または2に記載の文
字認識装置。
3. The image processing apparatus according to claim 1, further comprising a storage unit for storing color information and a character recognition result indicating which signal of the plurality of color component signals is a representative value at the time of conversion by the gray conversion unit. The character recognition device according to claim 1 or 2, wherein:
【請求項4】 さらに、前記記憶手段に記憶した色情報
および文字認識結果を表示する表示手段を設けたことを
特徴とする請求項3に記載の文字認識装置。
4. The character recognition apparatus according to claim 3, further comprising display means for displaying the color information and the character recognition result stored in said storage means.
【請求項5】 カラー文書画像を入力し、該カラー文書
画像の文字認識を行う文字認識方法において、 前記カラー文書画像を構成する各画素のカラー信号にお
ける複数の色成分信号の最大値または最小値を当該画素
の代表値として算出する第1の工程と、 前記第1の工程で算出した代表値を2値化する第2の工
程と、 前記第2の工程で2値化された代表値を用いて文字認識
を行う第3の工程と、 を含むことを特徴とする文字認識方法。
5. A character recognition method for inputting a color document image and performing character recognition on the color document image, comprising: a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel constituting the color document image. As a representative value of the pixel, a second step of binarizing the representative value calculated in the first step, and a representative value binarized in the second step. And a third step of performing character recognition by using the character recognition method.
【請求項6】 前記色成分信号は、認識対象の原稿を印
刷するときに用いたインクの色成分信号と同一であるこ
とを特徴とする請求項5に記載の文字認識方法。
6. The character recognition method according to claim 5, wherein the color component signal is the same as a color component signal of ink used when printing a document to be recognized.
【請求項7】 前記請求項5または6に記載の文字認識
方法を、コンピュータに実行させるプログラムを記録し
たことを特徴とするコンピュータ読み取り可能な記録媒
体。
7. A computer-readable recording medium on which a program for causing a computer to execute the character recognition method according to claim 5 or 6 is recorded.
【請求項8】 カラー画像を入力し、2値化する画像処
理装置において、 前記カラー画像を構成する各画素のカラー信号における
複数の色成分信号の最大値または最小値を当該画素の代
表値として算出する代表値算出手段と、 当該画素の周辺の色成分から当該画素の周辺の色情報を
求める色情報算出手段と、 前記代表値算出手段で算出された代表値と前記カラー画
像の当該画素の色成分信号、および算出された前記当該
画素の周辺の色情報を2値化する2値化手段と、 を備えたことを特徴とする画像処理装置。
8. An image processing apparatus for inputting and binarizing a color image, wherein a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel forming the color image is set as a representative value of the pixel. A representative value calculating means for calculating; a color information calculating means for obtaining color information around the pixel from color components around the pixel; and a representative value calculated by the representative value calculating means and a value of the pixel in the color image. An image processing apparatus comprising: a binarizing unit that binarizes a color component signal and calculated color information around the pixel.
【請求項9】 前記色成分信号は、赤、青、緑の明度信
号またはシアン、マゼンタ、イエローの明度信号である
ことを特徴とする請求項8に記載の画像処理装置。
9. The image processing apparatus according to claim 8, wherein the color component signals are red, blue, and green lightness signals or cyan, magenta, and yellow lightness signals.
【請求項10】 前記2値化手段で2値化する際に用い
る入力されたカラー画像の当該画素の色成分信号は、前
記代表値を求める際に用いた色成分信号以外の信号とす
ることを特徴とする請求項8に記載の画像処理装置。
10. A color component signal of a pixel of an input color image used for binarization by said binarization means, other than a color component signal used for obtaining said representative value. The image processing apparatus according to claim 8, wherein:
【請求項11】 前記代表値を求める色成分信号は、赤
と緑の色成分信号の最大値とすることを特徴とする請求
項8に記載の画像処理装置。
11. The image processing apparatus according to claim 8, wherein the color component signal for obtaining the representative value is a maximum value of red and green color component signals.
【請求項12】 前記2値化手段で2値化する際に用い
る入力されたカラー画像の当該画素の色成分信号は、青
の色成分信号とすることを特徴とする請求項8に記載の
画像処理装置。
12. The color component signal according to claim 8, wherein the color component signal of the pixel of the input color image used for binarization by the binarization means is a blue color component signal. Image processing device.
【請求項13】 前記周辺の色情報の算出は、当該画素
の処理以前にすでに処理済みの画素の情報を基に行なう
ことを特徴とする請求項8に記載の画像処理装置。
13. The image processing apparatus according to claim 8, wherein the calculation of the surrounding color information is performed based on information of a pixel that has been processed before the processing of the pixel.
【請求項14】 前記2値化処理手段による2値化処理
の結果から背景画素と非背景画素とを分離することを特
徴とする請求項8に記載の画像処理装置。
14. The image processing apparatus according to claim 8, wherein a background pixel and a non-background pixel are separated from a result of the binarization processing by the binarization processing unit.
【請求項15】 前記色情報算出手段は、背景画素と判
断された色成分情報を用いて周辺の色情報を算出するこ
とを特徴とする請求項8に記載の画像処理装置。
15. The image processing apparatus according to claim 8, wherein the color information calculation means calculates surrounding color information using color component information determined as a background pixel.
【請求項16】 前記色情報算出手段は、前記背景画素
が所定の閾値に対して多く連続した場合、背景画素、非
背景画素の区別なく、周辺の色成分信号を用いて周辺の
色情報を算出することを特徴とする請求項8に記載の画
像処理装置。
16. The color information calculating means, when the number of the background pixels is larger than a predetermined threshold value, determines the peripheral color information using the peripheral color component signal without distinction between the background pixel and the non-background pixel. The image processing apparatus according to claim 8, wherein the calculation is performed.
【請求項17】 さらに、前記代表値、入力されたカラ
ー画像の当該画素の色成分信号、周辺の色情報、からな
る3次元の2値化テーブルを備え、 前記2値化手段は前記2値化テーブルの3つの特徴量を
用いて2値化処理を行なうことを特徴とする請求項8に
記載の画像処理装置。
17. A three-dimensional binarization table comprising the representative value, a color component signal of the pixel of the input color image, and peripheral color information, wherein the binarization means comprises 9. The image processing apparatus according to claim 8, wherein the binarization process is performed using three feature amounts of the conversion table.
【請求項18】 入力されたカラー画像のビット数を少
なくした後に、前記代表値を算出することを特徴とする
請求項8に記載の画像処理装置。
18. The image processing apparatus according to claim 8, wherein the representative value is calculated after reducing the number of bits of the input color image.
【請求項19】 入力されたカラー画像のビット数を少
なくした後に、2値化テーブルを作成することを特徴と
する請求項17に記載の画像処理装置。
19. The image processing apparatus according to claim 17, wherein the binarization table is created after reducing the number of bits of the input color image.
【請求項20】 前記2値化手段の処理結果を用い、入
力されたカラー画像中の特定パターンを認識することを
特徴とする請求項8〜19のいずれか1つに記載の画像
処理装置。
20. The image processing apparatus according to claim 8, wherein a specific pattern in the input color image is recognized using a processing result of the binarizing unit.
【請求項21】 カラー画像を入力し、2値化する画像
処理方法において、 前記カラー画像を構成する各画素のカラー信号における
複数の色成分信号の最大値または最小値を当該画素の代
表値として算出する代表値算出工程と、 当該画素の周辺の色成分から当該画素の周辺の色情報を
求める色情報算出工程と、 前記代表値と前記カラー画像の当該画素の色成分信号、
および算出された前記当該画素の周辺の色情報を2値化
する2値化工程と、 を含むことを特徴とする画像処理方法。
21. An image processing method for inputting and binarizing a color image, wherein a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel constituting the color image is set as a representative value of the pixel. A representative value calculating step of calculating; a color information calculating step of obtaining color information around the pixel from color components around the pixel; a color component signal of the pixel of the representative value and the color image;
And a binarizing step of binarizing the calculated color information around the pixel.
【請求項22】 前記色成分信号は、赤、青、緑の明度
信号またはシアン、マゼンタ、イエローの明度信号であ
ることを特徴とする請求項21に記載の画像処理方法。
22. The image processing method according to claim 21, wherein the color component signals are red, blue, and green lightness signals or cyan, magenta, and yellow lightness signals.
【請求項23】 前記2値化工程で2値化する際に用い
る入力されたカラー画像の当該画素の色成分信号は、前
記代表値を求める際に用いた色成分信号以外の信号とす
ることを特徴とする請求項21に記載の画像処理方法。
23. A color component signal of a pixel of an input color image used for binarization in the binarization step, other than a color component signal used for obtaining the representative value. The image processing method according to claim 21, wherein:
【請求項24】 前記代表値を求める色成分信号は、赤
と緑の色成分信号の最大値とすることを特徴とする請求
項21に記載の画像処理方法。
24. The image processing method according to claim 21, wherein the color component signal for obtaining the representative value is a maximum value of red and green color component signals.
【請求項25】 前記2値化工程で2値化する際に用い
る入力されたカラー画像の当該画素の色成分信号は、青
の色成分信号とすることを特徴とする請求項21に記載
の画像処理方法。
25. The color image processing apparatus according to claim 21, wherein the color component signal of the pixel of the input color image used for binarization in the binarization step is a blue color component signal. Image processing method.
【請求項26】 前記周辺の色情報の算出は、当該画素
の処理以前にすでに処理済みの画素の情報を基に行なう
ことを特徴とする請求項21に記載の画像処理方法。
26. The image processing method according to claim 21, wherein the calculation of the peripheral color information is performed based on information of a pixel that has been processed before the processing of the pixel.
【請求項27】 前記2値化処理工程による2値化処理
の結果から背景画素と非背景画素とを分離することを特
徴とする請求項21に記載の画像処理方法。
27. The image processing method according to claim 21, wherein a background pixel and a non-background pixel are separated from a result of the binarization processing in the binarization processing step.
【請求項28】 前記色情報算出工程は、背景画素と判
断された色成分情報を用いて周辺の色情報を算出するこ
とを特徴とする請求項21に記載の画像処理方法。
28. The image processing method according to claim 21, wherein said color information calculating step calculates peripheral color information using color component information determined as a background pixel.
【請求項29】 前記色情報算出工程は、前記背景画素
が所定の閾値に対して多く連続した場合、背景画素、非
背景画素の区別なく、周辺の色成分信号を用いて周辺の
色情報を算出することを特徴とする請求項21に記載の
画像処理方法。
29. The color information calculating step, when the number of the background pixels is continuous with respect to a predetermined threshold value, determines the surrounding color information using the surrounding color component signals without distinction between the background pixels and the non-background pixels. The image processing method according to claim 21, wherein the calculation is performed.
【請求項30】 さらに、前記代表値、入力されたカラ
ー画像の当該画素の色成分信号、周辺の色情報、からな
る3次元の2値化テーブルを用意する工程を含み、 前記2値化工程は前記2値化テーブルの3つの特徴量を
用いて2値化処理を行なうことを特徴とする請求項21
に記載の画像処理方法。
30. A step of preparing a three-dimensional binarization table including the representative value, a color component signal of the pixel of the input color image, and peripheral color information. 22. Performs a binarization process using three feature amounts of the binarization table.
The image processing method according to 1.
【請求項31】 入力されたカラー画像のビット数を少
なくした後に、前記代表値を算出することを特徴とする
請求項21に記載の画像処理方法。
31. The image processing method according to claim 21, wherein the representative value is calculated after reducing the number of bits of the input color image.
【請求項32】 入力されたカラー画像のビット数を少
なくした後に、2値化テーブルを作成することを特徴と
する請求項30に記載の画像処理方法。
32. The image processing method according to claim 30, wherein the binarization table is created after reducing the number of bits of the input color image.
【請求項33】 前記2値化工程の処理結果を用い、入
力されたカラー画像中の特定パターンを認識することを
特徴とする請求項21〜32のいずれか1つに記載の画
像処理方法。
33. The image processing method according to claim 21, wherein a specific pattern in the input color image is recognized using a processing result of the binarization step.
【請求項34】 前記請求項21〜33のいずれか1つ
に記載の画像処理方法を、コンピュータに実行させるプ
ログラムを記録したことを特徴とするコンピュータ読み
取り可能な記録媒体。
34. A computer-readable recording medium on which a program for causing a computer to execute the image processing method according to claim 21 is recorded.
JP2001103847A 2000-04-03 2001-04-02 Character recognition device, character recognition method, image processing device, image processing method, and computer-readable recording medium Expired - Fee Related JP4571758B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001103847A JP4571758B2 (en) 2000-04-03 2001-04-02 Character recognition device, character recognition method, image processing device, image processing method, and computer-readable recording medium

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-101526 2000-04-03
JP2000101526 2000-04-03
JP2001103847A JP4571758B2 (en) 2000-04-03 2001-04-02 Character recognition device, character recognition method, image processing device, image processing method, and computer-readable recording medium

Publications (2)

Publication Number Publication Date
JP2001351068A true JP2001351068A (en) 2001-12-21
JP4571758B2 JP4571758B2 (en) 2010-10-27

Family

ID=26589385

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001103847A Expired - Fee Related JP4571758B2 (en) 2000-04-03 2001-04-02 Character recognition device, character recognition method, image processing device, image processing method, and computer-readable recording medium

Country Status (1)

Country Link
JP (1) JP4571758B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100367757C (en) * 2004-03-12 2008-02-06 松下电器产业株式会社 Image recognition method and image recognition apparatus
JP2019128602A (en) * 2018-01-19 2019-08-01 富士通フロンテック株式会社 Optical character recognition apparatus, and program
CN112699886A (en) * 2020-12-30 2021-04-23 广东德诚大数据科技有限公司 Character recognition method and device and electronic equipment
CN113205633A (en) * 2020-01-16 2021-08-03 深圳怡化电脑股份有限公司 Method and device for detecting red and blue fibers of bill, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07325045A (en) * 1994-05-30 1995-12-12 Nec Corp Inspection and recognition apparatus for black print on color background
JPH11288461A (en) * 1998-04-03 1999-10-19 Ricoh Co Ltd Method for recognizing image and recording medium
JPH11338976A (en) * 1998-05-27 1999-12-10 Fujitsu Ltd Document image recognition device, method therefor, and recording medium
JP2000155804A (en) * 1998-11-19 2000-06-06 Canon Inc Information processor and its method, and computer- readable memory

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07325045A (en) * 1994-05-30 1995-12-12 Nec Corp Inspection and recognition apparatus for black print on color background
JPH11288461A (en) * 1998-04-03 1999-10-19 Ricoh Co Ltd Method for recognizing image and recording medium
JPH11338976A (en) * 1998-05-27 1999-12-10 Fujitsu Ltd Document image recognition device, method therefor, and recording medium
JP2000155804A (en) * 1998-11-19 2000-06-06 Canon Inc Information processor and its method, and computer- readable memory

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100367757C (en) * 2004-03-12 2008-02-06 松下电器产业株式会社 Image recognition method and image recognition apparatus
JP2019128602A (en) * 2018-01-19 2019-08-01 富士通フロンテック株式会社 Optical character recognition apparatus, and program
CN113205633A (en) * 2020-01-16 2021-08-03 深圳怡化电脑股份有限公司 Method and device for detecting red and blue fibers of bill, electronic equipment and storage medium
CN112699886A (en) * 2020-12-30 2021-04-23 广东德诚大数据科技有限公司 Character recognition method and device and electronic equipment

Also Published As

Publication number Publication date
JP4571758B2 (en) 2010-10-27

Similar Documents

Publication Publication Date Title
US8611658B2 (en) Image processing apparatus and image processing method
JP3972751B2 (en) Image processing device
US11295407B2 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium storing program
JP2008005317A (en) Image processor and image processing method, and computer program and recording medium
JP2008099149A (en) Image processor, image processing method and image processing program
JPH11238130A (en) Removal of non-text information from color image
US8810877B2 (en) Image processing apparatus, image processing method, and storage medium for eliminating blurring of scanned image
JP4920814B2 (en) Image processing method, apparatus, and recording medium
JP2010074342A (en) Image processing apparatus, image forming apparatus, and program
US6661921B2 (en) Image process apparatus, image process method and storage medium
JP4571758B2 (en) Character recognition device, character recognition method, image processing device, image processing method, and computer-readable recording medium
JP4710672B2 (en) Character color discrimination device, character color discrimination method, and computer program
JP2001222717A (en) Document image recognition method and system, and computer readable recording medium
JP3838981B2 (en) Image processing apparatus, image processing method, and image processing program
US11831834B2 (en) Information processing apparatus, method, and product performing multiplexing processing by different methods with respect to printing and non-printing areas
JPH11136505A (en) Picture processor and picture processing method
JP2871570B2 (en) Character recognition apparatus and method
JP2001118032A (en) Device and method for character recognition, and computer-readable recording medium with recorded program making computer implement character recognizing method
JP7185451B2 (en) Image processing device, image processing method, and program
JP4973603B2 (en) Image processing apparatus and image processing program
JPH11127353A (en) Image processor and image processing method
JP6759914B2 (en) Image processing equipment, image forming equipment and programs
JP2004242075A (en) Image processing apparatus and method therefor
JP2000184219A (en) Color printing system and color printer
JP4650958B2 (en) Image processing apparatus, method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080325

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100420

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100621

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20100810

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100813

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130820

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees