JP5838763B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP5838763B2
JP5838763B2 JP2011260028A JP2011260028A JP5838763B2 JP 5838763 B2 JP5838763 B2 JP 5838763B2 JP 2011260028 A JP2011260028 A JP 2011260028A JP 2011260028 A JP2011260028 A JP 2011260028A JP 5838763 B2 JP5838763 B2 JP 5838763B2
Authority
JP
Japan
Prior art keywords
document
image
block
classification process
pixel
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.)
Active
Application number
JP2011260028A
Other languages
Japanese (ja)
Other versions
JP2013115611A (en
Inventor
康輔 森
康輔 森
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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011260028A priority Critical patent/JP5838763B2/en
Publication of JP2013115611A publication Critical patent/JP2013115611A/en
Application granted granted Critical
Publication of JP5838763B2 publication Critical patent/JP5838763B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書によって開示される発明は、原稿画像を、当該原稿画像を含む読取画像のデータに基づき、複数の原稿カテゴリーのいずれかに分類する技術に関する。   The invention disclosed in this specification relates to a technique for classifying a document image into one of a plurality of document categories based on read image data including the document image.

従来から、別途、CIS(Contact Image Sensor)等の画像読取手段で読み取られた原稿画像の読取画像データに基づき、当該原稿画像を、例えばカラー原稿、白黒原稿などの原稿カテゴリーのいずれかに分類する画像処理装置がある(特許文献1参照)。画像処理装置は、上記読取画像を複数のブロックに分割し、各々のブロックに含まれる画素のうち、カラー画素または白黒画素に分類された画素の数が閾値以上であるか否かに基づいて、各ブロックをカラーブロックか白黒ブロックかに分類する。そして、画像処理装置は、カラーブロック及び白黒ブロックの数から、原稿画像をカラー原稿か白黒原稿かに分類している。   Conventionally, based on read image data of a document image read by an image reading unit such as CIS (Contact Image Sensor), the document image is classified into one of document categories such as a color document and a monochrome document. There is an image processing apparatus (see Patent Document 1). The image processing apparatus divides the read image into a plurality of blocks, and based on whether or not the number of pixels classified into color pixels or monochrome pixels among the pixels included in each block is greater than or equal to a threshold value, Each block is classified as a color block or a black and white block. The image processing apparatus classifies the document image as a color document or a monochrome document based on the number of color blocks and monochrome blocks.

また、別途、画像読取手段で読み取られた原稿の読取画像のデータに基づき、当該原稿画像を、単色(無地)原稿か多色原稿かに分類する画像処理装置がある(特許文献2参照)。この画像処理装置は、上記読取画像を複数のブロックに分割し、各々のブロックに含まれる画素のうち、単色(白紙)画素に分類された画素の数が閾値以上であるか否かに基づいて、各ブロックを単色ブロックか多色ブロックかに分類する。そして、画像処理装置は、無地ブロックの数から、原稿画像を単色原稿か多色原稿かに分類している。   In addition, there is an image processing apparatus that classifies the original image into a single-color (plain color) original or a multi-color original based on the read image data of the original read by the image reading means (see Patent Document 2). The image processing apparatus divides the read image into a plurality of blocks, and based on whether or not the number of pixels classified into single-color (blank) pixels among the pixels included in each block is equal to or greater than a threshold value. Each block is classified as a single color block or a multicolor block. Then, the image processing apparatus classifies the document image as a single color document or a multicolor document based on the number of plain blocks.

特開2003−116011号公報JP 2003-1116011 A 特開2008−219810号公報Japanese Patent Laid-Open No. 2008-21981

ところで、画像読取手段の読取範囲が原稿サイズよりも広いために原稿の端辺部分も読取対象とされて、原稿の端辺画像を含んだ読取画像のデータが生成されることがある。このような原稿の端辺画像を含む読取画像について、上述したブロック分割により原稿カテゴリーを分類する場合、端辺画像を構成する画素の色情報によって、原稿画像が、誤った原稿カテゴリーに分類されてしまうおそれがある。具体的には、実際の原稿画像はカラー原稿である場合でも、原稿の端辺画像を含むブロックが、白黒ブロックと判断されることにより、原稿画像が白黒原稿に分類されることがある。また、実際の原稿画像は白紙原稿である場合でも、原稿の端辺画像を含むブロックが、白黒ブロックと判断されることにより、原稿画像が白紙原稿でないとされることがある。   By the way, since the reading range of the image reading unit is wider than the document size, the edge portion of the document is also read, and read image data including the edge image of the document may be generated. When the document category is classified by the above-described block division for the read image including the edge image of the document, the document image is classified into an incorrect document category by the color information of the pixels constituting the edge image. There is a risk that. Specifically, even when an actual document image is a color document, the document image may be classified as a monochrome document by determining that the block including the edge image of the document is a monochrome block. Even when the actual document image is a blank document, the document image may not be a blank document because the block including the edge image of the document is determined to be a black and white block.

本明細書では、原稿の端辺画像の影響により、原稿画像が誤った原稿カテゴリーに分類されることを抑制する技術を開示する。   The present specification discloses a technique for suppressing a document image from being classified into an incorrect document category due to the influence of the edge image of the document.

本明細書によって開示される画像処理装置は、原稿の端辺画像を含む読取画像のデータを取得するデータ取得部と、制御部と、を備え、前記制御部は、前記読取画像内の対象範囲に属する各画素を、当該画素の色情報に基づき複数の画素カテゴリーのいずれかに分類する画素分類処理と、前記対象範囲を、複数のブロックに分割するブロック分割処理と、前記複数のブロックそれぞれを、前記画素分類処理で前記複数の画素カテゴリーのうち少なくとも1つの画素カテゴリーに分類された画素の数に基づき、複数のブロックカテゴリーのいずれかに分類するブロック分類処理と、前記原稿画像を、前記ブロック判定処理で前記複数のブロックカテゴリーのうち少なくとも1つのブロックカテゴリーに分類されたブロックの数に基づき、複数の原稿カテゴリーのいずれかに分類する原稿分類処理と、を実行する構成を有し、前記対象範囲は、前記原稿画像のうち少なくとも一の端辺画像を含まず、前記ブロックは、前記原稿画像の前記一の端辺画像に平行な方向の長さが、前記一の端辺画像に直交する方向の長さよりも長い形状である。   An image processing apparatus disclosed in this specification includes a data acquisition unit that acquires data of a read image including an edge image of a document, and a control unit, and the control unit includes a target range in the read image. A pixel classification process for classifying each pixel belonging to one of a plurality of pixel categories based on color information of the pixel, a block division process for dividing the target range into a plurality of blocks, and each of the plurality of blocks. A block classification process for classifying the document image into any one of a plurality of block categories based on the number of pixels classified into at least one of the plurality of pixel categories in the pixel classification process; Based on the number of blocks classified into at least one of the plurality of block categories in the determination process, a plurality of blocks A document classification process for classifying the document image into any one of the document categories, the target range does not include at least one edge image of the document image, and the block includes the document image. The length in the direction parallel to the one edge image is longer than the length in the direction orthogonal to the one edge image.

上記画像処理装置では、前記制御部は、前記ブロック分類処理において、前記複数のブロックそれぞれを、カラーブロック、白黒ブロック、グレイブロックの少なくとも2つを含むブロックカテゴリーのいずれかに分類し、前記原稿分類処理において、前記原稿画像を、カラー原稿、白黒原稿、グレイ原稿の少なくとも2つを含む原稿カテゴリーのいずれかに分類する構成でもよい。   In the image processing apparatus, in the block classification process, the control unit classifies each of the plurality of blocks into one of a block category including at least two of a color block, a monochrome block, and a gray block, and the document classification In the processing, the document image may be classified into any one of document categories including at least two of a color document, a monochrome document, and a gray document.

上記画像処理装置では、前記制御部は、前記ブロック分類処理において、前記複数のブロックそれぞれを、ブランクブロック、非ブランクブロックを含むブロックカテゴリーのいずれかに分類し、前記原稿分類処理において、前記原稿画像を、ブランク原稿、非ブランク原稿を含む原稿カテゴリーのいずれかに分類する構成でもよい。   In the image processing apparatus, the control unit classifies each of the plurality of blocks into one of a block category including a blank block and a non-blank block in the block classification process, and the document image in the document classification process. May be classified into either a blank document or a document category including a non-blank document.

上記画像処理装置では、前記制御部は、前記ブロック分類処理において、前記複数のブロックそれぞれを、ブランクブロック、非ブランクブロックを含むブロックカテゴリーのいずれかに分類する第1分類処理と、前記複数のブロックそれぞれを、カラーブロック、白黒ブロック、グレイブロックの少なくとも2つを含むブロックカテゴリーのいずれかに分類する第2分類処理を実行し、
前記原稿分類処理において、前記第1分類処理の結果に基づき、前記原稿画像を、ブランク原稿、非ブランク原稿を含む原稿カテゴリーのいずれかに分類し、前記第2分類処理の結果に基づき、前記原稿画像を、カラー原稿、白黒原稿、グレイ原稿の少なくとも2つを含む原稿カテゴリーのいずれかに分類する構成でもよい。
In the image processing device, in the block classification process, the control unit classifies each of the plurality of blocks into a block category including a blank block and a non-blank block, and the plurality of blocks. Performing a second classification process for classifying each into one of a block category including at least two of a color block, a black and white block, and a gray block;
In the document classification process, the document image is classified into one of a document category including a blank document and a non-blank document based on the result of the first classification process, and the document is classified based on the result of the second classification process. The image may be classified into any one of document categories including at least two of a color document, a monochrome document, and a gray document.

上記画像処理装置では、前記制御部は、前記読取画像の解像度を検出し、前記ブロックのサイズを、前記解像度の検出値が高いほど大きくして、当該ブロックに含まれる画素数を増加させるブロックサイズ変更処理を実行する構成でもよい。   In the image processing apparatus, the control unit detects the resolution of the read image, and increases the block size to increase the number of pixels included in the block by increasing the size of the block as the detection value of the resolution increases. A configuration for executing the changing process may also be used.

上記画像処理装置では、原稿に対して相対移動しながら、当該原稿を読み取る読取デバイスを備え、前記データ取得部は、前記読取デバイスから前記原稿の端辺画像を含む読取画像のデータを取得し、前記対象範囲は、前記原稿画像のうち、前記読取デバイスと前記原稿との相対移動方向に直交する一対の端辺画像の少なくとも一方を含まなくてもよい。   The image processing apparatus includes a reading device that reads the document while relatively moving with respect to the document, and the data acquisition unit acquires data of a read image including an edge image of the document from the reading device, The target range may not include at least one of a pair of edge images orthogonal to the relative movement direction of the reading device and the document among the document images.

上記画像処理装置では、前記対象範囲は、前記一対の端辺画像のうち、画像濃度が相対的に高い端辺画像を含まず、且つ、画像濃度が相対的に低い端辺画像を含んでもよい。   In the image processing apparatus, the target range may include an edge image having a relatively low image density and not including an edge image having a relatively high image density among the pair of edge images. .

上記画像処理装置では、前記読取デバイスは、相対移動する原稿に対して斜め後方から光を照射する位置に配置された光源、及び、前記光源によって照射され前記原稿で反射された光を受光する位置に配置された撮像部を有する構成であり、前記対象範囲は、前記一対の端辺画像のうち、前記読取デバイスよりに先に読み取られる端辺画像を含まず、後に読み取られる端辺画像を含んでもよい。   In the above-described image processing apparatus, the reading device has a light source disposed at a position where light is irradiated obliquely from behind a relatively moving document, and a position that receives light irradiated by the light source and reflected from the document. The target range does not include an edge image read before the reading device, but includes an edge image read later, out of the pair of edge images. But you can.

なお、この発明は、上記画像処理装置、画像処理方法、これらの方法または装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の種々の態様で実現することができる。   The present invention can be realized in various modes such as the image processing apparatus, the image processing method, a computer program for realizing the functions of these methods or apparatuses, and a recording medium on which the computer program is recorded.

本発明によれば、原稿カテゴリーの分類に利用する対象範囲には、原稿画像のうち少なくとも一の端辺画像が含まれない。このため、対象範囲に一の端辺画像及び他の端辺画像の両方が含まれる構成に比べて、原稿カテゴリーの分類について原稿の端辺画像の影響を抑制することができる。更に、ブロックは、上記一の端辺画像に平行な方向の長さが、一の端辺画像に直交する方向の長さよりも長い形状である。このようなブロックであれば、例えば正方形のブロックに比べて、一のブロックに対し端辺画像の領域が占める割合が小さいため、ブロックカテゴリーの分類について原稿の端辺画像の影響を抑制することができる。これにより、原稿の端辺画像の影響により、原稿画像が誤った原稿カテゴリーに分類されることを抑制することができる。   According to the present invention, the target range used for classification of the document category does not include at least one edge image among the document images. For this reason, compared with a configuration in which both the one edge image and the other edge image are included in the target range, it is possible to suppress the influence of the document edge image on the classification of the document category. Further, the block has a shape in which the length in the direction parallel to the one edge image is longer than the length in the direction orthogonal to the one edge image. In such a block, for example, since the ratio of the edge image area to one block is smaller than that of a square block, the influence of the edge image of the document on the classification of the block category can be suppressed. it can. Thereby, it is possible to suppress the document image from being classified into an incorrect document category due to the influence of the edge image of the document.

一実施形態に係る画像読取装置の概略的な内部構成図1 is a schematic internal configuration diagram of an image reading apparatus according to an embodiment. 画像読取装置の電気的構成を概略的に示すブロック図Block diagram schematically showing the electrical configuration of the image reading apparatus 読取処理を示すフローチャートFlow chart showing the reading process ブロック解析処理を示すフローチャートFlow chart showing block analysis processing 本実施形態のブロックを示す模式図Schematic diagram showing the block of this embodiment 比較例のブロックを示す模式図Schematic diagram showing the block of the comparative example 原稿判定処理を示すフローチャートFlow chart showing document determination processing

一実施形態について図1から図7を参照しつつ説明する。以下の説明では、図1の紙面左側が画像読取装置1の前側であり、紙面手前側が画像読取装置1の右側であり、紙面上側が画像読取装置1の上側であるものとする。なお、画像読取装置1は、画像処理装置の一例である。   An embodiment will be described with reference to FIGS. 1 to 7. In the following description, it is assumed that the left side of FIG. 1 is the front side of the image reading device 1, the front side of the paper is the right side of the image reading device 1, and the upper side of the paper is the upper side of the image reading device 1. Note that the image reading apparatus 1 is an example of an image processing apparatus.

(画像読取装置の機械的構成)
図1に示すように、画像読取装置1は、原稿トレイ2と、本体部3と、排出トレイ4と、を含む。この画像読取装置1は、原稿トレイ2に載置された原稿Mを本体部3内に搬送しつつ、その搬送中の原稿M上の画像を読取デバイス24により読み取り、その後、原稿Mを排出トレイ4に排出するシートフィードスキャナである。なお、原稿Mは、紙製に限らずプラスチック製などでもよい。
(Mechanical configuration of image reading apparatus)
As shown in FIG. 1, the image reading apparatus 1 includes a document tray 2, a main body unit 3, and a discharge tray 4. The image reading apparatus 1 reads an image on the document M being conveyed by the reading device 24 while conveying the document M placed on the document tray 2 into the main body 3, and then reads the document M on the discharge tray. 4 is a sheet feed scanner which discharges to 4. The document M is not limited to paper but may be plastic.

原稿トレイ2は、前側が下方に傾斜した状態で、本体部3の後側に設けられており、1または複数枚の原稿Mが載置される。本体部3の内部には、原稿トレイ2の前端から排出トレイ4の後端まで延びる搬送経路22が設けられている。また、この搬送経路22の周辺に、ピックアップローラ20、分離パッド21、フィードローラ23、読取デバイス24、排出ローラ25、フロントセンサ26、リヤセンサ27が設けられている。   The document tray 2 is provided on the rear side of the main body 3 with the front side inclined downward, and one or a plurality of documents M are placed thereon. A conveyance path 22 extending from the front end of the document tray 2 to the rear end of the discharge tray 4 is provided in the main body 3. In addition, a pickup roller 20, a separation pad 21, a feed roller 23, a reading device 24, a discharge roller 25, a front sensor 26, and a rear sensor 27 are provided around the transport path 22.

ピックアップローラ20は、原稿トレイ2の前側に配置され、図示しないモータにより駆動され、原稿トレイ2に載置された1または複数枚の原稿Mを、摩擦力により、本体部3の内部へと引き込む。分離パッド21は、ピックアップローラ20に対向して配置され、摩擦力により、複数枚の原稿Mを1枚ずつ分離する。これにより、原稿Mが1枚ずつ本体部3の内部へと搬送される。   The pickup roller 20 is disposed on the front side of the document tray 2 and is driven by a motor (not shown), and draws one or a plurality of documents M placed on the document tray 2 into the main body 3 by frictional force. . The separation pad 21 is disposed to face the pickup roller 20 and separates a plurality of documents M one by one by frictional force. As a result, the originals M are conveyed one by one into the main body 3.

フィードローラ23は、ピックアップローラ20等よりも搬送経路22の下流側に設けられ、図示しないモータにより駆動され、搬送経路22上に存在する原稿Mを前方へと搬送する。読取デバイス24は、フィードローラ23よりも搬送経路22の下流側に設けられ、そのフィードローラ23により搬送される原稿Mの画像を読み取る。   The feed roller 23 is provided on the downstream side of the conveyance path 22 relative to the pickup roller 20 and the like, is driven by a motor (not shown), and conveys the document M existing on the conveyance path 22 forward. The reading device 24 is provided on the downstream side of the conveyance path 22 with respect to the feed roller 23, and reads an image of the document M conveyed by the feed roller 23.

読取デバイス24は、搬送経路22の下側に配置されており、原稿Mの他面、換言すれば下面の画像を読み取る。読取デバイス24は、CIS(Contact Image Sensor)を有する構成であり、具体的には、光源31、導光部材32、撮像部33、プラテンガラス34がキャリッジ35に搭載された構成である。光源31は、RGBの複数の発光素子が左右方向に沿って並んで配置され、光L1を搬送経路22に対して斜め後方から照射する構成である。   The reading device 24 is disposed below the conveyance path 22 and reads an image on the other side of the document M, in other words, the lower side. The reading device 24 has a configuration having a CIS (Contact Image Sensor). Specifically, the reading device 24 has a configuration in which a light source 31, a light guide member 32, an imaging unit 33, and a platen glass 34 are mounted on a carriage 35. The light source 31 has a configuration in which a plurality of RGB light emitting elements are arranged side by side in the left-right direction, and irradiates the light L1 with respect to the transport path 22 obliquely from behind.

撮像部33は、図示しない複数の撮像素子が左右方向に配列されて構成されている。プラテンガラス34は、搬送経路22に沿って配置されている。光源31は、光L1を、プラテンガラス34を介して、搬送経路22内の原稿Mに照射し、撮像部32は、原稿Mからの反射光L2を、導光部材32を介して受光する。なお、読取デバイス24は、CISに限らず、例えばCCD(Charge Coupled Drive Image Sensor)を有する構成でもよい。   The imaging unit 33 is configured by arranging a plurality of imaging elements (not shown) in the left-right direction. The platen glass 34 is disposed along the transport path 22. The light source 31 irradiates the original M in the transport path 22 with the light L 1 through the platen glass 34, and the imaging unit 32 receives the reflected light L 2 from the original M through the light guide member 32. The reading device 24 is not limited to the CIS, and may be configured to have, for example, a CCD (Charge Coupled Drive Image Sensor).

排出ローラ25は、読取デバイス24よりも搬送経路22の下流側に設けられ、読取デバイス24により画像が読み取られた原稿Mを、本体部3の外部に送り出す。排出トレイ4は本体部3の前側に設けられ、その排出トレイ4に、本体部3の外部に送り出された原稿Mが積層される。なお、搬送経路22、ピックアップローラ20、フィードローラ23、排出ローラ25が搬送機構29を構成する。   The discharge roller 25 is provided on the downstream side of the conveyance path 22 with respect to the reading device 24, and sends the document M on which an image has been read by the reading device 24 to the outside of the main body 3. The discharge tray 4 is provided on the front side of the main body 3, and the original M sent out to the outside of the main body 3 is stacked on the discharge tray 4. The conveyance path 22, the pickup roller 20, the feed roller 23, and the discharge roller 25 constitute a conveyance mechanism 29.

フロントセンサ26は、原稿トレイ2の前端側に設けられ、原稿トレイ2上に配置されている原稿Mの有無を検知し、その検知結果に応じた検知信号SG1を出力する。リヤセンサ27は、読取デバイス24よりも搬送経路22の上流側において、搬送中の原稿Mの有無を検知し、その検知結果に応じた検知信号SG2を出力する。   The front sensor 26 is provided on the front end side of the document tray 2, detects the presence of the document M arranged on the document tray 2, and outputs a detection signal SG1 corresponding to the detection result. The rear sensor 27 detects the presence of the document M being transported on the upstream side of the transport path 22 relative to the reading device 24, and outputs a detection signal SG2 corresponding to the detection result.

(画像読取装置の電気的構成)
図2に示すように、画像読取装置1は、制御基板40を備える。制御基板40には、制御ユニット41、デバイス制御部42、アナログフロントエンド(以下、AFE)43、駆動部44を備え、これらにバス45を介して、フロントセンサ26、リヤセンサ27、搬送機構29、表示ユニット46、操作ユニット47などが接続されている。操作ユニット46は、複数のボタンを備え、ユーザにより各種の指示や設定の入力操作が可能である。表示ユニット47は、ディスプレイやランプ等を備え、各種の設定画面や装置の動作状態等を表示することが可能である。
(Electrical configuration of image reading apparatus)
As shown in FIG. 2, the image reading apparatus 1 includes a control board 40. The control board 40 includes a control unit 41, a device control unit 42, an analog front end (hereinafter referred to as AFE) 43, and a drive unit 44. The front sensor 26, the rear sensor 27, the transport mechanism 29, and the like are connected to these via a bus 45. A display unit 46, an operation unit 47, and the like are connected. The operation unit 46 includes a plurality of buttons, and allows a user to input various instructions and settings. The display unit 47 includes a display, a lamp, and the like, and can display various setting screens and operation states of the apparatus.

制御ユニット41は、制御部の一例であり、中央処理装置(以下、CPU)41A、メモリ41B、及び、画像処理回路41Cを有する。メモリ41Bには、画像読取装置1の動作を制御するための各種のプログラムが記憶されており、CPU41Aは、メモリ41Bから読み出したプログラムに従って、画像読取装置1の各部を制御する。メモリ41Bは、RAMやROMを有する。なお、上記各種のプログラムが記憶される媒体は、RAM等以外に、CD−ROM、ハードディスク装置、フラッシュメモリ(登録商標)などの不揮発性メモリでもよい。   The control unit 41 is an example of a control unit, and includes a central processing unit (hereinafter referred to as CPU) 41A, a memory 41B, and an image processing circuit 41C. Various programs for controlling the operation of the image reading apparatus 1 are stored in the memory 41B, and the CPU 41A controls each unit of the image reading apparatus 1 according to the program read from the memory 41B. The memory 41B has a RAM and a ROM. The medium for storing the various programs may be a non-volatile memory such as a CD-ROM, a hard disk device, or a flash memory (registered trademark) in addition to a RAM or the like.

デバイス制御部42は、読取デバイス24に接続されており、CPU41Aからの命令に基づいて、光源31の点灯/消灯、及び、撮像部33による読み取りを制御する信号を読取デバイス24に送信する。読取デバイス24は、デバイス制御部42から信号を受け取ると、光源31を点灯し、搬送経路22上を搬送される原稿Mから反射される反射光L2を撮像部33で受光する。また、読取デバイス24は、撮像部33の各撮像素子が受光した受光量に応じたアナログ信号である第1読取画像データをAFE43に出力する。   The device control unit 42 is connected to the reading device 24, and transmits a signal for controlling turning on / off of the light source 31 and reading by the imaging unit 33 to the reading device 24 based on a command from the CPU 41 </ b> A. When the reading device 24 receives a signal from the device control unit 42, the reading device 24 turns on the light source 31 and the reflected light L <b> 2 reflected from the document M conveyed on the conveyance path 22 is received by the imaging unit 33. In addition, the reading device 24 outputs first read image data, which is an analog signal corresponding to the amount of light received by each imaging element of the imaging unit 33, to the AFE 43.

AFE43は、読取デバイス24から出力されるアナログ信号である第1読取画像データを、A/D変換し、RGB表色系の階調データである第2読取画像データに変換する。当該第2読取画像データは、バス45を介してメモリ41Bに記憶される。AFE43は、データ取得部の一例である。   The AFE 43 performs A / D conversion on the first read image data, which is an analog signal output from the reading device 24, and converts it into second read image data, which is RGB color system gradation data. The second read image data is stored in the memory 41B via the bus 45. The AFE 43 is an example of a data acquisition unit.

画像処理回路41Cは、例えば画像処理専用のハード回路であって、メモリ41Bに記憶された第2読取画像データに後述するYCbCr変換処理などを行う。当該処理後の第3読取画像データは、メモリ41Bに記憶される。駆動部44は、CPU41Aからの命令に基づいて搬送機構29を制御し、原稿Mを搬送する。   The image processing circuit 41C is, for example, a hardware circuit dedicated to image processing, and performs YCbCr conversion processing described later on the second read image data stored in the memory 41B. The third read image data after the processing is stored in the memory 41B. The drive unit 44 controls the transport mechanism 29 based on a command from the CPU 41A and transports the document M.

(読取処理)
ユーザが、原稿トレイ21に原稿Mを載置し、操作ユニット47にて所望の解像度を設定しつつスキャン指示の入力操作をすると、CPU41Aは、フロントセンサ26からの上記検知信号SG1に基づき、原稿トレイ2上に原稿M有りと判断すると、上記プログラムを読み出して、図3に示す読取処理を実行する。当該読取処理を実行するためのプログラムは、画像処理プログラムの一例である。画像読取装置1は、この読取処理を実行することにより、原稿Mの画像を読み取りつつ、読み取った原稿画像G1を、複数の原稿カテゴリーのいずれかに分類する。
(Reading process)
When the user places the document M on the document tray 21 and performs an input operation of a scan instruction while setting a desired resolution with the operation unit 47, the CPU 41A is based on the detection signal SG1 from the front sensor 26. If it is determined that there is a document M on the tray 2, the program is read and the reading process shown in FIG. 3 is executed. The program for executing the reading process is an example of an image processing program. The image reading apparatus 1 classifies the read document image G1 into one of a plurality of document categories while reading the image of the document M by executing this reading process.

ここで、原稿カテゴリーは、原稿画像G1の表現色により分類されたカテゴリーであり、例えば、カラー原稿、単色原稿、及び、ブランク原稿が含まれる。カラー原稿は、原稿の表現色がカラーであることを意味し、例えば、有彩色部分の占める割合が所定割合以上である原稿をいう。単色原稿は、原稿の表現色が単色であることを意味し、例えば白黒原稿やグレイスケール原稿など、有彩色部分の占める割合が所定割合未満であり、且つ、無彩色部分の占める割合が所定割合以上である単色の原稿をいう。ブランク原稿は、例えば白紙原稿など、有彩色部分及び無彩色部分を占める割合が所定割合未満である原稿をいう。   Here, the document category is a category classified by the expression color of the document image G1, and includes, for example, a color document, a single color document, and a blank document. A color manuscript means that the expression color of the manuscript is color, for example, a manuscript in which the proportion of the chromatic color portion is a predetermined proportion or more. Monochromatic manuscript means that the original color is a single color. For example, the proportion of chromatic parts such as black and white and gray scale manuscripts is less than the prescribed ratio, and the proportion of achromatic parts is the prescribed percentage. This is a single-color original document. A blank document refers to a document whose proportion of chromatic and achromatic parts is less than a predetermined ratio, such as a blank document.

具体的には、CPU41Aは、上記読取処理において、白紙除去機能及び原稿色判別機能を実行する。白紙除去機能は、原稿画像G1を、画像が形成されていないブランク原稿と、画像が形成されている非ブランク原稿とに分類し、ブランク原稿の読取データを除去する機能である。原稿色判別機能は、原稿画像G1を、例えばカラー原稿、グレイ原稿、白黒原稿に分類し、グレイ原稿の読取データに対してグレイ変換処理を行い、白黒原稿の読取データに対して白黒変換処理を行う機能である。   Specifically, the CPU 41A executes a blank sheet removal function and a document color determination function in the reading process. The blank paper removal function is a function that classifies the document image G1 into a blank document in which no image is formed and a non-blank document in which an image is formed, and removes read data of the blank document. The document color discrimination function classifies the document image G1 into, for example, a color document, a gray document, and a monochrome document, performs a gray conversion process on the read data of the gray document, and performs a monochrome conversion process on the read data of the monochrome document. It is a function to perform.

CPU41Aは、駆動部44に指示して、搬送機構29に、原稿トレイ21上の原稿Mの搬送を開始させ(S1)、原稿Mの前端を検知するまで待機する(S2:NO)。CPU41Aは、原稿Mの前端を、リヤセンサ27からの上記検知信号SG2のレベル反転に基づき検知する。CPU41Aは、原稿Mの前端を検知すると(S2:YES)、デバイス制御部42に指示して、読取デバイス24に原稿Mの画像を読み取らせる読取動作を開始させる(S3)。なお、このとき、読取デバイス24は、RGBの光源を時分割で点灯させて、カラー形式で各面の画像を読み取る。そして、CPU41Aは、AFE43から順次出力される第2読取画像データをメモリ41Bに記憶していく。   The CPU 41A instructs the drive unit 44 to cause the transport mechanism 29 to start transporting the document M on the document tray 21 (S1), and waits until the front end of the document M is detected (S2: NO). The CPU 41A detects the front end of the document M based on the level inversion of the detection signal SG2 from the rear sensor 27. When the CPU 41A detects the front edge of the document M (S2: YES), the CPU 41A instructs the device control unit 42 to start a reading operation that causes the reading device 24 to read an image of the document M (S3). At this time, the reading device 24 turns on the RGB light sources in a time-sharing manner, and reads the image on each surface in the color format. Then, the CPU 41A stores the second read image data sequentially output from the AFE 43 in the memory 41B.

CPU41Aは、画像処理回路41Cに指示して、YCbCr変換処理を開始させる(S4)。このYCbCr変換処理では、画像処理回路41Cが、第2読取画像データをメモリ41Bから読み出して、当該第2読取画像データを、RGB表色系のデータから、輝度データY、及び、2つの色差データCb、Crを有するYCbCr表色系の第3読取画像データに変換し、メモリ41Bに記憶する。なお、本実施形態では、輝度データYの値の範囲は、0〜255であり、値が大きいほど輝度が高く、各色差データの値の範囲は、−128〜+127であり、絶対値が大きいほど赤成分または青成分が多いものとする。   The CPU 41A instructs the image processing circuit 41C to start YCbCr conversion processing (S4). In this YCbCr conversion process, the image processing circuit 41C reads out the second read image data from the memory 41B, and converts the second read image data from the RGB color system data to the luminance data Y and the two color difference data. The data is converted into third read image data of the YCbCr color system having Cb and Cr, and stored in the memory 41B. In this embodiment, the value range of the luminance data Y is 0 to 255, and the larger the value, the higher the luminance. The value range of each color difference data is −128 to +127, and the absolute value is large. It is assumed that there are more red or blue components.

(1)ブロック解析処理
CPU41Aは、読取動作の開始後、図4に示すブロック解析処理を実行する(S5)。ここで、図5,6には、上記原稿画像G1、読取デバイス24が読み取った読取画像G2、ブロック解析処理の解析範囲H1、ブロックB1、B2が示されている。読取画像G2は、同図の紙面上側から下側に向けて読取デバイス24により読み取られたものとする。つまり、原稿画像G1の周縁の実線は、原稿Mの端辺画像を示しており、紙面上側の端辺画像が、原稿Mの前端画像E1であり、紙面下側の端辺画像が、原稿Mの後端画像E2であり、紙面左右の端辺画像が、原稿Mの左右端画像E3,E4である。[m1]
(1) Block analysis process CPU41A performs the block analysis process shown in FIG. 4 after the start of reading operation (S5). 5 and 6 show the original image G1, the read image G2 read by the reading device 24, the analysis range H1 of the block analysis process, and the blocks B1 and B2. It is assumed that the read image G2 is read by the reading device 24 from the upper side to the lower side in the drawing. That is, the solid line at the periphery of the document image G1 indicates the edge image of the document M, the edge image on the upper side of the paper is the front edge image E1 of the document M, and the edge image on the lower side of the paper is the document M. The left and right edge images of the document M are the left and right edge images E3 and E4 of the document M. [m1]

読取画像G2は、読取デバイス24の読取範囲全体の画像、換言すれば第3読取画像データに基づく画像全体であり、原稿画像G1の4つの端辺画像全てを含む。解析範囲H1は、ブロック解析処理の対象範囲であり、原稿画像G1の前端画像E1及び後端画像E2を含まず、左右端画像E3,E4を含む。図5のブロックB1は、本実施形態で使用するブロックであり、左右方向に長い長方形をなす。図6のブロックB2は、比較例のブロックであり、正方形をなす。   The read image G2 is an image of the entire reading range of the reading device 24, in other words, the entire image based on the third read image data, and includes all four edge images of the document image G1. The analysis range H1 is a target range of the block analysis process, and does not include the front end image E1 and the rear end image E2 of the document image G1, but includes the left and right end images E3 and E4. A block B1 in FIG. 5 is a block used in the present embodiment, and has a long rectangle in the left-right direction. A block B2 in FIG. 6 is a block of a comparative example and forms a square.

ブロック解析処理では、CPU41Aは、まずブロックB1のサイズを決定する(S11)。具体的には、CPU41Aは、上記操作ユニット47で設定された解像度を検出し、ブロックのサイズを、その解像度の検出値が高いほど大きくして、当該ブロックに含まれる画素数を増加させるブロックサイズ変更処理を実行する。解像度の検出値とブロックサイズとの関係の一例は次の通りである。
150dpiの場合、左右幅=57pixel、前後幅=42pixel
200dpiの場合、左右幅=76pixel、前後幅=56pixel
300dpiの場合、左右幅=114pixel、前後幅=84pixel
このように、ブロックB1のサイズが、解像度の検出値が高いほど大きくされ、当該ブロックB1に含まれる画素数が比例して増加される。このため、解像度の相違によって、原稿Mの端辺画像の影響がばらつくことを抑制することができる。
In the block analysis process, the CPU 41A first determines the size of the block B1 (S11). Specifically, the CPU 41A detects the resolution set by the operation unit 47, increases the block size as the resolution detection value is higher, and increases the number of pixels included in the block. Execute the change process. An example of the relationship between the resolution detection value and the block size is as follows.
For 150 dpi, left / right width = 57 pixels, front / rear width = 42 pixels
In the case of 200 dpi, the left-right width = 76 pixels, the front-rear width = 56 pixels
In the case of 300 dpi, the left-right width = 114 pixels, the front-rear width = 84 pixels
In this way, the size of the block B1 is increased as the resolution detection value is higher, and the number of pixels included in the block B1 is increased in proportion. For this reason, it is possible to suppress the influence of the edge image of the original M due to the difference in resolution.

CPU41Aは、ブロックB1のサイズを決定すると、解析マージンDを決定する(S12)。解析マージンDは、図5に示すように、読取画像G2に対する解析範囲H1の前後方向のマージンであり、より具体的には、原稿画像G1と読取画像G2との前端画像同士の間の画素数、及び、後端画像同士の間の画素数である。なお、本実施形態では、読取画像G2に対する解析範囲H1の左右方向のマージンは、画像読取装置1の仕様上、最小値に設定されている。その理由は、原稿Mのサイズを予め指定しない自動原稿モードにより、様々なサイズの原稿Mに対応するために、解析範囲H1の左右幅を極力広く確保するためである。   When determining the size of the block B1, the CPU 41A determines the analysis margin D (S12). As shown in FIG. 5, the analysis margin D is a margin in the front-rear direction of the analysis range H1 with respect to the read image G2, and more specifically, the number of pixels between the front end images of the document image G1 and the read image G2. , And the number of pixels between the rear end images. In the present embodiment, the left and right margins of the analysis range H1 with respect to the read image G2 are set to a minimum value in the specifications of the image reading apparatus 1. The reason for this is to ensure the wide left and right width of the analysis range H1 as much as possible in order to deal with various sizes of the original M by the automatic original mode in which the size of the original M is not designated in advance.

具体的には、CPU41Aは、解析マージンDを、その解像度の検出値が高いほど大きくして、当該解析マージンに対応する画素数を増加させる解析マージン変更処理を実行する。例えば解像度の検出値と解析マージンとの関係は次の通りである。
150dpiの場合、解析マージンD=153pixel
200dpiの場合、解析マージンD=204pixel
300dpiの場合、解析マージンD=306pixel
このように、解析マージンDが、解像度の検出値が高いほど大きくされ、当該解析マージンに対応する画素数が比例して増加される。このため、解像度の相違によって、読取画像G2に対する解析範囲H1の面積割合がばらつくことを抑制することができる。
Specifically, the CPU 41A executes an analysis margin changing process in which the analysis margin D is increased as the resolution detection value is higher, and the number of pixels corresponding to the analysis margin is increased. For example, the relationship between the resolution detection value and the analysis margin is as follows.
In the case of 150 dpi, the analysis margin D = 153 pixels
In the case of 200 dpi, the analysis margin D = 204 pixels
In the case of 300 dpi, the analysis margin D = 306 pixels
Thus, the analysis margin D is increased as the resolution detection value is higher, and the number of pixels corresponding to the analysis margin is increased in proportion. For this reason, it can suppress that the area ratio of the analysis range H1 with respect to the read image G2 varies by the difference in resolution.

CPU41Aは、解析マージンDを決定すると、図5に示すように、第3読取画像データに基づき、解析範囲H1内の画像を、複数のブロックB1に分割するブロック分割処理の実行を開始する(S13)。CPU41Aは、ブロック分割処理の実行開始後、対象ブロック列数Kを1に初期化し(S14)、最前のブロック列(K=1)を対象ブロック列として選択する。そして、CPU41Aは、対象ブロック列の各ブロックB1に含まれる各画素を、輝度データY、及び、2つの色差データCb、Crに基づき、複数の画素カテゴリーのいずれかに分類する画素分類処理を実行する。なお、輝度データY、及び、2つの色差データCb、Crは色情報の一例である。   When the analysis margin D is determined, the CPU 41A starts execution of a block division process for dividing the image within the analysis range H1 into a plurality of blocks B1 based on the third read image data as shown in FIG. 5 (S13). ). After starting the block division process, the CPU 41A initializes the target block string number K to 1 (S14), and selects the foremost block string (K = 1) as the target block string. Then, the CPU 41A executes a pixel classification process for classifying each pixel included in each block B1 of the target block row into one of a plurality of pixel categories based on the luminance data Y and the two color difference data Cb and Cr. To do. The luminance data Y and the two color difference data Cb and Cr are examples of color information.

