JP2019022138A - Image reading device and image forming apparatus - Google Patents

Image reading device and image forming apparatus Download PDF

Info

Publication number
JP2019022138A
JP2019022138A JP2017140797A JP2017140797A JP2019022138A JP 2019022138 A JP2019022138 A JP 2019022138A JP 2017140797 A JP2017140797 A JP 2017140797A JP 2017140797 A JP2017140797 A JP 2017140797A JP 2019022138 A JP2019022138 A JP 2019022138A
Authority
JP
Japan
Prior art keywords
pixel
document
reading
value
control unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017140797A
Other languages
Japanese (ja)
Other versions
JP6747398B2 (en
Inventor
亮祐 加藤
Ryosuke Kato
亮祐 加藤
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2017140797A priority Critical patent/JP6747398B2/en
Publication of JP2019022138A publication Critical patent/JP2019022138A/en
Application granted granted Critical
Publication of JP6747398B2 publication Critical patent/JP6747398B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

To reduce the occurrence of wrong determination in determination of whether a target pixel is a pixel in an inside-document area or a pixel in an outside-document area.SOLUTION: An image reading device comprises: an image reading unit that reads a document; and a control unit that sequentially sets, to a target pixel, pixels of image data obtained through placement reading performed while a document cover is opened, determines whether the target pixel is a pixel in an inside-document area or a pixel in an outside-document area, and when the target pixel is a pixel in an outside-document area, replaces a pixel value of the target pixel with a white value. The control unit acquires, as image data for correction, image data obtained through reading on a contact glass for conveyance and reading while the document cover is opened, corrects the pixel value of the target pixel on the basis of the image data for correction when performing determination processing, and compares a value to be compared obtained on the basis of the pixel value after correction with a threshold.SELECTED DRAWING: Figure 7

Description

本発明は、原稿を読み取る画像読取装置および画像形成装置に関する。   The present invention relates to an image reading apparatus and an image forming apparatus for reading a document.

画像読取装置を用いて原稿を読み取るとき、ユーザーはコンタクトガラス上に原稿を載置する。そして、コンタクトガラス上に原稿を載置した後、ユーザーは画像読取装置に設置された原稿押えを閉じる。原稿押えが閉じられると、コンタクトガラス上の原稿が原稿押えで覆われる。   When reading an original using the image reading apparatus, the user places the original on the contact glass. After placing the document on the contact glass, the user closes the document presser installed in the image reading apparatus. When the document presser is closed, the document on the contact glass is covered with the document presser.

ここで、原稿押えが開けられた状態で、コンタクトガラス上に載置された原稿を読み取る載置読取が行われる場合がある。この場合には、載置読取で得られた画像データのうち原稿外領域が黒色領域となる。したがって、たとえば、載置読取で得られた画像データに基づく画像を用紙に印刷すると、印刷済み用紙のうち原稿外領域に対応する領域が黒のベタ塗り領域となる。   Here, there is a case where the placement reading for reading the document placed on the contact glass is performed in a state where the document presser is opened. In this case, the area outside the document in the image data obtained by the placement reading is a black area. Therefore, for example, when an image based on image data obtained by placement reading is printed on a sheet, an area corresponding to the area outside the document in the printed sheet becomes a black solid area.

ユーザーによっては、原稿外領域を白色領域にしたい場合がある。このようなユーザーの要望に応えるため、載置読取で得られた画像データを原稿内領域と原稿外領域とに分類し、原稿外領域の画像を消去する技術が提案されている(たとえば、特許文献1参照)。   Some users want to make the outside area of the document white. In order to meet such user demands, a technique has been proposed in which image data obtained by placing and reading is classified into an area inside a document and an area outside the document, and an image in the area outside the document is erased (for example, patents). Reference 1).

特開2016−119633号公報Japanese Patent Laid-Open No. 2006-119633

たとえば、従来の画像読取装置には、原稿外領域の画像を消去する原稿外消去処理を行う処理部が設けられる。処理部は、原稿外消去処理を行うとき、載置読取で得られた画像データに含まれる複数の画素を順番に注目画素に設定するとともに、注目画素の画素値と予め定められた閾値とを比較し、比較結果に基づき、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する。そして、処理部は、原稿外領域の画素の画素値を白色値に置換する(すなわち、原稿外領域の画像を消去する)。   For example, a conventional image reading apparatus is provided with a processing unit that performs a non-original erasure process for erasing an image outside the original area. The processing unit sets a plurality of pixels included in the image data obtained by the placement reading as the target pixel in order when performing the outside-erase processing, and sets a pixel value of the target pixel and a predetermined threshold value. Based on the comparison result, it is determined whether the target pixel is a pixel in the area inside the document or a pixel in the area outside the document. Then, the processing unit replaces the pixel value of the pixel outside the document with a white value (that is, deletes the image outside the document).

ここで、原稿押えが開けられた状態で載置読取が行われた場合、画像読取装置の設置場所によっては、たとえば、蛍光灯などの写り込みに起因して、原稿外領域の画素が若干明るくなってしまうことがある。読取領域が暗いほど画素の画素値が大きくなるとすると、蛍光灯などの写り込みが発生した場合には発生しなかった場合に比べて、原稿外領域の画素の画素値が小さくなる。   Here, when the document reading is performed with the document presser opened, depending on the installation location of the image reading device, for example, the pixels in the area outside the document are slightly bright due to the reflection of a fluorescent lamp or the like. It may become. If the pixel value of the pixel increases as the reading area becomes darker, the pixel value of the pixel in the area outside the document becomes smaller than when the reflection of a fluorescent lamp or the like does not occur.

このため、注目画素が原稿外領域の画素であっても、注目画素が原稿内領域の画素であると判定されるという不都合が発生し得る。このような不都合は、原稿を読み取るイメージセンサーの経年劣化によっても発生する場合がある。原稿外領域の画素が原稿内領域の画素であると判定されると、当該画素の画素値は白色値に置換されない。したがって、たとえば、載置読取で得られた画像データに基づく画像を用紙に印刷すると、用紙の原稿外領域に対応する領域に不必要な画像が印刷されてしまう。   For this reason, even if the target pixel is a pixel in the area outside the document, it may occur that the target pixel is determined to be a pixel in the area in the document. Such inconvenience may also occur due to aging of the image sensor that reads the document. If it is determined that a pixel in the document outside area is a pixel in the document area, the pixel value of the pixel is not replaced with a white value. Therefore, for example, when an image based on the image data obtained by the placement reading is printed on a sheet, an unnecessary image is printed in an area corresponding to the area outside the document on the sheet.

本発明は、上記課題を解決するためになされたものであり、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかの判定において誤判定が発生するのを抑制することが可能な画像読取装置および画像形成装置を提供することを目的とする。   The present invention has been made to solve the above-described problem, and suppresses occurrence of erroneous determination in determining whether a pixel of interest is a pixel in an original area or a pixel in an external area. An object of the present invention is to provide a possible image reading apparatus and image forming apparatus.

上記目的を達成するため、本発明の第1の局面による画像読取装置は、原稿が載置される載置読取用コンタクトガラスと、自動搬送される原稿が通過する搬送読取用コンタクトガラスと、載置読取を行う場合には載置読取用コンタクトガラス上に載置された原稿を読み取り、搬送読取を行う場合には搬送読取用コンタクトガラス上を通過する原稿を読み取る画像読取部と、開閉可能に支持され、閉じられることによって、載置読取用コンタクトガラスおよび搬送読取用コンタクトガラスを覆う原稿押えと、原稿押えが開けられた状態で行われた載置読取で得られた画像データである対象画像データに含まれる複数の画素を順番に注目画素に設定し、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する判定処理を行うとともに、注目画素が原稿外領域の画素であれば注目画素の画素値を白色値に置換する置換処理を行う制御部と、を備える。制御部は、原稿押えが開けられた状態での搬送読取用コンタクトガラスの読み取りで得られた画像データを補正用画像データとして取得し、判定処理を行うとき、補正用画像データに基づき注目画素の画素値を補正し、注目画素の補正後の画素値に基づき判定処理に用いる比較対象値を求め、比較対象値と予め定められた閾値とを比較することにより、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する。   In order to achieve the above object, an image reading apparatus according to a first aspect of the present invention includes a placement reading contact glass on which an original is placed, a transport reading contact glass through which an automatically fed original passes, An image reading unit that reads a document placed on the placement reading contact glass when performing reading, and an image reading unit that reads a document passing through the conveyance reading contact glass when performing conveyance reading, and can be opened and closed. A target image which is image data obtained by a document presser covering the placement reading contact glass and the transport reading contact glass by being supported and closed, and a document reading performed with the document presser opened. When a plurality of pixels included in the data are sequentially set as the target pixel, and a determination process is performed to determine whether the target pixel is a pixel in the document area or a pixel outside the document area Moni, and a control unit pixel of interest to perform the replacement process of replacing the pixel value of the pixel of interest if the pixel of the document outside the region to white value. The control unit acquires image data obtained by reading the conveyance reading contact glass in a state where the document presser is opened as correction image data, and performs a determination process to determine the pixel of interest based on the correction image data. The pixel value is corrected, the comparison target value used in the determination process is obtained based on the corrected pixel value of the target pixel, and the target pixel is a pixel in the document area by comparing the comparison target value with a predetermined threshold value. Or a pixel outside the document.

本発明の第2の局面による画像形成装置は、上記画像読取装置を備える。   An image forming apparatus according to a second aspect of the present invention includes the image reading apparatus.

本発明の構成では、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する判定処理に用いる比較対象値を注目画素の画素値に基づき求める。注目画素が原稿外領域の画素である場合には、本来であれば注目画素は暗くなるが、たとえば、画像読取装置の設置場所によっては若干明るくなってしまうことがある。そこで、制御部は、判定処理を行うとき(比較対象値を求めるとき)、補正用画像データに基づき、注目画素の画素値を補正する。これにより、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかの判定において誤判定が発生するのを抑制することができる。   In the configuration of the present invention, a comparison target value used for determination processing for determining whether a target pixel is a pixel in the original area or a pixel outside the original area is obtained based on the pixel value of the target pixel. When the target pixel is a pixel in the area outside the original, the target pixel is originally dark, but may be slightly bright depending on the installation location of the image reading apparatus, for example. Therefore, when the determination process is performed (when the comparison target value is obtained), the control unit corrects the pixel value of the target pixel based on the correction image data. Thereby, it is possible to suppress the occurrence of erroneous determination in determining whether the target pixel is a pixel in the document area or a pixel in the document area.

