JP5825073B2 - Image reading apparatus and ground color correction program - Google Patents

Image reading apparatus and ground color correction program Download PDF

Info

Publication number
JP5825073B2
JP5825073B2 JP2011260039A JP2011260039A JP5825073B2 JP 5825073 B2 JP5825073 B2 JP 5825073B2 JP 2011260039 A JP2011260039 A JP 2011260039A JP 2011260039 A JP2011260039 A JP 2011260039A JP 5825073 B2 JP5825073 B2 JP 5825073B2
Authority
JP
Japan
Prior art keywords
image
density
read data
background color
correction
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
JP2011260039A
Other languages
Japanese (ja)
Other versions
JP2013115612A (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 JP2011260039A priority Critical patent/JP5825073B2/en
Publication of JP2013115612A publication Critical patent/JP2013115612A/en
Application granted granted Critical
Publication of JP5825073B2 publication Critical patent/JP5825073B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Description

本明細書によって開示される発明は、原稿画像を読み取って得られた読取画像の地色を補正する地色補正に関する技術である。   The invention disclosed in this specification is a technology relating to ground color correction for correcting the ground color of a read image obtained by reading a document image.

従来から、スキャナやコピー機などの画像読取装置には、原稿画像を読み取って得られた読取画像から原稿画像の地色、即ち、文字や図等の背景色の濃度(以下、地色濃度)を検出し、読取画像に対し、原稿画像の地色濃度を薄くすることにより、上記文字等を見易くする、いわゆる地色補正機能を有するものがある。この従来の画像読取装置では、上記読取画像のうち読取方向における先端領域の画像濃度の平均値が所定濃度以下であるかどうかを判断し、画像濃度の平均値が所定濃度以下である場合に、当該平均値が原稿画像の地色濃度であるとみなし、地色補正を実行する構成になっている(下記特許文献1参照)。   2. Description of the Related Art Conventionally, image reading apparatuses such as scanners and copiers have a background color of a document image from a read image obtained by reading a document image, that is, a density of a background color such as a character or a figure (hereinafter referred to as a background color density). Some of them have a so-called ground color correction function that makes the above-mentioned characters and the like easier to see by reducing the background color density of the original image with respect to the read image. In this conventional image reading apparatus, it is determined whether or not the average value of the image density of the tip region in the reading direction among the read images is equal to or lower than a predetermined density, and when the average value of the image density is equal to or lower than the predetermined density, The average value is regarded as the background color density of the document image, and the background color correction is executed (see Patent Document 1 below).

特開2011−77880号公報JP 2011-77880 A

ところで、原稿画像には、例えば白抜き文字など、背景色よりも低い画像濃度で打ち抜かれるように描かれた文字形等の領域が含まれることがある。以下、このような文字・図形等を、低濃度抜き領域という。上記画像読取装置など、従来の画像処理装置では、低濃度抜き領域が含まれるかどうかにかかわらず、低濃度抜き領域の背景色が原稿画像の地色であれば、地色補正が実行される。そうすると、地色補正の実行により、低濃度抜き領域と背景との境界が不明確になるため、却って、低濃度抜き領域が見難くなってしまうという問題が生じる。   By the way, the document image may include a region such as a character shape drawn so as to be punched at an image density lower than the background color, such as a white character. Hereinafter, such characters / graphics are referred to as a low density removal region. In a conventional image processing apparatus such as the image reading apparatus, ground color correction is executed if the background color of the low density removal region is the ground color of the document image regardless of whether the low density removal region is included. . Then, since the boundary between the low density removal area and the background becomes unclear due to the execution of the ground color correction, there arises a problem that the low density removal area becomes difficult to see.

本明細書では、地色補正により低濃度抜き領域が見難くなることを抑制することが可能な技術を開示する。   In the present specification, a technique is disclosed that can prevent the low density removal region from becoming difficult to see due to ground color correction.

本明細書によって開示される画像処理装置は、原稿画像の読取データを取得するデータ取得部と、制御部と、を備え、前記制御部は、前記読取データに基づき、前記原稿画像の地色濃度を検出する地色濃度検出処理と、前記読取データに基づき、前記原稿画像に、背景色よりも低い画像濃度で打ち抜かれた領域である低濃度抜き領域が有るかどうかを判断する領域有無判断処理と、前記領域有無判断処理で前記低濃度抜き領域が無いと判断した場合、前記読取データに対し、前記原稿画像の地色濃度に応じた地色補正を行い、前記低濃度抜き領域が有ると判断した場合、少なくとも当該低濃度抜き領域及びその背景領域の読取データに対し、前記地色補正を行わない補正切替処理と、を実行する構成を有する。   An image processing apparatus disclosed in the present specification includes a data acquisition unit that acquires read data of a document image, and a control unit, and the control unit performs ground color density of the document image based on the read data. And background presence / absence determination processing for determining whether or not the original image has a low density removal area, which is an area punched with an image density lower than the background color, based on the read data. If it is determined in the region presence / absence determination process that the low density removal area does not exist, ground color correction is performed on the read data according to the ground color density of the document image, and the low density removal area exists. When the determination is made, a correction switching process that does not perform the ground color correction is performed on at least the read data of the low density removal area and the background area.

上記画像処理装置では、前記領域有無判断処理には、前記読取データに基づき前記原稿画像を階調反転した反転画像を生成する階調反転処理と、前記反転画像からエッジ画素を抽出するエッジ抽出処理と、前記エッジ抽出処理の抽出結果に基づき、基準値以上の幅を有する前記エッジ画素の集合体が有るかどうかを判断し、当該集合体が有れば、前記低濃度抜き領域が有ると判断する集合体有無判断処理と、が含まれる構成でもよい。   In the image processing apparatus, the area presence / absence determination process includes a gradation inversion process for generating an inverted image obtained by inverting the gradation of the document image based on the read data, and an edge extraction process for extracting edge pixels from the inverted image. And determining whether or not there is an aggregate of the edge pixels having a width equal to or greater than a reference value based on the extraction result of the edge extraction process, and if there is the aggregate, determine that there is the low density removal region And an assembly presence / absence determination process to be performed may be included.

上記画像処理装置では、前記制御部は、前記地色濃度検出処理で検出された前記原稿画像の地色濃度が基準濃度以下であるかどうかを判断する濃度判断処理を実行し、前記補正切替処理において、前記地色濃度が前記基準濃度以下であり、且つ、前記低濃度抜き領域が無いと判断した場合、前記読取データに対して前記地色補正を行い、前記地色濃度が前記基準濃度以下であり、且つ、前記低濃度抜き領域が有ると判断した場合、前記読取データに対して前記地色補正を行わない構成でもよい。   In the image processing apparatus, the control unit executes a density determination process for determining whether a ground color density of the document image detected in the ground color density detection process is equal to or lower than a reference density, and the correction switching process. When the background color density is equal to or lower than the reference density and it is determined that there is no low density removal area, the ground color correction is performed on the read data, and the ground color density is equal to or lower than the reference density. In addition, when it is determined that the low density removal region exists, the background color correction may not be performed on the read data.

上記画像処理装置では、前記制御部は、前記地色濃度検出処理において、前記読取データから前記原稿画像の各ラインの地色濃度を検出し、前記地色濃度検出処理の検出結果に基づき、前記原稿画像から、互いの地色濃度差が基準範囲内である複数のラインが連続する1または複数の領域を特定する領域特定処理を実行し、前記領域特定処理で特定された領域毎に、前記領域有無判断処理及び前記補正切替処理を実行する構成でもよい。   In the image processing apparatus, the control unit detects a ground color density of each line of the document image from the read data in the ground color density detection process, and based on a detection result of the ground color density detection process, A region specifying process is performed for specifying one or a plurality of regions in which a plurality of lines whose ground color density differences are within a reference range from the document image, and for each of the regions specified in the region specifying process, It may be configured to execute the region presence / absence determination processing and the correction switching processing.

上記画像処理装置では、原稿に対して相対移動しながら、当該原稿を読み取る読取デバイスを備え、前記データ取得部は、前記読取デバイスから前記原稿画像の読取データを取得する構成でもよい。   The image processing apparatus may include a reading device that reads the original while relatively moving with respect to the original, and the data acquisition unit may acquire read data of the original image from the reading device.

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

本発明によれば、原稿画像に、背景色よりも低い画像濃度で打ち抜かれた領域である低濃度抜き領域が有るかどうかが判断され、低濃度抜き領域が有ると判断された場合、少なくとも当該低濃度抜き領域及びその背景領域の読取データに対して地色補正は行われない。従って、地色補正により低濃度抜き領域が見難くなることを抑制することができる。   According to the present invention, it is determined whether or not the original image has a low density removal area which is an area punched out at an image density lower than the background color. No ground color correction is performed on the read data of the low density removal area and the background area. Therefore, it is possible to prevent the low density removal region from becoming difficult to see due to the ground color correction.

実施形態1に係る複合機の構成を概略的に示す部分的断面図1 is a partial cross-sectional view schematically showing a configuration of a multifunction machine according to a first embodiment. 複合機の電気的構成を概略的に示すブロック図Block diagram schematically showing the electrical configuration of the MFP 読取処理を示すフローチャートFlow chart showing the reading process 原稿、読取画像を例示する模式図Schematic diagram illustrating original document and scanned image 補正処理を示すフローチャートFlow chart showing correction processing 部分画像に対する画像変換過程を示す模式図Schematic diagram showing the image conversion process for partial images 実施形態2の補正処理を示すフローチャートThe flowchart which shows the correction process of Embodiment 2.

<実施形態1>
実施形態1に係る複合機1について、図1から図6を参照しつつ説明する。以下、図1において紙面左側を複合機1の前側とし、紙面手前側を複合機1の右側とし、紙面上側を複合機1の上側として説明する。複合機1は、スキャナ機能、プリンタ機能、コピー機能、ファクシミリ機能などを有する多機能周辺装置であり、画像処理装置の一例である。
<Embodiment 1>
A multifunction machine 1 according to the first embodiment will be described with reference to FIGS. 1 to 6. In the following description, the left side in FIG. 1 is the front side of the multifunction device 1, the front side of the paper is the right side of the multifunction device 1, and the upper side of the paper is the upper side of the multifunction device 1. The multifunction device 1 is a multifunction peripheral device having a scanner function, a printer function, a copy function, a facsimile function, and the like, and is an example of an image processing apparatus.

(複合機の構成)
図1に示すように、複合機1は、図示しない印刷機構等を備える本体部2、及び、当該本体部2の上方に設けられたスキャナユニット3を備える。スキャナユニット3は、原稿載置部(以下、FB4という)、原稿カバー5及び読取デバイス7を有する。FB4は、台枠11、透明なガラス板からなる第1プラテンガラス12、第2プラテンガラス13、及びこれらのガラス12,13の中間に配置された中間枠14を含む。FB4は、原稿カバー5によって開閉可能に覆われている。
(Configuration of MFP)
As shown in FIG. 1, the multifunction machine 1 includes a main body 2 having a printing mechanism (not shown) and the like, and a scanner unit 3 provided above the main body 2. The scanner unit 3 includes a document placement unit (hereinafter referred to as FB 4), a document cover 5, and a reading device 7. The FB 4 includes a frame 11, a first platen glass 12 made of a transparent glass plate, a second platen glass 13, and an intermediate frame 14 disposed between these glasses 12 and 13. The FB 4 is covered with a document cover 5 so as to be opened and closed.

原稿カバー5は、FB4を覆う閉姿勢(図1参照)とFB4を開放する開姿勢とに回動可能に本体部2に支持されており、原稿自動送り装置(以下、ADF6という)、原稿トレイ21及び排出トレイ25を有する。ADF6は、押圧部材22、各種ローラ24等を有する。原稿トレイ21は、ADF6で搬送される原稿Mを載置するトレイである。ADF6には、ローラ24等によって原稿Mが原稿トレイ21から排出トレイ25へと搬送される経路である搬送路27が形成されている。以後、搬送路27に沿った方向を搬送方向という。図1に、搬送方向を矢印28で示す。   The document cover 5 is supported by the main body 2 so as to be rotatable between a closed position (see FIG. 1) covering the FB 4 and an open position opening the FB 4, and includes an automatic document feeder (hereinafter referred to as ADF 6), a document tray. 21 and a discharge tray 25. The ADF 6 includes a pressing member 22, various rollers 24, and the like. The document tray 21 is a tray on which the document M conveyed by the ADF 6 is placed. In the ADF 6, a conveyance path 27 that is a path through which the document M is conveyed from the document tray 21 to the discharge tray 25 by the roller 24 or the like is formed. Hereinafter, the direction along the transport path 27 is referred to as a transport direction. In FIG. 1, the conveyance direction is indicated by an arrow 28.

読取デバイス7は、台枠11等の下側において、図示しない移動機構によって前後方向に移動可能に設けられている。図1では、読取デバイス7は、第2プラテンガラス13を介して、押圧部材22に対向配置されている。読取デバイス7は、CIS(Contact Image Sensor)を有する構成であり、複数の読取素子7Aが、左右方向に沿って並んで配置されているとともに、その近傍に、RGBの複数の光源7Bが配置されている。なお、読取デバイス7は、CISに限らず、例えばCCD(Charge Coupled Drive Image Sensor)を有する構成でもよい。読取デバイス7は、データ取得部の一例である。   The reading device 7 is provided below the underframe 11 or the like so as to be movable in the front-rear direction by a moving mechanism (not shown). In FIG. 1, the reading device 7 is disposed to face the pressing member 22 through the second platen glass 13. The reading device 7 is configured to have a CIS (Contact Image Sensor). A plurality of reading elements 7A are arranged side by side in the left-right direction, and a plurality of RGB light sources 7B are arranged in the vicinity thereof. ing. Note that the reading device 7 is not limited to the CIS, and may be configured to have, for example, a CCD (Charge Coupled Drive Image Sensor). The reading device 7 is an example of a data acquisition unit.

以上の構成により、スキャナユニット3では、FB読取とADF読取とが実行可能である。FB読取は、FB4上に静止状態で載置された原稿Mの片面、図1では下面を読み取る方式である。FB読取では、読取デバイス7が、図1に示す位置から同図の点線で示す位置まで移動しつつ、原稿Mの下面を読み取る。ADF読取は、原稿トレイ21に載置された原稿Mの片面、図1では上面を読み取る方式である。ADF読取では、読取デバイス7が、第1プラテンガラス12の下側(図1参照)に位置し、ADF6が原稿Mを原稿トレイ21から排出トレイ25へと搬送する過程において、読取デバイス7により原稿Mの片面を読み取る方式である。   With the above configuration, the scanner unit 3 can execute FB reading and ADF reading. The FB reading is a method of reading one side of the original M placed on the FB 4 in a stationary state, that is, the lower side in FIG. In the FB reading, the reading device 7 reads the lower surface of the document M while moving from the position shown in FIG. 1 to the position indicated by the dotted line in FIG. ADF reading is a method of reading one side of the document M placed on the document tray 21, in FIG. In ADF reading, the reading device 7 is positioned below the first platen glass 12 (see FIG. 1), and the document is transferred by the reading device 7 in the process in which the ADF 6 transports the document M from the document tray 21 to the discharge tray 25. This is a method of reading one side of M.

(複合機の電気的構成)
図2に示すように、複合機1は、制御基板30を備える。制御基板30には、制御ユニット31、デバイス制御部32、アナログフロントエンド(以下、AFE)33、駆動部34が搭載されており、これらにバス36を介して、操作ユニット38、表示ユニット37などが接続されている。操作ユニット38は、複数のボタンを備え、ユーザにより各種の指示や設定の入力操作が可能である。表示ユニット37は、ディスプレイやランプ等を備え、各種の設定画面や装置の動作状態等を表示することが可能である。
(Electric configuration of the multifunction device)
As shown in FIG. 2, the multifunction machine 1 includes a control board 30. A control unit 31, a device control unit 32, an analog front end (hereinafter referred to as AFE) 33, and a drive unit 34 are mounted on the control board 30, and an operation unit 38, a display unit 37, and the like are connected to these via a bus 36. Is connected. The operation unit 38 includes a plurality of buttons, and allows a user to input various instructions and settings. The display unit 37 includes a display, a lamp, and the like, and can display various setting screens and operation states of the apparatus.

制御ユニット31は、中央処理装置(以下、CPU)31A、及び、メモリ31Bを有する。メモリ31Bには、複合機1の動作を制御するための各種のプログラムが記憶されており、CPU31Aは、メモリ31Bから読み出したプログラムに従って、複合機1の各部を制御する。メモリ31Bは、RAMやROMを有する。制御ユニット31は、制御部の一例である。   The control unit 31 includes a central processing unit (hereinafter referred to as CPU) 31A and a memory 31B. The memory 31B stores various programs for controlling the operation of the multifunction device 1, and the CPU 31A controls each unit of the multifunction device 1 according to the program read from the memory 31B. The memory 31B has a RAM and a ROM. The control unit 31 is an example of a control unit.

デバイス制御部32は、CPU31Aからの命令に基づいて、光源7Bの点灯/消灯、及び、CIS7Aによる読み取りを制御する信号を読取デバイス7に送信する。読取デバイス7は、デバイス制御部32から信号を受け取ると、光源7Bを点灯し、原稿Mから反射される反射光をCIS7Aにより受光する。また、読取デバイス7は、CIS7Aが受光した受光量に応じたアナログの第1読取データをAFE33に出力する。   The device control unit 32 transmits a signal for controlling turning on / off of the light source 7B and reading by the CIS 7A to the reading device 7 based on a command from the CPU 31A. When the reading device 7 receives a signal from the device control unit 32, the reading device 7 turns on the light source 7B and receives reflected light reflected from the document M by the CIS 7A. Further, the reading device 7 outputs the first analog read data corresponding to the amount of light received by the CIS 7A to the AFE 33.

AFE33は、読取デバイス7から出力されるアナログ信号である第1読取データを、RGB(レッド・グリーン・ブルー)表色系の階調(輝度)、換言すれば画像濃度に応じたデジタル値である第2読取データに変換する。CPU31Aは、当該第2読取データを、バス36を介してメモリ31Bに記憶する。以下、このデジタル値を、階調データという。なお、以下の説明では、第2読取データは8ビット(0〜255)のデータであり、階調データが小さいほど画像濃度が高く、階調データが大きいほど画像濃度が低い場合を例に挙げて説明する。駆動部34は、各種ローラ24を用いて原稿Mを搬送方向に搬送する搬送機構39や、読取デバイス7を移動させる移動機構等に接続されており、CPU31Aからの命令に基づいて搬送機構39等の動作を制御する。   The AFE 33 is a digital value corresponding to the gradation (luminance) of the RGB (red, green, blue) color system, in other words, the first read data, which is an analog signal output from the reading device 7, in other words, the image density. Conversion to second read data. The CPU 31A stores the second read data in the memory 31B via the bus 36. Hereinafter, this digital value is referred to as gradation data. In the following description, the second read data is 8-bit (0 to 255) data, and an example is given in which the smaller the gradation data, the higher the image density, and the larger the gradation data, the lower the image density. I will explain. The drive unit 34 is connected to a transport mechanism 39 that transports the document M in the transport direction using the various rollers 24, a moving mechanism that moves the reading device 7, and the transport mechanism 39 based on a command from the CPU 31A. To control the operation.

(読取処理)
ユーザが、原稿トレイ21またはFB4上に原稿Mを載置し、操作ユニット38にてモノクロ形式の読取指示の入力操作をすると、制御ユニット31は、図3に示す読取処理を実行する。具体的には、CPU31Aが、上記プログラムを読み出して、上記読取処理を実行する。当該読取処理を実行するためのプログラムは、画像処理プログラムの一例である。この読取処理では、制御ユニット31は、原稿Mの画像を読取デバイス7に読み取らせつつ、その原稿Mの画像に、低濃度抜き領域が無ければ、読取データに対し、原稿Mの画像の地色濃度に応じた地色補正を行い、低濃度抜き領域が有れば、上記地色補正が行わない。ここで、低濃度抜き領域は、背景色よりも低い画像濃度で打ち抜かれた領域をいい、例えば周辺部分よりも低い画像濃度の文字、図形等であり、より具体的には白抜き文字、画像などが含まれる。
(Reading process)
When the user places the document M on the document tray 21 or the FB 4 and inputs a monochrome format reading instruction using the operation unit 38, the control unit 31 executes the reading process shown in FIG. Specifically, the CPU 31A reads the program and executes the reading process. The program for executing the reading process is an example of an image processing program. In this reading process, the control unit 31 causes the reading device 7 to read the image of the document M, and if the image of the document M does not have a low density removal area, the background color of the image of the document M with respect to the read data. If the background color correction according to the density is performed and there is a low density removal area, the background color correction is not performed. Here, the low density removal area refers to an area punched with an image density lower than the background color, for example, a character, a figure, or the like having an image density lower than that of the peripheral portion. Etc. are included.

図4には、原稿M1、読取画像G1、読取画像G2が示されている。原稿M1は、読取方向における先端側に位置する領域M1A、及び、その後方に位置する領域M1Bを有する。領域M1Aには、白色の文字の背景部分がグレイ色でベタ塗りされた画像が印刷されており、領域M1Bには、文字、イメージ及びグラフ等の背景部分が薄い灰色でベタ塗りされた画像が印刷されている。なお、上記読取方向は、FB読取の場合、図1においてFB4上に載置された原稿Mに対してその前端から後端に向かう方向であり、ADF読取の場合、ADF6によって搬送される原稿Mに対して、その搬送方向の前端から後端に向かう方向である。また、領域領域M1Aの白色の文字「TITLE」の部分は、低濃度抜き領域に該当する。   FIG. 4 shows a document M1, a read image G1, and a read image G2. The document M1 has a region M1A located on the leading end side in the reading direction and a region M1B located behind the region M1A. In the area M1A, an image in which the background portion of white characters is solidly painted in gray is printed, and in the region M1B, an image in which the background portions of characters, images, graphs, and the like are solidly painted in light gray is printed. It is printed. In the case of FB reading, the reading direction is a direction from the front end to the rear end of the document M placed on the FB 4 in FIG. 1, and in the case of ADF reading, the document M conveyed by the ADF 6. On the other hand, the direction is from the front end to the rear end in the transport direction. Further, the white character “TITLE” portion of the region M1A corresponds to the low-density removal region.

読取画像G1は、低濃度抜き領域の有無に関係なく、領域領域M1A、M1Bに一律に地色補正を実行して得られた画像である。読取画像G2は、低濃度抜き領域が有る領域M1Aに対して地色補正を実行せずに、低濃度抜き領域がない領域M1Bに対して地色補正を実行して得られた画像である。   The read image G1 is an image obtained by performing ground color correction uniformly on the region regions M1A and M1B regardless of the presence or absence of the low-density region. The read image G2 is an image obtained by executing the ground color correction on the region M1B without the low density removal region without performing the ground color correction on the region M1A having the low density removal region.

(地色濃度検出処理)
CPU31Aは、原稿Mの画像の地色濃度を検出する地色濃度検出処理を実行する。CPU31Aは、まずライン番号N及び領域番号Kを1に初期化し、さらにエンドライン番号M(K)をゼロに初期化し(S1)、読取デバイス7に原稿M上の画像におけるN番目のラインを読み取らせて、そのN番目のラインの第2読取データを取得するライン画像読取処理を実行する(S2)。なお、ラインとは、原稿Mの画像のうち、上記複数の読取素子7Aの並び方向、即ち、主走査方向に沿った線状部分の画像である。また、モノクロ形式の画像読取では、CPU31Aは、モノクロの階調データを示すグリーンの第2読取データのみ取得する。
(Background color density detection processing)
The CPU 31A executes a background color density detection process for detecting the background color density of the image of the document M. The CPU 31A first initializes the line number N and the area number K to 1, and further initializes the end line number M (K) to zero (S1), and the reading device 7 reads the Nth line in the image on the document M. The line image reading process for acquiring the second read data of the Nth line is then executed (S2). Note that the line is an image of a linear portion of the image of the document M along the direction in which the plurality of reading elements 7A are arranged, that is, in the main scanning direction. In monochrome image reading, the CPU 31A obtains only green second reading data indicating monochrome gradation data.

CPU31Aは、N番目のラインについて、ラインの地色濃度の階調データを算出するライン地色濃度算出処理を実行する(S3)。ラインの地色濃度とは、そのライン画像において広い範囲を占める領域の色、換言すれば背景部分の画像濃度をいう。以下、ラインの地色濃度の階調データを、単に、ラインの地色濃度値DL(N)ということがある。具体的には、N番目のラインにおける全画素の階調データの高いものから所定数の画素を抽出し、その所定数の画素の階調データの平均値を、当該ラインの地色濃度値DL(N)とする。なお、所定数の一例としては、全画素が1024個の場合、10個が好ましい。   The CPU 31A executes a line background color density calculation process for calculating gradation data of the line background color density for the Nth line (S3). The background color density of a line means the color of a region that occupies a wide range in the line image, in other words, the image density of the background portion. Hereinafter, the gradation data of the ground color density of the line may be simply referred to as a line ground color density value DL (N). Specifically, a predetermined number of pixels are extracted from the high gradation data of all the pixels in the Nth line, and the average value of the gradation data of the predetermined number of pixels is calculated as the ground color density value DL of the line. (N). As an example of the predetermined number, when all the pixels are 1024, 10 is preferable.

CPU31Aは、N番目のラインの地色濃度値DL(N)を算出すると、現在の処理対象が、先頭領域(K=1)、かつ、先頭ライン(N=1)であるかどうかを判断する(S4)。CPU31Aは、先頭領域1、かつ、先頭ラインであると判断した場合(S4:YES)、その先頭ラインの地色濃度値DL(1)を、先頭領域1の地色濃度値DE(1)としてメモリ31Bに記憶し、エンドライン番号M(1)を1に設定して、メモリ31Bに記憶する(S5)。図4の例では、原稿Mのうち、領域M1Aが先頭領域1とされ、当該先頭領域1における先頭ラインの背景色である灰色の階調データが、先頭領域1の地色濃度値DE(1)とされる。   When calculating the ground color density value DL (N) of the Nth line, the CPU 31A determines whether the current processing target is the head area (K = 1) and the head line (N = 1). (S4). When the CPU 31A determines that the head area 1 is the head line (S4: YES), the ground color density value DL (1) of the head line 1 is used as the ground color density value DE (1) of the head area 1. The data is stored in the memory 31B, the end line number M (1) is set to 1 and stored in the memory 31B (S5). In the example of FIG. 4, in the document M, the area M1A is the head area 1, and the gray tone data that is the background color of the head line in the head area 1 is the ground color density value DE (1 ).

次に、CPU31Aは、読取範囲が終了したかどうかを判断する(S10)。具体的には、CPU31Aは、ライン番号Nが、予め定められた読取範囲に対応する全ライン数Nmaxを超えた場合に、読取範囲が終了したと判断する。なお、読取範囲は、原稿Mのサイズにかかわらず固定の範囲でもよいし、原稿Mのサイズに応じて変更される範囲でもよい。CPU31Aは、読取範囲が終了していないと判断すれば(S10:NO)、ライン番号Nに1加算して(S11)、S2に戻る。   Next, the CPU 31A determines whether or not the reading range has ended (S10). Specifically, the CPU 31A determines that the reading range has ended when the line number N exceeds the total number of lines Nmax corresponding to a predetermined reading range. The reading range may be a fixed range regardless of the size of the document M, or may be a range that is changed according to the size of the document M. If the CPU 31A determines that the reading range has not ended (S10: NO), the CPU 31A adds 1 to the line number N (S11), and returns to S2.

CPU31Aは、先頭領域、かつ、先頭ラインでないと判断した場合(S4:NO)、S3のライン地色濃度算出処理の算出結果に基づき、原稿Mの画像から、互いの地色濃度差が基準範囲内である複数のラインが連続する、1または複数の領域を特定する、領域特定処理を実行する(S6〜S9)。具体的には、CPU31Aは、S3で算出したラインの地色濃度値DL(N)と、現在処理対象の領域Kの地色濃度値DE(K)との差が、基準範囲以内であるかどうかを判断する(S6)。なお、この領域Kの地色濃度値DE(K)は、上記S5または後述するS9においてメモリ31Bに記憶される。CPU31Aは、その差が基準範囲以内であると判断した場合(S6:YES)、N番目のラインと1つ前のN−1番目のラインとは、地色濃度が略同一であるとして、当該領域Kのエンドライン番号M(K)を、Nに更新し(S7)、S10に進む。つまり、1つ前のN−1番目までのラインとN番目のラインとが、同一の領域Kに含められる。   If the CPU 31A determines that it is not the head area and the head line (S4: NO), based on the calculation result of the line ground color density calculation process of S3, the background color density difference between the images of the document M is the reference range. A region specifying process for specifying one or a plurality of regions in which a plurality of lines are continuous is executed (S6 to S9). Specifically, the CPU 31A determines whether the difference between the ground color density value DL (N) of the line calculated in S3 and the ground color density value DE (K) of the current processing target area K is within the reference range. It is determined whether or not (S6). The background color density value DE (K) of the area K is stored in the memory 31B in S5 or S9 described later. When the CPU 31A determines that the difference is within the reference range (S6: YES), it is assumed that the Nth line and the previous N−1th line have substantially the same background color density. The end line number M (K) of the area K is updated to N (S7), and the process proceeds to S10. That is, the previous N-1th line and the Nth line are included in the same region K.

これに対し、CPU31Aは、ラインの地色濃度DL(N)と領域Kの地色濃度DE(K)との差が基準範囲外であると判断した場合(S6:NO)、N番目のラインと1つ前のN―1番目のラインとは、地色濃度が異なるとして、領域番号Kに1を加算する(S8)。つまり、1つ前のN−1番目までのラインが領域Kに含められ、N番目のラインが次の領域K+1に含められる。また、CPU31Aは、エンドライン番号M(K)の現在値を、領域番号Kに対応つけてメモリ31Bに記憶する。このとき、エンドライン番号M(K)の現在値は、N−1である。即ち、CPU31Aは、N−1番目のラインを、領域Kの最終ラインとしてメモリ31Bに記憶する。図4の例では、領域M1Aと領域M1Bとの境界の直前のラインが、領域M1Aの最終ラインとされる。   On the other hand, if the CPU 31A determines that the difference between the ground color density DL (N) of the line and the ground color density DE (K) of the region K is outside the reference range (S6: NO), the Nth line 1 is added to the region number K, assuming that the background color density is different from the previous N-1st line (S8). That is, the previous N−1 lines are included in the region K, and the Nth line is included in the next region K + 1. In addition, the CPU 31A stores the current value of the end line number M (K) in the memory 31B in association with the area number K. At this time, the current value of the end line number M (K) is N-1. That is, the CPU 31A stores the (N−1) th line in the memory 31B as the last line of the region K. In the example of FIG. 4, the line immediately before the boundary between the region M1A and the region M1B is the final line of the region M1A.

そして、CPU31Aは、N番目のラインを、新たな領域Kの先頭ラインとし、その地色濃度値DL(N)を、新たな領域Kの地色濃度値DE(K)としてメモリ31Bに記憶して(S9)、S10に進む。図4の例では、領域M1Aと領域M1Bとの境界の直後のラインが、領域M1Bの先頭ラインとされ、その先頭ラインの背景色である薄い灰色の階調データが、領域M1Bの地色濃度値DE(2)とされる。   Then, the CPU 31A sets the Nth line as the first line of the new area K, and stores the ground color density value DL (N) in the memory 31B as the ground color density value DE (K) of the new area K. (S9), the process proceeds to S10. In the example of FIG. 4, the line immediately after the boundary between the region M1A and the region M1B is the leading line of the region M1B, and the light gray gradation data that is the background color of the leading line is the background color density of the region M1B. The value is DE (2).

(補正処理)
CPU31Aは、読取範囲が終了したと判断すれば(S10:YES)、図5に示す補正処理を実行する(S12)。この補正処理では、原稿Mの各領域ごとに、低濃度抜き領域の有無に応じて地色補正を実行するかどうかが決定される。CPU31Aは、領域番号Kを1に初期化し(S21)、当該領域Kの地色濃度値DE(K)をメモリ31Bから読み出す。そして、CPU31Aは、領域Kの地色濃度値DE(K)が、基準値Dth以上であるかどうか、換言すれば、領域Kの地色濃度が、基準濃度以下であるかどうかを判断する、濃度判断処理を実行する(S22)。
(Correction process)
If the CPU 31A determines that the reading range has ended (S10: YES), it executes the correction process shown in FIG. 5 (S12). In this correction processing, for each area of the document M, it is determined whether to perform ground color correction according to the presence or absence of the low density removal area. The CPU 31A initializes the area number K to 1 (S21), and reads the ground color density value DE (K) of the area K from the memory 31B. Then, the CPU 31A determines whether or not the ground color density value DE (K) of the area K is equal to or higher than the reference value Dth, in other words, whether or not the ground color density of the area K is equal to or lower than the reference density. A density determination process is executed (S22).

CPU31Aは、領域Kの地色濃度値DE(K)が基準値Dth以上であると判断した場合には(S22:YES)、当該領域K内に低濃度抜き領域が有るかどうかを判断する、領域有無判断処理(S23〜S27)を実行する。図6には、原稿Mの画像のうち、文字「T」を含む部分画像T(T0〜T3)について、同処理での画像変換の過程が示されている。   When the CPU 31A determines that the background color density value DE (K) of the area K is equal to or greater than the reference value Dth (S22: YES), the CPU 31A determines whether or not there is a low density removal area in the area K. Area presence / absence determination processing (S23 to S27) is executed. FIG. 6 shows the image conversion process in the same process for partial images T (T0 to T3) including the letter “T” in the image of the document M.

CPU31Aは、図3のS5、S8で記憶したエンドライン番号M(K)に基づき、領域Kに対応する第2読取データをメモリ31Bから取得する(S23)。そして、CPU31Aは、取得した第2読取データに基づき、領域Kの読取画像を階調反転した反転画像を生成する、階調反転処理を実行する(S24)。より具体的には、CPU31Aは、領域Kの第2読取データの階調データを、0〜255で示す値から255〜0で示す値にレベル反転させる。以下、この階調反転後の読取データを、反転後読取データという。例えば階調データが255である白色の読取データは、階調データが0である黒色の読取データに変換される。これにより、図6に示すように、部分画像T0は、これに対して画像濃度が反転した反転画像T1に変換される。   The CPU 31A acquires the second read data corresponding to the region K from the memory 31B based on the end line number M (K) stored in S5 and S8 of FIG. 3 (S23). Then, the CPU 31A executes gradation reversal processing for generating a reversal image obtained by reversing the gradation of the read image in the region K based on the acquired second read data (S24). More specifically, the CPU 31A inverts the gradation data of the second read data in the region K from the value indicated by 0 to 255 to the value indicated by 255 to 0. Hereinafter, the read data after gradation inversion is referred to as post-inversion read data. For example, white read data whose gradation data is 255 is converted into black read data whose gradation data is 0. As a result, as shown in FIG. 6, the partial image T0 is converted into an inverted image T1 having an inverted image density.

CPU31Aは、階調反転処理で生成された反転画像T1からエッジ画素を抽出するエッジ抽出処理を実行する(S25)。具体的には、CPU31Aは、反転後読取データの階調データとエッジ用閾値とを大小比較し、その比較結果に基づき、反転後読取データを、「0」、「1」の2値化データに変換する。これにより、図6に示すように、反転画像T1は、エッジ画素が、T字状に集合したエッジ画像T2に変換される。なお、以上のエッジ抽出処理は一例であり、これに以外に、公知の様々なエッジ抽出方法を適用することができる。   The CPU 31A executes an edge extraction process for extracting edge pixels from the inverted image T1 generated by the gradation inversion process (S25). Specifically, the CPU 31A compares the gradation data of the read data after inversion with the threshold value for the edge, and based on the comparison result, the read data after inversion is converted into binary data of “0” and “1”. Convert to Thereby, as shown in FIG. 6, the inverted image T <b> 1 is converted into an edge image T <b> 2 in which edge pixels are gathered in a T shape. The above edge extraction processing is an example, and various other known edge extraction methods can be applied.

CPU31Aは、エッジ抽出処理の抽出結果に基づき、領域Kにエッジ画素の集合体が有るかどうかを判断し、当該集合体が有れば、低濃度抜き領域が有ると判断する集合体有無判断処理(S26,S27)を実行する。CPU31Aは、エッジ抽出処理で生成されたエッジ画像T2から、互いに直交する方向において基準値以上の幅を有するエッジ画素の集合体を検索する、エッジデータ解析処理を実行する(S26)。例えば、CPU31Aは、領域Kの先頭ラインからエンドラインに向かって順次、エッジ画素を検出して、エッジ画素の集合体を検索する。このエッジ画素の集合体の一例は、互いの画素同士のライン方向及び上記読取方向における間隔が、基準間隔以内である画素群であって、且つ、当該画素群のライン方向及び読取方向における幅が、基準値以上のものである。なお、このエッジデータ解析処理は、常に領域K全体について実行する構成でもよいし、また、上記エッジ画素の集合体が検索された時点で、それ以降のラインに対するエッジデータ解析を実行しない構成でもよい。   Based on the extraction result of the edge extraction process, the CPU 31A determines whether or not there is an aggregate of edge pixels in the region K, and if there is such an aggregate, determines whether there is a low density removal region. (S26, S27) are executed. The CPU 31A executes an edge data analysis process for searching for an aggregate of edge pixels having a width equal to or larger than a reference value in directions orthogonal to each other from the edge image T2 generated by the edge extraction process (S26). For example, the CPU 31A sequentially detects edge pixels from the first line of the region K toward the end line, and searches for a collection of edge pixels. An example of the aggregate of edge pixels is a pixel group in which the distance between the pixels in the line direction and the reading direction is within the reference interval, and the width of the pixel group in the line direction and the reading direction is , More than the reference value. The edge data analysis process may always be performed for the entire region K, or the edge data analysis for subsequent lines may not be performed when the aggregate of edge pixels is searched. .

CPU31Aは、領域有無判断処理で低濃度抜き領域が無いと判断した場合、領域Kの第2読取データに対し、地色濃度値DE(K)に応じた地色補正を行い、低濃度抜き領域が有ると判断した場合、領域Kの第2読取データに対し、地色補正を行わない、補正切替処理(S27〜S29)を実行する。CPU31Aは、エッジデータ解析処理の結果、エッジ画素の集合体が無ければ、低濃度抜き領域が無いと判断し(S27:NO)、領域Kに対し、地色濃度値DE(K)に応じた地色補正を実行する(S28,S29)。CPU31Aは、地色濃度値DE(K)を、より高い値にする、換言すれば、領域Kの地色濃度を、より薄くする、或いは白色にするための補正係数Hを算出する(S28)。例えば、地色濃度値DE(K)が200であるとすると、白色の階調データは255なので、補正係数Hは、1.275(=255/200)とされる。   If the CPU 31A determines that there is no low density removal area in the area presence / absence determination process, the CPU 31A performs ground color correction on the second read data in the area K according to the ground color density value DE (K) to obtain a low density removal area. If it is determined that there is, the correction switching process (S27 to S29) in which the ground color correction is not performed on the second read data of the region K is executed. If there is no aggregate of edge pixels as a result of the edge data analysis process, the CPU 31A determines that there is no low density removal area (S27: NO), and the area K corresponds to the ground color density value DE (K). Ground color correction is executed (S28, S29). The CPU 31A calculates a correction coefficient H for setting the ground color density value DE (K) to a higher value, in other words, for making the ground color density of the region K lighter or white (S28). . For example, if the ground color density value DE (K) is 200, the white gradation data is 255, so the correction coefficient H is 1.275 (= 255/200).

CPU31Aは、補正係数Hを算出すると、メモリ13Bに記憶されている領域Kの第2読取データに対して、各画素の階調データに補正係数Hを乗じる地色補正を開始し(S29)、S30に進む。なお、以上の地色補正は一例であり、これに以外に、公知の様々な地色補正を適用することができる。一方、CPU31Aは、エッジデータ解析の結果、エッジ画素の集合体が有れば、低濃度抜き領域が有ると判断し(S27:YES)、領域Kに対し、地色補正を実行せずにS30に進む。そして、CPU31Aは、全ての領域の処理が終了していなければ(S30:NO)、領域番号Kに1を加算して(S31)、S22に戻り、全ての領域の処理が終了していれば(S30:YES)、本補正処理及び読取処理を終了する。   After calculating the correction coefficient H, the CPU 31A starts ground color correction for multiplying the gradation data of each pixel by the correction coefficient H for the second read data in the region K stored in the memory 13B (S29). Proceed to S30. The above ground color correction is merely an example, and various other known ground color corrections can be applied. On the other hand, if the result of the edge data analysis indicates that there is an aggregate of edge pixels, the CPU 31A determines that there is a low density removal area (S27: YES), and does not perform ground color correction for the area K without performing ground color correction. Proceed to Then, the CPU 31A adds 1 to the area number K (S31) if processing of all areas has not been completed (S30: NO), returns to S22, and if processing of all areas has been completed. (S30: YES), the correction process and the reading process are terminated.

また、CPU31Aは、領域Kの地色濃度値DE(K)が、基準値Dth未満である、換言すれば、原稿Mの地色濃度が、基準濃度を超えると判断した場合には(S22:NO)、地色補正等をせずにS30に進む。このように原稿Mの地色濃度が濃い場合、仮に地色補正を行うと、地色濃度だけでなく、文字等の画像濃度も極めて低くなり、却って見難くなるおそれがあるからである。   When the CPU 31A determines that the ground color density value DE (K) of the area K is less than the reference value Dth, in other words, the ground color density of the document M exceeds the reference density (S22: NO), the process proceeds to S30 without performing ground color correction or the like. When the background color density of the document M is high in this way, if background color correction is performed, not only the background color density but also the image density of characters and the like becomes extremely low, which may be difficult to see.

図4の例では、原稿Mの領域M1Aには、白色の文字「TITLE」の部分が存在する。ここで、仮に、領域M1Aに対して地色補正が実行されると、読取画像G1の領域G1Aに示すように、白色の文字の背景色まで、より薄い色または白色に補正されるため、地色補正前に比べて、白色の文字と背景色との画像濃度差が小さくなる結果、白色の文字が見難くなってしまう。   In the example of FIG. 4, a white character “TITLE” portion exists in the area M <b> 1 </ b> A of the document M. Here, if the background color correction is executed on the area M1A, the background color of the white character is corrected to a lighter color or white as shown in the area G1A of the read image G1, so that the background color is corrected. As a result of the smaller image density difference between the white text and the background color than before color correction, it becomes difficult to see the white text.

これに対して、本実施形態では、領域M1Aに対して地色補正は実行されない。従って、読取画像G2の領域G2Aに示すように、白色の文字と背景色との画像濃度差は、原稿Mと変わらないため、白色の文字が見難くなることを抑制することができる。なお、領域M1Bについては、低濃度領域が無く、地色濃度が基準濃度以下であるので、地色補正が実行される(読取画像G1、G2の領域G1B、G2B参照)。このため、文字や図面等が、原稿Mに比べて見易くなっている。   On the other hand, in the present embodiment, the ground color correction is not performed on the region M1A. Therefore, as shown in the region G2A of the read image G2, the difference in image density between the white character and the background color is not different from that of the original M, so that it is possible to prevent the white character from becoming difficult to see. Since there is no low density area in the area M1B and the ground color density is equal to or lower than the reference density, ground color correction is executed (see the areas G1B and G2B of the read images G1 and G2). Therefore, characters, drawings, and the like are easier to see than the original M.

(本実施形態の効果)   (Effect of this embodiment)

本実施形態によれば、原稿Mの画像に、背景色よりも低い画像濃度で打ち抜かれた領域である低濃度抜き領域が有るかどうかが判断され、低濃度抜き領域が有ると判断された場合(S27:YES)、少なくとも当該低濃度抜き領域及びその背景領域の読取データに対して地色補正は行われない。従って、地色補正により低濃度抜き領域が見難くなることを抑制することができる。   According to the present embodiment, it is determined whether or not the image of the document M has a low density removal area that is an area punched with an image density lower than the background color, and it is determined that there is a low density removal area. (S27: YES) At least the ground color correction is not performed on the read data of the low density removal area and the background area. Therefore, it is possible to prevent the low density removal region from becoming difficult to see due to the ground color correction.

また、本実施形態とは異なり、制御ユニット31が、領域有無判断処理において、階調反転せずに原稿Mの画像から直接エッジ画素を抽出して低濃度抜き領域が有るどうかを判断する構成でもよい。図6には、部分画像T0から、階調反転せずに直接生成したエッジ画像T3が例示されている。このようなエッジ画像T3では、例えばT字部分内にノイズ画素等が存在することにより、T字部分を、低濃度抜き領域ではないと誤判断されるおそれがある。   Further, unlike the present embodiment, the control unit 31 may extract the edge pixels directly from the image of the original M without gradation reversal and determine whether or not there is a low density removal region in the region presence / absence determination processing. Good. FIG. 6 illustrates an edge image T3 generated directly from the partial image T0 without gradation inversion. In such an edge image T3, for example, noise pixels or the like are present in the T-shaped portion, so that the T-shaped portion may be erroneously determined not to be a low-density area.

これに対して、本実施形態では、原稿Mの画像を階調反転した反転画像からエッジ画素が抽出され(S24,S25)、基準値以上の幅を有するエッジ画素の集合体の有無に基づき、低濃度抜き領域が有るどうかが判断される(S26.S27)。エッジ画像T2は、検索対象であるT字部分がエッジ画素領域になっているので、T字部分が非エッジ画像領域になっているエッジ画像T3に比べて、T字部分の有無を正確に判断することができる。つまり、本実施形態の構成であれば、階調反転しない上記構成に比べて、低濃度抜き領域の有無を精度よく判断することができる。   On the other hand, in the present embodiment, edge pixels are extracted from the inverted image obtained by reversing the gradation of the image of the document M (S24, S25), and based on the presence or absence of an aggregate of edge pixels having a width equal to or greater than the reference value. It is determined whether or not there is a low density removal region (S26 and S27). In the edge image T2, since the T-shaped part to be searched is an edge pixel area, the presence or absence of the T-shaped part is accurately determined as compared with the edge image T3 in which the T-shaped part is a non-edge image area. can do. That is, with the configuration of the present embodiment, it is possible to accurately determine the presence or absence of a low density removal region compared to the above configuration in which gradation inversion is not performed.

また、本実施形態によれば、領域Kの地色濃度が基準濃度以下であっても低濃度抜き領域が有ると判断した場合には(S22:YES、かつ、S27:YES)、地色補正を実行しないことにより、地色補正により低濃度抜き領域が見難くなることを抑制することができる。   Further, according to the present embodiment, when it is determined that there is a low density removal area even if the background color density of the area K is equal to or lower than the reference density (S22: YES and S27: YES), the background color correction is performed. By not performing the above, it is possible to prevent the low density removal region from becoming difficult to see due to the ground color correction.

また、領域特定処理(S6〜S9)で特定された領域毎に、領域有無判断処理及び補正切替処理が実行される。このため、原稿Mの画像に対し、互いの地色濃度が基準範囲内である複数のラインが連続する1または複数の領域ごとに、領域有無判断処理及び補正切替処理を個別に実行することができる。   In addition, the area presence / absence determination process and the correction switching process are executed for each area specified in the area specifying process (S6 to S9). For this reason, the area presence / absence determination process and the correction switching process may be individually executed for each image or a plurality of areas in which a plurality of lines having a background color density within the reference range are continuous with respect to the image of the document M. it can.

さらに、読取デバイス7で読み取った原稿Mの画像の読取データについて、地色補正により低濃度抜き領域が見難くなることを抑制することができる。   Further, with respect to the read data of the image of the original M read by the reading device 7, it is possible to prevent the low density removal region from becoming difficult to see due to the ground color correction.

<実施形態2>
図7は実施形態2を示す。前記実施形態1との相違は、補正処理の内容にあり、その他の点は前記実施形態1と同様である。従って、実施形態1と同一符号を付して重複する説明を省略し、異なるところのみを次に説明する。
<Embodiment 2>
FIG. 7 shows a second embodiment. The difference from the first embodiment is the content of the correction process, and the other points are the same as in the first embodiment. Therefore, the same reference numerals as those in the first embodiment are given and the redundant description is omitted, and only different points will be described next.

上記実施形態1では、制御ユニット31は、原稿Mの画像の各領域Kごとに、領域有無判断処理及び補正切替処理を実行する構成であった。これに対し、本実施形態では、制御ユニット31は、原稿Mの画像(読取画像)全体に対して領域有無判断処理及び補正切替処理を実行する構成である。具体的には、CPU31Aは、図7に示す補正処理を実行する。   In the first embodiment, the control unit 31 is configured to execute the area presence determination process and the correction switching process for each area K of the image of the document M. On the other hand, in the present embodiment, the control unit 31 is configured to execute the region presence / absence determination process and the correction switching process for the entire image (read image) of the document M. Specifically, the CPU 31A executes the correction process shown in FIG.

CPU31Aは、地色濃度検出処理の結果に基づき、原稿Mの画像のうち最大領域の地色濃度値DE(K)を抽出して、地色濃度値Dmaxとし、地色濃度値Dmaxが、基準値Dth以上であるかどうか、換言すれば、最大領域の地色濃度が、基準濃度以下であるかどうかを判断する、濃度判断処理を実行する(S41)。なお、CPU31Aは、原稿Mの画像に含まれる複数領域の地色濃度値DE(K)の平均値を算出し、その平均値が、基準値Dth以上であるかどうかを判断する構成でもよい。   Based on the result of the ground color density detection process, the CPU 31A extracts the ground color density value DE (K) of the maximum area from the image of the document M to obtain the ground color density value Dmax, and the ground color density value Dmax is the reference color. A density determination process is executed to determine whether or not the value is equal to or greater than the value Dth, in other words, whether or not the ground color density of the maximum area is equal to or less than the reference density (S41). The CPU 31A may be configured to calculate an average value of the ground color density values DE (K) of a plurality of regions included in the image of the document M and determine whether the average value is equal to or greater than the reference value Dth.

CPU31Aは、最大領域の地色濃度値Dmaxが基準値Dth以上であると判断した場合には(S41:YES)、原稿Mの画像全体に対して、上記S24〜26と同様の領域有無判断処理(S42〜S44)を実行する。CPU31Aは、エッジデータ解析処理の結果、低濃度抜き領域が無いと判断し(S45:NO)、原稿Mの画像全体に対して、地色濃度値Dmaxに応じた地色補正を実行する(S46,S47)。   If the CPU 31A determines that the ground color density value Dmax of the maximum region is equal to or greater than the reference value Dth (S41: YES), the same region presence / absence determination processing as in S24 to S26 described above for the entire image of the document M. (S42 to S44) are executed. As a result of the edge data analysis process, the CPU 31A determines that there is no low density removal area (S45: NO), and executes ground color correction according to the ground color density value Dmax for the entire image of the document M (S46). , S47).

CPU31Aは、地色濃度値Dmaxを、より高い値にする、換言すれば、最大領域の地色濃度を、より薄くする、或いは白色にするための補正係数Hを算出する(S46)。CPU31Aは、補正係数Hを算出すると、メモリ13Bに記憶されている原稿Mの画像全体の第2読取データに対して、各画素の階調データに補正係数Hを乗じる地色補正を開始し(S47)、本補正処理及び読取処理を終了する。一方、CPU31Aは、エッジデータ解析の結果、低濃度抜き領域が有ると判断し(S27:YES)、原稿Mの画像全体に対し、地色補正を実行せずに本補正処理及び読取処理を終了する。   The CPU 31A calculates the correction coefficient H for making the ground color density value Dmax higher, in other words, for making the ground color density of the maximum region lighter or white (S46). When the CPU 31A calculates the correction coefficient H, the CPU 31A starts ground color correction by multiplying the gradation data of each pixel by the correction coefficient H for the second read data of the entire image of the document M stored in the memory 13B ( S47) The correction process and the reading process are finished. On the other hand, as a result of the edge data analysis, the CPU 31A determines that there is a low density removal area (S27: YES), and ends the main correction process and the reading process without executing the ground color correction on the entire image of the document M. To do.

本実施形態によれば、原稿Mの画像に、低濃度抜き領域が有るかどうかが判断され、低濃度抜き領域が有ると判断された場合(S45:YES)、原稿Mの画像全体の読取データに対して地色補正は行われない。従って、地色補正により低濃度抜き領域が見難くなることを抑制することができる。   According to the present embodiment, it is determined whether or not the image of the document M has a low density removal area. If it is determined that there is a low density removal area (S45: YES), the read data of the entire image of the document M is read. The ground color correction is not performed. Therefore, it is possible to prevent the low density removal region from becoming difficult to see due to the ground color correction.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
上記実施形態では、画像処理装置の一例として、複合機1を挙げた。しかし、画像処理装置は、これに限らず、スキャナ機能のみ有するスキャナ装置単体、ファクシミリ装置単体、スキャナ機能及び印刷機能のみ有するコピー機などでもよい。また、画像処理装置は、FB4を有しない構成でもよい。例えば、1つまたは2つの読取デバイスが、ADF6の搬送路途中で原稿の画像を読み取り構成でもよい。更に、画像処理装置は、例えば、パーソナルコンピュータなど、読取デバイスを備えず、スキャナ装置や外部メモリ等の外部機器から読取画像のデータを、インターフェースを介して取得する情報処理装置でもよい。この構成では、インターフェースが、データ取得部の一例である。
<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.
In the above-described embodiment, the multifunction device 1 is given as an example of the image processing apparatus. However, the image processing apparatus is not limited thereto, and may be a single scanner apparatus having only a scanner function, a facsimile apparatus alone, a copier having only a scanner function and a printing function, or the like. The image processing apparatus may be configured without the FB4. For example, one or two reading devices may be configured to read an image of a document in the middle of the ADF 6 conveyance path. 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.