具体的には、CPU41Aは、各ブロックB1に含まれる画素について、色差データCb、Cr及び輝度データYそれぞれのヒストグラムを作成し、白紙除去機能のために第1画素分類処理を実行する(S15)。第1画素分類処理では、CPU41Aは、次の画素判定条件を利用して、各画素を、ブランク画素(白色画素)、非ブランク画素のいずれかに分類する。画素判定条件の一例は次の通りである。
ブランク画素条件:Y値=225〜255の範囲
非ブランク画素条件:Y値=0〜224の範囲
Specifically, the CPU 41A creates histograms for the color difference data Cb and Cr and the luminance data Y for the pixels included in each block B1, and executes the first pixel classification process for the blank page removal function (S15). . In the first pixel classification process, the CPU 41A classifies each pixel as a blank pixel (white pixel) or a non-blank pixel using the following pixel determination condition. An example of the pixel determination condition is as follows.
Blank pixel condition: Y value = 225 to 255 range Non-blank pixel condition: Y value = 0 to 224 range

また、CPU41Aは、原稿色判別機能のために第2画素分類処理を実行する(S16)。第2画素分類処理では、CPU41Aは、次の画素判定条件を利用して、各画素を、有彩色画素、グレイ画素、黒色画素、ブランク画素(白色画素)のいずれかに分類する。画素判定条件の一例は次の通りである。
有彩色画素条件:Cb値=−10〜+10の範囲外、又は、Cr値=−10〜+10の範囲外
グレイ画素条件:Cb値=−10〜+10の範囲以内、且つ、Cr値=−10〜+10の範囲以内、且つ、Y値=64〜224の範囲
黒色画素条件:Cb値=−10〜+10の範囲以内、且つ、Cr値=−10〜+10の範囲以内、且つ、Y値=0〜63の範囲
ブランク画素条件:Cb値=−10〜+10の範囲以内、且つ、Cr値=−10〜+10の範囲以内、且つ、Y値=225〜255の範囲
なお、画素カテゴリーの分類については、本実施形態の方法以外に、様々な公知の分類方法を利用することができる。
Further, the CPU 41A executes a second pixel classification process for the document color discrimination function (S16). In the second pixel classification process, the CPU 41A classifies each pixel as one of a chromatic color pixel, a gray pixel, a black pixel, and a blank pixel (white pixel) using the following pixel determination condition. An example of the pixel determination condition is as follows.
Chromatic pixel condition: Cb value outside the range of -10 to +10 or Cr value outside the range of -10 to +10 Gray pixel condition: Cb value within the range of -10 to +10 and Cr value = -10 Within +10 range and Y value = 64 to 224 Black pixel condition: Cb value = within −10 to +10 range, Cr value = within −10 to +10 range, and Y value = 0 -63 range Blank pixel condition: Cb value = within a range of −10 to +10, Cr value = within a range of −10 to +10, and Y value = 225 to 255 For the classification of pixel categories In addition to the method of this embodiment, various known classification methods can be used.