本発明の構成では、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかの判定において誤判定が発生するのを抑制することができる。   According to the configuration of the present invention, it is possible to prevent erroneous determination from occurring in determining whether the pixel of interest is a pixel in the original area or a pixel in the external area.

本発明の一実施形態による複合機の全体構成を示す概略図1 is a schematic diagram showing an overall configuration of a multifunction machine according to an embodiment of the present invention. 本発明の一実施形態による複合機の画像読取部の構成を示す図1 is a diagram illustrating a configuration of an image reading unit of a multifunction peripheral according to an embodiment of the present invention. 本発明の一実施形態による複合機の原稿搬送ユニットが開閉された場合の概略図Schematic diagram when a document transport unit of a multifunction machine according to an embodiment of the present invention is opened and closed 本発明の一実施形態による複合機の構成を示すブロック図1 is a block diagram showing a configuration of a multifunction machine according to an embodiment of the present invention. 本発明の一実施形態による複合機の載置読取用コンタクトガラス上に原稿が載置された場合の図The figure when a manuscript is placed on the contact glass for placement reading of the multifunctional machine according to the embodiment of the present invention. 本発明の一実施形態による複合機の画像読取部による載置読取で得られた画像データに基づく印刷が行われた場合に出力される印刷済み用紙を示す図FIG. 6 is a diagram illustrating printed paper that is output when printing is performed based on image data obtained by placement reading by the image reading unit of the multifunction peripheral according to the embodiment of the present invention. 本発明の一実施形態による複合機の制御部により行われる原稿外消去処理の流れを示すフローチャート6 is a flowchart showing a flow of out-of-original erasing processing performed by the control unit of the multifunction machine according to the embodiment of the present invention. 本発明の一実施形態による複合機の制御部により行われる係数設定処理の流れを示すフローチャート6 is a flowchart showing a flow of coefficient setting processing performed by the control unit of the multifunction machine according to the embodiment of the present invention.

本発明の一実施形態による画像読取装置を備えた画像形成装置について、スキャン機能やプリント機能など複数種の機能が搭載された複合機を例にとって説明する。   An image forming apparatus including an image reading apparatus according to an embodiment of the present invention will be described by taking as an example a multi-function peripheral equipped with a plurality of functions such as a scan function and a print function.

<複合機の構成>
図1に示すように、本実施形態の複合機100は、画像読取部1、印刷部2および操作パネル3を備える。
<Configuration of MFP>
As illustrated in FIG. 1, the multifunction peripheral 100 according to the present embodiment includes an image reading unit 1, a printing unit 2, and an operation panel 3.

画像読取部1は、図2に示すような構成を有する。画像読取部1は、原稿Dを読み取って原稿Dの画像データを生成する。載置読取では、載置読取用コンタクトガラスG1の上面上に載置された原稿Dの読み取りが画像読取部1により行われる。搬送読取では、搬送読取用コンタクトガラスG2に向けて原稿Dが自動搬送され、搬送読取用コンタクトガラスG2の上面上を原稿Dが通過するとき、画像読取部1による原稿Dの読み取りが行われる。   The image reading unit 1 has a configuration as shown in FIG. The image reading unit 1 reads the document D and generates image data of the document D. In the placement reading, the image reading unit 1 reads the document D placed on the upper surface of the placement reading contact glass G1. In the conveyance reading, the document D is automatically conveyed toward the conveyance reading contact glass G2, and when the document D passes over the upper surface of the conveyance reading contact glass G2, the image reading unit 1 reads the document D.

画像読取部1は、光源11、イメージセンサー12、ミラー13およびレンズ14を含む。これら画像読取部1の各部材は、画像読取部1の筐体10の内部に収容される。画像読取部1の筐体10の上面には開口が形成される。載置読取用コンタクトガラスG1および搬送読取用コンタクトガラスG2は、筐体10の上面の開口に設置される。   The image reading unit 1 includes a light source 11, an image sensor 12, a mirror 13, and a lens 14. Each member of the image reading unit 1 is accommodated in the housing 10 of the image reading unit 1. An opening is formed on the upper surface of the housing 10 of the image reading unit 1. The placement reading contact glass G <b> 1 and the conveyance reading contact glass G <b> 2 are installed in the opening on the upper surface of the housing 10.

また、画像読取部1の筐体10には、原稿搬送ユニット101が設置される。原稿搬送ユニット101は、搬送読取用コンタクトガラスG2に向けて原稿Dを自動搬送する。   A document transport unit 101 is installed in the housing 10 of the image reading unit 1. The document transport unit 101 automatically transports the document D toward the transport reading contact glass G2.

原稿搬送ユニット101は、図3に示すように、画像読取部1の筐体10に開閉可能に取り付けられる。具体的には、筐体10の本体背面側に回転軸10aが設けられる。そして、原稿搬送ユニット101は、筐体10の回転軸10aに回動可能(開閉可能)に支持され、筐体10の回転軸10aを支点として回動する。すなわち、原稿搬送ユニット101は、本体正面側の部分を自由端とし、本体正面側の部分を上下方向に振るように回動する。   As shown in FIG. 3, the document conveying unit 101 is attached to the housing 10 of the image reading unit 1 so as to be opened and closed. Specifically, a rotating shaft 10 a is provided on the back side of the main body of the housing 10. The document conveyance unit 101 is supported by the rotation shaft 10a of the housing 10 so as to be rotatable (openable and closable), and rotates about the rotation shaft 10a of the housing 10 as a fulcrum. In other words, the document transport unit 101 rotates so that a portion on the front side of the main body is a free end and a portion on the front side of the main body is swung in the vertical direction.

原稿搬送ユニット101が閉じられると、載置読取用コンタクトガラスG1および搬送読取用コンタクトガラスG2が原稿搬送ユニット101によって覆われる。これにより、載置読取用コンタクトガラスG1上に載置された原稿D(載置読取の対象となる原稿D)を原稿搬送ユニット101で押えることができる。この構成では、原稿搬送ユニット101が「原稿押え」に相当する。   When the document transport unit 101 is closed, the placement reading contact glass G1 and the transport reading contact glass G2 are covered with the document transport unit 101. As a result, the document D placed on the placement reading contact glass G <b> 1 (document D to be placed and read) can be pressed by the document transport unit 101. In this configuration, the document transport unit 101 corresponds to “document presser”.

たとえば、原稿搬送ユニット101がオプション装置であれば、原稿搬送ユニット101が装着されず、代わりに、載置読取用コンタクトガラスG1上に載置された原稿Dを押える機能のみを有する原稿カバーが装着される場合がある。そして、複合機100の出荷後、原稿搬送ユニット101が装着される場合がある。この場合、載置読取用コンタクトガラスG1および搬送読取用コンタクトガラスG2を最初から筐体10に設置しておくことにより、原稿カバーから原稿搬送ユニット101に交換するだけでよくなるので、原稿搬送ユニット101の有無にかかわらず、筐体10に搬送読取用コンタクトガラスG2を設置してもよい。   For example, if the document transport unit 101 is an optional device, the document transport unit 101 is not mounted, but instead a document cover having only a function of pressing the document D placed on the placement reading contact glass G1 is mounted. May be. After the multifunction machine 100 is shipped, the document transport unit 101 may be mounted. In this case, since the placement reading contact glass G1 and the transport reading contact glass G2 are installed in the housing 10 from the beginning, it is only necessary to replace the document cover with the document transport unit 101. Regardless of whether or not there is, the conveyance reading contact glass G <b> 2 may be installed in the housing 10.

原稿搬送ユニット101の開閉を検知するため、画像読取部1の筐体10には開閉センサー111が設けられる。たとえば、開閉センサー111は、発光部および受光部を有する光センサーである。また、開閉センサー111は、発光部と受光部との間を上下方向に移動可能なアクチュエーター112を検知対象とする。   In order to detect opening / closing of the document conveying unit 101, an opening / closing sensor 111 is provided in the housing 10 of the image reading unit 1. For example, the open / close sensor 111 is an optical sensor having a light emitting unit and a light receiving unit. The open / close sensor 111 targets the actuator 112 that can move in the vertical direction between the light emitting unit and the light receiving unit.

原稿搬送ユニット101を完全に開けているとき(図3の上図に示す状態のとき)、アクチュエーター112は筐体10の上面(載置読取用コンタクトガラスG1および搬送読取用コンタクトガラスG2の各上面)よりも上方に突出する。このとき、アクチュエーター112は開閉センサー111の光路を遮らない(開閉センサー111がオンする)。この状態で、原稿搬送ユニット101を閉じていくと、アクチュエーター112が原稿搬送ユニット101に当接して下方に押し込まれる。そして、原稿搬送ユニット101の傾斜角度(筐体10の上面との角度)が所定角度になるまで原稿搬送ユニット101を閉じたとき(図3の下図に示す状態のとき)、アクチュエーター112が開閉センサー111の光路を遮る(開閉センサー111がオフする)。その後、原稿搬送ユニット101を完全に閉じると、アクチュエーター112は原稿搬送ユニット101によってさらに下方に押し込まれるが、開閉センサー111の光路はアクチュエーター112によって遮られたままである。   When the document transport unit 101 is completely opened (in the state shown in the upper diagram of FIG. 3), the actuator 112 is the upper surface of the housing 10 (the upper surfaces of the placement reading contact glass G1 and the transport reading contact glass G2). ) Protruding upward. At this time, the actuator 112 does not block the optical path of the open / close sensor 111 (the open / close sensor 111 is turned on). When the document conveying unit 101 is closed in this state, the actuator 112 contacts the document conveying unit 101 and is pushed downward. When the document conveying unit 101 is closed until the inclination angle of the document conveying unit 101 (the angle with the upper surface of the housing 10) reaches a predetermined angle (when in the state shown in the lower diagram of FIG. 3), the actuator 112 is opened and closed. The optical path 111 is blocked (the open / close sensor 111 is turned off). Thereafter, when the document transport unit 101 is completely closed, the actuator 112 is pushed further downward by the document transport unit 101, but the optical path of the open / close sensor 111 remains blocked by the actuator 112.

