JP6652176B2 - Image reading device and image processing program - Google Patents

Image reading device and image processing program Download PDF

Info

Publication number
JP6652176B2
JP6652176B2 JP2018187184A JP2018187184A JP6652176B2 JP 6652176 B2 JP6652176 B2 JP 6652176B2 JP 2018187184 A JP2018187184 A JP 2018187184A JP 2018187184 A JP2018187184 A JP 2018187184A JP 6652176 B2 JP6652176 B2 JP 6652176B2
Authority
JP
Japan
Prior art keywords
image
binary
blank
output
valued
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2018187184A
Other languages
Japanese (ja)
Other versions
JP2019024232A (en
Inventor
寛子 石川
寛子 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Publication of JP2019024232A publication Critical patent/JP2019024232A/en
Application granted granted Critical
Publication of JP6652176B2 publication Critical patent/JP6652176B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

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

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

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

しかしながら、画像処理装置で実行される処理の内容によっては、原稿が白紙原稿でないと判定されたにもかかわらず、白紙の画像が出力され、白紙判定結果と出力結果とが一致しないことがある。たとえば、原稿の画像を二値画像に変換する処理を実行した場合に、原稿のすべての画素が白画素に変換されて、結果として、白紙の画像が出力されることがある。   However, depending on the content of processing executed by the image processing apparatus, a blank image is 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 a document image to a binary image is performed, all pixels of the document may be converted to 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 that can expect an output result that does not contradict a blank page determination result.

前記の目的を達成するため、本発明の一の局面に係る画像処理装置は、取得画像として多値画像を取得する取得部と、制御部とを備え、制御部は、閾値を用いた二値変換によって、取得画像を二値画像に変換する第1変換処理と、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換するか、または、取得画像を多値画像に変換する第2変換処理とを実行可能であり、取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、白紙画像を除去する白紙除去を有効にするか否かの設定を受け付ける受付処理と、取得画像が二値画像と判断するための条件を満たしているか否かを判断する判断処理とを実行し、受付処理にて白紙除去を無効にする設定を受け付けた場合において、判断処理にて条件を満たすと判断した場合は、第1変換処理による変換後の画像を出力する第1出力処理を実行し、受付処理にて白紙除去を有効にする設定を受け付けた場合において、多値判定処理にて取得画像が白紙画像であると判定した場合には、画像を出力せず、判断処理にて条件を満たすと判断し、かつ、多値判定処理にて取得画像が白紙画像でないと判定した場合には、第2変換処理による変換後の画像を出力する第2出力処理を実行する。   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 multivalued image as an acquired image, and a control unit, and the control unit performs a binary process using a threshold. The acquired image is converted into a binary image by a first conversion process that converts the acquired image into a binary image by conversion, and a binary conversion using an error diffusion method or a binary conversion using a threshold different from the first conversion process. Or, a second conversion process of converting the acquired image into a multi-valued image can be executed, based on the acquired image, a multi-valued determination process of determining whether the acquired image is a blank image, A reception process for receiving a setting of whether to enable blank page removal for removing a blank image and a determination process for determining whether an acquired image satisfies a condition for determining a binary image are executed. Setting to disable blank page removal in reception processing If it is determined that the condition is satisfied in the determination process, the first output process of outputting the image after the first conversion process is performed, and the setting for enabling blank sheet removal in the reception process is performed. If it is determined that the acquired image is a blank image in the multi-value determination process, the image is not output, it is determined that the condition is satisfied in the determination process, and the multi-value determination process is performed. If it is determined that the acquired image is not a blank image, a second output process for outputting the image after the conversion by the second conversion process is executed.

この構成によれば、取得部により取得画像として多値画像が取得されると、多値判定処理および判断処理が実行される。多値判定処理では、取得画像が白紙画像であるか否かが判定される。判断処理では、取得画像が二値画像と判断するための条件を満たしているか否かが判断される。   According to this configuration, when the acquisition unit acquires the multi-valued image as the acquired image, the multi-value determination process and the determination process are performed. In the multi-value determination process, it is determined whether the acquired image is a blank image. In the determination processing, it is determined whether or not the acquired image satisfies a condition for determining a binary image.

白紙画像を除去する白紙除去の有効/無効を設定することができる。   It is possible to set valid / invalid of blank paper removal for removing a blank image.

白紙除去が無効に設定されている場合において、取得画像が二値画像と判断するための条件を満たしている場合、第1変換処理による変換後の画像が出力される。第1変換処理は、閾値を用いた二値変換によって、取得画像を二値画像に変換する処理である。白紙除去が無効にされているので、第1変換処理により取得画像の全画素が白画素に変換されて、白紙画像が出力されても、出力結果に問題はない。   When blank page removal is set to be invalid, and the acquired image satisfies the condition for determining a binary image, the image converted by the first conversion process is output. The first conversion process is a process of converting an acquired image into a binary image by a binary conversion using a threshold. Since blank page removal is disabled, even if all pixels of the acquired image are converted to white pixels by the first conversion process and the blank image is output, there is no problem in the output result.

白紙除去が有効に設定されている場合において、取得画像が二値画像と判断するための条件を満たし、かつ、取得画像が白紙画像であると判定された場合、画像が出力されない。そのため、白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。   When blank page removal is set to be valid, if the condition for determining the acquired image as a binary image is satisfied and it is determined that the acquired image is a blank image, no image is output. Therefore, the blank page determination result matches the result that no image is output due to blank page removal.

また、白紙除去が有効に設定されている場合において、取得画像が二値画像と判断するための条件を満たし、かつ、取得画像が白紙画像でないと判定された場合には、第2変換処理による変換後の画像が出力される。第2変換処理は、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換する処理であるか、または、取得画像を多値画像に変換する処理である。そのため、第2変換処理では、第1変換処理よりも、取得画像の各画素が白画素に変換されることを抑制できる。その結果、取得画像が白紙画像でないと判定されたにもかかわらず、白紙画像が出力されることを抑制できる。   In addition, in a case where blank page removal is set to be valid, if it is determined that the acquired image satisfies the condition for determining a binary image and that the acquired image is not a blank image, the second conversion process is performed. The converted image is output. The second conversion process is a process of converting an obtained image into a binary image by a binary conversion using an error diffusion method or a binary conversion using a threshold different from that of the first conversion process, or converting the obtained image into a multi-valued image. This is the process of converting to an image. Therefore, in the second conversion process, each pixel of the acquired image can be suppressed from being converted into a white pixel as compared with the first conversion process. As a result, it is possible to suppress output of a blank image even though it is determined that the acquired image is not a blank image.

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

制御部は、第1変換処理による変換後の画像に基づいて、当該画像が白紙画像であるか否かを判定する二値判定処理を実行し、多値判定処理にて取得画像が白紙画像でないと判定した場合において、二値判定処理にて第1変換処理による変換後の画像が白紙画像でないと判定した場合は、当該変換後の画像を出力し、二値判定処理にて第1変換処理による変換後の画像が白紙画像であると判定した場合は、第2変換処理による変換後の画像を出力してもよい。   The control unit executes a binary determination process for determining whether or not the image is a blank image based on the image after the conversion by the first conversion process, and the acquired image is not a blank image in the multi-value determination process. When it is determined that the image converted by the first conversion process is not a blank image in the binary determination process, the converted image is output, and the first conversion process is performed by the binary determination process. If it is determined that the image after the conversion is a blank image, the image after the conversion by the second conversion process may be output.

この構成によれば、多値判定処理において、取得画像が白紙画像でないと判定されたにもかかわらず、二値判定処理において、第1変換処理による変換後の画像が白紙画像であると判定された場合には、第2変換処理による変換後の画像が出力される。これにより、取得画像による白紙判定結果と矛盾しない出力結果をより期待することができる。   According to this configuration, the image after the conversion by the first conversion process is determined to be a blank image in the binary determination process, even though the acquired image is determined to be not a blank image in the multi-value determination process. In this case, the image after the conversion by the second conversion process is output. As a result, it is possible to more expect an output result that does not contradict the blank sheet determination result based on the acquired image.

本発明の他の局面に係る画像処理装置は、取得画像として多値画像を取得する取得部と、制御部とを備え、制御部は、取得画像を二値画像に変換する二値変換処理と、取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、取得画像が二値画像と判断するための条件を満たしているか否かを判断する判断処理と、多値判定処理にて取得画像が白紙画像でないと判定し、判断処理にて条件を満たすと判断した場合に、二値変換処理により得られた二値画像が白紙画像であるか否かを判定する二値判定処理とを実行する。   An image processing apparatus according to another aspect of the present invention includes an acquisition unit that acquires a multivalued image as an acquired image, and a control unit, and the control unit performs a binary conversion process that converts the acquired image into a binary image. A multi-value determination process for determining whether or not the obtained image is a blank image based on the obtained image, and a determination process for determining whether or not the obtained image satisfies a condition for determining a binary image When it is determined that the obtained image is not a blank image in the multi-value determination process, and it is determined that the condition is satisfied in the determination process, whether the binary image obtained by the binary conversion process is a blank image Is performed.

この構成によれば、取得部により取得画像として多値画像が取得されると、二値変換処理が実行される。二値変換処理では、取得画像が二値画像に変換される。また、多値判定処理および判断処理が実行される。多値判定処理では、取得画像が白紙画像であるか否かが判定される。判断処理では、取得画像が二値画像と判断するための条件を満たしているか否かが判断される。   According to this configuration, when a multivalued image is acquired as an acquired image by the acquiring unit, a binary conversion process is executed. In the binary conversion processing, the acquired image is converted into a binary image. Further, a multi-value determination process and a determination process are performed. In the multi-value determination process, it is determined whether the acquired image is a blank image. In the determination processing, it is determined whether or not the acquired image satisfies a condition for determining a binary image.

多値判定処理にて取得画像が白紙画像でないと判定され、判断処理にて条件を満たすと判断された場合、二値判定処理が実行される。二値判定処理では、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かが判定される。   If it is determined in the multi-value determination process that the acquired image is not a blank image, and if it is determined in the determination process that the condition is satisfied, a binary determination process is performed. In the binary determination process, whether or not the binary image is a blank image is determined based on the binary image obtained by the binary conversion process.

これにより、たとえば、二値判定処理にて二値画像が白紙画像であると判定された場合に、当該二値画像が出力されないようにすれば、二値判定処理による白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。一方、多値判定処理にて取得画像が白紙画像でないと判定され、さらに、二値判定処理にて二値画像が白紙画像でないと判定された場合には、当該二値画像が出力されるようにすれば、多値判定処理および二値判定処理による白紙判定結果と二値画像が出力されるという結果が一致する。   Thereby, for example, when the binary image is determined to be a blank image in the binary determination process, if the binary image is not output, the blank determination result by the binary determination process and the blank paper removal The result that no image is output matches. On the other hand, if it is determined in the multi-value determination process that the acquired image is not a blank image, and if it is determined in the binary determination process that the binary image is not a blank image, the binary image is output. In this case, the blank sheet determination result obtained by the multi-value determination processing and the binary determination processing matches the result that the binary image is output.

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

二値判定処理にて二値画像が白紙画像であると判定された場合には、当該二値画像が削除されてもよい。   When the binary image is determined to be a blank image in the binary determination process, the binary image may be deleted.

これにより、二値判定処理にて二値画像が白紙画像であると判定された場合に、当該二値画像が出力されないようにすることができる。   Accordingly, when the binary image is determined to be a blank image in the binary determination process, the binary image can be prevented from being output.

二値変換処理は、閾値を用いた二値変換によって、取得画像を二値画像に変換する第1変換処理であり、制御部は、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換するか、または、取得画像を多値画像に変換する第2変換処理を実行可能であり、二値判定処理にて二値変換処理により得られた二値画像が白紙画像であると判定された場合には、第2変換処理による変換後の画像を出力する第2出力処理を実行してもよい。   The binary conversion process is a first conversion process of converting an acquired image into a binary image by a binary conversion using a threshold, and the control unit performs a threshold conversion different from the binary conversion by the error diffusion method or the first conversion process. It is possible to execute a second conversion process of converting the obtained image into a binary image by converting the obtained image into a binary image by using a binary conversion process using the binary conversion process in the binary determination process. If it is determined that the binary image obtained by the above is a blank image, a second output process of outputting the image after the conversion by the second conversion process may be executed.

第2変換処理は、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換する処理であるか、または、取得画像を多値画像に変換する処理である。そのため、第2変換処理では、第1変換処理よりも、取得画像の各画素が白画素に変換されることを抑制できる。その結果、多値判定処理にて取得画像が白紙画像でないと判定されたにもかかわらず、白紙画像が出力されることを抑制できる。   The second conversion process is a process of converting an obtained image into a binary image by a binary conversion using an error diffusion method or a binary conversion using a threshold different from that of the first conversion process, or converting the obtained image into a multi-valued image. This is the process of converting to an image. Therefore, in the second conversion process, each pixel of the acquired image can be suppressed from being converted into a white pixel as compared with the first conversion process. As a result, it is possible to suppress output of a blank image even though it is determined in the multi-value determination process that the acquired image is not a blank image.

よって、多値判定処理による白紙判定結果と矛盾しない出力結果を期待することができる。   Therefore, it is possible to expect an output result that does not contradict the blank page determination result by the multi-value determination process.

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

また、画像処理装置は、画像を記憶する記憶部を備えていてもよい。この場合、制御部は、記憶部の空き容量が規定量以上の場合には、取得画像を記憶部に記憶させ、記憶部の空き容量が規定量よりも少ない場合には、取得画像を記憶部に記憶させないことが好ましい。   Further, the image processing device may include a storage unit that stores an image. In this case, the control unit stores the acquired image in the storage unit when the free space of the storage unit is equal to or more than the specified amount, and stores the obtained image in the storage unit when the free space of the storage unit is smaller than the specified amount. Is preferably not stored.

記憶部の空き容量に余裕がある場合には、取得画像が記憶部に記憶されている。そのため、第2変換処理による変換後の画像を出力する必要が生じた場合、つまり多値判定処理にて取得画像が白紙画像でないと判定され、かつ、二値判定処理にて第1変換処理による変換後の画像が白紙画像であると判定された場合に、記憶部に記憶されている取得画像を第2変換処理に用いることができ、第2変換処理による変換後の画像を出力することができる。   If there is enough free space in the storage unit, the acquired image is stored in the storage unit. Therefore, when it is necessary to output the image after the conversion by the second conversion process, that is, it is determined that the acquired image is not a blank image in the multi-value determination process, and the first conversion process is performed in the binary determination process. When it is determined that the converted image is a blank image, the acquired image stored in the storage unit can be used for the second conversion process, and the image after the conversion by the second conversion process can be output. it can.

一方、記憶部の空き容量に余裕がない場合には、取得画像が記憶部に記憶されないので、取得画像により記憶部が圧迫されることを抑制できる。この場合、多値判定処理にて取得画像が白紙画像でないと判定されても、第2変換処理による変換後の画像の出力が不可能であるので、二値判定処理にて第1変換処理による変換後の画像が白紙画像であると判定された場合には、画像が出力されない。   On the other hand, when there is not enough free space in the storage unit, the acquired image is not stored in the storage unit, so that the storage unit can be suppressed from being pressed by the acquired image. In this case, even if it is determined in the multi-value determination process that the acquired image is not a blank image, it is impossible to output the image after the conversion by the second conversion process. If the converted image is determined to be a blank image, no image is output.

第2変換処理における二値変換には、第1変換処理に用いられる閾値よりも低濃度側に設定される閾値が用いられることが好ましい。   For the binary conversion in the second conversion process, it is preferable to use a threshold set on a lower density side than the threshold used in the first conversion process.

具体的には、取得画像の輝度成分のデータに基づいて、取得画像が黒画素を少なくとも一部に含む二値画像に変換されるように、第2変換処理における二値変換に用いられる閾値が設定されることが好ましい。   Specifically, the threshold value used for the binary conversion in the second conversion process is set such that the obtained image is converted into a binary image including at least a part of the black pixels based on the data of the luminance component of the obtained image. Preferably, it is set.

この閾値の設定により、第2変換処理において、取得画像の各画素が黒画素に変換されやすくなる。その結果、白紙画像が出力されにくくなる。   By setting the threshold, each pixel of the acquired image is easily converted to a black pixel in the second conversion process. As a result, it becomes difficult to output a blank image.

制御部は、第2変換処理による変換後の画像を出力することを決定する前に、第2変換処理を実行してもよい。   The control unit may execute the second conversion process before deciding to output the image after the conversion by the second conversion process.

この構成によれば、第2変換処理が予め実行されているので、第2出力処理の高速化を期待することができる。   According to this configuration, since the second conversion processing is executed in advance, it is possible to expect a higher speed of the second output processing.

制御部は、取得画像の色差データに基づき、当該取得画像が有彩色か無彩色かを判断し、当該取得画像が無彩色と判断され、かつ、当該取得画像に、輝度成分が第1閾値未満または第2閾値以上である画素が規定量以上含まれると判断されたことを判断処理における判断対象の条件としてもよい。   The control unit determines whether the obtained image is chromatic or achromatic based on the color difference data of the obtained image, determines that the obtained image is achromatic, and the obtained image has a luminance component less than the first threshold. Alternatively, the determination target condition in the determination process may be that it is determined that the pixels having the second threshold value or more are included in the predetermined amount or more.

制御部は、二値画像を出力するか多値画像を出力するかの指定を受け付ける出力指定処理を実行し、判断処理における判断対象の条件は、出力指定処理にて二値画像を出力する指定を受け付けたことであってもよい。   The control unit executes an output designation process for accepting a designation of outputting a binary image or a multi-valued image, and a determination target condition in the decision process is a designation of outputting a binary image in the output designation process. May have been accepted.

本発明のさらに他の局面に係る画像処理プログラムは、取得画像として多値画像を取得する取得部を備える画像処理装置と接続されるコンピュータを、閾値を用いた二値変換によって、取得画像を二値画像に変換する第1変換処理と、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換するか、または、取得画像を多値画像に変換する第2変換処理とを実行可能にし、コンピュータに、取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、白紙画像を除去する白紙除去を有効にするか否かの設定を受け付ける受付処理と、取得画像が二値画像と判断するための条件を満たしているか否かを判断する判断処理とを実行させ、受付処理にて白紙除去を無効にする設定を受け付けた場合において、判断処理にて条件を満たすと判断した場合は、第1変換処理による変換後の画像を出力する第1出力処理を実行させ、受付処理にて白紙除去を有効にする設定を受け付けた場合において、多値判定処理にて取得画像が白紙画像であると判定した場合には、画像を出力せず、判断処理にて条件を満たすと判断し、かつ、多値判定処理にて取得画像が白紙画像でないと判定した場合には、第2変換処理による変換後の画像を出力する第2出力処理を実行させる。   An image processing program according to still another aspect of the present invention includes a computer that is connected to an image processing apparatus that includes an acquisition unit that acquires a multivalued image as an acquired image, the acquired image being binary-converted using a threshold. The acquired image is converted to a binary image by a first conversion process of converting the acquired image into a binary image or a binary conversion using a threshold different from the first conversion process, or A second conversion process for converting the image into a multi-valued image, and a multi-value determination process for determining whether or not the acquired image is a blank image based on the acquired image, and removing the blank image. A reception process for receiving a setting of whether to enable blank page removal and a determination process for determining whether an acquired image satisfies a condition for determining a binary image are executed. If it is determined that the condition is satisfied in the determination process when the setting for invalidating the deletion is received, a first output process of outputting an image converted by the first conversion process is executed, and a blank page is received in the reception process. In a case where the setting for enabling the removal is received, if it is determined in the multi-value determination process that the acquired image is a blank image, the image is not output, and it is determined that the condition is satisfied in the determination process, and If it is determined in the multi-value determination process that the acquired image is not a blank image, a second output process of outputting the image after the conversion by the second conversion process is executed.

この画像処理プログラムがインストールされたコンピュータでは、多値判定処理および判断処理が実行される。多値判定処理では、取得画像が白紙画像であるか否かが判定される。判断処理では、取得画像が二値画像と判断するための条件を満たしているか否かが判断される。   In the computer in which the image processing program is installed, multi-value determination processing and determination processing are executed. In the multi-value determination process, it is determined whether the acquired image is a blank image. In the determination processing, it is determined whether or not the acquired image satisfies a condition for determining a binary image.

また、白紙画像を除去する白紙除去の有効/無効を設定することができる。   In addition, it is possible to set valid / invalid of blank sheet removal for removing a blank image.

白紙除去が無効に設定されている場合において、取得画像が二値画像と判断するための条件を満たしている場合、第1変換処理による変換後の画像が出力される。第1変換処理は、閾値を用いた二値変換によって、取得画像を二値画像に変換する処理である。白紙除去が無効にされているので、第1変換処理により取得画像の全画素が白画素に変換されて、白紙画像が出力されても、出力結果に問題はない。   When blank page removal is set to be invalid, and the acquired image satisfies the condition for determining a binary image, the image converted by the first conversion process is output. The first conversion process is a process of converting an acquired image into a binary image by a binary conversion using a threshold. Since blank page removal is disabled, even if all pixels of the acquired image are converted to white pixels by the first conversion process and the blank image is output, there is no problem in the output result.

白紙除去が有効に設定されている場合において、取得画像が二値画像と判断するための条件を満たし、かつ、取得画像が白紙画像であると判定された場合、画像が出力されない。そのため、白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。   When blank page removal is set to be valid, if the condition for determining the acquired image as a binary image is satisfied and it is determined that the acquired image is a blank image, no image is output. Therefore, the blank page determination result matches the result that no image is output due to blank page removal.

また、白紙除去が有効に設定されている場合において、取得画像が二値画像と判断するための条件を満たし、かつ、取得画像が白紙画像でないと判定された場合には、第2変換処理による変換後の画像が出力される。第2変換処理は、誤差拡散法による二値変換もしくは第1変換処理と異なる閾値を用いた二値変換によって、取得画像を二値画像に変換する処理であるか、または、取得画像を多値画像に変換する処理である。そのため、第2変換処理では、第1変換処理よりも、取得画像の各画素が白画素に変換されることを抑制できる。その結果、取得画像が白紙画像でないと判定されたにもかかわらず、白紙画像が出力されることを抑制できる。   In addition, in a case where blank page removal is set to be valid, if it is determined that the acquired image satisfies the condition for determining a binary image and that the acquired image is not a blank image, the second conversion process is performed. The converted image is output. The second conversion process is a process of converting an obtained image into a binary image by a binary conversion using an error diffusion method or a binary conversion using a threshold different from that of the first conversion process, or converting the obtained image into a multi-valued image. This is the process of converting to an image. Therefore, in the second conversion process, each pixel of the acquired image can be suppressed from being converted into a white pixel as compared with the first conversion process. As a result, it is possible to suppress output of a blank image even though it is determined that the acquired image is not a blank image.

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

本発明のさらに他の局面に係る画像処理プログラムは、取得画像として多値画像を取得する取得部を備える画像処理装置と接続されるコンピュータに、取得画像を二値画像に変換する二値変換処理と、取得画像に基づいて、当該取得画像が白紙画像であるか否かを判定する多値判定処理と、取得画像が二値画像と判断するための条件を満たしているか否かを判断する判断処理と、多値判定処理にて取得画像が白紙画像でないと判定し、判断処理にて条件を満たすと判断した場合に、二値変換処理により得られた二値画像が白紙画像であるか否かを判定する二値判定処理とを実行させる。   An image processing program according to still another aspect of the present invention provides a computer which is connected to an image processing apparatus having an acquisition unit that acquires a multi-valued image as an acquired image, the binary conversion processing of converting the acquired image into a binary image. A multi-value determination process for determining whether or not the obtained image is a blank image based on the obtained image, and a determination for determining whether or not the obtained image satisfies a condition for determining a binary image Processing, when it is determined that the acquired image is not a blank image in the multi-value determination process, and when it is determined in the determination process that the condition is satisfied, whether the binary image obtained by the binary conversion process is a blank image And a binary determination process for determining whether

この画像処理プログラムがインストールされたコンピュータでは、二値変換処理、多値判定処理および判断処理が実行される。二値変換処理では、取得部により取得画像として取得された多値画像が二値画像に変換される。多値判定処理では、取得画像が白紙画像であるか否かが判定される。判断処理では、取得画像が二値画像と判断するための条件を満たしているか否かが判断される。   In the computer in which the image processing program is installed, a binary conversion process, a multi-value determination process, and a determination process are executed. In the binary conversion process, a multi-valued image acquired as an acquired image by the acquisition unit is converted into a binary image. In the multi-value determination process, it is determined whether the acquired image is a blank image. In the determination processing, it is determined whether or not the acquired image satisfies a condition for determining a binary image.

多値判定処理にて取得画像が白紙画像でないと判定され、判断処理にて条件を満たすと判断された場合、二値判定処理が実行される。二値判定処理では、二値変換処理により得られた二値画像に基づいて、当該二値画像が白紙画像であるか否かが判定される。   If it is determined in the multi-value determination process that the acquired image is not a blank image, and if it is determined in the determination process that the condition is satisfied, a binary determination process is performed. In the binary determination process, whether or not the binary image is a blank image is determined based on the binary image obtained by the binary conversion process.

これにより、たとえば、二値判定処理にて二値画像が白紙画像であると判定された場合に、当該二値画像が出力されないようにすれば、二値判定処理による白紙判定結果と白紙除去により画像が出力されないという結果とが一致する。一方、多値判定処理にて取得画像が白紙画像でないと判定され、さらに、二値判定処理にて二値画像が白紙画像でないと判定された場合には、当該二値画像が出力されるようにすれば、多値判定処理および二値判定処理による白紙判定結果と二値画像が出力されるという結果が一致する。   Thereby, for example, when the binary image is determined to be a blank image in the binary determination process, if the binary image is not output, the blank determination result by the binary determination process and the blank paper removal The result that no image is output matches. On the other hand, if it is determined in the multi-value determination process that the acquired image is not a blank image, and if it is determined in the binary determination process that the binary image is not a blank image, the binary image is output. In this case, the blank sheet determination result obtained by the multi-value determination processing and the binary determination processing matches the result that the binary image is output.

よって、白紙判定結果と矛盾しない出力結果を期待することができる。
また、本発明の一局面に係る画像読取装置は、画像読取部と、制御部と、操作部と、を備え、前記制御部は、前記画像読取部により原稿を読み取ることにより生成される多値画像データを取得する画像取得処理と、前記操作部を介して設定された設定情報を取得する設定取得処理であって、前記設定情報には、多値画像で出力するための第1設定情報と、多値画像で出力するか二値画像で出力するかを自動で判断するための第2設定情報とを含む、前記設定取得処理と、前記画像取得処理により取得した多値画像データが表す多値画像が白紙画像を表すか否かを判定する第1白紙判定処理と、を実行し、さらに、前記制御部は、前記第1白紙判定処理によって白紙画像を表すと判定すると、前記多値画像データを削除する第1削除処理と、前記第1白紙判定処理によって白紙画像を表さないと判定し、かつ、前記設定取得処理により取得した設定情報が前記第1設定情報の場合に、前記多値画像を出力する第1出力処理と、前記第1白紙判定処理によって白紙画像を表さないと判定し、かつ、前記設定取得処理により取得した設定情報が前記第2設定情報の場合に、前記画像取得処理により取得した多値画像データが表す多値画像が二値画像として出力するための条件を満たしているか判断する判断処理と、前記判断処理において条件を満たすと判断すると、前記多値画像データを二値化した変換済み二値画像データが表す二値画像が白紙画像を表すか否かを判定する第2白紙判定処理と、前記第2白紙判定処理において前記二値画像が白紙画像であると判定すると、前記二値画像を削除する第2削除処理と、前記第2白紙判定処理において前記二値画像が白紙画像でないと判定すると、前記二値画像を出力する第2出力処理と、前記判断処理において前記条件を満たさないと判断すると、前記多値画像データが表す多値画像を出力する第3出力処理と、を実行する。
また、本発明の一局面にかかる画像処理プログラムは、画像読取装置により生成された多値画像データおよび前記多値画像データに対応する設定情報を取得する取得処理と、前記多値画像データを構成する多値画像が白紙画像を表すか否かを判定する多値判定処理と、をコンピュータに実行させ、さらに、前記多値判定処理により白紙画像を表すと判定された多値画像を削除する第1削除処理と前記多値判定処理により前記多値画像が白紙画像を表さないと判定し、かつ、前記取得処理により取得した前記設定情報が多値画像で出力するための第1設定情報である場合に、前記多値画像を出力する第1出力処理と、記多値判定処理により前記多値画像が白紙画像を表さないと判定し、かつ、前記取得処理により取得した前記設定情報が多値画像で出力するか二値画像で出力するかを自動で判断するための第2設定情報である場合に、前記多値画像データを構成する多値画像が二値画像として出力するための条件を満たしているか否かを判断する判断処理と、前記判断処理により前記条件を満たすと判断した場合に、前記多値画像データを二値化した変換済み二値画像データが表す二値画像が白紙画像であるか否かを判定する二値判定処理と、前記二値判定処理により、前記二値画像が白紙画像と判定された画像を削除する第2削除処理と、
前記二値判定処理により、前記二値画像が白紙画像でないと判定された画像であって二値画像データに基づく出力画像を出力する第2出力処理と、前記判断処理により前記条件を満たさないと判断した場合に前記多値画像データに基づく出力画像を出力する第3出力処理と、をコンピュータに実行させる。
Therefore, an output result that does not contradict the blank page determination result can be expected.
Further, an image reading device according to one aspect of the present invention includes an image reading unit, a control unit, and an operation unit, and the control unit is configured to generate a multi-valued image generated by reading a document by the image reading unit Image acquisition processing for acquiring image data, and setting acquisition processing for acquiring setting information set via the operation unit, wherein the setting information includes first setting information for outputting as a multi-valued image. The setting acquisition process, including second setting information for automatically determining whether to output as a multi-valued image or a binary image, and a multi-valued image represented by the multi-valued image data acquired by the image acquisition process. Executing a first blank page determination process for determining whether the value image represents a blank page image. Further, when the control unit determines that the first blank page determination process represents a blank page image, the multi-valued image First deletion processing to delete data and before A first output process of outputting the multi-valued image when it is determined that the blank image is not represented by the first blank page determination process, and the setting information acquired by the setting acquisition process is the first setting information; If the first blank sheet determination process determines that a blank image is not represented, and the setting information acquired by the setting acquisition process is the second setting information, the multi-valued image data acquired by the image acquisition process is A determination process of determining whether a multi-valued image to be represented satisfies a condition for outputting as a binary image; A second blank sheet determination process for determining whether or not the binary image represented by the data represents a blank image; and determining that the binary image is a blank image in the second blank page determination process. A second deletion process for deleting, a second output process for outputting the binary image when it is determined in the second blank page determination process that the binary image is not a blank image, and a condition that the condition is not satisfied in the determination process. If it is determined, a third output process of outputting a multi-valued image represented by the multi-valued image data is executed.
The image processing program according to one aspect of the present invention includes an acquisition process of acquiring the setting information corresponding to the multi-level image data and the multi-valued image data generated by the image reading apparatus, the pre-Symbol multivalued image data And causing the computer to execute a multi-value determination process for determining whether or not the constituent multi-value image represents a blank image . Further, the multi-value image determined to represent the blank image by the multi-value determination process is deleted. A first deletion process and a first setting for determining that the multi-value image does not represent a blank image by the multi-value determination process, and for outputting the setting information acquired by the acquisition process as a multi-value image. If the information, the first output processing for outputting the multi-value image, the previous SL the multivalued image by the multivalued determination process determines that do not represent a blank image, and acquired by the acquisition process Lots of setting information When the second setting information is for automatically determining whether to output as an image or a binary image, a condition for outputting a multi-valued image constituting the multi-valued image data as a binary image is set. A binary image represented by converted binary image data obtained by binarizing the multi-valued image data when the determination process determines whether the condition is satisfied, and when the determination process determines that the condition is satisfied, A second determination process for determining whether or not the binary image is deleted, and a second deletion process for deleting an image in which the binary image is determined to be a blank image by the binary determination process;
A second output process for outputting an output image based on the binary image data, wherein the binary image is an image determined to be not a blank image by the binary determination process, and if the condition is not satisfied by the determination process, And a third output process of outputting an output image based on the multi-valued image data when the determination is made.

本発明によれば、白紙判定結果と矛盾しない出力結果を期待することができる。   According to the present invention, an output result that does not contradict the blank page determination result can be expected.

本発明の一実施形態に係るMFP(Multi-Function Peripheral)の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an MFP (Multi-Function Peripheral) according to an embodiment of the present invention. 制御部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a configuration of a control unit. 読取処理の流れを示すフローチャートである。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 an initialization process. オート設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of an automatic setting process. カラー設定処理の内容を示すフローチャートである。9 is a flowchart illustrating the content of a color setting process. モノ設定処理の内容を示すフローチャートである。It is a flowchart which shows the content of a thing setting process. 画像出力処理の流れを示すフローチャートである。9 is a flowchart illustrating a flow of an image output process. 白紙非除去処理の流れを示すフローチャートである。9 is a flowchart illustrating a flow of a blank sheet non-removal process. 二値画像出力処理の流れを示すフローチャートである。9 is a flowchart illustrating a flow of a binary image output process. 第2変換処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a 2nd conversion process. 二値判定処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a binary determination process. 第2変換処理の他の例を示すフローチャートである。13 is a flowchart illustrating another example of the second conversion process. 第2変換処理のさらに他の例を示すフローチャートである。15 is a flowchart illustrating still another example of the second conversion process. 二値判定処理の他の例を示すフローチャートである。13 is a flowchart illustrating another example of the binary determination process. 画像出力処理の他の例を示すフローチャートである。9 is a flowchart illustrating another example of the image output 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 ink jet method.

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

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

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

制御部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, a ROM 52, a RAM 53, an NVRAM (Non Volatile RAM) 54, and an ASIC 55. 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 via the network interface 40. The ROM 52 stores programs executed by the CPU 51 and various data. The RAM 53 as an example of a storage unit 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 and the like.

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

MFP1は、画像読取部20により原稿の画像を読み取り、その読み取った画像(画像データ)を画像形成部10によりプリント用紙などに出力したり、ネットワークインターフェース40を介して外部のPCなどに出力したりする読取機能を有している。   The MFP 1 reads an image of a document by the image reading unit 20, outputs the read image (image data) to a print sheet or the like by the image forming unit 10, or outputs the read image 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 this reading function, the user can operate the operation panel 30 to set the scan type. As the scan type, four types of BW (black and white), gray, color and auto are prepared. When “scan type: BW” is set, the image of the document is read as a black and white binary image (BW image), and a BW binary image is output. When “scan type: gray” is set, the image of the original is read as a gray image which is a black and white image having an intermediate gradation, and a gray Jpeg image of 256 gradations is output. When “scan type: color” is set, the image of the document is read as a color image, and a color Jpeg image of 256 gradations 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 according to the determination result is output.

なお、グレーJpeg画像およびカラーJpeg画像の諧調数は、一例であり、256諧調よりも少ない諧調数であってもよいし、256諧調よりも多い諧調数であってもよい。また、グレーJpeg画像およびカラーJpeg画像は、Jpeg形式のファイルであるが、出力画像のファイル形式は、たとえば、Tiff形式、XPS形式、PDF形式など、Jpeg形式以外のファイル形式であってもよい。   Note that the number of gradations of the gray Jpeg image and the color Jpeg image is an example, and may be a number of gradations smaller than 256 gradations or a number of gradations 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, an XPS format, or a PDF format.

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

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

制御部50のCPU51は、プログラムを実行することにより、図2に示されるCIS制御部511、読取補正部512、画像処理部513、白紙判定部514、色数検出部515、Jpeg圧縮部516および二値変換部517の機能を実現する。   By executing the program, the CPU 51 of the control unit 50 executes the CIS control unit 511, the reading correction unit 512, the image processing unit 513, the blank page determination unit 514, the color number detection unit 515, the JPEG compression unit 516, and the like illustrated 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 controls a CIS (Contact Image Sensor) 201 and an AFE (Analog Front End) 202 provided in the image reading unit 20. 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, the CIS 201 outputs an analog image signal corresponding to the reflected light from the original. Is converted to

読取補正部512は、AFE202から出力される画像(8ビットのデジタル画像データ)に対して、原稿に照射される光量のむら(照明むら)やその他の原因による画素間濃度むらをなくすための読取補正(シェーディング補正)を行う。読取補正部512の補正モードとして、カラー画像に適した読取補正を行うカラーモードと、BW画像およびグレー画像に適した読取補正を行うモノモードとが設けられている。読取補正部512は、読取補正後の画像をRAM53に保存する。   The reading correction unit 512 performs reading correction on the image (8-bit digital image data) output from the AFE 202 to eliminate unevenness in the amount of light applied to the document (illumination unevenness) and uneven pixel density due to other causes. (Shading correction). 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 reading correction unit 512 stores the image after the reading correction 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 and corrected image. As a processing mode 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 edges 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 after the image processing 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 the color conversion processing into a plurality of blocks in a grid pattern with 100 × 100 pixels as one block, and for each block, a histogram of a 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 histogram of the Y component, the histogram of the Cb component, and the histogram of the Cr component 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 a block of almost white color, the mode value of the Y component is concentrated near 255. When the entire image is almost white, if a histogram of the mode of the Y component for each block is created, the mode in the histogram is concentrated near 255. Therefore, the blank page determination unit 514 obtains the number of blocks having the mode of the Y component that matches the “mode in the histogram of the mode of the Y component for each block”, and the number of blocks is equal to or greater than a certain value. If, the image after the color conversion processing is determined to be a blank image. Then, the blank sheet 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が無効に設定され、多値判定は行われない。   When the blank page removing function is set to be invalid, the blank page determining unit 514 is set to be invalid, and the multi-value determination is not performed.

色数検出部515は、色数検出を実行し、画像処理部513による色変換処理後の画像の種別がBW画像、グレー画像およびカラー画像のいずれであるかを判定する。   The color number detection unit 515 detects the number of colors and determines whether the type of the image 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 block or an achromatic block. In the YCbCr color space, when the range of the value of the Cb component and the value of the Cr component are set to 0 to 255, respectively, the pixel in which the value of the Cb component and the value of the Cr component are each near a substantially intermediate value (= 127) Color becomes almost achromatic. Therefore, the number-of-colors detection unit 515 refers to the histogram of the Cb component and the histogram of the Cr component for each block, and, for example, if both of the following equations (1) and (2) are satisfied, the achromatic block is used. If it is determined that there is, and if at least one of the following equations (1) and (2) is not satisfied, it is determined that the block is a chromatic color block.

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

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

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

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

「Y成分の値<63または224≦Y成分の値、を満たす画素の割合」≧40%
・・・(3)
“Ratio 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 each mode value of the Cb component and the Cr component in the image after image processing (image of one page) is both in the range of 112 or more and less than 143, or If the image contains color blocks of a certain ratio (for example, 0.2%) or more, it is determined that the type of the image after the image processing is a color image. At least one of the modal values of the Cb component and the Cr component in the image after the image processing is out of the range of 112 or more and less than 143, and the ratio of the gray blocks in the image after the image processing is constant (for example, 0. 3%) or more, it is determined that the type of the image after the image processing is a gray image. Further, at least one of each mode of the Cb component and the Cr component in the image after the image processing is out of the range of 112 or more and less than 143, and the ratio of the gray blocks in the image after the image processing is less than a certain value. In this case, it is determined that the type of the image after the image processing is a BW image.

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

Jpeg圧縮部516は、RAM53に保存されている画像処理後の画像をJpeg方式で圧縮し、グレーJpeg多値画像またはカラーJpeg多値画像を生成する。   The Jpeg compression unit 516 compresses the image-processed image stored in the RAM 53 by the Jpeg method to generate a gray Jpeg multivalued image or a color Jpeg multivalued 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 modes of the Jpeg compression unit 516 include a mode for generating only a gray Jpeg multivalued image and a mode for generating only a color Jpeg multivalued image, and each operation mode is selectively enabled. Set or all operation modes are set to 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 does not generate any of the gray Jpeg multivalued image and the color Jpeg multivalued image. . When “scan type: gray” is set, a mode for generating only a gray Jpeg multi-valued image is set to be valid (gray), and the Jpeg compression unit 516 generates only a gray Jpeg multi-valued image. When “scan type: color” is set, the mode for generating only a color Jpeg multivalued image is set to valid (color), and the Jpeg compression unit 516 generates only a color Jpeg multivalued 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 multivalued image or a color Jpeg multivalued 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が有効に設定される場合、二値変換モードとして、単純二値化モードと誤差拡散モードとが選択的に設定される。通常は、単純二値化モードが設定され、二値変換部517は、画像処理後の画像の各画素について、Y成分の値が一定の閾値以上であれば、当該画素を白画素に変換し、Y成分の値が当該閾値未満であれば、当該画素を黒画素に変換する。二値変換部517は、生成したBW二値画像をRAM53に保存する。「スキャンタイプ:グレー」または「スキャンタイプ:カラー」が設定されている場合、二値変換部517が無効に設定され、二値変換部517によるBW二値画像の生成が行われない。   When “scan type: BW” or “scan type: auto” is set, the binary conversion unit 517 performs a binary conversion on the image after the image processing, which is enabled and stored in the RAM 53, Generate a BW binary image. When the binary conversion unit 517 is set to be valid, a simple binary mode and an error diffusion mode are selectively set as the binary conversion mode. Normally, the simple binarization mode is set, and the binary conversion unit 517 converts the pixel into a white pixel if the value of the Y component is equal to or greater than a certain threshold for each pixel of the image after the image processing. , Y component is less than the threshold, 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 invalidated, and the binary conversion unit 517 does not generate a BW binary image.

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

<読取処理> <Read processing>

ユーザにより操作パネル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 the end of the block setting process, the CPU 51 starts the reading operation of the document by the image reading unit 20 (S2). With the start of this reading operation, the processing by the CIS control unit 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 reading of one page of the document has been completed (S3). When the image of the document is read by the ADF method, for example, it is determined that the reading of one page of the document has been completed because the document of one page (one sheet) has passed over the CIS 201 of the image reading unit 20. Can be. When the image of the document is read by the FB method, it can be determined that reading of one page of the document has been completed, for example, when the CIS 201 makes one reciprocation in the sub-scanning direction.

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

白紙除去機能が有効に設定されている場合(S4:YES)、白紙判定部514による多値判定が実行される。そして、CPU51は、白紙判定部514による多値判定の結果が「白紙画像」であったか否かを判断する(S5)。   When the blank page removal function is set to be valid (S4: YES), the multi-value determination by the blank page determination unit 514 is performed. Then, the CPU 51 determines whether or not the result of the multi-value determination by the blank page determination unit 514 is a “blank image” (S5).

多値判定の結果が「白紙画像」であった場合(S5:YES)、グレーJpeg多値画像またはカラーJpeg多値画像がRAM53に保存されている場合、CPU51は、それらをRAM53から削除し、読取処理を終了する。また、BW二値画像がRAM53に保存されている場合、CPU51は、それをRAM53から削除し(S6)、読取処理を終了する。   If the result of the multi-value determination is “blank image” (S5: YES), if the gray Jpeg multi-value image or the color Jpeg multi-value image is stored in the RAM 53, the CPU 51 deletes them from the RAM 53, The reading process ends. If the BW binary image is stored in the RAM 53, the CPU 51 deletes the BW binary image from the RAM 53 (S6) and ends the reading process.

なお、スキャンタイプがオートに設定されているときには、画像処理部513による処理が終了すると、色数検出部515による色数検出が実行される。その後、色数検出の判定結果に応じて、Jpeg圧縮部516によりカラーJpeg多値画像が生成されるか、Jpeg圧縮部516によりグレーJpeg多値画像が生成されるか、または、Jpeg圧縮部516によりグレーJpeg多値画像が生成されるとともに、二値変換部517によりBW二値画像が生成され、その生成された画像がRAM53に保存される。スキャンタイプがカラーに設定されているときには、画像処理部513による処理後、Jpeg圧縮部516によりカラーJpeg多値画像が生成され、カラーJpeg多値画像がRAM53に保存される。スキャンタイプがグレーに設定されているときには、画像処理部513による処理後、Jpeg圧縮部516によりグレーJpeg多値画像が生成され、グレーJpeg多値画像がRAM53に保存される。スキャンタイプがBWに設定されているときには、画像処理部513による処理後、二値変換部517によりBW二値画像が生成され、BW二値画像がRAM53に保存される。   When the scan type is set to auto and the processing by the image processing unit 513 ends, the color number detection by the color number detection unit 515 is performed. After that, depending on the determination result of the number of colors detection, a color Jpeg multi-valued image is generated by the Jpeg compression unit 516, a gray Jpeg multi-valued image is generated by the Jpeg compression unit 516, or the Jpeg compression unit 516 is generated. Generates a gray Jpeg multi-valued image, generates a BW binary image by the binary conversion unit 517, and stores the generated image in the RAM 53. When the scan type is set to color, after processing by the image processing unit 513, a color Jpeg multivalued image is generated by the Jpeg compression unit 516, and the color Jpeg multivalued image is stored in the RAM 53. When the scan type is set to gray, after processing by the image processing unit 513, a gray Jpeg multivalued image is generated by the Jpeg compression unit 516, and the gray Jpeg multivalued image is stored in the RAM 53. When the scan type is set to BW, a binary conversion unit 517 generates a BW binary image after processing by the image processing unit 513, and the BW binary image is stored in the RAM 53.

多値判定の結果が「白紙画像」でなかった場合には(S5:NO)、CPU51は、画像出力処理を実行して(S7)、読取処理を終了する。画像出力処理については、後述する。   When the result of the multi-value determination is not “blank image” (S5: NO), the CPU 51 executes an image output process (S7) and ends the reading process. The image output processing will be described later.

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

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

図3に示されるステップS1で実行されるブロック設定処理の流れは、図4に示されている。   FIG. 4 shows the flow of the block setting process executed in step S1 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 the 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 automatic setting process will be described later.

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

「スキャンタイプ:カラー」が設定されている場合には(S14:YES)、CPU51は、カラー設定処理を実行する(S15)。カラー設定処理については、後述する。   If “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 a mono setting process (S16). The item setting process will be described later.

オート設定処理、カラー設定処理またはモノ設定処理の終了後、CPU51は、白紙除去機能が有効に設定されているか否かを判断する(S17)。   After the completion of the automatic setting process, the color setting process, or the mono setting process, the CPU 51 determines whether the blank sheet removing 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 valid (S18), and ends the block setting process.

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

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

図4に示されるステップS11で実行される初期設定処理の内容は、図5に示されている。   FIG. 5 shows the contents of the initialization processing executed in step S11 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. I do.

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

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

オート設定処理において、CPU51は、以下の各種の設定を行う。   In the automatic 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 either a gray Jpeg multivalued image or a color Jpeg multivalued image is set to valid (color / gray) (S134).

二値変換部517を有効かつ単純二値化モードに設定する(S135)。   The binary conversion unit 517 is set to an effective and simple binary mode (S135).

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

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

図4に示されるステップS15で実行されるカラー設定処理の内容は、図7に示されている。   The content of the color setting process executed in step S15 shown in FIG. 4 is 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 control unit 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 be valid (color) (S154).

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

図4に示されるステップS16で実行されるモノ設定処理の内容は、図8に示されている。   FIG. 8 shows the contents of the item setting process executed in step S16 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)。   Also, the correction mode of the reading correction unit 512 is set to the 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 a BW image and a gray image (S163).

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