次に、CPU41Aは、画素分類処理の結果に基づき、対象ブロック列に属する各:ブロックB1を、複数のブロックカテゴリーのいずれかに分類するブロック分類処理を実行する。具体的には、CPU41Aは、白紙除去機能のために第1ブロック分類処理を実行する(S17)。第1ブロック分類処理では、CPU41Aは、次のブロック判定条件を利用して、各ブロックB1を、ブランクブロック(単色ブロック)、非ブランクブロック(多色ブロック)のいずれかに分類する。ブロック判定条件には、例えば、各ブロックB1の全部または一部の画素数に対する、特定の画素カテゴリーに属する画素数の割合が、規定範囲以内または規定範囲外であることが含まれる。なお、上記全部または一部の画素数が固定値であれば、CPU41Aは、特定の画素カテゴリーの画素数が、所定の閾値以下かどうかを判断することにより、間接的に、ブロックB1が、上記ブロック判定条件を満たすかどうかを判定してもよい。   Next, the CPU 41A executes block classification processing for classifying each block B1 belonging to the target block column into one of a plurality of block categories based on the result of the pixel classification processing. Specifically, the CPU 41A executes the first block classification process for the blank paper removal function (S17). In the first block classification process, the CPU 41A classifies each block B1 as either a blank block (monochromatic block) or a non-blank block (multicolor block) using the following block determination condition. The block determination condition includes, for example, that the ratio of the number of pixels belonging to a specific pixel category to the number of all or a part of each block B1 is within a specified range or outside a specified range. If all or part of the number of pixels is a fixed value, the CPU 41A indirectly determines whether the number of pixels in a specific pixel category is equal to or less than a predetermined threshold, so that the block B1 It may be determined whether or not a block determination condition is satisfied.