図2に戻り、光源11は、LED素子(図示せず)を複数含む。複数のLED素子は、主走査方向(図2の紙面に対して垂直な方向)にライン状に配列される。載置読取では、光源11は載置読取用コンタクトガラスG1に向けて光を照射する(載置読取用コンタクトガラスG1を透過した光が載置読取用コンタクトガラスG1上の原稿Dを照射する)。搬送読取では、光源11は搬送読取用コンタクトガラスG2に向けて光を照射する(搬送読取用コンタクトガラスG2を透過した光が搬送読取用コンタクトガラスG2上の原稿Dを照射する)。原稿Dで反射された反射光は、ミラー13で反射され、レンズ14に導かれる。レンズ14は、反射光を集光する。   Returning to FIG. 2, the light source 11 includes a plurality of LED elements (not shown). The plurality of LED elements are arranged in a line in the main scanning direction (a direction perpendicular to the paper surface of FIG. 2). In the placement reading, the light source 11 irradiates light toward the placement reading contact glass G1 (the light transmitted through the placement reading contact glass G1 irradiates the document D on the placement reading contact glass G1). . In the conveyance reading, the light source 11 irradiates light toward the conveyance reading contact glass G2 (the light transmitted through the conveyance reading contact glass G2 irradiates the document D on the conveyance reading contact glass G2). The reflected light reflected by the document D is reflected by the mirror 13 and guided to the lens 14. The lens 14 collects the reflected light.

イメージセンサー12は、RGB各色に対応するラインセンサーを含む。各色のラインセンサーは、主走査方向にライン状に並ぶ複数の光電変換素子を有するCCDからなる。イメージセンサー12は、原稿Dからの反射光(レンズ14で集光された光)を受光すると、ライン単位で画素ごとに光電変換して電荷を蓄積する。そして、イメージセンサー12は、蓄積電荷に応じたアナログ信号(RGB信号)を出力する。   The image sensor 12 includes line sensors corresponding to RGB colors. Each color line sensor is composed of a CCD having a plurality of photoelectric conversion elements arranged in a line in the main scanning direction. When the image sensor 12 receives reflected light from the document D (light collected by the lens 14), the image sensor 12 performs photoelectric conversion for each pixel in units of lines and accumulates electric charges. Then, the image sensor 12 outputs an analog signal (RGB signal) corresponding to the accumulated charge.

光源11およびミラー13は、主走査方向と直交する副走査方向に移動可能な移動枠15に装着される。移動枠15は、ワイヤー16に連結される。ワイヤー16は、巻取ドラム17に巻回される。巻取ドラム17は、巻取モーターMTの駆動力を受けて回転する。巻取モーターMTが駆動すると、巻取ドラム17が回転するので、移動枠15が副走査方向に移動する。すなわち、光源11およびミラー13が副走査方向に移動する。   The light source 11 and the mirror 13 are mounted on a moving frame 15 that can move in the sub-scanning direction orthogonal to the main scanning direction. The moving frame 15 is connected to the wire 16. The wire 16 is wound around the winding drum 17. The winding drum 17 rotates in response to the driving force of the winding motor MT. When the winding motor MT is driven, the winding drum 17 rotates, so that the moving frame 15 moves in the sub-scanning direction. That is, the light source 11 and the mirror 13 move in the sub scanning direction.

載置読取では、ユーザーによって載置読取用コンタクトガラスG1上に原稿Dが載置される。載置読取用コンタクトガラスG1上への原稿Dの載置後、通常では、原稿搬送ユニット101が閉じられるが、原稿搬送ユニット101が閉じられない場合もある。原稿搬送ユニット101が開けられた状態であっても、載置読取は可能である。たとえば、原稿Dが書籍などであれば、原稿搬送ユニット101が開けられた状態で載置読取が行われる場合がある。   In the placement reading, the document D is placed on the placement reading contact glass G1 by the user. After placing the document D on the placement reading contact glass G1, the document transport unit 101 is normally closed, but the document transport unit 101 may not be closed. Even when the document conveying unit 101 is opened, the placement reading is possible. For example, if the document D is a book or the like, the placement reading may be performed with the document transport unit 101 opened.

載置読取のときには、光源11を含む移動枠15が副走査方向(正面から見て左から右に向かう方向)に移動する。そして、移動枠15が副走査方向に移動しているとき、光源11が載置用コンタクトガラスG1に向けて光を照射する。イメージセンサー12は、載置読取用コンタクトガラスG1上の原稿Dで反射された反射光の光電変換を連続して繰り返し行う。これにより、原稿Dの読み取りがライン単位で行われる。   At the time of placement reading, the moving frame 15 including the light source 11 moves in the sub-scanning direction (the direction from the left to the right as viewed from the front). When the moving frame 15 is moving in the sub-scanning direction, the light source 11 emits light toward the mounting contact glass G1. The image sensor 12 continuously and repeatedly performs photoelectric conversion of the reflected light reflected by the document D on the placement reading contact glass G1. As a result, the document D is read line by line.

搬送読取では、原稿搬送ユニット101が閉じられ、ユーザーによって原稿搬送ユニット101に原稿Dがセットされる。そして、原稿搬送ユニット101は、搬送読取用コンタクトガラスG2に向けて原稿Dを搬送する。   In the conveyance reading, the document conveyance unit 101 is closed, and the document D is set on the document conveyance unit 101 by the user. Then, the document transport unit 101 transports the document D toward the transport reading contact glass G2.

搬送読取のときには、光源11を含む移動枠15が搬送読取用コンタクトガラスG2の下方に移動する。そして、搬送読取用コンタクトガラスG2の下方において、光源11が搬送読取用コンタクトガラスG2に向けて光を照射する。イメージセンサー12は、搬送読取用コンタクトガラスG2上を通過する原稿Dで反射された反射光の光電変換を連続して繰り返し行う。これにより、原稿Dの読み取りがライン単位で行われる。   At the time of conveyance reading, the moving frame 15 including the light source 11 moves below the conveyance reading contact glass G2. The light source 11 irradiates light toward the conveyance reading contact glass G2 below the conveyance reading contact glass G2. The image sensor 12 continuously and repeatedly performs photoelectric conversion of the reflected light reflected by the document D passing over the conveyance reading contact glass G2. As a result, the document D is read line by line.

図1に戻り、印刷部2は、用紙搬送路(図1では、破線で示す)に沿って用紙Pを搬送する。また、印刷部2は、印刷すべき画像の画像データに基づきトナー像を形成する。そして、印刷部2は、搬送中の用紙Pにトナー像を印刷する。たとえば、印刷部2は、画像読取部1による載置読取や搬送読取で得られた画像データに基づき印刷を行う(コピージョブを実行する)。   Returning to FIG. 1, the printing unit 2 transports the paper P along a paper transport path (indicated by a broken line in FIG. 1). The printing unit 2 forms a toner image based on the image data of the image to be printed. Then, the printing unit 2 prints a toner image on the paper P being conveyed. For example, the printing unit 2 performs printing (executes a copy job) based on the image data obtained by the placement reading or the conveyance reading by the image reading unit 1.

印刷部2は、給紙部21、画像形成部22および定着部23を含む。給紙部21は、カセットCAに収容された用紙Pを用紙搬送路に給紙する。用紙搬送路に給紙された用紙Pは用紙搬送路に沿って搬送される。   The printing unit 2 includes a paper feeding unit 21, an image forming unit 22, and a fixing unit 23. The paper feeding unit 21 feeds the paper P stored in the cassette CA to the paper transport path. The paper P fed to the paper transport path is transported along the paper transport path.

画像形成部22は、ブラック(K)、イエロー(Y)、シアン(C)およびマゼンタ(M)の各色にそれぞれ対応する機構部22K、22Y、22Cおよび22Mを含む。機構部22K、22Y、22Cおよび22Mは、それぞれ、対応する色のトナー像(画像)を形成し、中間ベルトに1次転写する。中間ベルトに転写されたトナー像は、搬送中の用紙Pに2次転写される。   The image forming unit 22 includes mechanism units 22K, 22Y, 22C, and 22M corresponding to the respective colors of black (K), yellow (Y), cyan (C), and magenta (M). The mechanism units 22K, 22Y, 22C, and 22M form toner images (images) of corresponding colors, and primarily transfer them to the intermediate belt. The toner image transferred to the intermediate belt is secondarily transferred to the paper P being conveyed.

定着部23は、トナー像が転写された用紙Pを加圧および加熱する。これにより、用紙Pにトナー像が定着される。トナー像が定着された用紙Pは、用紙搬送路に沿ってそのまま搬送され、排出される。   The fixing unit 23 pressurizes and heats the paper P on which the toner image is transferred. As a result, the toner image is fixed on the paper P. The paper P on which the toner image is fixed is transported as it is along the paper transport path and discharged.

操作パネル3は、タッチパネルディスプレイ31およびハードウェアキー32を含む。タッチパネルディスプレイ31は、ソフトウェアキーを配した設定画面を表示し、ユーザーから各種設定や指示を受け付ける。ハードウェアキー32は、操作パネル3に複数設けられる。たとえば、ハードウェアキー32としては、原稿Dの読み取りを伴うジョブ(たとえば、コピージョブ)の実行指示をユーザーから受け付けるためのスタートキーなどがある。   The operation panel 3 includes a touch panel display 31 and hardware keys 32. The touch panel display 31 displays a setting screen with software keys and accepts various settings and instructions from the user. A plurality of hardware keys 32 are provided on the operation panel 3. For example, the hardware key 32 includes a start key for receiving an instruction to execute a job (for example, a copy job) that involves reading the document D from the user.

また、図4に示すように、複合機100は、制御部4およびメモリー5を備える。制御部4は、CPUを含む。制御部4は、制御用のプログラムおよびデータに基づき動作し、複合機100の各部を制御するための処理を行う。メモリー5は、不揮発性メモリー(ROM)および揮発性メモリー(RAM)を含む。制御用のプログラムおよびデータは、ROMに記憶され、RAMに展開される。   As shown in FIG. 4, the multifunction peripheral 100 includes a control unit 4 and a memory 5. The control unit 4 includes a CPU. The control unit 4 operates based on a control program and data, and performs processing for controlling each unit of the multifunction peripheral 100. The memory 5 includes a nonvolatile memory (ROM) and a volatile memory (RAM). The control program and data are stored in the ROM and expanded in the RAM.

制御部4は、画像読取部1に接続される。そして、制御部4は、画像読取部1を制御する処理を行う。また、制御部4は、画像読取部1による載置読取や搬送読取で得られた画像データに対して画像処理を行う。たとえば、制御部4には、画像処理用の回路やメモリーが搭載される。   The control unit 4 is connected to the image reading unit 1. Then, the control unit 4 performs processing for controlling the image reading unit 1. Further, the control unit 4 performs image processing on the image data obtained by the placement reading and the conveyance reading by the image reading unit 1. For example, the control unit 4 is equipped with an image processing circuit and a memory.