上記実施形態では、データ取得部の一例として、読取デバイス7を例に挙げた。しかし、データ取得部は、これに限らず、読取画像データが記憶される外部記憶装置や、読取画像データを送信する外部機器と通信可能に接続される接続部、例えばUSBインターフェースなどでもよい。   In the above embodiment, the reading device 7 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.

上記実施形態では、制御ユニット31は、1つのCPU31Aを備える構成であった。しかし、制御ユニット31は、複数のCPUを備え、当該複数のCPUで、読取処理中の各処理を分担して実行させる構成でもよい。また、制御ユニット31は、CPUに代えて、または、CPUに加えて、ASIC(Application Specific Integrated Circuit)や、画像処理回路などのハード回路を備え、CPUとハード回路とで、読取処理中の各処理を分担して実行させる構成でもよい。   In the above embodiment, the control unit 31 is configured to include one CPU 31A. However, the control unit 31 may include a plurality of CPUs, and the plurality of CPUs may share and execute each process during the reading process. The control unit 31 includes a hardware circuit such as an application specific integrated circuit (ASIC) or an image processing circuit in place of or in addition to the CPU. Each of the CPU and the hardware circuit performs a reading process. A configuration in which processing is shared and executed may be used.

また、読取処理中の各処理、特に、地色濃度検出処理、領域有無判断処理、地色補正、補正切替処理、濃度判断処理、領域特定処理の実行順序は、図3、図5に示した実行順序に限らず、適宜入れ替えることができる。例えば、上記実施形態1では、制御ユニット31は、地色濃度検出処理(図3のS2〜S9)を、原稿Mの画像の全体領域について完了した後に、図5の補正処理を実行した。しかし、これに限らず、制御ユニット31は、原稿Mの画像のうち一領域の地色濃度検出処理を終了した後、当該一の領域の補正処理を、次の領域の地色濃度検出処理の開始前、または、実行中に並行して実行する構成でもよい。   Also, the execution order of each process during the reading process, in particular, the background color density detection process, the area presence / absence determination process, the ground color correction, the correction switching process, the density determination process, and the area specifying process is shown in FIGS. The order of execution is not limited and can be changed as appropriate. For example, in the first embodiment, the control unit 31 performs the correction process in FIG. 5 after completing the background color density detection process (S2 to S9 in FIG. 3) for the entire area of the image of the document M. However, the present invention is not limited to this, and after the control unit 31 finishes the ground color density detection process for one area of the image of the document M, the correction process for the one area is performed for the ground color density detection process for the next area. It may be configured to execute in parallel before starting or during execution.

また、上記実施形態では、制御ユニット31は、補正処理において、濃度判断処理(S22)の後に、領域有無判断処理等(S23〜S27)を実行した。しかし、制御ユニット31は、領域有無判断処理等の後に、濃度判断処理を実行する構成でもよい。但し、上記実施形態であれば、領域Kの地色濃度が閾値よりも高く地色補正の必要がない場合に、領域有無判断処理等を行う必要がないため、制御ユニット31の処理負担を軽減することができる。   Moreover, in the said embodiment, the control unit 31 performed the area | region presence / absence determination process etc. (S23-S27) in the correction | amendment process after the density | concentration determination process (S22). However, the control unit 31 may be configured to execute the density determination process after the area presence determination process or the like. However, in the above embodiment, when the background color density of the region K is higher than the threshold value and it is not necessary to perform the background color correction, it is not necessary to perform the region presence / absence determination processing and the like, so the processing load on the control unit 31 is reduced. can do.

上記実施形態では、制御ユニット31は、読取処理において、濃度判断処理及び領域特定処理を実行する構成であった。しかし、これに限らず、制御ユニット31は、濃度判断処理及び領域特定処理の少なくとも一方を実行しない構成でもよい。   In the above embodiment, the control unit 31 is configured to execute the density determination process and the area specifying process in the reading process. However, the present invention is not limited to this, and the control unit 31 may be configured not to execute at least one of the density determination process and the area specifying process.

上記実施形態では、画像処理プログラムの一例として、RAMやROMを有するメモリ31Bに記憶されたものを例に挙げた。しかし、画像処理プログラムは、これに限らず、ハードディスク装置、フラッシュメモリ(登録商標)などの不揮発性メモリや、CD−Rなどの記憶媒体などに記憶されたものでもよい。   In the embodiment described above, an example of an image processing program stored in the memory 31B having a RAM or a ROM is taken as an example. However, the image processing program is not limited to this, and may be a non-volatile memory such as a hard disk device or a flash memory (registered trademark), or a storage medium such as a CD-R.

上記実施形態では、モノクロ形式の読取指示がされた場合を例に挙げて説明した。しかし、これに限らず、カラー形式の読取指示がされた場合に、そのカラーの読取画像に対して地色補正を行う構成でもよい。この場合、R、G、Bの色ごとに、図3に示す読取処理を実行する構成が好ましい。特に領域有無判断処理では、例えばR、G、Bの色ごとに、図5のS23〜S26を個別に実行し、例えば2色以上について、低濃度抜き領域が有ると判断した場合に、地色補正をしないと判断する構成でもよい。   In the above embodiment, the case where a monochrome format reading instruction is given has been described as an example. However, the present invention is not limited to this, and a configuration in which ground color correction is performed on a color read image when an instruction for reading a color format is given. In this case, it is preferable to execute the reading process shown in FIG. 3 for each of R, G, and B colors. In particular, in the region presence / absence determination process, for example, S23 to S26 in FIG. 5 are individually executed for each of R, G, and B colors, and if it is determined that there are low-density areas for two or more colors, for example, A configuration in which it is determined that correction is not performed may be used.

上記各実施形態では、制御ユニット31は、図5の補正処理及び図7の補正処理のいずれか一方のみ実行可能な構成であった。しかし、制御ユニット31は、図5の補正処理及び図7の補正処理の両方を実行可能であり、例えばユーザが操作ユニット38でモード選択することにより、両補正処理を選択的に実行する構成でもよい。これにより、ユーザは、補正切替処理を、領域ごとに詳細に行いたい場合には図5の補正処理の実行モードを選択し、補正切替処理を、簡単、高速に行いたい場合には図7の補正処理の実行モードを選択することができるため、補正切替処理の利便性を向上させることができる。   In each of the above embodiments, the control unit 31 has a configuration capable of executing only one of the correction process of FIG. 5 and the correction process of FIG. However, the control unit 31 can execute both the correction process of FIG. 5 and the correction process of FIG. 7. For example, the control unit 31 can selectively execute both the correction processes by selecting a mode with the operation unit 38. Good. Accordingly, when the user wants to perform the correction switching process in detail for each region, the user selects the correction processing execution mode of FIG. 5, and when the user wants to perform the correction switching process easily and at high speed, FIG. Since the execution mode of the correction process can be selected, the convenience of the correction switching process can be improved.

1:複合機 7:読取デバイス 31:制御ユニット 33:AFE M:原稿   1: Multifunction machine 7: Reading device 31: Control unit 33: AFE M: Document

Claims (5)

原稿画像の読取データを取得するデータ取得部と、
制御部と、を備え、
前記制御部は、
前記読取データに基づき、前記原稿画像の地色濃度を検出する地色濃度検出処理と、
前記読取データに基づき前記原稿画像を階調反転した反転画像を生成する階調反転処理と、
前記反転画像からエッジ画素を抽出するエッジ抽出処理と、
前記エッジ抽出処理の抽出結果に基づき、基準値以上の幅を有する前記エッジ画素の集合体が有るかどうかを判断し、当該集合体が有れば、背景色よりも低い画像濃度で打ち抜かれた領域である低濃度抜き領域が有ると判断する集合体有無判断処理と、
前記集合体有無判断処理で前記低濃度抜き領域が無いと判断した場合、前記読取データに対し、前記原稿画像の地色濃度に応じた地色補正を行い、前記低濃度抜き領域が有ると判断した場合、少なくとも当該低濃度抜き領域及びその背景領域の読取データに対し、前記地色補正を行わない補正切替処理と、を実行する構成を有する、画像処理装置。
A data acquisition unit for acquiring read data of a document image;
A control unit,
The controller is
A background color density detection process for detecting a background color density of the document image based on the read data;
Gradation inversion processing for generating an inverted image obtained by inverting the gradation of the original image based on the read data;
Edge extraction processing for extracting edge pixels from the inverted image;
Based on the extraction result of the edge extraction process, it is determined whether or not there is an aggregate of the edge pixels having a width equal to or larger than a reference value. If there is the aggregate, the image is punched at an image density lower than the background color. Aggregation presence / absence determination processing for determining that there is a low-concentration removal region that is a region ,
If it is determined in the aggregate presence / absence determination process that the low density removal area does not exist, ground color correction is performed on the read data according to the background color density of the document image, and it is determined that the low density removal area exists. In such a case, the image processing apparatus has a configuration for executing a correction switching process in which the ground color correction is not performed on at least the read data of the low density removal area and the background area.
請求項1に記載の画像処理装置であって、
前記制御部は、前記地色濃度検出処理で検出された前記原稿画像の地色濃度が基準濃度以下であるかどうかを判断する濃度判断処理を実行し、
前記補正切替処理において、前記地色濃度が前記基準濃度以下であり、且つ、前記低濃度抜き領域が無いと判断した場合、前記読取データに対して前記地色補正を行い、前記地色濃度が前記基準濃度以下であり、且つ、前記低濃度抜き領域が有ると判断した場合、前記読取データに対して前記地色補正を行わない、画像処理装置。
The image processing apparatus according to claim 1,
The control unit executes a density determination process for determining whether a ground color density of the document image detected in the ground color density detection process is equal to or lower than a reference density;
In the correction switching process, when it is determined that the background color density is equal to or lower than the reference density and there is no low density removal region, the background color correction is performed on the read data, and the background color density is An image processing apparatus that does not perform the ground color correction on the read data when it is determined that the density is equal to or lower than the reference density and the low density removal area exists.
請求項1から2のいずれか一項に記載の画像処理装置であって、
前記制御部は、
前記地色濃度検出処理において、前記読取データから前記原稿画像の各ラインの地色濃度を検出し、
前記地色濃度検出処理の検出結果に基づき、前記原稿画像から、互いの地色濃度差が基準範囲内である複数のラインが連続する1または複数の領域を特定する領域特定処理を実行し、
前記領域特定処理で特定された領域毎に、前記集合体有無判断処理及び前記補正切替処理を実行する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 2, wherein
The controller is
In the background color density detection process, the background color density of each line of the document image is detected from the read data,
Based on the detection result of the background color density detection process, an area specifying process for specifying one or a plurality of areas in which a plurality of lines in which a difference in background color density is within a reference range from the document image is performed,
An image processing apparatus that executes the aggregate presence / absence determination process and the correction switching process for each area specified by the area specifying process.
請求項1から3のいずれか一項に記載の画像処理装置であって、
原稿に対して相対移動しながら、当該原稿を読み取る読取デバイスを備え、
前記データ取得部は、前記読取デバイスから前記原稿画像の読取データを取得する構成である、画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
A reading device that reads the original while moving relative to the original;
The image processing apparatus, wherein the data acquisition unit is configured to acquire read data of the document image from the reading device.
原稿画像の読取データを取得するデータ取得部を有する画像処理装置のコンピュータに、
前記読取データに基づき、前記原稿画像の地色濃度を検出する地色濃度検出処理と、
前記読取データに基づき前記原稿画像を階調反転した反転画像を生成する階調反転処理と、
前記反転画像からエッジ画素を抽出するエッジ抽出処理と、
前記エッジ抽出処理の抽出結果に基づき、基準値以上の幅を有する前記エッジ画素の集合体が有るかどうかを判断し、当該集合体が有れば、背景色よりも低い画像濃度で打ち抜かれた領域である低濃度抜き領域が有ると判断する集合体有無判断処理と、
前記集合体有無判断処理で前記低濃度抜き領域が無いと判断した場合、前記読取データに対し、前記原稿画像の地色濃度に応じた地色補正を行い、前記低濃度抜き領域が有ると判断した場合、少なくとも当該低濃度抜き領域及びその背景領域の読取データに対し、前記地色補正を行わない補正切替処理と、を実行させる、画像処理プログラム。
In a computer of an image processing apparatus having a data acquisition unit for acquiring read data of a document image,
A background color density detection process for detecting a background color density of the document image based on the read data;
Gradation inversion processing for generating an inverted image obtained by inverting the gradation of the original image based on the read data;
Edge extraction processing for extracting edge pixels from the inverted image;
Based on the extraction result of the edge extraction process, it is determined whether or not there is an aggregate of the edge pixels having a width equal to or larger than a reference value. If there is the aggregate, the image is punched at an image density lower than the background color. Aggregation presence / absence determination processing for determining that there is a low-concentration removal region that is a region ,
If it is determined in the aggregate presence / absence determination process that the low density removal area does not exist, ground color correction is performed on the read data according to the background color density of the document image, and it is determined that the low density removal area exists. In this case, an image processing program for executing correction switching processing that does not perform the ground color correction on at least the read data of the low density removal region and the background region.
JP2011260039A 2011-11-29 2011-11-29 Image reading apparatus and ground color correction program Active JP5825073B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011260039A JP5825073B2 (en) 2011-11-29 2011-11-29 Image reading apparatus and ground color correction program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011260039A JP5825073B2 (en) 2011-11-29 2011-11-29 Image reading apparatus and ground color correction program

Publications (2)

Publication Number Publication Date
JP2013115612A JP2013115612A (en) 2013-06-10
JP5825073B2 true JP5825073B2 (en) 2015-12-02

Family

ID=48710779

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011260039A Active JP5825073B2 (en) 2011-11-29 2011-11-29 Image reading apparatus and ground color correction program

Country Status (1)

Country Link
JP (1) JP5825073B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02199588A (en) * 1989-01-30 1990-08-07 Toshiba Corp Image area identifying device
JP3253117B2 (en) * 1992-02-21 2002-02-04 キヤノン株式会社 Image processing apparatus and method
JP5262877B2 (en) * 2009-03-17 2013-08-14 セイコーエプソン株式会社 Noise component removal apparatus and medium on which noise component removal program is recorded

Also Published As

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

Similar Documents

Publication Publication Date Title
US10187547B2 (en) Image reading system configured to detect document edge
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
JP5757259B2 (en) Image processing apparatus and image processing program
JP6338554B2 (en) Image processing apparatus, image processing method, and program
JP5354310B2 (en) Image reading apparatus and ground color correction program
JP2008227625A (en) Image processor, image processing method, image processing program and recording medium
JP2016066836A (en) Image reading apparatus, control method of the same, and program
JP5825073B2 (en) Image reading apparatus and ground color correction program
US20210227098A1 (en) Image reading apparatus, method of controlling image reading apparatus, and storage medium
JP6391348B2 (en) Image processing apparatus, image processing method, and program
JP5333873B2 (en) Image processing apparatus and image processing program
JP5768752B2 (en) Image reading apparatus and original arrangement determination program
JP5790495B2 (en) Image processing apparatus and image processing program
JP6439273B2 (en) Reader and program
US9007668B2 (en) Image reading system, information processing apparatus, and storage medium
JP2009005398A (en) Image processor
KR20200067231A (en) Image reading apparatus, control method for controlling image reading apparatus, and storage medium
JP5768753B2 (en) Image reading apparatus and original size specifying program
JP5838763B2 (en) Image processing apparatus and image processing program
JP2004274397A (en) Image processor
JP4035489B2 (en) Background removal device, background removal method, background removal program, and recording medium
JP2017199976A (en) Image processing apparatus, image processing method and program
JP2022063681A (en) Image reading device and method for controlling image reading device
JP2014236445A (en) Image processing system, image processing method and image reader
JP5772302B2 (en) Copy machine

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

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150128

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150309

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20150507

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150630

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150928

R150 Certificate of patent or registration of utility model

Ref document number: 5825073

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150