ブロック判定条件の一例は次の通りである。
ブランクブロック条件:ブロックの全画素数に対する、ブランク画素数の割合=85%以上
非ブランクブロック条件:ブロックの全画素数に対する、ブランク画素数の割合=85%未満
An example of the block determination condition is as follows.
Blank block condition: Ratio of the number of blank pixels to the total number of pixels of the block = 85% or more Non-blank block condition: Ratio of the number of blank pixels to the total number of pixels of the block = less than 85%

また、CPU41Aは、原稿色判別機能のために第2ブロック分類処理を実行する(S18)。第2ブロック分類処理では、CPU41Aは、次のブロック判定条件を利用して、各ブロックB1を、カラーブロック、グレイブロック、白黒ブロックのいずれかに分類する。   Further, the CPU 41A executes a second block classification process for the document color discrimination function (S18). In the second block classification process, the CPU 41A classifies each block B1 into one of a color block, a gray block, and a black and white block using the following block determination condition.

ブロック判定条件の一例は次の通りである。
カラーブロック条件:ブロックの全画素数に対する、有彩色画素数の割合=3%以上
グレイブロック条件:ブロックが、カラーブロック条件を満たさず、且つ、ブロックの全画素数に対する、グレイ画素数の割合=20%以上
白黒ブロック:上記カラーブロック条件、グレイブロック条件、ブランクブロック条件のいずれも満たさない
なお、ブロックカテゴリーの分類については、本実施形態の方法以外に、様々な公知の分類方法を利用することができる。
An example of the block determination condition is as follows.
Color block condition: Ratio of the number of chromatic color pixels to the total number of pixels of the block = 3% or more Gray block condition: The block does not satisfy the color block condition, and the ratio of the number of gray pixels to the total number of pixels of the block = 20% or more Black and white block: None of the above color block condition, gray block condition, or blank block condition is satisfied. For block category classification, various known classification methods other than the method of this embodiment should be used. Can do.

