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

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP2015050499A
JP2015050499A JP2013178914A JP2013178914A JP2015050499A JP 2015050499 A JP2015050499 A JP 2015050499A JP 2013178914 A JP2013178914 A JP 2013178914A JP 2013178914 A JP2013178914 A JP 2013178914A JP 2015050499 A JP2015050499 A JP 2015050499A
Authority
JP
Japan
Prior art keywords
image
binary
blank
output
value
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
JP2013178914A
Other languages
Japanese (ja)
Other versions
JP6149613B2 (en
Inventor
寛子 石川
Hiroko Ishikawa
寛子 石川
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 JP2013178914A priority Critical patent/JP6149613B2/en
Priority to US14/472,739 priority patent/US9241085B2/en
Publication of JP2015050499A publication Critical patent/JP2015050499A/en
Application granted granted Critical
Publication of JP6149613B2 publication Critical patent/JP6149613B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Electrophotography (AREA)
  • Facsimiles In General (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus and an image processing program with which an output result consistent with a blank paper determination result can be expected.SOLUTION: When a multi-value image is acquired by an image acquisition unit 20 and subjected to image processing and thereafter an image after the image processing is generated, binary conversion by a binary conversion unit 517 and binary determination are executed. When it is determined in the binary determination that a BW binary image is a blank paper image, the BW binary image is not output. When it is determined in the binary determination that the BW binary image is not a blank paper image, the BW binary image is output.

Description

本発明は、画像処理装置および画像処理プログラムに関する。   The present invention relates to an image processing apparatus and an image processing program.

従来、原稿の画像を読み取って、その画像を用紙やディスプレイなどに出力する処理を実行する画像処理装置が知られている。   2. Description of the Related Art Conventionally, there is known an image processing apparatus that reads an image of a document and executes a process of outputting the image to a sheet or display.

この種の画像処理装置の中には、原稿が白紙原稿であるか否かを判定する白紙判定機能を搭載したものがある(たとえば、特許文献1参照)。白紙判定機能を搭載することにより、たとえば、白紙原稿でない原稿の画像を出力し、白紙原稿の画像を出力しないといったことが可能となる。   Some image processing apparatuses of this type are equipped with a blank page determination function for determining whether or not a document is a blank page document (see, for example, Patent Document 1). By mounting the blank page determination function, for example, it is possible to output an image of a document that is not a blank document and not to output an image of a blank document.

特開2008−219808号公報JP 2008-219808 A

しかしながら、画像処理装置で実行される処理の内容によっては、原稿が白紙原稿でないと判定されたにもかかわらず、白紙の画像が出力され、白紙判定結果と出力結果とが一致しないことがある。たとえば、原稿の画像を二値画像に変換する処理を実行した場合に、原稿のすべての画素が白画素に変換されて、結果として、白紙の画像が出力されることがある。   However, depending on the contents of processing executed by the image processing apparatus, a blank image may be output even though it is determined that the document is not a blank document, and the blank page determination result may not match the output result. For example, when a process of converting an image of a document into a binary image is executed, all pixels of the document are converted into white pixels, and as a result, a blank image may be output.

本発明の目的は、白紙判定結果と矛盾しない出力結果を期待できる、画像処理装置および画像処理プログラムを提供することである。   An object of the present invention is to provide an image processing apparatus and an image processing program capable of expecting an output result consistent with a blank page determination result.

前記の目的を達成するため、本発明の一の局面に係る画像処理装置は、取得画像として多値画像を取得する取得部と、制御部とを備え、制御部は、取得画像を二値画像に変換する二値変換処理と、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かを判定する二値判定処理と、二値判定処理にて二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像を出力せず、二値判定処理にて二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像を出力する二値出力処理とを実行する。   In order to achieve the above object, an image processing apparatus according to one aspect of the present invention includes an acquisition unit that acquires a multi-valued image as an acquired image, and a control unit, and the control unit converts the acquired image into a binary image. A binary conversion process for converting the binary image into a binary determination process, a binary determination process for determining whether the binary image is a blank image based on the binary image obtained by the binary conversion process, and a binary determination process If the binary image obtained by the binary conversion process is determined to be a blank image, the binary image obtained by the binary conversion process is not output in the binary determination process without outputting the binary image. If it is determined that the image is not a blank image, a binary output process for outputting the binary image is executed.

この構成によれば、取得部により取得画像として多値画像が取得されると、二値変換処理および二値判定処理が実行される。二値変換処理では、取得画像が二値画像に変換される。二値判定処理では、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かが判定される。   According to this configuration, when a multi-value image is acquired as an acquired image by the acquisition unit, a binary conversion process and a binary determination process are executed. In the binary conversion process, the acquired image is converted into a binary image. In the binary determination process, it is determined based on the binary image obtained by the binary conversion process whether the binary image is a blank paper image.

二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像は出力されない。そのため、二値判定処理による白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。一方、二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像が出力される。そのため、二値判定処理による白紙判定結果と二値画像が出力されるという結果が一致する。   When it is determined that the binary image obtained by the binary conversion process is a blank image, the binary image is not output. Therefore, the blank page determination result by the binary determination process matches the result that the image is not output by blank page removal. On the other hand, when it is determined that the binary image obtained by the binary conversion process is not a blank paper image, the binary image is output. Therefore, the blank sheet determination result obtained by the binary determination process and the result that the binary image is output coincide.

よって、白紙判定結果と矛盾しない出力結果を期待することができる。   Therefore, an output result that is consistent with the blank sheet determination result can be expected.

制御部は、二値判定処理において、二値変換処理により黒画素に変換された画素数が所定の閾値以上である場合に、二値変換処理により得られた二値画像が白紙画像でないと判定してもよい。   In the binary determination process, the control unit determines that the binary image obtained by the binary conversion process is not a blank image when the number of pixels converted to black pixels by the binary conversion process is equal to or greater than a predetermined threshold. May be.

この構成によれば、二値変換処理により黒画素に変換された画素数を計数し、その計数した画素数と閾値とを比較することにより、二値変換処理により得られた二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   According to this configuration, by counting the number of pixels converted to black pixels by the binary conversion process and comparing the counted number of pixels with a threshold value, the binary image obtained by the binary conversion process is blank. Whether or not the image is an image can be easily determined. Further, since the binary determination method is simple, it is possible to expect a high speed binary determination process.

制御部は、二値変換処理により得られる二値画像を圧縮する圧縮処理を実行する場合、二値判定処理において、圧縮処理により圧縮された二値画像のサイズが所定の閾値以上である場合に、二値変換処理により得られた二値画像が白紙画像でないと判定してもよい。   When executing a compression process for compressing a binary image obtained by the binary conversion process, the control unit performs a binary determination process when the size of the binary image compressed by the compression process is equal to or larger than a predetermined threshold value. The binary image obtained by the binary conversion process may be determined not to be a blank paper image.

二値画像に含まれる白画素の数が多いほど、二値画像の圧縮率が高くなり、圧縮後の二値画像のサイズが小さくなる。   As the number of white pixels included in the binary image increases, the compression rate of the binary image increases and the size of the binary image after compression decreases.

この構成によれば、圧縮後の二値画像のサイズと閾値とを比較することにより、二値変換処理により得られた二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   According to this configuration, it is possible to easily determine whether or not the binary image obtained by the binary conversion process is a blank image by comparing the size of the binary image after compression with a threshold value. . Further, since the binary determination method is simple, it is possible to expect a high speed binary determination process.

制御部は、取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、多値画像を出力する多値出力処理と、取得画像を多値出力処理にて出力される多値画像に変換する多値変換処理と、を実行し、多値出力処理では、多値判定処理にて取得画像が白紙画像であると判定された場合には、画像を出力せず、多値判定処理にて取得画像が白紙画像でないと判定された場合には、多値変換処理により得られる多値画像を出力してもよい。   Based on the acquired image, the control unit determines whether the acquired image is a blank image, multi-value determination processing, multi-value output processing that outputs a multi-value image, and multi-value output processing. Multi-value conversion processing for converting to a multi-valued image that is output in this way. In multi-value output processing, if the multi-value determination processing determines that the acquired image is a blank image, the image is output. Without determining that the acquired image is not a blank image in the multi-value determination process, a multi-value image obtained by the multi-value conversion process may be output.

この構成によれば、取得部により取得画像として多値画像が取得されると、多値変換処理および多値判定処理が実行される。多値変換処理では、取得画像が出力処理にて出力される多値画像に変換される。多値判定処理では、当該多値画像に変換される前の画像である取得画像に基づいて、当該取得画像が白紙画像であるか否かが判定される。   According to this configuration, when a multi-value image is acquired as an acquired image by the acquisition unit, multi-value conversion processing and multi-value determination processing are executed. In the multi-value conversion process, the acquired image is converted into a multi-value image output in the output process. In the multilevel determination process, it is determined whether or not the acquired image is a blank paper image based on the acquired image that is an image before being converted into the multilevel image.

取得画像が白紙画像であると判定された場合には、画像は出力されない。そのため、多値判定処理による白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。一方、取得画像が白紙画像でないと判定された場合には、多値変換処理により得られる多値画像が出力される。そのため、多値判定処理による白紙判定結果と多値画像が出力されるという結果が一致する。   If it is determined that the acquired image is a blank image, no image is output. For this reason, the blank sheet determination result by the multi-value determination process and the result that the image is not output by blank sheet removal match. On the other hand, when it is determined that the acquired image is not a blank image, a multi-value image obtained by multi-value conversion processing is output. Therefore, the blank sheet determination result by the multi-value determination process and the result that the multi-value image is output coincide.

よって、白紙判定結果と矛盾しない出力結果を期待することができる。   Therefore, an output result that is consistent with the blank sheet determination result can be expected.

制御部は、多値判定処理において、取得画像の輝度成分のデータに基づいて、取得画像が白紙画像であるか否かを判定してもよい。   In the multilevel determination process, the control unit may determine whether the acquired image is a blank image based on the luminance component data of the acquired image.

本発明の他の局面に係る画像処理プログラムは、取得画像として多値画像を取得する取得部を備える画像処理装置と接続されるコンピュータに、取得画像を二値画像に変換する二値変換処理と、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かを判定する二値判定処理と、二値判定処理にて二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像を出力せず、二値判定処理にて二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像を出力する二値出力処理とを実行させる。   An image processing program according to another aspect of the present invention includes a binary conversion process for converting an acquired image into a binary image to a computer connected to an image processing apparatus including an acquisition unit that acquires a multi-valued image as an acquired image. Based on the binary image obtained by the binary conversion process, the binary determination process determines whether the binary image is a blank image, and the binary conversion process obtains the binary conversion process. If the binary image is determined to be a blank image, the binary image is not output, and it is determined that the binary image obtained by the binary conversion process is not a blank image in the binary determination process. If it is, the binary output process for outputting the binary image is executed.

この画像処理プログラムがインストールされたコンピュータでは、取得部により取得画像として多値画像が取得されると、二値変換処理および二値判定処理が実行される。二値変換処理では、取得画像が二値画像に変換される。二値判定処理では、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かが判定される。   In a computer in which this image processing program is installed, when a multi-value image is acquired as an acquired image by the acquisition unit, a binary conversion process and a binary determination process are executed. In the binary conversion process, the acquired image is converted into a binary image. In the binary determination process, it is determined based on the binary image obtained by the binary conversion process whether the binary image is a blank paper image.

二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像は出力されない。そのため、二値判定処理による白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。一方、二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像が出力される。そのため、二値判定処理による白紙判定結果と二値画像が出力されるという結果が一致する。   When it is determined that the binary image obtained by the binary conversion process is a blank image, the binary image is not output. Therefore, the blank page determination result by the binary determination process matches the result that the image is not output by blank page removal. On the other hand, when it is determined that the binary image obtained by the binary conversion process is not a blank paper image, the binary image is output. Therefore, the blank sheet determination result obtained by the binary determination process and the result that the binary image is output coincide.

よって、白紙判定結果と矛盾しない出力結果を期待することができる。   Therefore, an output result that is consistent with the blank sheet determination result can be expected.

本発明によれば、白紙判定結果と矛盾しない出力結果を期待することができる。   According to the present invention, it is possible to expect an output result that is consistent with the blank sheet determination result.

本発明の一実施形態に係るMFP(Multi-FunctionPeripheral)の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an MFP (Multi-Function Peripheral) according to an embodiment of the present invention. FIG. 制御部の構成を示すブロック図である。It is a block diagram which shows the structure of a control part. 読取処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a reading process. ブロック設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of a block setting process. 初期設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of the initial setting process. オート設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of an auto setting process. カラー設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of a color setting process. モノ設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of a mono setting process. オート時出力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the output process at the time of auto. マニュアル時出力処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the output process at the time of a manual. 白紙非除去処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a blank paper non-removal process. 二値判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a binary determination process. 二値判定処理の他の例を示すフローチャートである。It is a flowchart which shows the other example of a binary determination process.

以下では、本発明の実施の形態について、添付図面を参照しつつ詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

<ハードウエア構成> <Hardware configuration>

画像処理装置の一例としてのMFP(Multi-Function Peripheral)1は、図1に示されるように、画像形成部10、画像読取部20、操作パネル30、ネットワークインターフェース(I/F)40および制御部50を備えている。   As shown in FIG. 1, an MFP (Multi-Function Peripheral) 1 as an example of an image processing apparatus includes an image forming unit 10, an image reading unit 20, an operation panel 30, a network interface (I / F) 40, and a control unit. 50.

画像形成部10は、画像データに基づく印刷(カラー印刷またはモノクロ印刷)を実行し、プリント用紙などに画像を形成する。画像形成の方式は、電子写真方式であってもよいし、インクジェット方式であってもよい。   The image forming unit 10 performs printing (color printing or monochrome printing) based on image data, and forms an image on a print sheet or the like. The image forming method may be an electrophotographic method or an inkjet method.

取得部の一例としての画像読取部20は、原稿の画像を読み取り、画像データを生成する。読み取りの方式は、原稿を搬送しつつ、原稿の画像を読み取るADF(Auto Document Feeder)方式であってもよいし、コンタクトガラス上に原稿を載置して、原稿の画像を読み取るFB(Flat Bed)方式であってもよい。   An image reading unit 20 as an example of an acquisition unit reads an image of a document and generates image data. The reading method may be an ADF (Auto Document Feeder) method that reads an image of a document while conveying the document, or an FB (Flat Bed) that reads a document image by placing the document on a contact glass. ) Method.

操作パネル30は、タッチパネルを備えている。タッチパネルには、各種の情報が表示される。また、タッチパネルのタッチ操作により、各種の入力が可能である。操作パネル30には、テンキーなどの入力キーが備えられていてもよい。   The operation panel 30 includes a touch panel. Various information is displayed on the touch panel. Various inputs can be made by touch operations on the touch panel. The operation panel 30 may be provided with input keys such as a numeric keypad.

MFP1は、ネットワークインターフェース40を備えていることにより、LAN(Local
Area Network)に接続されているPC(パーソナルコンピュータ)などの外部装置との間で、LANを経由した通信が可能である。
Since the MFP 1 includes the network interface 40, a LAN (Local
Communication via an LAN is possible with an external device such as a PC (personal computer) connected to an area network.

制御部50は、CPU51、ROM52、RAM53、NVRAM(Non
Volatile RAM)54およびASIC55を備えている。CPU51は、各種の処理のためのプログラムを実行することにより、画像形成部10、画像読取部20および操作パネル30を制御し、ネットワークインターフェース40を介したデータ通信を制御する。ROM52には、CPU51によって実行されるプログラムおよび各種のデータなどが格納されている。RAM53は、CPU51がプログラムを実行する際のワークエリアとして使用される。NVRAM54には、操作パネル30から入力される各種の設定値などが記憶される。
The control unit 50 includes a CPU 51, ROM 52, RAM 53, NVRAM (Non
Volatile RAM) 54 and ASIC 55 are provided. The CPU 51 controls the image forming unit 10, the image reading unit 20, and the operation panel 30 by executing programs for various processes, and controls data communication through the network interface 40. The ROM 52 stores programs executed by the CPU 51 and various data. The RAM 53 is used as a work area when the CPU 51 executes a program. The NVRAM 54 stores various setting values input from the operation panel 30.

<機能および設定> <Functions and settings>

MFP1は、画像読取部20により原稿の画像を読み取り、その読み取った画像(画像データ)を画像形成部10によりプリント用紙などに出力したり、ネットワークインターフェース40を介して外部のPCなどに出力したりする読取機能を有している。   The MFP 1 reads an image of a document by the image reading unit 20 and outputs the read image (image data) to a print sheet or the like by the image forming unit 10 or outputs it to an external PC or the like via the network interface 40. Reading function.

この読取機能の使用に際して、ユーザは、操作パネル30を操作して、スキャンタイプを設定することができる。スキャンタイプには、BW(白黒)、グレー、カラーおよびオートの4タイプが用意されている。「スキャンタイプ:BW」が設定されると、原稿の画像が白黒の二値画像(BW画像)として読み取られ、BW二値画像が出力される。「スキャンタイプ:グレー」が設定されると、原稿の画像が中間諧調を有する白黒画像であるグレー画像として読み取られ、256階調のグレーJpeg画像が出力される。「スキャンタイプ:カラー」が設定されると、原稿の画像がカラー画像として読み取られ、256階調のカラーJpeg画像が出力される。「スキャンタイプ:オート」が設定されると、原稿の画像の種別がBW画像、グレー画像およびカラー画像のいずれであるかが自動判定され、その判定結果に応じた画像が出力される。   When using the reading function, the user can set the scan type by operating the operation panel 30. There are four scan types: BW (monochrome), gray, color and auto. When “scan type: BW” is set, the image of the document is read as a monochrome binary image (BW image), and a BW binary image is output. When “scan type: gray” is set, the image of the document is read as a gray image that is a black and white image having an intermediate gradation, and a 256-level gray Jpeg image is output. When “scan type: color” is set, the image of the document is read as a color image, and a 256-level color Jpeg image is output. When “scan type: auto” is set, it is automatically determined whether the image type of the document is a BW image, a gray image, or a color image, and an image corresponding to the determination result is output.

なお、グレーJpeg画像およびカラーJpeg画像の諧調数は、一例であり、256諧調よりも少ない諧調数であってもよいし、256諧調よりも多い諧調数であってもよい。また、グレーJpeg画像およびカラーJpeg画像は、Jpeg形式のファイルであるが、出力画像のファイル形式は、たとえば、Tiff形式、XPS形式、PDF形式など、Jpeg形式以外のファイル形式であってもよい。   Note that the gray number of the gray Jpeg image and the color Jpeg image is an example, and the number of gradations may be smaller than 256 gradations, or may be larger than 256 gradations. Further, the gray Jpeg image and the color Jpeg image are files in the Jpeg format, but the file format of the output image may be a file format other than the Jpeg format, such as a Tiff format, XPS format, or PDF format.

また、MFP1は、白紙除去機能を有している。白紙除去機能は、画像読取部20により読み取った原稿の画像が白紙画像であるか否かを判定し、白紙画像であった場合に、白紙画像を出力しない機能である。ユーザは、操作パネル30を操作して、白紙除去機能を有効にするか無効にするかを設定することができる。   Further, the MFP 1 has a blank paper removal function. The blank sheet removal function is a function that determines whether or not the image of the document read by the image reading unit 20 is a blank sheet image, and does not output a blank sheet image if it is a blank sheet image. The user can set whether to enable or disable the blank sheet removal function by operating the operation panel 30.

<制御部の構成> <Configuration of control unit>

制御部50のCPU51は、プログラムを実行することにより、図2に示されるCIS制御部511、読取補正部512、画像処理部513、白紙判定部514、色数検出部515、Jpeg圧縮部516および二値変換部517の機能を実現する。   The CPU 51 of the control unit 50 executes the program, thereby causing the CIS control unit 511, the reading correction unit 512, the image processing unit 513, the blank sheet determination unit 514, the color number detection unit 515, the Jpeg compression unit 516, and the like shown in FIG. The function of the binary conversion unit 517 is realized.

CIS制御部511は、画像読取部20に備えられているCIS(Contact
Image Sensor)201およびAFE(Analog Front End)202を制御する。CIS制御部511の制御モードとして、カラー画像の読み取りに適したカラーモードと、BW画像およびグレー画像の読み取りに適したモノモードとが設けられている。CIS制御部511がCIS201およびAFE202を制御することにより、CIS201から原稿での反射光に応じたアナログ画像信号が出力され、AFE202において、そのアナログ画像信号が8ビット(0〜255)のデジタル画像データに変換される。
The CIS control unit 511 is a CIS (Contact
An image sensor 201 and an AFE (Analog Front End) 202 are controlled. As a control mode of the CIS control unit 511, a color mode suitable for reading a color image and a mono mode suitable for reading a BW image and a gray image are provided. When the CIS control unit 511 controls the CIS 201 and the AFE 202, an analog image signal corresponding to the reflected light from the document is output from the CIS 201. In the AFE 202, the analog image signal is 8-bit (0 to 255) digital image data. Is converted to

読取補正部512は、AFE202から出力される画像(8ビットのデジタル画像データ)に対して、原稿に照射される光量のむら(照明むら)やその他の原因による画素間濃度むらをなくすための読取補正(シェーディング補正)を行う。読取補正部512の補正モードとして、カラー画像に適した読取補正を行うカラーモードと、BW画像およびグレー画像に適した読取補正を行うモノモードとが設けられている。読取補正部512は、読取補正後の画像をRAM53に保存する。   A reading correction unit 512 performs reading correction to eliminate unevenness in the amount of light (illumination unevenness) applied to the document and unevenness in pixel density due to other causes with respect to the image (8-bit digital image data) output from the AFE 202. (Shading correction) is performed. As a correction mode of the reading correction unit 512, a color mode for performing reading correction suitable for a color image and a mono mode for performing reading correction suitable for a BW image and a gray image are provided. The read correction unit 512 stores the read corrected image in the RAM 53.

画像処理部513は、読取補正後の画像に対して、各種の画像処理を行う。画像処理部513の処理モードとして、カラー画像に適した画像処理を行うカラーモードと、BW画像およびグレー画像に適した画像処理を行うモノモードとが設けられている。画像処理には、たとえば、画像のエッジを強調するエッジ強調処理、画像の解像度を変更する解像度変更処理および画像の色空間をRGBからYCbCrに変換する色変換処理などが含まれる。画像処理部513は、画像処理後の画像をRAM53に保存する。   The image processing unit 513 performs various types of image processing on the read corrected image. As processing modes of the image processing unit 513, a color mode for performing image processing suitable for a color image and a mono mode for performing image processing suitable for a BW image and a gray image are provided. The image processing includes, for example, edge enhancement processing for enhancing the edge of the image, resolution changing processing for changing the resolution of the image, and color conversion processing for converting the color space of the image from RGB to YCbCr. The image processing unit 513 stores the image-processed image in the RAM 53.

また、画像処理部513は、たとえば、100×100画素を1ブロックとして、色変換処理後の画像を格子状に複数のブロックに分割し、各ブロックについて、Y成分(輝度成分)のヒストグラム、Cb成分(色差データ)のヒストグラムおよびCr成分(色差データ)のヒストグラムを作成する。そして、画像処理部513は、各ブロックについて作成したY成分のヒストグラム、Cb成分のヒストグラムおよびCr成分のヒストグラムをRAM53に保存する。   Further, the image processing unit 513 divides the image after color conversion processing into a plurality of blocks in a grid shape, for example, with 100 × 100 pixels as one block, and for each block, a histogram of Y component (luminance component), Cb A histogram of the component (color difference data) and a histogram of the Cr component (color difference data) are created. Then, the image processing unit 513 stores the Y component histogram, the Cb component histogram, and the Cr component histogram created for each block in the RAM 53.

白紙判定部514は、画像処理部513による色変換処理後の画像が白紙画像であるか否かを判定する。   The blank page determination unit 514 determines whether the image after the color conversion processing by the image processing unit 513 is a blank page image.

具体的には、白紙判定部514は、RAM53に保存されている各ブロックについてのY成分のヒストグラムを参照し、各ブロックについてのY成分の最頻値を求める。ほぼ白一色のブロックは、Y成分の最頻値が255近傍に集中する。また、画像全体がほぼ白一色である場合、各ブロックについてのY成分の最頻値のヒストグラムを作成すると、そのヒストグラムにおける最頻値が255近傍に集中する。そこで、白紙判定部514は、「各ブロックについてのY成分の最頻値のヒストグラムにおける最頻値」と一致するY成分の最頻値を有するブロックの数を求め、そのブロックの数が一定以上であれば、色変換処理後の画像が白紙画像であると判定する。そして、白紙判定部514は、その判定結果をRAM53に保存する。以下、白紙判定部514による判定を「多値判定」という。   Specifically, the blank page determination unit 514 refers to the histogram of the Y component for each block stored in the RAM 53 and obtains the mode value of the Y component for each block. In the almost white block, the mode value of the Y component is concentrated in the vicinity of 255. When the entire image is substantially white, when the histogram of the Y component mode values for each block is created, the mode values in the histogram are concentrated in the vicinity of 255. Therefore, the blank page determination unit 514 obtains the number of blocks having the mode value of the Y component that matches the “mode value in the histogram of the mode value of the Y component for each block”, and the number of blocks is greater than or equal to a certain value. If so, it is determined that the image after the color conversion process is a blank image. Then, the blank paper determination unit 514 stores the determination result in the RAM 53. Hereinafter, the determination by the blank sheet determination unit 514 is referred to as “multi-value determination”.

なお、白紙除去機能が無効に設定されている場合、白紙判定部514が無効に設定され、多値判定は行われない。   If the blank page removal function is set to invalid, the blank page determination unit 514 is set to invalid and multi-value determination is not performed.

色数検出部515は、色数検出を実行し、画像処理部513による色変換処理後の画像の種別がBW画像、グレー画像およびカラー画像のいずれであるかを判定する。   The color number detection unit 515 performs color number detection, and determines whether the image type after the color conversion processing by the image processing unit 513 is a BW image, a gray image, or a color image.

具体的には、色数検出部515は、RAM53に保存されている各ブロックについて、有彩色ブロックであるか、無彩色ブロックであるかを判定する。YCbCr色空間では、Cb成分の値およびCr成分の値の範囲をそれぞれ0〜255としたときに、Cb成分の値およびCr成分の値がそれぞれほぼ中間の値(=127)の近傍である画素の色が無彩色に近くなる。そこで、色数検出部515は、各ブロックについて、Cb成分のヒストグラムおよびCr成分のヒストグラムを参照し、たとえば、次式(1),(2)の両方が満たされていれば、無彩色ブロックであると判定し、次式(1),(2)の少なくとも一方が満たされていなければ、有彩色ブロックであると判定する。   Specifically, the color number detection unit 515 determines whether each block stored in the RAM 53 is a chromatic color block or an achromatic color block. In the YCbCr color space, when the range of the Cb component value and the Cr component value is 0 to 255, the Cb component value and the Cr component value are each in the vicinity of a substantially intermediate value (= 127). The color becomes close to achromatic. Therefore, the color number detection unit 515 refers to the Cb component histogram and the Cr component histogram for each block, and, for example, if both of the following expressions (1) and (2) are satisfied, If at least one of the following expressions (1) and (2) is not satisfied, it is determined that the block is a chromatic color block.

112≦Cb成分の平均値<143 ・・・(1)   112 ≦ average value of Cb components <143 (1)

112≦Cr成分の平均値<143 ・・・(2)   112 ≦ Average value of Cr component <143 (2)

なお、式(1),(2)中の数値は、単なる一例であり、適宜に変更されるとよい。下記の式(3)についても同様である。   The numerical values in the formulas (1) and (2) are merely examples, and may be changed as appropriate. The same applies to the following formula (3).

その後、色数検出部515は、各無彩色ブロックについて、BWブロックであるか、グレーブロックであるかを判定する。YCbCr色空間では、Y成分の値、Cb成分の値およびCr成分の値の範囲をそれぞれ0〜255としたときに、Cb成分の値およびCr成分の値がそれぞれほぼ中間の値(=127)に近いとき、Y成分の値が0に近いほど、画素の色が黒に近づき、Y成分の値が255に近いほど、画素の色が白に近づく。そこで、色数検出部515は、各無彩色ブロックについて、Y成分のヒストグラムを参照し、たとえば、次式(3)が満たされていれば、BWブロックであると判定し、次式(3)が満たされていなければ、グレーブロックであると判定する。   Thereafter, the number-of-colors detection unit 515 determines whether each achromatic color block is a BW block or a gray block. In the YCbCr color space, when the Y component value, the Cb component value, and the Cr component value ranges from 0 to 255, the Cb component value and the Cr component value are approximately intermediate values (= 127), respectively. When the value of the Y component is closer to 0, the color of the pixel is closer to black, and as the value of the Y component is closer to 255, the color of the pixel is closer to white. Therefore, the color number detection unit 515 refers to the Y component histogram for each achromatic color block and, for example, determines that the block is a BW block if the following equation (3) is satisfied. If is not satisfied, it is determined as a gray block.

「Y成分の値<63または224≦Y成分の値、を満たす画素の割合」≧40%
・・・(3)
“Percentage of pixels satisfying Y component value <63 or 224 ≦ Y component value” ≧ 40%
... (3)

そして、色数検出部515は、画像処理後の画像(1ページの画像)におけるCb成分およびCr成分の各最頻値がともに112以上143未満の範囲内であるか、または、画像処理後の画像に一定割合(たとえば、0.2%)以上のカラーブロックが含まれる場合には、画像処理後の画像の種別がカラー画像であると判定する。画像処理後の画像におけるCb成分およびCr成分の各最頻値の少なくとも一方が112以上143未満の範囲外であり、かつ、画像処理後の画像中のグレーブロックの割合が一定(たとえば、0.3%)以上である場合には、画像処理後の画像の種別がグレー画像であると判定する。また、画像処理後の画像におけるCb成分およびCr成分の各最頻値の少なくとも一方が112以上143未満の範囲外であり、かつ、画像処理後の画像中のグレーブロックの割合が一定未満である場合には、画像処理後の画像の種別がBW画像であると判定する。   Then, the number-of-colors detection unit 515 determines whether the mode values of the Cb component and the Cr component in the image after image processing (one page image) are both in the range of 112 or more and less than 143, or after image processing When the image contains a color block of a certain ratio (for example, 0.2%) or more, it is determined that the type of the image after image processing is a color image. At least one of the mode values of the Cb component and Cr component in the image after image processing is outside the range of 112 or more and less than 143, and the ratio of gray blocks in the image after image processing is constant (for example, 0. 3%) or more, it is determined that the type of image after image processing is a gray image. In addition, at least one of the mode values of the Cb component and the Cr component in the image after image processing is outside the range of 112 or more and less than 143, and the proportion of gray blocks in the image after image processing is less than a certain value. In this case, it is determined that the image type after image processing is a BW image.

なお、「スキャンタイプ:オート」が設定されている場合、色数検出部515が有効に設定され、「スキャンタイプ:BW」、「スキャンタイプ:グレー」および「スキャンタイプ:カラー」が設定されている場合には、色数検出部515が無効に設定される。色数検出部515が無効に設定されている場合、色数検出部515による前述の判定は行われない。   When “scan type: auto” is set, the color number detection unit 515 is enabled, and “scan type: BW”, “scan type: gray”, and “scan type: color” are set. If the color number is detected, the color number detection unit 515 is disabled. When the color number detection unit 515 is set to invalid, the above-described determination by the color number detection unit 515 is not performed.

Jpeg圧縮部516は、RAM53に保存されている画像処理後の画像をJpeg方式で圧縮し、グレーJpeg多値画像またはカラーJpeg多値画像を生成する。   The Jpeg compression unit 516 compresses the image after image processing stored in the RAM 53 using the Jpeg method, and generates a gray Jpeg multi-value image or a color Jpeg multi-value image.

具体的には、Jpeg圧縮部516の動作モードには、グレーJpeg多値画像のみを生成するモードと、カラーJpeg多値画像のみを生成するモードとがあり、各動作モードが選択的に有効に設定されるか、すべての動作モードが無効に設定される。「スキャンタイプ:BW」が設定されている場合、Jpeg圧縮部516のすべての動作モードが無効に設定され、Jpeg圧縮部516は、グレーJpeg多値画像およびカラーJpeg多値画像のいずれも生成しない。「スキャンタイプ:グレー」が設定されている場合、グレーJpeg多値画像のみを生成するモードが有効(グレー)に設定され、Jpeg圧縮部516は、グレーJpeg多値画像のみを生成する。「スキャンタイプ:カラー」が設定されている場合、カラーJpeg多値画像のみを生成するモードが有効(カラー)に設定され、Jpeg圧縮部516は、カラーJpeg多値画像のみを生成する。また、「スキャンタイプ:オート」が設定されている場合、グレーJpeg多値画像またはカラーJpeg多値画像を生成するモードが有効(カラー/グレー)に設定され、Jpeg圧縮部516は、色数検出部515の判定結果に従って、グレーJpeg多値画像またはカラーJpeg多値画像のいずれかを生成する。そして、Jpeg圧縮部516は、生成したグレーJpeg多値画像またはカラーJpeg多値画像をRAM53に保存する。   Specifically, the operation mode of the Jpeg compression unit 516 includes a mode for generating only a gray Jpeg multi-valued image and a mode for generating only a color Jpeg multi-valued image. Each operation mode is selectively enabled. Set or all operating modes are disabled. When “scan type: BW” is set, all the operation modes of the Jpeg compression unit 516 are set to be invalid, and the Jpeg compression unit 516 generates neither a gray Jpeg multi-value image nor a color Jpeg multi-value image. . When “scan type: gray” is set, the mode for generating only the gray Jpeg multi-valued image is set to valid (gray), and the Jpeg compression unit 516 generates only the gray Jpeg multi-valued image. When “scan type: color” is set, the mode for generating only a color Jpeg multi-valued image is set to valid (color), and the Jpeg compression unit 516 generates only a color Jpeg multi-valued image. When “scan type: auto” is set, a mode for generating a gray Jpeg multi-valued image or a color Jpeg multi-valued image is set to valid (color / gray), and the Jpeg compression unit 516 detects the number of colors. According to the determination result of the unit 515, either a gray Jpeg multi-valued image or a color Jpeg multi-valued image is generated. Then, the Jpeg compression unit 516 stores the generated gray Jpeg multi-valued image or color Jpeg multi-valued image in the RAM 53.

二値変換部517は、「スキャンタイプ:BW」または「スキャンタイプ:オート」が設定されている場合に、有効に設定され、RAM53に記憶されている画像処理後の画像を二値変換し、BW二値画像を生成する。二値変換の手法は、いわゆる単純二値化であり、二値変換部517は、画像処理後の画像の各画素について、Y成分の値が一定の閾値以上であれば、当該画素を白画素に変換し、Y成分の値が当該閾値未満であれば、当該画素を黒画素に変換する。二値変換部517は、生成したBW二値画像をRAM53に保存する。「スキャンタイプ:グレー」または「スキャンタイプ:カラー」が設定されている場合、二値変換部517が無効に設定され、二値変換部517によるBW二値画像の生成が行われない。   The binary conversion unit 517 performs binary conversion on the image after image processing that is set valid and stored in the RAM 53 when “scan type: BW” or “scan type: auto” is set. A BW binary image is generated. The binary conversion method is so-called simple binarization, and the binary conversion unit 517 determines that each pixel of the image after image processing is a white pixel if the Y component value is equal to or greater than a certain threshold value. If the value of the Y component is less than the threshold value, the pixel is converted to a black pixel. The binary conversion unit 517 stores the generated BW binary image in the RAM 53. When “scan type: gray” or “scan type: color” is set, the binary conversion unit 517 is disabled, and the binary conversion unit 517 does not generate a BW binary image.

また、二値変換部517は、後述する二値判定処理を実行し、BW二値画像が白紙画像であるか否かを判定する。以下、二値変換部517による判定を「二値判定」という。   In addition, the binary conversion unit 517 executes a binary determination process described later, and determines whether or not the BW binary image is a blank paper image. Hereinafter, the determination by the binary conversion unit 517 is referred to as “binary determination”.

<読取処理> <Reading process>

ユーザにより操作パネル30が操作されて、原稿の画像の読み取りの指示が入力されると、制御部50のCPU51は、図3に示される読取処理を原稿の1ページごとに実行する。   When the user operates the operation panel 30 and inputs an instruction to read an image of a document, the CPU 51 of the control unit 50 executes the reading process shown in FIG. 3 for each page of the document.

読取処理では、CPU51は、ブロック設定処理を実行する(S1)。ブロック設定処理については、後述する。   In the reading process, the CPU 51 executes a block setting process (S1). The block setting process will be described later.

ブロック設定処理の終了後、CPU51は、画像読取部20による原稿の読取動作を開始する(S2)。この読取動作の開始に伴い、図2に示されるCIS制御部511による処理が開始される。   After completion of the block setting process, the CPU 51 starts a document reading operation by the image reading unit 20 (S2). With the start of this reading operation, processing by the CIS controller 511 shown in FIG. 2 is started.

その後、CPU51は、原稿の1ページの読み取りが終了したか否かを判断する(S3)。ADF方式で原稿の画像が読み取られる場合、たとえば、1ページ(1枚)の原稿が画像読取部20のCIS201上を通過し終えたことにより、原稿の1ページの読み取りが終了したと判断することができる。また、FB方式で原稿の画像が読み取られる場合、たとえば、CIS201が副走査方向に1往復したことにより、原稿の1ページの読み取りが終了したと判断することができる。   Thereafter, the CPU 51 determines whether or not reading of one page of the document is completed (S3). When an image of a document is read by the ADF method, for example, it is determined that one page (one sheet) of the document has passed through the CIS 201 of the image reading unit 20 and thus reading of one page of the document is completed. Can do. Further, when an image of an original is read by the FB method, for example, it can be determined that reading of one page of the original is completed when the CIS 201 makes one reciprocation in the sub-scanning direction.

原稿の1ページの読み取りが終了していなければ(S3:NO)、再びS3に戻り、原稿の1ページの読み取りが終了すると(S3:YES)、読取補正部512および画像処理部513による処理が開始される。また、CPU51は、白紙除去機能が有効に設定されているか否かを判断する(S4)。   If reading of one page of the document is not completed (S3: NO), the process returns to S3 again. When reading of one page of the document is completed (S3: YES), processing by the reading correction unit 512 and the image processing unit 513 is performed. Be started. Further, the CPU 51 determines whether or not the blank sheet removal function is set to be effective (S4).

白紙除去機能が有効に設定されている場合(S4:YES)、CPU51は、「スキャンタイプ:オート」が設定されているか否かを判断する(S5)。   When the blank paper removal function is set to be valid (S4: YES), the CPU 51 determines whether “scan type: auto” is set (S5).

「スキャンタイプ:オート」が設定されている場合には、後述のオート設定処理において、Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像またはカラーJpeg多値画像を生成するモードが有効(カラー/グレー)に設定され、二値変換部517が有効に設定されている。   When “scan type: auto” is set, a mode for generating a gray Jpeg multi-valued image or a color Jpeg multi-valued image is effective as an operation mode of the Jpeg compression unit 516 in an auto setting process described later (color / Gray) and the binary conversion unit 517 is set to be valid.

「スキャンタイプ:オート」が設定されている場合には(S5:YES)、CPU51は、オート時出力処理を実行して(S6)、読取処理を終了する。オート時出力処理については、後述する。   If “scan type: auto” is set (S5: YES), the CPU 51 executes an auto-time output process (S6) and ends the reading process. The auto output process will be described later.

「スキャンタイプ:オート」が設定されていない場合には(S5:NO)、CPU51は、マニュアル時出力処理を実行して(S7)、読取処理を終了する。マニュアル時出力処理については、後述する。   If “scan type: auto” is not set (S5: NO), the CPU 51 executes a manual output process (S7) and ends the reading process. The manual output process will be described later.

一方、白紙除去機能が無効に設定されている場合には(S4:NO)、CPU51は、白紙非除去処理を実行して(S8)、読取処理を終了する。白紙非除去処理については、後述する。   On the other hand, if the blank sheet removal function is set to be invalid (S4: NO), the CPU 51 executes blank sheet non-removal processing (S8) and ends the reading processing. The blank paper non-removal process will be described later.

<ブロック設定処理> <Block setting process>

図3に示されるステップS1で実行されるブロック設定処理の内容は、図4に示されている。   The contents of the block setting process executed in step S1 shown in FIG. 3 are shown in FIG.

ブロック設定処理では、CPU51は、初期設定処理を実行する(S11)。初期設定処理については、後述する。   In the block setting process, the CPU 51 executes an initial setting process (S11). The initial setting process will be described later.

初期設定処理の終了後、CPU51は、「スキャンタイプ:オート」が設定されているか否かを判断する(S12)。   After completion of the initial setting process, the CPU 51 determines whether or not “scan type: auto” is set (S12).

「スキャンタイプ:オート」が設定されている場合(S12:YES)、CPU51は、オート設定処理を実行する(S13)。オート設定処理については、後述する。   When “scan type: auto” is set (S12: YES), the CPU 51 executes an auto setting process (S13). The auto setting process will be described later.

「スキャンタイプ:オート」が設定されていない場合には(S12:NO)、CPU51は、「スキャンタイプ:カラー」が設定されているか否かを判断する(S14)。   When “scan type: auto” is not set (S12: NO), the CPU 51 determines whether “scan type: color” is set (S14).

「スキャンタイプ:カラー」が設定されている場合には(S14:YES)、CPU51は、カラー設定処理を実行する(S15)。カラー設定処理については、後述する。   When “scan type: color” is set (S14: YES), the CPU 51 executes a color setting process (S15). The color setting process will be described later.

「スキャンタイプ:オート」および「スキャンタイプ:カラー」のいずれも設定されていない場合(S14:NO)、CPU51は、モノ設定処理を実行する(S16)。モノ設定処理については、後述する。   When neither “scan type: auto” nor “scan type: color” is set (S14: NO), the CPU 51 executes mono setting processing (S16). The mono setting process will be described later.

オート設定処理、カラー設定処理またはモノ設定処理の終了後、CPU51は、白紙除去機能が有効に設定されているか否かを判断する(S17)。   After completion of the auto setting process, color setting process, or mono setting process, the CPU 51 determines whether or not the blank sheet removal function is set to be valid (S17).

白紙除去機能が有効に設定されている場合には(S17:YES)、CPU51は、白紙判定部514を有効に設定して(S18)、ブロック設定処理を終了する。   If the blank page removal function is set to be valid (S17: YES), the CPU 51 sets the blank page determination unit 514 to be valid (S18) and ends the block setting process.

白紙除去機能が無効に設定されていない場合には(S17:NO)、ステップS18の処理をスキップして、白紙判定部514を有効に設定せずに、ブロック設定処理を終了する。   If the blank sheet removal function is not set to be invalid (S17: NO), the process of step S18 is skipped, and the block setting process is terminated without setting the blank sheet determination unit 514 to be valid.

<初期設定処理> <Initial setting process>

図4に示されるステップS11で実行される初期設定処理の内容は、図5に示されている。   The contents of the initial setting process executed in step S11 shown in FIG. 4 are shown in FIG.

初期設定処理において、CPU51は、Jpeg圧縮部516、二値変換部517、白紙判定部514および色数検出部515をすべて無効に設定し(S111,S112,S113,S114)、初期設定処理を終了する。   In the initial setting process, the CPU 51 invalidates all of the JPEG compression unit 516, the binary conversion unit 517, the blank page determination unit 514, and the color number detection unit 515 (S111, S112, S113, S114), and ends the initial setting process. To do.

<オート設定処理> <Auto setting process>

図4に示されるステップS13で実行されるオート設定処理の内容は、図6に示されている。   The contents of the auto setting process executed in step S13 shown in FIG. 4 are shown in FIG.

オート設定処理において、CPU51は、以下の各種の設定を行う。   In the auto setting process, the CPU 51 performs the following various settings.

CIS制御部511の制御モードをカラー画像の読み取りに適したカラーモードに設定する(S131)。   The control mode of the CIS control unit 511 is set to a color mode suitable for reading a color image (S131).

読取補正部512の補正モードをカラー画像に適した読取補正を行うカラーモードに設定する(S132)。   The correction mode of the reading correction unit 512 is set to a color mode for performing reading correction suitable for a color image (S132).

画像処理部513の処理モードをカラー画像に適した画像処理を行うカラーモードに設定する(S133)。   The processing mode of the image processing unit 513 is set to a color mode for performing image processing suitable for a color image (S133).

Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像またはカラーJpeg多値画像を生成するモードを有効(カラー/グレー)に設定する(S134)。   As an operation mode of the Jpeg compression unit 516, a mode for generating a gray Jpeg multi-valued image or a color Jpeg multi-valued image is set to valid (color / gray) (S134).

二値変換部517を有効に設定する(S135)。   The binary conversion unit 517 is set to be valid (S135).

色数検出部515を有効に設定する(S136)。   The color number detection unit 515 is set to be effective (S136).

<カラー設定処理> <Color setting process>

図4に示されるステップS15で実行されるカラー設定処理の内容は、図7に示されている。   The contents of the color setting process executed in step S15 shown in FIG. 4 are shown in FIG.

カラー設定処理において、CPU51は、以下の各種の設定を行う。   In the color setting process, the CPU 51 performs the following various settings.

CIS制御部511の制御モードをカラー画像の読み取りに適したカラーモードに設定する(S151)。   The control mode of the CIS controller 511 is set to a color mode suitable for reading a color image (S151).

読取補正部512の補正モードをカラー画像に適した読取補正を行うカラーモードに設定する(S152)。   The correction mode of the reading correction unit 512 is set to a color mode for performing reading correction suitable for a color image (S152).

画像処理部513の処理モードをカラー画像に適した画像処理を行うカラーモードに設定する(S153)。   The processing mode of the image processing unit 513 is set to a color mode for performing image processing suitable for a color image (S153).

Jpeg圧縮部516の動作モードとして、カラーJpeg多値画像のみを生成するモードを有効(カラー)に設定する(S154)。   As an operation mode of the Jpeg compression unit 516, a mode for generating only a color Jpeg multi-valued image is set to valid (color) (S154).

<モノ設定処理> <Mono setting process>

図4に示されるステップS16で実行されるモノ設定処理の内容は、図8に示されている。   The contents of the mono setting process executed in step S16 shown in FIG. 4 are shown in FIG.

モノ設定処理において、CPU51は、CIS制御部511の制御モードをBW画像およびグレー画像の読み取りに適したモノモードに設定する(S161)。   In the mono setting process, the CPU 51 sets the control mode of the CIS control unit 511 to a mono mode suitable for reading a BW image and a gray image (S161).

また、読取補正部512の補正モードをBW画像およびグレー画像に適した読取補正を行うモノモードに設定する(S162)。   Further, the correction mode of the reading correction unit 512 is set to a mono mode for performing reading correction suitable for the BW image and the gray image (S162).

さらに、画像処理部513の処理モードをBW画像およびグレー画像に適した画像処理を行うモノモードに設定する(S163)。   Further, the processing mode of the image processing unit 513 is set to a mono mode for performing image processing suitable for the BW image and the gray image (S163).

その後、CPU51は、「スキャンタイプ:グレー」が設定されているか否かを判断する(S164)。   Thereafter, the CPU 51 determines whether or not “scan type: gray” is set (S164).

「スキャンタイプ:グレー」に設定されていない場合(S164:NO)、CPU51は、二値変換部517を有効に設定する(S165)。   When “scan type: gray” is not set (S164: NO), the CPU 51 sets the binary conversion unit 517 to be valid (S165).

そして、CPU51は、モノ設定処理を終了する。   Then, the CPU 51 ends the mono setting process.

「スキャンタイプ:グレー」が設定されている場合には(S164:YES)、CPU51は、Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像のみを生成するモードを有効(グレー)に設定し(S166)、モノ設定処理を終了する。   When “scan type: gray” is set (S164: YES), the CPU 51 sets the mode for generating only a gray Jpeg multi-valued image to be valid (gray) as the operation mode of the Jpeg compression unit 516. (S166), the mono setting process is terminated.

<オート時出力処理> <Automatic output processing>

図3に示されるステップS6で実行されるオート時出力処理の流れは、図9に示されている。   The flow of the automatic output process executed in step S6 shown in FIG. 3 is shown in FIG.

オート時出力処理では、CPU51は、色数検出部515の判定の結果が「BW画像」であるか否かを判断する(S61)。   In the automatic output process, the CPU 51 determines whether or not the determination result of the color number detection unit 515 is “BW image” (S61).

色数検出部515の判定の結果が「BW画像」である場合には(S61:YES)、その色数検出部515の判定に続いて、二値変換部517の機能によるBW二値画像の生成および二値判定が実行される。また、生成されたBW二値画像は、RAM53に保存される。そして、CPU51は、二値変換部517の二値判定の結果が「白紙画像」であるか否かを判断する(S62)。   When the determination result of the color number detection unit 515 is “BW image” (S61: YES), following the determination of the color number detection unit 515, the BW binary image by the function of the binary conversion unit 517 is displayed. Generation and binary determination are performed. Further, the generated BW binary image is stored in the RAM 53. Then, the CPU 51 determines whether or not the result of the binary determination by the binary conversion unit 517 is “blank image” (S62).

二値変換部517の二値判定の結果が「白紙画像」である場合には(S62:YES)、CPU51は、RAM53に保存されているBW二値画像をRAM53から削除する(S64)。そして、CPU51は、オート時出力処理を終了する。   When the binary determination result of the binary conversion unit 517 is “blank image” (S62: YES), the CPU 51 deletes the BW binary image stored in the RAM 53 from the RAM 53 (S64). Then, the CPU 51 ends the auto-time output process.

二値変換部517の二値判定の結果が「白紙画像」でない場合には(S62:NO)、CPU51は、RAM53に保存されているBW二値画像を予め指定された出力先に出力する(S63)。そして、オート時出力処理を終了する。   When the result of the binary determination by the binary conversion unit 517 is not “blank image” (S62: NO), the CPU 51 outputs the BW binary image stored in the RAM 53 to an output destination designated in advance ( S63). Then, the auto output process is terminated.

色数検出部515の判定の結果が「BW画像」でない場合には(S61:NO)、その色数検出部515の判定に続いて、白紙判定部514の機能による多値判定が実行される。そして、CPU51は、白紙判定部514の多値判定の結果が「白紙画像」であるか否かを判断する(S65)。   When the determination result of the color number detection unit 515 is not “BW image” (S61: NO), the multi-value determination by the function of the blank paper determination unit 514 is executed following the determination of the color number detection unit 515. . Then, the CPU 51 determines whether or not the result of the multi-value determination of the blank sheet determination unit 514 is “blank sheet image” (S65).

白紙判定部514の多値判定の結果が「白紙画像」である場合には(S65:YES)、CPU51は、オート時出力処理を終了する。   When the result of the multi-value determination by the blank page determination unit 514 is “blank page image” (S65: YES), the CPU 51 ends the auto-time output process.

白紙判定部514の多値判定の結果が「白紙画像」でない場合には(S65:NO)、CPU51は、色数検出部515の判定の結果が「カラー画像」であるか否かを判断する(S66)。   When the multi-value determination result of the blank page determination unit 514 is not “blank image” (S65: NO), the CPU 51 determines whether or not the determination result of the color number detection unit 515 is “color image”. (S66).

色数検出部515の判定の結果が「カラー画像」である場合には(S66:YES)、CPU51は、Jpeg圧縮部516の機能により、カラーJpeg多値画像を生成し、そのカラーJpeg多値画像を予め指定された出力先に出力する(S68)。そして、CPU51は、オート時出力処理を終了する。   When the determination result of the color number detection unit 515 is “color image” (S66: YES), the CPU 51 generates a color Jpeg multi-value image by the function of the Jpeg compression unit 516, and the color Jpeg multi-value. The image is output to a predetermined output destination (S68). Then, the CPU 51 ends the auto-time output process.

色数検出部515の判定の結果が「カラー画像」でない場合には(S66:NO)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S67)。そして、CPU51は、オート時出力処理を終了する。   When the determination result of the color number detection unit 515 is not “color image” (S66: NO), the CPU 51 generates a gray Jpeg multi-value image by the function of the Jpeg compression unit 516, and the gray Jpeg multi-value image. Are output to an output destination designated in advance (S67). Then, the CPU 51 ends the auto-time output process.

<マニュアル時出力処理> <Manual output processing>

図3に示されるステップS7で実行されるマニュアル時出力処理の流れは、図10に示されている。   The flow of the manual output process executed in step S7 shown in FIG. 3 is shown in FIG.

マニュアル時出力処理では、CPU51は、「スキャンタイプ:BW」が設定されているか否かを判断する(S71)。   In the manual output process, the CPU 51 determines whether or not “scan type: BW” is set (S71).

「スキャンタイプ:BW」が設定されている場合には(S71:YES)、二値変換部517の機能によるBW二値画像の生成および二値判定が実行される。また、生成されたBW二値画像は、RAM53に保存される。そして、CPU51は、二値変換部517の二値判定の結果が「白紙画像」であるか否かを判断する(S72)。   When “scan type: BW” is set (S71: YES), generation of a BW binary image and binary determination by the function of the binary conversion unit 517 are executed. Further, the generated BW binary image is stored in the RAM 53. Then, the CPU 51 determines whether or not the binary determination result of the binary conversion unit 517 is “blank image” (S72).

二値変換部517の二値判定の結果が「白紙画像」である場合には(S72:YES)、CPU51は、RAM53に保存されているBW二値画像をRAM53から削除する(S74)。そして、CPU51は、マニュアル時出力処理を終了する。   When the binary determination result of the binary conversion unit 517 is “blank image” (S72: YES), the CPU 51 deletes the BW binary image stored in the RAM 53 from the RAM 53 (S74). Then, the CPU 51 ends the manual output process.

二値変換部517の二値判定の結果が「白紙画像」でない場合には(S72:NO)、CPU51は、RAM53に保存されているBW二値画像を予め指定された出力先に出力する(S73)。そして、CPU51は、マニュアル時出力処理を終了する。   When the result of the binary determination by the binary conversion unit 517 is not “blank paper image” (S72: NO), the CPU 51 outputs the BW binary image stored in the RAM 53 to a predesignated output destination ( S73). Then, the CPU 51 ends the manual output process.

「スキャンタイプ:BW」が設定されていない場合には(S71:NO)、白紙判定部514の機能による多値判定が実行される。そして、CPU51は、白紙判定部514の多値判定の結果が「白紙画像」であるか否かを判断する(S75)。   When “scan type: BW” is not set (S71: NO), multi-value determination by the function of the blank sheet determination unit 514 is executed. Then, the CPU 51 determines whether or not the result of the multi-value determination by the blank sheet determination unit 514 is “blank sheet image” (S75).

白紙判定部514の多値判定の結果が「白紙画像」である場合には(S75:YES)、CPU51は、マニュアル時出力処理を終了する。   When the result of the multi-value determination by the blank page determination unit 514 is “blank page image” (S75: YES), the CPU 51 ends the manual output process.

白紙判定部514の多値判定の結果が「白紙画像」でない場合には(S75:NO)、CPU51は、「スキャンタイプ:グレー」が設定されているか否かを判断する(S76)。   When the result of the multi-value determination by the blank page determination unit 514 is not “blank page image” (S75: NO), the CPU 51 determines whether “scan type: gray” is set (S76).

「スキャンタイプ:グレー」が設定されている場合には(S76:YES)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S77)。そして、CPU51は、マニュアル時出力処理を終了する。   When “scan type: gray” is set (S76: YES), the CPU 51 generates a gray Jpeg multi-value image by the function of the Jpeg compression unit 516, and the gray Jpeg multi-value image is designated in advance. To the output destination (S77). Then, the CPU 51 ends the manual output process.

「スキャンタイプ:グレー」が設定されていない場合には(S76:NO)、CPU51は、Jpeg圧縮部516の機能により、カラーJpeg多値画像を生成し、そのカラーJpeg多値画像を予め指定された出力先に出力する(S78)。そして、CPU51は、マニュアル時出力処理を終了する。   When “scan type: gray” is not set (S76: NO), the CPU 51 generates a color Jpeg multi-value image by the function of the Jpeg compression unit 516, and the color Jpeg multi-value image is designated in advance. To the output destination (S78). Then, the CPU 51 ends the manual output process.

<白紙非除去処理> <Blank paper non-removal processing>

図3に示されるステップS8で実行される白紙非除去処理の流れは、図11に示されている。   The flow of blank sheet non-removal processing executed in step S8 shown in FIG. 3 is shown in FIG.

白紙非除去処理では、CPU51は、「スキャンタイプ:オート」が設定されているか否かを判断する(S801)。   In the blank sheet non-removal process, the CPU 51 determines whether or not “scan type: auto” is set (S801).

「スキャンタイプ:オート」が設定されている場合には(S801:YES)、CPU51は、色数検出部515の判定の結果が「BW画像」であるか否かを判断する(S802)。   If “scan type: auto” is set (S801: YES), the CPU 51 determines whether or not the result of determination by the color number detection unit 515 is “BW image” (S802).

色数検出部515の判定の結果が「BW画像」でない場合には(S802:NO)、CPU51は、色数検出部515の判定の結果が「カラー画像」であるか否かを判断する(S803)。   When the determination result of the color number detection unit 515 is not “BW image” (S802: NO), the CPU 51 determines whether or not the determination result of the color number detection unit 515 is “color image” ( S803).

色数検出部515の判定の結果が「カラー画像」である場合には(S803:YES)、CPU51は、Jpeg圧縮部516の機能により、カラーJpeg多値画像を生成し、そのカラーJpeg多値画像を予め指定された出力先に出力する(S804)。そして、CPU51は、白紙非除去処理を終了する。   When the determination result of the color number detection unit 515 is “color image” (S803: YES), the CPU 51 generates a color Jpeg multi-value image by the function of the Jpeg compression unit 516, and the color Jpeg multi-value. The image is output to an output destination designated in advance (S804). Then, the CPU 51 ends the blank sheet non-removal process.

色数検出部515の判定の結果が「BW画像」でもなくカラーでもない場合には(S803:NO)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S805)。そして、CPU51は、白紙非除去処理を終了する。   When the determination result of the color number detection unit 515 is neither “BW image” nor color (S803: NO), the CPU 51 generates a gray Jpeg multi-valued image by the function of the Jpeg compression unit 516, and the gray The Jpeg multi-valued image is output to an output destination designated in advance (S805). Then, the CPU 51 ends the blank sheet non-removal process.