「スキャンタイプ:グレー」に設定されていない場合(S164:NO)、CPU51は、二値変換部517を有効かつ単純二値化モードに設定する(S165)。   If “scan type: gray” is not set (S164: NO), the CPU 51 sets the binary conversion unit 517 to an effective and simple binary mode (S165).

そして、CPU51は、RAM53に十分な空き容量があるか否か、具体的には、RAM53の空き容量が規定量(たとえば、30MB)以上であるか否かを判断する(S166)。   Then, the CPU 51 determines whether or not there is a sufficient free space in the RAM 53, specifically, whether or not the free space in the RAM 53 is equal to or more than a specified amount (for example, 30 MB) (S166).

空き容量が規定量以上である場合、CPU51は、RAM53に十分な空き容量があると判断し(S166:YES)、二値変換部517による画像の生成後も、RAM53に保存されている画像処理後の画像を消去せずに保存し続ける設定を行い(S167)、モノ設定処理を終了する。   If the free space is equal to or more than the specified amount, the CPU 51 determines that there is sufficient free space in the RAM 53 (S166: YES), and the image processing stored in the RAM 53 even after the binary conversion unit 517 generates the image. A setting is made to continue saving without erasing the subsequent image (S167), and the mono setting process ends.

空き容量が規定量未満である場合、CPU51は、RAM53に十分な空き容量がないと判断し(S166:NO)、ステップS167の処理をスキップして、モノ設定処理を終了する。この場合、二値変換部517による画像の生成後、RAM53に保存されている画像処理後の画像が消去される。   If the free space is less than the specified amount, the CPU 51 determines that there is not enough free space in the RAM 53 (S166: NO), skips the process of step S167, and ends the mono setting process. In this case, after the image is generated by the binary conversion unit 517, the image after the image processing stored in the RAM 53 is deleted.

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

<画像出力処理(その1)> <Image output processing (1)>

図3に示されるステップS7で実行される画像出力処理の流れは、図9に示されている。   FIG. 9 shows the flow of the image output process executed in step S7 shown in FIG.

画像出力処理において、CPU51は、「スキャンタイプ:オート」が設定されているか否かを判断する(S701)。   In the image output process, the CPU 51 determines whether “scan type: auto” is set (S701).

「スキャンタイプ:オート」が設定されている場合には、前述のオート設定処理において、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 the operation mode of the Jpeg compression unit 516 in the above-described auto setting process (color / Gray) and the binary conversion unit 517 is enabled.

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

色数検出部515による判定の結果が「BW画像」であった場合には(S702:YES)、二値変換部517の機能によるBW二値画像の生成および二値判定が実行される。また、前述したようにJpeg圧縮部516の機能によりグレーJpeg多値画像が生成される。そして、CPU51は、二値変換部517による二値判定の結果が「白紙画像」であったか否かを判断する(S703)。   When the result of the determination by the color number detection unit 515 is “BW image” (S702: YES), the generation of the BW binary image and the binary determination by the function of the binary conversion unit 517 are executed. Further, as described above, a gray Jpeg multi-valued image is generated by the function of the Jpeg compression unit 516. Then, the CPU 51 determines whether or not the result of the binary determination by the binary conversion unit 517 is a “blank image” (S703).

二値判定の結果が「白紙画像」であった場合(S703:YES)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先(たとえば、画像形成部10、LANに接続されたPCなど)に出力する(S704)。これにより、多値判定の結果が「白紙画像」でないにもかかわらず、二値判定の結果が「白紙画像」であった場合に、白紙画像ではなく、グレーJpeg多値画像を出力することができる。   If the result of the binary determination is a “blank image” (S703: YES), the CPU 51 generates a gray Jpeg multivalued image using the function of the Jpeg compression unit 516, and the gray Jpeg multivalued image is designated in advance. The data is output to the output destination (for example, the image forming unit 10 or a PC connected to the LAN) (S704). With this, when the result of the binary determination is “blank image” even though the result of the multi-value determination is not “blank image”, the gray Jpeg multi-value image can be output instead of the blank image. it can.

グレーJpeg多値画像の出力後、CPU51は、画像出力処理を終了する。   After outputting the gray Jpeg multi-value image, the CPU 51 ends the image output process.

また、二値判定の結果が「白紙画像」でなかった場合(S703:NO)、CPU51は、二値変換部517の機能により作成したBW二値画像を予め指定された出力先に出力し(S705)、画像出力処理を終了する。   If the result of the binary determination is not “blank image” (S703: NO), the CPU 51 outputs the BW binary image created by the function of the binary conversion unit 517 to an output destination specified in advance ( S705), the image output processing ends.

一方、色数検出部515の判定の結果が「BW画像」でなかった場合には(S702:NO)、CPU51は、色数検出部515の判定の結果が「カラー画像」であったか否かを判断する(ステップS706)   On the other hand, when the result of the determination by the color number detection unit 515 is not “BW image” (S702: NO), the CPU 51 determines whether the result of the determination by the color number detection unit 515 is “color image”. Judge (step S706)

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

また、色数検出部515の判定の結果が「BW画像」および「カラー画像」でなかった場合には(S706:NO)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S704)。そして、CPU51は、画像出力処理を終了する。   If the result of the determination by the number-of-colors detection unit 515 is not “BW image” or “color image” (S706: NO), the CPU 51 uses the function of the Jpeg compression unit 516 to convert the gray Jpeg multivalued image. Then, the generated gray Jpeg multivalued image is output to an output destination designated in advance (S704). Then, the CPU 51 ends the image output processing.

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

「スキャンタイプ:BW」が設定されている場合には、前述のモノ設定処理において、二値変換部517が有効に設定されている。   When “scan type: BW” is set, the binary conversion unit 517 is set to be valid in the above-described mono setting process.

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

二値判定の結果が「白紙画像」であった場合には(S709:YES)、CPU51は、二値画像出力処理を実行して(S710)、画像出力処理を終了する。   If the result of the binary determination is “blank image” (S709: YES), the CPU 51 executes a binary image output process (S710) and ends the image output process.

二値判定の結果が「白紙画像」でなかった場合には(S709:NO)、CPU51は、二値変換部517の機能により作成したBW二値画像を予め指定された出力先に出力し(S711)、画像出力処理を終了する。   If the result of the binary determination is not “blank image” (S709: NO), the CPU 51 outputs the BW binary image created by the function of the binary conversion unit 517 to an output destination designated in advance ( S711), the image output process ends.

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

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

「スキャンタイプ:グレー」が設定されている場合には(S712:YES)、CPU51は、Jpeg圧縮部516の機能により作成したグレーJpeg多値画像を予め指定された出力先に出力し(S713)、画像出力処理を終了する。   If “scan type: gray” is set (S712: YES), the CPU 51 outputs the gray Jpeg multivalued image created by the function of the Jpeg compression unit 516 to an output destination specified in advance (S713). Then, the image output process ends.

「スキャンタイプ:オート」、「スキャンタイプ:BW」および「スキャンタイプ:グレー」のいずれも設定されてない場合、つまり「スキャンタイプ:カラー」が設定されている場合には(S712:NO)、前述のカラー設定処理において、Jpeg圧縮部516の動作モードとして、カラーJpeg多値画像のみを生成するモードが有効(カラー)に設定されている。この場合、CPU51は、Jpeg圧縮部516の機能により作成したカラーJpeg多値画像を予め指定された出力先に出力し(S714)、画像出力処理を終了する。   If none of “scan type: auto”, “scan type: BW” and “scan type: gray” are set, that is, if “scan type: color” is set (S712: NO), In the above-described color setting process, a mode for generating only a color Jpeg multi-value image is set to valid (color) as an operation mode of the Jpeg compression unit 516. In this case, the CPU 51 outputs the color Jpeg multivalued image created by the function of the Jpeg compression unit 516 to an output destination specified in advance (S714), and ends the image output processing.

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

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

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

「スキャンタイプ:オート」が設定されている場合には、前述のオート設定処理において、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 the operation mode of the Jpeg compression unit 516 in the above-described auto setting process (color / Gray) and the binary conversion unit 517 is enabled.

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

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

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

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

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

一方、「スキャンタイプ:オート」が設定されていない場合(S801:NO)、CPU51は、「スキャンタイプ:カラー」が設定されているか否かを判断する(S807)。   On the other hand, when “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」が設定されている場合には、前述のモノ設定処理において、二値変換部517が有効に設定されている。   When “scan type: BW” is set, the binary conversion unit 517 is set to be valid in the above-described mono setting process.

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

「スキャンタイプ:オート」、「スキャンタイプ:カラー」および「スキャンタイプ:BW」のいずれも設定されてない場合、つまり「スキャンタイプ:グレー」が設定されている場合には(S808:NO)、前述のモノ設定処理において、Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像のみを生成するモードが有効(グレー)に設定されている。この場合、CPU51は、Jpeg圧縮部516の機能により作成したグレーJpeg多値画像を予め指定された出力先に出力し(S810)、白紙非除去処理を終了する。   If none of “scan type: auto”, “scan type: color” and “scan type: BW” are set, that is, if “scan type: gray” is set (S808: NO), In the above-mentioned mono setting process, a mode for generating only a gray Jpeg multi-valued image is set to valid (gray) as the operation mode of the Jpeg compression unit 516. In this case, the CPU 51 outputs the gray Jpeg multi-valued image created by the function of the Jpeg compression unit 516 to an output destination designated in advance (S810), and ends the blank non-removal processing.

「スキャンタイプ:カラー」が設定されている場合(S807:YES)、前述のカラー設定処理において、Jpeg圧縮部516の動作モードとして、カラーJpeg多値画像のみを生成するモードが有効(カラー)に設定されている。この場合、CPU51は、Jpeg圧縮部516の機能により作成したカラーJpeg多値画像を予め指定された出力先に出力する(S811)、白紙非除去処理を終了する。   If “scan type: color” is set (S807: YES), in the above-described color setting process, the mode for generating only the color Jpeg multi-valued image is enabled (color) as the operation mode of the Jpeg compression unit 516. Is set. In this case, the CPU 51 outputs the color JPEG multi-valued image created by the function of the JPEG compression unit 516 to the output destination designated in advance (S811), and ends the blank non-removal processing.

<二値画像出力処理> <Binary image output processing>

図9に示されるステップS710で実行される二値画像出力処理の流れは、図11に示されている。   FIG. 11 shows the flow of the binary image output process executed in step S710 shown in FIG.

二値画像出力処理では、CPU51は、画像処理後の画像がRAM53に保存されているか否かを判断する(S31)。   In the binary image output process, the CPU 51 determines whether or not the image after the image processing is stored in the RAM 53 (S31).

画像処理後の画像がRAM53に保存されている場合には(S31:YES)、CPU51は、第2変換処理を実行して(S32)、二値画像出力処理を終了する。第2変換処理については、後述する。   If the image after the image processing is stored in the RAM 53 (S31: YES), the CPU 51 executes the second conversion processing (S32), and ends the binary image output processing. The second conversion processing will be described later.

画像処理後の画像がRAM53に保存されていない場合には(S31:NO)、CPU51は、第2変換処理を実行できないので、RAM53に記憶されているBW二値画像を削除し(S33)、画像を出力せずに、二値画像出力処理を終了する。   When the image after the image processing is not stored in the RAM 53 (S31: NO), the CPU 51 deletes the BW binary image stored in the RAM 53 because the second conversion process cannot be executed (S33). The binary image output processing ends without outputting the image.

<第2変換処理(その1)> <Second conversion process (1)>

図11に示されるステップS32で実行される第2変換処理の一例は、図12に示されている。   FIG. 12 shows an example of the second conversion processing executed in step S32 shown in FIG.

第2変換処理では、CPU51は、二値変換部517の二値変換モードを単純二値化モードから誤差拡散モードに切り換える(S321)。   In the second conversion process, the CPU 51 switches the binary conversion mode of the binary conversion unit 517 from the simple binary mode to the error diffusion mode (S321).

そして、CPU51は、RAM53に記憶されている画像処理後の画像を二値変換部517の機能により二値変換して、BW二値画像を再生成する(S322)。   Then, the CPU 51 performs a binary conversion on the image after the image processing stored in the RAM 53 by the function of the binary conversion unit 517 to regenerate a BW binary image (S322).

その後、CPU51は、再生成したBW二値画像を予め指定された出力先に出力し(S323)、第2変換処理を終了する。   After that, the CPU 51 outputs the regenerated BW binary image to an output destination designated in advance (S323), and ends the second conversion process.

なお、図12に示される第2変換処理は、当該第2変換処理が実行されることが決定される前に、予め実行されていてもよい。   Note that the second conversion process illustrated in FIG. 12 may be executed in advance before it is determined that the second conversion process is to be executed.

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

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

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

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

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

このように、BW二値画像における黒画素のドット数を計数し、その計数したドット数と閾値とを比較することにより、BW二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   As described above, by counting the number of dots of black pixels in the BW binary image and comparing the counted number of dots with a threshold value, it is easy to determine whether the BW binary image is a blank image. Can be. In addition, since the method of the binary determination is simple, it is possible to expect a higher speed of the binary determination processing.

<作用効果> <Effects>

以上のように、画像読取部20により多値画像が取得されて画像処理が行われた後、画像処理後の画像が生成されると、白紙判定部514による多値判定が実行される。そして、スキャンタイプの設定が判断されて、「スキャンタイプ:オート」が設定されている場合には、色数検出部515による色数検出が実行される。   As described above, after the multi-level image is acquired by the image reading unit 20 and the image processing is performed, when the image after the image processing is generated, the multi-value determination by the blank page determination unit 514 is performed. Then, the setting of the scan type is determined, and when “scan type: auto” is set, the color number detection by the color number detection unit 515 is performed.

白紙除去機能が無効に設定されている場合において、「スキャンタイプ:BW」が設定されているか、色数検出部515の判定の結果が「BW画像」である場合、二値変換部517の機能による単純二値化モードでの二値変換により生成されたBW二値画像が出力される。白紙除去機能が無効にされているので、単純二値化モードでの二値変換により画像処理後の画像の全画素が白画素に変換されて、白紙画像が出力されても、出力結果に問題はない。   When the blank sheet removal function is disabled and “scan type: BW” is set, or when the result of the determination by the color number detection unit 515 is “BW image”, the function of the binary conversion unit 517 is performed. The BW binary image generated by the binary conversion in the simple binary mode according to the above is output. Since the blank page removal function is disabled, even if all pixels of the image after image processing are converted to white pixels by binary conversion in the simple binary mode and the blank image is output, there is a problem with the output result. There is no.

白紙除去機能が有効に設定されている場合において、白紙判定部514の多値判定の結果が「白紙画像」である場合、画像が出力されない。そのため、白紙判定部514の多値判定の結果と、白紙除去機能により画像が出力されないという結果とが一致する。   If the blank page removal function is set to be valid and the result of the multi-value determination by the blank page determination unit 514 is a “blank image”, no image is output. Therefore, the result of the multi-value determination by the blank page determination unit 514 matches the result that no image is output by the blank page removal function.

また、白紙除去機能が有効に設定されている場合において、白紙判定部514の多値判定の結果が「白紙画像」でなく、「スキャンタイプ:BW」が設定されており、二値変換部517の二値判定の結果が「白紙画像」である場合には、誤差拡散モードでの二値変換により生成されたBW二値画像が出力される。二値変換部517の二値判定の結果が「白紙画像」でない場合には、単純二値化モードでの二値変換により生成されたBW二値画像が出力される。   When the blank page removal function is enabled, the result of the multi-value determination by the blank page determination unit 514 is not “blank page image” but “scan type: BW” is set, and the binary conversion unit 517 Is a "blank image", the BW binary image generated by the binary conversion in the error diffusion mode is output. If the result of the binary determination by the binary conversion unit 517 is not a “blank image”, a BW binary image generated by binary conversion in the simple binary mode is output.

白紙除去機能が有効に設定されている場合において、白紙判定部514の多値判定の結果が「白紙画像」でなく、色数検出部515の判定の結果が「BW画像」であり、二値変換部517による二値判定の結果が「白紙画像」である場合には、グレーJpeg多値画像が出力される。二値変換部517による二値判定の結果が「白紙画像」でない場合には、単純二値化モードでの二値変換により生成されたBW二値画像が出力される。   When the blank page removal function is set to be valid, the result of the multi-level determination by the blank page determination unit 514 is not “blank image”, and the result of the determination by the color number detection unit 515 is “BW image”. If the result of the binary determination by the conversion unit 517 is a “blank image”, a gray Jpeg multivalued image is output. If the result of the binary determination by the binary conversion unit 517 is not a “blank image”, a BW binary image generated by the binary conversion in the simple binary mode is output.

誤差拡散モードでの二値変換またはJpeg圧縮部516によるグレーJpeg多値画像への変換では、単純二値化モードでの二値変換よりも、画像処理後の画像の各画素が白画素に変換されることを抑制できる。その結果、白紙判定部514の多値判定の結果が「白紙画像」でないにもかかわらず、白紙画像が出力されることを抑制できる。よって、白紙判定部514の多値判定の結果と矛盾しない出力結果を期待することができる。   In the binary conversion in the error diffusion mode or the conversion to the gray Jpeg multi-valued image by the Jpeg compression unit 516, each pixel of the image after the image processing is converted to a white pixel, compared with the binary conversion in the simple binarization mode. Can be suppressed. As a result, it is possible to suppress output of a blank image even though the result of the multi-value determination by the blank sheet determination unit 514 is not a “blank image”. Therefore, it is possible to expect an output result that does not contradict the result of the multi-value determination of the blank page determination unit 514.

また、制御部50は、RAM53の空き容量が規定量以上の場合には、画像処理後の画像をRAM53に保存させる。RAM53の空き容量が規定量よりも少ない場合には、画像処理後の画像をRAM53に保存させない。   When the free space in the RAM 53 is equal to or larger than the specified amount, the control unit 50 causes the RAM 53 to store the image after the image processing. If the free space in the RAM 53 is smaller than the specified amount, the image after the image processing is not stored in the RAM 53.

RAM53の空き容量に余裕がある場合には、画像処理後の画像がRAM53に保存されている。そのため、誤差拡散モードでの二値変換により生成されるBW二値画像を出力する必要が生じた場合、つまり白紙判定部514による多値判定の結果が「白紙画像」でなく、かつ、二値変換部517による二値判定の結果が「白紙画像」である場合に、RAM53に保存されている画像処理後の画像を、誤差拡散モードでの二値変換に使用することができる。   If there is enough free space in the RAM 53, the image after image processing is stored in the RAM 53. Therefore, when it is necessary to output a BW binary image generated by the binary conversion in the error diffusion mode, that is, the result of the multi-level determination by the blank page determination unit 514 is not a “blank image” and the binary If the result of the binary determination by the conversion unit 517 is a “blank image”, the image after image processing stored in the RAM 53 can be used for binary conversion in the error diffusion mode.

一方、RAM53の空き容量に余裕がない場合には、画像処理後の画像がRAM53に保存されないので、画像処理後の画像によりRAM53が圧迫されることを抑制できる。この場合、白紙判定部514の多値判定の結果が「白紙画像」でなくても、誤差拡散モードでの二値変換によるBW二値画像の出力が不可能であるので、二値変換部517の二値判定の結果が「白紙画像」であると判定された場合には、画像が出力されない。   On the other hand, if there is not enough free space in the RAM 53, the image after the image processing is not stored in the RAM 53, so that it is possible to suppress the RAM 53 from being pressed by the image after the image processing. In this case, even if the result of the multi-value determination by the blank page determination unit 514 is not “blank image”, it is impossible to output a BW binary image by binary conversion in the error diffusion mode. If it is determined that the result of the binary determination is a “blank image”, no image is output.

また、「スキャンタイプ:オート」が設定されている場合、色数検出部515による色数検出が行われ、その判定結果が「BW画像」であった場合に、グレーJpeg多値画像の出力が決定される前に、グレーJpeg多値画像が生成されている。   When “scan type: auto” is set, the number of colors is detected by the number-of-colors detection unit 515, and when the determination result is “BW image”, the output of the gray Jpeg multi-value image is performed. Before being determined, a gray Jpeg multi-valued image has been generated.

グレーJpeg多値画像が予め生成されているので、グレーJpeg多値画像の出力の高速化を期待することができる。すなわち、多値判定の結果が「白紙画像」でなく、二値判定の結果が「白紙画像」でない場合に、判定と矛盾しない出力が高速に行われることを期待できる。   Since the gray Jpeg multi-valued image has been generated in advance, it is possible to expect a high-speed output of the gray Jpeg multi-valued image. That is, when the result of the multi-value determination is not “blank image” and the result of the binary determination is not “blank image”, it can be expected that output consistent with the determination is performed at high speed.

<第2変換処理(その2)> <Second conversion process (2)>

図11に示されるステップS32で実行される第2変換処理は、図14に示される処理であってもよい。   The second conversion process executed in step S32 shown in FIG. 11 may be the process shown in FIG.

図14に示される第2変換処理では、CPU51は、二値変換部517の機能による単純二値化モードでの二値変換に使用する閾値を低濃度側に変更する(S324)。このとき、CPU51は、画像全体についてのY成分のヒストグラムを作成して、少なくとも一部の画素が黒画素に変換されるように閾値を変更する。   In the second conversion process shown in FIG. 14, the CPU 51 changes the threshold value used for the binary conversion in the simple binary mode by the function of the binary conversion unit 517 to the low density side (S324). At this time, the CPU 51 creates a histogram of the Y component for the entire image, and changes the threshold so that at least some of the pixels are converted to black pixels.

そして、CPU51は、二値変換部517の機能による単純二値化モードでの二値変換を再び実行して、BW二値画像を再生成する(S325)。   Then, the CPU 51 again executes the binary conversion in the simple binarization mode by the function of the binary conversion unit 517 to regenerate the BW binary image (S325).

その後、CPU51は、再生成したBW二値画像を予め指定された出力先に出力し(S326)、第2変換処理を終了する。   Thereafter, the CPU 51 outputs the regenerated BW binary image to an output destination specified in advance (S326), and ends the second conversion process.

これにより、白紙画像が出力されにくくなる。   This makes it difficult to output a blank image.

なお、図14に示される第2変換処理は、当該第2変換処理が実行されることが決定される前に、予め実行されていてもよい。   Note that the second conversion process illustrated in FIG. 14 may be executed in advance before it is determined that the second conversion process is to be executed.

<第2変換処理(その3)> <Second conversion process (3)>

図11に示されるステップS32で実行される第2変換処理は、図15に示される処理であってもよい。   The second conversion process executed in step S32 shown in FIG. 11 may be the process shown in FIG.

図15に示される第2変換処理では、CPU51は、Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像のみを生成するモードを有効(グレー)に設定する(S327)。   In the second conversion process illustrated in FIG. 15, the CPU 51 sets, as the operation mode of the Jpeg compression unit 516, a mode for generating only a gray Jpeg multivalued image to be valid (gray) (S327).

そして、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成する(S328)。   Then, the CPU 51 generates a gray Jpeg multivalued image by the function of the Jpeg compression unit 516 (S328).

その後、CPU51は、そのグレーJpeg多値画像を予め指定された出力先に出力して(S329)、第2変換処理を終了する。   Thereafter, the CPU 51 outputs the gray Jpeg multi-valued image to an output destination designated in advance (S329), and ends the second conversion process.

なお、図15に示される第2変換処理は、当該第2変換処理が実行されることが決定される前に、予め実行されていてもよい。   Note that the second conversion process illustrated in FIG. 15 may be executed in advance before it is determined that the second conversion process is to be executed.

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

二値変換部517の機能により生成されるBW二値画像が圧縮されて出力される場合、二値変換部517による二値判定処理は、図16に示される処理であってもよい。   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 illustrated in FIG.

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

BW二値画像のファイルサイズが1kB以上である場合には(S201:YES)、CPU51は、BW二値画像が白紙画像でないと判定し、その判定結果をRAM53に保存する(S202)。   When the file size of the BW binary image is equal to or larger than 1 kB (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二値画像のファイルサイズが1kBより少ない場合には(S201:NO)、CPU51は、BW二値画像が白紙画像であると判定し、その判定結果をRAM53に保存する(S203)。   If the file size of the BW binary image is smaller than 1 kB (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).

このように、圧縮後のBW二値画像のファイルサイズと閾値とを比較することにより、BW二値画像が白紙画像であるか否かを容易に判定することができる。また、二値判定の手法が簡単であるので、二値判定処理の高速化を期待することができる。   As described above, by comparing the file size of the compressed BW binary image with the threshold, it is possible to easily determine whether or not the BW binary image is a blank image. In addition, since the method of the binary determination is simple, it is possible to expect a higher speed of the binary determination processing.

<画像出力処理(その2)> <Image output processing (2)>

図3に示されるステップS7で実行される画像出力処理は、図17に示される処理であってもよい。   The image output process executed in step S7 shown in FIG. 3 may be the process shown in FIG.

図17に示される画像出力処理では、CPU51は、「スキャンタイプ:オート」が設定されているか否かを判断する(S721)。   In the image output process shown in FIG. 17, the CPU 51 determines whether “scan type: auto” is set (S721).

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

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

色数検出部515による判定の結果が「BW画像」であった場合には(S722:YES)、二値変換部517の機能によるBW二値画像の生成および二値判定が実行される。生成されたBW二値画像は、RAM53に保存される。そして、CPU51は、二値変換部517による二値判定の結果が「白紙画像」であったか否かを判断する(S723)。   When the result of the determination by the color number detection unit 515 is “BW image” (S722: YES), the generation of the BW binary image and the binary determination by the function of the binary conversion unit 517 are executed. 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 a “blank image” (S723).

二値判定の結果が「白紙画像」であった場合(S723:YES)、CPU51は、RAM53に保存されているBW二値画像を削除する(S724)。BW二値画像の削除後、CPU51は、画像出力処理を終了する。   If the result of the binary determination is “blank image” (S723: YES), the CPU 51 deletes the BW binary image stored in the RAM 53 (S724). After deleting the BW binary image, the CPU 51 ends the image output processing.

また、二値判定の結果が「白紙画像」でなかった場合(S723:NO)、CPU51は、RAM53に保存されているBW二値画像を予め指定された出力先に出力し(S725)、画像出力処理を終了する。   If the result of the binary determination is not “blank image” (S723: NO), the CPU 51 outputs the BW binary image stored in the RAM 53 to the output destination specified in advance (S725). The output processing ends.

一方、色数検出部515の判定の結果が「BW画像」でなかった場合には(S722:NO)、CPU51は、色数検出部515の判定の結果が「カラー画像」であったか否かを判断する(ステップS726)   On the other hand, when the result of the determination by the color number detection unit 515 is not “BW image” (S722: NO), the CPU 51 determines whether the result of the determination by the color number detection unit 515 is “color image”. Judge (step S726)

色数検出部515の判定の結果が「カラー画像」であった場合には(S726:YES)、CPU51は、Jpeg圧縮部516の機能により、カラーJpeg多値画像を生成し、そのカラーJpeg多値画像を予め指定された出力先に出力する(S727)。そして、CPU51は、画像出力処理を終了する。   If the result of the determination by the color number detection unit 515 is “color image” (S726: YES), the CPU 51 generates a color Jpeg multivalued image by the function of the Jpeg compression unit 516, and generates the color Jpeg multivalue image. The value image is output to an output destination specified in advance (S727). Then, the CPU 51 ends the image output processing.

また、色数検出部515の判定の結果が「BW画像」および「カラー画像」でなかった場合には(S726:NO)、CPU51は、Jpeg圧縮部516の機能により、グレーJpeg多値画像を生成し、そのグレーJpeg多値画像を予め指定された出力先に出力する(S728)。そして、CPU51は、画像出力処理を終了する。   If the result of the determination by the color number detection unit 515 is not “BW image” or “color image” (S726: NO), the CPU 51 uses the function of the Jpeg compression unit 516 to convert the gray Jpeg multi-valued image. Then, the generated gray Jpeg multi-valued image is output to an output destination designated in advance (S728). Then, the CPU 51 ends the image output processing.

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

「スキャンタイプ:BW」が設定されている場合には、前述のモノ設定処理において、二値変換部517が有効に設定されている。   When “scan type: BW” is set, the binary conversion unit 517 is set to be valid in the above-described item setting processing.

「スキャンタイプ:BW」が設定されている場合(S729:YES)、二値変換部517の機能によるBW二値画像の生成および二値判定が実行される。生成されたBW二値画像は、RAM53に保存される。そして、CPU51は、二値変換部517による二値判定の結果が「白紙画像」であったか否かを判断する(S730)。   When “scan type: BW” is set (S729: YES), the generation of the BW binary image and the binary determination by the function of the binary conversion unit 517 are executed. 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 a “blank image” (S730).

二値判定の結果が「白紙画像」であった場合には(S730:YES)、CPU51は、RAM53に保存されているBW二値画像を削除する(S731)。BW二値画像の削除後、CPU51は、画像出力処理を終了する。   If the result of the binary determination is “blank image” (S730: YES), the CPU 51 deletes the BW binary image stored in the RAM 53 (S731). After deleting the BW binary image, the CPU 51 ends the image output processing.

二値判定の結果が「白紙画像」でなかった場合には(S730:NO)、CPU51は、RAM53に保存されているBW二値画像を予め指定された出力先に出力し(S732)、画像出力処理を終了する。   If the result of the binary determination is not the “blank image” (S730: NO), the CPU 51 outputs the BW binary image stored in the RAM 53 to the output destination specified in advance (S732). The output processing ends.

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

「スキャンタイプ:グレー」が設定されている場合には、前述のモノ設定処理において、Jpeg圧縮部516の動作モードとして、グレーJpeg多値画像のみを生成するモードが有効(グレー)に設定されている。   If “scan type: gray” is set, the mode for generating only the gray Jpeg multi-valued image is set to valid (gray) as the operation mode of the Jpeg compression unit 516 in the above-described mono setting process. I have.

「スキャンタイプ:グレー」が設定されている場合には(S733:YES)、CPU51は、Jpeg圧縮部516の機能により作成したグレーJpeg多値画像を予め指定された出力先に出力し(S734)、画像出力処理を終了する。   If “scan type: gray” is set (S733: YES), the CPU 51 outputs the gray Jpeg multi-value image created by the function of the Jpeg compression unit 516 to an output destination specified in advance (S734). Then, the image output process ends.

「スキャンタイプ:オート」、「スキャンタイプ:BW」および「スキャンタイプ:グレー」のいずれも設定されてない場合、つまり「スキャンタイプ:カラー」が設定されている場合には(S733:NO)、前述のカラー設定処理において、Jpeg圧縮部516の動作モードとして、カラーJpeg多値画像のみを生成するモードが有効(カラー)に設定されている。この場合、CPU51は、Jpeg圧縮部516の機能により作成したカラーJpeg多値画像を予め指定された出力先に出力し(S735)、画像出力処理を終了する。   If none of “scan type: auto”, “scan type: BW” and “scan type: gray” are set, that is, if “scan type: color” is set (S733: NO), In the above-described color setting process, a mode for generating only a color Jpeg multi-value image is set to valid (color) as an operation mode of the Jpeg compression unit 516. In this case, the CPU 51 outputs the color Jpeg multi-valued image created by the function of the Jpeg compression unit 516 to an output destination designated in advance (S735), and ends the image output processing.

このように、白紙判定部514の多値判定の結果が「白紙画像」でなく、色数検出部515の判定の結果が「BW画像」であり、二値変換部517による二値判定の結果が「白紙画像」である場合には、RAM53に保存されているBW二値画像が削除されるので、画像が出力されない。また、白紙判定部514の多値判定の結果が「白紙画像」でなく、「スキャンタイプ:BW」が設定されており、二値変換部517の二値判定の結果が「白紙画像」である場合には、RAM53に保存されているBW二値画像が削除されるので、画像が出力されない。そのため、二値変換部517による二値判定の結果と画像が出力されないという結果が一致する。   As described above, the result of the multi-value determination by the blank page determination unit 514 is not “blank image”, the result of the determination by the color number detection unit 515 is “BW image”, and the result of the binary determination by the binary conversion unit 517 Is a “blank image”, the BW binary image stored in the RAM 53 is deleted, and no image is output. Also, the result of the multi-value determination by the blank page determination unit 514 is not “blank image”, but “scan type: BW” is set, and the result of the binary determination by the binary conversion unit 517 is “blank image”. In this case, since the BW binary image stored in the RAM 53 is deleted, no image is output. Therefore, the result of the binary determination by the binary conversion unit 517 matches the result that no image is output.

よって、二値判定処理による二値判定の結果と矛盾しない出力結果を期待することができる。すなわち、予め指定された出力先に出力される出力画像としてRAM53に保存されているBW二値画像が白紙画像であるか否かが判定され(二値判定)、BW二値画像が白紙画像であると判定された場合には、当該BW二値画像が削除される。そのため、白紙除去機能が有効に設定されている場合において、白紙画像であるBW二値画像が出力されることを抑制できる。   Therefore, an output result that does not contradict the result of the binary determination by the binary determination process can be expected. That is, it is determined whether or not the BW binary image stored in the RAM 53 as an output image output to the output destination designated in advance is a blank image (binary determination), and the BW binary image is a blank image. If it is determined that there is, the BW binary image is deleted. Therefore, when the blank page removing function is set to be valid, it is possible to suppress the output of the BW binary image, which is a blank page image.

<変形例> <Modification>

以上、本発明の実施の形態について説明したが、本発明は、さらに他の形態で実施することもできる。   Although the embodiments of the present invention have been described above, the present invention can be embodied in other forms.

前述の実施形態では、白紙判定部514による多値判定の結果が「白紙画像」でなく、「スキャンタイプ:オート」が設定され、かつ、二値変換部517による二値判定の結果が「白紙画像」であった場合に、グレーJpeg多値画像が出力されるとした。しかしながら、多値判定の結果が「白紙画像」でないにもかかわらず、二値判定の結果が「白紙画像」であった場合に、グレーJpeg多値画像ではなく、図11に示す二値画像出力処理が実行されて、その二値画像出力処理中の第2変換処理(図12または図14に示される処理)により生成されるBW二値画像が出力されてもよい。   In the above-described embodiment, the result of the multi-level determination by the blank page determination unit 514 is not “blank image”, but “scan type: auto” is set, and the result of the binary determination by the binary conversion unit 517 is “blank page”. In the case of “image”, a gray Jpeg multi-valued image is output. However, when the result of the binary determination is “blank image” despite that the result of the multi-value determination is not “blank image”, the binary image output shown in FIG. The process may be executed to output a BW binary image generated by the second conversion process (the process shown in FIG. 12 or FIG. 14) during the binary image output process.

その場合、第2変換処理に用いられる画像処理後の画像は、RAM53に十分な空き容量があるか否かに応じて、画像処理後の画像を保存するか否かが決定されるとよい。   In this case, it is preferable to determine whether to store the image-processed image according to whether the RAM 53 has a sufficient free space in the image-processed image used for the second conversion process.

また、前述の実施形態では、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. Further, the control unit 50 may include a plurality of CPUs, and the plurality of CPUs may execute each process in cooperation.

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

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

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

その他、前述の構成には、特許請求の範囲に記載された事項の範囲で種々の設計変更を施すことが可能である。   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 制御部
53 RAM
514 白紙判定部
516 Jpeg圧縮部
517 二値変換部
1 MFP
20 image reading unit 50 control unit 53 RAM
514 Blank page determination unit 516 JPEG compression unit 517 Binary conversion unit

Claims (7)

画像読取部と、
制御部と、
操作部と、
を備え、
前記制御部は、
前記画像読取部により原稿を読み取ることにより生成される多値画像データを取得する画像取得処理と、
前記操作部を介して設定された設定情報を取得する設定取得処理であって、前記設定情報には、多値画像で出力するための第1設定情報と、多値画像で出力するか二値画像で出力するかを自動で判断するための第2設定情報とを含む、前記設定取得処理と、
前記画像取得処理により取得した多値画像データが表す多値画像が白紙画像を表すか否かを判定する第1白紙判定処理と、を実行し、
さらに、前記制御部は、
前記第1白紙判定処理によって白紙画像を表すと判定すると、前記多値画像データを削除する第1削除処理と、
前記第1白紙判定処理によって白紙画像を表さないと判定し、かつ、前記設定取得処理により取得した設定情報が前記第1設定情報の場合に、前記多値画像を出力する第1出力処理と、
前記第1白紙判定処理によって白紙画像を表さないと判定し、かつ、前記設定取得処理により取得した設定情報が前記第2設定情報の場合に、前記画像取得処理により取得した多値画像データが表す多値画像が二値画像として出力するための条件を満たしているか判断する判断処理と、
前記判断処理において条件を満たすと判断すると、前記多値画像データを二値化した変換済み二値画像データが表す二値画像が白紙画像を表すか否かを判定する第2白紙判定処理と、
前記第2白紙判定処理において前記二値画像が白紙画像であると判定すると、前記二値画像を削除する第2削除処理と、
前記第2白紙判定処理において前記二値画像が白紙画像でないと判定すると、前記二値画像を出力する第2出力処理と、
前記判断処理において前記条件を満たさないと判断すると、前記多値画像データが表す多値画像を出力する第3出力処理と、を実行する画像読取装置。
An image reading unit;
A control unit;
An operation unit,
With
The control unit includes:
Image acquisition processing for acquiring multi-valued image data generated by reading a document by the image reading unit,
A setting acquisition process for acquiring setting information set via the operation unit, wherein the setting information includes first setting information for outputting as a multi-valued image, and outputting as a multi-valued image or binary. The setting acquisition processing, including second setting information for automatically determining whether to output as an image,
Performing a first blank page determination process of determining whether a multi-value image represented by the multi-value image data acquired by the image acquisition process represents a blank image,
Further, the control unit includes:
A first deletion process for deleting the multi-valued image data when the first blank page determination process determines that the blank image is represented;
A first output process of outputting the multi-valued image when it is determined that the blank image is not represented by the first blank page determination process, and the setting information acquired by the setting acquisition process is the first setting information; ,
If the first blank sheet determination process determines that a blank image is not represented, and the setting information acquired by the setting acquisition process is the second setting information, the multi-valued image data acquired by the image acquisition process is A judgment process of judging whether or not the multivalued image to be represented satisfies a condition for outputting as a binary image;
A second blank page determination process for determining whether a binary image represented by the converted binary image data obtained by binarizing the multi-valued image data represents a blank image when determining that a condition is satisfied in the determination process;
A second deletion process for deleting the binary image when the binary image is determined to be a blank image in the second blank page determination process;
A second output process for outputting the binary image when the binary image is determined not to be a blank image in the second blank page determination process;
An image reading device that executes a third output process of outputting a multi-valued image represented by the multi-valued image data when it is determined that the condition is not satisfied in the determination process .
請求項に記載の画像読取装置であって、
前記操作部を介して、白紙画像を除去する白紙除去機能を有効にするか否かの設定操作を受け付け、
前記白紙除去機能を有効にする設定を受け付けた場合に、前記第1白紙判定処理を実行し、
前記白紙除去機能を無効にする設定を受け付けた場合に、前記第1白紙判定処理を実行せず、前記画像取得処理により取得した画像に基づく出力画像を出力する、画像読取装置。
The image reading device according to claim 1 ,
Via the operation unit, accepts a setting operation of whether to enable a blank paper removal function for removing a blank image,
When a setting to enable the blank sheet removal function is received, the first blank sheet determination process is executed,
An image reading device that outputs an output image based on an image acquired by the image acquisition process without performing the first blank page determination process when receiving a setting for disabling the blank page removal function .
請求項1または2に記載の画像読取装置であって、
前記画像読取部は、複数の原稿を連続して読取可能であり、
前記第1白紙判定処理および前記判断処理を1の原稿ごとに実行する、画像読取装置。
The image reading apparatus according to claim 1 or 2,
The image reading portion is readable in succession a plurality of originals,
An image reading apparatus that executes the first blank sheet determination process and the determination process for each original.
請求項1からのいずれか1項に記載の画像読取装置であって、
前記設定情報はさらに二値画像で出力するための第3設定情報を含み、
前記制御部は、前記設定取得処理により取得した設定情報が前記第3設定情報の場合に、前記画像取得処理において、前記画像読取部により原稿を読み取ることにより生成される二値画像データを取得し、取得した前記二値画像データが表す二値画像が白紙画像を表すか否かを判定する、画像読取装置。
An image reading apparatus according to any one of claims 1 to 3,
The setting information further includes third setting information for outputting as a binary image,
The control unit, when the setting information obtained by the setting obtaining process is the third setting information, obtains binary image data generated by reading a document by the image reading unit in the image obtaining process . And determining whether the binary image represented by the acquired binary image data represents a blank image.
請求項1からのいずれか1項に記載の画像読取装置であって、
前記制御部は、前記判断処理において、
前記多値画像の色差データに基づき、前記多値画像が有彩色か無彩色かを判断し、
前記多値画像が無彩色と判断、かつ、前記多値画像に、輝度成分が第1閾値未満または第2閾値以上である画素が規定量以上含まれると判断た場合に、前記条件を満たすと判断する、画像読取装置。
An image reading apparatus according to any one of claims 1 to 4,
The control unit includes :
Based on the color difference data of the multi-valued image, determine whether the multi-valued image is chromatic or achromatic,
The multi-value image is determined to achromatic, and the multi-value image, when the luminance component is determined as the pixel at the first threshold or less than the second threshold value or more is contained more than the specified amount, the condition An image reading device that determines that the condition is satisfied.
請求項1からのいずれか1項に記載の画像読取装置であって、
前記制御部は、前記第1白紙判定処理において、前記多値画像の輝度成分のデータに基づいて、前記多値画像が白紙画像であるか否かを判定する、画像読取装置。
An image reading apparatus according to any one of claims 1 to 5,
The image reading device, wherein the control unit determines whether or not the multi-valued image is a blank image based on luminance component data of the multi-valued image in the first blank paper determination process.
画像処理プログラムであって、
画像読取装置により生成された多値画像データおよび前記多値画像データに対応する設定情報を取得する取得処理と
記多値画像データを構成する多値画像が白紙画像を表すか否かを判定する多値判定処理と、をコンピュータに実行させ、さらに、
前記多値判定処理により白紙画像を表すと判定された多値画像を削除する第1削除処理と
前記多値判定処理により前記多値画像が白紙画像を表さないと判定し、かつ、前記取得処理により取得した前記設定情報が多値画像で出力するための第1設定情報である場合に、前記多値画像を出力する第1出力処理と、
記多値判定処理により前記多値画像が白紙画像を表さないと判定し、かつ、前記取得処理により取得した前記設定情報が多値画像で出力するか二値画像で出力するかを自動で判断するための第2設定情報である場合に、前記多値画像データを構成する多値画像が二値画像として出力するための条件を満たしているか否かを判断する判断処理と、
前記判断処理により前記条件を満たすと判断した場合に、前記多値画像データを二値化した変換済み二値画像データが表す二値画像が白紙画像であるか否かを判定する二値判定処理と、
前記二値判定処理により、前記二値画像が白紙画像と判定された画像を削除する第2削除処理と、
前記二値判定処理により、前記二値画像が白紙画像でないと判定された画像であって二値画像データに基づく出力画像を出力する第2出力処理と、
前記判断処理により前記条件を満たさないと判断した場合に前記多値画像データに基づく出力画像を出力する第3出力処理と、をコンピュータに実行させる画像処理プログラム。
An image processing program,
Acquisition processing for acquiring multi-valued image data generated by an image reading device and setting information corresponding to the multi-valued image data ;
Before SL multivalued image and determining the multi-level determination process whether representing a blank image constituting the multi-value image data, cause the computer to execute, further,
A first deletion process for deleting a multi-value image determined to represent a blank image by the multi-value determination process;
When it is determined that the multi-valued image does not represent a blank image by the multi-valued determination process, and the setting information obtained by the obtaining process is first setting information to be output as a multi-valued image, A first output process for outputting the multi-valued image;
Determining that the multi-value image by the previous SL multilevel determination process does not represent a blank image, and automatically whether the setting information acquired by the acquiring process to output on whether the binary image and outputs multi-valued image In the case of the second setting information for judging in, a judgment process of judging whether or not a multi-valued image constituting the multi-valued image data satisfies a condition for outputting as a binary image;
A binary determination process for determining whether the binary image represented by the converted binary image data obtained by binarizing the multi-valued image data is a blank image when it is determined that the condition is satisfied by the determination process When,
A second deletion process of deleting an image in which the binary image is determined to be a blank image by the binary determination process;
A second output process of outputting an output image based on the binary image data, wherein the binary image is an image determined to be not a blank image,
And a third output process of outputting an output image based on the multi-valued image data when it is determined that the condition is not satisfied by the determination process .
JP2018187184A 2013-08-30 2018-10-02 Image reading device and image processing program Active JP6652176B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2013178913 2013-08-30
JP2013178913 2013-08-30

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014116630A Division JP6413360B2 (en) 2013-08-30 2014-06-05 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2019024232A JP2019024232A (en) 2019-02-14
JP6652176B2 true JP6652176B2 (en) 2020-02-19

Family

ID=52833144

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2014116630A Active JP6413360B2 (en) 2013-08-30 2014-06-05 Image processing apparatus and image processing program
JP2018187184A Active JP6652176B2 (en) 2013-08-30 2018-10-02 Image reading device and image processing program

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2014116630A Active JP6413360B2 (en) 2013-08-30 2014-06-05 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (2) JP6413360B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000156762A (en) * 1998-11-19 2000-06-06 Ricoh Co Ltd Image processor
JP2003163775A (en) * 2001-11-28 2003-06-06 Ricoh Co Ltd Facsimile equipment
JP5166158B2 (en) * 2008-07-31 2013-03-21 キヤノン電子株式会社 Image processing apparatus, image reading apparatus, image reading system, image processing method, and image processing program
JP5804720B2 (en) * 2011-02-10 2015-11-04 キヤノン株式会社 Image processing apparatus, image processing method, and program.

Also Published As

Publication number Publication date
JP6413360B2 (en) 2018-10-31
JP2019024232A (en) 2019-02-14
JP2015065638A (en) 2015-04-09

Similar Documents

Publication Publication Date Title
JP4912270B2 (en) Image processing apparatus and control method thereof
JP6338469B2 (en) Image processing apparatus and image processing method
JP2017175213A (en) Manuscript type recognition device, image forming apparatus, manuscript type recognition method and program
JP4589896B2 (en) Image processing apparatus, image processing method, and program
JP7338002B2 (en) Image processing device, image processing method, and program
US9621763B2 (en) Image processing apparatus, image processing system, image processing method, and recording medium converting gradation of image data in gradation conversion range to emphasize or reduce shine appearance
US8284460B2 (en) Image processing apparatus directed to image outline processing, image processing method of the same, and computer-readable storage medium storing instructions for performing image processing
JP2017175192A (en) Image compression apparatus, image formation apparatus, image compression method, and program
JP6652176B2 (en) Image reading device and image processing program
JP6452657B2 (en) Image processing apparatus, control method thereof, and program
JP6149613B2 (en) Image processing apparatus and image processing program
US9241085B2 (en) Image forming apparatus having improved blank paper image detection
JP2017118480A (en) Image processing device, image processing method and program
JP2012205133A (en) Image processor and control method therefor
JP5453215B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2021100184A (en) Image processing device, image processing method, and program
JP4169674B2 (en) Image processing apparatus, image processing program, and storage medium
US9521290B2 (en) Image processing apparatus, image forming apparatus, image processing method, and non-transitory computer readable medium for detecting difference between images
US20110122462A1 (en) Image reading apparatus, control method for the same, and image forming apparatus
JP2012231261A (en) Image processing apparatus and control method thereof
JP7211209B2 (en) IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD
JP6221655B2 (en) Image reading apparatus, image reading method, and program
JP2017199976A (en) Image processing apparatus, image processing method and program
JP2016092492A (en) Image reader
JP5992956B2 (en) Image processing device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181025

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181025

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190910

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20191108

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200106

R150 Certificate of patent or registration of utility model

Ref document number: 6652176

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150