制御部4は、光源11およびイメージセンサー12に接続され、光源11の点消灯動作およびイメージセンサー12の読取動作を制御する。また、制御部4は、巻取モーターMTに接続される。制御部4は、巻取モーターMTの駆動を制御し、巻取ドラム17の回転と回転停止とを切り替えるとともに、巻取ドラム17の回転方向を切り替える。制御部4は、巻取モーターMTの駆動を制御することにより、光源11を含む移動枠15を副走査方向に適切に移動させる。また、制御部4は、原稿搬送ユニット101に接続され、原稿搬送ユニット101の搬送動作を制御する。   The control unit 4 is connected to the light source 11 and the image sensor 12, and controls the lighting operation of the light source 11 and the reading operation of the image sensor 12. The control unit 4 is connected to the winding motor MT. The control unit 4 controls the driving of the winding motor MT to switch between the rotation and rotation stop of the winding drum 17 and the rotation direction of the winding drum 17. The control unit 4 appropriately moves the moving frame 15 including the light source 11 in the sub-scanning direction by controlling the driving of the winding motor MT. The control unit 4 is connected to the document transport unit 101 and controls the transport operation of the document transport unit 101.

また、制御部4は、画像データ(イメージセンサー12のアナログ出力)を増幅する処理や、アナログ出力をデジタルの画像データに変換する処理などを行う。なお、これら処理を行うデータ処理部が制御部4とは別に設けられてもよい。また、制御部4は、画像データに対して、色変換処理(画像データをRGB形式からCMYK形式に変換する処理)や拡大縮小処理などを行う。   The control unit 4 also performs processing for amplifying image data (analog output of the image sensor 12), processing for converting analog output into digital image data, and the like. A data processing unit that performs these processes may be provided separately from the control unit 4. The control unit 4 also performs color conversion processing (processing for converting image data from RGB format to CMYK format), enlargement / reduction processing, and the like on the image data.

また、制御部4は、開閉センサー111に接続され、開閉センサー111の出力値に基づき、原稿搬送ユニット101の開閉を検知する。制御部4は、開閉センサー111の出力値が第1レベル(たとえば、Lレベル)から第2レベル(たとえば、Hレベル)に変化したことを検知すると、すなわち、開閉センサー111の光路が遮光状態から非遮光状態に変化すると、原稿搬送ユニット101が閉状態から開状態になったと判断する。その一方、制御部4は、開閉センサー111の出力値が第2レベルから第1レベルに変化したことを検知すると、すなわち、開閉センサー111の光路が非遮光状態から遮光状態に変化すると、原稿搬送ユニット101が開状態から閉状態になったと判断する。   The control unit 4 is connected to the open / close sensor 111 and detects the open / close of the document transport unit 101 based on the output value of the open / close sensor 111. When the control unit 4 detects that the output value of the open / close sensor 111 has changed from the first level (for example, L level) to the second level (for example, H level), that is, the optical path of the open / close sensor 111 is changed from the light-shielded state. When the state changes to the non-light-shielding state, it is determined that the document transport unit 101 has changed from the closed state to the open state. On the other hand, when the control unit 4 detects that the output value of the open / close sensor 111 has changed from the second level to the first level, that is, when the optical path of the open / close sensor 111 changes from the non-light-shielding state to the light-shielding state, It is determined that the unit 101 has changed from the open state to the closed state.

また、制御部4は、印刷部2に接続され、印刷部2の印刷動作を制御する。さらに、制御部4は、操作パネル3に接続される。そして、制御部4は、操作パネル3の表示動作を制御するとともに、操作パネル3に対して行われた操作(タッチパネルディスプレイ31に対するタッチ操作およびハードウェアキー32に対する押下操作)を検知する。   The control unit 4 is connected to the printing unit 2 and controls the printing operation of the printing unit 2. Further, the control unit 4 is connected to the operation panel 3. The control unit 4 controls the display operation of the operation panel 3 and detects operations performed on the operation panel 3 (touch operation on the touch panel display 31 and pressing operation on the hardware key 32).

<原稿外消去機能>
複合機100に対して載置読取を伴うジョブ(コピージョブなど)の実行を指示するのに際し、ユーザーは載置読取用コンタクトガラスG1上に原稿Dを載置する。そして、ユーザーは操作パネル3のスタートキーを押下する(複合機100に対してジョブの実行指示を与える)。
<Outside original erase function>
When instructing the MFP 100 to execute a job (such as a copy job) that involves placement reading, the user places the document D on the placement reading contact glass G1. Then, the user presses the start key on the operation panel 3 (gives a job execution instruction to the multifunction device 100).

たとえば、載置読取用コンタクトガラスG1上の原稿Dが書籍などである場合、原稿搬送ユニット101を完全に閉じることはできない。したがって、この場合には、原稿搬送ユニット101が開けられた状態で、操作パネル3のスタートキーが押下される。   For example, when the document D on the placement reading contact glass G1 is a book or the like, the document transport unit 101 cannot be completely closed. Therefore, in this case, the start key on the operation panel 3 is pressed while the document transport unit 101 is opened.

制御部4は、原稿搬送ユニット101が開けられた状態で、操作パネル3のスタートキーに対する押下操作を検知すると、載置読取を伴うジョブの実行指示を受け付けたと判断する。そして、制御部4は、画像読取部1に載置読取を行わせる。すなわち、原稿搬送ユニット101が開けられた状態であっても、画像読取部1による載置読取が行われる。コピージョブでは、画像読取部1による載置読取で得られた画像データに基づく画像が用紙Pに印刷される。   When the control unit 4 detects a pressing operation on the start key of the operation panel 3 in a state where the document transport unit 101 is opened, the control unit 4 determines that an instruction to execute a job involving placement reading has been received. Then, the control unit 4 causes the image reading unit 1 to perform placement reading. That is, even when the document conveying unit 101 is opened, the placement reading by the image reading unit 1 is performed. In the copy job, an image based on the image data obtained by the placement reading by the image reading unit 1 is printed on the paper P.

たとえば、図5に示すように、ユーザーにより指定された読取サイズ(原稿サイズ)がA4サイズ(たとえば、図5の破線で囲まれた領域のサイズがA4サイズに相当する)であり、ユーザーにより指定された用紙サイズ(コピージョブに用いる用紙サイズ)もA4サイズであったとする。なお、読取サイズおよび用紙サイズの指定は操作パネル3がユーザーから受け付ける。そして、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズがユーザー指定の読取サイズよりも小さかったとする。   For example, as shown in FIG. 5, the reading size (document size) specified by the user is A4 size (for example, the size of the area surrounded by the broken line in FIG. 5 corresponds to A4 size), and is specified by the user. Assume that the paper size (paper size used for the copy job) is also A4 size. Note that the operation panel 3 receives designation of the reading size and the paper size from the user. Assume that the size of the document D placed on the placement reading contact glass G1 is smaller than the reading size specified by the user.

この例において、原稿搬送ユニット101が開けられた状態でコピージョブ(載置読取を伴うジョブ)が実行された場合、原稿内領域(図5の破線で囲まれた領域のうち原稿Dが存在する領域)では、光源11の光は原稿Dで反射されるので、イメージセンサー12の複数の光電変換素子のうち原稿内領域の光電変換素子は原稿Dで反射された反射光を受光する。その一方、原稿外領域(図5の破線で囲まれた領域のうち原稿Dが存在しない領域)では、原稿Dでの光の反射はないので、イメージセンサー12の複数の光電変換素子のうち原稿外領域の光電変換素子の受光量は原稿内領域の光電変換素子の受光量よりも少なくなる。   In this example, when a copy job (a job with placement reading) is executed in a state where the document transport unit 101 is opened, the document D exists in the document area (the area surrounded by the broken line in FIG. 5). In the area), the light from the light source 11 is reflected by the document D, so that the photoelectric conversion elements in the document area among the plurality of photoelectric conversion elements of the image sensor 12 receive the reflected light reflected by the document D. On the other hand, in the region outside the document (the region surrounded by the broken line in FIG. 5 where the document D does not exist), there is no light reflection on the document D, and therefore the document among the plurality of photoelectric conversion elements of the image sensor 12. The amount of light received by the photoelectric conversion elements in the outer region is smaller than the amount of light received by the photoelectric conversion elements in the document inner region.

したがって、図6に示すような印刷済み用紙Pが出力される。すなわち、印刷済み用紙Pのうち原稿外領域に対応する領域A1(ハッチングで示す領域)では、黒のベタ塗り印刷が行われる。なお、図6において、印刷済み用紙Pのうち符号A2を付した領域は原稿Dの画像が印刷される領域である。   Therefore, printed paper P as shown in FIG. 6 is output. That is, in the printed paper P, black solid coating printing is performed in the area A1 (area indicated by hatching) corresponding to the area outside the document. In FIG. 6, the area labeled A <b> 2 in the printed paper P is an area where the image of the document D is printed.

ベタ塗り印刷が行われた場合、トナーの消費量が増大し、トナーの減りが早くなる。また、印刷物の見栄えが悪くなる。このため、ユーザーによっては、ベタ塗り印刷が行われないよう設定したい場合がある。   When solid printing is performed, the amount of toner consumption increases, and toner reduction is accelerated. In addition, the appearance of the printed material is deteriorated. For this reason, some users may want to set so that solid printing is not performed.

そこで、複合機100には、原稿外領域の画像を消去する原稿外消去機能(原稿外領域の画素の画素値を白色値に置換する機能)が搭載される。原稿外消去機能を有効にするか無効にするかの設定は操作パネル3がユーザーから受け付ける。   Therefore, the multifunction peripheral 100 is equipped with an outside document erasing function (a function for replacing pixel values of pixels in the outside document area with white values) that erases the image in the outside document area. The operation panel 3 receives a setting for enabling or disabling the outside-document erasing function from the user.

制御部4は、原稿搬送ユニット101が開けられた状態で、操作パネル3のスタートキーに対する押下操作を検知すると、原稿外消去機能が有効に設定されているか無効に設定されているかを判断する。そして、制御部4は、原稿外消去機能が有効に設定されていれば、画像読取部1による載置読取で得られた画像データ(CMYK形式に変換したCMYデータ)を対象画像データとし、対象画像データに対して原稿外消去処理(判定処理および置換処理を含む処理)を行う。制御部4による判定処理では、対象画像データに含まれる複数の画素のそれぞれについて、原稿内領域の画素であるか原稿外領域の画素であるかが判定される。制御部4による置換処理では、原稿外領域の画素の画素値が白色値に置換される。原稿内領域の画素は置換処理の処理対象にならない。   When the control unit 4 detects a pressing operation on the start key of the operation panel 3 in a state where the document transport unit 101 is opened, the control unit 4 determines whether the non-document erasing function is set to valid or invalid. Then, if the outside-document erasing function is set to be effective, the control unit 4 uses the image data (CMY data converted into the CMYK format) obtained by the placement reading by the image reading unit 1 as the target image data, and the target A non-original erasure process (a process including a determination process and a replacement process) is performed on the image data. In the determination process by the control unit 4, it is determined whether each of the plurality of pixels included in the target image data is a pixel in the original area or a pixel in the external area. In the replacement process by the control unit 4, the pixel value of the pixel outside the document is replaced with a white value. Pixels in the document area are not subject to replacement processing.