色数検出部515の判定の結果が「BW画像」である場合には(S802:YES)、CPU51は、二値変換部517の機能により、BW二値画像を生成し、そのBW二値画像を予め指定された出力先に出力する(S806)。そして、CPU51は、白紙非除去処理を終了する。   When the determination result of the color number detection unit 515 is “BW image” (S802: YES), the CPU 51 generates a BW binary image by the function of the binary conversion unit 517, and the BW binary image. Is output to an output destination designated in advance (S806). Then, the CPU 51 ends the blank sheet non-removal process.

「スキャンタイプ:オート」が設定されていない場合には(S801:NO)、CPU51は、「スキャンタイプ:カラー」が設定されているか否かを判断する(S807)。   If “scan type: auto” is not set (S801: NO), the CPU 51 determines whether “scan type: color” is set (S807).

「スキャンタイプ:カラー」が設定されていない場合には(S807:NO)、CPU51は、「スキャンタイプ:BW」が設定されているか否かを判断する(S808)。   If “scan type: color” is not set (S807: NO), the CPU 51 determines whether “scan type: BW” is set (S808).

「スキャンタイプ:BW」に設定されている場合には(S808:YES)、CPU51は、二値変換部517の機能により、BW二値画像を生成し、そのBW二値画像を予め指定された出力先に出力する(S809)。そして、CPU51は、白紙非除去処理を終了する。   When “scan type: BW” is set (S808: YES), the CPU 51 generates a BW binary image by the function of the binary conversion unit 517, and the BW binary image is designated in advance. The data is output to the output destination (S809). Then, the CPU 51 ends the blank sheet non-removal process.