CPU41Aは、対象ブロック列についてブロック分類処理が終了すると、リヤセンサ27からの上記検知信号SG2のレベル反転に基づき、原稿Mの後端を検知したかどうかを判断する(S19)。CPU41Aは、原稿Mの後端を検知しなければ(S19:NO)、対象ブロック列数Kに1を加えて(S20)、次のブロック列について画素分類処理及びブロック分類処理(S15〜S18)を実行する。CPU41Aは、原稿Mの後端を検知すれば(S19:YES)、上記読取動作及び原稿Mの搬送を終了する(S21)。   When the block classification process is completed for the target block row, the CPU 41A determines whether the trailing edge of the document M is detected based on the level inversion of the detection signal SG2 from the rear sensor 27 (S19). If the trailing edge of the document M is not detected (S19: NO), the CPU 41A adds 1 to the target block column number K (S20), and performs pixel classification processing and block classification processing (S15 to S18) for the next block column. Execute. If the CPU 41A detects the trailing edge of the document M (S19: YES), the CPU 41A ends the reading operation and conveyance of the document M (S21).

次に、CPU41Aは、最終ブロック列数Nを決定する(S22)。具体的には、上記読取動作の終了により、読取画像の最終画素ラインが確定するため、CPU41Aは、この最終画素ラインから上記解析マージンD分だけ上位の画素ラインを解析範囲H1の後端画素ラインとする。そして、CPU41Aは、当該後端画素ラインを含むブロック列の列数を、最終ブロック列数Nとして決定する。その後、CPU41Aは、対象ブロック列数Kが最終ブロック列数Nでないと判断すれば(S23:NO)、S20に進み、対象ブロック列数Kが最終ブロック列数Nであると判断すれば(S23:YES)、本ブロック解析処理を終了する。[m2]   Next, the CPU 41A determines the final block sequence number N (S22). Specifically, since the final pixel line of the read image is determined by the end of the reading operation, the CPU 41A determines the upper pixel line from the final pixel line by the analysis margin D as the rear end pixel line of the analysis range H1. And Then, the CPU 41A determines the number of block columns including the rear end pixel line as the final block column number N. Thereafter, if the CPU 41A determines that the target block column number K is not the final block column number N (S23: NO), the CPU 41A proceeds to S20, and if it determines that the target block column number K is the final block column number N (S23). : YES), this block analysis processing is terminated. [m2]

(2)原稿判定処理
CPU41Aは、ブロック解析処理を終了すると、図3のS6に進み、図7に示す原稿判定処理を実行し、本読取処理を終了する。CPU41Aは、次の原稿判定条件を利用して、原稿画像G1を、ブランク原稿、カラー原稿、グレイ原稿、白黒原稿のいずれかに分類する(原稿分類処理の一例)。原稿判定条件には、例えば、解析範囲H1内の全ブロック数に対する、ブランクブロックの数の割合が、規定範囲以内または規定範囲外であることが含まれる。原稿判定条件の一例は次の通りである。
ブランク原稿条件:解析範囲H1内の全ブロックに対する、ブランクブロックの数の割合=85%以上
カラー原稿条件:ブランク原稿条件を満たさず、かつ、解析範囲H1内の全ブロックに対する、カラーブロックの数の割合=3%以上
グレイ原稿条件:ブランク原稿条件及びカラー原稿条件を満たさず、かつ、解析範囲H1内の全ブロックに対する、グレイブロックの数の割合=3%以上
白黒原稿条件:上記ブランク原稿条件、カラー原稿条件、グレイ原稿条件のいずれも満たさない
(2) Document Determination Process After completing the block analysis process, the CPU 41A proceeds to S6 in FIG. 3, executes the document determination process shown in FIG. 7, and ends the reading process. The CPU 41A classifies the document image G1 into one of a blank document, a color document, a gray document, and a monochrome document using the following document determination condition (an example of document classification processing). The document determination condition includes, for example, that the ratio of the number of blank blocks to the total number of blocks in the analysis range H1 is within or outside the specified range. An example of the document determination condition is as follows.
Blank document condition: Ratio of the number of blank blocks to all blocks in the analysis range H1 = 85% or more Color document condition: The number of color blocks for all blocks in the analysis range H1 that do not satisfy the blank document condition Ratio = 3% or more Gray document condition: The ratio of the number of gray blocks to all blocks in the analysis range H1 that does not satisfy the blank document condition and the color document condition = 3% or more Black and white document condition: the blank document condition described above Neither color original condition nor gray original condition is satisfied

CPU41Aは、原稿画像G1がブランク原稿であると判定した場合(S31:YES)、当該原稿画像G1に対応する読取画像G2の第3読取画像データ自体をメモリ41Bから削除し(S32)、本原稿判定処理及び読取処理を終了する。これにより、メモリ41Bにおいて、第3読取画像データの記憶量を削減することができる。なお、最初に、原稿画像G1がブランク原稿条件を満たすかどうかを判定するのが好ましい。ブランク原稿であると判断した場合に、カラー原稿条件など、その他の原稿判定条件を判定せずに済み、処理負担を軽減できるからである。   If the CPU 41A determines that the document image G1 is a blank document (S31: YES), the CPU 41A deletes the third read image data itself of the read image G2 corresponding to the document image G1 from the memory 41B (S32), and the original document. The determination process and the reading process are terminated. Thereby, in the memory 41B, the storage amount of the third read image data can be reduced. First, it is preferable to determine whether or not the document image G1 satisfies the blank document condition. This is because when it is determined that the document is a blank document, it is not necessary to determine other document determination conditions such as color document conditions, and the processing load can be reduced.

CPU41Aは、原稿画像G1が非ブランク原稿であると判定した場合(S31:NO)、原稿画像G1がカラー原稿であるかどうかを判定する(S33)。CPU41Aは、原稿画像G1がカラー原稿であると判断すれば(S33:YES)、輝度データY、及び、2つの色差データのいずれも削除せずに、第3読取画像データをそのままメモリ41Bに残す。CPU41Aは、原稿画像G1がカラー原稿でないと判断すれば(S33:NO)、原稿画像G1がグレイ原稿であるかどうかを判定する(S34)。   When the CPU 41A determines that the document image G1 is a non-blank document (S31: NO), the CPU 41A determines whether the document image G1 is a color document (S33). If the CPU 41A determines that the document image G1 is a color document (S33: YES), it leaves the luminance data Y and the two color difference data, and leaves the third read image data as it is in the memory 41B. . If CPU 41A determines that document image G1 is not a color document (S33: NO), CPU 41A determines whether document image G1 is a gray document (S34).

