JP2001118031A - Optical character reader - Google Patents

Optical character reader

Info

Publication number
JP2001118031A
JP2001118031A JP30105799A JP30105799A JP2001118031A JP 2001118031 A JP2001118031 A JP 2001118031A JP 30105799 A JP30105799 A JP 30105799A JP 30105799 A JP30105799 A JP 30105799A JP 2001118031 A JP2001118031 A JP 2001118031A
Authority
JP
Japan
Prior art keywords
pixel
color
character
histogram
image
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.)
Withdrawn
Application number
JP30105799A
Other languages
Japanese (ja)
Inventor
Masashi Mataga
雅司 又賀
Takayuki Miyoshi
尊幸 三好
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP30105799A priority Critical patent/JP2001118031A/en
Publication of JP2001118031A publication Critical patent/JP2001118031A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Character Input (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately detect whether or not a read object with a pattern has a character. SOLUTION: A color process part 20 discriminates between chromatic color pixels and achromatic color pixels of an image of a read object 5 obtained by a color image read part 10. A histogram circuit 40 generates histograms of the luminance of the chromatic and achromatic color pixels by every specific number of specific areas of the read object 5, and a histogram analysis part 50 finds binarization slice values for the chromatic color pixels and binarization slice values for the achromatic color pixels for every specified area. A property decision circuit 60 and a filter circuit 70 binarize the image by using the binarization slice values and a print line detecting circuit 90 finds whether or not three is a character for every specified area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、カラーで地紋が印刷さ
れた読取媒体のイメージを光学的に取得し、該イメージ
から地紋をドロップアウトして文字の有無検出或いは認
識を行う光学式文字読取装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an optical character reader for optically acquiring an image of a reading medium on which a copy-forgery-inhibited pattern is printed, and dropping out the copy-forgery-inhibited pattern from the image to detect or recognize the presence or absence of a character. It concerns the device.

【0002】[0002]

【従来の技術】例えば、通帳等では種々のカラーを用い
て地紋が印刷されている。これらの地紋は文字の読取り
には不要のため、人には見えるが文字読取装置等では読
取れないことが望ましい。そのため、通帳等の読取りを
行う従来の光学式文字読取装置では、カラーが赤外光を
反射する性質を利用し、通帳に赤外線を照射し、反射赤
外光を赤外光イメージセンサで取得することにより、地
紋をドロップアウトしている。このように地紋をドロッ
プアウトしたイメージから文字を切出し、文字の有無検
出や文字認識を行っていた。
2. Description of the Related Art For example, in a passbook or the like, a copy-forgery-inhibited pattern is printed using various colors. Since these copy-forgery-inhibited patterns are unnecessary for reading characters, it is desirable that they can be seen by humans but cannot be read by a character reading device or the like. For this reason, in a conventional optical character reading device that reads a passbook or the like, a color is used to reflect infrared light, the passbook is irradiated with infrared light, and the reflected infrared light is acquired by an infrared light image sensor. By doing so, the tint block is dropped out. Characters are cut out from the image in which the copy-forgery-inhibited pattern is dropped out, and the presence or absence of characters and character recognition are performed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
赤外線を利用した光学式文字読取装置では、次のような
課題があった。ボールペンで記入された文字や染料系の
インクで印刷された文字は、赤外光を反射するので、地
紋をドロップアウトするときに文字も同時にドロップア
ウトされてしまう。そのため、地紋を有する読取対象に
はボールぺンや染料系のインクが使用できないという課
題があった。このような課題を克服するために、本願出
願人等は、先に出願した特願平11−173612号明
細書において、2種類の光学式文字読取装置を開示して
いる。以下、これらの光学式文字読取装置を先の第1の
光学式文字読取装置(1)及び先の第2の光学式文字読
取装置(2)とし、以下に概要を説明する。
However, the conventional optical character reader using infrared rays has the following problems. Characters written with a ballpoint pen and characters printed with dye-based ink reflect infrared light, so that when characters are dropped out of the tint block, the characters are also dropped out at the same time. For this reason, there is a problem that a ball-in or a dye-based ink cannot be used for a reading object having a copy-forgery-inhibited pattern. In order to overcome such a problem, the present applicant discloses two types of optical character reading devices in Japanese Patent Application No. 11-173612 filed earlier. Hereinafter, these optical character reading devices are referred to as the first optical character reading device (1) and the second optical character reading device (2), respectively, and the outline will be described below.

【0004】(1) 先の第1の光学式文字読取装置の
概要 第1の光学式文字読取装置は、読取対象のメージを光学
的に取得し、該読取対象のイメージを走査して該読取対
象の各画素を表す赤(以下、Rという)、緑(以下、G
という)及び青(以下、Bという)の原色成分信号を該
画素単位に出力するカラーイメージ読取手段と、R、G
及びBの原色成分信号に基づき画素が有彩色画素か無彩
色画素かを識別して該識別結果のカラー識別信号を出力
すると共に、該R、G及びBの原色成分信号のうちの最
も輝度の高い信号を多値の輝度信号として出力するカラ
ー処理手段と、次のようなヒストグラム取得手段と、ヒ
ストグラム解析手段と、2値化手段とを設けている。
(1) Overview of the First Optical Character Reading Device The first optical character reading device optically acquires an image to be read, scans the image of the reading object, and reads the image. Red (hereinafter, referred to as R) and green (hereinafter, referred to as G) representing each target pixel.
Color image reading means for outputting primary color component signals of blue and blue (hereinafter referred to as B) for each pixel;
, And outputs a color identification signal as a result of the identification, based on the primary color component signals of B and B, and outputs the color identification signal of the R, G, and B primary color component signals. A color processing unit for outputting a high signal as a multi-valued luminance signal, a histogram acquisition unit as described below, a histogram analysis unit, and a binarization unit are provided.

【0005】ヒストグラム取得手段は、カラー識別信号
と輝度信号とを入力し、有彩色画素及び無彩色画素のそ
れぞれについて輝度信号の各階調レベルに入る画素数を
数えて有彩色ヒストグラム及び無彩色ヒストグラムを求
める手段である。ヒストグラム解析手段は、有彩色ヒス
トグラム及び無彩色ヒストグラムの凹凸を解析し、有彩
色画素と判定された画素に関して地紋と文字とを区別す
るための第1の2値化スライス値と、無彩色画素と判定
された画素に関して地紋と文字とを区別するための第2
の2値化スライス値とを求める手段である。2値化手段
は、カラー識別信号及び輝度信号を入力し、カラー識別
信号が有彩色画素を示す画素に対しては第1の2値化ス
ライス値で白または黒に2値化し、カラー識別信号が無
彩色画素を示す画素に対しては第2の2値化スライス値
で白または黒に2値化するものである。
[0005] The histogram acquisition means receives the color identification signal and the luminance signal, counts the number of pixels that fall into each gradation level of the luminance signal for each of the chromatic color pixel and the achromatic color pixel, and generates a chromatic color histogram and an achromatic color histogram. It is a means to ask. The histogram analysis unit analyzes the unevenness of the chromatic color histogram and the achromatic color histogram, and determines a first binarized slice value for distinguishing a tint block and a character with respect to a pixel determined as a chromatic color pixel; The second for distinguishing the ground tint and the character with respect to the determined pixel.
This is a means for obtaining a binarized slice value. The binarizing means receives a color identification signal and a luminance signal, and binarizes a pixel whose color identification signal indicates a chromatic pixel into white or black using a first binarization slice value. Are binarized to white or black with the second binarized slice value for pixels indicating achromatic pixels.

【0006】(2) 先の第2の光学式文字読取装置の
概要 先の第2の光学式文字読取装置は、前記先の第1の光学
式文字読取装置の2値化手段の代わりに、次のような画
素属性判定手段及びフィルタ手段を設けている。画素属
性判定手段は、カラー識別信号、輝度信号、第1の2値
化スライス値及び前記第2の2値化スライス値を入力
し、注目画素が白か黒か他の色の画素に属するかを順次
判定し、この判定結果を画素属性として出力する手段で
ある。フィルタ手段は、画素属性判定手段から画素属性
を入力し、注目画素の画素属性或いは注目画素と周囲の
画素の画素属性との関連から、注目画素が文字の一部を
構成する画素か他の部分を構成する画素かを判定し、文
字の一部を構成する画素を黒とし、他の部分を構成する
画素を白とする2値化を行うものである。以上のような
構成の先の第1及び第2の光学式文字読取装置では、読
取対象の全面に一様の地紋がある場合には、赤外線を用
いずに地紋をドロップアウトできる。ところが、通帳等
では必ずしも、紋様が一様でない場合もある。
(2) Outline of the Second Optical Character Reading Device The second optical character reading device is different from the first optical character reading device in that the binarizing means of the first optical character reading device is replaced by The following pixel attribute determination means and filter means are provided. The pixel attribute determining unit receives the color identification signal, the luminance signal, the first binarized slice value, and the second binarized slice value, and determines whether the target pixel belongs to a pixel of white, black, or another color. Are sequentially determined, and this determination result is output as a pixel attribute. The filter means receives the pixel attribute from the pixel attribute determination means and determines whether the pixel of interest is a pixel forming part of a character or another part based on the pixel attribute of the pixel of interest or the relationship between the pixel of interest and the pixel attributes of surrounding pixels. Are determined, and binarization is performed in which pixels forming part of a character are set to black and pixels forming other parts are set to white. In the first and second optical character reading apparatuses having the above-described configuration, when there is a uniform copy-forgery-inhibited pattern on the entire surface of the reading target, the copy-forgery-inhibited pattern can be dropped out without using infrared rays. However, a passbook or the like may not always have a uniform pattern.

【0007】図2は、通帳フォーマットの1例を示す図
である。通常の通帳には、日付欄1aや残高欄1b等が
行をなす印字領域1と、複数の印字領域1を挟む形で設
定され、頁マークが印刷された頁マーク領域2とがあ
る。頁マーク領域2と印字領域1とで地紋の色や濃度が
異なる場合や、印字領域1でも各行ごとに地紋の色や濃
度が異なる場合、或いは、罫線の色が地紋の色と異なる
ことがある。このような場合には、正確に頁マーク領域
2や印字領域1の行の検出ができなかったり、文字認識
の精度が劣化するという課題があった。
FIG. 2 is a diagram showing an example of a passbook format. An ordinary passbook has a print area 1 in which a date field 1a, a balance field 1b, and the like form a line, and a page mark area 2 in which a plurality of print areas 1 are set and page marks are printed. The color and density of the copy-forgery-inhibited pattern may be different between the page mark area 2 and the print area 1, the color and density of the copy-forgery-inhibited pattern may be different for each line in the print area 1, or the color of the ruled line may be different from the color of the copy-forgery-inhibited pattern. . In such a case, there has been a problem that the line of the page mark area 2 or the print area 1 cannot be accurately detected, or the accuracy of character recognition is deteriorated.

【0008】[0008]

【課題を解決するための手段】前記課題を解決するため
に、本発明のうちの第1の発明は、表面に地紋がカラー
で印刷されると共に文字が該地紋に重ねて無彩色で記入
または印刷された読取対象から光学的にイメージを取得
し、該文字の有無検出或いは認識を行う光学式文字読取
装置において、次のような読取手段、領域設定手段、解
析手段及び後処理手段を設けている。前記読取手段は、
前記読取対象からイメージを光学的に取得し、該イメー
ジを走査して該読取対象の各画素を表す色成分信号を該
画素単位に出力する手段である。領域設定手段は、前記
読取対象における任意数の所定領域に対応する範囲を前
記イメージに対して設定するものである。解析手段は、
前記色成分信号に基づき前記画素が有彩色画素か無彩色
画素かを判定し、前記設定された範囲ごとに、それぞれ
の出現頻度を解析することにより、該範囲ごとに、該有
彩色画素と判定された画素に関して前記地紋と前記文字
とを区別するための第1の2値化スライス値と、該無彩
色画素と判定された画素に関して該地紋と該文字とを区
別するための第2の2値化スライス値とを求めるもので
ある。後処理手段は、前記第1及び第2の2値化スライ
ス値を利用して前記各画素を2値化し、該2値化結果で
得られるイメージに基づき前記各所定領域中の前記文字
の有無検出或いは認識を行う手段である。
According to a first aspect of the present invention, a tint block is printed in color on a surface and characters are written in achromatic color over the tint block. An optical character reading device that optically acquires an image from a printed reading target and detects or recognizes the presence or absence of the character includes a reading unit, an area setting unit, an analyzing unit, and a post-processing unit as described below. I have. The reading means,
A means for optically acquiring an image from the reading target, scanning the image, and outputting a color component signal representing each pixel of the reading target for each pixel. The area setting means sets a range corresponding to an arbitrary number of predetermined areas in the reading target for the image. The analysis means is
It is determined whether the pixel is a chromatic pixel or an achromatic pixel based on the color component signal, and for each of the set ranges, by analyzing the appearance frequency of each pixel, each of the ranges is determined to be the chromatic pixel. A first binarized slice value for distinguishing the tint block and the character with respect to the determined pixel, and a second binary slice value for distinguishing the tint block and the character with respect to the pixel determined as the achromatic pixel. And a value slice value. The post-processing means binarizes each of the pixels using the first and second binarized slice values, and determines whether or not the character exists in each of the predetermined regions based on an image obtained as a result of the binarization. It is means for detecting or recognizing.

【0009】第2の発明は、光学式文字読取装置におい
て、次のようなカラーイメージ読取手段、カラー処理手
段、多値イメージメモリ、領域設定手段、ヒストグラム
取得手段、ヒストグラム解析手段、画素属性判定手段、
フィルタ手段、2値化イメージメモリ及び文字処理手段
を設けている。前記カラーイメージ読取手段は、読取対
象のイメージを光学的に取得し、該読取対象のイメージ
に対して主走査及び副走査を行って該読取対象の各画素
を表す赤、緑及び青の原色成分信号を該画素単位に出力
する手段である。カラー処理手段は、前記赤、緑及び青
の原色成分信号に基づき前記画素が有彩色画素か無彩色
画素かを識別して該識別結果を示すカラー識別信号を出
力すると共に、該R、G及びBの原色成分信号のうちの
最も輝度の高い信号を多値の輝度信号として出力する手
段である。多値イメージメモリは、前記カラー識別信号
と前記輝度信号とを格納するものである。領域設定手段
は、前記読取対象における任意数の所定領域に対応する
範囲を前記イメージの前記副走査方向に設定する手段で
ある。ヒストグラム取得手段は、前記カラー識別信号と
前記輝度信号とを入力し、前記設定された範囲ごとに、
前記有彩色画素及び無彩色画素について前記輝度信号の
各階調レベルに入る画素数を数えて有彩色ヒストグラム
及び無彩色ヒストグラムをそれぞれ求める手段である。
According to a second aspect of the present invention, in the optical character reading apparatus, the following color image reading means, color processing means, multivalued image memory, area setting means, histogram acquisition means, histogram analysis means, pixel attribute determination means are provided. ,
A filter means, a binarized image memory and a character processing means are provided. The color image reading means optically acquires an image to be read, performs main scanning and sub-scanning on the image to be read, and outputs red, green, and blue primary color components representing each pixel of the reading object. This is a means for outputting a signal for each pixel. The color processing means identifies whether the pixel is a chromatic pixel or an achromatic pixel based on the red, green, and blue primary color component signals and outputs a color identification signal indicating the identification result. This is a means for outputting the signal with the highest luminance among the B primary color component signals as a multi-valued luminance signal. The multi-valued image memory stores the color identification signal and the luminance signal. The area setting means is means for setting a range corresponding to an arbitrary number of predetermined areas in the reading target in the sub-scanning direction of the image. The histogram acquisition unit inputs the color identification signal and the luminance signal, and for each of the set ranges,
A means for obtaining a chromatic color histogram and an achromatic color histogram by counting the number of pixels that fall into each gradation level of the luminance signal for the chromatic color pixel and the achromatic color pixel.

【0010】ヒストグラム解析手段は、前記各有彩色ヒ
ストグラム及び各無彩色ヒストグラムの凹凸を解析し、
前記有彩色画素と判定された画素に関して前記地紋と前
記文字とを区別するための第1の2値化スライス値と、
前記無彩色画素と判定された画素に関して該地紋と該文
字とを区別するための第2の2値化スライス値とを、前
記設定された範囲ごとに求める手段である。画素属性判
定手段は、前記設定された範囲ごとの前記カラー識別信
号、前記輝度信号、前記第1の2値化スライス値及び前
記第2の2値化スライス値を入力し、注目画素が白か黒
か他の色の画素に属するかを順次判定し、該判定結果を
画素属性として出力する手段である。フィルタ手段は、
前記設定された範囲ごとに、前記画素属性判定手段から
前記画素属性を入力し、注目画素の該画素属性或いは該
注目画素と周囲の画素の該画素属性との関連から、該注
目画素が前記文字の一部を構成する画素か他の部分を構
成する画素かを判定し、該文字の一部を構成する画素を
黒とし、該他の部分を構成する画素を白とする2値化を
該設定された範囲ごとに行う手段である。2値化イメー
ジメモリは、前記フィルタ手段での2値化結果を2値化
イメージとして蓄積するものである。文字処理手段は、
前記2値化イメージメモリに蓄積された2値化イメージ
に基づき前記読取対象の前記各所定領域の文字の有無の
検出或いは認識を行う手段である。
[0010] The histogram analysis means analyzes the irregularities of the chromatic histogram and the achromatic histogram,
A first binarized slice value for distinguishing the tint block and the character with respect to the pixel determined to be the chromatic pixel;
Means for obtaining a second binarized slice value for discriminating the copy-forgery-inhibited pattern and the character with respect to the pixel determined as the achromatic pixel for each of the set ranges. The pixel attribute determining unit inputs the color identification signal, the luminance signal, the first binarized slice value, and the second binarized slice value for each of the set ranges, and determines whether the pixel of interest is white. This is a means for sequentially determining whether a pixel belongs to a pixel of black or another color, and outputting the determination result as a pixel attribute. Filter means
For each of the set ranges, the pixel attribute is input from the pixel attribute determination means, and the pixel of interest is determined based on the pixel attribute of the pixel of interest or the relationship between the pixel of interest and the pixel attributes of surrounding pixels. It is determined whether pixels constituting part of the character or pixels constituting another part are binarized, and pixels constituting part of the character are set to black and pixels forming the other part are set to white. This is a means for performing for each set range. The binarized image memory stores the binarized result of the filter means as a binarized image. Character processing means
A means for detecting or recognizing the presence / absence of a character in each of the predetermined regions to be read based on the binarized image stored in the binarized image memory.

【0011】第3の発明は、光学式文字読取装置におい
て、第2の発明と同様のカラーイメージ読取手段、カラ
ー処理手段、多値イメージメモリと、ヒストグラム取得
手段、ヒストグラム解析手段、画素属性判定手段、フィ
ルタ手段、2値化イメージメモリ及び文字処理手段と、
前記読取対象における任意数の所定領域に対応する範囲
を前記イメージの前記主走査方向に設定する領域設定手
段とを設けている。第4の発明は、光学式文字読取装置
において、第2の発明と同様のカラーイメージ読取手
段、カラー処理手段、多値イメージメモリと、ヒストグ
ラム取得手段、ヒストグラム解析手段、画素属性判定手
段、フィルタ手段、2値化イメージメモリ及び文字処理
手段と、前記読取対象における任意数の所定領域に対応
する範囲を前記イメージの前記主走査方向及び副走査方
向に設定する領域設定手段とを設けている。
According to a third aspect of the present invention, there is provided an optical character reading apparatus, wherein the same color image reading means, color processing means, multi-valued image memory, histogram acquisition means, histogram analysis means, pixel attribute determination means as those in the second invention are provided. Filter means, binarized image memory and character processing means,
And an area setting means for setting a range corresponding to an arbitrary number of predetermined areas in the reading target in the main scanning direction of the image. According to a fourth aspect of the present invention, in the optical character reading apparatus, a color image reading unit, a color processing unit, a multi-valued image memory, a histogram acquisition unit, a histogram analysis unit, a pixel attribute determination unit, and a filter unit are provided. A binary image memory and character processing means; and area setting means for setting a range corresponding to an arbitrary number of predetermined areas in the reading object in the main scanning direction and the sub-scanning direction of the image.

【0012】第5の発明は、光学式文字読取装置におい
て、第2、3または4の発明のカラーイメージ読取手
段、カラー処理手段、及び多値イメージメモリ、領域設
定手段、ヒストグラム取得手段及びヒストグラム解析手
段を設けると共に、前記多値イメージメモリから読出し
た前記設定された範囲の前記カラー識別信号及び前記輝
度信号を入力し、該カラー識別信号が前記有彩色画素を
示す画素に対しては前記第1の2値化スライス値で該輝
度信号を白または黒に2値化し、前記カラー識別信号が
前記無彩色画素を示す画素に対しては前記第2の2値化
スライス値で該輝度信号を白または黒に2値化する2値
化手段と、前記2値化手段での2値化結果を2値化イメ
ージとして蓄積する2値化イメージメモリとを設けてい
る。
According to a fifth aspect of the present invention, in the optical character reading apparatus, the color image reading means, the color processing means, the multi-valued image memory, the area setting means, the histogram obtaining means and the histogram analysis of the second, third or fourth invention are provided. Means for inputting the color identification signal and the luminance signal in the set range read from the multi-valued image memory, wherein the color identification signal represents the first chromatic pixel. The luminance signal is binarized to white or black with the binarized slice value of, and the luminance signal is whitened with the second binarized slice value for the pixel whose color identification signal indicates the achromatic pixel. Alternatively, there are provided a binarizing unit for binarizing to black, and a binarized image memory for storing the binarized result of the binarizing unit as a binarized image.

【0013】第1〜第5の発明によれば、以上のように
光学式文字読取装置を構成したので、領域設定手段によ
り、任意数の所定領域に対応する範囲が読取対象のイメ
ージに対して設定され、この設定された範囲ごとに、解
析手段或いはヒストグラム解析手段によって、第1及び
第2の2値化スライス値が求められる。第1及び第2の
2値化スライス値を用いた各画素の2値化が行われ、画
素属性判定手段及びフィルタ手段または2値化手段によ
って各範囲ごとの2値化が行われ、この2値化結果で得
られるイメージに基づき、読取対象の各所定領域中の文
字の有無検出或いは認識が、後処理手段または文字処理
手段によって行われる。従って、前記課題を解決できる
のである。
According to the first to fifth aspects of the present invention, the optical character reading apparatus is configured as described above, so that the area setting means sets an area corresponding to an arbitrary number of predetermined areas with respect to the image to be read. The first and second binarized slice values are determined by the analysis unit or the histogram analysis unit for each set range. Binarization of each pixel is performed using the first and second binarized slice values, and binarization for each range is performed by the pixel attribute determination unit and the filter unit or the binarization unit. Based on the image obtained as a result of the binarization, the presence or absence of a character in each predetermined region to be read is detected or recognized by a post-processing unit or a character processing unit. Therefore, the above problem can be solved.

【0014】[0014]

【発明の実施の形態】第1の実施形態 図1は、本発明の第1の実施形態を示す光学式文字読取
装置の構成図である。この光学式文字読取装置は、地紋
が印刷された例えば通帳を該読取対象5とし、該読取対
象5の文字が記載または印刷された行を検出する装置で
あり、全体の動作を制御する図示しない制御部と、該読
取対象5のイメージを光学的に取得するカラーイメージ
読取手段であるカラーイメージ読取部10と、該カラー
イメージ読取部10の出力側に接続されたカラー処理手
段であるカラー処理部20とを備えている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First Embodiment FIG. 1 is a block diagram of an optical character reading apparatus showing a first embodiment of the present invention. This optical character reading device is a device that detects, for example, a passbook on which a copy-forgery-inhibited pattern is printed as the reading target 5 and a line on which the characters of the reading target 5 are written or printed, and controls the entire operation (not shown). A control unit, a color image reading unit 10 that is a color image reading unit that optically acquires an image of the reading target 5, and a color processing unit that is a color processing unit connected to an output side of the color image reading unit 10. 20.

【0015】カラー処理部20の出力側には、多値イメ
ージメモリ30と、領域設定手段及びヒストグラム取得
手段とを内蔵するヒストグラム回路40とが接続されて
いる。ヒストグラム回路40の出力側に、ヒストグラム
解析手段であるヒストグラム解析部50が接続され、該
ヒストグラム解析部50の出力側と多値イメージメモリ
30の出力側とが、画素属性判定手段である属性判定回
路60の入力側に接続されている。属性判定回路60の
出力側に、フィルタ回路70が接続されている。フィル
タ回路70の出力側には、2値化イメージメモリ80が
接続され、該2値化イメージメモリ80の出力側には、
後処理手段であると共に文字処理手段である印字行検出
回路90が接続されている。カラー処理部20からヒス
トグラム解析部50までは、カラーイメージ読取部10
から与えられた信号に基づき、画素が有彩色画素か無彩
色画素かを判定し、それぞれの出現頻度を解析すること
により、有彩色画素に関する第1の2値化スライス値と
無彩色画素に関する第2の2値化スライス値とを求める
解析手段を構成し、属性判定回路60、フィルタ回路7
0、2値化イメージメモリ80及び印字行検出回路90
が、イメージの2値化を行って文字の有無検出を行う後
処理手段を構成する。
The output side of the color processing section 20 is connected to a multi-valued image memory 30 and a histogram circuit 40 having a built-in area setting means and histogram acquisition means. The output side of the histogram circuit 40 is connected to a histogram analysis unit 50 serving as a histogram analysis unit, and the output side of the histogram analysis unit 50 and the output side of the multi-valued image memory 30 are connected to an attribute determination circuit serving as a pixel attribute determination unit. 60 are connected to the input side. A filter circuit 70 is connected to the output side of the attribute determination circuit 60. An output side of the filter circuit 70 is connected to a binarized image memory 80, and an output side of the binarized image memory 80 is
A print line detection circuit 90 which is both a post-processing unit and a character processing unit is connected. From the color processing unit 20 to the histogram analysis unit 50, the color image reading unit 10
Is determined whether the pixel is a chromatic color pixel or an achromatic color pixel based on the signal given from the first pixel, and by analyzing the appearance frequency of each pixel, the first binarized slice value for the chromatic color pixel and the An attribute determination circuit 60, a filter circuit 7
0, binary image memory 80 and print line detection circuit 90
Constitutes a post-processing means for performing binarization of an image to detect the presence or absence of a character.

【0016】図3は、図1中のカラーイメージ読取部1
0の概要を示す構成図である。カラーイメージ読取部1
0は、読取対象5を例えば白色光で照射する光源11
と、読取対象5からの反射光を収束するレンズ等の光学
系12と、例えばCCD(Charge Coupled Device )等
で構成され、該光学系12を介して得られた反射光を
R、G、Bの3原色に分けてアナログ信号に変換するカ
ラー用のライン型イメージセンサ13と、該イメージセ
ンサ13の出力側に接続されたアナログ/デジタル(以
下、A/Dと記す)変換部14とを有している。A/D
変換部14は、イメージセンサ13から与えられた3種
類の電気信号をそれぞれ増幅する3つの増幅器14a
と、これらの増幅器14aの出力信号を、例えは8ビッ
ト256階調のデジタル信号にそれぞれ変換して画素ご
との3原色成分信号を出力する3つのA/Dコンバータ
14bとで構成されている。以後、各A/Dコンバータ
14bの出力するデジタル信号の3原色成分信号をR、
G、B信号という。
FIG. 3 shows a color image reading unit 1 shown in FIG.
FIG. 2 is a configuration diagram illustrating an outline of a zero. Color image reading unit 1
0 is a light source 11 that irradiates the reading target 5 with, for example, white light.
And an optical system 12 such as a lens that converges the reflected light from the reading target 5 and, for example, a CCD (Charge Coupled Device). The reflected light obtained through the optical system 12 is converted into R, G, and B light. A line type image sensor 13 for converting color into an analog signal after being divided into three primary colors, and an analog / digital (hereinafter, referred to as A / D) conversion unit 14 connected to an output side of the image sensor 13. are doing. A / D
The conversion unit 14 includes three amplifiers 14a for amplifying three types of electric signals provided from the image sensor 13, respectively.
And three A / D converters 14b which convert the output signals of these amplifiers 14a to digital signals of, for example, 8-bit 256 gradations and output three primary color component signals for each pixel. Thereafter, the three primary color component signals of the digital signal output from each A / D converter 14b are represented by R,
G and B signals.

【0017】図4は、図1中のカラー処理部20を示す
構成図である。カラー処理部20は、カラー識別部21
及び輝度信号生成回路22で構成されている。カラー識
別部21は、R、G、B信号を入力し、注目画素が有彩
色画素か無彩色画素なのかを識別するカラールックアッ
プテーブル21aを有し、識別結果としてカラー識別信
号S21をヒストグラム回路40及び多値イメージメモ
リ30に出力するようになっている。輝度信号生成回路
22はR、G、B信号を入力し、該R、G、B信号か
ら、注目画素の輝度を代表する8ビットの輝度信号S2
2を、ヒストグラム回路40及び多値イメージメモリ3
0へ出力する回路である。多値イメージメモリ30は、
カラー識別部21から与えられたカラー識別信号S21
及び輝度信号S22を格納するものである。
FIG. 4 is a block diagram showing the color processing unit 20 in FIG. The color processing unit 20 includes a color identification unit 21
And a luminance signal generation circuit 22. The color identification unit 21 receives the R, G, and B signals, has a color look-up table 21a that identifies whether the pixel of interest is a chromatic pixel or an achromatic pixel, and outputs a color identification signal S21 as a result of identification to a histogram circuit. 40 and the multi-valued image memory 30. The luminance signal generation circuit 22 receives the R, G, and B signals, and outputs an 8-bit luminance signal S2 representing the luminance of the target pixel from the R, G, and B signals.
2 is a histogram circuit 40 and a multi-valued image memory 3
It is a circuit that outputs to 0. The multi-valued image memory 30
Color identification signal S21 provided from color identification section 21
And the luminance signal S22.

【0018】図5は、図1中のヒストグラム回路40を
示す構成図であり、図6は、図5中のヒストグラムメモ
リ43の内容を示す図である。このヒストグラム回路4
0は、領域設定手段である副走査方向カウンタレジスタ
41と、アドレス及び領域切替回路42と、ヒストグラ
ム取得手段であるヒストグラムメモリ43と、レジスタ
44、加算器45及びデータ切替回路46とを、備え、
走査カラー処理部20からカラー識別信号S21及び輝
度信号S22を順次入力し、有彩色画素と識別された画
素及び無彩色画素と識別された画素について、それぞれ
輝度信号S22の各階調に入る画素数を数えて頻度を求
める機能を有している。
FIG. 5 is a configuration diagram showing the histogram circuit 40 in FIG. 1, and FIG. 6 is a diagram showing the contents of the histogram memory 43 in FIG. This histogram circuit 4
0 includes a sub-scanning direction counter register 41 as an area setting unit, an address and area switching circuit 42, a histogram memory 43 as a histogram acquisition unit, a register 44, an adder 45, and a data switching circuit 46;
The color identification signal S21 and the luminance signal S22 are sequentially input from the scanning color processing unit 20, and the number of pixels included in each gradation of the luminance signal S22 is determined for each of the pixels identified as chromatic pixels and the pixels identified as achromatic pixels. It has a function to count and calculate the frequency.

【0019】副走査方向カウンタレジスタ41は、読取
対象5の所定位置にある図2の頁マーク領域2或いは印
字領域1の各行のヒストグラムを作成するために、該頁
マーク領域2或いは印字領域の行の数分だけ任意数用意
される。各副走査方向カウンタレジスタ41は、頁マー
ク領域2或いは印字領域1の各範囲を該読取対象5のイ
メージに対して設定するために、副走査方向(該読取対
象5の搬送方向)のカウント値が予めそれぞれ設定され
るものである。アドレス及び領域切替回路42は、図示
しない制御部から与えられたアドレス切替信号Scに基
づき、該制御部から与えられたヒストグラムメモリ43
をクリアするためのクリア用アドレスAcと、カラー識
別信号S21及び輝度信号S22とを、切替えてヒスト
グラムメモリ43へ出力する機能を持ち、しかも、副走
査方向カウンタレジスタ41から与えられた信号S41
に基づき、該カラー識別信号S21及び輝度信号S22
のヒストグラムメモリ43への書込み領域を切替えるよ
うになっている。
The sub-scanning direction counter register 41 is used to create a histogram of each line of the page mark area 2 or the print area 1 shown in FIG. Arbitrary numbers are prepared for the number of. Each sub-scanning direction counter register 41 has a count value in the sub-scanning direction (the transport direction of the reading target 5) in order to set each range of the page mark area 2 or the printing area 1 with respect to the image of the reading target 5. Are respectively set in advance. The address and area switching circuit 42, based on an address switching signal Sc provided from a control unit (not shown), stores a histogram memory 43 provided from the control unit.
Has the function of switching between the clear address Ac for clearing the color, the color identification signal S21 and the luminance signal S22 and outputting the same to the histogram memory 43, and the signal S41 given from the sub-scanning direction counter register 41.
On the basis of the color identification signal S21 and the luminance signal S22.
The writing area to the histogram memory 43 is switched.

【0020】ヒストグラムメモリ43は、各画素の輝度
信号S22の各階調をアドレスに割当て、該各階調にお
ける頻度(画素数)を格納するようになっている。つま
り、図6のように無彩色画素における256段階の階調
0〜255を無彩色のアドレス0〜255とし、有彩色
画素における256段階の階調0〜255を有彩色のア
ドレス256〜512としている。頁マーク領域2或い
は印字領域1の領域が複数ある場合には、該各領域ごと
に、図6と同様に頻度をそれぞれ格納するように、格納
領域が複数設定されている。ヒストグラムメモリ43の
頻度の読出しと書込みは、制御信号R/Wで行われる。
ヒストグラムメモリ43の入出力端子に、該ヒストグラ
ムメモリ43から読出された頻度を1次的に格納するレ
ジスタ44が接続されている。レジスタ44の出力側
に、加算器45接続されている。加算器45は、レジス
タ44に格納された頻度に+1を行うものであり、該加
算器45の出力側に、データ切替回路46が接続されて
いる。データ切替回路46は、与えられたデータ切替信
号Sdに基づき、加算器45の出力信号または「0」の
値を選択し、ヒストグラムメモリ43の入出力端子に与
えるものである。
The histogram memory 43 assigns each gradation of the luminance signal S22 of each pixel to an address and stores the frequency (the number of pixels) at each gradation. That is, as shown in FIG. 6, 256 levels of gradation 0 to 255 in achromatic pixels are set to achromatic addresses 0 to 255, and 256 levels of gradation 0 to 255 in chromatic pixels are set to chromatic addresses 256 to 512. I have. When there are a plurality of page mark areas 2 or print areas 1, a plurality of storage areas are set for each of the areas so as to store the frequency similarly to FIG. Reading and writing of the frequency of the histogram memory 43 are performed by a control signal R / W.
A register 44 for temporarily storing the frequency read from the histogram memory 43 is connected to an input / output terminal of the histogram memory 43. The adder 45 is connected to the output side of the register 44. The adder 45 performs +1 on the frequency stored in the register 44, and a data switching circuit 46 is connected to an output side of the adder 45. The data switching circuit 46 selects an output signal of the adder 45 or a value of “0” based on the supplied data switching signal Sd and supplies the selected signal to the input / output terminal of the histogram memory 43.

【0021】図7は、図1中のヒストグラム解析部50
を示す構成図である。ヒストグラム解析部50は、与え
られたヒストグラムの凹凸を解析して地紋と文字とを区
別するための2値化スライス値を求めるものであり、中
央処理装置(以下、CPUという)51と、該CPU5
1にバスBで接続された無彩色最大成分パレートメモリ
52、無彩色最大成分パレート変化率メモリ53、有彩
色最大成分パレートメモリ54及び有彩色最大成分パレ
ート変化率メモリ55とを有している。
FIG. 7 shows a histogram analysis unit 50 in FIG.
FIG. The histogram analysis unit 50 analyzes the unevenness of the given histogram to obtain a binarized slice value for distinguishing a tint block and a character, and includes a central processing unit (hereinafter referred to as a CPU) 51 and the CPU 5.
1 has an achromatic color maximum component Pareto memory 52, an achromatic color maximum component Pareto change rate memory 53, a chromatic color maximum component Pareto memory 54, and a chromatic color maximum component Pareto change rate memory 55 connected to the bus B.

【0022】図8(a),(b)は、図1中の属性判定
回路60の概要を示す図である。属性判定回路60は、
画素の属性を判定して属性判定信号S60を出力するも
のであり、比較器60aで構成され、多値イメージメモ
リ30から輝度信号S22及びカラー識別信号S21を
入力し、ヒストグラム解析部50から第2の2値化スラ
イス値である無彩色文字用2値化スライス値及び第1の
2値化スライス値である有彩色文字用2値化スライス値
を入力し、制御部から2値化スライスMAX値を入力
し、これらに対して図8(b)の論理判定を行って画素
の属性を求めるようになっている。
FIGS. 8A and 8B are diagrams showing an outline of the attribute determination circuit 60 in FIG. The attribute determination circuit 60
The multi-valued image memory 30 receives the luminance signal S22 and the color identification signal S21 from the multivalued image memory 30, and outputs the second signal from the histogram analysis unit 50. , And a binary slice value for a chromatic character, which is a first binary slice value, and a binary slice MAX value from the control unit. Are input, and the attributes of the pixels are obtained by performing the logical determination shown in FIG. 8B.

【0023】図9は、図1中のフィルタ回路70の構成
図であり、図10は、画素配列を示す図である。フィル
タ回路70には、カウントアップ信号Cuを入力するフ
ィルタアドレスカウンタ71と、該フィルタアドレスカ
ウンタ71の出力側に接続されたフィルタメモリ72
と、属性判定回路60からの判定信号S60を格納する
レジスタ73とを備えている。
FIG. 9 is a configuration diagram of the filter circuit 70 in FIG. 1, and FIG. 10 is a diagram showing a pixel arrangement. The filter circuit 70 includes a filter address counter 71 for inputting a count-up signal Cu, and a filter memory 72 connected to the output side of the filter address counter 71.
And a register 73 for storing a determination signal S60 from the attribute determination circuit 60.

【0024】フィルタメモリ72の入出力端子には、シ
フトレジスタを構成するレジスタ74、レジスタ75及
びレジスタ76が順に接続されている。レジスタ73の
出力端子が初段のレジスタ74に接続されている。シフ
トレジスタを構成するレジスタ74〜75はそれぞれ3
段で構成され、3つの画素の属性を出力するようになっ
ている。レジスタ74の3段の出力端子のうちの2段の
出力端子は、フィルタメモリ72の入出力端子に接続さ
れ、該フィルタメモリ72に画素の属性を書き込む接続
になっている。各レジスタ74、レジスタ75及びレジ
スタ76は、注目画素及び周辺8画素の属性判定結果を
それぞれ出力するように作用する。つまり、図10のよ
うに、注目画素#5とその周辺の画素#1〜#4,#6
〜#9があった場合に、レジスタ74が画素#3,#
6,#9の属性判定結果を出力し、レジスタ75が画素
#2,#5,#8の属性判定結果を出力し、レジスタ7
6が画素#1,#4,#7の属性判定結果を出力する。
これらのレジスタ74、レジスタ75及びレジスタ76
の出力端子が、すべて組み合わせ論理回路77に接続さ
れている。フィルタ回路70に接続された2値化イメー
ジメモリ80は、2値イメージを格納するものである。
印刷行検出回路90は、2値化イメージメモリ80に格
納された2値イメージの印刷行領域を走査し、例えば文
字の有無を検出して検出結果を外部に出力する回路であ
る。
A register 74, a register 75, and a register 76 constituting a shift register are sequentially connected to input / output terminals of the filter memory 72. The output terminal of the register 73 is connected to the register 74 at the first stage. Each of the registers 74 to 75 constituting the shift register has 3 registers.
It is composed of stages and outputs the attributes of three pixels. Two-stage output terminals of the three-stage output terminals of the register 74 are connected to input / output terminals of the filter memory 72, and are connected to write pixel attributes to the filter memory 72. Each of the registers 74, 75, and 76 operates to output the attribute determination result of the target pixel and eight peripheral pixels. That is, as shown in FIG. 10, the target pixel # 5 and its surrounding pixels # 1 to # 4, # 6
To # 9, the register 74 sets the pixels # 3 and #
6 and # 9 are output, and the register 75 outputs the attribute determination results of the pixels # 2, # 5 and # 8.
6 outputs the attribute determination results of the pixels # 1, # 4, and # 7.
These registers 74, 75 and 76
Are all connected to the combinational logic circuit 77. A binary image memory 80 connected to the filter circuit 70 stores a binary image.
The print line detection circuit 90 is a circuit that scans the print line area of the binary image stored in the binarized image memory 80, detects, for example, the presence or absence of a character, and outputs the detection result to the outside.

【0025】次に、図1の光学式文字読取装置の動作を
説明する。図11は、読取対象5の走査方向を示す図で
ある。読取対象5の通帳等では、地紋が種々のカラーで
印刷され、さらに、文字等が印刷または記入されてい
る。読取対象5が搬送されて読取位置に到達すると、該
読取対象5が光源11によって照射され、読取対象5で
の反射光が光学系12を介してイメージセンサ13に入
力される。イメージセンサ13は、読取対象5のイメー
ジを読取り、図11の主走査方向に走査してイメージを
R,G,Bの3原色成分の電気信号に順次変換する。3
原色成分の電気信号は、A/D変換部14中の増幅器1
4aによって増幅され、各A/Dコンバータ14bによ
って8ビット256階調のR、G、B信号にそれぞれ変
換される。R、G、B信号は、カラー処理部20に出力
される。
Next, the operation of the optical character reader of FIG. 1 will be described. FIG. 11 is a diagram illustrating the scanning direction of the reading target 5. In the passbook or the like to be read 5, the copy-forgery-inhibited pattern is printed in various colors, and characters or the like are printed or written. When the reading target 5 is transported and reaches the reading position, the reading target 5 is illuminated by the light source 11, and the light reflected by the reading target 5 is input to the image sensor 13 via the optical system 12. The image sensor 13 reads the image of the reading target 5, scans in the main scanning direction in FIG. 11, and sequentially converts the image into electrical signals of three primary color components of R, G, and B. Three
The electric signal of the primary color component is supplied to the amplifier 1 in the A / D converter 14.
The signal is amplified by the A / D converter 4a and converted into R, G, and B signals of 8-bit 256 gradations by the respective A / D converters 14b. The R, G, and B signals are output to the color processing unit 20.

【0026】カラー処理部20中のカラー識別部21
は、R、G、B信号を入力し、これらのR、G、B信号
の値の組み合わせに基づき、ルックアップテーブル21
aにより注目画素が有彩色画素か無彩色画素かを識別
し、該識別結果のカラー識別信号S21を出力する。つ
まり、R信号の値VR とG信号の値VG の差|VR −V
G|が実験的に求められたΔの値以下で、R信号の値VR
とB信号の値VB の差|VR −VB |がΔの値以下
で、かつ、B信号の値VB とG信号の値VG の差|VB
−VG |がΔの値以下のとき、注目画素を無彩色と見な
し、カラー識別信号S21を“L”にして出力する。
R、G、B信号の値の組合わせがこれ以外のときには、
注目画素を有彩色と見なし、カラー識別信号S21を
“H”にして出力する。カラー処理部20中の輝度信号
生成回路22は、R、G、B信号を入力し、これらの
R、G、B信号のうちの最も高い値を示す信号を注目画
素の輝度信号S22として出力する。カラー識別信号S
21及び輝度信号生成回路22が出力した輝度信号S2
2は、多値イメージメモリ30に格納されると共にヒス
トグラム回路40に入力される。
Color identification unit 21 in color processing unit 20
Inputs the R, G, and B signals, and looks up the look-up table 21 based on a combination of the values of the R, G, and B signals.
Based on a, the target pixel is identified as a chromatic pixel or an achromatic pixel, and a color identification signal S21 of the identification result is output. That is, the difference | VR-V between the value VR of the R signal and the value VG of the G signal.
G | is equal to or less than the value of Δ obtained experimentally, and the value VR of the R signal
Is less than or equal to the value of Δ, and the difference | VB between the value VB of the B signal and the value VG of the G signal.
When −VG | is equal to or smaller than the value of Δ, the target pixel is regarded as an achromatic color, and the color identification signal S21 is set to “L” and output.
When the combination of the values of the R, G, and B signals is other than this,
The pixel of interest is regarded as a chromatic color, and the color identification signal S21 is set to "H" and output. The luminance signal generation circuit 22 in the color processing unit 20 receives the R, G, and B signals, and outputs a signal indicating the highest value among the R, G, and B signals as the luminance signal S22 of the pixel of interest. . Color identification signal S
21 and the luminance signal S2 output by the luminance signal generation circuit 22
2 is stored in the multi-valued image memory 30 and input to the histogram circuit 40.

【0027】ヒストグラム回路40は、カラー識別部2
1から入力したカラー識別信号S21と輝度信号生成回
路22から入力した輝度信号S22とを用い、有彩色画
素と無彩色画素のヒストグラムを作成する。以下、この
ヒストグラムの作成する動作を説明する。まず、アドレ
ス及び領域切替回路42には、図示しない制御部からア
ドレス信号Acを選択するアドレス切替信号Scが与え
られ、データ切替回路46には、「0」を選択するデー
タ切替信号Sdが与えられる。その後に、図示しない制
御部からアドレス及び領域切替回路42にクリア用のア
ドレス信号Acが順次与えられると共に、書込みを指定
する制御信号R/Wがそれと同期してヒストグラムメモ
リ43に与えられる。これにより、ヒストグラムメモリ
43がクリアされる。
The histogram circuit 40 includes a color identification unit 2
A histogram of chromatic pixels and achromatic pixels is created using the color identification signal S21 input from Step 1 and the luminance signal S22 input from the luminance signal generation circuit 22. Hereinafter, an operation of creating the histogram will be described. First, the address and area switching circuit 42 is supplied with an address switching signal Sc for selecting an address signal Ac from a control unit (not shown), and the data switching circuit 46 is supplied with a data switching signal Sd for selecting “0”. . Thereafter, a clear address signal Ac is sequentially supplied to the address and area switching circuit 42 from a control unit (not shown), and a control signal R / W designating writing is supplied to the histogram memory 43 in synchronization therewith. Thereby, the histogram memory 43 is cleared.

【0028】ヒストグラムメモリ43のクリアが終了し
た段階で、制御部はアドレス及び領域切替回路42にカ
ラー識別信号S21及び輝度信号S22を選択するアド
レス切替信号Scを与え、データ切替回路46に加算器
45の出力信号を選択するデータ切替信号Sdを与え
る。この状態では、加算器45の出力端子がヒストグラ
ムメモリ43の入出力端子に接続されたことになる。一
方、各副走査方向カウンタレジスタ41には、予め、制
御部により、頁マーク領域2或いは行の副走査方向の範
囲となる管理カウンタ値がそれぞれ設定されている。読
取対象5の画素がそのいずれかの管理カウンタ値に入っ
ている場合には、アドレス及び領域切替回路42は、ヒ
ストグラムメモリ43の対応する領域にヒストグラムを
形成するように機能する。カラー処理部20からカラー
識別信号S21及び輝度信号S22を入力すると、これ
らがヒストグラムメモリ43のアドレス入力端子に与え
られる。ヒストグラムメモリ43は、このとき制御部か
ら与えられた読出しを指示する制御信号R/Wに基づ
き、カラー識別信号S21及び輝度信号S22に対応す
るアドレスに格納された値を頻度として読出し、レジス
タ44に格納する。加算器45は、レジスタ44に格納
された値に+1し、データ切替回路46を介してヒスト
グラムメモリ43の入出力端子に与える。
When the clearing of the histogram memory 43 is completed, the control section supplies an address switching signal Sc for selecting the color identification signal S21 and the luminance signal S22 to the address and area switching circuit 42, and an adder 45 to the data switching circuit 46. Is provided. In this state, the output terminal of the adder 45 is connected to the input / output terminal of the histogram memory 43. On the other hand, in each sub-scanning direction counter register 41, a control counter value which is a range of the page mark area 2 or the row in the sub-scanning direction is set in advance by the control unit. When the pixel of the reading target 5 is included in any of the management counter values, the address and area switching circuit 42 functions to form a histogram in a corresponding area of the histogram memory 43. When the color identification signal S21 and the luminance signal S22 are input from the color processing unit 20, they are given to the address input terminal of the histogram memory 43. At this time, the histogram memory 43 reads the value stored at the address corresponding to the color identification signal S21 and the luminance signal S22 as the frequency based on the control signal R / W instructed to read from the control unit at this time, and Store. The adder 45 adds +1 to the value stored in the register 44 and supplies the value to the input / output terminal of the histogram memory 43 via the data switching circuit 46.

【0029】ヒストグラムメモリ43は、このとき制御
部から与えられた制御信号R/Wに基づき、加算器45
で加算された値を、カラー識別信号S21及び輝度信号
S22に対応するアドレスに書込む。例えば、注目画素
が無彩色であってその輝度階調が150の場合には、図
6中のヒストグラムメモリ43のアドレス150番地の
内容が読出され、その値に1が加えられて再びアドレス
150番地に格納される。また、注目画素が有彩色であ
ってその輝度階調が150の場合には、図6中のヒスト
グラムメモリ43のアドレス406(=150+25
6)番地の内容が読出され、その値に1が加えられて再
びアドレス406番地に格納される。このような処理
を、読取対象5の走査によってカラー識別信号S21及
び輝度信号S22が得られるごとに行うことにより、最
大成分の階調ごとの頻度が蓄積され、走査が終了した時
点では、次の図12(a),(b)のような最大頻度を
100パーセントとした無彩色ヒストグラム91及び有
彩色ヒストグラム92の2種類のヒストグラムが、各頁
マーク領域2或いは行ごとにそれぞれ求められる。
The histogram memory 43 stores an adder 45 based on the control signal R / W given from the controller at this time.
Is written in the address corresponding to the color identification signal S21 and the luminance signal S22. For example, if the target pixel is an achromatic color and its luminance gradation is 150, the contents of the address 150 of the histogram memory 43 in FIG. 6 are read out, 1 is added to the value, and the address 150 is again read. Is stored in When the pixel of interest is a chromatic color and its luminance gradation is 150, the address 406 (= 150 + 25) of the histogram memory 43 in FIG.
6) The content of the address is read, 1 is added to the value, and the value is stored again at the address 406. By performing such processing each time the color identification signal S21 and the luminance signal S22 are obtained by scanning the reading target 5, the frequency of each gradation of the maximum component is accumulated. As shown in FIGS. 12A and 12B, two types of histograms, that is, an achromatic color histogram 91 and a chromatic color histogram 92 with the maximum frequency being 100%, are obtained for each page mark area 2 or each line.

【0030】図12(a),(b)は、無彩色ヒストグ
ラム及び有彩色ヒストグラムを示す図である。地紋を有
する読取対象5に、黒の文字が印刷または記載された場
合には、無彩色ヒストグラム91の頻度が黒の位置(輝
度で0)の近傍と白の位置(輝度で255)の近傍に集
中する。なお、文字の画素が白地上にある場合には、該
画素が無彩色として処理されるが、文字の画素が地紋上
に印刷または記載された場合に、地色が透過して色がつ
くため、無彩色であるにもかかわらず有彩色として処理
される。以下、白地上の文字を無彩色文字、及び地紋上
の文字を有彩色文字と称して説明を続ける。
FIGS. 12A and 12B are diagrams showing an achromatic color histogram and a chromatic color histogram. When black characters are printed or described on the reading target 5 having the copy-forgery-inhibited pattern, the frequency of the achromatic color histogram 91 is close to the black position (0 in luminance) and the vicinity of the white position (255 in luminance). concentrate. When a pixel of a character is on a white background, the pixel is processed as an achromatic color.However, when a pixel of a character is printed or described on a copy-forgery-inhibited pattern, the ground color is transmitted and colored. Is processed as a chromatic color though it is an achromatic color. Hereinafter, the characters on the white background are referred to as achromatic characters, and the characters on the copy-forgery-inhibited pattern are referred to as chromatic characters.