「スキャンタイプ:カラー」にもBWにも設定されていない場合には(S808:NO)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S810)。そして、CPU51は、白紙非除去処理を終了する。   When neither “scan type: color” nor BW is set (S808: NO), the CPU 51 generates a gray Jpeg multi-value image by the function of the Jpeg compression unit 516, and the gray Jpeg multi-value image. Is output to an output destination designated in advance (S810). Then, the CPU 51 ends the blank sheet non-removal process.

「スキャンタイプ:カラー」が設定されている場合には(S807:YES)、CPU51は、Jpeg圧縮部516の機能により、カラーJpeg多値画像を生成し、そのカラーJpeg多値画像を予め指定された出力先に出力する(S811)。そして、CPU51は、白紙除去処理を終了する。   When “scan type: color” is set (S807: YES), the CPU 51 generates a color Jpeg multi-value image by the function of the Jpeg compression unit 516, and the color Jpeg multi-value image is designated in advance. To the output destination (S811). Then, the CPU 51 ends the blank paper removal process.

<二値判定処理(その1)> <Binary determination processing (part 1)>

二値変換部517による二値判定処理の流れは、図12に示されている。   The flow of the binary determination process by the binary conversion unit 517 is shown in FIG.

二値判定処理では、CPU51は、BW二値画像における黒画素のドット数が所定の閾値、たとえば、10ドット以上であるか否かを判定する(S101)。   In the binary determination process, the CPU 51 determines whether or not the number of black pixels in the BW binary image is a predetermined threshold, for example, 10 dots or more (S101).

黒画素のドット数が10ドット以上である場合には(S101:YES)、CPU51は、BW二値画像が白紙でないと判定し、その判定結果をRAM53に保存する(S102)。   When the number of dots of black pixels is 10 dots or more (S101: YES), the CPU 51 determines that the BW binary image is not blank, and stores the determination result in the RAM 53 (S102).

黒画素のドット数が10ドットより少ない場合には(S101:NO)、CPU51は、BW二値画像が白紙であると判定し、その判定結果をRAM53に保存する(S103)。   When the number of dots of black pixels is less than 10 (S101: NO), the CPU 51 determines that the BW binary image is blank, and stores the determination result in the RAM 53 (S103).

<作用効果> <Effect>

以上のように、画像取得部20により多値画像が取得されて画像処理が行われた後、画像処理後の画像が生成されると、「スキャンタイプ:オート」または「スキャンタイプ:BW」が設定されている場合は、二値変換部517による二値変換および二値判定が実行される。二値変換部517による二値変換では、単純二値化での二値変換により画像処理後の画像がBW二値画像に変換される。二値変換部517による二値判定では、このBW二値画像に基づいて、当該BW二値画像が白紙画像であるか否かが判定される。   As described above, after a multi-value image is acquired by the image acquisition unit 20 and image processing is performed, when an image after image processing is generated, “scan type: auto” or “scan type: BW” is set. If set, binary conversion and binary determination by the binary conversion unit 517 are executed. In binary conversion by the binary conversion unit 517, an image after image processing is converted into a BW binary image by binary conversion by simple binarization. In the binary determination by the binary conversion unit 517, based on the BW binary image, it is determined whether or not the BW binary image is a blank paper image.

一方、「スキャンタイプ:オート」、「スキャンタイプ:カラー」または「スキャンタイプ:グレー」に設定されている場合、Jpeg圧縮部516の処理および白紙判定部514による多値判定が実行される。Jpeg圧縮部516の処理では、画像処理後の画像がカラーJpeg多値画像またはグレーJpeg多値画像に変換される。白紙判定部514による多値判定では、画像処理後の画像に基づいて、当該画像処理後の画像が白紙画像であるか否かが判定される。   On the other hand, when “scan type: auto”, “scan type: color”, or “scan type: gray” is set, the processing of the Jpeg compression unit 516 and the multi-value determination by the blank sheet determination unit 514 are executed. In the processing of the Jpeg compression unit 516, the image after image processing is converted into a color Jpeg multi-valued image or a gray Jpeg multi-valued image. In the multi-value determination by the blank paper determination unit 514, based on the image after image processing, it is determined whether the image after image processing is a blank paper image.

これにより、BW二値画像が出力されるときは、白紙判定部514による多値判定が行われず、二値変換部517による二値判定が行われる。また、カラーJpeg多値画像またはグレーJpeg多値画像が出力されるときは、二値変換部517による二値判定が行わず、白紙判定部514による多値判定が行われる。   Thereby, when the BW binary image is output, the multi-value determination by the blank paper determination unit 514 is not performed, and the binary determination by the binary conversion unit 517 is performed. Further, when a color Jpeg multi-valued image or a gray Jpeg multi-valued image is output, binary determination by the binary conversion unit 517 is not performed, and multi-value determination by the blank paper determination unit 514 is performed.

BW二値画像が白紙画像であると判定された場合は、当該BW二値画像は出力されない。そのため、二値判定部517による二値判定の結果と白紙除去機能により画像が出力されないという結果とが一致する。一方、BW二値画像が白紙画像でないと判定された場合には、当該BW二値画像が出力される。そのため、二値変換部517による二値判定の結果とBW二値画像が出力されるという結果が一致する。   When it is determined that the BW binary image is a blank image, the BW binary image is not output. Therefore, the result of the binary determination by the binary determination unit 517 coincides with the result that the image is not output by the blank paper removal function. On the other hand, when it is determined that the BW binary image is not a blank image, the BW binary image is output. Therefore, the result of the binary determination by the binary conversion unit 517 and the result that the BW binary image is output coincide.

多値判定にて画像処理画像が白紙画像であると判定された場合には、画像は出力されない。そのため、多値判定の結果と白紙除去により画像が出力されないという結果とが一致する。一方、多値判定にて画像処理後の画像が白紙画像でないと判定されたば場合には、カラーJpeg多値画像またはグレーJpeg多値画像が出力される。そのため、多値判定処理による白紙判定部の多値判定の結果と多値画像が出力されるという結果が一致する。   If it is determined by multi-value determination that the image processed image is a blank image, no image is output. For this reason, the result of the multi-value determination and the result that the image is not output due to the blank sheet removal match. On the other hand, if it is determined in the multi-value determination that the image after image processing is not a blank image, a color Jpeg multi-value image or a gray Jpeg multi-value image is output. Therefore, the result of the multi-value determination of the blank paper determination unit by the multi-value determination process and the result that the multi-value image is output coincide.

よって、白紙判定結果と矛盾しない出力結果を期待することができる。   Therefore, an output result that is consistent with the blank sheet determination result can be expected.

また、「スキャンタイプ:オート」に設定されている場合、カラーJpeg多値画像の生成またはグレーJpeg多値画像の生成は、白紙判定部514による多値判定の結果および色数検出部515による判定の結果が出てから実行される。したがって、カラーJpeg多値画像およびグレーJpeg多値画像が不必要に生成されて、それらがRAM53に保存されることによりRAM53の記憶領域が圧迫される可能性を低減することができる。   When “scan type: auto” is set, the generation of the color Jpeg multi-valued image or the gray Jpeg multi-valued image is determined by the multi-value determination result by the blank paper determination unit 514 and the determination by the color number detection unit 515. It is executed after the result of. Therefore, it is possible to reduce the possibility that the storage area of the RAM 53 is compressed because the color Jpeg multi-valued image and the gray Jpeg multi-valued image are unnecessarily generated and stored in the RAM 53.

制御部50は、二値変換部517による二値判定において、二値変換により黒画素に変換された画素数がたとえば、10ドット以上である場合に、BW二値画像が白紙画像でないと判定する。   In the binary determination by the binary conversion unit 517, the control unit 50 determines that the BW binary image is not a blank image when the number of pixels converted into black pixels by binary conversion is, for example, 10 dots or more. .

この構成によれば、二値変換により黒画素に変換された画素数を計数し、その計数した画素数と閾値(たとえば、10ドット)とを比較することにより、BW二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   According to this configuration, by counting the number of pixels converted into black pixels by binary conversion and comparing the counted number of pixels with a threshold (for example, 10 dots), the BW binary image is a blank image. It can be easily determined whether or not there is. Further, since the binary determination method is simple, it is possible to expect a high speed binary determination process.

<二値判定処理(その2)> <Binary determination processing (part 2)>

二値変換部517の機能により生成されるBW二値画像が圧縮されて出力される場合、二値変換部517による二値判定処理は、図13に示される処理であってもよい。   When the BW binary image generated by the function of the binary conversion unit 517 is compressed and output, the binary determination process by the binary conversion unit 517 may be the process shown in FIG.

BW二値画像に含まれる白画素の数が多いほど、BW二値画像の圧縮率が高くなり、圧縮後のBW二値画像のサイズが小さくなる。そこで、CPU51は、BW二値画像のファイルサイズが所定の閾値、たとえば、1kバイト以上であるか否かを判定する(S201)。   As the number of white pixels included in the BW binary image increases, the compression rate of the BW binary image increases and the size of the BW binary image after compression decreases. Therefore, the CPU 51 determines whether or not the file size of the BW binary image is a predetermined threshold, for example, 1 kbyte or more (S201).

BW二値画像のファイルサイズが1kバイト以上である場合には(S201:YES)、CPU51は、BW二値画像が白紙画像でないと判定し、その判定結果をRAM53に保存する(S202)。   When the file size of the BW binary image is 1 kbyte or more (S201: YES), the CPU 51 determines that the BW binary image is not a blank image, and stores the determination result in the RAM 53 (S202).

BW二値画像のファイルサイズが1kバイトより少ない場合には(S201:NO)、CPU51は、BW二値画像が白紙画像であると判定し、その判定結果をRAM53に保存する(S203)。   When the file size of the BW binary image is smaller than 1 kbyte (S201: NO), the CPU 51 determines that the BW binary image is a blank image, and stores the determination result in the RAM 53 (S203).

制御部50は、圧縮処理により圧縮されたBW二値画像をRAM53に記憶する。そして、二値判定処理において、圧縮処理により圧縮されたBW二値画像のサイズが1kバイト以上である場合に、BW二値画像が白紙画像でないと判定する。   The control unit 50 stores the BW binary image compressed by the compression process in the RAM 53. In the binary determination process, if the size of the BW binary image compressed by the compression process is 1 kbyte or more, it is determined that the BW binary image is not a blank image.

この構成によれば、圧縮後のBW二値画像のサイズと閾値(たとえば、1kバイト)とを比較することにより、BW二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   According to this configuration, it is possible to easily determine whether or not the BW binary image is a blank image by comparing the size of the compressed BW binary image with a threshold (for example, 1 kbyte). . Further, since the binary determination method is simple, it is possible to expect a high speed binary determination process.

<変形例> <Modification>

以上、本発明の実施の形態について説明したが、本発明は、さらに他の形態で実施することもできる。   As mentioned above, although embodiment of this invention was described, this invention can also be implemented with another form.

前述の実施形態では、CPU51が各処理を実行する場合について説明した。しかしながら、ASIC55が各処理を実行してもよいし、CPU51とASIC55とが協働して各処理を実行してもよい。また、制御部50が複数のCPUを備え、複数のCPUが協働して各処理を実行してもよい。   In the above-described embodiment, the case where the CPU 51 executes each process has been described. However, the ASIC 55 may execute each process, or the CPU 51 and the ASIC 55 may execute each process in cooperation. The control unit 50 may include a plurality of CPUs, and the plurality of CPUs may cooperate to execute each process.

また、インターネットに接続されたPC(コンピュータ)に、MFP1のCPU51が実行する各処理のプログラムがインストールされて、PCにおいて、CPU51が実行する各処理と同様の処理が実行されてもよい。   Further, a program for each process executed by the CPU 51 of the MFP 1 may be installed in a PC (computer) connected to the Internet, and the same process as each process executed by the CPU 51 may be executed on the PC.

さらには、インターネットに接続されたPCに限らず、LAN(Local Area
Network)を介してMFP1と接続されたPC(図示せず)に、MFP1のCPU51が実行する各処理のプログラムがインストールされて、そのPCにおいて、CPU51が実行する各処理と同様の処理が実行されてもよい。
Furthermore, it is not limited to a PC connected to the Internet.
A program for each process executed by the CPU 51 of the MFP 1 is installed on a PC (not shown) connected to the MFP 1 via the Network, and the same process as the process executed by the CPU 51 is executed on the PC. May be.

また、前述の実施形態では、画像処理装置の一例として、画像形成部10による印刷機能および画像読取部20による読取機能を有するMFP1を取り上げたが、画像処理装置は、読取機能を有する読取装置など、単機能の装置であってもよい。   In the above-described embodiment, the MFP 1 having the printing function by the image forming unit 10 and the reading function by the image reading unit 20 is taken up as an example of the image processing device. However, the image processing device may be a reading device having a reading function. A single-function device may be used.

その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。   In addition, various design changes can be made to the above-described configuration within the scope of the matters described in the claims.

1 MFP
20 画像読取部
50 制御部
514 白紙判定部
516 Jpeg圧縮部
517 二値変換部
1 MFP
20 Image Reading Unit 50 Control Unit 514 Blank Paper Determination Unit 516 Jpeg Compression Unit 517 Binary Conversion Unit

Claims (6)

取得画像として多値画像を取得する取得部と、
制御部と
を備え、
前記制御部は、
前記取得画像を二値画像に変換する二値変換処理と、
前記二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かを判定する二値判定処理と、
前記二値判定処理にて前記二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像を出力せず、前記二値判定処理にて前記二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像を出力する二値出力処理と
を実行する、画像処理装置。
An acquisition unit that acquires a multi-valued image as an acquired image;
A control unit,
The controller is
A binary conversion process for converting the acquired image into a binary image;
Based on the binary image obtained by the binary conversion process, a binary determination process for determining whether the binary image is a blank paper image;
If it is determined in the binary determination process that the binary image obtained by the binary conversion process is a blank image, the binary image is not output, and the binary determination process does not output the binary image. An image processing apparatus that executes a binary output process for outputting a binary image when it is determined that the binary image obtained by the value conversion process is not a blank image.
請求項1に記載の画像処理装置であって、
前記制御部は、
前記二値判定処理において、前記二値変換処理により黒画素に変換された画素数が所定の閾値以上である場合に、前記二値変換処理により得られた二値画像が白紙画像でないと判定する、画像処理装置。
The image processing apparatus according to claim 1,
The controller is
In the binary determination process, when the number of pixels converted into black pixels by the binary conversion process is equal to or greater than a predetermined threshold, it is determined that the binary image obtained by the binary conversion process is not a blank image. , Image processing device.
請求項1または2に記載の画像処理装置であって、
前記制御部は、
前記二値変換処理により得られる二値画像を圧縮する圧縮処理を実行し、
前記二値判定処理において、前記圧縮処理により圧縮された二値画像のサイズが所定の閾値以上である場合に、前記二値変換処理により得られた二値画像が白紙画像でないと判定する、画像処理装置。
The image processing apparatus according to claim 1, wherein:
The controller is
Performing a compression process to compress the binary image obtained by the binary conversion process;
In the binary determination process, when the size of the binary image compressed by the compression process is equal to or larger than a predetermined threshold, the binary image obtained by the binary conversion process is determined not to be a blank image. Processing equipment.
請求項1〜3のいずれか一項に記載の画像処理装置であって、
前記制御部は、
前記取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、
多値画像を出力する多値出力処理と、
前記取得画像を前記多値出力処理にて出力される多値画像に変換する多値変換処理と、を実行し、
前記多値出力処理では、前記多値判定処理にて前記取得画像が白紙画像であると判定された場合には、画像を出力せず、前記多値判定処理にて前記取得画像が白紙画像でないと判定された場合には、前記多値変換処理により得られる多値画像を出力する、画像処理装置。
The image processing apparatus according to any one of claims 1 to 3,
The controller is
Multi-value determination processing for determining whether the acquired image is a blank image based on the acquired image;
Multi-value output processing to output a multi-value image;
A multi-value conversion process for converting the acquired image into a multi-value image output in the multi-value output process,
In the multi-value output process, if the acquired image is determined to be a blank image in the multi-value determination process, no image is output, and the acquired image is not a blank image in the multi-value determination process. An image processing device that outputs a multi-valued image obtained by the multi-value conversion process.
請求項4に記載の画像処理装置であって、
前記制御部は、
前記多値判定処理において、前記取得画像の輝度成分のデータに基づいて、前記取得画像が白紙画像であるか否かを判定する、画像処理装置。
The image processing apparatus according to claim 4,
The controller is
An image processing apparatus that determines whether or not the acquired image is a blank image based on luminance component data of the acquired image in the multilevel determination process.
取得画像として多値画像を取得する取得部を備える画像処理装置と接続されるコンピュータに、
前記取得画像を二値画像に変換する二値変換処理と、
前記二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かを判定する二値判定処理と、
前記二値判定処理にて前記二値変換処理により得られた二値画像が白紙画像であると判定された場合には、当該二値画像を出力せず、前記二値判定処理にて前記二値変換処理により得られた二値画像が白紙画像でないと判定された場合には、当該二値画像を出力する二値出力処理と
を実行させる、画像処理プログラム。
In a computer connected to an image processing apparatus including an acquisition unit that acquires a multi-valued image as an acquired image,
A binary conversion process for converting the acquired image into a binary image;
Based on the binary image obtained by the binary conversion process, a binary determination process for determining whether the binary image is a blank paper image;
If it is determined in the binary determination process that the binary image obtained by the binary conversion process is a blank image, the binary image is not output, and the binary determination process does not output the binary image. An image processing program for executing a binary output process for outputting a binary image when it is determined that the binary image obtained by the value conversion process is not a blank image.
JP2013178914A 2013-08-30 2013-08-30 Image processing apparatus and image processing program Active JP6149613B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2013178914A JP6149613B2 (en) 2013-08-30 2013-08-30 Image processing apparatus and image processing program
US14/472,739 US9241085B2 (en) 2013-08-30 2014-08-29 Image forming apparatus having improved blank paper image detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013178914A JP6149613B2 (en) 2013-08-30 2013-08-30 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2015050499A true JP2015050499A (en) 2015-03-16
JP6149613B2 JP6149613B2 (en) 2017-06-21

Family

ID=52700199

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013178914A Active JP6149613B2 (en) 2013-08-30 2013-08-30 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP6149613B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017017659A (en) * 2015-07-06 2017-01-19 キヤノン株式会社 Image processing device, image processing method, and program
JP2018129861A (en) * 2018-05-09 2018-08-16 キヤノン株式会社 Information processing unit, control method and program of information processing unit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60257661A (en) * 1984-06-05 1985-12-19 Fuji Xerox Co Ltd Facsimile equipment
JPH10229484A (en) * 1997-02-12 1998-08-25 Oki Data:Kk Image reader
JP2000299758A (en) * 1999-04-13 2000-10-24 Ricoh Co Ltd Method for detecting white paper
JP2013138378A (en) * 2011-12-28 2013-07-11 Brother Ind Ltd Image processing device and image processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60257661A (en) * 1984-06-05 1985-12-19 Fuji Xerox Co Ltd Facsimile equipment
JPH10229484A (en) * 1997-02-12 1998-08-25 Oki Data:Kk Image reader
JP2000299758A (en) * 1999-04-13 2000-10-24 Ricoh Co Ltd Method for detecting white paper
JP2013138378A (en) * 2011-12-28 2013-07-11 Brother Ind Ltd Image processing device and image processing program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017017659A (en) * 2015-07-06 2017-01-19 キヤノン株式会社 Image processing device, image processing method, and program
US9924046B2 (en) 2015-07-06 2018-03-20 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and storage medium
JP2018129861A (en) * 2018-05-09 2018-08-16 キヤノン株式会社 Information processing unit, control method and program of information processing unit

Also Published As

Publication number Publication date
JP6149613B2 (en) 2017-06-21

Similar Documents

Publication Publication Date Title
US7940984B2 (en) Image processing apparatus, image processing method, and computer program product
JP6012123B2 (en) Color conversion apparatus, color conversion program, and color conversion method
JP7338002B2 (en) Image processing device, image processing method, and program
EP3058548B1 (en) Image processing apparatus, image processing system, image processing method, and recording medium
JP6149613B2 (en) Image processing apparatus and image processing program
US11736652B2 (en) Image processing apparatus, image processing method, and storage medium
US9241085B2 (en) Image forming apparatus having improved blank paper image detection
US20150022865A1 (en) Image processing apparatus
US11972594B2 (en) Image processing apparatus, recording medium having image processing program recorded thereon, and image processing method for image data size reduction
JP6652176B2 (en) Image reading device and image processing program
JP2008271361A (en) Image processor and image processing method
JP2011176463A (en) Image processor and image forming apparatus
JP7211209B2 (en) IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD
JP2016092492A (en) Image reader
JP5361830B2 (en) Image processing device
US9350883B2 (en) Color/monochromatic determination
JP2017199976A (en) Image processing apparatus, image processing method and program
JP5675867B2 (en) Image forming apparatus
JP6210322B2 (en) Image forming apparatus
JP5062633B2 (en) Image processing apparatus, image processing method, and program
JP2023157146A (en) printer and program
JP2015126441A (en) Image output apparatus and program
JP2015005835A (en) Image processing device, image forming device, and recording medium
JP2010103728A (en) Image processing device and image processing method
JP2004056327A (en) Image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160309

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170207

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170407

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170508

R150 Certificate of patent or registration of utility model

Ref document number: 6149613

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150