なお、制御部4は、原稿搬送ユニット101が開けられた状態で、操作パネル3のスタートキーに対する押下操作を検知すると、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズを検知するための読み取り(ここでは、サイズ検知用読取と称する)を画像読取部1に行わせる。画像読取部1によるサイズ検知用読取では、所定ライン数分の読み取りだけが行われる。   When the control unit 4 detects a pressing operation on the start key of the operation panel 3 with the document transport unit 101 opened, the control unit 4 detects the size of the document D placed on the placement reading contact glass G1. The image reading unit 1 is caused to perform reading (referred to herein as size detection reading). In the size detection reading by the image reading unit 1, only a predetermined number of lines are read.

制御部4は、サイズ検知用読取で得られた画像データに基づき、載置読取用コンタクトガラスG1上に載置された原稿Dの主走査方向のサイズを検知する。たとえば、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズが定型サイズであれば、原稿Dの主走査方向のサイズに基づき副走査方向のサイズも検知することができる。   The controller 4 detects the size in the main scanning direction of the document D placed on the placement reading contact glass G1 based on the image data obtained by the size detection reading. For example, if the size of the document D placed on the placement reading contact glass G1 is a standard size, the size in the sub-scanning direction can also be detected based on the size of the document D in the main scanning direction.

制御部4は、載置読取用コンタクトガラスG1上に載置された原稿Dの主走査方向および副走査方向の各サイズを検知した結果、検知サイズがユーザー指定の読取サイズ(原稿サイズ)と同じであれば、原稿外消去機能が有効に設定されていても、原稿外消去処理は行わない。すなわち、原稿外消去機能が有効に設定されており、かつ、検知サイズがユーザー指定の読取サイズよりも小さい場合(あるいは、原稿Dの副走査方向のサイズが検知できない場合)に、制御部4による原稿外消去処理が行われる。なお、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズにかかわらず、原稿外消去機能が有効に設定されていれば、制御部4による原稿外消去処理が行われてもよい。   As a result of detecting each size in the main scanning direction and the sub-scanning direction of the document D placed on the placement reading contact glass G1, the control unit 4 has the same detection size as the user-specified reading size (document size). Then, even if the outside-document erasing function is set to be valid, the outside-document erasing process is not performed. That is, when the outside-document erasing function is set to be effective and the detected size is smaller than the user-specified reading size (or when the size of the document D in the sub-scanning direction cannot be detected), the control unit 4 Out-of-original erasure processing is performed. It should be noted that regardless of the size of the document D placed on the placement reading contact glass G1, if the outside-document erasing function is set to be effective, the outside-document erasing process by the control unit 4 may be performed. .

以下に、図7に示すフローチャートを参照し、制御部4により行われる原稿外消去処理の流れを説明する。図7に示すフローチャートは、原稿搬送ユニット101が開けられた状態で、画像読取部1による載置読取が行われ、その後、画像読取部1による載置読取で得られた画像データを制御部4が取得したときにスタートする。なお、図7に示すフローチャートのスタート時点では、原稿外消去機能が有効に設定されているとする。   Hereinafter, the flow of the outside-document erasing process performed by the control unit 4 will be described with reference to the flowchart shown in FIG. In the flowchart shown in FIG. 7, placement reading by the image reading unit 1 is performed in a state where the document transport unit 101 is opened, and thereafter, image data obtained by the placement reading by the image reading unit 1 is converted to the control unit 4. Start when you get. Note that it is assumed that the outside-document erasing function is set to be valid at the start of the flowchart shown in FIG.

ステップS1において、制御部4は、画像読取部1による載置読取で得られた画像データ(CMYK形式に変換したCMYデータ)を対象画像データとし、対象画像データに含まれる複数の画素の1つを注目画素に設定する。このとき、対象画像データに含まれる複数の画素のうち、現時点で未だ判定処理の対象となっていない画素が注目画素に設定される。制御部4による判定処理では、対象画像データに含まれる複数の画素が1つずつ順番に注目画素に設定される(全画素が判定処理の対象となる)。   In step S1, the control unit 4 uses the image data (CMY data converted into the CMYK format) obtained by the placement reading by the image reading unit 1 as the target image data, and one of a plurality of pixels included in the target image data. Is set as the target pixel. At this time, among the plurality of pixels included in the target image data, a pixel that is not yet a target of the determination process at the present time is set as a target pixel. In the determination process by the control unit 4, a plurality of pixels included in the target image data are sequentially set to the target pixel one by one (all pixels are subjected to the determination process).

ステップS2において、制御部4は、注目画素のCMYの画素値(輝度値)に基づき、比較対象値を求める。ここでは、注目画素のCMYの画素値の平均値が比較対象値として制御部4により求められる。ただし、後に詳細に説明するが、制御部4は、比較対象値を求めるとき、注目画素のCMYの画素値を補正する。   In step S <b> 2, the control unit 4 obtains a comparison target value based on the CMY pixel value (luminance value) of the target pixel. Here, the average value of CMY pixel values of the target pixel is obtained by the control unit 4 as a comparison target value. However, as will be described in detail later, the control unit 4 corrects the CMY pixel value of the target pixel when obtaining the comparison target value.

ステップS3において、制御部4は、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する判定処理を行う。具体的には、制御部4は、注目画素の比較対象値が予め定められた閾値よりも大きいか否かを判断する。   In step S <b> 3, the control unit 4 performs a determination process for determining whether the pixel of interest is a pixel in the original area or a pixel in the external area. Specifically, the control unit 4 determines whether or not the comparison target value of the target pixel is larger than a predetermined threshold value.

たとえば、CMYデータが8ビットである場合を例にとると、最も明るい白色画素の画素値(C,M、Y)は(0,0,0)となり、最も暗い黒色画素の画素値(C,M,Y)は(255,255,255)となる。注目画素が原稿外領域の画素である場合には、比較対象値(CMYの画素値の平均値)は「255」に近い値となり、注目画素が原稿内領域の画素である場合よりも大きい値となる。これにより、比較対象値と閾値とを比較することにより、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定することができる。   For example, taking the case where the CMY data is 8 bits as an example, the pixel value (C, M, Y) of the brightest white pixel is (0, 0, 0), and the pixel value (C, M) of the darkest black pixel. M, Y) becomes (255, 255, 255). When the target pixel is a pixel outside the document, the comparison target value (average value of CMY pixel values) is a value close to “255”, which is larger than when the target pixel is a pixel in the document region. It becomes. Thereby, by comparing the comparison target value with the threshold value, it is possible to determine whether the target pixel is a pixel in the original area or a pixel outside the original area.

ステップS3において、注目画素が原稿外領域の画素である(注目画素の比較対象値が閾値よりも大きい)と制御部4が判断した場合には、ステップS4に移行する。ステップS4に移行すると、制御部4は、注目画素の画素値を白色値に置換する置換処理を行う。制御部4により置換処理が行われると、注目画素の画素値(C,M、Y)は(0,0、0)に置換される。   If the control unit 4 determines in step S3 that the target pixel is a pixel outside the document (the target pixel comparison target value is greater than the threshold value), the process proceeds to step S4. In step S4, the control unit 4 performs a replacement process for replacing the pixel value of the target pixel with a white value. When the replacement process is performed by the control unit 4, the pixel value (C, M, Y) of the target pixel is replaced with (0, 0, 0).

制御部4による置換処理後、ステップS4からステップS5に移行する。ステップS3において、注目画素が原稿内領域の画素である(注目画素の比較対象値が閾値以下である)と制御部4が判断した場合には、ステップS4の処理(置換処理)が省略され、ステップS5に移行する。   After the replacement process by the control unit 4, the process proceeds from step S4 to step S5. If the control unit 4 determines in step S3 that the pixel of interest is a pixel in the document area (the comparison target value of the pixel of interest is equal to or smaller than the threshold value), the process (replacement process) in step S4 is omitted. The process proceeds to step S5.

ステップS5に移行すると、制御部4は、対象画像データに含まれる全画素に対する判定処理が完了したか否かを判断する。その結果、全画素に対する判定処理が完了したと制御部4が判断した場合には、ステップS6に移行し、全画素に対する判定処理が完了していないと制御部4が判断した場合には、ステップS1に移行する。   If transfering it to step S5, the control part 4 will judge whether the determination process with respect to all the pixels contained in object image data was completed. As a result, when the control unit 4 determines that the determination process for all pixels is completed, the process proceeds to step S6, and when the control unit 4 determines that the determination process for all pixels is not completed, The process proceeds to S1.

ステップS6に移行すると、制御部4は、CMYデータ(制御部4により置換処理が行われた場合には置換処理後のCMYデータ)に基づき、出力用画像データを生成する。たとえば、実行ジョブがコピージョブである場合、制御部4は、画像形成部22にトナー像を形成させるためのデータ(露光装置の露光を制御するためのデータ)を出力用画像データとして生成する。当該出力用画像データに基づき印刷が行われることにより、印刷済み用紙Pのうち原稿外領域に対応する領域が白色となる。   In step S6, the control unit 4 generates image data for output based on CMY data (or CMY data after replacement processing when the replacement processing is performed by the control unit 4). For example, when the execution job is a copy job, the control unit 4 generates data for causing the image forming unit 22 to form a toner image (data for controlling exposure of the exposure apparatus) as output image data. By performing printing based on the output image data, the area corresponding to the area outside the document in the printed paper P becomes white.

<画素値の補正>
制御部4は、比較対象値を求めるとき、注目画素のCMYの画素値を補正する。具体的には、制御部4は、注目画素の画素値に乗じる係数を設定する係数設定処理を行う。そして、制御部4は、注目画素の画素値に係数を乗じた値(注目画素の補正後の画素値)に基づき、注目画素の比較対象値を求める。
<Correction of pixel value>
When determining the comparison target value, the control unit 4 corrects the CMY pixel value of the target pixel. Specifically, the control unit 4 performs a coefficient setting process for setting a coefficient to be multiplied by the pixel value of the target pixel. And the control part 4 calculates | requires the comparison target value of an attention pixel based on the value (pixel value after correction | amendment of an attention pixel) which multiplied the pixel value of the attention pixel with the coefficient.