CPU41Aは、原稿画像G1がグレイ原稿であると判断すれば(S34:YES)、第3読取画像データのうち、輝度データYだけ残し、2つの色差データを削除するグレイ変換処理を実行する(S35)。これにより、メモリ41Bにおいて、第3読取画像データの記憶量を削減することができる。なお、CPU31Aが、第3読取画像データを、第2読取画像データに変換し、RGBデータのいずれか1色のデータのみ残す構成でもよい。CPU41Aは、原稿画像G1がグレイ原稿でないと判断すれば(S34:NO)、原稿画像G1が白黒原稿であるとし、第3読取画像データのうち、輝度データYだけ残し、2つの色差データを削除し、その色差データを、2階調の2値データに変換する白黒変換処理を実行する(S36)。これにより、メモリ41Bにおいて、第3読取画像データの記憶量を削減することができる。   If the CPU 41A determines that the document image G1 is a gray document (S34: YES), the CPU 41A executes a gray conversion process that leaves only the luminance data Y of the third read image data and deletes the two color difference data (S35). ). Thereby, in the memory 41B, the storage amount of the third read image data can be reduced. The CPU 31A may convert the third read image data into the second read image data and leave only one color data of RGB data. If CPU 41A determines that document image G1 is not a gray document (S34: NO), CPU 41A determines that document image G1 is a monochrome document, leaving only luminance data Y in the third read image data, and deleting the two color difference data. Then, a black and white conversion process for converting the color difference data into binary data of two gradations is executed (S36). Thereby, in the memory 41B, the storage amount of the third read image data can be reduced.

(本実施形態の効果)
比較例を示す図6では、解析範囲H2は、原稿画像G1の4つの端辺画像すべてを含む。これに対し、本実施形態では、図5に示すように、解析範囲H1は、原稿画像G1の前端画像E1及び後端画像E2を含まず、左右端画像E3,E4を含む。このため、比較例に比べて、原稿カテゴリーの分類について原稿の端辺画像の影響を抑制することができる。
(Effect of this embodiment)
In FIG. 6 showing the comparative example, the analysis range H2 includes all four edge images of the document image G1. On the other hand, in the present embodiment, as shown in FIG. 5, the analysis range H1 does not include the front end image E1 and the rear end image E2 of the document image G1, but includes the left and right end images E3 and E4. Therefore, compared with the comparative example, the influence of the edge image of the document can be suppressed with respect to the classification of the document category.

また、比較例では、図6に示すように、ブロックB2は正方形をなす。ここで、例えば同図で拡大して示されているブロックB2Xには、原稿Mの左端画像E3が存在するが、当該左端画像E3は、原稿画像G1ではない。このため、同図のように原稿画像G1がブランク原稿である場合、ブロックB2Xはブランクブロックであると判定されるべきである。   In the comparative example, as shown in FIG. 6, the block B2 is square. Here, for example, the left end image E3 of the document M exists in the block B2X shown in an enlarged manner in the figure, but the left end image E3 is not the document image G1. For this reason, when the document image G1 is a blank document as shown in the figure, the block B2X should be determined to be a blank block.

ところが、原稿Mの左端画像E3の存在により、ブロックB2Xはブランクブロックでないと誤って判定されてしまう。具体的には、上述したように、ブランクブロック条件は、ブロックが、カラーブロックでなく、ブロックの全画素数に対する、ブランク画素数の割合が85%以上であることである。しかし、ブロックB2Xでは、全画素数が100個、黒色画素数が10個、グレイ画素数が20個、ブランク画素数が70個であるから、上記割合は70%となり、ブランクブロック条件を満たさない。ブロックB2Xは、グレイブロック判定条件を満たすため、グレイブロックであると誤って判定されてしまう。   However, due to the presence of the left end image E3 of the document M, the block B2X is erroneously determined not to be a blank block. Specifically, as described above, the blank block condition is that the block is not a color block, and the ratio of the number of blank pixels to the total number of pixels in the block is 85% or more. However, in the block B2X, since the total number of pixels is 100, the number of black pixels is 10, the number of gray pixels is 20, and the number of blank pixels is 70, the above ratio is 70% and does not satisfy the blank block condition. . Since the block B2X satisfies the gray block determination condition, it is erroneously determined to be a gray block.

これに対し、上述したように、本実施形態のブロックB1は、左側画像E3に直交する方向に長い長方形をなす。そして、図5に拡大して示されているブロックB1Xでは、全画素数が200個、黒色画素数が10個、グレイ画素数が20個、ブランク画素数が170個であるから、上記割合は85%となり、ブランクブロック条件を満たし、ブロックB2Xは、ブランクブロックであると正しく判定される。   On the other hand, as described above, the block B1 of the present embodiment forms a long rectangle in the direction orthogonal to the left image E3. In the block B1X shown in an enlarged manner in FIG. 5, the total number of pixels is 200, the number of black pixels is 10, the number of gray pixels is 20, and the number of blank pixels is 170. 85%, which satisfies the blank block condition, and the block B2X is correctly determined to be a blank block.

このように、ブロックB1は、左右方向の長さが、上下方向の長さよりも長い形状である。このようなブロックであれば、比較例のブロックB2に比べて、一のブロックに対し端辺画像の領域が占める割合が小さいため、ブロックカテゴリーの分類について原稿の端辺画像の影響を抑制することができる。即ち、ブロックB1を、ブランクブロックと非ブランクブロックとに分類する第1ブロック分類処理(図4のS17)、及び、ブランク原稿の検知(図7のS31)において、原稿画像G1の左右端画像の影響を抑制することができる。また、ブロックB1を、カラーブロック、グレイブロック、白黒ブロックに分類する第2ブロック分類処理(図4のS18)、及び、原稿画像の画像色に関するカテゴリー分類(図7のS33、S34)において、原稿画像G1の左右端画像の影響を抑制することができる。   Thus, the block B1 has a shape in which the length in the left-right direction is longer than the length in the up-down direction. In such a block, since the ratio of the edge image area to one block is smaller than the block B2 of the comparative example, the influence of the edge image of the document on the block category classification is suppressed. Can do. That is, in the first block classification process (S17 in FIG. 4) for classifying the block B1 into the blank block and the non-blank block and the blank document detection (S31 in FIG. 7), the left and right end images of the document image G1 are detected. The influence can be suppressed. In the second block classification process (S18 in FIG. 4) for classifying the block B1 into a color block, a gray block, and a black and white block, and in the category classification (S33 and S34 in FIG. 7) regarding the image color of the document image The influence of the left and right end images of the image G1 can be suppressed.

また、本実施形態によれば、図4のS15、S16における共通の画素分類処理の結果に基づき、ブロック分類処理及び原稿分類処理を実行することにより、原稿の端辺画像の影響を抑制しつつ、ブランク原稿の検知、及び、原稿画像の画像色に関するカテゴリー分類を効率良く行うことができる。   Further, according to the present embodiment, the block classification process and the document classification process are executed based on the result of the common pixel classification process in S15 and S16 of FIG. 4, while suppressing the influence of the edge image of the document. Further, it is possible to efficiently perform blank document detection and category classification relating to the image color of the document image.

また、解析範囲H1は、原稿画像G1のうち、読取デバイス24と原稿Mとの相対移動方向、換言すれば副走査方向に直交する一対の端辺画像、即ち、上下端画像E1,E2を含まない。このため、副走査方向における処理タイミングを調整することにより、比較的容易に、解析範囲H1を確定することができる。   The analysis range H1 includes a pair of edge images orthogonal to the relative movement direction of the reading device 24 and the document M, in other words, the sub-scanning direction, that is, upper and lower end images E1 and E2 in the document image G1. Absent. For this reason, the analysis range H1 can be determined relatively easily by adjusting the processing timing in the sub-scanning direction.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.

上記実施形態では、画像処理装置の一例として、静止状態の読取デバイス24に対して原稿Mが移動するシートフィードスキャナを例に挙げた。しかし、画像処理装置は、これに限らず、原稿台上に静止状態で配置された原稿に対して、読取デバイスが移動する構成、即ち、フラットベットタイプの画像読取装置でもよい。また、画像処理装置は、スキャナ単体に限らず、例えばコピー機能やファクシミリ機能などの機能を備えた印刷装置、コピー機や複合機でもよい。更に、画像処理装置は、例えば、パーソナルコンピュータなど、読取デバイスを備えず、スキャナ装置や外部メモリ等の外部機器から読取画像のデータを、インターフェースを介して取得する情報処理装置でもよい。この構成では、インターフェースが、データ取得部の一例である。   In the above embodiment, as an example of the image processing apparatus, a sheet feed scanner in which the document M moves with respect to the stationary reading device 24 is taken as an example. However, the image processing apparatus is not limited to this, and may be a configuration in which a reading device moves with respect to an original placed on a platen in a stationary state, that is, a flat bed type image reading apparatus. The image processing apparatus is not limited to a single scanner, and may be a printing apparatus, a copier, or a multifunction machine having functions such as a copy function and a facsimile function. Furthermore, the image processing apparatus may be an information processing apparatus that does not include a reading device, such as a personal computer, and that acquires read image data from an external device such as a scanner device or an external memory via an interface. In this configuration, the interface is an example of a data acquisition unit.

上記実施形態では、データ取得部の一例として、AFE43を例に挙げた。しかし、データ取得部は、これに限らず、読取画像データが記憶される外部記憶装置や、読取画像データを送信する外部機器と通信可能に接続される接続部、例えばUSBインターフェースなどでもよい。   In the above embodiment, the AFE 43 is taken as an example of the data acquisition unit. However, the data acquisition unit is not limited to this, and may be an external storage device that stores the read image data, or a connection unit that is communicably connected to an external device that transmits the read image data, such as a USB interface.

上記実施形態では、制御部の一例として、制御ユニット41を例に挙げた。しかし、制御部は、これに限らず、画像処理回路41Cを備えずに、CPU41A及びメモリ41Bだけで読取処理を実行する構成でもよい。また、制御部は、複数のCPUを備える構成や、ASIC(Application Specific Integrated Circuit)などのハード回路を備える構成や、ハード回路及びCPUの両方を備える構成でもよい。例えば上記画素分類処理、ブロック分割処理、ブロック分類処理、原稿分類処理、ブロックサイズ変更処理の少なくとも2つを、別々のCPUやハード回路で実行する構成でもよい。また、これらの処理の順序は、適宜変更してもよい。   In the above embodiment, the control unit 41 is taken as an example of the control unit. However, the control unit is not limited thereto, and may be configured to execute the reading process only by the CPU 41A and the memory 41B without including the image processing circuit 41C. The control unit may have a configuration including a plurality of CPUs, a configuration including a hardware circuit such as an ASIC (Application Specific Integrated Circuit), or a configuration including both the hardware circuit and the CPU. For example, a configuration in which at least two of the pixel classification process, the block division process, the block classification process, the document classification process, and the block size change process are executed by separate CPUs and hardware circuits may be employed. Further, the order of these processes may be changed as appropriate.

上記実施形態では、読取画像G2は、原稿画像G1の4つの端辺画像全てを含んでいた。しかし、これに限らず、読取画像は、原稿画像G1のうち少なくとも互いに直交する2つの端辺画像を含む画像であればよい。   In the above embodiment, the read image G2 includes all four edge images of the document image G1. However, the present invention is not limited to this, and the read image may be an image including at least two edge images orthogonal to each other in the document image G1.

上記実施形態では、解析範囲H1は、ブロック解析処理の対象範囲であり、原稿画像G1の前端画像E1及び後端画像E2を含まず、左右端画像E3,E4を含んだ。しかし、解析範囲は、これに限らず、前端画像E1及び後端画像E2のいずれか一方を含んでもよい。この構成でも、ブロックB1を利用することにより、端辺画像の影響により、原稿画像が誤った原稿カテゴリーに分類されることを抑制することができる。例えば、何らかの原因により、前端画像E1及び後端画像E2の一方が、他方よりも画像濃度が高いことがある。この場合、解析範囲は、画像濃度が相対的に高い端辺画像を含まず、画像濃度が相対的に低い端辺画像を含む構成が好ましい。これにより、原稿画像のうち除外する部分を抑制することができる。   In the above embodiment, the analysis range H1 is a target range of the block analysis process, and does not include the front end image E1 and the rear end image E2 of the document image G1, but includes the left and right end images E3 and E4. However, the analysis range is not limited to this, and may include one of the front end image E1 and the rear end image E2. Even in this configuration, by using the block B1, it is possible to suppress the document image from being classified into an incorrect document category due to the influence of the edge image. For example, for some reason, one of the front end image E1 and the rear end image E2 may have a higher image density than the other. In this case, it is preferable that the analysis range does not include an edge image having a relatively high image density but includes an edge image having a relatively low image density. Thereby, it is possible to suppress a portion to be excluded from the document image.

さらに、上記実施形態の読取デバイス24は、光源31からの光L1を、原稿Mに対して斜め後方から照射する構成である。この構成では、原稿Mの後端に照射された光は、乱反射するため、原稿Mの前端に照射された光に比べて、撮像部33に受光される光量が少ない。このため、原稿画像G1のうち読取デバイス24により後に読み取られる端辺画像、即ち、後端画像E2は、前端画像E1に比べて画像濃度が低く、原稿カテゴリーの分類結果に与える影響が少ない。そこで、解析範囲H1は、前端画像E1を含まず、後端画像E2を含む構成とすることが好ましい。これにより、解析範囲H1が前端画像E1を含み、後端画像E2を含まない構成とは異なり、解析範囲H1から除外すべき端辺画像を、原稿Mの後端を読み取る前に確定することができ、ブロック分割処理等を早期に開始することができ、また、制御処理を簡単にすることができる。なお、後端画像E2と前端画像E1との画像濃度の高低に限らず、解析範囲H1は、前端画像E1を含まず、後端画像E2を含む構成とすれば、同様の効果を得ることができる。   Furthermore, the reading device 24 of the above embodiment is configured to irradiate the light M1 from the light source 31 obliquely from behind the document M. In this configuration, since the light irradiated to the rear end of the document M is diffusely reflected, the amount of light received by the imaging unit 33 is smaller than the light irradiated to the front end of the document M. Therefore, the edge image that is read later by the reading device 24 in the document image G1, that is, the trailing edge image E2, has a lower image density than the leading edge image E1, and has little influence on the document category classification result. Therefore, the analysis range H1 preferably includes a rear end image E2 without including the front end image E1. Thus, unlike the configuration in which the analysis range H1 includes the front end image E1 and does not include the rear end image E2, the edge image to be excluded from the analysis range H1 can be determined before reading the rear end of the document M. It is possible to start block division processing at an early stage, and to simplify control processing. Note that the same effect can be obtained if the analysis range H1 does not include the front end image E1 but includes the rear end image E2 as well as the image density of the rear end image E2 and the front end image E1. it can.

上記実施形態の画素分類処理及びブロック分類処理において、ブロックB1を、当該ブロックB1に含まれる各画素のY値のみから、ブランク画素、ブランクブロックと非ブランクブロックのいずれかに分類し、非ブランクブロックについて、Cb値及びCr値から、カラーブロック、白黒ブロックのいずれかに分類してもよい。   In the pixel classification process and the block classification process of the above embodiment, the block B1 is classified into one of a blank pixel, a blank block, and a non-blank block from only the Y value of each pixel included in the block B1, and a non-blank block May be classified as either a color block or a black and white block from the Cb value and the Cr value.

上記実施形態では、画像読取装置1は、ブランク原稿の検知、及び、原稿画像の画像色に関するカテゴリー分類の両方を実行する構成であった。しかし、これに限らず、画像読取装置1は、ブロック分類処理において、ブロックを、ブランクブロック及び非ブランクブロックのいずれかに分類し、原稿分類処理において、原稿画像G1を、ブランク原稿及び非ブランク原稿のいずれかに分類する構成でもよい。これにより、ブランク原稿を検知する際に、原稿の端辺画像の影響により、原稿画像が誤った原稿カテゴリーに分類されることを抑制することができる。   In the above-described embodiment, the image reading apparatus 1 is configured to perform both blank document detection and category classification related to the image color of the document image. However, the present invention is not limited to this, and the image reading apparatus 1 classifies the block into either a blank block or a non-blank block in the block classification process, and in the document classification process, converts the document image G1 into a blank document and a non-blank document. The structure classified into either of these may be sufficient. Thus, when a blank document is detected, it is possible to suppress the document image from being classified into an incorrect document category due to the influence of the edge image of the document.

また、画像読取装置1は、ブロック分類処理において、ブロックを、カラーブロック、グレイブロック及び白黒ブロックのいずれかに分類し、原稿分類処理において、原稿画像G1を、カラー原稿、グレイ原稿及び白黒原稿のいずれかに分類する構成でもよい。これにより、原稿画像の画像色に関する種類を判別する際に、原稿の端辺画像の影響により、原稿画像が誤った原稿カテゴリーに分類されることを抑制することができる。なお、ブロックカテゴリー及び原稿カテゴリーは、カラー、グレイ、白黒に限らず、これらのうちの2つを含むものでもよい。また、単色と多色とに分類してもよい。   Further, the image reading apparatus 1 classifies the block into one of a color block, a gray block, and a black and white block in the block classification process, and converts the original image G1 into a color original, a gray original, and a black and white original in the original classification process. The structure classified into either may be sufficient. Thus, when determining the type of the image color of the document image, it is possible to suppress the document image from being classified into an incorrect document category due to the influence of the edge image of the document. The block category and the document category are not limited to color, gray, and black and white, and may include two of them. Moreover, you may classify | categorize into a single color and multiple colors.

1:画像読取装置 24:読取デバイス 31:光源 33:撮像部 43:AFE B1:ブロック E1〜E4:端辺画像 G1:原稿画像 G2:読取画像 H1:解析範囲 M:原稿   1: Image reading device 24: Reading device 31: Light source 33: Imaging unit 43: AFE B1: Block E1 to E4: Edge image G1: Document image G2: Scanned image H1: Analysis range M: Document

Claims (7)

相対移動する原稿に対して斜め後方から光を照射する位置に配置された光源、及び、前記原稿が相対移動する方向に対して直交する方向に並んで配置され前記光源によって照射され前記原稿で反射された光を受光する複数の撮像素子からなる撮像部を有する読取デバイスと、
前記読取デバイスから出力される、原稿画像の4つの端辺画像を含む読取画像のデータを取得するデータ取得部と、
制御部と、を備え、
前記制御部は、
前記読取画像内の対象範囲であって、前記読取デバイスによって先に読み取られる前記原稿画像の端辺画像を含む前記直交する方向の長さに沿った範囲を前記読取画像から除き、且つ、前記先に読み取られる前記原稿画像の端辺画像に直交する一対の端辺画像を含む対象範囲に属する各画素を、当該画素の色情報に基づき複数の画素カテゴリーのいずれかに分類する画素分類処理と、
前記対象範囲を、前記直交する方向の長さが前記相対移動する方向の長さより長い矩形形状の複数のブロックに分割するブロック分割処理と、
前記複数のブロックそれぞれを、前記画素分類処理で前記複数の画素カテゴリーのうち少なくとも1つの画素カテゴリーに分類された画素の数に基づき、複数のブロックカテゴリーのいずれかに分類するブロック分類処理と、
前記原稿画像を、前記ブロック分類処理で前記複数のブロックカテゴリーのうち少なくとも1つのブロックカテゴリーに分類されたブロックの数に基づき、複数の原稿カテゴリーのいずれかに分類する原稿分類処理と
実行する構成を有する画像処理装置。
A light source arranged at a position where light is irradiated obliquely from behind a relatively moving document, and a light source arranged side by side in a direction orthogonal to the direction of relative movement of the document and reflected by the document A reading device having an imaging unit composed of a plurality of imaging elements that receive the received light;
Output from the reading device, a data acquisition unit that four edge sides image of the original image to obtain data including the read image,
A control unit,
The controller is
A target range in the read image, the range along the length in the orthogonal direction including the edge image of the document image read first by the reading device is excluded from the read image, and the tip A pixel classification process for classifying each pixel belonging to a target range including a pair of edge images orthogonal to the edge image of the document image to be read into one of a plurality of pixel categories based on color information of the pixels;
Block division processing for dividing the target range into a plurality of rectangular blocks whose length in the orthogonal direction is longer than the length in the relative moving direction ;
A block classification process for classifying each of the plurality of blocks into one of a plurality of block categories based on the number of pixels classified into at least one of the plurality of pixel categories in the pixel classification process;
A document classification process for classifying the document image into one of a plurality of document categories based on the number of blocks classified into at least one block category among the plurality of block categories in the block classification process ;
An image processing apparatus having a configuration for executing the above.
請求項1に記載の画像処理装置であって、
前記制御部は、
前記ブロック分類処理において、前記複数のブロックそれぞれを、カラーブロック、白黒ブロック、グレイブロックの少なくとも2つを含むブロックカテゴリーのいずれかに分類し、
前記原稿分類処理において、前記原稿画像を、カラー原稿、白黒原稿、グレイ原稿の少なくとも2つを含む原稿カテゴリーのいずれかに分類する
像処理装置。
The image processing apparatus according to claim 1,
The controller is
In the block classification process, each of the plurality of blocks is classified into one of a block category including at least two of a color block, a black and white block, and a gray block,
In the document classification process, the document image is classified into one of a document category including at least two of a color document, a monochrome document, and a gray document .
Images processing device.
請求項1に記載の画像処理装置であって、
前記制御部は、
前記ブロック分類処理において、前記複数のブロックそれぞれを、ブランクブロック、非ブランクブロックを含むブロックカテゴリーのいずれかに分類し、
前記原稿分類処理において、前記原稿画像を、ブランク原稿、非ブランク原稿を含む原稿カテゴリーのいずれかに分類する
像処理装置。
The image processing apparatus according to claim 1,
The controller is
In the block classification process, each of the plurality of blocks is classified into one of a block category including a blank block and a non-blank block,
In the document classification process, the document image is classified into one of a document category including a blank document and a non-blank document .
Images processing device.
請求項1に記載の画像処理装置であって、
前記制御部は、前記ブロック分類処理において、前記複数のブロックそれぞれを、ブランクブロック、非ブランクブロックを含むブロックカテゴリーのいずれかに分類する第1分類処理と、前記複数のブロックそれぞれを、カラーブロック、白黒ブロック、グレイブロックの少なくとも2つを含むブロックカテゴリーのいずれかに分類する第2分類処理を実行し、
前記原稿分類処理において、前記第1分類処理の結果に基づき、前記原稿画像を、ブランク原稿、非ブランク原稿を含む原稿カテゴリーのいずれかに分類し、前記第2分類処理の結果に基づき、前記原稿画像を、カラー原稿、白黒原稿、グレイ原稿の少なくとも2つを含む原稿カテゴリーのいずれかに分類する、
画像処理装置。
The image processing apparatus according to claim 1,
In the block classification process, the control unit classifies each of the plurality of blocks into one of a block category including a blank block and a non-blank block, and each of the plurality of blocks is a color block, Performing a second classification process for classifying the block category including at least two of a black and white block and a gray block;
In the document classification process, the document image is classified into one of a document category including a blank document and a non-blank document based on the result of the first classification process, and the document is classified based on the result of the second classification process. Classify the image into one of the original categories, including at least two of color, black and white, and gray
Image processing device.
請求項1から4のいずれか一項に記載の画像処理装置であって、
前記制御部は、
前記読取画像の解像度を検出し、前記ブロックのサイズを、前記解像度の検出値が高いほど大きくして、当該ブロックに含まれる画素数を増加させるブロックサイズ変更処理
実行する構成を有する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 4, wherein:
The controller is
A block size changing process for detecting the resolution of the read image and increasing the size of the block as the detection value of the resolution is higher to increase the number of pixels included in the block ;
An image processing apparatus having a configuration for executing
原稿に対して相対移動しながら、当該原稿を読み取る読取デバイスと、  A reading device that reads the document while moving relative to the document;
前記読取デバイスから出力される、原稿画像の4つの端辺画像を含む読取画像のデータを取得するデータ取得部と、  A data acquisition unit that acquires data of a read image including four edge images of a document image output from the reading device;
制御部と、を備え、  A control unit,
前記制御部は、  The controller is
前記読取画像内の対象範囲であって、前記原稿画像における前記読取デバイスと前記原稿との相対移動方向に直交する一対の端辺画像のうち、画像濃度が相対的に高い端辺画像を含まず、且つ、前記画像濃度が相対的に高い端辺画像に直交する一対の端辺画像を含む対象範囲に属する各画素を、当該画素の色情報に基づき複数の画素カテゴリーのいずれかに分類する画素分類処理と、  Of the pair of edge images that are the target range in the read image and are orthogonal to the relative movement direction of the reading device and the document in the document image, do not include the edge image having a relatively high image density. A pixel that classifies each pixel belonging to the target range including a pair of edge images orthogonal to the edge image having a relatively high image density into one of a plurality of pixel categories based on the color information of the pixel. Classification process;
前記対象範囲を、前記直交する方向の長さが前記相対移動する方向の長さより長い矩形形状の複数のブロックに分割するブロック分割処理と、  Block division processing for dividing the target range into a plurality of rectangular blocks whose length in the orthogonal direction is longer than the length in the relative moving direction;
前記複数のブロックそれぞれを、前記画素分類処理で前記複数の画素カテゴリーのうち少なくとも1つの画素カテゴリーに分類された画素の数に基づき、複数のブロックカテゴリーのいずれかに分類するブロック分類処理と、  A block classification process for classifying each of the plurality of blocks into one of a plurality of block categories based on the number of pixels classified into at least one of the plurality of pixel categories in the pixel classification process;
前記原稿画像を、前記ブロック分類処理で前記複数のブロックカテゴリーのうち少なくとも1つのブロックカテゴリーに分類されたブロックの数に基づき、複数の原稿カテゴリーのいずれかに分類する原稿分類処理と、  A document classification process for classifying the document image into one of a plurality of document categories based on the number of blocks classified into at least one block category among the plurality of block categories in the block classification process;
を実行する構成を有する画像処理装置。An image processing apparatus having a configuration for executing the above.
相対移動する原稿に対して斜め後方から光を照射する位置に配置された光源、及び、前記原稿が相対移動する方向に対して直交する方向に並んで配置され前記光源によって照射され前記原稿で反射された光を受光する複数の撮像素子からなる撮像部を有する読取デバイスと、前記読取デバイスから出力される、原稿画像の4つの端辺画像を含む読取画像のデータを取得するデータ取得部を有する画像処理装置のコンピュータに、
前記読取画像内の対象範囲であって、前記読取デバイスによって先に読み取られる前記原稿画像の端辺画像を含む前記直交する方向の長さに沿った範囲を前記読取画像から除き、且つ、前記先に読み取られる前記原稿画像の端辺画像に直交する一対の端辺画像を含む対象範囲に属する各画素を、当該画素の色情報に基づき複数の画素カテゴリーのいずれかに分類する画素分類処理と、
前記対象範囲を、前記直交する方向の長さが前記相対移動する方向の長さより長い矩形形状の複数のブロックに分割するブロック分割処理と、
前記複数のブロックそれぞれを、前記画素分類処理で前記複数の画素カテゴリーのうち少なくとも1つの画素カテゴリーに分類された画素の数に基づき、複数のブロックカテゴリーのいずれかに分類するブロック分類処理と、
前記原稿画像を、前記ブロック分類処理で前記複数のブロックカテゴリーのうち少なくとも1つのブロックカテゴリーに分類されたブロックの数に基づき、複数の原稿カテゴリーのいずれかに分類する原稿分類処理と
実行させる、
画像処理プログラム。
A light source arranged at a position where light is irradiated obliquely from behind a relatively moving document, and a light source arranged side by side in a direction orthogonal to the direction of relative movement of the document and reflected by the document A reading device having an image pickup unit including a plurality of image pickup elements that receive the received light, and a data acquisition unit that acquires read image data including four edge images of the document image output from the reading device. In the computer of the image processing device,
A target range in the read image, the range along the length in the orthogonal direction including the edge image of the document image read first by the reading device is excluded from the read image, and the tip A pixel classification process for classifying each pixel belonging to a target range including a pair of edge images orthogonal to the edge image of the document image to be read into one of a plurality of pixel categories based on color information of the pixels;
Block division processing for dividing the target range into a plurality of rectangular blocks whose length in the orthogonal direction is longer than the length in the relative moving direction ;
A block classification process for classifying each of the plurality of blocks into one of a plurality of block categories based on the number of pixels classified into at least one of the plurality of pixel categories in the pixel classification process;
A document classification process for classifying the document image into one of a plurality of document categories based on the number of blocks classified into at least one block category among the plurality of block categories in the block classification process ;
To execute,
Image processing program.
JP2011260028A 2011-11-29 2011-11-29 Image processing apparatus and image processing program Active JP5838763B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011260028A JP5838763B2 (en) 2011-11-29 2011-11-29 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011260028A JP5838763B2 (en) 2011-11-29 2011-11-29 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2013115611A JP2013115611A (en) 2013-06-10
JP5838763B2 true JP5838763B2 (en) 2016-01-06

Family

ID=48710778

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011260028A Active JP5838763B2 (en) 2011-11-29 2011-11-29 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5838763B2 (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001077986A (en) * 1999-09-03 2001-03-23 Sharp Corp Original edge sensor, original reader and facsimile terminal
JP2003116011A (en) * 2001-10-03 2003-04-18 Fuji Xerox Co Ltd Image processor and image processing method
JP2003259133A (en) * 2002-03-05 2003-09-12 Fuji Xerox Co Ltd Image reader
JP2004289496A (en) * 2003-03-20 2004-10-14 Ricoh Co Ltd Image reproducing apparatus, image reproduction method and program for making computer implement the method
JP2008219810A (en) * 2007-03-07 2008-09-18 Ricoh Co Ltd Image processor, image processing method, image processing program and recording medium
JP2008271364A (en) * 2007-04-24 2008-11-06 Murata Mach Ltd Image processor and image processing method
US20100060917A1 (en) * 2008-09-09 2010-03-11 Kabushiki Kaisha Toshiba Image forming apparatus and image forming method

Also Published As

Publication number Publication date
JP2013115611A (en) 2013-06-10

Similar Documents

Publication Publication Date Title
JP7211238B2 (en) Edge detection device, tilt correction device, reading device, image processing device, and edge detection method
JP6849322B2 (en) Image reader, image forming device
JP2009111472A (en) Image processing apparatus and image reader
US20090225378A1 (en) Image processing apparatus, original document scanning apparatus, and color/monochrome determining method
US10356263B2 (en) Image reading apparatus, control method thereof, and storage medium
JP5757259B2 (en) Image processing apparatus and image processing program
JP2016066836A (en) Image reading apparatus, control method of the same, and program
US11196898B2 (en) Image reading apparatus, method of controlling image reading apparatus, and storage medium
US8687250B2 (en) Image reading apparatus and image control method of image reading apparatus, and storage medium
US9479666B2 (en) Image reading apparatus, image forming apparatus, non-transitory computer readable medium, and method
JP5790495B2 (en) Image processing apparatus and image processing program
JP5838763B2 (en) Image processing apparatus and image processing program
JP5354310B2 (en) Image reading apparatus and ground color correction program
JP5793968B2 (en) Image reading device
JP5333873B2 (en) Image processing apparatus and image processing program
US10542175B2 (en) Image reading apparatus, control method for controlling image reading apparatus, and storage medium
US9762770B2 (en) Image processing apparatus having dynamically reconfigurable circuits to perform image processing, control method thereof, and storage medium storing computer program therefor
JP6358131B2 (en) Image reading apparatus and image forming apparatus
JP5768753B2 (en) Image reading apparatus and original size specifying program
JP5825073B2 (en) Image reading apparatus and ground color correction program
US20210360123A1 (en) Image forming apparatus and image reading apparatus
JP6614504B2 (en) Image reading apparatus, image reading method, image forming apparatus, image reading program, and image forming program
US9936090B2 (en) Printing apparatus, control method for the printing apparatus, and storage medium
US20210337082A1 (en) Image processing device
JP6409365B2 (en) Image reading device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140318

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20140407

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150324

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150525

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: 20151013

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20151026

R150 Certificate of patent or registration of utility model

Ref document number: 5838763

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150