【0031】図13は、ヒストグラム解析部50の処理
内容を示す図である。各頁マーク領域2或いは行ごとの
無彩色ヒストグラム91及び有彩色ヒストグラム92を
入力したヒストグラム解析部50はこれらの凹凸を解析
して、有彩色文字用2値化スライス値と、無彩色文字用
2値化スライス値を各頁マーク領域或いは行ごとに求め
るが、各無彩色ヒストグラム91及び有彩色ヒストグラ
ム92には、局所的な凹凸があるので解析が困難であ
る。そのため、ヒストグラム解析部50は、無彩色トグ
ラム91及び有彩色ヒストグラム92に対して、図13
の無彩色パレート算出処理及び有彩色パレート算出処理
(1)、無彩色パレート変化率算出処理及び有彩色パレ
ート変化算出処理(2)、及び無彩色パレート変化率解
析処理及び有彩色パレート変化率解析処理(3)を行
う。以下に、各処理の詳細を示す。
FIG. 13 is a diagram showing the processing contents of the histogram analyzer 50. The histogram analysis unit 50, which has input the achromatic color histogram 91 and the chromatic color histogram 92 for each page mark area 2 or each line, analyzes these irregularities, and converts the binary slice value for the chromatic character and the 2 for the achromatic character. Although the quantified slice value is obtained for each page mark area or each line, it is difficult to analyze the achromatic histogram 91 and the chromatic histogram 92 because there are local irregularities. For this reason, the histogram analyzer 50 compares the achromatic color tomogram 91 and the chromatic color histogram 92 with each other in FIG.
Achromatic color Pareto calculation processing and chromatic color Pareto calculation processing (1), achromatic color Pareto change rate calculation processing and chromatic color Pareto change calculation processing (2), achromatic color Pareto change rate analysis processing, and chromatic color Pareto change rate analysis processing Perform (3). The details of each process are described below.

【0032】(1) 無彩色パレート算出処理及び有彩
色パレート算出処理 図14は、無彩色パレート算出処理を示すフローチャー
トであり、図15は、図12(a)に対応する百分率表
現した無彩色最大成分パレート図である。ヒストグラム
解析部50は、ソフトウエアで制御されたCPU51で
ヒストグラム回路40を利用し、図14のステップST
P1〜ステップSTP6により、無彩色パレート算出処
理を行う。
(1) Achromatic Color Pareto Calculation Process and Chromatic Pareto Calculation Process FIG. 14 is a flowchart showing the achromatic color Pareto calculation process. FIG. 15 is a flowchart showing the achromatic color maximum corresponding to FIG. It is a component Pareto diagram. The histogram analysis unit 50 uses the histogram circuit 40 in the CPU 51 controlled by software, and executes the processing in step ST in FIG.
In P1 to step STP6, an achromatic color Pareto calculation process is performed.

【0033】まず、ステップSTP1において、CPU
51から制御部を介してアドレス及び領域切替回路42
に対する制御信号Scを与え、該アドレス及び領域切替
回路42にアドレス信号Acを選択させる。ステップS
TP2において、ヒストグラムメモリ43の番地に対応
するアドレスカウンタAdrの値を0にしてヒストグラ
ムメモリ43の0番地(輝度信号の0レベルに対応)に
格納されたデータを読出す。ステップSTP3におい
て、CPU51は、読出したデータを無彩色最大成分パ
レートメモリ52の同じ番地に格納する。ステップST
P4において、CPU51は、アドレスカウンタの値に
+1する。そして、ステップSTP5において、ヒスト
グラムメモリ43のAdr番地のデータを読出し、か
つ、無彩色最大成分パレートメモリ52の1つ前の(A
d−1)番地の格納データにその読出したデータを加算
する。CPU51は、この加算結果を無彩色最大成分パ
レートメモリ52のAdr番地に格納する。ステップS
TP6により、ステップSTP4,STP5の動作がア
ドレスカウンタAdrが「255」になるまで繰り返さ
れ、累積頻度を表すパレートが求められる。
First, in step STP1, the CPU
An address and area switching circuit 42 from the control unit 51 via the control unit
, And the address and area switching circuit 42 selects the address signal Ac. Step S
At TP2, the value of the address counter Adr corresponding to the address of the histogram memory 43 is set to 0, and the data stored in the address 0 of the histogram memory 43 (corresponding to the 0 level of the luminance signal) is read. In step STP3, the CPU 51 stores the read data at the same address in the achromatic maximum component pareto memory 52. Step ST
In P4, the CPU 51 increments the value of the address counter by +1. Then, in step STP5, the data at the address Adr of the histogram memory 43 is read out, and (A
d-1) The read data is added to the stored data at the address. The CPU 51 stores the result of this addition at the address Adr of the achromatic maximum component pareto memory 52. Step S
By TP6, the operations of steps STP4 and STP5 are repeated until the address counter Adr becomes "255", and a Pareto representing the cumulative frequency is obtained.

【0034】図16は、有彩色パレート算出処理を示す
フローチャートであり、図17は、図12(b)に対応
する百分率表現した有彩色最大成分パレート図である。
ヒストグラム解析部50は、図16のステップSTP1
1〜ステップSTP16より、有彩色パレート算出処理
を行う。まず、ステップSTP11において、CPU5
1から制御部を介してアドレス及び領域切替回路42に
制御信号Scを与え、該アドレス及び領域切替回路42
にアドレス信号Acを選択させる。ステップSTP12
において、ヒストグラムメモリ43の番地に対応するア
ドレスカウンタAdrの値を「256」にしてヒストグ
ラムメモリ43の256番地に格納されたデータを読出
す。ステップSTP13において、CPU51は、読出
したデータを有彩色最大成分パレートメモリ54の同じ
番地に格納する。ステップSTP14において、CPU
51は、アドレスカウンタAdrの値に+1する。そし
て、ステップSTP15において、ヒストグラムメモリ
43のAdr番地のデータを読出し、かつ、有彩色最大
成分パレートメモリ54の1つ前の(Ad−1)番地の
格納データにその読出したデータを加算する。CPU5
1は、この加算結果を有彩色最大成分パレートメモリ5
4のAdr番地に格納する。ステップSTP16によ
り、ステップSTP14,STP15の動作がアドレス
カウンタAdrの値が「511」になるまで繰り返さ
れ、累積頻度を表すパレートが求められる。
FIG. 16 is a flowchart showing the chromatic color Pareto calculation process, and FIG. 17 is a chromatic color maximum component Pareto diagram expressed as a percentage corresponding to FIG. 12B.
The histogram analysis unit 50 determines in step STP1 of FIG.
From step 1 to step STP16, a chromatic color Pareto calculation process is performed. First, in step STP11, the CPU 5
1 to the address and area switching circuit 42 via the control unit,
Select the address signal Ac. Step STP12
, The value of the address counter Adr corresponding to the address of the histogram memory 43 is set to “256”, and the data stored at the address 256 of the histogram memory 43 is read. In step STP13, the CPU 51 stores the read data at the same address of the chromatic color maximum component Pareto memory 54. In step STP14, the CPU
51 increments the value of the address counter Adr by +1. In step STP15, the data at the address Adr in the histogram memory 43 is read, and the read data is added to the storage data at the address (Ad-1) immediately before the chromatic color maximum component Pareto memory 54. CPU5
1 stores this addition result in a chromatic color maximum component Pareto memory 5
4 is stored in the address Adr. In step STP16, the operations in steps STP14 and STP15 are repeated until the value of the address counter Adr becomes "511", and a Pareto representing the cumulative frequency is obtained.

【0035】(2) 無彩色パレート変化率算出処理及
び有彩色パレート変化率算出処理 図18は、無彩色パレート変化率算出処理を示すフロー
チャートであり、図19は、図15に対応する百分率表
現した無彩色最大成分パレート変化率を示す図である。
ヒストグラム解析部50は、ソフトウエアで制御された
CPU51で、図18のステップSTP21〜ステップ
STP29により、無彩色パレート変化率算出処理を行
う。
(2) Achromatic color Pareto change rate calculation processing and chromatic Pareto change rate calculation processing FIG. 18 is a flowchart showing the achromatic color Pareto change rate calculation processing, and FIG. 19 is a percentage expression corresponding to FIG. It is a figure showing the achromatic color maximum component Pareto change rate.
The histogram analysis unit 50 performs the achromatic color Pareto change rate calculation process in steps STP21 to STP29 in FIG. 18 by the CPU 51 controlled by software.

【0036】無彩色パレート変化率算出処理では、無彩
色最大成分パレートを例えば10階調ずつ分割する25
の区間を想定し、ステップSTP21において、CPU
51がその区間を示す変化率区間変数kukanに10
をセットする。ステップSTP22において、CPU5
1は無彩色最大成分パレート変化率メモリ53のアドレ
スを示す変数jに「0」をセットし、ステップSTP2
3で無彩色最大成分パレートメモリ52のアドレスを示
す変数iに「255」をセットする。ステップSTP2
4において、CPU51は(i−kukan)の値を調
べ、この(i−kukan)の値が負でない場合は、ス
テップSTP25で無彩色最大成分パレートメモリ52
のi番地に格納された値から同メモリ52の(i−ku
kan)番地に格納された値を引き、引いた結果を無彩
色最大成分パレート変化率メモリ53のj番地に格納す
る。
In the achromatic color Pareto change rate calculation processing, the maximum achromatic color component Pareto is divided into, for example, 10 gradations.
Is assumed, and in step STP21, the CPU
51 is 10 in the change rate section variable kukan indicating the section.
Is set. In step STP22, the CPU 5
1 sets “0” to a variable j indicating the address of the achromatic maximum component Pareto change rate memory 53, and sets STP2.
In step 3, "255" is set as a variable i indicating the address of the achromatic maximum component pareto memory 52. Step STP2
In step 4, the CPU 51 checks the value of (i-kukan). If the value of (i-kukan) is not negative, the CPU 51 checks in step STP25 for the maximum achromatic color component Pareto memory 52.
From the value stored at the address i of (i-ku
kan) The value stored at the address is subtracted, and the subtracted result is stored at the address j of the achromatic maximum component Pareto change rate memory 53.

【0037】一方、ステップSTP24で(i−kuk
an)の値が負になった場合には、参照する無彩色最大
成分パレートメモリ52における格納データがないの
で、ステップSTP26で変化率として該無彩色最大成
分パレートメモリ52のi番地の値から同メモリ52の
0番地の値を引き、結果を無彩色最大成分パレート変化
率メモリ53のj番地に格納する。ステップSTP25
またはステップSTP26の次には、ステップSTP2
7で変数jに1を加え、ステップSTP28で変数iか
ら変化率区間変数kukanの値を引く。ステップST
P29により、ステップSTP24〜STP28の動作
が繰り返し行われ、変数が負になると処理が終了する。
以上により、無彩色のパレートにおける隣接する各区間
の累積頻度の最大値の差が順に求められて無彩色最大成
分パレート変化率メモリ53に格納され、図19のよう
な平滑化された無彩色最大成分パレート変化率が求めら
れる。
On the other hand, in step STP24, (i-kuk
If the value of an) becomes negative, there is no data stored in the achromatic maximum component pareto memory 52 to be referred to. The value of the address 0 in the memory 52 is subtracted, and the result is stored in the address j of the achromatic maximum component Pareto change rate memory 53. Step STP25
Or, after step STP26, step STP2
In step 7, 1 is added to the variable j, and in step STP28, the value of the change rate section variable kukan is subtracted from the variable i. Step ST
By P29, the operations of steps STP24 to STP28 are repeatedly performed, and the process ends when the variable becomes negative.
As described above, the difference between the maximum values of the cumulative frequencies of adjacent sections in the achromatic pareto is sequentially obtained and stored in the achromatic maximum component pareto change rate memory 53, and the smoothed achromatic maximum as shown in FIG. The component Pareto change rate is determined.

【0038】図20は、有彩色パレート変化率算出処理
を示すフローチャートであり、図21は、図17に対応
する百分率表現した有彩色最大成分パレート変化率を示
す図である。ヒストグラム解析部50は、ソフトウエア
で制御されたCPU51で、無彩色の場合のステップS
TP21〜ステップSTP29と同様に、図20のステ
ップSTP31〜ステップSTP39により、有彩色用
レート変化率算出処理を行い、図21のような平滑化さ
れた有彩色最大成分パレート変化率を求める。
FIG. 20 is a flowchart showing the chromatic color Pareto change rate calculation processing, and FIG. 21 is a diagram showing the chromatic color maximum component Pareto change rate expressed as a percentage corresponding to FIG. The histogram analysis unit 50 is a CPU 51 controlled by software, and performs step S in the case of an achromatic color.
Similar to TP21 to step STP29, the chromatic color rate change rate calculation processing is performed in steps STP31 to STP39 in FIG. 20 to obtain the smoothed chromatic color maximum component Pareto change rate as shown in FIG.

【0039】(3) 無彩色パレート変化率解析処理及
び有彩色パレート変化率解析処理 ヒストグラム解析部50は、これまでに求めた無彩色最
大成分パレート変化率及び有彩色最大成分パレート変化
率を走査し、その凹凸を解析して無彩色文字用2値化ス
ライス値及び有彩色用2値化スライス値の両方を求める
が、最初に、有彩色文字用2値化スライス値を求める有
彩色パレート変化率解析処理を説明する。
(3) Achromatic Color Pareto Change Rate Analysis Processing and Chromatic Pareto Change Rate Analysis Processing The histogram analyzer 50 scans the achromatic color maximum component Pareto change rate and the chromatic color maximum component Pareto change rate obtained so far. By analyzing the unevenness, both the binary slice value for achromatic characters and the binary slice value for chromatic colors are obtained. First, the chromatic color Pareto change rate for obtaining the binary slice value for chromatic characters The analysis process will be described.

【0040】図22は、有彩色パレート変化率解析処理
(その1)を示すフローチャートであり、図23は、有
彩色パレート変化率解析処理(その2)を示すフローチ
ャートであり、図24は、有彩色パレート変化率解析処
理(その3)を示すフローチャートである。これらの図
22〜図24は、結合子〜で結合されて有彩色パレ
ート変化率解析処理全体を示すものである。ヒストグラ
ム解析部50のCPU51は、図22〜図24のステッ
プSTP41〜ステップSTP68を行い、図21の有
彩色最大成分パレート変化率の凹凸を解析して、無彩色
文字用2値化スライス値を算出する。
FIG. 22 is a flowchart showing the chromatic color Pareto change rate analysis processing (part 1), FIG. 23 is a flowchart showing the chromatic color Pareto change rate analysis processing (part 2), and FIG. It is a flowchart which shows a coloring Pareto change rate analysis process (3). FIGS. 22 to 24 show the entire chromatic color Pareto change rate analysis processing which is linked by the connector. The CPU 51 of the histogram analysis unit 50 performs steps STP41 to STP68 of FIGS. 22 to 24 and analyzes the unevenness of the chromatic maximum component Pareto change rate of FIG. 21 to calculate a binary slice value for achromatic characters. I do.

【0041】まず、ステップSTP41において、CP
U51は初期設定として、ブロックが検出されたことを
示すブロック検出フラグと、パレート変化率が増加、減
少或いはそのいずれでもないことをそれぞれ示す減少フ
ラグ、増加フラグ及び平坦フラグとを0に設定し、連続
減少区間の数をカウントする減少カウンタ、連続増加区
間の数をカウントする増加カウンタ、連続平坦区間の数
をカウントする平坦カウンタ、ブロック候補区間の数を
カウントするカウンタcnt及び検出されたブロック番
号を示すブロックNoを0に初期化する。ステップST
P42において、有彩色最大成分変化率を走査するため
の区間変数iに区間番号の最大値−1をセットする。こ
の実施形態では、輝度信号S22の階調を256、区間
幅を10としているので、区間は0〜25番の25個と
なる。よって、区間変数iには24がセットされる。ス
テップSTP43において、CPU51は、区間変数i
の示す区間の変化率を調べる。このとき、ブロック検出
フラグが0でブロックが未検出を示し、かつ、変化率が
実験等で決定されたスライスレベルTh1よりも小さい
場合には、ステップSTP44で区間iのデータはノイ
ズとして除外し、カウンタcnt、減少カウンタ及び増
加カウンタを初期化して次の区間の走査に移る。それ以
外の場合は、ステップSTP45において、ブロック検
出フラグを調べる。
First, in step STP41, the CP
U51 sets, as initial settings, a block detection flag indicating that a block has been detected, a decrease flag, an increase flag, and a flat flag indicating that the Pareto change rate is not increased, decreased, or neither, to 0, A decrease counter for counting the number of continuous decreasing sections, an increasing counter for counting the number of continuous increasing sections, a flat counter for counting the number of continuous flat sections, a counter cnt for counting the number of block candidate sections, and a detected block number. The indicated block number is initialized to 0. Step ST
In P42, the maximum value -1 of the section number is set as the section variable i for scanning the chromatic color maximum component change rate. In this embodiment, since the gray level of the luminance signal S22 is 256 and the section width is 10, the number of sections is 25 (0 to 25). Therefore, 24 is set in the section variable i. In step STP43, the CPU 51 determines that the section variable i
The change rate of the section indicated by is checked. At this time, if the block detection flag is 0, the block is not detected, and the change rate is smaller than the slice level Th1 determined by experiments or the like, the data in the section i is excluded as noise in step STP44, The counter cnt, the decrease counter, and the increase counter are initialized, and the process proceeds to the scanning in the next section. Otherwise, in step STP45, the block detection flag is checked.

【0042】ブロック検出フラグが0でブロックがまだ
検出されていない場合には、CPU51は、ステップS
TP46でカウンタcntに1を加え、ステップSTP
47でカウンタcntの値と、予め実験や評価等で決定
されたブロック定数とを比較することにより、有効ブロ
ックかどうかを判定する。カウンタcntの値がブロッ
ク定数よりも大きかった場合に、有効なブロックの始点
が検出されたとし、ステップSTP48において、ブロ
ック検出フラグに1を設定し、ブロックNoに1を加
え、さらに、当該ブロックの下側の階調レベル値を25
5−i*kukanとして次のステップSTP49で区
間属性の判定を行う。これに対し、ステップSTP45
のブロック検出フラグの判定で、ブロック検出フラグが
1となっており、すでに、ブロックの始点が検出されて
いる場合、及びステップSTP47で有効ブロックでな
いと判定された場合には、ステップSTP49の区間属
性判定にジャンプする。
If the block detection flag is 0 and no block has been detected yet, the CPU 51 proceeds to step S
At TP46, 1 is added to the counter cnt, and step STP
At 47, it is determined whether the block is an effective block by comparing the value of the counter cnt with a block constant determined in advance through experiments, evaluations, and the like. If the value of the counter cnt is larger than the block constant, it is determined that a valid block start point has been detected, and in step STP48, a block detection flag is set to 1, 1 is added to the block No. Lower gradation level value of 25
In the next step STP49, the section attribute is determined as 5-i * kukan. In contrast, step STP45
In the determination of the block detection flag, if the block detection flag is set to 1 and the starting point of the block has already been detected, and if it is determined in step STP47 that the block is not a valid block, the section attribute in step STP49 Jump to the decision.

【0043】図25は、図22中のステップSTP49
における属性判定の判定条件を示す図である。ステップ
STP49の区間属性判定では、CPU51は、区間変
数iにおける有彩色最大成分パレート変化率(i)か
ら、区間変数(i+1)での有彩色最大成分パレート変
化率(i+1)を引き、その値が負の場合には変化率が
減少しているとして減少区間と判定し、ステップSTP
50で区間属性フラグ(減少フラグ)に減少をセット
し、減少カウンタに1を加え、平坦カウンタを0にリセ
ットする。ステップSTP49の区間属性判定で、減少
フラグが1の場合で、区間変数iにおける有彩色最大成
分パレート変化率(i)から区間変数(i+1)での有
彩色最大成分パレート変化率(i+1)を引いた値が正
の値の場合には、減少から増加区間に転じたと判断し、
ステップSTP51において、区間属性フラグ(増加フ
ラグ)に増加をセットし、増加カウンタに1を加え、平
坦カウンタを0にリセットする。また、ステップSTP
49の区間属性判定で、減少フラグが1の場合で、区間
変数iにおける有彩色最大成分パレート変化率(i)か
ら区間変数(i+1)での有彩色最大成分パレート変化
率(i+1)を引いた値が予め実験等で求めた平坦定数
よりも小さい値の場合には、変化率がほとんど変化して
いないと判定し、ステップSTP52において、区間属
性フラグ(平坦フラグ)に平坦をセットし、平坦カウン
タに1を加算し、平坦フラグを0にリセットする。
FIG. 25 is a flowchart showing step STP49 in FIG.
FIG. 5 is a diagram showing a determination condition for attribute determination in FIG. In the section attribute determination in step STP49, the CPU 51 subtracts the chromatic color maximum component Pareto change rate (i + 1) in the section variable (i + 1) from the chromatic color maximum component Pareto change rate (i) in the section variable i, and the value is obtained. If negative, it is determined that the rate of change has decreased, and it is determined that the interval is a decrease section.
At 50, the section attribute flag (decrease flag) is set to decrease, 1 is added to the decrease counter, and the flat counter is reset to 0. If the decrease flag is 1 in the section attribute determination in step STP49, the chromatic color maximum component Pareto change rate (i + 1) in the section variable (i + 1) is subtracted from the chromatic color maximum component Pareto change rate (i) in the section variable i. If the value is a positive value, it is determined that the period has changed from decreasing to increasing,
In step STP51, increment is set in the section attribute flag (increase flag), 1 is added to the increment counter, and the flat counter is reset to 0. Step STP
In the section attribute determination of 49, when the decrease flag is 1, the chromatic color maximum component Pareto change rate (i + 1) in the section variable (i + 1) is subtracted from the chromatic color maximum component Pareto change rate (i) in the section variable i. If the value is smaller than the flat constant obtained in advance through experiments or the like, it is determined that the change rate has hardly changed, and in step STP52, flat is set in the section attribute flag (flat flag), and the flat counter is set. , And reset the flat flag to 0.

【0044】図23のステップSTP53において、C
PU51は、ブロック検出フラグを調べ、該ブロック検
出フラグが0のときには、次の区間を走査するために、
区間変数iから1を引いたうえで結合子を介して処理
をステップSTP43にジャンプさせる。ブロック検出
フラグが1で、ブロックの始点がすでに検出されている
ときには、ステップSTP54〜STP58により、変
数区間iで指定された当該区間よりも以前の区間の増減
を調べる。例えば、ステップSTP54で減少カウンタ
の値と実験等で決めた減少パラメータの値の例えば1と
を比較し、減少区間の長さ(=減少カウンタの値)が該
減少パラメータの値よりも大きい場合には、減少が続い
ているとしてステップSTP55で減少フラグを1にセ
ットする。また、ステップSTP56において、増加カ
ウンタの値と、実験等で決めた増加パラメータの値の例
えば2とを比較し、増加区間の長さ(=増加カウンタの
値)が該増加パラメータの値よりも大きい場合には、増
加が続いているとして、ステップSTP57で増加フラ
グに1をセットする。さらに、ステップSTP18で、
平坦カウンタの値と実験等で決めた平坦パラメータの値
の例えば2とを比較し、該平坦区間(=平坦カウンタの
値)が平坦パラメータよりも大きい場合には、平坦が続
いているとし、ステップSTP59で平坦フラグに1を
セットする。
In step STP53 of FIG.
The PU 51 checks the block detection flag. When the block detection flag is 0, the PU 51 scans the next section.
After subtracting 1 from the interval variable i, the process jumps to step STP43 via the connector. When the block detection flag is 1 and the start point of the block has already been detected, the increase or decrease of the section before the section specified by the variable section i is checked in steps STP54 to STP58. For example, in step STP54, the value of the decrease counter is compared with, for example, 1 of the value of the decrease parameter determined by an experiment or the like, and if the length of the decrease section (= the value of the decrease counter) is larger than the value of the decrease parameter, Sets the decrease flag to 1 in step STP55 assuming that the decrease is continuing. In step STP56, the value of the increase counter is compared with the value of the increase parameter, eg, 2, determined by an experiment or the like, and the length of the increase section (= the value of the increase counter) is larger than the value of the increase parameter. In this case, it is determined that the increase is continuing, and the increase flag is set to 1 in step STP57. Further, in step STP18,
The value of the flat counter is compared with the value of the flat parameter determined by experiment or the like, for example, 2. If the flat section (= flat counter value) is larger than the flat parameter, it is determined that flat is continued, and step At STP59, 1 is set to the flat flag.

【0045】ステップSTP54〜STP58及びステ
ップSTP59の後のステップSTP60において、C
PU51は、谷検出条件を用いて谷または平坦部の有無
を判定する。つまり、減少フラグが1かつ増加フラグが
1、つまり、有彩色最大成分パレート変化率が減少から
増加に転じた場合と、平坦フラグが1、つまり、有彩色
最大成分パレート変化率が減少から平坦に転じた場合
と、区間変数iが0となって走査する区間がなくなった
場合とには、谷を満たす条件が成立してブロックを検出
したと判断する。そして、CPU51は、ステップST
P61で、当該ブロックの上側の階調値レベルを「25
5−(i+3)*kukan」とする。一方、谷を満た
す条件が成立しなかった場合には、ブロックが検出され
なかったとして、ステップSTP62で、当該ブロック
の上側の階調レベル値に、下側の階調レベル値と同一値
を格納する。
At step STP60 after steps STP54 to STP58 and step STP59, C
The PU 51 determines whether there is a valley or a flat portion using the valley detection condition. That is, the case where the decrease flag is 1 and the increase flag is 1, that is, the chromatic color maximum component Pareto change rate changes from decrease to increase, and the case where the flat flag is 1, that is, the chromatic color maximum component Pareto change rate decreases from flat to flat. In the case of turning over and the case where the section variable i becomes 0 and there is no section to be scanned, it is determined that the condition satisfying the valley is satisfied and the block is detected. Then, the CPU 51 proceeds to step ST.
In P61, the upper gradation value level of the block is set to “25”.
5- (i + 3) * kukan ". On the other hand, if the condition for satisfying the valley is not satisfied, it is determined that a block has not been detected, and in step STP62, the same value as the lower gradation level value is stored in the upper gradation level value of the block. I do.

【0046】ステップSTP63において、当該ブロッ
クの上側の階調レベル値と下側の階調レベル値とを比較
し、両方のレベル値が一致した場合には、まだブロック
が途中だと見なし、区間変数iから1を引いたうえで処
理をステップSTP43に戻して次の区間の走査を継続
する。一方、両者のレベルが一致しない場合には、ブロ
ックが見つかったとし、当該ブロックの検出動作を終了
し、ステップSTP64にて、ブロック候補、減少フラ
グ、増加フラグ、平坦フラグ、減少カウンタ、増加カウ
ンタ及び平坦カウンタの各値を0に初期化する。ステッ
プSTP64の初期化が終了した後のちのステップST
P65において、区間変数iの値を調べ、該区間変数i
が0でなく、未走査の区間が存在する場合には、ステッ
プSTP66で、所定の区間戻ったところを新たな走査
の開始点して新たなブロック検出を行う。この戻る区間
は、実験等で決定されるが、例えば3区間とする。区間
変数iが0の場合には、走査終了となる。
In step STP63, the upper gradation level value and the lower gradation level value of the block are compared, and when both the level values match, the block is regarded as still in the middle and the section variable After subtracting 1 from i, the process returns to step STP43 to continue scanning in the next section. On the other hand, if the levels do not match, it is determined that a block has been found, and the operation of detecting the block is terminated, and in step STP64, a block candidate, a decrease flag, an increase flag, a flat flag, a decrease counter, an increase counter, Each value of the flat counter is initialized to zero. Step ST after completion of the initialization of step STP64
In P65, the value of the interval variable i is checked, and
Is not 0 and there is an unscanned section, in step STP66, a new block detection is performed by starting a new scan at a position returned by a predetermined section. The return section is determined by an experiment or the like, and is, for example, three sections. If the section variable i is 0, the scanning ends.

【0047】走査を終了した後のステップSTP67に
おいて、有彩色最大成分パレートの値が例えば50パー
セントとなる階調レベルを算出し、該算出結果から実験
等で決定されたスライドパラメータの例えば30を引い
た値を、地紋の階調レベルとする。図17の有彩色最大
成分パレートでは、累積頻度が50パーセントになる階
調レベルが「188」であり、それからスライドパラメ
ータを引いた値の「158」が地紋の階調レベルとな
る。ステップSTP67の次のステップSTP68にお
いて、検出されたブロックの上側の階調レベルのうち、
地紋の階調レベルに最も近い値を持つブロックを有彩色
文字のブロックと見なし、そのブロックの上側の階調レ
ベルを2値化スライス値とする。図21の有彩色最大成
分パレート変化率の例では、3個のブロックB1,B
2,B3があるが、地紋の階調レベルの「158」に最
も近いブロックB1における上側の階調レベルが「12
5」であり、この「125」が有彩色文字用2値化スラ
イス値になる。有彩色文字用2値化スライス値は、属性
判定回路60に送られる。
At step STP67 after the scanning is completed, a gradation level at which the value of the maximum chromatic color component Pareto is, for example, 50% is calculated, and for example, 30 of the slide parameter determined by experiment or the like is subtracted from the calculation result. The value obtained is the gradation level of the tint block. In the chromatic color maximum component pareto of FIG. 17, the gradation level at which the cumulative frequency is 50% is “188”, and the value obtained by subtracting the slide parameter from that is “158” is the copy-forgery-inhibited pattern gradation level. In the next step STP68 following the step STP67, of the upper gradation levels of the detected block,
A block having a value closest to the tint block gradation level is regarded as a chromatic character block, and the upper gradation level of the block is set as a binarized slice value. In the example of the chromatic color maximum component Pareto change rate shown in FIG. 21, three blocks B1, B
2 and B3, the upper gradation level of the block B1 closest to the copy-forgery-inhibited pattern gradation level “158” is “12”.
5 ", and this" 125 "is the binary slice value for chromatic characters. The binarized slice value for a chromatic character is sent to the attribute determination circuit 60.

【0048】図26は、無彩色パレート変化率解析処理
(その1)を示すフローチャートであり、図27は、無
彩色パレート変化率解析処理(その2)を示すフローチ
ャートであり、図28は、無彩色パレート変化率解析処
理(その3)を示すフローチャートである。これらの図
26〜図28は、結合子〜で結合されて無彩色パレ
ート変化率解析処理全体を示すものである。ヒストグラ
ム解析部50のCPU51は、図26〜図28のステッ
プSTP71〜STP97を行い、図21の有彩色最大
成分パレート変化率の凹凸を解析して、無彩色文字用の
2値化スライス値を算出する。
FIG. 26 is a flowchart showing the achromatic color Pareto change rate analysis processing (part 1), FIG. 27 is a flowchart showing the achromatic color Pareto change rate analysis processing (part 2), and FIG. It is a flowchart which shows a coloring Pareto change rate analysis process (3). FIGS. 26 to 28 show the entire achromatic color Pareto change rate analysis process linked by the connector. The CPU 51 of the histogram analysis unit 50 performs steps STP71 to STP97 of FIGS. 26 to 28 to analyze the unevenness of the chromatic maximum component pareto change rate of FIG. 21 to calculate a binary slice value for achromatic characters. I do.

【0049】ステップSTP71〜STP97のうちの
ステップSTP71〜STP96は、有彩色が無彩色に
変化するだけで有彩色パレート変化率解析処理における
ステップSTP41〜STP66と同等の処理を行う。
ステップSTP41〜STP66での走査が終了したと
きには、ステップSTP97で、検出した各ブロックの
上側の階調レベルが、予め設定された2値化スライスの
MAX値の例えば「200」に最も近いブロックを、無
彩色文字のブロックと見なし、そのブロックの上側の階
調レベルを無彩色文字用の2値化スライス値とする。図
19の例では、無彩色最大成分パレート変化率に、3つ
のブロックB4,B5,B6が検出されるが、スライス
MAX値の「200」に最も近い上側階調レベル「19
5」を持つブロックB5が、無彩色文字と見なされ、該
階調レベルの「195」が、無彩色文字用の2値化スラ
イス値として求められる。この無彩色文字用の2値化ス
ライス値が属性判定回路60に送られる。以上が、ヒス
トグラム解析部50の動作である。
Steps STP71 to STP96 of steps STP71 to STP97 perform the same processing as steps STP41 to STP66 in the chromatic color Pareto change rate analysis processing except that the chromatic color changes to an achromatic color.
When the scanning in steps STP41 to STP66 is completed, in step STP97, the block in which the upper gradation level of each detected block is closest to, for example, “200” of the MAX value of the preset binarized slice, The block is regarded as an achromatic character block, and the upper gradation level of the block is set as a binary slice value for the achromatic character. In the example of FIG. 19, three blocks B4, B5, and B6 are detected in the achromatic color maximum component Pareto change rate, but the upper gradation level “19” closest to the slice MAX value “200” is detected.
The block B5 having "5" is regarded as an achromatic character, and the gradation level "195" is obtained as a binary slice value for the achromatic character. The binarized slice value for the achromatic character is sent to the attribute determination circuit 60. The above is the operation of the histogram analysis unit 50.

【0050】ヒストグラム解析部50は、有彩色文字用
2値化スライス値と無彩色文字用2値化スライス値を出
力し、多値イメージメモリ30からは、画素ごとに輝度
信号S22とカラー識別信号S21が出力される。属性
判定回路60は、有彩色文字用2値化スライス値と無彩
色文字用2値化スライス値と輝度信号S22とカラー識
別信号S21と、制御部から与えられた2値化スライス
MAX値とを比較し、注目画素#5の属性を白、黒また
は色の3種類の属性に判定する。例えば、注目画素#5
のカラー識別信号S21が“0”で無彩色を示すとき、
輝度信号S22と無彩色文字用2値化スライス値とを比
較し、該輝度信号S22が無彩色文字用2値化スライス
値よりも大きい場合には、画素の属性として“11”
(白)の判定結果S60を出力する。逆の場合には画素
の属性として“00”(黒)の判定結果S60を出力す
る。
The histogram analysis unit 50 outputs a binary slice value for a chromatic character and a binary slice value for an achromatic character, and outputs a luminance signal S22 and a color identification signal for each pixel from the multi-valued image memory 30. S21 is output. The attribute determination circuit 60 converts the binary slice value for chromatic character, the binary slice value for achromatic character, the luminance signal S22, the color identification signal S21, and the binary slice MAX value given from the control unit. By comparison, the attribute of the target pixel # 5 is determined to be three types of attributes of white, black or color. For example, attention pixel # 5
When the color identification signal S21 of “1” is “0” and indicates an achromatic color,
The luminance signal S22 is compared with the achromatic character binarized slice value. If the luminance signal S22 is larger than the achromatic character binarized slice value, “11” is set as the pixel attribute.
The determination result S60 of (white) is output. In the opposite case, a determination result S60 of “00” (black) is output as the pixel attribute.

【0051】また、注目画素#5のカラー識別信号S2
1が“1”で有彩色を示すときには、輝度信号S22と
2値化スライスMAX値とを比較し、該輝度信号S22
が高ければ、画素の属性として“11”(白)の判定結
果S60を出力する。逆に、輝度信号S22が2値化ス
ライスMAX値よりも小さく、かつ、有彩色文字用2値
化スライス値より大きい場合には、画素の属性として
“01”(色)の判定結果S60を出力する。また、輝
度信号S22が有彩色文字用2値化スライス値より小さ
い場合は、画素の属性として“00”(黒)の判定結果
S60を出力し、逆に小さい場合は、画素の属性として
“00”(黒)の判定結果S60を出力する。属性判定
回路60が出力する画素の属性を示す判定結果S60
は、フィルタ回路70に順次与えられ、シフト動作によ
り取り込まれる。フィルタ回路70内のレジスタ74〜
76が、注目画素#5とその周辺の画素#1〜#4,#
6〜#9の属性を、組み合わせ論理回路77に示す。
The color identification signal S2 of the target pixel # 5
When 1 is "1" and indicates a chromatic color, the luminance signal S22 is compared with the binarized slice MAX value, and the luminance signal S22 is compared with the luminance signal S22.
Is higher, the determination result S60 of “11” (white) is output as the pixel attribute. Conversely, if the luminance signal S22 is smaller than the binary slice MAX value and larger than the chromatic character binary slice value, the determination result S60 of "01" (color) is output as the pixel attribute. I do. If the luminance signal S22 is smaller than the binary slice value for chromatic character, a determination result S60 of "00" (black) is output as the pixel attribute. Conversely, if the luminance signal S22 is smaller, the pixel attribute is "00". The determination result S60 of “(black) is output. Determination result S60 indicating the attribute of the pixel output from attribute determination circuit 60
Are sequentially supplied to the filter circuit 70 and are taken in by a shift operation. Register 74 in filter circuit 70-
76 is a pixel of interest # 5 and its surrounding pixels # 1 to # 4, #
The attributes of 6 to # 9 are shown in the combinational logic circuit 77.

【0052】図29は、組み合わせ論理回路77の論理
を示す図である。組み合わせ論理回路77は、注目画素
#5の属性が“11”(白)の場合、または“00”
(黒)のときには、周辺画素にかかわらず、その属性に
したがった白または黒をフィルタ出力として出力する。
これに対し、注目画素#5の属性が“01”(色)の場
合には、周囲画素の黒画数の合計と実験等で決められた
フィルタパラメータの例えば3と比較し、黒画素数が3
よりも大きい場合に文字の一部が誤って色と判定された
と見なし、注目画素#5を色から黒に変換して出力す
る。逆に、黒画素数が3よりも少ない場合には、注目画
素#5を色から白に変換して出力する。組み合わせ論理
回路77の出力するフィルタ出力は、読取対象の2値イ
メージとして2値イメージメモリ80に書き込まれる。
印字行検出回路90は、2値化イメージメモリ80の2
値化イメージを走査し、所定行に印字または記載された
文字があるか否かを検出する。
FIG. 29 is a diagram showing the logic of the combinational logic circuit 77. The combinational logic circuit 77 determines whether the attribute of the target pixel # 5 is “11” (white) or “00”.
In the case of (black), white or black according to the attribute is output as a filter output regardless of the peripheral pixels.
On the other hand, when the attribute of the target pixel # 5 is “01” (color), the total number of black pixels of the surrounding pixels is compared with, for example, three filter parameters determined by experiments or the like.
If it is larger than this, it is considered that a part of the character is erroneously determined to be a color, and the target pixel # 5 is converted from color to black and output. Conversely, when the number of black pixels is smaller than 3, the target pixel # 5 is converted from color to white and output. The filter output output from the combinational logic circuit 77 is written to the binary image memory 80 as a binary image to be read.
The print line detection circuit 90 is provided in the binarized image memory 80.
The digitized image is scanned to detect whether there is a character printed or described on a predetermined line.

【0053】以上のように、この第1の実施形態では、
カラーイメージ取得部10とカラー処理部20とヒスト
グラム回路40とヒストグラム解析部50とを設けると
共に、該ヒストグラム回路40には、副走査方向カウン
タレジスタ41を設け、読取対象5のイメージをカラー
イメージセンサ13で読取り、画素を無彩色と有彩色に
分け、無彩色及び有彩色それぞれのヒストグラムを頁マ
ーク領域2及び行ごとに任意数の領域で作成し、該各ヒ
ストグラムを解析することにより、有彩色用及び無彩色
用の2値化スライスを求め、それを利用している。その
ため、各頁マーク領域2及び行ごとの地紋の色や濃度が
異なる場合や、罫線の色が地紋の色と異なっている場合
にも、頁マーク領域2及び行ごとに、文字を確実に残し
て、地紋のみをドロップアウトできる。
As described above, in the first embodiment,
A color image acquisition unit 10, a color processing unit 20, a histogram circuit 40, and a histogram analysis unit 50 are provided. The histogram circuit 40 is provided with a sub-scanning direction counter register 41, and the image of the reading target 5 is , The pixels are divided into achromatic and chromatic colors, histograms for the achromatic and chromatic colors are created in the page mark area 2 and an arbitrary number of areas for each row, and the histograms are analyzed for And a binarized slice for achromatic color are used. Therefore, even when the color and density of the copy-forgery-inhibited pattern for each page mark area 2 and each line are different, and when the color of the ruled line is different from the color of the copy-forgery-inhibited pattern, characters are reliably left for each page mark area 2 and each line. You can drop out only the tint block.

【0054】第2の実施形態 図30は、本発明の第2の実施形態を示す光学式文字読
取装置の構成図であり、図31は、図30中のヒストグ
ラム回路40Aを示す構成図であり、第1の実施形態を
示す図1及び図5中の要素と共通の要素には共通の要素
が付されている。この光学式文字読取装置は、第1の実
施形態の光学式文字読取装置のヒストグラム回路40を
ヒストグラム回路40Aに変更したものであり、他の構
成は図1と同様になっている。ヒストグラム回路40A
は、図31のように、任意数の主走査方向カウンタレジ
スタ47を、副走査方向カウンタレジスタ41の代わり
に設けたものであり、他の構成は、図5と同様になって
いる。主走査方向カウンタレジスタ47は、ヒストグラ
ムメモリ43への書込み領域制御を行うための主走査方
向(センサ13の画素位置)のカウンタ値を設定するた
めのレジスタである。
Second Embodiment FIG. 30 is a configuration diagram of an optical character reading apparatus showing a second embodiment of the present invention, and FIG. 31 is a configuration diagram showing a histogram circuit 40A in FIG. 1 and 5 showing the first embodiment are denoted by common elements. This optical character reading device is obtained by changing the histogram circuit 40 of the optical character reading device of the first embodiment to a histogram circuit 40A, and the other configuration is the same as that of FIG. Histogram circuit 40A
As shown in FIG. 31, an arbitrary number of main scanning direction counter registers 47 are provided in place of the sub-scanning direction counter register 41 as shown in FIG. 31, and the other configuration is the same as that of FIG. The main scanning direction counter register 47 is a register for setting a counter value in the main scanning direction (pixel position of the sensor 13) for controlling a writing area to the histogram memory 43.

【0055】次に、図30の光学式文字読取装置の動作
を説明する。カラーイメージ読取分10、カラー処理部
20は、第1の実施形態と同様の動作を行う。ヒストグ
ラム回路40Aでは、まず、アドレス及び領域切替回路
42に、図示しない制御部からアドレス信号Acを選択
するアドレス切替信号Scが与えられ、データ切替回路
46には、「0」を選択するデータ切替信号Sdが与え
られる。その後に、図示しない制御部からアドレス及び
領域切替回路42にクリア用のアドレス信号Acが順次
与えられると共に、書込みを指定する制御信号R/Wが
それと同期してヒストグラムメモリ43に与えられる。
これにより、ヒストグラムメモリ43がクリアされる。
Next, the operation of the optical character reader of FIG. 30 will be described. The color image reading unit 10 and the color processing unit 20 perform the same operations as in the first embodiment. In the histogram circuit 40A, first, an address and area switching circuit 42 is supplied with an address switching signal Sc for selecting an address signal Ac from a control unit (not shown), and a data switching signal for selecting "0" is supplied to a data switching circuit 46. Sd is provided. Thereafter, a clear address signal Ac is sequentially supplied to the address and area switching circuit 42 from a control unit (not shown), and a control signal R / W designating writing is supplied to the histogram memory 43 in synchronization therewith.
Thereby, the histogram memory 43 is cleared.

【0056】ヒストグラムメモリ43のクリアが終了し
た段階で、制御部はアドレス及び領域切替回路42にカ
ラー識別信号S21及び輝度信号S22を選択するアド
レス切替信号Scを与え、データ切替回路46に加算器
45の出力信号を選択するデータ切替信号Sdを与え
る。この状態では、加算器45の出力端子がヒストグラ
ムメモリ43の入出力端子に接続されたことになる。一
方、主走査方向カウンタレジスタ47には、予め、制御
部により、主走査方向の範囲となる管理カウンタ値が設
定されている。読取対象5のイメージを取得するときに
は、ヒストグラムメモリ43のアドレス入力端子に画素
ごとのカラー識別信号S21と輝度信号S22とが、与
えられる。画素の位置が、或る主走査方向カウンタレジ
スタ47に設定された範囲に入っていれば、その主走査
方向カウンタレジスタ47に対応するヒストグラムメモ
リ43の格納領域に、ヒストグラムの頻度が蓄積され
る。つまり、任意数の主走査方向カウンタレジス47ご
とに、ヒストグラムがそれぞれ作成され、これら主走査
方向カウンタレジス47に設定されていない場所の画素
は、ヒストグラムの対象外になる。レジスタ44、加算
器45、データ切替回路46は、ヒストグラムメモリ4
3に対して第1の実施形態と同様に動作し、主走査方向
カウンタレジス47と同数のヒストグラムを生成する。
多値イメージメモリ30、ヒストグラム解析部50、属
性判定回路60、フィルタ回路70、2値化イメージメ
モリ80及び印字行検出回路90は、第1の実施形態と
同様に動作する。
When the clearing of the histogram memory 43 is completed, the control unit supplies an address switching signal Sc for selecting the color identification signal S21 and the luminance signal S22 to the address and area switching circuit 42, and an adder 45 to the data switching circuit 46. Is provided. In this state, the output terminal of the adder 45 is connected to the input / output terminal of the histogram memory 43. On the other hand, in the main scanning direction counter register 47, a control counter value that is in the range in the main scanning direction is set in advance by the control unit. When an image of the reading target 5 is obtained, a color identification signal S21 and a luminance signal S22 for each pixel are supplied to an address input terminal of the histogram memory 43. If the position of the pixel falls within the range set in a certain main scanning direction counter register 47, the frequency of the histogram is accumulated in the storage area of the histogram memory 43 corresponding to the main scanning direction counter register 47. In other words, a histogram is created for each of the arbitrary number of main scanning direction counter registers 47, and pixels at locations not set in the main scanning direction counter register 47 are excluded from the histogram. The register 44, the adder 45, and the data switching circuit 46
3 operates in the same manner as in the first embodiment, and generates the same number of histograms as the main scanning direction counter register 47.
The multivalued image memory 30, the histogram analyzer 50, the attribute determination circuit 60, the filter circuit 70, the binarized image memory 80, and the print line detection circuit 90 operate in the same manner as in the first embodiment.

【0057】以上のように、この第2の実施形態では、
副走査方向カウンタレジスタ41の代わりに、主走査方
向カウンタレジスタ47を設けたので、例えば、読取対
象5に、図2のような日付欄1aと残高欄1bとがある
場合に、ヒストグラムを作成する領域を日付欄1a或い
は該残高欄1bに限定することができ、先の第2の光学
式文字読取装置よりも、正確に文字を残して地紋のみを
ドロップアウトでき、適格な印字行の検出が可能にな
る。また、ヒストグラムを作成する領域を限定すること
により、処理速度も向上できる。
As described above, in the second embodiment,
Since the main scanning direction counter register 47 is provided instead of the sub scanning direction counter register 41, a histogram is created, for example, when the reading target 5 has a date column 1a and a balance column 1b as shown in FIG. The area can be limited to the date column 1a or the balance column 1b, and it is possible to drop out only the copy-forgery-inhibited pattern while leaving the characters more accurately than the second optical character reading device, and to detect an appropriate print line. Will be possible. In addition, the processing speed can be improved by limiting the area where the histogram is created.

【0058】第3の実施形態 図32は、本発明の第3の実施形態を示す光学式文字読
取装置の構成図であり、図33は、図32中のヒストグ
ラム回路40Bを示す構成図であり、第1の実施形態を
示す図1及び図5中の要素と共通の要素には共通の要素
が付されている。この光学式文字読取装置は、第1の実
施形態の光学式文字読取装置のヒストグラム回路40を
ヒストグラム回路40Bに変更したものであり、他の構
成は図1と同様になっている。
Third Embodiment FIG. 32 is a block diagram showing an optical character reading apparatus according to a third embodiment of the present invention, and FIG. 33 is a block diagram showing a histogram circuit 40B shown in FIG. 1 and 5 showing the first embodiment are denoted by common elements. This optical character reading device is obtained by changing the histogram circuit 40 of the optical character reading device of the first embodiment to a histogram circuit 40B, and the other configuration is the same as that of FIG.

【0059】ヒストグラム回路40Bは、図33のよう
に、任意数の主走査方向カウンタレジスタ48aと、該
主走査方向カウンタレジスタ48aと対をなす副走査方
向カウンタレジスタ48bとを、副走査方向カウンタレ
ジスタ41の代わりに設けている。他の構成は、図5と
同様になっている。主走査方向カウンタレジスタ48a
及び副走査方向カウンタレジスタ48bの各対は、ヒス
トグラムメモリ43への書込み領域制御を行うためのカ
ウンタ値を設定するためのレジスタである。
As shown in FIG. 33, the histogram circuit 40B includes an arbitrary number of main scanning direction counter registers 48a and a sub scanning direction counter register 48b paired with the main scanning direction counter register 48a. It is provided in place of 41. Other configurations are the same as those in FIG. Main scanning direction counter register 48a
Each pair of the sub-scanning direction counter register 48b is a register for setting a counter value for controlling the writing area to the histogram memory 43.

【0060】次に、図32の光学式文字読取装置の動作
を説明する。カラーイメージ読取分10、カラー処理部
20は、第1の実施形態と同様の動作を行う。ヒストグ
ラム回路40Bでは、まず、アドレス及び領域切替回路
42に、図示しない制御部からアドレス信号Acを選択
するアドレス切替信号Scが与えられ、データ切替回路
46には、「0」を選択するデータ切替信号Sdが与え
られる。その後に、図示しない制御部からアドレス及び
領域切替回路42にクリア用のアドレス信号Acが順次
与えられると共に、書込みを指定する制御信号R/Wが
それと同期してヒストグラムメモリ43に与えられる。
これにより、ヒストグラムメモリ43がクリアされる。
Next, the operation of the optical character reader of FIG. 32 will be described. The color image reading unit 10 and the color processing unit 20 perform the same operations as in the first embodiment. In the histogram circuit 40B, first, the address and area switching circuit 42 is supplied with an address switching signal Sc for selecting the address signal Ac from a control unit (not shown), and the data switching circuit 46 is supplied with a data switching signal for selecting "0". Sd is provided. Thereafter, a clear address signal Ac is sequentially supplied to the address and area switching circuit 42 from a control unit (not shown), and a control signal R / W designating writing is supplied to the histogram memory 43 in synchronization therewith.
Thereby, the histogram memory 43 is cleared.

【0061】ヒストグラムメモリ43のクリアが終了し
た段階で、制御部はアドレス及び領域切替回路42にカ
ラー識別信号S21及び輝度信号S22を選択するアド
レス切替信号Scを与え、データ切替回路46に加算器
45の出力信号を選択するデータ切替信号Sdを与え
る。この状態では、加算器45の出力端子がヒストグラ
ムメモリ43の入出力端子に接続されたことになる。一
方、主走査方向カウンタレジスタ48aには、予め、制
御部により、主走査方向の範囲となる管理カウンタ値が
設定され、副走査方向カウンタレジスタ48bには、制
御部により、副走査方向の範囲となる管理カウンタ値が
設定されている。読取対象5のイメージを取得するとき
には、ヒストグラムメモリ43のアドレス入力端子に画
素ごとのカラー識別信号S21と輝度信号S22とが、
与えられる。画素の位置が、或る主走査方向カウンタレ
ジスタ48a及び副走査方向カウンタレジスタ48bに
設定された範囲に入っていれば、その主走査方向カウン
タレジスタ48a及び副走査方向カウンタレジスタ48
bに対応するヒストグラムメモリ43の格納領域に、ヒ
ストグラムの頻度が蓄積される。つまり、任意数の主走
査方向カウンタレジスタ48a及び副走査方向カウンタ
レジスタ48bごとに、ヒストグラムがそれぞれ作成さ
れ、これらに設定されていない場所の画素は、ヒストグ
ラムの対象外になる。レジスタ44、加算器45、デー
タ切替回路46は、ヒストグラムメモリ43に対して第
1の実施形態と同様に動作し、主走査方向カウンタレジ
ス47と同数のヒストグラムを生成する。多値イメージ
メモリ30、ヒストグラム解析部50、属性判定回路6
0、フィルタ回路70、2値化イメージメモリ80及び
印字行検出回路90は、第1の実施形態と同様に動作す
る。
When the clearing of the histogram memory 43 is completed, the control unit supplies the address and area switching circuit 42 with the address switching signal Sc for selecting the color identification signal S21 and the luminance signal S22, and the data switching circuit 46 with the adder 45. Is provided. In this state, the output terminal of the adder 45 is connected to the input / output terminal of the histogram memory 43. On the other hand, in the main scanning direction counter register 48a, a management counter value which is a range in the main scanning direction is set in advance by the control unit, and in the sub scanning direction counter register 48b, the range in the sub scanning direction is set by the control unit. Is set. When acquiring the image of the reading target 5, the color identification signal S21 and the luminance signal S22 for each pixel are input to the address input terminal of the histogram memory 43,
Given. If the position of the pixel falls within the range set in a certain main scanning direction counter register 48a and a certain sub scanning direction counter register 48b, the main scanning direction counter register 48a and the sub scanning direction counter register 48a
The frequency of the histogram is accumulated in the storage area of the histogram memory 43 corresponding to b. That is, a histogram is created for each of the arbitrary number of the main scanning direction counter registers 48a and the sub-scanning direction counter registers 48b, and pixels in places other than those are excluded from the histogram. The register 44, the adder 45, and the data switching circuit 46 operate on the histogram memory 43 in the same manner as in the first embodiment, and generate the same number of histograms as the main scanning direction counter register 47. Multi-valued image memory 30, histogram analyzer 50, attribute determination circuit 6
0, the filter circuit 70, the binarized image memory 80, and the print line detection circuit 90 operate in the same manner as in the first embodiment.

【0062】以上のように、この第3の実施形態では、
主走査方向カウンタレジスタ48a及び副走査方向カウ
ンタレジスタ48bによって、読取対象5に対して矩形
の領域を設定するようにしたので、頁マーク領域2や各
行において、日付欄1aや残高欄1b等の任意の領域の
ヒストグラムを作成することができ、より正確に文字を
残し、地紋のみをドロップアウトできる。
As described above, in the third embodiment,
The main scanning direction counter register 48a and the sub-scanning direction counter register 48b are used to set a rectangular area with respect to the reading target 5. Therefore, in the page mark area 2 and each line, an arbitrary area such as the date section 1a and the balance section 1b is set. Can be created, the characters can be left more accurately, and only the copy-forgery-inhibited pattern can be dropped out.

【0063】なお、本発明は、上記実施形態に限定され
ず種々の変形が可能である。その変形例としては、例え
ば次のようなものがある。 (i) 第1〜3の実施形態では、印字行検出回路90
で文字の有無検出を行うようにしたが、例えば文字切出
部や文字認識部を設けることにより、文字認識装置にす
ることもできる。
Note that the present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications. (I) In the first to third embodiments, the print line detection circuit 90
Is used to detect the presence or absence of a character. However, for example, a character recognition device can be provided by providing a character cutout unit or a character recognition unit.

【0064】(ii) 図34は、第1の実施形態の変形
例の光学式文字認識装置の構成図であり、図35は、図
34中の2値化回路100を示す構成図である。第1の
実施形態では、属性判定回路60及びフィルタ回路70
を用いていたが、これらの属性判定回路60及びフィル
タ回路70の代わりに、図35のような2値化回路10
0を用いて構成することもできる。2値化回路100
は、多値イメージメモリ30に格納された輝度信号S2
2に対し、ヒストグラム解析部50から与えられた2値
化スライス値を用い、白または黒からなる2値イメージ
に変換する回路であり、有彩色文字用レジスタ101、
比較器102、無彩色文字用レジスタ103、比較器1
04及び切替回路105を備えている。比較器102
は、多値イメージメモリ30から読出された輝度信号S
22とレジスタ101から与えられたデータS101と
の比較を行うものであり、出力側が切替回路105に接
続されている。比較器104は、多値イメージメモリ3
0からの輝度信号S22とレジスタ103から与えられ
たデータS103との比較を行うものであり、出力側が
切替回路105に接続されている。切替回路105は、
多値イメージメモリ30から読出されたカラー識別信号
S21が有彩色の画素を示すときに比較器102の出力
信号を選択し、無彩色の画素を示すときに比較器104
の出力信号を選択して出力するものである。
(Ii) FIG. 34 is a configuration diagram of an optical character recognition device according to a modification of the first embodiment, and FIG. 35 is a configuration diagram showing the binarization circuit 100 in FIG. In the first embodiment, the attribute determination circuit 60 and the filter circuit 70
However, instead of the attribute determination circuit 60 and the filter circuit 70, a binarization circuit 10 as shown in FIG.
It can also be configured using 0. Binarization circuit 100
Is the luminance signal S2 stored in the multi-valued image memory 30.
2 is a circuit for converting into a binary image composed of white or black using the binarized slice value given from the histogram analysis unit 50.
Comparator 102, achromatic character register 103, comparator 1
04 and a switching circuit 105. Comparator 102
Is the luminance signal S read from the multi-level image memory 30.
22 is compared with the data S101 given from the register 101, and the output side is connected to the switching circuit 105. The comparator 104 is a multi-valued image memory 3
A comparison is made between the luminance signal S22 from 0 and the data S103 given from the register 103, and the output side is connected to the switching circuit 105. The switching circuit 105
When the color identification signal S21 read from the multi-valued image memory 30 indicates a chromatic pixel, the output signal of the comparator 102 is selected. When the color identification signal S21 indicates an achromatic pixel, the comparator 104 selects the output signal.
Is selected and output.

【0065】このような2値化回路100は、次のよう
な動作を行う。有彩色文字用レジスタ101は、有彩色
文字用の2値化スライス値S101を格納し、比較器1
02に与え、該比較器102が輝度信号S22と該2値
化スライス値S101との比較を行い、白または黒を示
す2値信号S102を生成する。無彩色文字用レジスタ
103は、無彩色文字用の2値化スライス値S103を
格納し、比較器104に与え、該比較器104が輝度信
号S22と該2値化スライス値S103との比較を行
い、白または黒を示す2値信号S104を生成する。切
替回路105は、カラー識別信号S21が当該画素が有
彩色を示すときに2値信号S102を選択し、カラー識
別信号S21が当該画素が無彩色を示すときに2値信号
S104を選択し、2値イメージ信号S100として出
力する。2値化回路100を用いても、2値化されたイ
メージが2値化イメージメモリ80に格納されるので、
第1の実施形態と同様の効果が得られる。さらに、第2
及び第3の実施形態に関しても、属性判定回路60及び
フィルタ回路70の代わりに、2値化回路100を用い
て構成することもできる。
The binarizing circuit 100 operates as follows. The chromatic character register 101 stores the binary slice value S101 for the chromatic character,
02, the comparator 102 compares the luminance signal S22 with the binarized slice value S101 to generate a binary signal S102 indicating white or black. The achromatic character register 103 stores the binary slice value S103 for an achromatic character and supplies the binary slice value S103 to the comparator 104, which compares the luminance signal S22 with the binary slice value S103. , A binary signal S104 indicating white or black is generated. The switching circuit 105 selects the binary signal S102 when the color identification signal S21 indicates the chromatic color of the pixel, and selects the binary signal S104 when the color identification signal S21 indicates the achromatic color of the pixel. It is output as a value image signal S100. Even if the binarizing circuit 100 is used, the binarized image is stored in the binarized image memory 80,
The same effects as in the first embodiment can be obtained. Furthermore, the second
Also, the third embodiment can be configured using a binarization circuit 100 instead of the attribute determination circuit 60 and the filter circuit 70.

【0066】[0066]

【発明の効果】以上詳細に説明したように、第1の発明
によれば、読取対象のイメージを取得する読取手段と、
該読取対象における任意数の所定領域に対応する範囲を
イメージに設定する領域設定手段と、その範囲ごとに第
1及び第2の2値化スライス値を求める解析手段と、後
処理手段とで光学式文字読取装置を構成したので、文字
の有無検出や認識を行う際の処理が、所定領域のみに限
定され、例えば地紋が他の領域と異なる場合にも、第1
及び第2の2値化スライス値が正確に求めることがで
き、文字の有無検出や認識の精度が向上し、かつ、処理
速度が速くなる。
As described above in detail, according to the first aspect, reading means for obtaining an image to be read,
Area setting means for setting a range corresponding to an arbitrary number of predetermined areas in the reading target to an image, analysis means for obtaining first and second binarized slice values for each of the ranges, and post-processing means Since the type character reading device is configured, processing for detecting or recognizing the presence or absence of a character is limited to only a predetermined area.
And the second binarized slice value can be accurately obtained, the accuracy of character presence detection and recognition is improved, and the processing speed is increased.

【0067】第2〜第4の発明によれば、カラーイメー
ジ読取手段、カラー処理手段、多値イメージメモリ、領
域設定手段、ヒストグラム取得手段、ヒストグラム解析
手段、画素属性判定手段、フィルタ手段、2値化イメー
ジメモリ及び文字処理手段を、光学式文字読取装置に設
け、第5の発明によれば、カラーイメージ読取手段、カ
ラー処理手段、多値イメージメモリ、領域設定手段、ヒ
ストグラム取得手段、ヒストグラム解析手段、2値化手
段、2値化イメージメモリ及び文字処理手段を、光学式
文字読取装置に設けたので、第1の発明と同様に、文字
の有無検出や認識を行う際の処理が、所定領域のみに限
定され、例えば地紋が他の領域と異なる場合にも、第1
及び第2の2値化スライス値が正確に求めることがで
き、文字の有無検出や認識の精度が向上し、かつ、処理
速度が速くなる。
According to the second to fourth inventions, a color image reading means, a color processing means, a multi-valued image memory, an area setting means, a histogram acquisition means, a histogram analysis means, a pixel attribute determination means, a filter means, a binary According to a fifth aspect of the present invention, a color image reading device, a color processing device, a multi-valued image memory, an area setting device, a histogram obtaining device, and a histogram analyzing device are provided. Since the binarizing means, the binarized image memory and the character processing means are provided in the optical character reading device, the processing for detecting or recognizing the presence or absence of a character can be performed in a predetermined area as in the first invention. Is limited to only the background pattern.
And the second binarized slice value can be accurately obtained, the accuracy of character presence detection and recognition is improved, and the processing speed is increased.

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

【図1】本発明の第1の実施形態を示す光学式文字読取
装置の構成図である。
FIG. 1 is a configuration diagram of an optical character reading device according to a first embodiment of the present invention.

【図2】通帳フォーマットの1例を示す図である。FIG. 2 is a diagram showing an example of a passbook format.

【図3】図1中のカラーイメージ読取部10の概要を示
す構成図である。
FIG. 3 is a configuration diagram illustrating an outline of a color image reading unit 10 in FIG. 1;

【図4】図1中のカラー処理部20を示す構成図であ
る。
FIG. 4 is a configuration diagram showing a color processing unit 20 in FIG. 1;

【図5】図1中のヒストグラム回路40を示す構成図で
ある。
FIG. 5 is a configuration diagram showing a histogram circuit 40 in FIG. 1;

【図6】図5中のヒストグラムメモリ43の内容を示す
図である。
6 is a diagram showing the contents of a histogram memory 43 in FIG.

【図7】図1中のヒストグラム解析部50を示す構成図
である。
FIG. 7 is a configuration diagram showing a histogram analyzer 50 in FIG. 1;

【図8】図1中の属性判定回路60の概要を示す図であ
る。
FIG. 8 is a diagram showing an outline of an attribute determination circuit 60 in FIG. 1;

【図9】図1中のフィルタ回路70の構成図である。9 is a configuration diagram of a filter circuit 70 in FIG.

【図10】画素配列を示す図である。FIG. 10 is a diagram showing a pixel array.

【図11】読取対象5の走査方向を示す図である。FIG. 11 is a diagram showing a scanning direction of a reading target 5;

【図12】無彩色ヒストグラム及び有彩色ヒストグラム
を示す図である。
FIG. 12 is a diagram showing an achromatic color histogram and a chromatic color histogram.

【図13】ヒストグラム解析部50の処理内容を示す図
である。
FIG. 13 is a diagram showing processing contents of a histogram analysis unit 50;

【図14】無彩色パレート算出処理を示すフローチャー
トである。
FIG. 14 is a flowchart illustrating an achromatic color Pareto calculation process.

【図15】図12(a)に対応する百分率表現した無彩
色最大成分パレート図である。
FIG. 15 is an achromatic maximum component pareto diagram expressed as a percentage corresponding to FIG. 12 (a).

【図16】有彩色パレート算出処理を示すフローチャー
トである。
FIG. 16 is a flowchart showing a chromatic pareto calculation process.

【図17】図12(b)に対応する百分率表現した有彩
色最大成分パレート図である。
FIG. 17 is a chromatic color maximum component Pareto diagram expressed as a percentage corresponding to FIG. 12 (b).

【図18】無彩色パレート変化率算出処理を示すフロー
チャートである。
FIG. 18 is a flowchart illustrating an achromatic color Pareto change rate calculation process.

【図19】図15に対応する百分率表現した無彩色最大
成分パレート変化率を示す図である。
FIG. 19 is a diagram illustrating the achromatic color maximum component Pareto change rate expressed as a percentage corresponding to FIG. 15;

【図20】有彩色パレート変化率算出処理を示すフロー
チャートである。
FIG. 20 is a flowchart illustrating a chromatic Pareto change rate calculation process.

【図21】図17に対応する百分率表現した有彩色最大
成分パレート変化率を示す図である。
21 is a diagram illustrating a chromatic color maximum component Pareto change rate expressed as a percentage corresponding to FIG. 17;

【図22】有彩色パレート変化率解析処理(その1)を
示すフローチャートである。
FIG. 22 is a flowchart showing a chromatic color Pareto change rate analysis process (1).

【図23】有彩色パレート変化率解析処理(その2)を
示すフローチャートである。
FIG. 23 is a flowchart showing a chromatic color Pareto change rate analysis process (2).

【図24】有彩色パレート変化率解析処理(その3)を
示すフローチャートである。
FIG. 24 is a flowchart showing a chromatic color Pareto change rate analysis process (3).

【図25】図22中のステップSTP49における属性
判定の判定条件を示す図である。
FIG. 25 is a diagram showing a determination condition for attribute determination in step STP49 in FIG. 22.

【図26】無彩色パレート変化率解析処理(その1)を
示すフローチャートである。
FIG. 26 is a flowchart showing an achromatic color Pareto change rate analysis process (1).

【図27】無彩色パレート変化率解析処理(その2)を
示すフローチャートである。
FIG. 27 is a flowchart showing an achromatic color Pareto change rate analysis process (2).

【図28】無彩色パレート変化率解析処理(その3)を
示すフローチャートである。
FIG. 28 is a flowchart showing achromatic color Pareto change rate analysis processing (3).

【図29】組み合わせ論理回路77の論理を示す図であ
る。
FIG. 29 is a diagram showing the logic of the combinational logic circuit 77;

【図30】本発明の第2の実施形態を示す光学式文字読
取装置の構成図である。
FIG. 30 is a configuration diagram of an optical character reading device according to a second embodiment of the present invention.

【図31】図30中のヒストグラム回路40Aを示す構
成図である。
FIG. 31 is a configuration diagram showing a histogram circuit 40A in FIG. 30;

【図32】本発明の第3の実施形態を示す光学式文字読
取装置の構成図である。
FIG. 32 is a configuration diagram of an optical character reading apparatus according to a third embodiment of the present invention.

【図33】図32中のヒストグラム回路40Bを示す構
成図である。
FIG. 33 is a configuration diagram showing a histogram circuit 40B in FIG. 32;

【図34】第1の実施形態の変形例の光学式文字認識装
置の構成図である。
FIG. 34 is a configuration diagram of an optical character recognition device according to a modification of the first embodiment.

【図35】図34中の2値化回路100を示す構成図で
ある。
FIG. 35 is a configuration diagram showing a binarization circuit 100 in FIG. 34;

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

5 読取対象 10 カラーイメージ読取部 20 カラー処理部 30 多値イメージメモリ 40,40A,40B ヒストグラム回路 41,48b 副走査方向カウンタレジスタ 47,48a 主走査方向カウンタレジスタ 50 ヒストグラム解析部 60 属性判定回路 70 フィルタ回路 80 2値化イメージメモリ 90 印字行検出回路 100 2値化回路 5 Reading target 10 Color image reading unit 20 Color processing unit 30 Multi-valued image memory 40, 40A, 40B Histogram circuit 41, 48b Sub-scanning direction counter register 47, 48a Main scanning direction counter register 50 Histogram analysis unit 60 Attribute determination circuit 70 Filter Circuit 80 Binary image memory 90 Print line detection circuit 100 Binary circuit

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 表面に地紋がカラーで印刷されると共に
文字が該地紋に重ねて無彩色で記入または印刷された読
取対象から光学的にイメージを取得し、該文字の有無検
出或いは認識を行う光学式文字読取装置において、 前記読取対象からイメージを光学的に取得し、該イメー
ジを走査して該読取対象の各画素を表す色成分信号を該
画素単位に出力する読取手段と、 前記読取対象における任意数の所定領域に対応する範囲
を前記イメージに対して設定する領域設定手段と、 前記色成分信号に基づき前記画素が有彩色画素か無彩色
画素かを判定し、前記設定された範囲ごとにそれぞれの
出現頻度を解析することにより、該範囲ごとに、該有彩
色画素と判定された画素に関して前記地紋と前記文字と
を区別するための第1の2値化スライス値と、該無彩色
画素と判定された画素に関して該地紋と該文字とを区別
するための第2の2値化スライス値とを求める解析手段
と、 前記第1及び第2の2値化スライス値を利用して各画素
を2値化し、該2値化結果で得られるイメージに基づき
前記読取対象の前記各所定領域中の前記文字の有無の検
出或いは認識を行う後処理手段とを、備えたことを特徴
とする光学式文字読取装置。
1. A background pattern is printed in color on a surface and a character is superimposed on the background pattern and an image is optically acquired from an object to be written or printed in achromatic color to detect or recognize the presence or absence of the character. An optical character reading device, a reading unit that optically acquires an image from the reading target, scans the image, and outputs a color component signal representing each pixel of the reading target in pixel units; Region setting means for setting a range corresponding to an arbitrary number of predetermined regions in the image, determining whether the pixel is a chromatic pixel or an achromatic pixel based on the color component signal, and for each of the set ranges By analyzing the respective appearance frequencies, a first binarized slice value for distinguishing the tint block and the character with respect to the pixel determined to be the chromatic pixel for each of the ranges, Analyzing means for obtaining a second binarized slice value for discriminating the tint block and the character with respect to a pixel determined to be an achromatic pixel; and using the first and second binarized slice values. And a post-processing means for detecting or recognizing the presence / absence of the character in each of the predetermined regions of the reading target based on an image obtained as a result of the binarization. Optical character reader.
【請求項2】 表面に地紋がカラーで印刷されると共に
文字が該地紋に重ねて無彩色で記入または印刷された読
取対象から光学的にイメージを取得し、該文字の有無の
検出或いは認識を行う光学式文字読取装置において、 前記読取対象のイメージを光学的に取得し、該読取対象
のイメージに対して主走査及び副走査を行って該読取対
象の各画素を表す赤、緑及び青の原色成分信号を該画素
単位に出力するカラーイメージ読取手段と、 前記赤、緑及び青の原色成分信号に基づき前記画素が有
彩色画素か無彩色画素かを識別して該識別結果のカラー
識別信号を出力すると共に、該赤、緑及び青の原色成分
信号のうちの最も輝度の高い信号を多値の輝度信号とし
て出力するカラー処理手段と、 前記カラー識別信号と前記輝度信号とを格納する多値イ
メージメモリと、 前記読取対象における任意数の所定領域に対応する範囲
を前記イメージの前記副走査方向に設定する領域設定手
段と、 前記カラー識別信号と前記輝度信号とを入力し、前記設
定された範囲ごとに、前記有彩色画素及び無彩色画素に
ついて前記輝度信号の各階調レベルに入る画素数を数え
て有彩色ヒストグラム及び無彩色ヒストグラムを求める
ヒストグラム取得手段と、 前記各有彩色ヒストグラム及び各無彩色ヒストグラムの
凹凸を解析し、前記有彩色画素と判定された画素に関し
て前記地紋と前記文字とを区別するための第1の2値化
スライス値と、前記無彩色画素と判定された画素に関し
て該地紋と該文字とを区別するための第2の2値化スラ
イス値とを、前記設定された範囲ごとに求めるヒストグ
ラム解析手段と、 前記設定された範囲ごとの前記カラー識別信号、前記輝
度信号、前記第1の2値化スライス値及び前記第2の2
値化スライス値を入力し、注目画素が白か黒か他の色の
画素に属するかを順次判定し、該判定結果を画素属性と
して出力する画素属性判定手段と、 前記画素属性判定手段から前記画素属性を入力し、注目
画素の該画素属性或いは該注目画素と周囲の画素の該画
素属性との関連から、該注目画素が前記文字の一部を構
成する画素か他の部分を構成する画素かを判定し、該文
字の一部を構成する画素を黒とし、該他の部分を構成す
る画素を白とする2値化を行うフィルタ手段と、 前記フィルタ手段での2値化結果を2値化イメージとし
て蓄積する2値化イメージメモリと、 前記2値化イメージメモリに蓄積された2値化イメージ
に基づき前記読取対象の前記各所定領域中の文字の有無
検出或いは認識を行う文字処理手段とを、備えたことを
特徴とする光学式文字読取装置。
2. A copy-forgery-inhibited pattern is printed in color on the surface, and a character is superimposed on the copy-forgery-inhibited pattern and an image is optically obtained from an object to be written or printed in achromatic color. In the optical character reading device to perform, the image of the reading target is optically acquired, and the main scanning and the sub-scanning are performed on the image of the reading target to perform red, green, and blue representing each pixel of the reading target. A color image reading means for outputting a primary color component signal on a pixel-by-pixel basis; and a color identification signal of the identification result by identifying whether the pixel is a chromatic pixel or an achromatic pixel based on the red, green and blue primary color component signals. And a color processing means for outputting a signal having the highest luminance among the red, green and blue primary color component signals as a multi-valued luminance signal, and a multi-processing means for storing the color identification signal and the luminance signal. Value An image memory; an area setting means for setting a range corresponding to an arbitrary number of predetermined areas in the reading object in the sub-scanning direction of the image; and inputting the color identification signal and the luminance signal, For each range, for each of the chromatic color pixels and the achromatic color pixels, a histogram acquisition unit that counts the number of pixels entering each gradation level of the luminance signal to obtain a chromatic color histogram and an achromatic color histogram; A first binarized slice value for analyzing the unevenness of the histogram and distinguishing the tint block and the character for the pixel determined to be the chromatic pixel, and the tint block for the pixel determined to be the achromatic pixel. Histogram analysis means for obtaining, for each set range, a second binarized slice value for distinguishing the character from the character. The color identification signal, the luminance signal, the first binarized slice value, and the second 2
A pixel-slicing value is input, the pixel-of-interest is sequentially determined whether the pixel of interest belongs to a pixel of white, black, or another color, and the determination result is output as a pixel attribute. A pixel attribute is inputted, and the pixel of interest forms a pixel forming part of the character or another part based on the pixel attribute of the pixel of interest or the relation between the pixel of interest and the pixel attribute of surrounding pixels. Filter means for making the pixels constituting part of the character black and the pixels constituting the other parts white, and a binarization result obtained by the filter means A binarized image memory for accumulating as a binarized image, and a character processing unit for detecting or recognizing the presence or absence of a character in each of the predetermined regions to be read based on the binarized image stored in the binarized image memory And characterized by having Optical character reader for.
【請求項3】 請求項2記載のカラーイメージ読取手
段、カラー処理手段、及び多値イメージメモリと、 前記読取対象における任意数の所定領域に対応する範囲
を前記イメージの前記主走査方向に設定する領域設定手
段と、 請求項2記載のヒストグラム取得手段、ヒストグラム解
析手段、画素属性判定手段、フィルタ手段、2値化イメ
ージメモリ及び文字処理手段とを、備えたことを特徴と
する光学式文字読取装置。
3. A color image reading unit, a color processing unit, and a multi-valued image memory according to claim 2, wherein a range corresponding to an arbitrary number of predetermined regions in the reading target is set in the main scanning direction of the image. 3. An optical character reading apparatus comprising: an area setting unit; and a histogram acquisition unit, a histogram analysis unit, a pixel attribute determination unit, a filter unit, a binarized image memory, and a character processing unit according to claim 2. .
【請求項4】 請求項2記載のカラーイメージ読取手
段、カラー処理手段、及び多値イメージメモリと、 前記読取対象における任意数の所定領域に対応する範囲
を前記イメージの前記主走査方向及び副走査方向に設定
する領域設定手段と、 請求項2記載のヒストグラム取得手段、ヒストグラム解
析手段、画素属性判定手段、フィルタ手段、2値化イメ
ージメモリ及び文字処理手段とを、備えたことを特徴と
する光学式文字読取装置。
4. A color image reading unit, a color processing unit, and a multi-valued image memory according to claim 2, wherein a range corresponding to an arbitrary number of predetermined regions in the reading target is set in the main scanning direction and sub-scanning of the image. 3. An optical system comprising: an area setting unit for setting a direction; and a histogram acquisition unit, a histogram analysis unit, a pixel attribute determination unit, a filter unit, a binarized image memory, and a character processing unit according to claim 2. Type character reader.
【請求項5】 請求項2、3または4記載のカラーイメ
ージ読取手段、カラー処理手段、多値イメージメモリ、
領域設定手段、ヒストグラム取得手段及びヒストグラム
解析手段と、 前記多値イメージメモリから読出した前記設定された範
囲の前記カラー識別信号及び前記輝度信号を入力し、該
カラー識別信号が前記有彩色画素を示す画素に対しては
前記第1の2値化スライス値で該輝度信号を白または黒
に2値化し、前記カラー識別信号が前記無彩色画素を示
す画素に対しては前記第2の2値化スライス値で該輝度
信号を白または黒に2値化する2値化手段と、 前記2値化手段での2値化結果を2値化イメージとして
蓄積する2値化イメージメモリと、 請求項2、3または4記載の文字処理手段とを、備えた
ことを特徴とする光学式文字読取装置。
5. A color image reading means, a color processing means, a multi-valued image memory according to claim 2, 3 or 4,
An area setting unit, a histogram acquisition unit, and a histogram analysis unit; inputting the color identification signal and the luminance signal in the set range read from the multi-valued image memory, wherein the color identification signal indicates the chromatic color pixel For a pixel, the luminance signal is binarized to white or black with the first binarized slice value, and for a pixel whose color identification signal indicates the achromatic pixel, the second binarization is performed. 3. A binarizing means for binarizing the luminance signal to white or black with a slice value, and a binarized image memory for storing a binarized result of the binarizing means as a binarized image. An optical character reading device comprising: the character processing means according to claim 3 or 4.
JP30105799A 1999-10-22 1999-10-22 Optical character reader Withdrawn JP2001118031A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP30105799A JP2001118031A (en) 1999-10-22 1999-10-22 Optical character reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP30105799A JP2001118031A (en) 1999-10-22 1999-10-22 Optical character reader

Publications (1)

Publication Number Publication Date
JP2001118031A true JP2001118031A (en) 2001-04-27

Family

ID=17892354

Family Applications (1)

Application Number Title Priority Date Filing Date
JP30105799A Withdrawn JP2001118031A (en) 1999-10-22 1999-10-22 Optical character reader

Country Status (1)

Country Link
JP (1) JP2001118031A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8326028B2 (en) 2007-12-26 2012-12-04 Hitachi Computer Peripherals Co., Ltd. Dropout color processing method and processing apparatus using same
US8693743B1 (en) 2010-02-19 2014-04-08 Olive Tree Media, LLC Analysis and display of multiple biomarker co-expression in cells and tissues
US10621459B2 (en) 2016-03-29 2020-04-14 Brother Kogyo Kabushiki Kaisha Image processing apparatus and method for binarization of image data according to adjusted histogram threshold index values

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8326028B2 (en) 2007-12-26 2012-12-04 Hitachi Computer Peripherals Co., Ltd. Dropout color processing method and processing apparatus using same
US8693743B1 (en) 2010-02-19 2014-04-08 Olive Tree Media, LLC Analysis and display of multiple biomarker co-expression in cells and tissues
US10621459B2 (en) 2016-03-29 2020-04-14 Brother Kogyo Kabushiki Kaisha Image processing apparatus and method for binarization of image data according to adjusted histogram threshold index values

Similar Documents

Publication Publication Date Title
EP1456816B1 (en) Apparatus and method for recognizing code
JP5337563B2 (en) Form recognition method and apparatus
US7123768B2 (en) Apparatus and method for detecting a pattern
WO2015002719A1 (en) Method of improving contrast for text extraction and recognition applications
JP3882803B2 (en) Image processing apparatus and image processing method
JPH08172532A (en) Image reader and read method
JP2001118031A (en) Optical character reader
JP3906221B2 (en) Image processing method and image processing apparatus
US20040042657A1 (en) Electronic color dropout utilizing spatial context to enhance accuracy
JP4728297B2 (en) Two-dimensional code reading apparatus and method
JP2637541B2 (en) Color identification method and device
JP2001005912A (en) Optical character reader
JP2637498B2 (en) Image signal processing device
JP2004320447A (en) Image processing apparatus, image processing method, and program for execution by computer
JP3792402B2 (en) Image processing apparatus, binarization method, and machine-readable recording medium recording a program for causing a computer to execute the binarization method
JP2007243330A (en) Image processing apparatus, and information output method of dot character
JP2894111B2 (en) Comprehensive judgment method of recognition result in optical type character recognition device
JP2005303584A (en) Image processing apparatus and image processing method
JP3759349B2 (en) Image analysis apparatus and image analysis method
JPH1051655A (en) Image processor and optical character reader
JPH0877292A (en) Image processor
JP4578004B2 (en) Scanner and binarization method by controlling light source color of scanner
JPH06309496A (en) Optical reader
JP2006106876A (en) Character reading apparatus, character reading method, and business form
JPH10261045A (en) Optical character reader

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20070109