以下に、図8に示すフローチャートを参照し、制御部4により行われる係数設定処理の流れを説明する。   Hereinafter, the flow of the coefficient setting process performed by the control unit 4 will be described with reference to the flowchart shown in FIG.

ここで、制御部4は、開閉センサー111の出力値に基づき、原稿搬送ユニット101が開けられたか否かを判断する。そして、原稿搬送ユニット101が開けられたと制御部4が判断したとき、図8に示すフローチャートがスタートする。たとえば、載置読取を伴うジョブ(コピージョブなど)では、載置読取用コンタクトガラスG1上に原稿Dを載置するため、ユーザーは原稿搬送ユニット101を開ける。このため、載置読取を伴うジョブの実行直前に、制御部4による係数設定処理が行われる(図8に示すフローチャートがスタートする)。   Here, the control unit 4 determines based on the output value of the open / close sensor 111 whether or not the document transport unit 101 has been opened. When the control unit 4 determines that the document transport unit 101 is opened, the flowchart shown in FIG. 8 starts. For example, in a job (such as a copy job) that involves placement reading, the user opens the document transport unit 101 in order to place the document D on the placement reading contact glass G1. For this reason, the coefficient setting process is performed by the control unit 4 immediately before the execution of the job with placement reading (the flowchart shown in FIG. 8 is started).

ステップS11において、制御部4は、画像読取部1に搬送読取用コンタクトガラスG2の読み取りを行わせる。そして、ステップS12において、制御部4は、搬送読取用コンタクトガラスG2の読み取りで得られた画像データ(CMYK形式に変換したCMYデータ)を補正用画像データとして取得する。   In step S11, the control unit 4 causes the image reading unit 1 to read the conveyance reading contact glass G2. In step S12, the control unit 4 acquires the image data (CMY data converted into the CMYK format) obtained by reading the conveyance reading contact glass G2 as correction image data.

ステップS13において、制御部4は、補正用画像データに含まれる複数の画素の1つを選択する。このとき、補正用画像データに含まれる全画素のうち、現時点で未だ選択されていない画素が制御部4により選択される。そして、ステップS14において、制御部4は、選択画素が所定条件を満たすか否かを判断する。たとえば、制御部4は、選択画素のCMYの画素値の全てが予め定められた画素値範囲内の値であれば、選択画素が所定条件を満たすと判断し、選択画素のCMYの画素値のうち少なくとも1つが前記画素値範囲から外れた値であれば、選択画素が所定条件を満たさないと判断する。   In step S13, the control unit 4 selects one of a plurality of pixels included in the correction image data. At this time, among all the pixels included in the correction image data, a pixel that has not been selected at the present time is selected by the control unit 4. In step S14, the control unit 4 determines whether the selected pixel satisfies a predetermined condition. For example, if all the CMY pixel values of the selected pixel are values within a predetermined pixel value range, the control unit 4 determines that the selected pixel satisfies the predetermined condition, and determines the CMY pixel value of the selected pixel. If at least one of the values is out of the pixel value range, it is determined that the selected pixel does not satisfy the predetermined condition.

ステップS14において、所定条件を満たすと制御部4が判断した場合には、ステップS15に移行する。ステップS15に移行すると、制御部4は、所定条件を満たす選択画素のCMYの画素値を色ごとに保持(累積加算)する。その後、ステップS16に移行する。なお、ステップS14において、所定条件を満たさないと制御部4が判断した場合には、ステップS15の処理が省略され、ステップS16に移行する。   In step S14, if the control unit 4 determines that the predetermined condition is satisfied, the process proceeds to step S15. In step S15, the control unit 4 holds (cumulatively adds) the CMY pixel values of the selected pixels that satisfy the predetermined condition for each color. Thereafter, the process proceeds to step S16. In step S14, when the control unit 4 determines that the predetermined condition is not satisfied, the process of step S15 is omitted, and the process proceeds to step S16.

ステップS16に移行すると、制御部4は、ステップS13の処理で選択した画素が最終画素であるか否かを判断する。その結果、最終画素であると制御部4が判断した場合には、ステップ17に移行する。   If transfering it to step S16, the control part 4 will judge whether the pixel selected by the process of step S13 is a last pixel. As a result, when the control unit 4 determines that the pixel is the final pixel, the process proceeds to step 17.

ステップS16において、最終画素ではないと制御部4が判断した場合には、ステップS13に移行する。この場合には、ステップS13およびS14の各処理が制御部4により繰り返される。すなわち、制御部4は、補正用画像データに含まれる複数の画素のうち非選択の画素の1つを新たに選択する。そして、制御部4は、新たな選択画素が所定条件を満たしていれば、所定条件を満たす新たな選択画素のCMYの画素値を色ごとに保持する。このとき、制御部4は、画素値をCMYの色ごとに累積加算する。所定条件を満たさない画素の画素値(予め定められた画素値範囲から外れた画素値)は加算されない。   In step S16, when the control unit 4 determines that the pixel is not the final pixel, the process proceeds to step S13. In this case, each process of steps S13 and S14 is repeated by the control unit 4. That is, the control unit 4 newly selects one of the non-selected pixels among the plurality of pixels included in the correction image data. Then, if the new selected pixel satisfies the predetermined condition, the control unit 4 holds the CMY pixel value of the new selected pixel that satisfies the predetermined condition for each color. At this time, the control unit 4 cumulatively adds pixel values for each color of CMY. Pixel values of pixels that do not satisfy the predetermined condition (pixel values outside the predetermined pixel value range) are not added.

ステップS17に移行すると、制御部4は、所定条件を満たす画素の画素値をCMYの色ごとに平均した第1平均値を求める。すなわち、制御部4は、所定条件を満たす画素数を認識し、CMY各色について、画素値の累積値を当該画素数で除した値を第1平均値として求める。その後、ステップS18において、制御部4は、各色の第1平均値を平均した第2平均値を求める。   If transfering it to step S17, the control part 4 will obtain | require the 1st average value which averaged the pixel value of the pixel which satisfy | fills predetermined conditions for every color of CMY. That is, the control unit 4 recognizes the number of pixels that satisfy the predetermined condition, and obtains a value obtained by dividing the cumulative value of the pixel values by the number of pixels for each CMY color as the first average value. Thereafter, in step S18, the control unit 4 obtains a second average value obtained by averaging the first average values of the respective colors.

たとえば、CMYデータが8ビットである場合において、各色の第1平均値(C,M,Y)が(250,230,250)であったとする。この場合、第2平均値(=(250+230+250)/3)は「243.3・・・」となる。   For example, when the CMY data is 8 bits, the first average value (C, M, Y) of each color is (250, 230, 250). In this case, the second average value (= (250 + 230 + 250) / 3) is “243.3.

第2平均値を求めた後、ステップS19に移行する。ステップS19に移行すると、制御部4は、CMYの1つを選択する。このとき、現時点で未だ選択されていない色が制御部4により選択される。そして、ステップS20において、制御部4は、選択色の第1平均値を認識し、当該認識した第1平均値が第2平均値以上であるか否かを判断する。その結果、第1平均値が第2平均値以上であると制御部4が判断した場合には、ステップ21に移行し、第1平均値が第2平均値未満であると制御部4が判断した場合には、ステップS22に移行する。   After obtaining the second average value, the process proceeds to step S19. In step S19, the control unit 4 selects one of CMY. At this time, the control unit 4 selects a color that has not yet been selected. In step S20, the control unit 4 recognizes the first average value of the selected color and determines whether or not the recognized first average value is equal to or greater than the second average value. As a result, when the control unit 4 determines that the first average value is equal to or greater than the second average value, the process proceeds to step 21 and the control unit 4 determines that the first average value is less than the second average value. If so, the process proceeds to step S22.

ステップS21に移行した場合、制御部4は、選択色の係数を「1」に設定する。ステップS22に移行した場合、制御部4は、選択色の係数を選択色の第1平均値で第2平均値を除した値(=第2平均値/第1平均値)に設定する。すなわち、ステップS22に移行した場合には、選択色の係数が1よりも大きい値となる。   When the process proceeds to step S21, the control unit 4 sets the coefficient of the selected color to “1”. When the process proceeds to step S22, the control unit 4 sets the coefficient of the selected color to a value obtained by dividing the second average value by the first average value of the selected color (= second average value / first average value). That is, when the process proceeds to step S22, the coefficient of the selected color becomes a value larger than 1.

たとえば、CMYデータが8ビットである場合において、各色の第1平均値(C,M,Y)が(250,230,250)であったとする。この例では、第2平均値は「243.3・・・」となるので、C色およびY色の各第1平均値は第2平均値以上であり、M色の第1平均値は第2平均値未満である。このため、C色およびY色の各係数は「1」に設定され、M色の係数(=第2平均値/第1平均値)は「1.0579・・・」に設定される。   For example, when the CMY data is 8 bits, the first average value (C, M, Y) of each color is (250, 230, 250). In this example, since the second average value is “243.3...”, The first average values of the C color and the Y color are equal to or greater than the second average value, and the first average value of the M color is the first average value. 2 is less than the average value. For this reason, the coefficients of C color and Y color are set to “1”, and the coefficient of M color (= second average value / first average value) is set to “1.0579.

その後、ステップS23に移行する。ステップS23に移行すると、制御部4は、CMYの全色の係数の設定が完了したか否かを判断する。その結果、全色の係数の設定が完了したと制御部4が判断した場合には、本フローは終了し、全色の係数の設定が完了していないと制御部4が判断した場合には、ステップS19に移行する。   Thereafter, the process proceeds to step S23. In step S23, the control unit 4 determines whether or not the setting of all CMY color coefficients has been completed. As a result, when the control unit 4 determines that the setting of the coefficients for all colors has been completed, this flow ends, and when the control unit 4 determines that the setting of the coefficients for all colors has not been completed. The process proceeds to step S19.

制御部4は、CMY各色の係数を設定した後、各色の係数をメモリー5に記憶する。そして、制御部4は、注目画素の比較対象値を求めるとき(図7に示すステップS2の処理を行うとき)、注目画素の画素値を補正する。   The control unit 4 sets the coefficients for each color of CMY, and then stores the coefficients for each color in the memory 5. And the control part 4 correct | amends the pixel value of a focused pixel, when calculating | requiring the comparison object value of a focused pixel (when performing the process of step S2 shown in FIG. 7).

