JP2002158874A - Image processor - Google Patents

Image processor

Info

Publication number
JP2002158874A
JP2002158874A JP2000355370A JP2000355370A JP2002158874A JP 2002158874 A JP2002158874 A JP 2002158874A JP 2000355370 A JP2000355370 A JP 2000355370A JP 2000355370 A JP2000355370 A JP 2000355370A JP 2002158874 A JP2002158874 A JP 2002158874A
Authority
JP
Japan
Prior art keywords
pixel
area
character
interest
region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000355370A
Other languages
Japanese (ja)
Other versions
JP4122703B2 (en
Inventor
Koji Ito
晃治 伊東
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 JP2000355370A priority Critical patent/JP4122703B2/en
Publication of JP2002158874A publication Critical patent/JP2002158874A/en
Application granted granted Critical
Publication of JP4122703B2 publication Critical patent/JP4122703B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processor in which a character can be distinguished surely from a background pixel based on a color signal. SOLUTION: A color signal delivered from a photoelectric converting section 1 is stored in a color image memory 2 and then used for calculating the chroma of each pixel at a chroma calculating section. At an area classifying section 4, each pixel is classified into a character area, an intermediate area and a background area based on the chroma. A character area deciding section 10 retrieves pixels in the peripheral character area centering a pixel in the intermediate area and calculates the difference between a pixel in the intermediate area and the color signal of a pixel in the character area. If the difference of the color signal is not larger than a preset threshold value, classification of a pixel in the intermediate area is corrected to the character area.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像を文字
認識等のために2値化する画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for binarizing a color image for character recognition and the like.

【0002】[0002]

【従来の技術】従来、カラー画像を読み取って文字認識
を行う文字認識装置は、カラー画像をR(赤色)、G
(緑色)、B(青色)の3色に分解して読み取るカラー
センサを有し、このカラーセンサから得られるR,G,
Bのカラー信号に基づいて文字を構成する黒画素を抽出
するように構成されていた。
2. Description of the Related Art Conventionally, a character recognition apparatus for reading a color image and performing character recognition uses a color image of R (red), G
(Green) and B (blue), which are read out after being separated into three colors, and R, G, and
The black pixels constituting the character are extracted based on the B color signal.

【0003】このような文字認識装置では、カラーセン
サから得られたR,G,Bのカラー信号の輝度値が、す
べて所定の閾値よりも小さい場合に、黒色と判定して文
字を構成する画素を抽出するようになっていた。
In such a character recognition device, when the luminance values of the R, G, and B color signals obtained from the color sensor are all smaller than a predetermined threshold value, it is determined that the pixel is black and a pixel constituting a character is determined. Was to be extracted.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、従来の
文字認識装置では、次のような課題があった。即ち、
R,G,Bのカラー信号の輝度がすべて閾値よりも小さ
い画素を、文字画素と判定している。このため、例えば
文字記入枠(または背景色)に暗い色またはくすんだ色
が使用されている場合、文字記入枠(または背景色)が
文字画素として検出されてノイズとなる場合があった。
一方、文字記入枠の輝度に合わせて閾値を決定すると、
読み取った文字にかすれが生じるという問題があった。
However, the conventional character recognition device has the following problems. That is,
Pixels in which the luminance of the R, G, and B color signals are all smaller than the threshold value are determined as character pixels. For this reason, for example, when a dark or dull color is used for the character entry frame (or background color), the character entry frame (or background color) may be detected as a character pixel and cause noise.
On the other hand, if the threshold is determined according to the luminance of the character entry frame,
There is a problem that the read characters are blurred.

【0005】例えば、茶色で印刷された文字記入枠をカ
ラーセンサで読み取った場合、Bのカラー信号の輝度が
最も小さくなるので、この輝度に基づいて閾値が決定さ
れる。このような閾値を使用することにより、文字記入
枠が検出されることがなくなる。しかし、文字記入枠が
検出されないような小さな閾値を使用することにより、
実際に記入された文字部分を確実に文字画素として検出
することが困難になり、読み取られた文字にかすれが発
生するという問題が生じることがあった。
For example, when a character entry frame printed in brown is read by a color sensor, the luminance of the B color signal becomes the smallest, and the threshold value is determined based on this luminance. By using such a threshold, the character entry frame is not detected. However, by using such a small threshold that the text box is not detected,
It has been difficult to reliably detect the actually written character portion as a character pixel, and there has been a problem that the read character may be blurred.

【0006】本発明は、前記従来技術が持っていた課題
を解決し、カラー信号に基づいて文字と背景の画素を確
実に判別できる画像処理装置を提供するものである。
An object of the present invention is to solve the problems of the prior art and to provide an image processing apparatus capable of reliably determining a character and a background pixel based on a color signal.

【0007】[0007]

【課題を解決するための手段】前記課題を解決するため
に、本発明の内の第1の発明は、画像処理装置におい
て、画像を構成する画素の赤色成分、緑色成分及び青色
成分のカラー信号に基づいて、画素毎の彩度または明度
を算出する画素情報算出手段と、前記画素情報算出手段
で算出された彩度または明度に基づいて、各画素を文字
領域、中間領域または背景領域のいずれかに分類する画
素領域分類手段と、前記画素領域分類手段で中間領域に
分類された画素のカラー信号を、その画素を中心とする
所定の範囲内に存在する文字領域または背景領域の画素
のカラー信号と比較して、該中間領域に分類された画素
の領域を文字領域または背景領域に補正する画素領域補
正手段とを備えている。
According to a first aspect of the present invention, there is provided an image processing apparatus comprising: a color signal of a red component, a green component, and a blue component of a pixel forming an image; Pixel information calculating means for calculating the saturation or lightness of each pixel based on the pixel information, and based on the saturation or lightness calculated by the pixel information calculating means, each of the pixels is a character area, an intermediate area or a background area. A pixel area classifying means for classifying the color area of the pixel in the character area or the background area within a predetermined range centered on the pixel; A pixel area correction unit that corrects a pixel area classified as the intermediate area into a character area or a background area as compared with the signal.

【0008】第2の発明は、第1の発明における画素領
域補正手段を、中間領域の画素を着目画素として該着目
画素を中心とするm×n(但し、m,nは複数)画素の
窓を設定し、該窓の中に文字領域の画素が存在する場合
に該文字領域の画素と着目画素のカラー信号を比較し、
その差が閾値以下のときに該着目画素の領域を文字領域
に補正する処理を、補正される中間領域の画素がなくな
るまで順次繰り返して行うように構成している。
According to a second aspect of the present invention, the pixel area correcting means according to the first aspect of the present invention uses the pixel of the intermediate area as a pixel of interest and a window of m × n pixels (where m and n are plural) around the pixel of interest. Is set, and when the pixel of the character area exists in the window, the color signal of the pixel of the character area and the color signal of the target pixel are compared,
When the difference is equal to or smaller than the threshold value, the process of correcting the region of the pixel of interest into a character region is sequentially repeated until there is no more pixel in the intermediate region to be corrected.

【0009】第3の発明は、第1の発明における画素領
域補正手段を、文字領域の画素に隣接する中間領域の画
素を着目画素として該着目画素を中心とする8方向の放
射線上に連続する中間領域の画素を検索し、検索された
中間領域の画素及び該着目画素とこの着目画素に隣接す
る文字領域の画素のカラー信号を比較し、その差が閾値
以下のときに該着目画素及び検索された中間領域の画素
の領域を文字領域に補正する処理を、順次行うように構
成している。
According to a third aspect of the present invention, the pixel area correcting means according to the first aspect of the invention is arranged such that a pixel in an intermediate area adjacent to a pixel in a character area is a pixel of interest and is continuous on radiation in eight directions around the pixel of interest. A pixel in the intermediate region is searched, and color signals of the searched pixel in the intermediate region and the pixel of interest and a pixel in a character region adjacent to the pixel of interest are compared. The processing of correcting the pixel region of the intermediate region thus obtained into a character region is sequentially performed.

【0010】第4の発明は、第1の発明における画素領
域補正手段を、一定範囲内に存在する画素毎に、中間領
域の画素を着目画素として該着目画素を中心とするm×
n(但し、m,nは複数)画素の窓を設定し、該窓の中
に文字領域の画素が存在する場合に該文字領域の画素と
着目画素のカラー信号を比較し、その差が閾値以下のと
きに該着目画素の領域を文字領域に補正し、補正した文
字領域の線幅を算出する処理を、その算出した線幅が予
め設定した条件を満たすまで順次繰り返して行うように
構成している。
According to a fourth aspect of the present invention, the pixel area correcting means according to the first aspect of the present invention comprises:
A window of n (where m and n are plural) pixels is set, and when a pixel of a character region exists in the window, the color signal of the pixel of the character region and the color signal of the target pixel are compared. In the following, the processing of correcting the area of the pixel of interest into a character area and calculating the line width of the corrected character area is sequentially performed until the calculated line width satisfies a preset condition. ing.

【0011】本発明によれば、以上のように画像処理装
置を構成したので、次のような作用が行われる。
According to the present invention, since the image processing apparatus is configured as described above, the following operation is performed.

【0012】画素情報算出手段により、画像を構成する
画素の赤色成分、緑色成分及び青色成分のカラー信号に
基づいて、画素毎の彩度または明度が算出される。画素
領域分類手段では、算出された彩度または明度に基づい
て、各画素が文字領域、中間領域または背景領域のいず
れかに分類される。中間領域に分類された画素は、画素
領域補正手段によって、その画素のカラー信号と、その
画素を中心とする所定の範囲内に存在する文字領域また
は背景領域の画素のカラー信号とが比較される。更に、
中間領域に分類された画素の領域は、画素領域補正手段
の比較結果に基づいて、文字領域または背景領域に補正
される。
The pixel information calculation means calculates the saturation or brightness of each pixel based on the color signals of the red, green and blue components of the pixels constituting the image. The pixel area classifying means classifies each pixel into a character area, an intermediate area, or a background area based on the calculated saturation or brightness. For the pixels classified into the intermediate region, the color signal of the pixel is compared with the color signal of the pixel in the character region or the background region existing within a predetermined range centered on the pixel by the pixel region correction unit. . Furthermore,
The pixel area classified as the intermediate area is corrected to a character area or a background area based on the comparison result of the pixel area correction unit.

【0013】[0013]

【発明の実施の形態】(第1の実施形態)図1は、本発
明の第1の実施形態を示す画像処理装置の構成図であ
る。この画像処理装置は、帳票を画素に分解して読み取
り、各画素毎にR,G,Bの輝度をカラー信号r,g,
bとして出力する光電変換部1を有している。光電変換
部1の出力側には、1画面分のカラー信号r,g,bを
格納するカラー画像メモリ2が接続されている。
(First Embodiment) FIG. 1 is a configuration diagram of an image processing apparatus showing a first embodiment of the present invention. This image processing apparatus separates a form into pixels and reads the pixels, and calculates the luminance of R, G, and B for each pixel by color signals r, g,
It has a photoelectric conversion unit 1 that outputs as b. The output side of the photoelectric conversion unit 1 is connected to a color image memory 2 for storing color signals r, g, b for one screen.

【0014】カラー画像メモリ2には、画像情報算出手
段(例えば、彩度算出部)3が接続されている。彩度算
出部3は、カラー画像メモリ2に格納されたカラー信号
r,g,bに基づいて、次の(1)式によって彩度Sを
算出するものである。 S={(r−g)2 +(r−b)2 +(g−b)2 }/2 ・・・(1) なお、r,g,bは、それぞれ0〜1の範囲に収まるよ
うに正規化された輝度値である。これにより、彩度Sは
0から1の範囲内の値となる。
The color image memory 2 is connected to image information calculation means (for example, a saturation calculation unit) 3. The saturation calculator 3 calculates the saturation S by the following equation (1) based on the color signals r, g, and b stored in the color image memory 2. S = {(r−g) 2 + (r−b) 2 + (g−b) 2 } / 2 (1) where r, g, and b are each within the range of 0 to 1. Is a luminance value normalized to. Thereby, the saturation S takes a value in the range of 0 to 1.

【0015】彩度算出部3で算出された彩度Sは、画素
領域分類手段(例えば、領域分類部)4へ与えられるよ
うになっている。領域分類部4は、各画素の領域を、文
字領域、中間領域または背景領域のいずれかに分類する
ものである。領域分類部4で分類された各画素の領域情
報と、カラー画像メモリ2に格納されたカラー信号r,
g,bは、画素領域補正手段(例えば、文字領域判定
部)10に与えられるようになっている。
The saturation S calculated by the saturation calculation section 3 is provided to a pixel area classification means (for example, an area classification section) 4. The area classification unit 4 classifies the area of each pixel into any of a character area, an intermediate area, and a background area. The area information of each pixel classified by the area classification unit 4 and the color signals r,
g and b are provided to a pixel area correction unit (for example, a character area determination unit) 10.

【0016】文字領域判定部10は、領域分類部4から
与えられた各画素の領域情報の内、中間領域に分類され
た画素を、文字領域または背景領域のいずれかに確定し
て2値化するものである。文字領域判定部10は、イメ
ージメモリ11、中間領域検出部12及び領域補正部1
3で構成されている。
The character area determination unit 10 determines a pixel classified as an intermediate area from the area information of each pixel supplied from the area classification unit 4 as a character area or a background area and binarizes the pixel. Is what you do. The character area determination unit 10 includes an image memory 11, an intermediate area detection unit 12, and an area correction unit 1.
3.

【0017】イメージメモリ11は、画像を構成する画
素毎の領域情報を格納するもので、領域分類部4で分類
された各画素の領域情報が書き込まれると共に、領域補
正部13からの補正情報によって、その領域情報が補正
されるようになっている。
The image memory 11 stores the area information of each pixel constituting the image. The area information of each pixel classified by the area classification section 4 is written in the image memory 11 and the area information of the pixel is corrected by the correction information from the area correction section 13. , The area information is corrected.

【0018】中間領域検出部12は、イメージメモリ1
1中の中間領域の画素を検索して着目画素とし、この着
目画素の位置に基づいてカラー画像メモリ2から着目画
素とその周辺の一定範囲の画素のカラー信号r,g,b
を読み出すものである。中間領域検出部12で読み出さ
れた着目画素と、その周辺の画素のカラー信号r,g,
bは、領域補正部13に与えられるようになっている。
The intermediate area detecting section 12 is provided in the image memory 1
1, a pixel in the intermediate region is searched and used as a pixel of interest. Based on the position of this pixel of interest, the color signals r, g, b of the pixel of interest and pixels in a certain range around the pixel of interest are obtained.
Is read. The pixel of interest read by the intermediate area detection unit 12 and the color signals r, g,
b is provided to the area correction unit 13.

【0019】領域補正部13は、着目画素を中間領域か
ら文字領域に補正するか否かを判定し、補正する場合に
はイメージメモリ11中の領域情報を書き替えるもので
ある。具体的には、領域補正部13において、着目画素
のカラー信号r,g,bと、文字領域の画素のカラー信
号r,g,bが各成分毎に比較され、各成分の差が予め
設定された閾値以下の時に、着目画素が文字領域に補正
されるようになっている。
The area correction section 13 determines whether or not the target pixel is corrected from the intermediate area to the character area, and rewrites the area information in the image memory 11 when correcting. Specifically, in the area correction unit 13, the color signals r, g, b of the pixel of interest and the color signals r, g, b of the pixels in the character area are compared for each component, and the difference between the components is set in advance. When the value is equal to or smaller than the threshold value, the pixel of interest is corrected to a character area.

【0020】中間領域検出部12によるイメージメモリ
11中の中間領域の画素の検索は、このイメージメモリ
11の先頭から末尾まで順番に、補正される着目画素が
無くなるまで繰り返えして行われる。そして、最終的に
イメージメモリ11に書き込まれた領域情報が、2値化
された出力信号OUTとして出力されるようになってい
る。
The search of the pixels in the intermediate area in the image memory 11 by the intermediate area detecting section 12 is repeatedly performed in order from the beginning to the end of the image memory 11 until there is no more pixel of interest to be corrected. Then, the area information finally written in the image memory 11 is output as a binarized output signal OUT.

【0021】図2は、図1中の領域分類部4における処
理の説明図である。図3は、図1中の文字領域判定部1
0における処理範囲の説明図である。また、図4は、図
1の動作を示すフローチャートである。以下、これらの
図2〜図4を参照しつつ、図1の動作を説明する。
FIG. 2 is an explanatory diagram of the processing in the area classification unit 4 in FIG. FIG. 3 shows the character area determination unit 1 in FIG.
FIG. 7 is an explanatory diagram of a processing range at 0. FIG. 4 is a flowchart showing the operation of FIG. Hereinafter, the operation of FIG. 1 will be described with reference to FIGS.

【0022】まず、図1中の光電変換部1が起動され、
読み取り対象の帳票が走査され(図4のステップS
1)、光電変換されたカラー信号r,g,bが出力され
る。光電変換部1から出力されたカラー信号r,g,b
は、カラー画像メモリ2に格納される(ステップS
2)。カラー画像メモリ2に格納された各画素のカラー
信号r,g,bは、彩度算出部3によって順次読み出さ
れ、(1)式に従って彩度Sが算出される(ステップS
3)。
First, the photoelectric conversion unit 1 in FIG. 1 is activated,
The form to be read is scanned (step S in FIG. 4).
1) The color signals r, g, b photoelectrically converted are output. The color signals r, g, b output from the photoelectric conversion unit 1
Is stored in the color image memory 2 (step S
2). The color signals r, g, and b of each pixel stored in the color image memory 2 are sequentially read out by the saturation calculator 3, and the saturation S is calculated according to the equation (1) (step S).
3).

【0023】彩度算出部3で算出された彩度Sは領域分
類部4に与えられ、その画素が文字領域、中間領域、或
いは背景領域のいずれに該当するかが判定される(ステ
ップS4)。即ち、図2に示すように、彩度Sが0から
閾値TH1の間にあれば文字領域、閾値TH1,TH2
の間にあれば中間領域、閾値TH2から1の間にあれば
背景領域と判定される。判定結果の領域情報は、画素毎
にイメージメモリ11に格納される(ステップS5)。
The saturation S calculated by the saturation calculator 3 is given to the area classifier 4, and it is determined whether the pixel corresponds to a character area, an intermediate area, or a background area (step S4). . That is, as shown in FIG. 2, if the saturation S is between 0 and the threshold TH1, the character area, the thresholds TH1 and TH2
If it is between the threshold values TH2 and 1, it is determined to be a background area. The area information of the determination result is stored in the image memory 11 for each pixel (step S5).

【0024】1画面分の画素の領域情報がすべてイメー
ジメモリ11に格納されると、このイメージメモリ11
の先頭が検索開始位置に設定され(ステップS6)、中
間領域検出部12が起動される。中間領域検出部12に
よって、イメージメモリ11に格納された画素の領域情
報が先頭から順番に検索され、中間領域と判定された画
素が、着目画素として検出される(ステップS7,S
8)。中間領域検出部12では、検出した着目画素の位
置に基づいて、この着目画素を中心とする一定範囲の画
素(ここでは、着目画素とそれに隣接する合計9個の画
素)のカラー信号r,g,bを、カラー画像メモリ2か
ら読み出し領域補正部13に与える。
When all the area information of the pixels for one screen is stored in the image memory 11,
Is set as the search start position (step S6), and the intermediate area detection unit 12 is activated. The intermediate area detection unit 12 searches the area information of the pixels stored in the image memory 11 in order from the top, and detects a pixel determined to be an intermediate area as a target pixel (steps S7 and S7).
8). The intermediate region detection unit 12 determines the color signals r and g of a certain range of pixels (here, the target pixel and a total of nine pixels adjacent thereto) around the target pixel based on the detected position of the target pixel. , B from the color image memory 2 to the readout area correction unit 13.

【0025】領域補正部13では、図3に示すように、
着目画素周辺の所定範囲に、文字領域の画素が有るか否
かが判定され(ステップS9)、有る場合にはその文字
領域の画素と着目画素のカラー信号r,g,bの差が算
出される(ステップS10)。更に、カラー信号r,
g,bの差は、閾値と比較され(ステップS11)、こ
の差が閾値よりも小さければ、着目画素の領域情報が文
字領域に変更される(ステップS12)。このような着
目画素の検索と、検索された着目画素の領域補正処理
は、イメージメモリ11の最後の画素まで順番に行われ
る。最後の画素まで検索が完了すると、この画面検索中
に着目画素の領域情報の変更が行われたか否かがチェッ
クされる(ステップS13)。
In the area correction unit 13, as shown in FIG.
It is determined whether or not there is a pixel of the character area in a predetermined range around the pixel of interest (step S9). If so, the difference between the pixel of the character area and the color signals r, g, b of the pixel of interest is calculated. (Step S10). Further, the color signals r,
The difference between g and b is compared with a threshold (step S11). If the difference is smaller than the threshold, the area information of the pixel of interest is changed to a character area (step S12). The search for the target pixel and the area correction processing for the searched target pixel are sequentially performed up to the last pixel in the image memory 11. When the search is completed up to the last pixel, it is checked whether or not the area information of the pixel of interest has been changed during the screen search (step S13).

【0026】着目画素の変更が有った場合には、再度イ
メージメモリ11の先頭から着目画素の検索とその領域
補正処理が繰り返される(ステップS6〜S13)。ま
た、着目画素の変更が無かった場合には、イメージメモ
リ11中に残った中間領域の画素の領域情報が背景領域
に変更される(ステップS14)。
If there is a change in the pixel of interest, the search for the pixel of interest and its area correction process are repeated from the top of the image memory 11 (steps S6 to S13). If the pixel of interest has not been changed, the area information of the pixel of the intermediate area remaining in the image memory 11 is changed to the background area (step S14).

【0027】これにより、イメージメモリ11中の画素
の領域情報は、文字領域と背景領域の2値となり、この
イメージメモリ11から2値化された出力信号OUTが
出力される。
As a result, the area information of the pixels in the image memory 11 becomes binary of the character area and the background area, and the image memory 11 outputs the binarized output signal OUT.

【0028】以上のように、この第1の実施形態の画像
処理装置は、彩度に基づいて画素を文字領域、中間領域
または背景領域のいずれかに分類する領域分類部4と、
中間領域の画素をその周辺の文字領域の画素のカラー信
号と比較して、その比較結果に基づいて文字領域に補正
する文字領域判定部10を有している。これにより、文
字の払いの部分のように、文字を構成する画素の濃度が
徐々に薄くなるような場合でも、文字画素と背景画素を
判別して確実に文字を検出することができる。
As described above, the image processing apparatus according to the first embodiment includes an area classification unit 4 for classifying pixels into a character area, an intermediate area, or a background area based on saturation.
There is a character area determination unit 10 that compares the pixels in the intermediate area with the color signals of the pixels in the surrounding character area, and corrects the pixels into a character area based on the comparison result. As a result, even when the density of the pixels constituting the character gradually decreases, such as in the case of the character wiping, the character can be reliably detected by distinguishing the character pixel from the background pixel.

【0029】(第2の実施形態)図5は、本発明の第2
の実施形態の動作を示すフローチャートであり、図4中
の要素と共通の要素には共通の符号が付されている。
(Second Embodiment) FIG. 5 shows a second embodiment of the present invention.
5 is a flowchart showing the operation of the embodiment of the present invention, in which components common to those in FIG. 4 are denoted by common reference numerals.

【0030】この図5のフローチャートに対応する画像
処理装置の構成は、図1とほぼ同様であり、図1中の中
間領域検出部12と領域補正部13に代えて、機能が若
干異なる中間領域検出部12Aと領域補正部13Aを設
けたものである。
The configuration of the image processing apparatus corresponding to the flowchart of FIG. 5 is substantially the same as that of FIG. 1, and an intermediate area having a slightly different function is used in place of the intermediate area detector 12 and the area corrector 13 in FIG. This is provided with a detection unit 12A and an area correction unit 13A.

【0031】即ち、中間領域検出部12Aは、イメージ
メモリ11内を走査し、文字領域の画素に隣接する中間
領域の画素を着目画素として検出するものである。更
に、中間領域検出部12Aは、検出した着目画素を中心
として、縦、横、斜めの8方向の放射線上に、連続する
中間領域の画素を検索して、検出した中間領域の画素の
カラー信号r,g,bをカラー画像メモリ2から読み出
して領域補正部13Aに与える機能を有している。
That is, the intermediate area detecting section 12A scans the inside of the image memory 11 and detects a pixel in the intermediate area adjacent to a pixel in the character area as a pixel of interest. Further, the intermediate region detection unit 12A searches for pixels in the continuous intermediate region on the radiation in the eight directions (vertical, horizontal, and oblique) with the detected pixel of interest as the center, and detects the color signal of the detected pixel in the intermediate region. It has a function of reading r, g, and b from the color image memory 2 and providing the read data to the area correction unit 13A.

【0032】領域補正部13Aは、中間領域検出部12
Aから与えられた中間領域の画素のカラー信号r,g,
bと、着目画素に隣接する文字領域の画素のカラー信号
r,g,bとの差に従って、この中間領域の画素の領域
情報を文字領域に補正するか否かを決定する機能を有し
ている。その他の構成は、図1と同様である。
The area correcting section 13A is provided with the intermediate area detecting section 12
A, the color signals r, g,
b, and a function of determining whether or not to correct the area information of the pixels in the intermediate area into the character area according to the difference between the color signals r, g, and b of the pixels in the character area adjacent to the pixel of interest. I have. Other configurations are the same as those in FIG.

【0033】図6は、図5中のステップS9Aの処理の
説明図である。以下、この図6を参照しつつ、図5に基
づく処理を説明する。
FIG. 6 is an explanatory diagram of the processing in step S9A in FIG. Hereinafter, the processing based on FIG. 5 will be described with reference to FIG.

【0034】帳票1画面分の画像が読み取られ(ステッ
プS1)、読み取られたカラー信号r,g,bがカラー
画像メモリ2に格納され(ステップS2)、画素毎に彩
度Sが算出されて(ステップS3)、文字、中間或いは
背景の領域のいずれかに分類される(ステップS4)。
画素毎の領域情報がすべてイメージメモリ11に格納さ
れた後(ステップS5)、このイメージメモリ11の先
頭が検索開始位置として設定される(ステップS6)。
An image for one screen of a form is read (step S1), the read color signals r, g, b are stored in the color image memory 2 (step S2), and the saturation S is calculated for each pixel. (Step S3), it is classified into any of the character, intermediate, and background regions (Step S4).
After all the area information for each pixel is stored in the image memory 11 (step S5), the head of the image memory 11 is set as a search start position (step S6).

【0035】この後、中間領域検出部12Aが起動さ
れ、イメージメモリ11に格納された画素の領域情報が
先頭から順番に検索され、文字領域の画素に隣接する中
間領域の画素が、着目画素として検出される(ステップ
S7,S8)。更に、中間領域検出部12Aによって、
検出した着目画素を中心として、縦、横、斜めの8方向
の放射線上に、連続する中間領域の画素があるか否かが
検索される(ステップS9A)。着目画素に連続する中
間領域の画素があれば、着目画素を含むこれらの中間領
域の画素のカラー信号r,g,bがカラー画像メモリ2
から読み出され、領域補正部13Aに与えられる。
Thereafter, the intermediate area detecting section 12A is activated, the area information of the pixels stored in the image memory 11 is searched in order from the top, and the pixels of the intermediate area adjacent to the pixels of the character area are set as the pixels of interest. It is detected (steps S7, S8). Further, by the intermediate area detection unit 12A,
A search is performed to determine whether or not there is a pixel in a continuous intermediate region on the radiation in the eight directions (vertical, horizontal, and oblique) with the detected target pixel as the center (step S9A). If there is a pixel in the intermediate area that is continuous with the target pixel, the color signals r, g, and b of the pixels in the intermediate area including the target pixel are stored in the color image memory 2.
And is supplied to the area correction unit 13A.

【0036】例えば、図6に示すように、位置(X6,
Y1)の文字領域の画素に隣接する位置(X5,Y1)
の画素が着目画素として検出され、この着目画素の斜め
左下に連続する位置(X4,Y2),(X3,Y3),
(X2,Y4)の中間領域の画素と、着目画素の下に連
続する位置(X5,Y2)の中間領域の画素が、領域補
正対象の画素として検索される。そして、これらの画素
位置のカラー信号r,g,bがカラー画像メモリ2から
読み出され、領域補正部13Aに与えられる。
For example, as shown in FIG.
Position (X5, Y1) adjacent to the pixel of the character area of Y1)
Is detected as a pixel of interest, and positions (X4, Y2), (X3, Y3),
A pixel in the intermediate area at (X2, Y4) and a pixel in the intermediate area at a position (X5, Y2) continuous below the pixel of interest are searched for as pixels to be corrected. Then, the color signals r, g, and b at these pixel positions are read from the color image memory 2 and provided to the area correction unit 13A.

【0037】領域補正部13Aでは、中間領域検出部1
2Aによってカラー画像メモリ2から読み出された中間
領域の画素のカラー信号r,g,bと、文字領域の画素
のカラー信号r,g,bの差が算出される(ステップS
10A)。算出されたカラー信号r,g,bの差は、予
め設定された閾値と比較され(ステップS11)、その
差が閾値よりも小さければ、該当する着目画素及び中間
領域の画素の分類が文字領域に変更される(ステップS
12A)。
In the area correction section 13A, the intermediate area detection section 1
The difference between the color signals r, g, b of the pixels in the intermediate area read from the color image memory 2 and the color signals r, g, b of the pixels in the character area by 2A is calculated (step S).
10A). The calculated difference between the color signals r, g, and b is compared with a preset threshold value (step S11). If the difference is smaller than the threshold value, the classification of the corresponding pixel of interest and the pixel of the intermediate region is performed in the character region. (Step S
12A).

【0038】このような着目画素及びこれに連続する中
間領域の画素の検索と、それらの画素の領域補正処理
が、イメージメモリ11の最後の画素まで行われた後、
このイメージメモリ11に残った中間領域の画素の領域
情報が背景領域に変更される(ステップS14)。
After such a search for a pixel of interest and a pixel in an intermediate area continuous with the pixel of interest and an area correction process for those pixels are performed up to the last pixel of the image memory 11,
The area information of the pixels of the intermediate area remaining in the image memory 11 is changed to the background area (step S14).

【0039】これにより、イメージメモリ11中の画素
の領域情報は、文字領域と背景領域の2値となり、この
イメージメモリ11から2値化された出力信号OUTが
出力される。
As a result, the area information of the pixels in the image memory 11 becomes binary of the character area and the background area, and the image memory 11 outputs the binarized output signal OUT.

【0040】以上のように、この第2の実施形態の画像
処理装置は、彩度に基づいて画素を文字領域、中間領
域、及び背景領域のいずれかに分類する領域分類部4
と、文字領域の画素に隣接する中間領域の画素を検出
し、そこから8方向の放射線上に連続する中間領域の画
素のカラー信号を、文字領域の画素のカラー信号と比較
して、その比較結果に基づいて文字領域に補正する文字
領域判定部10を有している。これにより、第1の実施
形態と同様の利点に加えて、画面を1度走査するだけで
全画素の補正が可能になり、処理時間が短縮できる。
As described above, the image processing apparatus according to the second embodiment uses the area classification unit 4 for classifying pixels into any of a character area, an intermediate area, and a background area based on saturation.
And a pixel in the intermediate region adjacent to the pixel in the character region, and comparing the color signal of the pixel in the intermediate region on the radiation in eight directions with the color signal of the pixel in the character region. It has a character area determination unit 10 that corrects a character area based on the result. Thus, in addition to the same advantages as the first embodiment, correction of all pixels can be performed only by scanning the screen once, and the processing time can be reduced.

【0041】(第3の実施形態)図7は、本発明の第3
の実施形態を示す画像処理装置の構成図であり、図1中
の要素と共通の要素には共通の符号が付されている。
(Third Embodiment) FIG. 7 shows a third embodiment of the present invention.
FIG. 2 is a configuration diagram of an image processing apparatus according to the first embodiment, in which components common to those in FIG. 1 are denoted by common reference numerals.

【0042】この画像処理装置は、図1の画像処理装置
における文字領域判定部10に代えて、機能の異なる文
字領域判定部20を設けている。
This image processing apparatus is provided with a character area determining section 20 having a different function, instead of the character area determining section 10 in the image processing apparatus shown in FIG.

【0043】文字領域判定部20は、領域分類部4によ
って中間領域に分類された画素を、1文字単位に文字領
域または背景領域のいずれかに確定して2値化するもの
である。文字領域判定部20は、イメージメモリ21、
文字切出部22、パンタメモリ23、線幅算出部24、
中間領域検出部25、及び領域補正部26で構成されて
いる。
The character area determination section 20 determines and binarizes the pixels classified into the intermediate area by the area classification section 4 into one of a character area and a background area for each character. The character area determination unit 20 includes an image memory 21,
A character cutout unit 22, a panta memory 23, a line width calculation unit 24,
It comprises an intermediate area detection section 25 and an area correction section 26.

【0044】イメージメモリ21は、画像を構成する各
画素の領域情報を格納するものである。文字切出部22
は、イメージメモリ21に格納された画素の領域情報
を、1文字単位に切り出すものである。パタンメモリ2
3は、文字切出部22で切り出された1文字分の画素の
領域情報を格納すると共に、領域補正部26からの補正
情報によってその領域情報が補正されるようになってい
る。
The image memory 21 stores area information of each pixel constituting an image. Character extraction section 22
Is to cut out pixel area information stored in the image memory 21 in units of one character. Pattern memory 2
Numeral 3 stores the area information of the pixel of one character extracted by the character extraction section 22 and corrects the area information by the correction information from the area correction section 26.

【0045】線幅算出部24は、パタンメモリ23に格
納された1文字分の画素の領域情報に基づいて、その文
字を構成する線の幅を算出して、線幅が所定の範囲にあ
るか否かを判定するものである。中間領域検出部25
は、パタンメモリ23中の中間領域の画素を検索して着
目画素とし、この着目画素の位置に基づいてカラー画像
メモリ2から着目画素と、その周辺の一定範囲の画素の
カラー信号r,g,bを読み出すものである。中間領域
検出部25で読み出された、着目画素とその周辺の画素
のカラー信号r,g,bは、領域補正部26に与えられ
るようになっている。
The line width calculation section 24 calculates the width of the line constituting the character based on the pixel area information of one character stored in the pattern memory 23, and the line width is within a predetermined range. It is to determine whether or not. Intermediate area detector 25
Finds a pixel in an intermediate area in the pattern memory 23 and sets it as a pixel of interest. Based on the position of this pixel of interest, the color image memory 2 outputs a pixel of interest and color signals r, g, b is read. The color signals r, g, and b of the pixel of interest and its surrounding pixels read by the intermediate region detection unit 25 are provided to the region correction unit 26.

【0046】領域補正部26は、着目画素を中間領域か
ら文字領域に補正するか否かを判定し、補正する場合に
はパタンメモリ23中の領域情報を書き替えるものであ
る。具体的には、領域補正部26において、着目画素の
カラー信号r,g,bと文字領域の画素のカラー信号
r,g,bが各成分毎に比較され、各成分の差が予め設
定された閾値以下の時に、着目画素が文字領域に補正さ
れるようになっている。
The area correction section 26 determines whether or not the pixel of interest is corrected from the intermediate area to the character area, and rewrites the area information in the pattern memory 23 when the correction is performed. Specifically, in the area correction unit 26, the color signals r, g, and b of the pixel of interest and the color signals r, g, and b of the pixels in the character area are compared for each component, and the difference between the components is set in advance. When the threshold value is equal to or less than the threshold value, the target pixel is corrected to a character area.

【0047】図8は、図7の動作を示すフローチャート
である。以下、この図8を参照しつつ、図7の動作を説
明する。
FIG. 8 is a flowchart showing the operation of FIG. Hereinafter, the operation of FIG. 7 will be described with reference to FIG.

【0048】図7中の光電変換部1が起動され、読み取
り対象の帳票が走査されて読み取られ、カラー信号r,
g,bがカラー画像メモリ2に格納される(図4のステ
ップS1,S2)。カラー画像メモリ2に格納された各
画素のカラー信号r,g,bは、彩度算出部3によって
順次読み出され、彩度Sが算出されて領域分類部4に与
えられ、その画素が文字領域、中間領域、或いは背景領
域のいずれかに分類される(ステップS3,S4)。分
類された領域情報は、画素毎にイメージメモリ21に格
納される(ステップS5)。
The photoelectric conversion unit 1 shown in FIG. 7 is activated, the form to be read is scanned and read, and the color signals r,
g and b are stored in the color image memory 2 (steps S1 and S2 in FIG. 4). The color signals r, g, and b of each pixel stored in the color image memory 2 are sequentially read out by the saturation calculation unit 3, the saturation S is calculated and given to the area classification unit 4, The area is classified into one of an area, an intermediate area, and a background area (steps S3 and S4). The classified area information is stored in the image memory 21 for each pixel (step S5).

【0049】1画面分の画素の領域情報がイメージメモ
リ21に格納されると、文字切出部22が起動され、1
文字分の領域情報が切り出されてパタンメモリ23に格
納される(ステップS21)。次に、イメージメモリ2
3の先頭が検索開始位置に設定され(ステップS2
3)、中間領域検出部25が起動される。更に、中間領
域検出部25によって、パタンメモリ23に格納された
画素の領域情報が先頭から順番に検索され、中間領域と
判定された画素が、着目画素として検出される(ステッ
プS24,S25)。中間領域検出部25では、検出し
た着目画素の位置に基づいて、この着目画素を中心とす
る一定範囲の画素(ここでは、着目画素とそれに隣接す
る合計9個の画素)のカラー信号r,g,bを、カラー
画像メモリ2から読み出し領域補正部26に与える。
When the area information of the pixels for one screen is stored in the image memory 21, the character extracting section 22 is activated and
Area information for characters is cut out and stored in the pattern memory 23 (step S21). Next, image memory 2
3 is set as the search start position (step S2).
3), the intermediate area detection unit 25 is activated. Further, the area information of the pixels stored in the pattern memory 23 is searched in order from the top by the intermediate area detection unit 25, and the pixel determined to be the intermediate area is detected as the target pixel (steps S24 and S25). The intermediate region detection unit 25 determines, based on the detected position of the pixel of interest, the color signals r and g of the pixels within a certain range around the pixel of interest (here, the pixel of interest and a total of nine pixels adjacent thereto). , B from the color image memory 2 to the readout area correction unit 26.

【0050】領域補正部26では、着目画素周辺の所定
範囲に、文字領域の画素が有るか否かが判定され(ステ
ップS26)、有る場合にはその文字領域の画素と着目
画素とのカラー信号r,g,bの差が算出される(ステ
ップS27)。そして、カラー信号r,g,bの差が閾
値と比較され(ステップS28)、その差が閾値よりも
小さければ、着目画素の領域情報が文字領域に変更され
る(ステップS29)。このような着目画素の検索と、
その着目画素の領域補正処理は、パタンメモリ23の最
後の画素まで順番に行われる。
The area correction section 26 determines whether or not there is a pixel in the character area in a predetermined range around the pixel of interest (step S26). If so, the color signal between the pixel in the character area and the pixel of interest is determined. The difference between r, g, and b is calculated (step S27). Then, the difference between the color signals r, g, and b is compared with a threshold (step S28). If the difference is smaller than the threshold, the area information of the pixel of interest is changed to a character area (step S29). Searching for such a pixel of interest,
The region correction processing of the pixel of interest is sequentially performed up to the last pixel of the pattern memory 23.

【0051】文字メモリ23中の着目画素の検索が完了
すると(ステップS25)、線幅検出部24が起動さ
れ、この文字メモリ23内の画素の領域情報に基づい
て、文字領域の線の幅が算出される(ステップS3
0)。算出された線幅は、所定の範囲内に収まっている
か否かが判定され(ステップS31)、所定の範囲外で
あれば、再び中間領域検出部25及び領域補正部26に
より、着目画素の検索と検索された着目画素の領域補正
処理(ステップS23〜S31)が繰り返される。
When the search for the pixel of interest in the character memory 23 is completed (step S25), the line width detector 24 is activated, and the line width of the character area is determined based on the area information of the pixels in the character memory 23. Is calculated (step S3
0). It is determined whether or not the calculated line width is within a predetermined range (step S31). If the calculated line width is outside the predetermined range, the intermediate region detection unit 25 and the region correction unit 26 search for the pixel of interest again. Are repeated (steps S23 to S31).

【0052】線幅が所定の範囲内に収まっていれば、パ
タンメモリ23中に残った中間領域の画素の領域情報が
背景領域に変更される(ステップS32)。これによ
り、パタンメモリ23中の画素の領域情報は、文字領域
と背景領域の2値となり、このパタンメモリ23から2
値化された1文字分の出力信号OUTが出力される。
If the line width falls within the predetermined range, the area information of the pixels of the intermediate area remaining in the pattern memory 23 is changed to the background area (step S32). As a result, the area information of the pixels in the pattern memory 23 becomes binary of the character area and the background area.
An output signal OUT for one character is output.

【0053】更に、同様の処理が次の1文字分に対して
行われ、全文字に対する処理が完了した時点で(ステッ
プS22)、この画像処理装置の動作が終了する。
Further, the same processing is performed for the next one character, and when the processing for all the characters is completed (step S22), the operation of the image processing apparatus ends.

【0054】以上のように、この第3の実施形態の画像
処理装置は、1文字毎に第1の実施形態と同様の文字領
域検出処理を行う文字領域判定部20を有している。こ
れにより、背景色が文字毎に異なっていても、確実に文
字を検出することができる。
As described above, the image processing apparatus according to the third embodiment has the character area determination unit 20 that performs the same character area detection processing as in the first embodiment for each character. Thereby, even if the background color differs for each character, the character can be detected reliably.

【0055】なお、本発明は、上記実施形態に限定され
ず、種々の変形が可能である。この変形例としては、例
えば、次のようなものがある。
The present invention is not limited to the above embodiment, and various modifications are possible. For example, there are the following modifications.

【0056】(a) 彩度算出部3における彩度Sの算
出式は(1)式に限定されない。例えば次の(2),
(3)式等を使用しても良い。 S=(|r−g|+|r−b|+|g−b|)/2 ・・・(2) S={(r−g)2 +(r−b)2 +(g−b)2 1/2 ・・・(3)
(A) The equation for calculating the saturation S in the saturation calculator 3 is not limited to the equation (1). For example, the following (2),
Equation (3) may be used. S = (| r−g | + | r−b | + | g−b |) / 2 (2) S = {(r−g) 2 + (r−b) 2 + (g−b) ) 21/2 ... (3)

【0057】(b) 彩度算出部3に代えて、例えば次
の(4)式で明度Lを算出する明度算出部を設けても良
い。 L=(r+g+b)/3 ・・・(4)
(B) Instead of the saturation calculation section 3, a brightness calculation section for calculating the brightness L by the following equation (4) may be provided. L = (r + g + b) / 3 (4)

【0058】(c) 図1中の文字領域判定部10で
は、図3に示すように着目画素の周囲の8個の画素を処
理範囲としているが、着目画素を中心とするm×n画素
を処理範囲としても良い。
(C) The character area determination unit 10 in FIG. 1 sets eight pixels around the target pixel as the processing range as shown in FIG. The processing range may be used.

【0059】(d) 例えば、図4のステップS7〜S
12では、文字領域の画素に隣接する中間領域の画素を
着目画素として、この着目画素と文字領域の画素のカラ
ー信号の差が閾値以下のときに、この着目画素の領域を
文字領域に変更するようにしている。これとは逆に、背
景領域の画素に隣接する中間領域の画素を着目画素とし
て、この着目画素と背景領域の画素のカラー信号の差が
閾値以下のときに、この着目画素の領域を背景領域に変
更するようにしても良い。
(D) For example, steps S7 to S in FIG.
In 12, the pixel of the intermediate region adjacent to the pixel of the character region is set as the target pixel, and when the color signal difference between the target pixel and the pixel of the character region is equal to or smaller than the threshold value, the region of the target pixel is changed to the character region. Like that. Conversely, the pixel of the intermediate region adjacent to the pixel of the background region is set as the target pixel, and when the color signal difference between the target pixel and the pixel of the background region is equal to or smaller than the threshold value, the region of the target pixel is set as the background region. It may be changed to.

【0060】(e) 文字領域判定部10,20は、文
字領域と背景領域に2値化した補正結果を出力するよう
に構成しているが、文字領域の画素を明度(グレー画
像)で出力するようにしても良い。これにより、例え
ば、この画像処理装置の出力信号を使用して文字認識を
行う文字認識装置側で、閾値を設定して認識精度を向上
させることができる場合がある。
(E) The character area determination units 10 and 20 are configured to output the binarized correction results for the character area and the background area, but output the pixels of the character area with lightness (gray image). You may do it. As a result, for example, a character recognition device that performs character recognition using an output signal of the image processing device may set a threshold value to improve recognition accuracy.

【0061】(f) 図7中の文字領域判定部20で
は、文字切出部22によってイメージメモリ21から1
文字単位に画素を切り出して領域の補正をするように構
成しているが、文字の境界に関係なく一定範囲の画素を
切り出して領域の補正をするようにしても良い。
(F) In the character area determination section 20 in FIG.
Although the region is corrected by cutting out pixels in units of characters, the region may be corrected by cutting out a certain range of pixels regardless of the boundaries of characters.

【0062】(g) 図1及び図7は、説明の都合上、
各処理機能を有する個別の処理部で構成しているが、実
際にはコンピュータを用いてプログラムで処理すること
が一般的である。
(G) FIGS. 1 and 7 show FIGS.
Although it is composed of individual processing units having each processing function, it is common practice to actually perform processing by a program using a computer.

【0063】[0063]

【発明の効果】以上詳細に説明したように、第1及び第
2の発明によれば、彩度または明度に基づいて画素を文
字領域、中間領域または背景領域のいずれかに分類する
画素領域分類手段と、中間領域に分類された画素のカラ
ー信号を、その画素を中心とする所定の範囲内に存在す
る文字領域または背景領域の画素のカラー信号と比較し
て文字領域または背景領域に補正する画素領域補正手段
を有している。これにより、中間領域の画素を適切に、
文字領域または背景領域に分類し直すことが可能にな
り、文字と背景の画素を確実に判別することができる。
As described above in detail, according to the first and second aspects of the present invention, pixels are classified into any of a character area, an intermediate area, and a background area based on saturation or brightness. Means for comparing a color signal of a pixel classified as an intermediate region with a color signal of a pixel in a character region or a background region existing within a predetermined range centered on the pixel and correcting the color signal into a character region or a background region It has a pixel area correction means. This allows the pixels in the middle area to be properly
It is possible to re-classify the character area or the background area, and the pixels of the character and the background can be reliably determined.

【0064】第3の発明によれば、画素領域補正手段に
おいて、着目画素を中心とする8方向の放射線上に連続
する中間領域の画素を検索し、検索された中間領域の画
素を文字領域または背景領域に補正するようにしてい
る。これにより、第2の発明よりも短時間で同様の効果
を得ることができる。
According to the third aspect, the pixel area correction means searches for pixels in the intermediate area that is continuous on the radiation in eight directions around the pixel of interest, and replaces the searched pixels in the intermediate area with the character area or the character area. The correction is made to the background area. Thereby, a similar effect can be obtained in a shorter time than in the second invention.

【0065】第4の発明によれば、画素領域補正手段に
おいて、一定範囲(例えば1文字)に存在する画素毎
に、中間領域の画素を文字領域または背景領域に補正
し、補正した文字領域の線幅が設定条件を満たすまで、
その補正処理を繰り返すようにしている。これにより、
複数の背景色や文字色が混在している帳票でも、文字と
背景の画素を確実に判別することができる。
According to the fourth aspect, the pixel region correcting means corrects the pixels in the intermediate region to a character region or a background region for each pixel present in a certain range (for example, one character), and corrects the corrected character region. Until the line width meets the set conditions,
The correction process is repeated. This allows
Even in a form in which a plurality of background colors and character colors are mixed, it is possible to reliably determine the pixels of the characters and the background.

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

【図1】本発明の第1の実施形態を示す画像処理装置の
構成図である。
FIG. 1 is a configuration diagram of an image processing apparatus according to a first embodiment of the present invention.

【図2】図1中の領域分類部4における処理の説明図で
ある。
FIG. 2 is an explanatory diagram of processing in an area classification unit 4 in FIG.

【図3】図1中の文字領域判定部10における処理範囲
の説明図である。
FIG. 3 is an explanatory diagram of a processing range in a character area determination unit 10 in FIG. 1;

【図4】図1の動作を示すフローチャートである。FIG. 4 is a flowchart showing the operation of FIG.

【図5】本発明の第2の実施形態の動作を示すフローチ
ャートである。
FIG. 5 is a flowchart showing the operation of the second embodiment of the present invention.

【図6】図5中のステップS9Aの処理の説明図であ
る。
FIG. 6 is an explanatory diagram of a process of step S9A in FIG. 5;

【図7】本発明の第3の実施形態を示す画像処理装置の
構成図である。
FIG. 7 is a configuration diagram of an image processing apparatus according to a third embodiment of the present invention.

【図8】図7の動作を示すフローチャートである。FIG. 8 is a flowchart showing the operation of FIG. 7;

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

1 光電変換部 2 カラー画像メモリ 3 彩度算出部 4 領域分類部 10,20 文字領域判定部 11,21 イメージメモリ 12,25 中間領域検出部 13,26 領域補正部部 22 文字切出部 23 パタンメモリ 24 線幅算出部 DESCRIPTION OF SYMBOLS 1 Photoelectric conversion part 2 Color image memory 3 Saturation calculation part 4 Area classification part 10, 20 Character area judgment part 11, 21 Image memory 12, 25 Intermediate area detection part 13, 26 Area correction part 22 Character extraction part 23 Pattern Memory 24 Line width calculator

フロントページの続き Fターム(参考) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CE11 CE17 DA08 DB02 DB06 DB09 DC25 5C077 LL19 MP08 PP27 PP35 5C079 HB01 HB06 LA01 LA06 LA34 MA11 NA11 NA29 Continued on front page F-term (reference) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CE11 CE17 DA08 DB02 DB06 DB09 DC25 5C077 LL19 MP08 PP27 PP35 5C079 HB01 HB06 LA01 LA06 LA34 MA11 NA11 NA29

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 画像を構成する画素の赤色成分、緑色成
分及び青色成分のカラー信号に基づいて、画素毎の彩度
または明度を算出する画素情報算出手段と、 前記画素情報算出手段で算出された彩度または明度に基
づいて、各画素を文字領域、中間領域または背景領域の
いずれかに分類する画素領域分類手段と、 前記画素領域分類手段で中間領域に分類された画素のカ
ラー信号を、その画素を中心とする所定の範囲内に存在
する文字領域または背景領域の画素のカラー信号と比較
して、該中間領域に分類された画素の領域を文字領域ま
たは背景領域に補正する画素領域補正手段とを、 備えたことを特徴とする画像処理装置。
1. A pixel information calculating means for calculating saturation or brightness of each pixel based on a color signal of a red component, a green component and a blue component of a pixel constituting an image, and the pixel information calculating means calculates the saturation or brightness of each pixel. A pixel region classification unit that classifies each pixel into a character region, an intermediate region, or a background region based on the saturation or brightness, and a color signal of the pixel classified into the intermediate region by the pixel region classification unit. A pixel area correction for correcting the area of the pixel classified as the intermediate area into a character area or a background area by comparing with a color signal of a pixel in a character area or a background area existing within a predetermined range around the pixel. And an image processing device.
【請求項2】 前記画素領域補正手段は、中間領域の画
素を着目画素として該着目画素を中心とするm×n(但
し、m,nは複数)画素の窓を設定し、該窓の中に文字
領域の画素が存在する場合に該文字領域の画素と着目画
素のカラー信号を比較し、その差が閾値以下のときに該
着目画素の領域を文字領域に補正する処理を、補正され
る中間領域の画素がなくなるまで順次繰り返して行うよ
うに構成したことを特徴とする請求項1記載の画像処理
装置。
2. The pixel area correcting means sets a window of m × n (where m and n are plural) pixels around the pixel of interest with the pixel of the intermediate area as a pixel of interest. When there is a pixel in the character area, the process of comparing the color signal of the pixel of the character area with the color signal of the pixel of interest and correcting the area of the pixel of interest to the character area when the difference is equal to or less than the threshold value is corrected. 2. The image processing apparatus according to claim 1, wherein the processing is repeatedly performed sequentially until there are no more pixels in the intermediate area.
【請求項3】 前記画素領域補正手段は、文字領域の画
素に隣接する中間領域の画素を着目画素として該着目画
素を中心とする8方向の放射線上に連続する中間領域の
画素を検索し、検索された中間領域の画素及び該着目画
素とこの着目画素に隣接する文字領域の画素のカラー信
号を比較し、その差が閾値以下のときに該着目画素及び
検索された中間領域の画素の領域を文字領域に補正する
処理を、順次行うように構成したことを特徴とする請求
項1記載の画像処理装置。
3. The pixel area correction unit searches for a pixel in an intermediate area that is continuous on radiation in eight directions around the pixel of interest using a pixel in an intermediate area adjacent to a pixel in a character area as a pixel of interest, The color signals of the searched pixel of the intermediate region and the pixel of interest and the pixel of the character region adjacent to the pixel of interest are compared, and when the difference is equal to or less than the threshold value, the region of the pixel of interest and the pixel of the searched intermediate region is compared. 2. The image processing apparatus according to claim 1, wherein the processing of correcting the image data into a character area is sequentially performed.
【請求項4】 前記画素領域補正手段は、一定範囲内に
存在する画素毎に、中間領域の画素を着目画素として該
着目画素を中心とするm×n(但し、m,nは複数)画
素の窓を設定し、該窓の中に文字領域の画素が存在する
場合に該文字領域の画素と着目画素のカラー信号を比較
し、その差が閾値以下のときに該着目画素の領域を文字
領域に補正し、補正した文字領域の線幅を算出する処理
を、その算出した線幅が予め設定した条件を満たすまで
順次繰り返して行うように構成したことを特徴とする請
求項1記載の画像処理装置。
4. The pixel area correcting means sets m × n (where m and n are plural) pixels centered on the pixel of interest with a pixel of the intermediate area as a pixel of interest for each pixel existing within a certain range. When a pixel of the character area is present in the window, the pixel of the character area is compared with the color signal of the pixel of interest. When the difference is equal to or less than the threshold, the area of the pixel of interest is 2. The image according to claim 1, wherein the processing for correcting the area and calculating the line width of the corrected character area is sequentially and repeatedly performed until the calculated line width satisfies a preset condition. Processing equipment.
JP2000355370A 2000-11-22 2000-11-22 Image processing device Expired - Fee Related JP4122703B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000355370A JP4122703B2 (en) 2000-11-22 2000-11-22 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000355370A JP4122703B2 (en) 2000-11-22 2000-11-22 Image processing device

Publications (2)

Publication Number Publication Date
JP2002158874A true JP2002158874A (en) 2002-05-31
JP4122703B2 JP4122703B2 (en) 2008-07-23

Family

ID=18827790

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000355370A Expired - Fee Related JP4122703B2 (en) 2000-11-22 2000-11-22 Image processing device

Country Status (1)

Country Link
JP (1) JP4122703B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006166355A (en) * 2004-12-10 2006-06-22 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program and recording medium
JP2009272834A (en) * 2008-05-02 2009-11-19 Canon Inc Image processing apparatus and image encoding method
JP2013055668A (en) * 2012-10-10 2013-03-21 Olympus Imaging Corp Image reproduction device and image reproduction method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006166355A (en) * 2004-12-10 2006-06-22 Ricoh Co Ltd Image processing apparatus, image processing method, image processing program and recording medium
JP2009272834A (en) * 2008-05-02 2009-11-19 Canon Inc Image processing apparatus and image encoding method
JP2013055668A (en) * 2012-10-10 2013-03-21 Olympus Imaging Corp Image reproduction device and image reproduction method

Also Published As

Publication number Publication date
JP4122703B2 (en) 2008-07-23

Similar Documents

Publication Publication Date Title
KR100339691B1 (en) Apparatus for recognizing code and method therefor
US9807280B2 (en) Image processing apparatus, method, and storage medium
US9171224B2 (en) Method of improving contrast for text extraction and recognition applications
JP3768052B2 (en) Color image processing method, color image processing apparatus, and recording medium therefor
WO2015007168A1 (en) Character recognition method and device
JP5337563B2 (en) Form recognition method and apparatus
JP5830338B2 (en) Form recognition method and form recognition apparatus
KR101613703B1 (en) detection of vehicle video and license plate region extraction method
JP5847062B2 (en) Image processing device
JP2010186246A (en) Image processing apparatus, method, and program
JP2002158874A (en) Image processor
US6750986B1 (en) Color image processing method with thin-line detection and enhancement
JPH0291789A (en) Character recognizing system
KR100713335B1 (en) Method for recognizing of picture in wireless terminal
JP2000357287A (en) Method and device for number plate recognition
JP4253265B2 (en) Shadow detection apparatus, shadow detection method and shadow detection program, image processing apparatus using shadow detection apparatus, image processing method using shadow detection method, and image processing program using shadow detection program
JP4544955B2 (en) Image monitoring device
JP2689893B2 (en) Method and apparatus for removing printed background
JPH09288737A (en) Onboard picture processor
US10860827B2 (en) Image processing apparatus
JPH07121658A (en) Character string detection system
JPH07113962B2 (en) Image processing method
JP2001291056A (en) Document picture recognizing device and recording medium
JP2007243330A (en) Image processing apparatus, and information output method of dot character
US6778296B1 (en) Color imaging processing method with boundary detection and enhancement

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060825

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071218

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080307

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20080408

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080421

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4122703

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110516

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120516

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130516

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140516

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees