JPH11112796A - Image processor - Google Patents

Image processor

Info

Publication number
JPH11112796A
JPH11112796A JP9264453A JP26445397A JPH11112796A JP H11112796 A JPH11112796 A JP H11112796A JP 9264453 A JP9264453 A JP 9264453A JP 26445397 A JP26445397 A JP 26445397A JP H11112796 A JPH11112796 A JP H11112796A
Authority
JP
Japan
Prior art keywords
area
partial
pixel
feature amount
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP9264453A
Other languages
Japanese (ja)
Inventor
Makoto Otsu
誠 大津
Yasushi Adachi
靖 安達
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP9264453A priority Critical patent/JPH11112796A/en
Publication of JPH11112796A publication Critical patent/JPH11112796A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To precisely identify the area for each pixel read from an original. SOLUTION: Image reading from the original is executed by dividing into pre-scanning and main scanning. The read result of pre-scanning is made into line partial data of each main scanning direction and its featured value or an identifying result sorted based on the featured value is stored in a page memory 5a. In main scanning, image data on the pixel of a local block provided in the periphery of a pixel under consideration is stored in a block memory 5b and a local calculating means 12 calculates local featured values. While referring to the partial featured value or the identifying result of sorting information stored in the page memory 5a to take into account as wide information, an area identification processing means 13 identifies an area the pixel under consideration belongs to based on the local feature value from the means 12.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、デジタル複写機や
ファクシミリ等で、記録画像の画質の向上を図るため、
原稿を走査して得られる画像の特性に応じて処理を行う
画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital copying machine, a facsimile, and the like for improving the quality of a recorded image.
The present invention relates to an image processing apparatus that performs processing according to characteristics of an image obtained by scanning a document.

【0002】[0002]

【従来の技術】従来から、デジタル複写機やファクシミ
リ装置等の画像処理装置では、画質向上を図るため各種
画像識別方法が用いられている。代表的な画像識別処理
方法としては、画像をブロックに分割し、各ブロックに
おいてパターンマッチングを行う方法や、文字や網点の
画像の性質を表す特徴パラメータを用いて各領域を識別
する方法が知られている。パターンマッチングを用いる
方法では、数多くのパターンを用意する必要があり、必
要なメモリの記憶容量が膨大になったり、汎用性に乏し
いというような問題点がある。このため特徴パラメータ
を用いる方法を採用することが多くなっている。
2. Description of the Related Art Conventionally, in an image processing apparatus such as a digital copying machine or a facsimile apparatus, various image identification methods have been used to improve image quality. As a typical image identification processing method, there are known a method of dividing an image into blocks and performing pattern matching in each block, and a method of identifying each region using a characteristic parameter representing a property of a character or halftone image. Have been. In the method using pattern matching, it is necessary to prepare a large number of patterns, and there is a problem that a required storage capacity of a memory is enormous and versatility is poor. For this reason, a method using a feature parameter is often adopted.

【0003】特徴パラメータを用いる先行技術は、たと
えば特開昭61−194968や特開昭62−1478
60などに開示されている。特開昭61−194968
の「網点識別方法」では、空間的に連続する2つの画素
の信号のレベルの変化を、2つの画素が主走査方向に連
続する場合と副走査方向に連続する場合とを別々に計測
する。複数の画素のブロック毎にそれぞれの走査方向の
計測量の総和を予め決められた値と比較し、その比較結
果によって網点領域を識別する。特開昭62−1478
60の「中間調ファクシミリ信号処理法式」では、複数
画素のブロック内で最大信号レベルと最小信号レベルと
の差を求め、その差の値を予め定められている設定値と
比較する。レベル差が設定値より小さい場合は、写真部
分を含む信号レベル変化の穏やかな部分であると判断す
る。予め定められるアクセス順序に従って、ブロック内
で空間的に連続する2つの画素の信号レベル間の変化回
数が予め定められる値よりも大きい場合は、その領域は
網点部分であると判定する。判定結果に応じて、それぞ
れの領域に対応する信号処理が行われる。
[0003] Prior art using feature parameters is disclosed in, for example, JP-A-61-194968 and JP-A-62-1478.
60 and the like. JP-A-61-194968
In the "halftone dot discrimination method", the change in the signal level of two spatially continuous pixels is separately measured when the two pixels are continuous in the main scanning direction and when the two pixels are continuous in the sub-scanning direction. . The sum of the measured amounts in the respective scanning directions is compared with a predetermined value for each block of a plurality of pixels, and a halftone dot region is identified based on the comparison result. JP-A-62-1478
In 60 "halftone facsimile signal processing method", a difference between a maximum signal level and a minimum signal level in a block of a plurality of pixels is obtained, and the value of the difference is compared with a predetermined setting value. If the level difference is smaller than the set value, it is determined that the signal level change including the photograph portion is gentle. If the number of changes between the signal levels of two spatially consecutive pixels in the block is larger than a predetermined value in accordance with a predetermined access order, the area is determined to be a halftone dot portion. According to the determination result, signal processing corresponding to each area is performed.

【0004】[0004]

【発明が解決しようとする課題】画像処理において、1
つの画素に注目すると、注目画素が属している領域の種
類を識別する際に、局所ブロックの特徴パラメータを用
いる画像識別方法では、その性質上連続した同一領域分
離結果の中に孤立した誤識別領域が発生しやすい問題が
ある。特に、画素毎に完全に分類識別し、予め用意され
ているフィルタ等で領域識別結果に応じてフィルタリン
グ処理等を行うと、孤立した誤識別領域に施すフィルタ
リング処理が画質に及ぼす悪影響が大きくなってしま
う。
SUMMARY OF THE INVENTION In image processing, 1
Focusing on one pixel, the image identification method that uses the feature parameters of the local block when identifying the type of the region to which the pixel of interest belongs There is a problem that is likely to occur. In particular, when the classification process is completely performed for each pixel and the filtering process or the like is performed in accordance with the region identification result using a prepared filter or the like, the adverse effect on the image quality caused by the filtering process performed on the isolated erroneously identified region increases. I will.

【0005】これを解決するために、隣接する画素につ
いての識別結果を保持しておき、注目画素の領域識別に
利用する方式が考えられている。しかしながら、この方
式では参照する隣接画素も誤識別されている場合に、誤
った識別情報が順次伝播してしまう問題がある。また局
所ブロック内では収まらない周期の大きな規則的な変化
が生じている領域の識別には適していない。その原因
は、領域が周期的に変化している画像の場合、ある程度
の大きさの範囲で識別処理を行わないと周期性を判別す
ることできないからである。特に周期が識別に利用する
局所ブロックに比べて大きい場合に、この問題点が顕著
になる。
In order to solve this problem, a method has been considered in which the identification results of adjacent pixels are stored and used for identifying the region of the pixel of interest. However, this method has a problem that incorrect identification information is sequentially propagated when the adjacent pixel to be referred to is also incorrectly identified. Further, it is not suitable for identifying an area where a large regular change in the period that cannot be accommodated in the local block occurs. The reason is that, in the case of an image in which the area changes periodically, the periodicity cannot be determined unless the identification processing is performed within a certain size range. In particular, this problem becomes remarkable when the period is larger than the local block used for identification.

【0006】本発明の目的は、局所ブロック内で収まら
ない周期の大きな規則的な領域の識別も可能な画像処理
装置を提供することである。
An object of the present invention is to provide an image processing apparatus capable of identifying a regular region having a large cycle that does not fit in a local block.

【0007】[0007]

【課題を解決するための手段】本発明は、原稿を主走査
方向および副走査方向に二次元的に走査して得られる画
像信号に対して、各画素が文字領域、写真領域または網
点領域のいずれの領域に属しているかを識別して処理を
行う画像処理装置において、原稿の走査を、プレスキャ
ンおよび本スキャンに分けて行うように制御する制御手
段と、プレスキャン時に、主走査方向のライン画像デー
タを用いて、各ラインの部分領域の特性を表す部分特徴
量を求める部分演算手段と、部分演算手段によって求め
られる部分特徴量から、各ラインの部分領域が属する領
域の種類を分類して識別する分類手段と、部分演算手段
によって得られる部分特徴量の演算結果、もしくは分類
手段によって得られる識別結果を記録する記録手段と、
本スキャン時に、画像信号中から1つずつ選択される画
素を注目画素として、注目画素とその近傍の複数画素か
ら成る局所ブロックの画像データを格納する格納手段
と、格納手段に格納される画像データから、文字領域、
写真領域、または網点領域の各領域の特性を表す複数の
局所特徴量を求める局所演算手段と、記録手段に記録さ
れている部分特徴量もしくは識別結果と、局所演算手段
によって得られる注目画素毎の局所特徴量とを用いて、
局所ブロック内の注目画素が属している領域を識別し、
識別される領域の種類に応じて予め定められる処理を行
う領域識別処理手段とを備えることを特徴とする画像処
理装置である。
According to the present invention, an image signal obtained by scanning a document two-dimensionally in a main scanning direction and a sub-scanning direction is such that each pixel is a character area, a photograph area or a halftone area. In an image processing apparatus that performs processing by identifying which area the image belongs to, a control unit that controls scanning of a document so as to be divided into a pre-scan and a main scan. Using the line image data, a partial calculation unit for obtaining a partial feature amount representing the characteristic of the partial region of each line, and classifying the type of the region to which the partial region of each line belongs from the partial feature amount obtained by the partial calculation unit Recording means for recording the calculation result of the partial feature amount obtained by the partial calculation means or the identification result obtained by the classification means,
A storage unit for storing image data of a local block including a pixel of interest and a plurality of pixels in the vicinity thereof, the pixel being a pixel selected one by one from the image signal at the time of the main scan, and image data stored in the storage unit From the character area,
A local operation unit for obtaining a plurality of local feature amounts representing the characteristics of each region of the photograph region or the halftone dot region; a partial feature amount or identification result recorded in the recording unit; and a target pixel obtained by the local operation unit. Using the local feature of
Identify the region to which the pixel of interest belongs in the local block,
An image processing apparatus comprising: an area identification processing unit that performs a predetermined process according to a type of an area to be identified.

【0008】本発明に従えば、文字領域、写真領域、ま
たは網点領域が存在するような原稿を、制御手段によっ
てプレスキャンおよび本スキャンの2回に分けて、主走
査方向および副走査方向に二次元的な走査を行う。プレ
スキャン時には、主走査方向のライン画像データを用い
て、主走査方向に連続する複数の画像から成るライン部
分領域を設定し、ライン部分領域が属している文字領
域、写真領域、または網点領域の種類を表す部分特徴量
を部分演算手段によって求める。また、部分特徴量か
ら、分類手段によって各ライン部分領域の種類を識別し
ておく。このとき、部分特徴量の算出に利用するライン
部分領域の主走査方向の長さは、本スキャン時に各画素
毎の領域分離で扱う局所ブロックの幅に比べて充分の長
さとなるようにしておけば、局所ブロックだけでは識別
することができない周期の長い領域の特徴についても識
別することが可能になる。プレスキャン時に算出する部
分特徴量もしくは識別結果は記録手段に記録される。本
スキャン時の各画素の分離の際には、記録手段に記録さ
れている部分特徴量もしくは識別結果を利用することに
よって、主走査方向に関して周期の長い領域にも対応す
ることができ、また局所ブロックからの局所特徴量も算
出するため、局所的な特徴も容易に識別することができ
る。
According to the present invention, a document having a character area, a photograph area, or a halftone area is divided into two parts, a pre-scan and a main scan, by a control means in a main scanning direction and a sub-scanning direction. Perform two-dimensional scanning. At the time of pre-scanning, a line area composed of a plurality of images continuous in the main scanning direction is set using line image data in the main scanning direction, and a character area, a photograph area, or a halftone area to which the line area belongs. Is obtained by the partial calculation means. Also, the type of each line partial area is identified by the classifying means from the partial feature amount. At this time, the length of the line partial area used in the calculation of the partial feature amount in the main scanning direction is set to be sufficiently longer than the width of the local block handled in the area separation for each pixel during the main scan. For example, it is possible to identify a feature of a region having a long cycle that cannot be identified only by the local block. The partial feature amount or the identification result calculated at the time of the pre-scan is recorded in the recording means. At the time of separation of each pixel at the time of the main scan, by using the partial feature amount or the identification result recorded in the recording means, it is possible to cope with an area having a long cycle in the main scanning direction, and Since the local feature amount from the block is also calculated, the local feature can be easily identified.

【0009】画像識別の識別精度を高めるためには、注
目画素とその近傍の複数画素から成る局所ブロックから
算出される局所特徴量が、領域の性質を充分によく示し
ていることが必要である。実際には、局所ブロックだけ
の識別情報では、大局的な画像の性質を知ることが困難
である。そこで、プレスキャン時に、局所ブロックに比
べて主走査方向に広範囲なラインデータを利用し、予め
大局的に画像を分類しておく。各画素毎の識別の際に
は、本スキャン時の局所ブロックの特徴量である局所特
徴量に、プレスキャン時のライン部分領域毎の特徴量で
ある部分特徴量もしくは分類情報を加味することで、識
別精度を高めることができる。
In order to enhance the identification accuracy of image identification, it is necessary that a local feature calculated from a local block including a pixel of interest and a plurality of pixels in the vicinity thereof sufficiently indicates the properties of the region. . Actually, it is difficult to know the global properties of an image only with identification information of a local block. Therefore, at the time of pre-scanning, images are broadly classified in advance by using line data that is wider in the main scanning direction than local blocks. At the time of identification for each pixel, a partial feature amount or a classification information, which is a feature amount for each line partial region at the time of pre-scan, is added to a local feature amount which is a feature amount of a local block at the time of main scan. , Identification accuracy can be improved.

【0010】また本発明で前記部分演算手段は、主走査
方向に複数画素幅を持つライン部分読取データを用いて
前記文字領域、写真領域、または網点領域の特性を表す
部分特徴量を演算し、前記記録手段に記録される部分特
徴量もしくは前記識別結果を、本スキャン実行前に、副
走査方向に関して複数ライン用いるブロック単位で補正
し、補正結果を記録手段に再記録する補正手段をさらに
備え、前記領域識別処理手段は、記録手段に再記録され
ている部分特徴量もしくは識別結果と、局所特徴量とか
ら、前記注目画素の領域分離情報を出力することを特徴
とする。
Further, in the present invention, the partial calculation means calculates a partial feature quantity representing the characteristics of the character area, photograph area or halftone area using line partial read data having a plurality of pixel widths in the main scanning direction. And correcting means for correcting the partial feature amount or the identification result recorded in the recording means in units of blocks using a plurality of lines in the sub-scanning direction before performing the main scan, and re-recording the correction result in the recording means. The area identification processing means outputs the area separation information of the pixel of interest from the partial feature amount or the identification result re-recorded in the recording means and the local feature amount.

【0011】本発明に従えば、部分演算手段では、主走
査方向に複数画素幅を持つライン部分読取データを用い
て文字領域、写真領域、または網点領域の特性を表す部
分特徴量を演算する。補正手段は、記録手段に記録され
ている部分特徴量もしくは識別結果を、本スキャン時実
行前に副走査方向に関して複数ライン用いるブロック単
位で補正し、記録手段に再記録しておく。領域識別処理
手段は、補正手段による補正結果を、本スキャン時の領
域識別処理に加味するので、1ラインの部分特徴量また
は分類情報を利用する場合に比較して、より大局的な識
別を行って精度を向上させることができる。
According to the present invention, the partial calculation means calculates a partial feature amount representing the characteristics of a character area, a photograph area, or a halftone dot area using line partial read data having a plurality of pixel widths in the main scanning direction. . The correction unit corrects the partial feature amount or the identification result recorded in the recording unit in units of blocks using a plurality of lines in the sub-scanning direction before execution at the time of the main scan, and re-records the data in the recording unit. Since the area identification processing unit adds the correction result by the correction unit to the area identification processing at the time of the main scan, the area identification processing unit performs more global identification as compared with the case where the one-line partial feature amount or the classification information is used. Accuracy can be improved.

【0012】また本発明で前記領域識別処理手段は、前
記記録手段に記録されている部分特徴量もしくは識別結
果を、前記注目画素が属しているラインの前後複数ライ
ンを利用して、本スキャン時に各注目画素が文字領域、
写真領域、もしくは網点領域のいずれの領域に属してい
るかを識別し、領域識別情報を出力することを特徴とす
る。
Further, in the present invention, the area identification processing means uses the plurality of lines before and after the line to which the pixel of interest belongs to the partial feature amount or the identification result recorded in the recording means at the time of the main scan. Each pixel of interest is a character area,
It is characterized in that the region belongs to a photograph region or a halftone dot region, and region identification information is output.

【0013】本発明に従えば、領域識別処理手段は、記
録手段に記録されている部分特徴量もしくは識別結果を
注目画素が属しているラインの前後複数ライン分利用
し、本スキャン時に注目画素が文字領域、写真領域、ま
たは網点領域のいずれの領域に属しているかを識別する
ので、領域の識別を大局的に行うことができ、精度の高
い領域識別情報を得ることができる。
According to the present invention, the area identification processing means uses the partial feature amount or the identification result recorded in the recording means for a plurality of lines before and after the line to which the pixel of interest belongs, so that the pixel of interest during the main scan is used. Since the region belongs to the character region, the photograph region, or the halftone region, the region can be globally identified, and highly accurate region identification information can be obtained.

【0014】また本発明で前記部分演算手段は、前記主
走査方向のライン部分画像データを2値化する2値化手
段と、2値化手段から得られる2値化画素列中で、値が
異なる画素列を挟んで隣合う同一値の画素列の画素数の
差を加算する加算手段とを含み、加算手段の加算結果を
各ライン部分領域が属している前記文字領域、写真領
域、または網点領域のいずれの領域に属しているかを識
別するための部分特徴量とすることを特徴とする。
Further, in the present invention, the partial calculation means includes a binarization means for binarizing the line partial image data in the main scanning direction and a binarized pixel sequence obtained from the binarization means, Adding means for adding the difference in the number of pixels between pixel rows having the same value adjacent to each other across different pixel rows, and adding the addition result of the adding means to the character area, photograph area, or net to which each line partial area belongs. It is characterized in that it is a partial feature amount for identifying which region of the point region belongs to.

【0015】本発明に従えば、部分演算手段では、主走
査方向のライン部分画像データを2値化手段によって2
値化し、2値化された画素列中で、値が異なる画素列を
挟んで隣合う同一値の画素列の画素数の差を加算手段に
よって加算し、加算結果をライン部分領域が属している
文字領域、写真領域、または網点領域に対応する部分特
徴量としている。本スキャン時に注目画素とその近傍の
複数画素とから成る局所ブロックの大きさよりもライン
部分領域の長さを充分に大きくしておけば、主走査方向
において周期の長い領域を分離識別することが容易にな
る。規則的な網点領域などでは、隣合う同一値の画素例
の画素数の差は小さく、加算手段の加算結果はあまり大
きくならないので、容易に大局的な識別を行うことがで
きる。
According to the present invention, the partial calculation means converts the line partial image data in the main scanning direction into binary data by the binarization means.
In the binarized pixel row, a difference in the number of pixels between pixel rows having the same value adjacent to each other across pixel rows having different values is added by an adding unit, and the addition result belongs to a line partial area. The partial feature amount corresponds to a character area, a photograph area, or a halftone dot area. If the length of the line partial area is sufficiently larger than the size of the local block composed of the target pixel and a plurality of neighboring pixels during the main scan, it is easy to separate and identify a region having a long cycle in the main scanning direction. become. In a regular halftone dot region or the like, the difference in the number of pixels between adjacent pixels having the same value is small, and the addition result of the adding means does not become too large, so that global identification can be easily performed.

【0016】また本発明で、前記部分演算手段は、前記
主走査方向のライン部分画像データ中で、隣合う画素値
の差を計算する差算出手段と、差算出手段によって計算
される隣合う画素値の差が予め設定される閾値に関する
条件を満たす場合のみ加算する差加算手段とを含み、差
加算手段の加算結果を各ライン部分領域が属している文
字領域、写真領域、または網点領域に対応する部分特徴
量とすることを特徴とする。
Further, in the present invention, the partial calculation means includes a difference calculation means for calculating a difference between adjacent pixel values in the line partial image data in the main scanning direction, and an adjacent pixel calculated by the difference calculation means. Difference addition means for adding only when the difference between the values satisfies a condition relating to a preset threshold value, and adding the addition result of the difference addition means to a character area, a photograph area, or a halftone area to which each line partial area belongs. It is characterized by corresponding partial feature amounts.

【0017】本発明に従えば、部分演算手段は、主走査
方向のライン部分画素データ中で隣合う画素値の差を差
算出手段によって計算し、隣合う画素値の差が予め設定
される閾値より大きい場合のみ差加算手段によって加算
するので、写真領域のように隣合う画素値の差が小さい
領域では加算結果の特徴量の大きさが小さくなる。
According to the invention, the partial calculation means calculates the difference between adjacent pixel values in the line partial pixel data in the main scanning direction by the difference calculation means, and the difference between adjacent pixel values is set to a predetermined threshold value. Since the addition is performed by the difference addition means only when the difference is larger, the feature amount of the addition result becomes small in an area where the difference between adjacent pixel values is small such as a photographic area.

【0018】[0018]

【発明の実施の形態】図1は、本発明の実施の一形態と
しての画像処理装置1の概略的な電気的構成を示す。処
理の対象となる画像データは、ラインセンサ2によって
発生され、画像データ処理手段3によってアナログ/デ
ジタル変換を含む電気的な処理が施される。演算手段4
は、予め設定されるプログラムに従って動作し、画像デ
ータ処理手段3からのデジタル化された画像データを演
算処理し、領域認識処理を行う。演算手段4による画像
処理の途中では、メモリ5、画像データなどの一時的な
記憶用に用いる。ラインセンサ2では、複数の画素が一
次元的に配列され、この配列方向が主走査方向となる。
副走査手段6は、ラインセンサ2または読取るべき原稿
7を、相対的に主走査方向と垂直な副走査方向に移動さ
せる。
FIG. 1 shows a schematic electrical configuration of an image processing apparatus 1 according to an embodiment of the present invention. Image data to be processed is generated by the line sensor 2 and subjected to electrical processing including analog / digital conversion by the image data processing means 3. Calculation means 4
Operates according to a preset program, performs arithmetic processing on digitized image data from the image data processing means 3, and performs area recognition processing. During the image processing by the arithmetic means 4, the memory 5 is used for temporary storage of image data and the like. In the line sensor 2, a plurality of pixels are arranged one-dimensionally, and this arrangement direction is the main scanning direction.
The sub-scanning means 6 moves the line sensor 2 or the document 7 to be read relatively in the sub-scanning direction perpendicular to the main scanning direction.

【0019】本実施形態では、演算手段6のプログラム
動作によって実現される制御手段8が、プレスキャンと
本スキャンとの2回に分けて原稿7の読取りを行うよう
な制御を行う。画像データ処理手段3からの画像データ
は、制御手段8によって切換えられるスキャン切換手段
9によって、プレスキャンでは部分演算手段10に与え
られ、部分演算手段の演算結果を用いて分類手段11に
よる領域の分類のための識別も行われる。本スキャン時
には、制御手段8によってスキャン切換手段9が画像デ
ータ処理手段からの画像データを局所演算手段12に与
えるように切換える。局所演算手段12は、本スキャン
時にラインセンサ2によって原稿7から読取られるライ
ン1本分の画像データ中から順次選択される注目画素
と、その周囲で予め設定される範囲の局所ブロックにつ
いての局所的な特徴量算出を行い、領域識別処理手段1
3はメモリ5に記録されているプレスキャン時の特徴量
もしくは識別結果と、局所ブロックについての局所演算
手段12の演算結果とに基づいて、領域識別処理手段1
3による注目画素の周囲の局所ブロックについての領域
識別が行われる。
In the present embodiment, the control means 8 realized by the program operation of the arithmetic means 6 performs control such that the original 7 is read in two times, prescan and main scan. The image data from the image data processing means 3 is given to the partial calculation means 10 in the pre-scan by the scan switching means 9 switched by the control means 8, and the classification of the area is performed by the classification means 11 using the calculation result of the partial calculation means. Is also identified. At the time of the main scan, the control means 8 switches the scan switching means 9 to supply the image data from the image data processing means to the local operation means 12. The local operation unit 12 is configured to locally select a target pixel sequentially selected from one line of image data read from the original 7 by the line sensor 2 at the time of the main scan and a local block in a predetermined range around the target pixel. Region characteristic processing means 1
Reference numeral 3 denotes an area identification processing unit 1 based on a feature amount or identification result at the time of pre-scan recorded in the memory 5 and an operation result of the local operation unit 12 for a local block.
3 is performed for the local block around the target pixel.

【0020】図2は、本実施形態の全体的な処理に関連
する概略的な電気的構成を示す。プレスキャンの際に、
図1の部分演算手段10または分類手段11によって得
られる部分特徴量および分類情報としての識別結果を、
図1のメモリ5内に設けられる記録手段であるページメ
モリ5aに記録する。本スキャンの際には、画像データ
は図1のメモリ5内に設けられる格納手段であるブロッ
クメモリ5bに一旦記憶され、局所演算手段12によっ
て局所特徴量が算出される。領域識別処理手段13は、
ページメモリ5aに記憶されているプレスキャンによる
部分特徴量および識別結果と、本スキャン時に局所演算
手段12によって算出される局所特徴量とを用いて、画
像領域の種類の判定を行う。すなわち、ページメモリ5
aに記憶されているプレスキャン時の結果を利用して、
本スキャン時に領域分離処理を行っている。本スキャン
時に入力される画像データは、ブロックメモリ5bに複
数ライン分、たとえば各画素8ビットのデジタルデータ
として256レベルのうちのいずれかのレベルで記憶さ
れる。局所演算手段12は、ブロックメモリ5bに蓄え
られている画像データから、複数の局所特徴量を算出す
る。領域識別処理手段13は、ページメモリ5aに記憶
されているプレスキャン時に求めている文字領域、写真
領域、または網点領域の識別のための部分特徴量もしく
は識別結果を、局所演算手段12によって得られる局所
特徴量に加えて、各画素が属す領域を識別する。
FIG. 2 shows a schematic electrical configuration related to the overall processing of this embodiment. During pre-scan,
The identification result as the partial feature amount and the classification information obtained by the partial calculation unit 10 or the classification unit 11 in FIG.
The data is recorded in a page memory 5a which is a recording means provided in the memory 5 of FIG. At the time of the main scan, the image data is temporarily stored in a block memory 5b, which is a storage unit provided in the memory 5 of FIG. The area identification processing means 13
The type of the image area is determined by using the partial feature amount and the identification result by the pre-scan stored in the page memory 5a and the local feature amount calculated by the local operation unit 12 at the time of the main scan. That is, the page memory 5
Using the result of the pre-scan stored in a
Area separation processing is performed during the main scan. The image data input at the time of the main scan is stored in the block memory 5b for a plurality of lines, for example, as digital data of 8 bits for each pixel at any one of 256 levels. The local operation means 12 calculates a plurality of local feature values from the image data stored in the block memory 5b. The area identification processing means 13 obtains, by the local operation means 12, a partial feature amount or an identification result for identifying a character area, a photograph area, or a halftone dot area, which is stored in the page memory 5a and is obtained at the time of pre-scanning. The region to which each pixel belongs is identified in addition to the local feature quantity to be obtained.

【0021】図3は、本実施形態でプレスキャン時の部
分特徴量を記録するまでの手順を示す。ステップa0か
らプレスキャンの手順を開始し、ステップa1では図1
の画像データ処理手段3から1ライン分の画像データを
入力する。ステップa2では、ステップa1で入力され
た1ライン分の画像データから、主走査方向に充分な幅
を持つライン部分データを選択する。ステップa3で
は、選択されたライン部分データから、部分特徴量を算
出する。ステップa4では、算出された部分特徴量をペ
ージメモリ5aに書込んで保存する。ステップa5で
は、1ライン分の画像データについて、部分特徴量の保
存が完了しているか否かを判断する。完了していないと
きには、ステップa2に戻る。ステップa5で、1ライ
ン分の部分特徴量がページメモリ5aに保存していると
判断されるときには、ステップa6で原稿からの画像全
体についての部分特徴量の保存が終了しているか否を判
断する。終了していないときにはステップa1に戻り、
次のライン画像データの入力を行う。ステップa6で、
画像全体の特徴量保存が終了していると判断されるとき
には、ステップa7で本スキャンに移る。
FIG. 3 shows a procedure up to recording of the partial feature amount at the time of prescan in this embodiment. The procedure of the pre-scan is started from step a0.
The image data for one line is input from the image data processing means 3 of FIG. In step a2, line portion data having a sufficient width in the main scanning direction is selected from the image data for one line input in step a1. In step a3, a partial feature amount is calculated from the selected line partial data. In step a4, the calculated partial feature amount is written and stored in the page memory 5a. In step a5, it is determined whether or not the storage of the partial feature amount has been completed for the image data for one line. If not completed, the process returns to step a2. When it is determined in step a5 that the partial feature amount for one line is stored in the page memory 5a, it is determined in step a6 whether the storage of the partial feature amount for the entire image from the document is completed. . If not finished, return to step a1,
The next line image data is input. In step a6,
When it is determined that the storage of the feature amount of the entire image has been completed, the process proceeds to the main scan in step a7.

【0022】図4は、本発明の実施の他の形態でのプレ
スキャン時の手順を示す。ステップb0からステップb
3までの手順は、図3のステップa0からステップa3
までの各ステップとそれぞれ対応する。ステップb4で
は、ステップb3で算出される部分特徴量に基づき、ラ
イン部分領域が属している領域の種類を、部分特徴量に
基づいて、文字領域、写真領域、または網点領域として
識別する。ステップb5では識別結果を分類情報として
ページメモリ5aに書込んで保存する。ステップb6で
は、1ライン分のライン部分データについての処理が終
了しているか否かを判断する。終了していないときに
は、ステップb2に戻る。終了していれば、ステップb
7で、画像全体についてライン画像データの読込み処理
が終了しているか否かを判断する。終了していなければ
ステップb1に戻り、次のライン画像データを入力す
る。終了していれば、ステップb8で、本スキャンの処
理に移る。
FIG. 4 shows a procedure at the time of pre-scan according to another embodiment of the present invention. Step b0 to Step b
The procedure from step a0 to step a3 in FIG.
Correspond to each step up to. In step b4, based on the partial feature amount calculated in step b3, the type of the area to which the line partial region belongs is identified as a character area, a photograph area, or a halftone dot area based on the partial feature amount. In step b5, the identification result is written and stored in the page memory 5a as classification information. In step b6, it is determined whether or not the processing on the line portion data for one line has been completed. If not, the process returns to step b2. If finished, step b
At 7, it is determined whether the reading processing of the line image data has been completed for the entire image. If not, the process returns to step b1 to input the next line image data. If it has been completed, the process proceeds to the main scan in step b8.

【0023】図5は、プレスキャン時のライン画像デー
タとライン部分領域との関係を示す。原稿画像データ2
0は、主走査方向に配列される画素からの画像データに
よって、主走査方向に対応するライン画像データ21
が、主走査方向に垂直な副走査方向に複数本配列されて
構成される。各ライン画像データ21内には、主走査方
向に充分な幅を持つライン部分画像データ22が設定さ
れる。
FIG. 5 shows the relationship between the line image data and the line partial area at the time of prescan. Original image data 2
0 is the line image data 21 corresponding to the main scanning direction according to the image data from the pixels arranged in the main scanning direction.
Are arranged in a sub-scanning direction perpendicular to the main scanning direction. In each line image data 21, line partial image data 22 having a sufficient width in the main scanning direction is set.

【0024】図6は、2値化されたライン部分データ2
2の例を示す。このライン部分データ22は、24の画
素を含み、画素値が1の画素は、2,3,2,4,3の
ように連続する。画素値が0の画素は、画素値が1の画
素の間に、2,2,3,4のようにそれぞれ連続する。
画素値が1の画素の連続で、画素値が0の画素の連続を
挟んで隣接する連続数の差は、1,1,2,1となる。
同様に、画素値が0の画素の連続数の差は、0,1,1
となる。連続数の差を連続数の個数で割ると、画素値が
1の場合には5/5=1なり、画素値が0の場合には2
/4=0.5となる。特徴量として、両者の和をとれ
ば、1.5となる。
FIG. 6 shows binarized line part data 2
2 shows an example. The line portion data 22 includes 24 pixels, and pixels having a pixel value of 1 are continuous like 2, 3, 2, 4, and 3. Pixels having a pixel value of 0 are continuous between pixels having a pixel value of 1, such as 2, 2, 3, and 4, respectively.
The difference between the number of consecutive pixels having a pixel value of 1 and the number of consecutive pixels adjacent to the pixel having a pixel value of 0 is 1, 1, 2, 2.
Similarly, the difference between the consecutive numbers of pixels having a pixel value of 0 is 0, 1, 1
Becomes Dividing the difference of the number of continuations by the number of continuations gives 5/5 = 1 when the pixel value is 1, and 2/5 when the pixel value is 0.
/4=0.5. If the sum of the two is taken as the feature quantity, it becomes 1.5.

【0025】図7は、図6に示すような特徴量の算出を
行って、プレスキャン時に領域分離を行うための構成を
示す。図1の画像データ処理手段3からスキャン切換手
段9を介して与えられる画像データは、部分演算手段1
0に与えられる。部分演算手段10内には、2値化手段
30、同一画素列カウント手段31、同一隣接画素列の
差算出手段32、加算手段33、除算手段34が含まれ
る。さらに、部分演算手段10内には、2値化手段30
から除算手段34までとは別系統として、隣接画素の算
出手段35、判定手段36、差加算手段37、領域判定
手段38が含まれる。領域判定手段38の判定結果が、
ページメモリ5aに記憶され、領域識別処理手段が本ス
キャン時に参照する。
FIG. 7 shows a configuration for calculating the characteristic values as shown in FIG. 6 and performing region separation at the time of pre-scanning. The image data provided from the image data processing means 3 of FIG.
0 is given. The partial operation means 10 includes a binarizing means 30, a same pixel column counting means 31, a difference calculating means 32 of the same adjacent pixel row, an adding means 33, and a dividing means. Further, in the partial operation means 10, the binarization means 30
As a different system from the division unit to the division unit 34, a calculation unit 35 for adjacent pixels, a determination unit 36, a difference addition unit 37, and a region determination unit 38 are included. The judgment result of the area judgment means 38 is
The information is stored in the page memory 5a and is referred to by the area identification processing means at the time of the main scan.

【0026】図5から図6で示す例の特徴量は、図7の
2値化手段30から除算手段34までの演算手段に基づ
いて領域判定手段38で判定される。たとえば網点領域
を想定すると、i番目のライン画像データが8ビットの
画素値として、230,240,230,50,49,
48,50,229,230,200,…として得られ
ている場合、2値化すると(1110000111…)
といった2値列を得ることができる。この2値列から、
隣合う値が同じになる画素列の長さの差を加算していく
ので、網点領域など、規則的に画素値が1の画素列と画
素値が0の画素列とが繰返す場合には、加算値は小さく
なる。すなわち、文字領域や写真領域では網点領域に加
算値が大きくなる。よってこの特徴量を利用すれば、原
稿を網点領域とその他の領域とに分離することが可能に
なる。
The characteristic quantities in the examples shown in FIGS. 5 and 6 are determined by the area determining means 38 based on the arithmetic means from the binarizing means 30 to the dividing means 34 in FIG. For example, assuming a halftone dot area, the i-th line image data is 230-, 240-, 230-, 50-49,
.. Are obtained as 48, 50, 229, 230, 200,...
Can be obtained. From this binary sequence,
Since the difference between the lengths of the pixel rows where adjacent values are the same is added, when a pixel row having a pixel value of 1 and a pixel row having a pixel value of 0 are regularly repeated such as a halftone dot area, , The added value becomes smaller. That is, in the character area and the photograph area, the addition value is larger in the halftone dot area. Therefore, by using this feature amount, the original can be separated into a halftone dot region and other regions.

【0027】図7の隣接画素の差算出手段35から差加
算手段37までは、主に写真領域をその他の領域と分離
することを目的に設けている。たとえば画素毎の信号レ
ベルである画素濃度値が(235,235,236,2
37,239,240,…,のように少しずつ変化する
写真領域を想定すると、隣合う画素値の差を加算する際
に、閾値を設定し、閾値以上の差加算するようにすれ
ば、画素値が連続的に少しずつ変化する写真領域では、
加算値が小さくなる。したがってこの特徴量は、写真領
域では値が小さくなり網点領域では画素値の大きな変化
の繰返し回数が多くなるので値が大きくなる。文字領域
では、輪郭のエッジ部分で値が大きくなる。
The means from the difference calculating means 35 to the difference adding means 37 in FIG. 7 are provided mainly for separating a photographic area from other areas. For example, if the pixel density value which is the signal level for each pixel is (235, 235, 236, 2
Assuming a photographic area that changes little by little, such as 37, 239, 240,..., A threshold value is set when the difference between adjacent pixel values is added, and a difference greater than or equal to the threshold value is added. In photo areas where the values change continuously and little by little,
The added value becomes smaller. Accordingly, the value of this feature amount increases in the photograph region because the value is small and in the halftone dot region, the number of repetitions of a large change in pixel value is large. In the character area, the value increases at the edge of the contour.

【0028】図8は、図7の2値化手段30から除算手
段34までが算出する特徴量を横軸に、隣接画素の差算
出手段35から差加算手段37までが算出する特徴量を
縦軸にして文字領域、写真領域および網点領域のおよそ
の分布状態を示す。2種類の特徴量を用いれば、3つの
領域を分離することができる。
FIG. 8 shows the feature values calculated by the binarizing means 30 to the dividing means 34 in FIG. 7 on the horizontal axis, and the feature values calculated by the difference calculating means 35 to the difference adding means 37 of the adjacent pixels on the vertical axis. The approximate distribution state of the character area, the photograph area, and the halftone dot area is shown along the axis. If two types of feature values are used, three regions can be separated.

【0029】図9は、図8の横軸に対応する部分特徴量
を、図7の2値化手段30から除算手段30までによっ
て行う手順を示す。ステップc0では、ライン画像デー
タが入力され、ステップc1ではライン部分データが抽
出される。ステップc2では、ライン部分データ毎に平
均値が算出される。ステップc3では、ステップc2で
算出された平均値を閾値として、画素データの2値化が
行われる。仮に、閾値より大きい画素値を「1」、小さ
い画素値を「0」とする。ステップc4では、2値化さ
れた画素値が同じ値の画素列の連続数を計数してカウン
トする。ステップc5では、値の違う画素列を間に挟ん
で隣合う同じ画素値の画素列の長さの差を計数し隣合う
同じ値の画素列の長さの差を加算する。ステップc6で
は、ライン部分領域内での処理が終了しているか否かを
判断する。終了していなければステップc3に戻る。終
了していれば、ステップc7で、ライン部分領域内にあ
る同じ値の連続する画素列の数で、ステップc5で求め
られている加算値を割る除算処理を行う。ステップc8
では画素値が1と0との結果を加算し、ステップc9で
加算値を特徴量として出力する。
FIG. 9 shows a procedure in which the partial feature corresponding to the horizontal axis in FIG. 8 is performed by the binarizing means 30 to the dividing means 30 in FIG. In step c0, line image data is input, and in step c1, line partial data is extracted. In step c2, an average value is calculated for each line portion data. In step c3, binarization of pixel data is performed using the average value calculated in step c2 as a threshold. It is assumed that a pixel value larger than the threshold is “1” and a pixel value smaller than the threshold is “0”. In step c4, the number of continuations of pixel rows having the same value of the binarized pixel value is counted and counted. In step c5, the difference between the lengths of the pixel rows having the same pixel value adjacent to each other with the pixel rows having different values interposed therebetween is counted, and the difference between the lengths of the pixel rows having the same value adjacent to each other is added. In step c6, it is determined whether or not the processing in the line partial area has been completed. If not, the process returns to step c3. If it has been completed, in step c7, a division process of dividing the addition value obtained in step c5 by the number of consecutive pixel columns having the same value in the line partial area is performed. Step c8
Then, the result of the pixel values 1 and 0 is added, and the added value is output as a feature value in step c9.

【0030】図10は、図8の縦軸となる図7の隣接画
素の差算出手段35から差加算手段37までで処理され
る特徴量の算出手順を示す。ステップd0でライン画像
データが入力され、ステップd1でライン部分データが
抽出される。ステップd2では、隣合う画素のノード差
を算出し、ステップd3でノード差が閾値より大きいか
否かを判断する。ノード差が閾値よりも大きいと判断さ
れるときには、ステップd4でノード差を加算する。ス
テップd4の後、またはステップd3でノード差が閾値
以下であると判断されるときは、ステップd5でライン
部分領域内での処理が終了しているか否かを判断する。
終了していないと判断されるときにはステップd2に戻
る。終了していると判断されるときには、ステップd6
で、加算値を特徴量として出力する。
FIG. 10 shows a calculation procedure of the feature amount processed by the difference calculating means 35 to the difference adding means 37 of the adjacent pixels shown in FIG. In step d0, line image data is input, and in step d1, line partial data is extracted. In step d2, the node difference between adjacent pixels is calculated, and in step d3, it is determined whether the node difference is larger than a threshold. When it is determined that the node difference is larger than the threshold value, the node difference is added in step d4. After step d4, or when it is determined in step d3 that the node difference is equal to or smaller than the threshold value, it is determined in step d5 whether the processing in the line partial area has been completed.
When it is determined that the processing has not been completed, the process returns to step d2. If it is determined that the process has been completed, the process proceeds to step d6.
Then, the added value is output as a feature value.

【0031】図11は、本スキャン時に、注目画素の属
する領域の種類を識別する手順を示す。ステップe0で
は、プレスキャン時に画像全体の部分特徴量と、分類情
報としての識別結果がページメモリ5aに保存している
ことを前提とする。ステップe1では、本スキャンを開
始し、ステップe2ではブロックメモリ5bに複数ライ
ン分画素データを局所ブロックで記憶し、特徴量の算出
を行う。ステップe3では、ステップe2で算出される
特徴量と、ステップe0でページメモリ5aに保存され
ている部分特徴量または識別結果とから、注目画素につ
いての特徴量を算出する。ステップe4では、ステップ
e3で算出される特徴量に基づいて、注目画素が属する
領域が文字領域、写真領域、または網点領域のいずれで
あるかを識別する。ステップe5では、ステップe4の
識別結果に応じた画像処理を行う。
FIG. 11 shows a procedure for identifying the type of the area to which the pixel of interest belongs during the main scan. In step e0, it is assumed that the partial features of the entire image and the identification result as the classification information are stored in the page memory 5a at the time of the pre-scan. In step e1, the main scan is started, and in step e2, pixel data for a plurality of lines is stored in the block memory 5b in a local block, and the feature amount is calculated. In step e3, the feature amount of the target pixel is calculated from the feature amount calculated in step e2 and the partial feature amount or the identification result stored in the page memory 5a in step e0. In step e4, it is determined whether the region to which the target pixel belongs is a character region, a photograph region, or a halftone dot region based on the feature amount calculated in step e3. In step e5, image processing according to the identification result in step e4 is performed.

【0032】図12は、以上説明した本実施形態での領
域判定についての基本的な考え方を示す。図12(1)
は、プレスキャンの状態を示す。プレスキャンは、原稿
画像データ20に対して、主走査方向のライン画像デー
タ21を読込み、複数Wの画素についてライン部分デー
タ22を設定する。次に図12(2)に示すように、各
ライン部分データ22毎に大まかな領域分離を行う。次
に図12(3)に示すように、本スキャンを行い、W>
NであるようなN個の大きさの局所ブロック40を注目
画素41の周囲に設定し、注目画素41についての領域
判定を行い、図12(4)では、図12(2)と図12
(3)との結果を総合して、1画素毎の領域の識別を行
う。
FIG. 12 shows the basic concept of area determination in the present embodiment described above. FIG. 12 (1)
Indicates a pre-scan state. In the pre-scan, the line image data 21 in the main scanning direction is read from the document image data 20, and the line partial data 22 is set for a plurality of W pixels. Next, as shown in FIG. 12B, rough region separation is performed for each line partial data 22. Next, as shown in FIG. 12C, a main scan is performed, and W>
In FIG. 12 (4), N local blocks 40 each having a size of N are set around the pixel of interest 41, and the area of the pixel of interest 41 is determined.
Based on the result of (3), the area of each pixel is identified.

【0033】図13は、本発明の実施の他の形態とし
て、図7でのページメモリ5aに一旦プレスキャン時の
部分特徴量と識別結果とを記憶した後、補正手段50を
用いて、本スキャン前に記憶内容を補正する処理を示
す。処理の手順は、図14に示される。図14のステッ
プf0では、プレスキャンとして部分特徴量と分類情報
の識別結果がページメモリ5aに保存される。ステップ
f1では、複数行の識別結果から補正を行う。ステップ
f2で、全ラインについての補正が終了しているか否か
を判断する。終了していないと判断されるときには、ス
テップf1に戻る。全ラインについての補正が終了すれ
ば、ステップf3で本スキャンに移る。このような補正
を行うことによって、プレスキャン時にライン部分領域
毎に得られる部分特徴量または分類情報についての識別
結果を、本スキャンが実行する前に複数ラインを用いて
補正し、主走査方向と副走査方向に関して大局的な扱い
を行うことを可能とする。
FIG. 13 shows another embodiment of the present invention, in which the partial feature amount and the identification result at the time of pre-scanning are temporarily stored in the page memory 5a in FIG. 5 shows a process for correcting stored contents before scanning. The processing procedure is shown in FIG. In step f0 of FIG. 14, the identification result of the partial feature amount and the classification information is stored in the page memory 5a as a pre-scan. In step f1, correction is performed based on the identification results of a plurality of rows. At step f2, it is determined whether or not the correction has been completed for all the lines. If it is determined that the processing has not been completed, the process returns to step f1. When the correction for all the lines is completed, the process proceeds to the main scan in step f3. By performing such correction, the identification result of the partial feature amount or the classification information obtained for each line partial area at the time of the pre-scan is corrected using a plurality of lines before the main scan is performed, and the main scan direction and the main scan direction are corrected. Global handling can be performed in the sub-scanning direction.

【0034】図15は、本発明のさらに他の実施形態と
して、領域識別処理手段13が、プレスキャン時にペー
ジメモリ5aに記憶されている部分特徴量または分類情
報を示す領域の識別結果を、注目画素を含む前後複数ラ
イン分参照し、本スキャン時のブロックメモリ5bから
得る局所特徴量と合わせて注目画素が属する領域の識別
を行う。このような方式でも、大局的な領域の識別を行
うことができる。
FIG. 15 shows, as still another embodiment of the present invention, a method in which the area identification processing means 13 checks the identification result of the area indicating the partial feature amount or the classification information stored in the page memory 5a at the time of the prescan. By referring to a plurality of lines before and after including the pixel, the area to which the pixel of interest belongs is identified together with the local feature obtained from the block memory 5b at the time of the main scan. Even in such a method, a global area can be identified.

【0035】[0035]

【発明の効果】以上のように本発明によれば、原稿をプ
レスキャンと本スキャンとに分けて2回読取り、プレス
キャン時のライン画像データを用いて予め領域を大まか
に分離して部分特徴量を算出しておき、もしくは部分特
徴量から領域の種類を分類しておく。この結果を本スキ
ャン時の領域識別の際の特徴パラメータに利用して、局
所的な情報だけでは識別困難な各画素毎の領域分離を精
度よく行うことができる。すなわち、局所領域のみによ
る識別では、局所ブロックに収まらない長い周期を持つ
領域について識別することが困難であるけれども、プレ
スキャン時に、局所ブロックに利用する画像データの幅
に比べて主走査方向に充分に大きなライン部分データか
らの部分特徴量を加味するので、主走査方向に関して比
較的周期の長い網点領域などでも容易に識別することが
できる。
As described above, according to the present invention, an original is read twice by dividing the original into a pre-scan and a main scan, and the area is roughly separated in advance using line image data at the time of the pre-scan. The amount is calculated or the type of region is classified based on the partial feature amount. Using this result as a feature parameter for region identification at the time of main scan, it is possible to accurately perform region separation for each pixel, which is difficult to identify only with local information. In other words, it is difficult to identify a region having a long cycle that does not fit in the local block by the identification using only the local region. However, in pre-scanning, it is not sufficient in the main scanning direction compared to the width of the image data used for the local block. Since a partial feature amount from large line partial data is taken into account, a halftone dot region having a relatively long cycle in the main scanning direction can be easily identified.

【0036】また本発明によれば、プレスキャン時にラ
イン部分データから得られる部分特徴量や識別結果を、
複数ライン分用いて補正しておき、補正結果を再記録し
ておいて本スキャン時の領域識別の際の局所特徴量に加
味し、1ラインの領域識別用の情報を利用するときに比
べて、より大局的な識別結果を得て識別精度を向上させ
ることができる。
Further, according to the present invention, the partial feature amount and the identification result obtained from the line partial data at the time of the pre-scan are determined by:
The correction is performed using a plurality of lines, the correction result is re-recorded, and added to the local feature amount at the time of region identification at the time of the main scan. Thus, a more comprehensive identification result can be obtained and the identification accuracy can be improved.

【0037】また本発明によれば、プレスキャン時にラ
イン部分データに基づいて求める部分特徴量もしくは分
類情報を、本スキャン時の領域識別のための局所特徴量
として注目画素の前後複数ライン分で利用するので、本
スキャン時に複数のパラメータとして利用することがで
き、プレスキャン時の大局的な識別の誤りを減少させる
ことができる。
Further, according to the present invention, a partial feature amount or classification information obtained based on line partial data at the time of pre-scan is used as a local feature amount for region identification at the time of the main scan for a plurality of lines before and after the target pixel. Therefore, the parameters can be used as a plurality of parameters at the time of the main scan, and global identification errors at the time of the pre-scan can be reduced.

【0038】また本発明によれば、プレスキャン時のラ
インデータを2値化して値が異なる画素列を挟んだ隣合
う同一値の画素列の画素数の差を加算して得られる部分
特徴量は、周期的な領域では値が小さくなり、周期的で
ない領域では値が大きくなる。これを利用することによ
って、網点領域と、その他の文字領域や写真領域とを分
離することができる。
Further, according to the present invention, the partial feature amount obtained by binarizing the line data at the time of pre-scanning and adding the difference in the number of pixels between adjacent pixel rows having the same value across pixel rows having different values. Has a small value in a periodic region, and has a large value in a non-periodic region. By utilizing this, it is possible to separate the halftone dot area from other character areas and photograph areas.

【0039】また本発明によれば、プレスキャン時のラ
インデータを用いて隣合う画素値の差が予め設定されて
いる閾値よりも大きい場合のみ加算して部分特徴量を得
るので、隣接画素間のノード差が小さい場合に部分特徴
量が小さくなる。これを利用することによって、写真領
域と、その他の文字領域や網点領域とに容易に分離する
ことができる。
Further, according to the present invention, partial feature values are obtained by adding only when the difference between adjacent pixel values is larger than a preset threshold value using line data at the time of pre-scanning. Is small, the partial feature amount is small. By utilizing this, it is possible to easily separate a photograph region from other character regions and halftone dot regions.

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

【図1】本発明の実施の一形態の概略的な電気的構成を
示すブロック図である。
FIG. 1 is a block diagram showing a schematic electrical configuration of an embodiment of the present invention.

【図2】図1の画像処理装置による領域識別のための概
略的な論理的構成を示すブロック図である。
FIG. 2 is a block diagram showing a schematic logical configuration for area identification by the image processing apparatus of FIG. 1;

【図3】図1の実施形態でプレスキャン時の処理手順を
示すフローチャートである。
FIG. 3 is a flowchart showing a processing procedure at the time of pre-scan in the embodiment of FIG. 1;

【図4】図1の実施形態でプレスキャン時の処理手順を
示すフローチャートである。
FIG. 4 is a flowchart showing a processing procedure at the time of pre-scan in the embodiment of FIG. 1;

【図5】図1の実施形態でプレスキャン時のライン画像
データとライン部分領域とを示す図である。
FIG. 5 is a diagram showing line image data and a line partial area at the time of pre-scan in the embodiment of FIG. 1;

【図6】図5に読込まれるライン画像データおよびライ
ン部分データに基づく特徴量の算出例を示す図である。
6 is a diagram illustrating an example of calculating a feature amount based on line image data and line partial data read in FIG. 5;

【図7】プレスキャン時に特徴量を算出するための論理
的構成を示すブロック図である。
FIG. 7 is a block diagram showing a logical configuration for calculating a feature amount at the time of a pre-scan;

【図8】図7の構成で算出される特徴量と領域の種類と
の関係を示す図である。
8 is a diagram showing a relationship between a feature amount calculated by the configuration of FIG. 7 and a type of a region.

【図9】図8の横軸に関連する特徴量の算出手順を示す
フローチャートである。
FIG. 9 is a flowchart illustrating a calculation procedure of a feature amount related to the horizontal axis in FIG. 8;

【図10】図8の縦軸の特徴量の算出手順を示すフロー
チャートである。
FIG. 10 is a flowchart showing a procedure for calculating a feature amount on the vertical axis in FIG. 8;

【図11】図2の処理手順で、本スキャン時の処理手順
を示すフローチャートである。
FIG. 11 is a flowchart showing a processing procedure at the time of a main scan in the processing procedure of FIG. 2;

【図12】図2の実施形態に基づく原稿画像データ20
の処理と、処理対象の領域との関係を示す図である。
FIG. 12 shows original image data 20 based on the embodiment of FIG. 2;
FIG. 6 is a diagram showing a relationship between the processing of FIG.

【図13】本発明の実施の他の形態の部分的な論理的構
成を示すブロック図である。
FIG. 13 is a block diagram showing a partial logical configuration of another embodiment of the present invention.

【図14】図13の実施形態の動作を示す部分的フロー
チャートである。
FIG. 14 is a partial flowchart showing the operation of the embodiment of FIG.

【図15】本発明の実施のさらに他の形態の論理的構成
を示す簡略化したブロック図である。
FIG. 15 is a simplified block diagram showing a logical configuration of still another embodiment of the present invention.

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

1 画像処理装置 4 演算手段 5 メモリ 5a ページメモリ 5b ブロックメモリ 7 原稿 8 制御手段 10 部分演算手段 11 分類手段 12 局所演算手段 13 領域識別処理手段 20 原稿画像データ 21 ライン画像データ 22 ライン部分データ 30 2値化手段 31 同一画素列カウント手段 32 同一隣接画素列の差算出手段 33 加算手段 34 除算手段 35 隣接画素の差算出手段 36 判定手段 37 差加算手段 38 領域判定手段 40 局所ブロック 41 注目画素 50 補正手段 DESCRIPTION OF SYMBOLS 1 Image processing apparatus 4 Computing means 5 Memory 5a Page memory 5b Block memory 7 Document 8 Control means 10 Partial computing means 11 Classification means 12 Local computing means 13 Area identification processing means 20 Document image data 21 Line image data 22 Line partial data 30 2 Value conversion means 31 Same pixel column counting means 32 Same adjacent pixel row difference calculation means 33 Addition means 34 Division means 35 Neighbor pixel difference calculation means 36 Judgment means 37 Difference addition means 38 Area judgment means 40 Local block 41 Target pixel 50 Correction means

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 原稿を主走査方向および副走査方向に二
次元的に走査して得られる画像信号に対して、各画素が
文字領域、写真領域または網点領域のいずれの領域に属
しているかを識別して処理を行う画像処理装置におい
て、 原稿の走査を、プレスキャンおよび本スキャンに分けて
行うように制御する制御手段と、 プレスキャン時に、主走査方向のライン画像データを用
いて、各ラインの部分領域の特性を表す部分特徴量を求
める部分演算手段と、 部分演算手段によって求められる部分特徴量から、各ラ
インの部分領域が属する領域の種類を分類して識別する
分類手段と、 部分演算手段によって得られる部分特徴量の演算結果、
もしくは分類手段によって得られる識別結果を記録する
記録手段と、 本スキャン時に、画像信号中から1つずつ選択される画
素を注目画素として、注目画素とその近傍の複数画素か
ら成る局所ブロックの画像データを格納する格納手段
と、 格納手段に格納される画像データから、文字領域、写真
領域、または網点領域の各領域の特性を表す複数の局所
特徴量を求める局所演算手段と、 記録手段に記録されている部分特徴量もしくは識別結果
と、局所演算手段によって得られる注目画素毎の局所特
徴量とを用いて、局所ブロック内の注目画素が属してい
る領域を識別し、識別される領域の種類に応じて予め定
められる処理を行う領域識別処理手段とを備えることを
特徴とする画像処理装置。
1. An image signal obtained by two-dimensionally scanning a document in a main scanning direction and a sub-scanning direction, wherein each pixel belongs to a character area, a photograph area, or a halftone area. In an image processing apparatus that identifies and processes a document, a control unit that controls scanning of a document into pre-scanning and main scanning is performed, and during pre-scanning, line image data in the main scanning direction is used. A partial operation means for obtaining a partial characteristic amount representing a characteristic of the partial area of the line; a classification means for classifying and classifying a type of an area to which the partial area of each line belongs from the partial characteristic amount obtained by the partial operation means; A calculation result of the partial feature amount obtained by the calculation means,
Or a recording unit for recording an identification result obtained by the classifying unit; and image data of a local block including a pixel of interest and a plurality of pixels near the pixel of interest, where a pixel selected one by one from an image signal is used as a pixel of interest during the main scan. Storage means for storing a plurality of local feature values representing characteristics of each of a character area, a photograph area, and a halftone dot area from image data stored in the storage means; The region to which the pixel of interest belongs in the local block is identified using the partial feature amount or the identification result obtained and the local feature amount for each pixel of interest obtained by the local operation means, and the type of the region to be identified An image processing apparatus comprising: an area identification processing unit configured to perform a predetermined process according to the image processing.
【請求項2】 前記部分演算手段は、主走査方向に複数
画素幅を持つライン部分読取データを用いて前記文字領
域、写真領域、または網点領域の特性を表す部分特徴量
を演算し、 前記記録手段に記録される部分特徴量もしくは前記識別
結果を、本スキャン実行前に、副走査方向に関して複数
ライン用いるブロック単位で補正し、補正結果を記録手
段に再記録する補正手段をさらに備え、 前記領域識別処理手段は、記録手段に再記録されている
部分特徴量もしくは識別結果と、局所特徴量とから、前
記注目画素の領域分離情報を出力することを特徴とする
請求項1に記載の画像処理装置。
2. The method according to claim 1, wherein the partial calculation unit calculates a partial feature amount representing a characteristic of the character area, the photograph area, or the halftone dot area using line partial read data having a plurality of pixel widths in the main scanning direction. A correction unit configured to correct the partial feature amount or the identification result recorded in the recording unit in units of blocks using a plurality of lines in the sub-scanning direction before performing the main scan, and re-record the correction result in the recording unit; 2. The image according to claim 1, wherein the area identification processing unit outputs the area separation information of the pixel of interest based on the partial feature amount or the identification result re-recorded in the recording unit and the local feature amount. 3. Processing equipment.
【請求項3】 前記領域識別処理手段は、前記記録手段
に記録されている部分特徴量もしくは識別結果を、前記
注目画素が属しているラインの前後複数ラインを利用し
て、本スキャン時に各注目画素が文字領域、写真領域、
もしくは網点領域のいずれの領域に属しているかを識別
し、領域識別情報を出力することを特徴とする請求項1
または2に記載の画像処理装置。
3. The area discriminating processing unit uses a plurality of lines before and after the line to which the pixel of interest belongs to each of the partial feature amounts or the identification results recorded in the recording unit, and Pixels are text area, photo area,
2. The method according to claim 1, further comprising: identifying to which of the halftone dot regions the region belongs, and outputting the region identification information.
Or the image processing device according to 2.
【請求項4】 前記部分演算手段は、 前記主走査方向のライン部分画像データを2値化する2
値化手段と、 2値化手段から得られる2値化画素列中で、値が異なる
画素列を挟んで隣合う同一値の画素列の画素数の差を加
算する加算手段とを含み、 加算手段の加算結果を各ライン部分領域が属している前
記文字領域、写真領域、または網点領域のいずれの領域
に属しているかを識別するための部分特徴量とすること
を特徴とする請求項1〜3のいずれかに記載の画像処理
装置。
4. The method according to claim 1, wherein the partial operation unit binarizes the line partial image data in the main scanning direction.
A binarizing means, and an adding means for adding the difference in the number of pixels between adjacent pixel rows having the same value across the pixel rows having different values in the binarized pixel row obtained from the binarizing means. 2. The method according to claim 1, wherein the addition result of the means is a partial feature amount for identifying which of the character area, the photograph area, and the halftone dot area each line partial area belongs to. The image processing apparatus according to any one of claims 1 to 3,
【請求項5】 前記部分演算手段は、 前記主走査方向のライン部分画像データ中で、隣合う画
素値の差を計算する差算出手段と、 差算出手段によって計算される隣合う画素値の差が予め
設定される閾値に関する条件を満たす場合のみ加算する
差加算手段とを含み、 差加算手段の加算結果を各ライン部分領域が属している
文字領域、写真領域、または網点領域に対応する部分特
徴量とすることを特徴とする請求項1〜4のいずれかに
記載の画像処理装置。
5. The partial calculating means includes: a difference calculating means for calculating a difference between adjacent pixel values in the line partial image data in the main scanning direction; and a difference between adjacent pixel values calculated by the difference calculating means. And a difference adding unit that adds only when a condition regarding a preset threshold value is satisfied, and a part corresponding to a character area, a photograph area, or a halftone area to which each line partial area belongs. The image processing apparatus according to claim 1, wherein the image processing apparatus is a feature amount.
JP9264453A 1997-09-29 1997-09-29 Image processor Pending JPH11112796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9264453A JPH11112796A (en) 1997-09-29 1997-09-29 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9264453A JPH11112796A (en) 1997-09-29 1997-09-29 Image processor

Publications (1)

Publication Number Publication Date
JPH11112796A true JPH11112796A (en) 1999-04-23

Family

ID=17403422

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9264453A Pending JPH11112796A (en) 1997-09-29 1997-09-29 Image processor

Country Status (1)

Country Link
JP (1) JPH11112796A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010155B2 (en) 2001-10-10 2006-03-07 Seiko Epson Corporation Negotiable instrument processing apparatus and method for background removal
US7365880B2 (en) 2003-04-04 2008-04-29 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
JP2015015702A (en) * 2013-06-05 2015-01-22 株式会社リコー Read image processing apparatus, image reading device, image forming apparatus, read image processing program, and read image processing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010155B2 (en) 2001-10-10 2006-03-07 Seiko Epson Corporation Negotiable instrument processing apparatus and method for background removal
US7190821B2 (en) 2001-10-10 2007-03-13 Seiko Epson Corporation Negotiable instrument processing apparatus
US7365880B2 (en) 2003-04-04 2008-04-29 Kabushiki Kaisha Toshiba Image processing apparatus and image processing method
JP2015015702A (en) * 2013-06-05 2015-01-22 株式会社リコー Read image processing apparatus, image reading device, image forming apparatus, read image processing program, and read image processing method

Similar Documents

Publication Publication Date Title
JP3576810B2 (en) Image processing device
JP3568732B2 (en) Image processing device
JPH11112796A (en) Image processor
JP3073837B2 (en) Image region separation device and image region separation method
JP3479161B2 (en) Image processing device
JP2501646B2 (en) Character background processor
JP3806704B2 (en) Image processing device
JPH0550187B2 (en)
US8488138B2 (en) Method for composing a reflectivity histogram and reprographic apparatus using this method
JPH05344330A (en) Picture area discriminating device
JPH08149298A (en) Color dot area decision device
JPH08272956A (en) Method and device for noise removal
JP3628536B2 (en) Binary image converter
JP2647455B2 (en) Halftone dot area separation device
JP3358133B2 (en) Image processing device
JPS60136476A (en) Picture processor
JPH05344329A (en) Picture area discriminating device
JP2647458B2 (en) Halftone dot area separation device
JP2859603B2 (en) Method and apparatus for binarizing image data
JP2949628B2 (en) Image area separation method
JPH02103685A (en) Separating system for dot area
JP3436003B2 (en) Image processing device
JP2766031B2 (en) Image processing apparatus and image processing method
JPS6328174A (en) Picture processor
JP2002185798A (en) Image processing unit