制御部4は、注目画素の画素値を補正するとき、注目画素のCMY各色の画素値を認識し、各色の画素値のそれぞれに、対応する色の係数を乗算する。そして、制御部4は、注目画素の補正後の各色の画素値(係数を乗じた画素値)の平均値を注目画素の比較対象値として求める。   When correcting the pixel value of the target pixel, the control unit 4 recognizes the pixel value of each color of CMY of the target pixel, and multiplies each pixel value of each color by the coefficient of the corresponding color. And the control part 4 calculates | requires the average value of the pixel value (pixel value multiplied by the coefficient) of each color after correction | amendment of an attention pixel as a comparison object value of an attention pixel.

たとえば、CMYデータが8ビットである場合において、注目画素の画素値(C,M,Y)が(245,220,245)であったとする。また、C色およびY色の各係数が「1」であり、M色の係数が「「1.0579」であったとする。この例では、注目画素のC色およびY色の補正後の各画素値(=245×1)は「245」となる。注目画素のM色の補正後の画素値(=220×1.0579)は「233」となる。ここでは小数点以下を四捨五入する。その結果、注目画素の比較対象値(=(245+233+245)/3)は「241」となる。   For example, when the CMY data is 8 bits, the pixel value (C, M, Y) of the target pixel is (245, 220, 245). Further, it is assumed that the coefficients of the C color and the Y color are “1” and the coefficient of the M color is “1.0579”. In this example, each pixel value (= 245 × 1) after correction of the C color and the Y color of the target pixel is “245”. The pixel value after correction of the M color of the target pixel (= 220 × 1.0579) is “233”. Here, the numbers after the decimal point are rounded off. As a result, the comparison target value (= (245 + 233 + 245) / 3) of the target pixel is “241”.

たとえば、上記の例において、注目画素の画素値を補正しなかったとする。この場合、注目画素の比較対象値(=(245+220+245)/3)は「237」となる。ここでは小数点以下を四捨五入する。   For example, in the above example, it is assumed that the pixel value of the target pixel is not corrected. In this case, the comparison target value (= (245 + 220 + 245) / 3) of the target pixel is “237”. Here, the numbers after the decimal point are rounded off.

ここで、上記の例において、注目画素が原稿外領域の画素であったとする。この場合、本来であれば、注目画素の各色の画素値は略同じ値となる。しかし、外光の影響やラインセンサーの劣化などにより、いずれかの色の画素値が他の色の画素値よりも低くなるという現象が発生し得る。上記の例では、C色およびY色の各画素値が「245」となっているのに対し、M色の画素値がより低い「220」となっている。   Here, in the above example, it is assumed that the pixel of interest is a pixel outside the document. In this case, the pixel value of each color of the target pixel is substantially the same value. However, a phenomenon may occur in which the pixel value of one color becomes lower than the pixel value of another color due to the influence of external light, deterioration of the line sensor, or the like. In the above example, the C and Y pixel values are “245”, whereas the M pixel value is “220”, which is lower.

このため、たとえば、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかの判定処理に用いる閾値が「240」に設定されている場合には、注目画素が原稿外領域の画素であるにもかかわらず、注目画素の比較対象値は「237」であるので、注目画素が原稿内領域の画素であると判定される。この場合には、注目画素の画素値は白色値に置換されない。したがって、実行ジョブがコピージョブであった場合には、原稿外領域に対応する領域に不必要な画像が印刷された用紙Pが出力されてしまう。   For this reason, for example, when the threshold value used for the determination process of whether the pixel of interest is a pixel in the document area or a pixel in the document area is set to “240”, the pixel of interest is in the document area. Although the pixel is a pixel, the comparison target value of the pixel of interest is “237”, so that the pixel of interest is determined to be a pixel in the document area. In this case, the pixel value of the target pixel is not replaced with the white value. Therefore, when the execution job is a copy job, a sheet P on which an unnecessary image is printed is output in an area corresponding to the area outside the document.

そこで、制御部4は、注目画素の比較対象値を求めるとき、注目画素の画素値を補正する。上記の例において、注目画素の画素値が補正された場合には、比較対象値が「241」となる。すなわち、注目画素の比較対象値「241」は閾値「240」よりも大きくなる。このため、注目画素の画素値は白色値に置換される。   Therefore, the control unit 4 corrects the pixel value of the target pixel when obtaining the comparison target value of the target pixel. In the above example, when the pixel value of the target pixel is corrected, the comparison target value is “241”. That is, the comparison target value “241” of the target pixel is larger than the threshold value “240”. For this reason, the pixel value of the target pixel is replaced with a white value.

本実施形態では、上記のように、制御部4は、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する判定処理に用いる比較対象値を注目画素の画素値に基づき求める。注目画素が原稿外領域の画素である場合には、本来であれば注目画素は暗くなるが、たとえば、複合機100の設置場所によっては若干明るくなってしまうことがある。そこで、制御部4は、判定処理を行うとき(比較対象値を求めるとき)、注目画素の画素値を補正する。   In the present embodiment, as described above, the control unit 4 uses the pixel value of the target pixel as the comparison target value used for the determination process for determining whether the target pixel is a pixel in the original area or a pixel in the outer area. Based on When the target pixel is a pixel in the area outside the original, the target pixel is originally dark, but may be slightly bright depending on the installation location of the multifunction peripheral 100, for example. Therefore, the control unit 4 corrects the pixel value of the target pixel when performing the determination process (when obtaining the comparison target value).

制御部4は、注目画素の画素値を補正するため、原稿搬送ユニット101が開けられた状態での搬送読取用コンタクトガラスG2の読み取りで得られた画像データを補正用画像データとして取得する。その後、制御部4は、補正用画像データに含まれる複数の画素の画素値をCMYの色ごとに平均した第1平均値を求めるとともに、各色の第1平均値を平均した第2平均値を求め、第1平均値が第2平均値以上の色の係数の値を1に設定する一方、第1平均値が第2平均値未満の色の係数については当該色の第1平均値で第2平均値を除した値に設定する。   The control unit 4 acquires, as correction image data, image data obtained by reading the conveyance reading contact glass G2 in a state where the document conveyance unit 101 is opened in order to correct the pixel value of the target pixel. Thereafter, the control unit 4 obtains a first average value obtained by averaging the pixel values of the plurality of pixels included in the correction image data for each color of CMY, and calculates a second average value obtained by averaging the first average values of the respective colors. The value of the coefficient of the color whose first average value is equal to or greater than the second average value is set to 1, while the coefficient of the color whose first average value is less than the second average value is the first average value of the color. 2 Set to the value obtained by dividing the average value.

そして、制御部4は、判定処理を行うとき、注目画素の各色の画素値のそれぞれに、対応する色の係数を乗算し、当該乗算によって得られた値(注目画素の補正後の画素値)の平均値を比較対象値として求める。制御部4は、このようにして求めた比較対象値と閾値とを比較することにより、注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する。これにより、判定処理において誤判定が発生するのを抑制することができる。   Then, when performing the determination process, the control unit 4 multiplies each pixel value of each color of the target pixel by the coefficient of the corresponding color, and a value obtained by the multiplication (a pixel value after correcting the target pixel) Is obtained as a comparison target value. The control unit 4 determines whether the pixel of interest is a pixel in the document area or a pixel in the document outside area by comparing the comparison target value thus obtained with the threshold value. Thereby, it can suppress that a misjudgment generate | occur | produces in a determination process.

なお、複合機100に載置読取を行わせるには、原稿搬送ユニット101を開けてから載置読取用コンタクトガラスG1上に原稿Dを載置する必要がある。このとき、搬送読取用コンタクトガラスG2上に原稿Dが載置されることはない。言い換えると、原稿搬送ユニット101が開けられているとき、搬送読取用コンタクトガラスG2上には原稿Dが存在しない。このため、原稿搬送ユニット101が開けられた状態での搬送読取用コンタクトガラスG2の読み取りで得られた画像データを補正用画像データとして取得するのが好ましい。   Note that in order to cause the multifunction peripheral 100 to perform placement reading, it is necessary to place the document D on the placement reading contact glass G1 after opening the document transport unit 101. At this time, the document D is not placed on the conveyance reading contact glass G2. In other words, when the document transport unit 101 is opened, the document D does not exist on the transport reading contact glass G2. Therefore, it is preferable to acquire image data obtained by reading the conveyance reading contact glass G2 in a state where the document conveyance unit 101 is opened as correction image data.

また、本実施形態では、上記のように、制御部4は、第1平均値を求めるとき、予め定められた画素値範囲から外れている画素値を除外する。これにより、第1平均値は蛍光灯などの写り込みの影響が排除された値となる。   In the present embodiment, as described above, the control unit 4 excludes pixel values that are out of a predetermined pixel value range when obtaining the first average value. Thereby, the first average value is a value from which the influence of the reflection of a fluorescent lamp or the like is eliminated.

また、本実施形態では、上記のように、制御部4は、原稿搬送ユニット101が開けられた状態で操作パネル3がジョブ(コピージョブなど搬送読取を伴うジョブ)の実行指示を受け付けたとき、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズを検知し、当該検知した原稿Dのサイズがユーザー指定の読取サイズよりも小さい場合に、載置読取の終了後、判定処理および置換処理を行う。ここで、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズがユーザー指定の読取サイズと同じ場合や、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズがユーザー指定の読取サイズよりも大きい場合には、搬送読取で得られた画像データには原稿外領域が出現しない。このため、載置読取用コンタクトガラスG1上に載置された原稿Dのサイズがユーザー指定の読取サイズよりも小さい場合にのみ、制御部4による判定処理および置換処理が行われる。これにより、ユーザーが複合機100に対して搬送読取を伴うジョブの実行を指示したとき、ジョブの実行前に、不必要な処理が行われるのを抑制することができる。   In the present embodiment, as described above, when the operation panel 3 receives an instruction to execute a job (a job involving conveyance reading such as a copy job) with the document conveyance unit 101 opened, When the size of the document D placed on the placement reading contact glass G1 is detected and the detected size of the document D is smaller than the reading size designated by the user, the determination process and Perform replacement processing. Here, when the size of the document D placed on the placement reading contact glass G1 is the same as the reading size specified by the user, or the size of the document D placed on the placement reading contact glass G1 is the user. If it is larger than the designated reading size, the outside area of the document does not appear in the image data obtained by the conveyance reading. Therefore, the determination process and the replacement process by the control unit 4 are performed only when the size of the document D placed on the placement reading contact glass G1 is smaller than the reading size designated by the user. Accordingly, when the user instructs the multifunction peripheral 100 to execute a job that includes conveyance reading, it is possible to suppress unnecessary processing from being performed before the job is executed.

今回開示された実施形態は、すべての点で例示であって、制限的なものではないと考えられるべきである。本発明の範囲は、上記実施形態の説明ではなく特許請求の範囲によって示され、さらに、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれる。   It should be thought that embodiment disclosed this time is an illustration and restrictive at no points. The scope of the present invention is shown not by the description of the above-described embodiment but by the scope of claims for patent, and further includes meanings equivalent to the scope of claims for patent and all modifications within the scope.

1 画像読取部
3 操作パネル
4 制御部
100 複合機(画像読取装置、画像形成装置)
101 原稿搬送ユニット(原稿押え)
G1 載置読取用コンタクトガラス
G2 搬送読取用コンタクトガラス
DESCRIPTION OF SYMBOLS 1 Image reading part 3 Operation panel 4 Control part 100 Multifunction machine (Image reading apparatus, image forming apparatus)
101 Document transport unit (document presser)
G1 Contact glass for placement reading G2 Contact glass for conveyance reading

Claims (5)

原稿が載置される載置読取用コンタクトガラスと、
自動搬送される原稿が通過する搬送読取用コンタクトガラスと、
載置読取を行う場合には前記載置読取用コンタクトガラス上に載置された原稿を読み取り、搬送読取を行う場合には前記搬送読取用コンタクトガラス上を通過する原稿を読み取る画像読取部と、
開閉可能に支持され、閉じられることによって、前記載置読取用コンタクトガラスおよび前記搬送読取用コンタクトガラスを覆う原稿押えと、
前記原稿押えが開けられた状態で行われた前記載置読取で得られた画像データである対象画像データに含まれる複数の画素を順番に注目画素に設定し、前記注目画素が原稿内領域の画素であるか原稿外領域の画素であるかを判定する判定処理を行うとともに、前記注目画素が前記原稿外領域の画素であれば前記注目画素の画素値を白色値に置換する置換処理を行う制御部と、を備え、
前記制御部は、前記原稿押えが開けられた状態での前記搬送読取用コンタクトガラスの読み取りで得られた画像データを補正用画像データとして取得し、前記判定処理を行うとき、前記補正用画像データに基づき前記注目画素の画素値を補正し、前記注目画素の補正後の画素値に基づき前記判定処理に用いる比較対象値を求め、前記比較対象値と予め定められた閾値とを比較することにより、前記注目画素が前記原稿内領域の画素であるか前記原稿外領域の画素であるかを判定することを特徴とする画像読取装置。
A placement reading contact glass on which a document is placed;
A conveyance reading contact glass through which an automatically conveyed document passes;
An image reading unit that reads a document placed on the contact reading glass for reading described above when performing placement reading; and an image reading unit that reads a document that passes through the contact glass for transport reading when performing transport reading;
A document presser covering the placement reading contact glass and the transport reading contact glass by being supported so as to be opened and closed and closed,
A plurality of pixels included in the target image data, which is image data obtained by the above-described reading performed with the document presser being opened, are sequentially set as the target pixels, and the target pixels A determination process is performed for determining whether the pixel is a pixel outside the document area, and a replacement process is performed to replace the pixel value of the pixel of interest with a white value if the pixel of interest is a pixel outside the document area. A control unit,
The control unit acquires, as correction image data, image data obtained by reading the conveyance reading contact glass in a state where the document presser is opened, and when performing the determination process, the correction image data The pixel value of the target pixel is corrected based on the pixel value, the comparison target value used in the determination process is obtained based on the corrected pixel value of the target pixel, and the comparison target value is compared with a predetermined threshold value. An image reading apparatus for determining whether the pixel of interest is a pixel in the area inside the original or a pixel in the area outside the original.
前記制御部は、前記補正用画像データに含まれる複数の画素の画素値をCMYの色ごとに平均した第1平均値を求めるとともに、各色の前記第1平均値を平均した第2平均値を求め、前記第1平均値が前記第2平均値以上の色の係数の値を1に設定する一方、前記第1平均値が前記第2平均値未満の色の前記係数については当該色の前記第1平均値で前記第2平均値を除した値に設定し、
前記制御部は、前記判定処理を行うとき、前記注目画素の各色の画素値のそれぞれに、対応する色の前記係数を乗算し、当該乗算によって得られた値の平均値を前記比較対象値として求めることを特徴とする請求項1に記載の画像読取装置。
The control unit obtains a first average value obtained by averaging pixel values of a plurality of pixels included in the correction image data for each color of CMY, and calculates a second average value obtained by averaging the first average value of each color. The first average value is set to a value of a coefficient of a color that is equal to or greater than the second average value, while the coefficient of a color that is less than the second average value is set to 1 for the color of the color. Set to a value obtained by dividing the second average value by the first average value,
When performing the determination process, the control unit multiplies each pixel value of each color of the target pixel by the coefficient of the corresponding color, and uses an average value of the values obtained by the multiplication as the comparison target value The image reading apparatus according to claim 1, wherein the image reading apparatus is obtained.
前記制御部は、前記第1平均値を求めるとき、予め定められた画素値範囲から外れている画素値を除外することを特徴とする請求項2に記載の画像読取装置。   The image reading apparatus according to claim 2, wherein the control unit excludes pixel values that are out of a predetermined pixel value range when the first average value is obtained. 前記載置読取を伴うジョブの実行指示をユーザーから受け付けるとともに、前記搬送読取での読取サイズの指定をユーザーから受け付ける操作パネルを備え、
前記制御部は、前記原稿押えが開けられた状態で前記操作パネルが前記ジョブの実行指示を受け付けたとき、前記載置読取用コンタクトガラス上に載置された原稿のサイズを検知し、当該検知した原稿のサイズが前記読取サイズよりも小さい場合に、前記載置読取の終了後、前記判定処理および前記置換処理を行うことを特徴とする請求項1〜3のいずれか1項に記載の画像読取装置。
An operation panel is provided that receives from the user an instruction to execute a job involving the above-described reading, and receives a designation of a reading size in the conveyance reading from the user,
When the operation panel receives an instruction to execute the job with the document presser opened, the control unit detects the size of the document placed on the placement reading contact glass, and detects the detection. 4. The image according to claim 1, wherein when the size of the original document is smaller than the reading size, the determination processing and the replacement processing are performed after completion of the above-described reading. 5. Reader.
請求項1〜4のいずれか1項に記載の画像読取装置を備えることを特徴とする画像形成装置。   An image forming apparatus comprising the image reading apparatus according to claim 1.
JP2017140797A 2017-07-20 2017-07-20 Image reading apparatus and image forming apparatus Expired - Fee Related JP6747398B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017140797A JP6747398B2 (en) 2017-07-20 2017-07-20 Image reading apparatus and image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017140797A JP6747398B2 (en) 2017-07-20 2017-07-20 Image reading apparatus and image forming apparatus

Publications (2)

Publication Number Publication Date
JP2019022138A true JP2019022138A (en) 2019-02-07
JP6747398B2 JP6747398B2 (en) 2020-08-26

Family

ID=65353534

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017140797A Expired - Fee Related JP6747398B2 (en) 2017-07-20 2017-07-20 Image reading apparatus and image forming apparatus

Country Status (1)

Country Link
JP (1) JP6747398B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005039620A (en) * 2003-07-16 2005-02-10 Funai Electric Co Ltd Image reader
JP2010130512A (en) * 2008-11-28 2010-06-10 Brother Ind Ltd Image reading apparatus and image reading head
JP2015126290A (en) * 2013-12-25 2015-07-06 京セラドキュメントソリューションズ株式会社 Image reading device, image formation device, and manuscript width detection method
JP2015222874A (en) * 2014-05-22 2015-12-10 株式会社リコー Image reading device, image forming apparatus, and image reading method
WO2017022408A1 (en) * 2015-07-31 2017-02-09 理想科学工業株式会社 Image reading device
JP2017059879A (en) * 2015-09-14 2017-03-23 キヤノン株式会社 Image reader and image formation apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005039620A (en) * 2003-07-16 2005-02-10 Funai Electric Co Ltd Image reader
JP2010130512A (en) * 2008-11-28 2010-06-10 Brother Ind Ltd Image reading apparatus and image reading head
JP2015126290A (en) * 2013-12-25 2015-07-06 京セラドキュメントソリューションズ株式会社 Image reading device, image formation device, and manuscript width detection method
JP2015222874A (en) * 2014-05-22 2015-12-10 株式会社リコー Image reading device, image forming apparatus, and image reading method
WO2017022408A1 (en) * 2015-07-31 2017-02-09 理想科学工業株式会社 Image reading device
JP2017059879A (en) * 2015-09-14 2017-03-23 キヤノン株式会社 Image reader and image formation apparatus

Also Published As

Publication number Publication date
JP6747398B2 (en) 2020-08-26

Similar Documents

Publication Publication Date Title
JP4858407B2 (en) Image reading device
US8699043B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable storage medium containing image processing program
US8237997B2 (en) Image reader and image forming device
JP4752605B2 (en) Image reading device
JP5532176B1 (en) Image reading apparatus and image forming apparatus
US11582362B2 (en) Image reading apparatus comprising a processor that detects an abnormal pixel, and outputs an image obtained by a first processing or second processing based on if character recognition processing of a character obtained by first processing is the same as the character obtained by the second processing
JP6142815B2 (en) Image reading device
JP6047528B2 (en) Image reading apparatus and image forming apparatus
US8896895B2 (en) Image reading apparatus and image forming apparatus
US11575797B2 (en) Image reading and forming apparatus with streak correction based on image reading mode
US10070007B2 (en) Image reading device capable of reading image data from document sheet and adjusting shading correction
JP6747398B2 (en) Image reading apparatus and image forming apparatus
JP2017059879A (en) Image reader and image formation apparatus
JP2019057779A (en) Image forming device
US9197787B2 (en) Image reading device, image forming apparatus, and image reading method
US20180139341A1 (en) Image forming apparatus corresponding to colored media and image forming method
JP5992360B2 (en) Image reading apparatus and image forming apparatus having the same
US9332153B2 (en) Image reading device, image forming apparatus, and image processing method
US11870960B2 (en) Image processing system
JP2014035468A (en) Image forming apparatus
JP6565851B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP5025089B2 (en) Gradation display device
JP2023104528A (en) Image reading device and image forming apparatus including the same
JP2010252043A (en) Image reader and image forming apparatus
JP2018198350A (en) Image reading device, image forming apparatus, control program, and control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190731

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200528

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200720

R150 Certificate of patent or registration of utility model

Ref document number: 6747398

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees