JP6127966B2 - Image output apparatus and program - Google Patents

Image output apparatus and program Download PDF

Info

Publication number
JP6127966B2
JP6127966B2 JP2013270362A JP2013270362A JP6127966B2 JP 6127966 B2 JP6127966 B2 JP 6127966B2 JP 2013270362 A JP2013270362 A JP 2013270362A JP 2013270362 A JP2013270362 A JP 2013270362A JP 6127966 B2 JP6127966 B2 JP 6127966B2
Authority
JP
Japan
Prior art keywords
image
color
image data
determination process
determined
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
JP2013270362A
Other languages
Japanese (ja)
Other versions
JP2015126441A (en
Inventor
寛子 石川
寛子 石川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2013270362A priority Critical patent/JP6127966B2/en
Publication of JP2015126441A publication Critical patent/JP2015126441A/en
Application granted granted Critical
Publication of JP6127966B2 publication Critical patent/JP6127966B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は,画像出力装置およびプログラムに関する。さらに詳細には,ある画像に基づいて,画像データの生成と,無地判定とを行い,無地判定結果に応じた画像データを出力する画像出力装置およびプログラムに関するものである。   The present invention relates to an image output apparatus and a program. More specifically, the present invention relates to an image output apparatus and program for generating image data and plain color determination based on a certain image and outputting image data corresponding to the solid color determination result.

従来から,画像を取得し,取得した画像に基づいて,出力フォーマットの画像データを生成し,さらにその取得した画像が無地画像か否かの無地判定を行い,その無地判定の結果に基づいて無地画像を除外した画像データを出力する技術が知られている。なお,本明細書では,白い紙による白紙に限らず,ページ内に画像情報を含まない単色のカラーページである色無地の場合も含んで,「無地」とする。   Conventionally, an image is acquired, image data in an output format is generated based on the acquired image, a plain color determination is performed as to whether or not the acquired image is a solid color image, and a solid color is determined based on the result of the solid color determination. A technique for outputting image data excluding images is known. In the present specification, the term “solid” is used, including not only a white sheet of white paper but also a plain color page that is a single color page that does not include image information in the page.

例えば,特許文献1には,画像読取部と画像形成部とを有する画像処理装置であって,原稿の画像を読み取り,読み取った画像から白紙画像を検出し,検出した白紙画像を削除する技術が開示されている。   For example, Patent Document 1 discloses an image processing apparatus having an image reading unit and an image forming unit, which reads a document image, detects a blank image from the read image, and deletes the detected blank image. It is disclosed.

特開2012−160873号公報JP 2012-160873 A

しかしながら,前記した従来の技術には,次のような問題があった。すなわち,無地判定の結果に応じて出力対象の画像データを決定する場合,無地判定に時間がかかるほど画像データの出力開始が遅れてしまう。例えば,各画素の輝度情報に基づく無地判定は時間がかかる傾向にある。そのため,画像データの生成が完了しているにもかかわらず,画像データの出力を待たされることもある。また,白い紙に限らず,取得した画像が画像情報を含まない無地画像であった場合には,その画像の画像データを出力しない方が好ましい。   However, the conventional technique described above has the following problems. That is, when image data to be output is determined according to the result of the plain color determination, the start of image data output is delayed as the solid color determination takes longer. For example, plain color determination based on luminance information of each pixel tends to take time. Therefore, there is a case where the output of the image data is awaited even though the generation of the image data is completed. Also, not only on white paper, but when the acquired image is a plain image not including image information, it is preferable not to output the image data of the image.

本発明は,前記した従来の技術が有する問題点を解決するためになされたものである。すなわちその課題とするところは,無地判定を早期に終了し,画像データを出力する場合には早期に出力を開始することが期待できる画像出力装置およびプログラムを提供することにある。   The present invention has been made to solve the above-described problems of the prior art. That is, an object of the present invention is to provide an image output apparatus and a program that can be expected to end plainness determination early and start output early when outputting image data.

この課題の解決を目的としてなされた画像出力装置は,画像を取得する取得部と,制御部とを備え,前記制御部は,前記取得部にて画像を取得する取得処理と,前記取得処理にて取得した画像である取得画像に基づいて,所定の圧縮方式によって圧縮されたカラー画像データを生成するカラー生成処理と,前記取得画像に基づいて,前記カラー画像データと同じ圧縮方式によって圧縮されたグレースケールの画像データであるグレー画像データを生成するグレー生成処理と,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いが閾値よりも大きい場合に,前記取得画像を非無地画像と判定する無地判定処理と,前記無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定する決定処理とを実行することを特徴としている。   An image output apparatus made for the purpose of solving this problem includes an acquisition unit for acquiring an image and a control unit, and the control unit performs an acquisition process for acquiring an image by the acquisition unit and the acquisition process. A color generation process for generating color image data compressed by a predetermined compression method based on an acquired image that is an image acquired in the above-described manner, and a compression method that is compressed by the same compression method as the color image data based on the acquired image When the difference between the size of the color image data and the size of the gray image data is greater than a threshold value, the acquired image is determined to be a plain image. A determination process for determining whether or not to output image data based on the acquired image according to a determination result of the plain determination process and a determination result of the plain determination process It is characterized by executing and.

本明細書に開示される画像出力装置は,取得部にて取得した取得画像に基づいて,圧縮されたカラー画像データとグレー画像データとを生成する。グレー画像データは,カラー画像データと同じ圧縮方式によって圧縮されたグレースケールの画像データである。そして,生成されたカラー画像データのサイズとグレー画像データのサイズとの違いが閾値より大きい場合に,取得画像を非無地画像と判定する。さらに,判定結果に応じて画像データを出力するか否かを決定する。取得画像としては,例えば,スキャナによってカラー読み取りされた画像や,プリンタドライバが印刷対象として受け付ける画像が該当する。また,圧縮方式としては,例えば,JPEG,GIF,PNGが該当する。また,無地画像は,画像情報を含まない画像であればよく,白色の画像に限らず,単色のカラー画像を含む。   The image output apparatus disclosed in the present specification generates compressed color image data and gray image data based on the acquired image acquired by the acquisition unit. The gray image data is grayscale image data compressed by the same compression method as the color image data. Then, when the difference between the size of the generated color image data and the size of the gray image data is larger than the threshold value, the acquired image is determined as a plain image. Further, it is determined whether to output image data according to the determination result. Examples of the acquired image include an image read in color by a scanner and an image received by a printer driver as a print target. Further, as a compression method, for example, JPEG, GIF, and PNG are applicable. The plain image may be an image that does not include image information, and is not limited to a white image but includes a single color image.

すなわち,本明細書に開示される画像出力装置では,カラー画像データのサイズとグレー画像データのサイズとの比較に基づいて非無地画像であるか否かを判定するので,判定のアルゴリズムが簡単である。つまり,カラー画像データとグレー画像データとの生成が完了していれば,速やかに判定結果が得られる。その結果として,例えば,画像データの生成が完了しているにもかかわらず,無地判定の終了を待たされる状況の軽減が期待できる。   That is, in the image output device disclosed in this specification, it is determined whether or not the image is a plain image based on a comparison between the size of the color image data and the size of the gray image data, so that the determination algorithm is simple. is there. That is, if the generation of color image data and gray image data is completed, a determination result can be obtained quickly. As a result, for example, although the generation of image data has been completed, it is possible to expect a reduction in the situation where the end of the plain color determination is awaited.

また,前記制御部は,前記カラー画像データのサイズと前記グレー画像データのサイズとの比率を,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いとして用いるとよい。サイズの比率による判定は,サイズそのものによる判定結果への影響が小さいので,広範囲の画像データに適用可能である。   The control unit may use a ratio between the size of the color image data and the size of the gray image data as a difference between the size of the color image data and the size of the gray image data. The determination based on the size ratio can be applied to a wide range of image data because the influence of the size itself on the determination result is small.

また,前記制御部は,前記カラー画像データのサイズと前記グレー画像データのサイズとの差分を,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いとして用いるとよい。サイズの差分の算出は容易であり,早期に判定できる。   The control unit may use a difference between the size of the color image data and the size of the gray image data as a difference between the size of the color image data and the size of the gray image data. The size difference is easy to calculate and can be determined early.

また,前記制御部は,前記取得画像の少なくとも輝度成分に基づいて,前記取得画像が無地画像か非無地画像かを判定する成分無地判定処理を実行し,前記決定処理では,前記無地判定処理にて前記取得画像が非無地画像と判定されなかった場合には,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定するとよい。無地判定処理では,カラー画像データのサイズと前記グレー画像データのサイズとの違いが閾値よりも大きくない場合に,無地画像か非無地画像かを判定できないこともある。そこで,無地判定処理とは別の判定処理として,成分無地判定処理を実行することで,無地画像か非無地画像かを確実に判定できる。成分無地判定処理によれば,取得画像の輝度成分に基づいて,詳細な判定が可能となる。なお,成分無地判定処理は,無地判定処理の判定後に実行開始してもよいし,無地判定処理の判定完了前に実行開始してもよい。   Further, the control unit executes a component solid color determination process for determining whether the acquired image is a solid image or a non-solid image based on at least a luminance component of the acquired image. In the determination process, the control unit performs the solid color determination process. If the acquired image is not determined to be a plain color image, it may be determined whether to output image data based on the acquired image according to the determination result of the component solid color determination process. In the plain color determination process, when the difference between the size of the color image data and the size of the gray image data is not larger than the threshold value, it may not be possible to determine whether the color image data is a plain image or a non-solid image. Therefore, by executing the component solid color determination process as a determination process different from the solid color determination process, it is possible to reliably determine whether the image is a solid image or a non-solid image. According to the component plain color determination process, detailed determination is possible based on the luminance component of the acquired image. The component plain color determination process may be started after the plain color determination process is determined, or may be started before the determination of the plain color determination process is completed.

また,前記制御部は,前記決定処理では,前記無地判定処理の判定結果よりも先に前記成分無地判定処理の判定結果が得られた場合に,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定するとよい。無地判定処理と成分無地判定処理とのうち,先に得られた判定結果を採用することで,より早期に出力対象の画像データを決定できる。なお,無地判定処理と成分無地判定処理とを同時に開始する必要はない。   Further, in the determination process, when the determination result of the component solid color determination process is obtained prior to the determination result of the solid color determination process, according to the determination result of the component solid color determination process, It may be determined whether to output image data based on the acquired image. Of the plain color determination process and the component solid color determination process, the image data to be output can be determined earlier by adopting the determination result obtained earlier. It is not necessary to start the plain color determination process and the component solid color determination process at the same time.

また,前記制御部は,前記取得画像に基づいて,二値化された無彩色の画像データである無彩色二値画像データを生成する二値生成処理と,前記取得画像がカラー画像であることが不明な状態で前記無地判定処理が実行され,当該無地判定処理にて前記取得画像が非無地画像と判定されなかった後,前記成分無地判定処理にて前記取得画像が非無地画像と判定された場合に,前記取得画像が無彩色の非無地画像であると判定し,前記取得画像の少なくとも輝度成分に基づいて,前記取得画像の色種別をグレー画像か無彩色二値画像かを判定する無彩色判定処理と,前記無彩色判定処理の判定結果に基づいて,出力する画像データを決定する無彩色データ決定処理とを実行するとよい。取得画像がカラー画像と判定される前に無地判定処理が実行され,当該取得画像が非無地画像と判定されなかった後,成分無地判定処理にて取得画像が非無地画像と判定された場合には,無彩色の非無地画像と判定できる。ただし,無彩色の画像データとして,グレー画像データの他,無彩色二値画像データを生成している場合には,これらのいずれを出力対象の画像データとするかは確定していない。そこで,グレー画像か無彩色二値画像かの判定を行うことで,より適正な画像データの出力が期待できる。   Further, the control unit generates a binary image data that is achromatic image data that is binarized based on the acquired image, and the acquired image is a color image. The plain color determination process is executed in an unknown state, and after the acquired image is not determined to be a solid color image in the solid color determination process, the acquired image is determined to be a solid color image in the component solid color determination process. The acquired image is determined to be an achromatic solid image, and based on at least the luminance component of the acquired image, the color type of the acquired image is determined to be a gray image or an achromatic binary image. An achromatic color determination process and an achromatic color data determination process for determining image data to be output based on the determination result of the achromatic color determination process may be executed. A plain color determination process is performed before the acquired image is determined to be a color image, and after the acquired image is not determined to be a solid color image, and the acquired image is determined to be a solid color image in the component solid color determination process Can be determined as an achromatic solid image. However, when achromatic binary image data is generated in addition to gray image data as achromatic image data, it is not determined which of these is to be output image data. Therefore, by determining whether the image is a gray image or an achromatic binary image, more appropriate image data output can be expected.

また,前記制御部は,前記取得画像の少なくとも色差成分に基づいて,前記取得画像の色種別を判定する色判定処理と,前記色判定処理の判定結果に基づいて,出力する画像データを決定するデータ決定処理とを実行するとよい。少なくともカラー画像データとグレー画像データとの2種類の画像データを生成することから,取得画像の色種別を判定し,より適切な画像データを出力対象とする方が好ましい。   The control unit determines a color determination process for determining a color type of the acquired image based on at least a color difference component of the acquired image, and image data to be output based on a determination result of the color determination process. Data determination processing may be executed. Since at least two types of image data of color image data and gray image data are generated, it is preferable to determine the color type of the acquired image and to output more appropriate image data.

また,前記制御部は,前記無地判定処理にて前記取得画像が非無地画像と判定された場合に,前記取得画像の色種別をカラー画像と判定するとよい。例えば,取得画像をYCbCrデータとし,カラー画像データとグレー画像データを生成する際の圧縮方式をJPEGとすると,取得画像が有彩色の場合,グレー画像では色差成分を利用しない分,圧縮するとサイズに差が生じ易い。一方,取得画像が無彩色の場合,取得画像の色差成分の変化が少ないため,圧縮してもサイズに差が生じ難い。このように,無地判定処理にて取得画像が非無地画像と判定された場合,つまりカラー画像データのサイズとグレー画像データのサイズとの違いが大きい場合には,色種別がカラー画像と判明するので,色種別も判定する方が好ましい。   The control unit may determine that the color type of the acquired image is a color image when the acquired image is determined to be a non-solid image in the plain color determination process. For example, if the acquired image is YCbCr data and the compression method for generating color image data and gray image data is JPEG, if the acquired image is a chromatic color, the gray image does not use the color difference component and is compressed to the size. Differences are likely to occur. On the other hand, when the acquired image is an achromatic color, there is little change in the color difference component of the acquired image, and therefore it is difficult to cause a difference in size even after compression. In this way, when the acquired image is determined to be a solid image in the plain color determination process, that is, when the difference between the size of the color image data and the size of the gray image data is large, the color type is determined to be a color image. Therefore, it is preferable to determine the color type.

また,前記制御部は,前記色判定処理にて前記取得画像がカラー画像であると判定された後,前記無地判定処理にて非無地画像と判定されなかった場合,無地画像であると判定し,前記無地判定処理の判定結果が得られる前に,前記色判定処理にて前記取得画像がカラー画像ではないと判定された場合,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定するとよい。無地判定処理にて非無地画像と判定されなかった場合には,無彩色の画像とカラーの無地画像との可能性がある。そこで,あらかじめカラー画像であることが判明している場合には,無地判定処理の結果によってカラーの無地画像であると判定できる。一方,カラー画像ではないことが判明している場合には,成分無地判定処理の判定結果を待って無地画像か非無地画像かの判定を行うとよい。つまり,予め一部の可能性が排除されていれば,その後の判定処理がシンプルになる。   The control unit determines that the acquired image is a solid image when the acquired image is determined to be a color image in the color determination process and is not determined to be a plain image in the plain determination process. If the acquired image is determined not to be a color image in the color determination process before the determination result of the solid color determination process is obtained, the acquired image is determined according to the determination result of the component solid color determination process. It may be determined whether to output the image data based on it. If it is not determined that the image is a plain image, there is a possibility of an achromatic image and a color plain image. Therefore, when it is known in advance that the image is a color image, it can be determined that the image is a color solid image based on the result of the solid color determination process. On the other hand, if it is determined that the image is not a color image, it may be determined whether the image is a solid image or a non-solid image after waiting for the determination result of the component solid color determination process. In other words, if some of the possibilities are excluded in advance, the subsequent determination process becomes simple.

また,前記制御部は,前記取得画像に基づいて,二値化および圧縮された無彩色の画像データである無彩色二値画像データを生成する二値生成処理と,前記無彩色二値画像データのサイズが基準値よりも小さい場合に,前記取得画像が無地画像であると判定する二値無地判定処理とを実行し,前記決定処理では,前記無地判定処理の判定結果よりも先に前記二値無地判定処理の判定結果が得られた場合に,前記二値無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定するとよい。無地判定処理と二値無地判定処理とのうち,先に得られた判定結果を採用することで,より早期に出力対象の画像データを決定できる。なお,無彩色二値画像データは,無地画像の場合,圧縮するとサイズが極めて小さくなる。そのため,無地画像か否かの判別が可能になる。また,無地判定処理は,カラー画像データおよびグレー画像データの生成が完了すれば実行でき,二値無地判定処理は,無彩色二値画像データの生成が完了すれば実行できる。無地判定処理と二値無地判定処理とを同時に開始する必要はない。どちらを先に実行してもよい。   Further, the control unit is configured to generate a binary color image data that is achromatic image data binarized and compressed based on the acquired image, and the achromatic color binary image data. When the size of the image is smaller than a reference value, a binary solid color determination process is performed to determine that the acquired image is a solid color image. In the determination process, the second image is determined prior to the determination result of the solid color determination process. When the determination result of the value solid color determination process is obtained, it is preferable to determine whether to output image data based on the acquired image according to the determination result of the binary solid color determination process. Of the plain color determination process and the binary solid color determination process, the image data to be output can be determined earlier by adopting the determination result obtained earlier. It should be noted that the size of the achromatic color binary image data becomes extremely small when it is compressed in the case of a plain image. Therefore, it is possible to determine whether the image is a plain image. The solid color determination process can be executed when the generation of the color image data and the gray image data is completed, and the binary solid color determination process can be executed when the generation of the achromatic color binary image data is completed. It is not necessary to start the solid color determination process and the binary solid color determination process simultaneously. Either may be executed first.

また,前記取得部は,原稿の画像の読み取りを行い,前記制御部は,前記取得処理では,前記取得部によってカラー読み取りが行われた画像を取得するとよい。カラー読み取りによって取得された画像データに基づいて,画像データを出力するか否かを決定することができる。   The acquisition unit may read an image of a document, and the control unit may acquire an image that has been color-read by the acquisition unit in the acquisition process. Whether or not to output image data can be determined based on image data acquired by color reading.

また,前記制御部は,前記閾値を,原稿のサイズと読取解像度との少なくとも一方に基づいて設定するとよい。読み取った原稿のサイズや読取解像度によって,生成される画像データのサイズが異なる。そのため,判定の閾値をこれらの情報に基づいて変更することで,閾値を固定値とするものと比較して,より正確な判定となる可能性が高い。   The control unit may set the threshold based on at least one of a document size and a reading resolution. The size of the generated image data varies depending on the size of the read document and the reading resolution. Therefore, by changing the determination threshold based on these pieces of information, there is a high possibility that the determination will be more accurate compared to a case where the threshold is a fixed value.

本明細書には,画像出力装置に,画像を取得する取得処理と,前記取得処理にて取得した画像である取得画像に基づいて,所定の圧縮方式によって圧縮されたカラー画像データを生成するカラー生成処理と,前記取得画像に基づいて,前記カラー画像データと同じ圧縮方式によって圧縮されたグレースケールの画像データであるグレー画像データを生成するグレー生成処理と,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いが閾値よりも大きい場合に,前記取得画像を非無地画像と判定する無地判定処理と,前記無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定する決定処理とを実行させることを特徴とするプログラムも開示されている。   In the present specification, an image output device is provided with an acquisition process for acquiring an image, and a color for generating color image data compressed by a predetermined compression method based on an acquired image that is an image acquired by the acquisition process. Generation processing, gray generation processing for generating gray image data that is grayscale image data compressed by the same compression method as the color image data based on the acquired image, the size of the color image data, and the gray image data When the difference from the size of the image data is larger than a threshold value, a plain color determination process for determining the acquired image as a solid color image and outputting image data based on the acquired image according to the determination result of the solid color determination process There is also disclosed a program characterized in that a determination process for determining whether or not to execute is executed.

本発明によれば,無地判定を早期に終了し,画像データを出力する場合には早期に出力を開始することが期待できる画像出力装置およびプログラムが実現される。   According to the present invention, an image output apparatus and a program that can be expected to start outputting at an early stage when the plain color determination is finished early and image data is output are realized.

本形態に係るスキャナの電気的構成を示すブロック図である。It is a block diagram which shows the electric constitution of the scanner which concerns on this form. スキャナの読取出力動作に係る概略構成を示すブロック図である。It is a block diagram which shows schematic structure which concerns on the reading output operation | movement of a scanner. 読取出力処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a reading output process. 色判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a color determination process. 成分無地判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a component solid color determination process. 色判定後判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the determination process after color determination. サイズ無地判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of a size plainness determination process. 無彩色判定処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of an achromatic color determination process.

以下,本発明にかかる画像出力装置を具体化した実施の形態について,添付図面を参照しつつ詳細に説明する。本形態は,画像読取機能を備えたスキャナに本発明を適用したものである。   Embodiments of the image output apparatus according to the present invention will be described below in detail with reference to the accompanying drawings. In this embodiment, the present invention is applied to a scanner having an image reading function.

まず,スキャナ100の電気的構成について説明する。スキャナ100は,図1に示すように,CPU31と,ROM32と,RAM33と,NVRAM(不揮発性RAM)34と,ASIC35とを含むコントローラ30を備えている。また,スキャナ100は,画像読取部20と,ネットワークインターフェース37と,USBインターフェース38と,操作パネル40とを備え,これらがコントローラ30に電気的に接続されている。   First, the electrical configuration of the scanner 100 will be described. As shown in FIG. 1, the scanner 100 includes a controller 30 including a CPU 31, a ROM 32, a RAM 33, an NVRAM (nonvolatile RAM) 34, and an ASIC 35. The scanner 100 includes an image reading unit 20, a network interface 37, a USB interface 38, and an operation panel 40, which are electrically connected to the controller 30.

ROM32には,スキャナ100を制御するための各種制御プログラムや各種設定,初期値等が記憶されている。RAM33は,各種制御プログラムが読み出される作業領域として,あるいは,データを一時的に記憶する記憶領域として利用される。CPU31は,ROM32から読み出した制御プログラムに従って,その処理結果をRAM33またはNVRAM34に記憶させながら,スキャナ100の各構成要素を制御する。   The ROM 32 stores various control programs for controlling the scanner 100, various settings, initial values, and the like. The RAM 33 is used as a work area from which various control programs are read, or as a storage area for temporarily storing data. The CPU 31 controls each component of the scanner 100 while storing the processing result in the RAM 33 or the NVRAM 34 according to the control program read from the ROM 32.

CPU31は,制御部の一例である。なお,コントローラ30が制御部であってもよいし,ASIC35が制御部であってもよい。なお,図1中のコントローラ30は,CPU31等,スキャナ100の制御に利用されるハードウェアを纏めた総称であって,実際にスキャナ100に存在する単一のハードウェアを表すとは限らない。   The CPU 31 is an example of a control unit. The controller 30 may be a control unit, and the ASIC 35 may be a control unit. Note that the controller 30 in FIG. 1 is a collective term for hardware used for controlling the scanner 100 such as the CPU 31, and does not necessarily represent a single piece of hardware that actually exists in the scanner 100.

画像読取部20は,原稿の画像を読み取るための構成である。本形態のスキャナ100は,カラー読み取りが可能なものである。読取方式は,CCD方式であってもCIS方式であってもよい。画像読取部20は,取得部の一例である。   The image reading unit 20 has a configuration for reading an image of a document. The scanner 100 of this embodiment is capable of color reading. The reading method may be a CCD method or a CIS method. The image reading unit 20 is an example of an acquisition unit.

ネットワークインターフェース37は,LANケーブル等を介してネットワークと通信を行うためのハードウェアである。USBインターフェース38は,USBケーブル等を介して通信を行うためのハードウェアである。操作パネル40は,液晶ディスプレイおよびスタートキー,ストップキー,テンキー等から構成されるボタン群を備え,各種の表示と,ユーザによる指示入力の受け付けとを担う。   The network interface 37 is hardware for communicating with a network via a LAN cable or the like. The USB interface 38 is hardware for performing communication via a USB cable or the like. The operation panel 40 includes a liquid crystal display and a group of buttons including a start key, a stop key, a numeric keypad, and the like, and is responsible for various displays and reception of instruction inputs by the user.

本形態のスキャナ100は,原稿を読み取り,読み取った画像に基づく画像データを生成して他装置へ出力する読取出力動作を実行可能である。スキャナ100は,読取出力動作の指示を受け付けると,原稿のカラー読み取りを実行する。そして,読み取った原稿が無地画像であるか否かを判断して,無地画像ではないと判断した場合に,読み取った原稿の画像に基づく画像データを出力する。一方,読み取った原稿が無地画像であると判断した場合は,画像データを出力しない。無地画像とは,ページ内に画像情報を含まない単色のページであり,白紙や色無地のことである。なお,スキャナ100は,色種別の判定も実行し,無地画像でないと判定した場合には,色種別の判定結果に応じて,出力する画像データを決定する。   The scanner 100 according to the present embodiment can execute a read output operation of reading a document, generating image data based on the read image, and outputting the image data to another apparatus. When the scanner 100 receives an instruction for a read output operation, the scanner 100 performs color reading of the document. Then, it is determined whether or not the read document is a plain image, and when it is determined that the read document is not a plain image, image data based on the read document image is output. On the other hand, if it is determined that the read original is a plain image, no image data is output. A plain image is a single-color page that does not include image information in the page, and is a blank page or a plain color. Note that the scanner 100 also determines the color type, and when determining that the image is not a plain image, determines the image data to be output according to the determination result of the color type.

続いて,スキャナ100のうち,読取出力動作のための概略構成について,図2を参照して説明する。スキャナ100は,画像読取部20と,画像処理回路22と,色種別判定回路23と,無地判定回路24と,RAM33と,画像ファイル生成回路25とを有する。なお,本形態では,画像処理回路22と色種別判定回路23と無地判定回路24と画像ファイル生成回路25とは,ASIC35(図1参照)に含まれる。   Next, a schematic configuration for the read output operation in the scanner 100 will be described with reference to FIG. The scanner 100 includes an image reading unit 20, an image processing circuit 22, a color type determination circuit 23, a plain color determination circuit 24, a RAM 33, and an image file generation circuit 25. In this embodiment, the image processing circuit 22, the color type determination circuit 23, the plain color determination circuit 24, and the image file generation circuit 25 are included in the ASIC 35 (see FIG. 1).

さらに,画像ファイル生成回路25は,JPEGエンコーダ251と,JPEGエンコーダ252と,2値化回路253と,圧縮回路254と,メモリ255と,メモリ256と,メモリ257とを有する。JPEGエンコーダ251と,JPEGエンコーダ252とは,共通の回路でもよい。また,メモリ255,256,257は,RAM33の領域の一部でもよいし,別のハードウェアとして設けられていてもよい。   Further, the image file generation circuit 25 includes a JPEG encoder 251, a JPEG encoder 252, a binarization circuit 253, a compression circuit 254, a memory 255, a memory 256, and a memory 257. The JPEG encoder 251 and the JPEG encoder 252 may be a common circuit. In addition, the memories 255, 256, and 257 may be a part of the area of the RAM 33 or may be provided as separate hardware.

画像読取部20は,読取出力動作の実行時には,原稿のカラー読み取りを実行し,カラー情報を含むRGB形式の画像データを取得する。画像処理回路22は,画像読取部20によって取得された画像データを変換して,YCbCr形式の画像データを生成し,RAM33に保存する。YCbCr形式の画像データのうち,Y成分は,輝度を表す輝度成分であり,Cb成分とCr成分とは,それぞれ異なる色の色差を表す色差成分である。   The image reading unit 20 performs color reading of a document when executing a reading output operation, and acquires RGB format image data including color information. The image processing circuit 22 converts the image data acquired by the image reading unit 20 to generate YCbCr format image data, and stores the image data in the RAM 33. Of the image data in the YCbCr format, the Y component is a luminance component representing luminance, and the Cb component and the Cr component are color difference components representing color differences of different colors.

色種別判定回路23は,読み取った画像の色種別を判定する色判定処理を実行する。つまり,YCbCr形式の画像データの各成分に基づいて,読み取ったページの原稿がカラー原稿であるか,グレー原稿であるか,モノクロ原稿であるかを判定する。具体的には,有彩色の成分を含む画像であればカラーページと判定する。また,無彩色で多階調の画像であればグレーページと,白と黒のみの二階調の画像であればモノクロページとそれぞれ判定する。色種別判定回路23における色種別の判定では,無地画像か非無地画像かについては判定しない。なお,色種別判定回路23による色判定処理の内容については後述する。   The color type determination circuit 23 executes color determination processing for determining the color type of the read image. That is, based on each component of the image data in the YCbCr format, it is determined whether the document of the read page is a color document, a gray document, or a monochrome document. Specifically, if the image includes a chromatic component, it is determined as a color page. Further, a gray page is determined for an achromatic and multi-tone image, and a monochrome page is determined for a two-tone image of only white and black. In the determination of the color type in the color type determination circuit 23, it is not determined whether it is a plain image or a non-solid image. The contents of the color determination process by the color type determination circuit 23 will be described later.

無地判定回路24は,YCbCr形式の画像データの各成分に基づいて,読み取ったページの原稿が無地画像であるか非無地画像であるかを判定する成分無地判定処理を実行する。具体的には,そのページに地色とは色差または輝度の少なくとも一方が異なる色が含まれているか否かを判定する。なお,無地判定回路24による成分無地判定処理の内容については後述する。   The plain color determination circuit 24 executes a component solid color determination process for determining whether the document of the read page is a plain image or a solid color image based on each component of the image data in the YCbCr format. Specifically, it is determined whether or not the page includes a color that differs from the ground color in at least one of color difference and luminance. The content of the component plain color determination process by the solid color determination circuit 24 will be described later.

画像ファイル生成回路25は,画像処理回路22にて生成されたYCbCr形式の画像データに基づいて,カラー画像データと,グレー画像データと,モノクロ画像データとをそれぞれ生成する。具体的には,画像ファイル生成回路25は,YCbCr形式の画像データに基づいて,JPEGエンコーダ251にてカラー画像データを生成し,メモリ255に保存する。また,YCbCr形式の画像データに基づいて,JPEGエンコーダ252にてグレー画像データを生成し,メモリ256に保存する。また,YCbCr形式の画像データに基づいて,2値化回路253と圧縮回路254とにてモノクロ画像データを生成し,メモリ257に保存する。   The image file generation circuit 25 generates color image data, gray image data, and monochrome image data based on the YCbCr format image data generated by the image processing circuit 22. Specifically, the image file generation circuit 25 generates color image data with the JPEG encoder 251 based on the image data in the YCbCr format, and stores it in the memory 255. Further, gray image data is generated by the JPEG encoder 252 based on the YCbCr format image data and stored in the memory 256. Also, monochrome image data is generated by the binarization circuit 253 and the compression circuit 254 based on the image data in the YCbCr format and stored in the memory 257.

カラー画像データは,YCbCr形式の画像データの輝度成分と色差成分との両方の情報を用いて,JPEG方式にて圧縮された圧縮データである。つまり,カラー画像データは,カラー情報を含む画像データである。なお,JPEGは,国際規格のデータ圧縮方式である。   The color image data is compressed data compressed by the JPEG method using both the luminance component and the color difference component of the image data in the YCbCr format. That is, the color image data is image data including color information. JPEG is an international standard data compression method.

また,グレー画像データは,YCbCr形式の画像データのうち,Cb値とCr値とを固定値に置き換えたデータに基づいて,JPEG方式にて圧縮された圧縮データである。つまり,グレー画像データは,YCbCr形式の画像データから生成されたグレースケールの画像データである。または,画像データの輝度成分であるY情報のみを用いて圧縮を行うことにより,グレー画像データを生成してもよい。なお,JPEGエンコーダ251とJPEGエンコーダ252とは,同一の構成であり,カラー画像データとグレー画像データとは,いずれも同一の圧縮率の同じ圧縮方式にて圧縮された圧縮データである。   The gray image data is compressed data compressed by the JPEG method based on data in which the Cb value and the Cr value are replaced with fixed values among the image data in the YCbCr format. That is, the gray image data is grayscale image data generated from image data in the YCbCr format. Alternatively, gray image data may be generated by performing compression using only Y information that is a luminance component of image data. The JPEG encoder 251 and the JPEG encoder 252 have the same configuration, and the color image data and the gray image data are both compressed data compressed by the same compression method with the same compression rate.

また,モノクロ画像データは,YCbCr形式の画像データに基づいて,二値化された無彩色の画像データである。そのために,2値化回路253は,YCbCr形式の画像データのうちのY情報のみを取得して二値化し,二値データを生成する。圧縮回路254は,2値化回路253にて生成された二値データを圧縮し,圧縮データを生成する。圧縮回路254の圧縮方式としては,例えば,パックビッツ方式がある。モノクロ画像データの圧縮方式は,カラー画像データやグレー画像データの圧縮方式とは異なる方式であってもよいし,同一の方式であってもよい。   The monochrome image data is achromatic image data binarized based on YCbCr format image data. For this purpose, the binarization circuit 253 acquires only the Y information from the image data in the YCbCr format, binarizes it, and generates binary data. The compression circuit 254 compresses the binary data generated by the binarization circuit 253 and generates compressed data. As a compression method of the compression circuit 254, for example, there is a pack bits method. The compression method for monochrome image data may be a different method from the compression method for color image data or gray image data, or the same method.

つまり,画像読取部20でのカラー読み取りによって取得された取得画像を圧縮したデータがカラー画像データであり,JPEGエンコーダ251にてカラー画像データを生成する処理は,カラー生成処理の一例である。また,グレー画像データは,同じ取得画像についてのグレースケールの圧縮画像データであり,JPEGエンコーダ252にてグレー画像データを生成する処理は,グレー生成処理の一例である。また,モノクロ画像データは,同じ取得画像を二値化した無彩色の画像データであり,2値化回路253と圧縮回路254とによってモノクロ画像データを生成する処理は,二値生成処理の一例である。   That is, data obtained by compressing an acquired image acquired by color reading by the image reading unit 20 is color image data, and the process of generating color image data by the JPEG encoder 251 is an example of a color generation process. The gray image data is grayscale compressed image data for the same acquired image, and the process of generating gray image data by the JPEG encoder 252 is an example of a gray generation process. The monochrome image data is achromatic image data obtained by binarizing the same acquired image, and the process of generating monochrome image data by the binarization circuit 253 and the compression circuit 254 is an example of a binary generation process. is there.

続いて,本形態のスキャナ100にて,実行される読取出力動作について説明する。読取出力動作の実行の指示を受け付けると,スキャナ100は,原稿を読み取って,前述した各種の画像データを生成する。さらに,原稿の色種別の判定と,無地画像か非無地画像かの判定とを行う。   Next, a read output operation executed by the scanner 100 of this embodiment will be described. When receiving an instruction to execute the read output operation, the scanner 100 reads the document and generates the various image data described above. Further, the color type of the document is determined and whether it is a plain image or a non-solid image is determined.

具体的には,画像読取部20による原稿の読み取り動作と,画像処理回路22による原稿の画像に基づくYCbCr形式の画像データの生成処理と,色種別判定回路23による色判定処理と,無地判定回路24による成分無地判定処理と,画像ファイル生成回路25による各種の画像データの生成処理とを,並行して実行する。画像ファイル生成回路25では,カラー画像データと,グレー画像データと,モノクロ画像データとの3種の画像データを並行して生成し,それぞれ対応するメモリに保存する。   Specifically, the original reading operation by the image reading unit 20, the generation processing of image data in the YCbCr format based on the original image by the image processing circuit 22, the color determination processing by the color type determination circuit 23, and the solid color determination circuit The component solid color determination processing by 24 and the generation processing of various image data by the image file generation circuit 25 are executed in parallel. In the image file generation circuit 25, three types of image data of color image data, gray image data, and monochrome image data are generated in parallel and stored in the corresponding memories.

そして,スキャナ100は,読み取った原稿が無地画像ではないと判定し,カラー画像かグレー画像かモノクロ画像かの色種別を判定したら,生成した各画像データのうち,原稿の色種別に適合した画像データを出力する。一方,読み取った原稿が無地画像であると判定した場合には,いずれの画像データも出力しない。   Then, when the scanner 100 determines that the read document is not a plain image and determines the color type of the color image, the gray image, or the monochrome image, an image that matches the color type of the document among the generated image data. Output data. On the other hand, if it is determined that the read document is a plain image, no image data is output.

スキャナ100は,原稿が無地画像であるか否かを判定する処理として,読み取りと並行して無地判定回路24にて実行される成分無地判定処理と,1ページの読み取りの終了後に,生成した各画像データのサイズに基づいて判定するサイズ無地判定処理とを実行可能である。成分無地判定処理は,原稿を読み取った画像データをブロックに分割して,ブロックごとに,ブロック内の画素の輝度情報に基づく判定を行う処理である。成分無地判定処理は,詳細な判定が可能であり判定結果の信頼性は高いが,判定結果が得られるまでに時間が掛かる可能性がある。一方,サイズ無地判定処理は,画像データのサイズの比較に基づく判定であり,短時間でできる簡便な処理である。   The scanner 100 determines whether or not the document is a plain image as component blanking determination processing executed by the blanking determination circuit 24 in parallel with reading, and each generated after completion of reading one page. A size plainness determination process that is determined based on the size of the image data can be executed. The component plain color determination process is a process of dividing image data obtained by reading a document into blocks and performing determination based on luminance information of pixels in the block for each block. The component plain color determination processing can make a detailed determination and the determination result is highly reliable, but it may take time until the determination result is obtained. On the other hand, the size plainness determination process is a determination based on the comparison of image data sizes, and is a simple process that can be performed in a short time.

また,原稿の色種別を判定する処理として,読み取りと並行して色種別判定回路23にて実行される色判定処理と,無彩色の非無地画像であると判定された後に実行される無彩色判定処理とを実行可能である。色判定処理は,画像データをブロックに分割して,ブロックごとに色種別を,カラー,グレー,モノクロのいずれかに判定する処理である。無彩色判定処理では,グレーかモノクロかを判定する。各処理の内容については後述する。   Further, as a process for determining the color type of the document, a color determination process executed by the color type determination circuit 23 in parallel with the reading and an achromatic color executed after it is determined that the image is an achromatic solid image. The determination process can be executed. The color determination process is a process in which image data is divided into blocks and the color type for each block is determined as one of color, gray, and monochrome. In the achromatic color determination process, it is determined whether it is gray or monochrome. The contents of each process will be described later.

続いて,本形態のスキャナ100にて,読取出力動作を実行するための読取出力処理の手順について,図3のフローチャートを参照して説明する。この読取出力処理は,原稿が画像読取部20にセットされて,読取出力動作の開始の指示を受け付けたことを契機に,CPU31にて実行される。   Next, the procedure of the read output process for executing the read output operation in the scanner 100 of this embodiment will be described with reference to the flowchart of FIG. This reading output process is executed by the CPU 31 when a document is set in the image reading unit 20 and an instruction to start a reading output operation is received.

スキャナ100は,読取出力動作の開始の指示を受け付けると,まず,原稿の読み取り動作を開始する(S101)。S101は,取得処理の一例である。そして,取得した画像に基づいて,画像ファイル生成回路25にて,カラー,グレー,モノクロの各種の画像データの生成を開始する(S102)。また,色種別判定回路23にて,色判定処理の実行を開始する(S103)。さらに,無地判定回路24にて,成分無地判定処理の実行を開始する(S104)。なお,後述するように,S101〜S104で開始した各動作は,並行して実行される。   When the scanner 100 receives an instruction to start a reading output operation, the scanner 100 first starts a document reading operation (S101). S101 is an example of an acquisition process. Then, based on the acquired image, the image file generation circuit 25 starts generating various color, gray, and monochrome image data (S102). In addition, the color type determination circuit 23 starts executing color determination processing (S103). Further, the solid color determination circuit 24 starts to execute the component solid color determination process (S104). As will be described later, the operations started in S101 to S104 are executed in parallel.

そして,1ページ分の原稿の読み取りが終了したか否かを判断する(S105)。終了していない場合は(S105:NO),原稿の読み取りを継続する。並行して実行している他の処理も継続して実行する。読み取りが終了したと判断したら(S105:YES),このページの無地判定回路24による成分無地判定処理が終了したか否かを判断する(S106)。なお,次ページの原稿がある場合は,S106以降の処理が終了していなくても,1ページの読み取りが終了すれば,次ページの読取やデータの生成を開始する。   Then, it is determined whether or not reading of one page of the document has been completed (S105). If not finished (S105: NO), reading of the document is continued. Other processes that are being executed in parallel are also continuously executed. If it is determined that the reading has been completed (S105: YES), it is determined whether or not the component solid color determination process by the solid color determination circuit 24 of this page has been completed (S106). If there is a document for the next page, reading of the next page and generation of data are started when the reading of one page is completed even if the processing from S106 onward is not completed.

そして,成分無地判定処理が終了したと判断した場合は(S106:YES),その判定結果から,そのページを無地画像と判定したか否かを判断する(S107)。そして,無地画像と判定したと判断したら(S107:YES),読取出力処理を終了する。つまり,このページの画像データを出力しない。なお,読み取った画像が無地画像であったことを報知してもよい。   If it is determined that the component plain color determination process has been completed (S106: YES), it is determined from the determination result whether or not the page is determined to be a solid image (S107). If it is determined that the image is a plain image (S107: YES), the read output process is terminated. That is, the image data of this page is not output. In addition, you may alert | report that the read image was a plain image.

一方,無地画像と判定しなかったと判断した場合には(S107:NO),画像データを出力すると決定する。そして,色種別判定回路23による色判定処理が終了したか否かを判断する(S108)。色判定処理が終了していないと判断した場合は(S108:NO),色判定処理を継続する。   On the other hand, if it is determined that the image is not a plain image (S107: NO), it is determined to output image data. Then, it is determined whether or not the color determination process by the color type determination circuit 23 is completed (S108). If it is determined that the color determination process has not ended (S108: NO), the color determination process is continued.

色判定処理が終了したと判断したら(S108:YES),色判定処理の判定結果に基づいて,生成した各画像データのうちから出力する画像データを決定する(S109)。さらに,決定した画像データの出力を開始し(S110),読取出力処理を終了する。ここでは,無地画像ではないという判定と,色判定処理による原稿の色種別の判定とが得られたので,判定された色種別に適合する画像データを,読取出力動作の指示にて指定されている出力先に出力する。S109にて出力する画像データを決定する処理は,データ決定処理の一例である。   If it is determined that the color determination process has been completed (S108: YES), image data to be output is determined from the generated image data based on the determination result of the color determination process (S109). Further, output of the determined image data is started (S110), and the reading output process is ended. Here, since the determination that the image is not a plain image and the determination of the color type of the document by the color determination processing are obtained, image data that conforms to the determined color type is designated by the instruction of the read output operation. Output to the output destination. The process of determining image data to be output in S109 is an example of a data determination process.

一方,読み取りが終了しても,成分無地判定処理が終了していないと判断した場合は(S106:NO),色種別判定回路23による色判定処理が終了したか否かを判断する(S112)。色判定処理が終了していないと判断した場合は(S112:NO),画像ファイル生成回路25による各画像データの生成が終了したか否かを判断する(S114)。画像データの生成が終了していないと判断した場合は(S114:NO),成分無地判定処理と,色判定処理と,画像データの生成とを,これらのうちの少なくとも1つが終了するまで継続して実行する。   On the other hand, when it is determined that the component solid color determination process is not completed even after the reading is completed (S106: NO), it is determined whether the color determination process by the color type determination circuit 23 is completed (S112). . If it is determined that the color determination process has not ended (S112: NO), it is determined whether the generation of each image data by the image file generation circuit 25 has ended (S114). If it is determined that the generation of the image data has not ended (S114: NO), the component solid color determination process, the color determination process, and the generation of the image data are continued until at least one of them ends. And execute.

そして,成分無地判定処理が終了するより前に色判定処理が終了したと判断した場合は(S112:YES),色種別が決定した後に無地画像か否かを判定する色判定後判定処理を実行する(S116)。色種別判定回路23による色判定処理では,無地画像か否かについては判定しないので,例えば,白紙原稿はモノクロページと判定され,カラー無地画像はカラーページと判定される。そのため,スキャナ100は,無地画像か否かを判定するために,色判定後判定処理を実行する。色判定後判定処理については後述する。   If it is determined that the color determination process has ended before the component plain color determination process ends (S112: YES), a post-color determination determination process that determines whether the color type is determined or not is executed. (S116). In the color determination processing by the color type determination circuit 23, it is not determined whether or not the image is a plain image. For example, a blank original is determined as a monochrome page, and a color plain image is determined as a color page. For this reason, the scanner 100 executes post-color determination processing in order to determine whether the image is a plain image. The determination process after color determination will be described later.

そして,色判定後判定処理によって,原稿が無地画像であると判定したか否かを判断する(S117)。無地画像であると判定した場合には(S117:YES),画像データを出力しないと決定し,読取出力処理を終了する。一方,非無地画像であると判定した場合は(S117:NO),色判定処理による判定結果に基づいて出力する画像データを決定して(S109),決定した画像データを出力し(S110),読取出力処理を終了する。   Then, it is determined whether or not it is determined that the document is a plain image by the determination process after color determination (S117). If it is determined that the image is a plain image (S117: YES), it is determined not to output image data, and the reading output process is terminated. On the other hand, when it is determined that the image is a plain image (S117: NO), image data to be output is determined based on the determination result of the color determination process (S109), and the determined image data is output (S110). The read output process is terminated.

一方,成分無地判定処理による判定と,色判定処理による判定とのいずれも終了していない状態で,画像データの生成が終了したと判断した場合は(S114:YES),生成した各画像データのサイズを利用して無地画像か否かを判定するサイズ無地判定処理を実行する(S119)。このサイズ無地判定処理は,生成した各画像データのサイズに基づいて原稿が無地画像か否かを判定し,無地画像ではないと判定した場合には,色種別の判定も行う処理である。なお,サイズ無地判定処理については後述する。   On the other hand, when it is determined that the generation of the image data has been completed in a state in which neither the determination by the component plain color determination process nor the determination by the color determination process has been completed (S114: YES), each of the generated image data A size plainness determination process for determining whether the image is a plain image using the size is executed (S119). This size plainness determination process is a process for determining whether or not the document is a plain image based on the size of each generated image data, and also determining the color type if it is determined that the document is not a plain image. The size plainness determination process will be described later.

そして,サイズ無地判定処理による判定結果から,原稿が無地画像であると判定されたか否かを判断する(S117)。無地画像であると判定した場合には(S117:YES),画像データを出力しないと決定し,読取出力処理を終了する。一方,非無地画像であると判定した場合は(S117:NO),サイズ無地判定処理の判定結果に基づいて出力する画像データを決定し(S109),決定した画像データを出力して(S110),読取出力処理を終了する。つまり,S117の判断手順は,画像データのサイズに基づいて無地画像か非無地画像かを判定し,その判定に基づいて,画像データを出力するか否かを決定する決定処理の一例である。   Then, it is determined from the determination result of the size plain color determination process whether or not the document is determined to be a plain image (S117). If it is determined that the image is a plain image (S117: YES), it is determined not to output image data, and the reading output process is terminated. On the other hand, when it is determined that the image is a non-solid image (S117: NO), image data to be output is determined based on the determination result of the size solid-color determination processing (S109), and the determined image data is output (S110). , The read output process is terminated. That is, the determination procedure of S117 is an example of a determination process for determining whether the image is a plain image or a non-solid image based on the size of the image data, and determining whether to output the image data based on the determination.

すなわち,本形態のスキャナ100の読取出力処理では,画像ファイル生成回路25による各画像データの生成と,色種別判定回路23による色判定処理と,無地判定回路24による成分無地判定処理とを並行して実行する。そのため,各画像データの生成が終了しても成分無地判定処理と色判定処理との判定結果が出ていない状態となる可能性がある。スキャナ100は,成分無地判定処理と色判定処理とのいずれも終了していない状態で,各画像データの生成が終了した場合には,S119のサイズ無地判定処理を実行する。また,成分無地判定処理が終了していない状態で,色判定処理が終了していればS116の色判定後判定処理を実行する。   That is, in the reading output processing of the scanner 100 of this embodiment, the generation of each image data by the image file generation circuit 25, the color determination processing by the color type determination circuit 23, and the component solid color determination processing by the solid color determination circuit 24 are performed in parallel. And execute. Therefore, even if the generation of each image data is finished, there is a possibility that the determination result of the component plain color determination process and the color determination process is not obtained. The scanner 100 executes the size solid color determination process of S119 when the generation of each image data is completed in a state where neither the component solid color determination process nor the color determination process is completed. In addition, if the color determination process is completed in a state where the component solid color determination process has not been completed, the post-color determination determination process in S116 is executed.

そして,最も早く得られた判定結果に基づいて,画像データを出力するか否かを決定する。つまり,S119のサイズ無地判定処理や,S116の色判定後判定処理にて,無地画像であると判定した場合は,画像データを出力しないと決定する。一方,非無地画像であると判定した場合には,S109にてその画像の色種別に基づく画像データを決定して出力する。具体的には,カラーの非無地画像と判定した場合は,メモリ255に保存されているカラー画像データを出力する。グレーの非無地画像と判定した場合は,メモリ256に保存されているグレー画像データを出力する。モノクロの非無地画像と判定した場合は,メモリ257に保存されているモノクロ画像データを出力する。そして,次ページの原稿がある場合は順次読み取りとデータの生成を実行し,全ページの処理が終了するまで,1ページごとに判定と出力とを繰り返す。   Then, based on the determination result obtained earliest, it is determined whether to output image data. That is, if it is determined that the image is a plain image in the size plain color determination process in S119 or the post-color determination process in S116, it is determined that no image data is output. On the other hand, if it is determined that the image is a plain image, image data based on the color type of the image is determined and output in S109. Specifically, when it is determined that the image is a color solid image, the color image data stored in the memory 255 is output. If it is determined that the image is a gray solid image, the gray image data stored in the memory 256 is output. If it is determined that the image is a monochrome plain image, monochrome image data stored in the memory 257 is output. If there is a document for the next page, reading and data generation are executed sequentially, and determination and output are repeated for each page until processing of all pages is completed.

続いて,図3のS103にて開始する色判定処理について,図4のフローチャートを参照して説明する。色判定処理は,少なくとも色差成分に基づいて,読み取った画像の色種別を判定する処理である。スキャナ100は,色種別判定回路23にて色判定処理を実行する。   Next, the color determination process started in S103 of FIG. 3 will be described with reference to the flowchart of FIG. The color determination process is a process for determining the color type of the read image based on at least the color difference component. The scanner 100 executes color determination processing by the color type determination circuit 23.

色判定処理では,画像データをブロックに細分して,各ブロックの色種別を判定し,その結果を用いてページの色種別を判定する。そのために,まず,1ページ分の画像データを,例えば,100画素×100画素のブロックに分割する(S201)。そして,ブロック単位での色種別を判定するブロック判定を実行する(S202)。   In the color determination process, the image data is subdivided into blocks, the color type of each block is determined, and the color type of the page is determined using the result. For this purpose, first, image data for one page is divided into blocks of, for example, 100 pixels × 100 pixels (S201). Then, block determination for determining the color type in block units is executed (S202).

ブロック判定では,各ブロックをカラーブロック,グレーブロック,モノクロブロックのいずれかに判定する。具体的には,ブロック内の全画素について,Cb値の平均値と,Cr値の平均値とを算出して,両平均値がいずれも無彩色と判定できる範囲内にあるか否かを判定する。無彩色ではないと判定されたブロックは,カラーブロックと決定する。   In block determination, each block is determined as one of a color block, a gray block, and a monochrome block. Specifically, for all the pixels in the block, the average value of the Cb value and the average value of the Cr value are calculated, and it is determined whether or not both average values are within a range where it can be determined as an achromatic color. To do. A block determined not to be an achromatic color is determined as a color block.

無彩色であると判定されたブロックについては,さらに,ブロック内の各画素のY値に基づいて,グレーブロックか,モノクロブロックかを決定する。例えば,ブロック内の大部分を示す規定量以上の画素が,Y値が第1の規定値以下の暗い画素と,Y値が第2の規定値以上の明るい画素とで占められている場合には,モノクロブロックと決定する。一方,中間のY値の画素が一定以上の割合で含まれていれば,グレーブロックと決定する。そして,1ページ中のカラーブロック数と,グレーブロック数と,モノクロブロック数とを算出する。   For a block determined to be achromatic, it is further determined whether it is a gray block or a monochrome block based on the Y value of each pixel in the block. For example, in a case where pixels of a predetermined amount or more indicating most of the block are occupied by dark pixels whose Y value is not more than a first specified value and bright pixels whose Y value is not less than a second specified value. Is determined to be a monochrome block. On the other hand, if pixels with an intermediate Y value are included at a certain ratio or more, it is determined as a gray block. Then, the number of color blocks, the number of gray blocks, and the number of monochrome blocks in one page are calculated.

次に,ページ内の全画素について,Cb値の最頻値と,Cr値の最頻値とを求める。そして,これらの値がいずれも無彩色に近い値であるか否かを判断する(S203)。例えば,Cb値とCr値とが16〜240の範囲の値で,Cb値の最頻値と,Cr値の最頻値とが,いずれも112以上143未満の範囲内であるか否かを判断する。   Next, the mode value of the Cb value and the mode value of the Cr value are obtained for all the pixels in the page. Then, it is determined whether or not these values are close to achromatic colors (S203). For example, whether the Cb value and the Cr value are in the range of 16 to 240, and the mode value of the Cb value and the mode value of the Cr value are both in the range of 112 to 143. to decide.

そして,両最頻値が所定の範囲内であると判断した場合には(S203:YES),ブロック判定により得られたカラーブロック数の,ページの全ブロック数に占める割合が,所定の割合を超えているか否かを判断する(S204)。例えば,カラーブロック数の割合が0.2%以上であるか否かを判断する。   If it is determined that both mode values are within the predetermined range (S203: YES), the ratio of the number of color blocks obtained by block determination to the total number of blocks on the page is equal to the predetermined ratio. It is determined whether or not it exceeds (S204). For example, it is determined whether the ratio of the number of color blocks is 0.2% or more.

さらに,カラーブロック数の割合が小さいと判断した場合には(S204:NO),ブロック判定により得られたグレーブロック数の,ページの全ブロック数に占める割合が,所定の割合を超えているか否かを判断する(S205)。例えば,グレーブロック数の割合が0.3%以上であるか否かを判断する。   Further, when it is determined that the ratio of the number of color blocks is small (S204: NO), the ratio of the gray block number obtained by the block determination to the total number of blocks of the page exceeds a predetermined ratio. Is determined (S205). For example, it is determined whether or not the ratio of the number of gray blocks is 0.3% or more.

そして,グレーブロック数の割合が所定の範囲を超えていると判断した場合には(S205:YES),そのページをグレーページであると判定して(S207),色判定処理を終了する。一方,グレーブロック数の割合が所定の範囲を超えていないと判断した場合には(S205:NO),そのページをモノクロページであると判定して(S208),色判定処理を終了する。   If it is determined that the ratio of the number of gray blocks exceeds the predetermined range (S205: YES), it is determined that the page is a gray page (S207), and the color determination process is terminated. On the other hand, if it is determined that the ratio of the number of gray blocks does not exceed the predetermined range (S205: NO), it is determined that the page is a monochrome page (S208), and the color determination process ends.

また,S204にてカラーブロック数の割合が所定の範囲を超えていると判断した場合(S204:YES),または,Cb値とCr値との最頻値の少なくとも一方が所定の範囲内ではないと判断した場合には(S203:NO),そのページをカラーページであると判定して(S209),成分判定処理を終了する。これにより,読み取った画像の色種別が判定される。   When it is determined in S204 that the ratio of the number of color blocks exceeds the predetermined range (S204: YES), or at least one of the mode values of the Cb value and the Cr value is not within the predetermined range. (S203: NO), it is determined that the page is a color page (S209), and the component determination process is terminated. Thereby, the color type of the read image is determined.

続いて,図3のS104にて開始する成分無地判定処理について,図5のフローチャートを参照して説明する。成分無地判定処理は,画像の少なくとも輝度成分に基づいて,読み取った画像が無地画像か非無地画像かを判定する処理である。スキャナ100は,無地判定回路24にて成分無地判定処理を実行する。   Next, the component plain color determination process started in S104 of FIG. 3 will be described with reference to the flowchart of FIG. The component plain color determination process is a process for determining whether the read image is a plain image or a non-solid image based on at least the luminance component of the image. In the scanner 100, the solid color determination circuit 24 performs component solid color determination processing.

成分無地判定処理においても,色判定処理と同様に,1ページの画像をブロックに分割する。そして,ブロックごとに無地ブロックか非無地ブロックかを判定して,それぞれの数を算出する。具体的に,1ページを,例えば,100画素×100画素のブロックに分割する(S301)。さらに,ブロック内の全画素について読み取りが終了したブロックから順に,ブロック単位で,その中に含まれる画素の画像データに基づいて,以下の処理を実行する。   Also in the component plain color determination process, the image of one page is divided into blocks as in the color determination process. Then, it is determined for each block whether it is a plain block or a non-solid block, and the number of each block is calculated. Specifically, one page is divided into blocks of, for example, 100 pixels × 100 pixels (S301). Further, the following processing is executed on the basis of the image data of the pixels included in the block unit in order from the block where reading has been completed for all the pixels in the block.

ブロック内の全画素について,Y値の最頻値を算出する(S304)。さらに,S304にて算出されたY値の最頻値の割合が大きいか否かを判断する(S305)。例えば,輝度成分の値が均一である画素の割合が,ブロック内の80%以上を占めているか否かを判断する。Y値の最頻値の割合が大きいと判断した場合には(S305:YES),そのブロックは無地ブロックであると判定する(S308)。一方,Y値の最頻値の割合が大きくないと判断した場合には(S305:NO),そのブロックは非無地ブロックであると判定する(S309)。そして,判定した各ブロックの数を累積する。   The mode value of the Y value is calculated for all the pixels in the block (S304). Further, it is determined whether or not the ratio of the mode value of the Y value calculated in S304 is large (S305). For example, it is determined whether or not the proportion of pixels with uniform luminance component values occupies 80% or more of the block. If it is determined that the ratio of the mode value of the Y value is large (S305: YES), it is determined that the block is a plain block (S308). On the other hand, if it is determined that the ratio of the mode value of the Y value is not large (S305: NO), it is determined that the block is a plain block (S309). Then, the number of determined blocks is accumulated.

次に,1ページ分の全ブロックについて,判定が終了したか否かを判断する(S310)。1ページ分が終了していなければ(S310:NO),S304に戻り,次のブロックについて同様に無地か非無地かを判定する。一方,1ページ分が終了していれば(S310:YES),ページの全ブロック数に占める無地ブロック数の割合が,所定の割合を超えているか否かを判断する(S312)。例えば,無地ブロック数の割合が99%以上であるか否かを判断する。   Next, it is determined whether or not the determination has been completed for all blocks of one page (S310). If one page has not been completed (S310: NO), the process returns to S304 to determine whether the next block is plain or non-solid. On the other hand, if one page has been completed (S310: YES), it is determined whether the ratio of the number of plain blocks in the total number of blocks on the page exceeds a predetermined ratio (S312). For example, it is determined whether the ratio of the number of plain blocks is 99% or more.

そして,無地ブロック数の割合が所定の割合より大きいと判断した場合には(S312:YES),そのページを無地画像であると判定して(S313),成分無地判定処理を終了する。一方,無地ブロック数の割合が所定の割合より大きくないと判断した場合には(S313:NO),そのページを非無地画像であると判定して(S314),成分無地判定処理を終了する。   If it is determined that the ratio of the number of plain blocks is larger than the predetermined ratio (S312: YES), it is determined that the page is a plain image (S313), and the component plain color determination process ends. On the other hand, if it is determined that the ratio of the number of plain blocks is not larger than the predetermined ratio (S313: NO), it is determined that the page is a non-solid image (S314), and the component plain determination process ends.

なお,本形態のスキャナ100は,色種別判定回路23による色判定処理と,無地判定回路24による成分無地判定処理とのうち,それぞれブロックごとの判定処理の部分については,1ページ分の原稿の読み取りが終了していなくても,実行を開始することができる。そこで,スキャナ100は,図3に示した読取出力処理では,原稿の読み取りと並行して,色種別判定回路23による色判定処理と,無地判定回路24による成分無地判定処理とを実行する。ただし,1ページ分の最終的な判定結果が得られるのは,いずれも,1ページの原稿の読み取りが終了した後となる。   Note that the scanner 100 of the present embodiment has one page of the original for each block of the color determination processing by the color type determination circuit 23 and the component solid color determination processing by the solid color determination circuit 24 for each block. Execution can be started even if reading is not completed. Therefore, in the reading output process shown in FIG. 3, the scanner 100 executes a color determination process by the color type determination circuit 23 and a component blank determination process by the blank determination circuit 24 in parallel with the reading of the document. However, the final determination result for one page is obtained only after the reading of one page of the original is completed.

続いて,図3に示した読取出力処理のS116にて実行される色判定後判定処理について,図6のフローチャートを参照して説明する。色判定後判定処理は,色種別判定回路23での色判定処理によって色種別が判定された後であることを条件として,無地画像であるか否かをさらに判定する処理である。   Next, the post-color determination determination process executed in S116 of the read output process shown in FIG. 3 will be described with reference to the flowchart of FIG. The post-color determination process is a process for further determining whether or not the image is a plain image on the condition that the color type is determined by the color determination process in the color type determination circuit 23.

色判定後判定処理では,まず,色判定処理によってカラーページと判定されたか否かを判断する(S401)。カラーページと判定されたと判断した場合は(S401:YES),各画像データの生成が終了したか否かを判断する(S402)。カラーページであっても,色付きの無地画像の可能性が残っている。そこで,各画像データの生成が終了したら,カラー画像データのサイズとグレー画像データのサイズとの違いに基づいて,無地画像か否かを判断する処理を実行する。   In the determination process after color determination, first, it is determined whether or not it is determined as a color page by the color determination process (S401). If it is determined that the page is a color page (S401: YES), it is determined whether the generation of each image data is completed (S402). Even for color pages, the possibility of a solid color image remains. Therefore, when the generation of each image data is completed, a process for determining whether or not the image is a plain image is executed based on the difference between the size of the color image data and the size of the gray image data.

各画像データの生成が終了していなければ(S402:NO),終了するまで画像データの生成を継続する。画像データの生成が終了したと判断したら(S402:YES),読取出力動作の指示における読取条件に基づいて,閾値を決定する(S403)。閾値については後述する。そして,スキャナ100は,カラー画像データのサイズと,グレー画像データのサイズとの違いが,S403にて決定した閾値よりも大きいか否かを判断する(S405)。   If the generation of each image data has not ended (S402: NO), the generation of the image data is continued until the end. If it is determined that the generation of the image data has been completed (S402: YES), a threshold value is determined based on the reading condition in the instruction of the reading output operation (S403). The threshold will be described later. Then, the scanner 100 determines whether or not the difference between the size of the color image data and the size of the gray image data is larger than the threshold value determined in S403 (S405).

前述したように,カラー画像データは,画像データのYCbCrの各成分を全て用いた圧縮データであり,グレー画像データは,Cb成分とCr成分とを固定値とし,Y成分のみを有効として生成した圧縮データである。元の画像が無彩色であれば,Cb成分とCr成分とは,いずれもほぼ固定値であり,同じ圧縮方法にて生成されるカラー画像データとグレー画像データとは,ほぼ同じサイズの画像データとなる。また,元の画像が色付きの無地画像であっても,ページ内のYCbCrの各成分の値の変動は小さい。この場合にも,カラー画像データとグレー画像データとは,ほぼ同じサイズの画像データとなる。   As described above, the color image data is compressed data using all the YCbCr components of the image data, and the gray image data is generated with the Cb component and the Cr component as fixed values and only the Y component enabled. It is compressed data. If the original image is an achromatic color, the Cb component and the Cr component are both substantially fixed values, and the color image data and the gray image data generated by the same compression method are image data having substantially the same size. It becomes. Even if the original image is a colored plain image, the variation in the value of each component of YCbCr in the page is small. Also in this case, the color image data and the gray image data are image data having substantially the same size.

つまり,無彩色の画像であるか,または,カラーの無地画像である場合には,カラー画像データのサイズとグレー画像データのサイズとは,ほぼ等しい。一方,原稿が非無地画像であって,かつ,カラーページである場合には,そのCb成分とCr成分との少なくとも一方の変動は大きく,カラー画像データのサイズとグレー画像データのサイズとはかなり異なるものとなる。   That is, in the case of an achromatic image or a color plain image, the size of the color image data and the size of the gray image data are substantially equal. On the other hand, when the document is a plain image and is a color page, the variation of at least one of the Cb component and the Cr component is large, and the size of the color image data and the size of the gray image data are considerably large. It will be different.

そこで,カラー画像データのサイズとグレー画像データのサイズとの違いが大きいと判断した場合は(S405:YES),無彩色の画像ではなく,カラーの無地画像でもないと判断できる。そして,S401にてカラーページであると判定されていることから,そのページはカラーの非無地画像であると判定する(S406)。   Therefore, when it is determined that the difference between the size of the color image data and the size of the gray image data is large (S405: YES), it can be determined that the image is not an achromatic image but a color plain image. Since it is determined in S401 that the page is a color page, it is determined that the page is a color non-solid image (S406).

一方,そのページのカラー画像データのサイズと,グレー画像データのサイズとの違いが大きくない場合には(S405:NO),その原稿は無彩色の画像またはカラーの無地画像である。S401にてカラーページであると判定されていることから,そのページをカラーの無地画像と判定する(S407)。S406,または,S407の判定の後,色判定後判定処理を終了する。なお,色判定後判定処理のS405における判断手順は,無地判定処理の一例である。   On the other hand, when the difference between the size of the color image data of the page and the size of the gray image data is not large (S405: NO), the document is an achromatic image or a color plain image. Since it is determined that the page is a color page in S401, the page is determined to be a color plain image (S407). After the determination in S406 or S407, the post-color determination determination process is terminated. Note that the determination procedure in S405 of the determination process after color determination is an example of a plain color determination process.

ここで,S403にて決定した閾値について説明する。S405の判断は,サイズの比率を用いて行ってもよいし,サイズの差分を用いて行ってもよい。例えば,カラー画像データのサイズに対するグレー画像データのサイズの比率が,0.8〜1.2の範囲内であれば,カラー画像ではないと判断する。比率を用いる場合には,閾値として予め決めた固定値を使用してもよい。   Here, the threshold value determined in S403 will be described. The determination in S405 may be performed using the size ratio or may be performed using the size difference. For example, if the ratio of the gray image data size to the color image data size is in the range of 0.8 to 1.2, it is determined that the image is not a color image. When using a ratio, a predetermined fixed value may be used as a threshold value.

一方,サイズの差分を用いる場合には,S403にて,原稿サイズや読取解像度に基づく閾値を設定することが好ましい。原稿サイズが大きい原稿や,高い読取解像度での読み取りを行った場合には,それぞれ小さい場合に比較して,1ページの画素数が大きい。そのため,原稿サイズや読み取り解像度によって,生成された画像データのサイズも異なる可能性が高い。   On the other hand, when the size difference is used, it is preferable to set a threshold value based on the document size and the reading resolution in S403. When a document having a large document size or reading at a high reading resolution is performed, the number of pixels on one page is larger than when the document is small. Therefore, the size of the generated image data is likely to vary depending on the document size and the reading resolution.

そこで,スキャナ100は,画像データのサイズを差分で比較する場合には,その閾値として,原稿サイズおよび読取解像度に基づく値を用いる。具体的には,原稿サイズが大きい場合には,小さい場合に比較して,閾値を大きい値とする。また,読取解像度が高解像度の場合には,低解像度の場合に比較して,閾値を大きい値とする。   Therefore, the scanner 100 uses a value based on the document size and the reading resolution as the threshold value when comparing the sizes of the image data with differences. Specifically, when the document size is large, the threshold value is set to a larger value than when the document size is small. Also, when the reading resolution is high, the threshold value is set to a larger value than when the reading resolution is low.

なお,閾値は,原稿サイズや読取解像度ごとに予め決めて記憶しておき,読み出して使用してもよいし,計算式として記憶しておき,原稿サイズや読取解像度に基づいて算出してもよい。このように閾値を設定することにより,固定値の閾値を使用した場合より,適切な判断となることが期待できる。   The threshold value may be determined and stored in advance for each document size and reading resolution, read out and used, or stored as a calculation formula and calculated based on the document size and reading resolution. . By setting the threshold in this way, it can be expected that the determination is more appropriate than when a fixed threshold is used.

図6の色判定後判定処理に戻り,S401にてNOと判断した場合について説明する。つまり,色判定処理による判定結果が,グレーページ,または,モノクロページであった場合である。前述したように,これらのいずれの場合でもグレーの無地画像,モノクロの無地画像ということもあり得る。そこで,色判定処理にてカラーではないと判定されている場合には(S401:NO),無地判定回路24による成分無地判定処理が終了したか否かを判断する(S410)。   Returning to the post-color determination processing in FIG. 6, the case where NO is determined in S401 will be described. That is, the determination result by the color determination process is a gray page or a monochrome page. As described above, in any of these cases, it may be a gray plain image or a monochrome plain image. Therefore, if it is determined that the color is not a color in the color determination process (S401: NO), it is determined whether or not the component solid color determination process by the solid color determination circuit 24 is completed (S410).

成分無地判定処理が終了していないと判断した場合には(S410:NO),さらに継続して成分無地判定処理を実行する。そして,成分無地判定処理が終了したと判断した場合には(S410:YES),成分無地判定処理にて無地画像であると判定されたか否かを判断する(S411)。そして,無地画像であると判定されたと判断したら(S411:YES),このページを無彩色の無地画像であると判定して(S413),色判定後判定処理を終了する。   If it is determined that the component solid color determination process has not ended (S410: NO), the component solid color determination process is further executed. If it is determined that the component plain color determination process has ended (S410: YES), it is determined whether or not it is determined that the component solid color determination process is a plain image (S411). If it is determined that the image is a plain image (S411: YES), this page is determined to be an achromatic solid image (S413), and the post-color determination determination process is terminated.

一方,成分無地判定処理にて無地画像ではないと判定されたと判断したら(S411:NO),グレーページか,モノクロページかを色判定処理の結果に基づいて判定する。つまり,色判定処理にてグレーページであると判定されているか否かを判断する(S415)。グレーページであると判定されている場合は(S415:YES),グレーの非無地画像であると決定して(S416),色判定後判定処理を終了する。一方,グレーページでないと判定されている場合は(S415:NO),モノクロの非無地画像であると決定して(S417),色判定後判定処理を終了する。   On the other hand, if it is determined that the image is not a plain image in the component plain color determination process (S411: NO), it is determined based on the result of the color determination process whether the page is a gray page or a monochrome page. That is, it is determined whether or not the page is determined to be a gray page in the color determination process (S415). If it is determined that the page is a gray page (S415: YES), it is determined that the image is a gray solid image (S416), and the post-color determination determination process is terminated. On the other hand, if it is determined that the page is not a gray page (S415: NO), it is determined that the image is a monochrome non-solid image (S417), and the post-color determination determination process is terminated.

続いて,図3に示した読取出力処理のS119にて実行されるサイズ無地判定処理について,図7のフローチャートを参照して説明する。サイズ無地判定処理は,無地判定回路24の成分無地判定処理による判定と,色種別判定回路23の色判定処理による色種別の判定とのいずれも終了していない状態で,各画像データの生成が終了した場合に実行され,各画像データのサイズに基づいて,無地画像であるか否かを判定する処理である。   Next, the size plainness determination process executed in S119 of the reading output process shown in FIG. 3 will be described with reference to the flowchart of FIG. In the size solid color determination process, each image data is generated in a state where neither the determination by the component solid color determination process of the solid color determination circuit 24 nor the determination of the color type by the color determination process of the color type determination circuit 23 is completed. This process is executed when the process is completed, and determines whether or not the image is a plain image based on the size of each image data.

サイズ無地判定処理では,まず,生成したモノクロ画像データのサイズが所定の閾値より小さいか否かを判断する(S501)。モノクロ画像データは,二値化および圧縮された画像データである。二値化によって,例えば,紙面の影によるノイズはほとんど無視される。そのため,原稿が無地画像であった場合には,圧縮によって,ごく小さいサイズの画像データとなる可能性が高い。   In the size plainness determination process, first, it is determined whether or not the size of the generated monochrome image data is smaller than a predetermined threshold (S501). Monochrome image data is binarized and compressed image data. By binarization, for example, noise caused by paper shadows is almost ignored. Therefore, if the document is a plain image, there is a high possibility that the image data will be of a very small size by compression.

そこで,モノクロ画像データのサイズが小さいと判断した場合には(S501:YES),無地画像であると判定して(S502),サイズ無地判定処理を終了する。なお,S501で使用する閾値は,モノクロ画像データを生成する際に使用する圧縮方法に基づき,無地画像と判定できる値を設定しておく。サイズ無地判定処理のS501における判断手順は,二値無地判定処理の一例である。   Therefore, if it is determined that the size of the monochrome image data is small (S501: YES), it is determined that the image is a plain image (S502), and the size plain color determination process is terminated. Note that the threshold used in S501 is set to a value that can be determined as a plain image based on the compression method used when generating monochrome image data. The determination procedure in S501 of the size solid color determination process is an example of a binary solid color determination process.

一方,モノクロ画像データのサイズが小さくないと判断した場合には(S501:NO),色判定後判定処理のS403,S405,S406と同様の処理を実行する。つまり,まず,読取条件に基づいて,閾値を決定する(S403)。さらに,カラー画像データのサイズと,グレー画像データのサイズとの違いが,S403にて決定した閾値よりも大きいか否かを判断する(S405)。さらに,違いが大きいと判断した場合は(S405:YES),カラーの非無地画像であると判定する(S406)。   On the other hand, when it is determined that the size of the monochrome image data is not small (S501: NO), processing similar to S403, S405, and S406 of the post-color determination processing is executed. That is, first, a threshold value is determined based on the reading conditions (S403). Further, it is determined whether or not the difference between the size of the color image data and the size of the gray image data is larger than the threshold value determined in S403 (S405). Further, if it is determined that the difference is large (S405: YES), it is determined that the image is a color solid image (S406).

色判定後判定処理にて説明したように,カラー画像データのサイズとグレー画像データのサイズとの違いが大きいのは,無彩色の画像でなく,かつ,カラーの無地画像でもない場合であり,つまり,カラーの非無地画像の場合である。従って,サイズ無地判定処理では,S405にてサイズの違いが大きいと判断した場合には,カラーの非無地画像であると判定できる。   As described in the post-color determination processing, the difference between the size of the color image data and the size of the gray image data is large when the image is neither an achromatic image nor a solid color image. That is, this is the case of a color solid image. Therefore, in the size plain color determination process, when it is determined in S405 that the size difference is large, it can be determined that the image is a color solid color image.

一方,カラー画像データのサイズとグレー画像データのサイズとの違いが,S403にて決定した閾値よりも大きくないと判断した場合には(S405:NO),無彩色の画像であるか,または,カラーの無地画像である。そこで,さらに判定処理を継続するために,無地判定回路24の成分無地判定処理が終了したか否かを判断する(S505)。終了していなければ(S505:NO),終了するまで継続する。   On the other hand, if it is determined that the difference between the size of the color image data and the size of the gray image data is not larger than the threshold value determined in S403 (S405: NO), it is an achromatic image or This is a color plain image. Therefore, in order to continue the determination process, it is determined whether or not the component solid color determination process of the solid color determination circuit 24 is completed (S505). If it has not ended (S505: NO), it continues until it ends.

成分無地判定処理が終了したと判断したら(S505:YES),無地画像と判定されたか否かを判断する(S506)。成分無地判定処理にて無地画像と判定された場合には(S506:YES),無地画像として(S507),サイズ無地判定処理を終了する。一方,無地画像と判定されなかった場合は(S506:NO),グレーの非無地画像かモノクロの非無地画像かを判定する無彩色判定処理を実行する(S509)。   If it is determined that the component plain color determination process has been completed (S505: YES), it is determined whether or not it is determined that the image is a solid image (S506). When it is determined that the image is a solid image in the component solid color determination process (S506: YES), the size solid color determination process is terminated as a solid image (S507). On the other hand, if it is not determined to be a plain image (S506: NO), an achromatic color determination process for determining whether the image is a gray non-solid image or a monochrome non-solid image is executed (S509).

次に,無彩色の非無地画像であると判定した後にグレーの非無地画像かモノクロの非無地画像かを判定する,S509の無彩色判定処理の手順について,図8のフローチャートを参照して説明する。この無彩色判定処理は,前述した色判定処理(図4参照)のうち,カラーページの判定を除いた処理と同様の処理である。   Next, the procedure of the achromatic color determination process in step S509 will be described with reference to the flowchart of FIG. 8 in which it is determined whether the image is an achromatic non-solid image and then a gray non-solid image or a monochrome non-solid image. To do. The achromatic color determination process is the same as the above-described color determination process (see FIG. 4) except for the color page determination.

無彩色判定処理では,1ページをブロックに分割し(S201),グレーブロック数と,モノクロブロック数とを算出する(S601)。なお,S601では,この時点までに色判定処理のブロック判定(図4のS202)にて算出済みのグレーブロック数とモノクロブロック数とを引き継ぎ,残りのブロックについて,Y値に基づく判定を行う。   In the achromatic color determination process, one page is divided into blocks (S201), and the number of gray blocks and the number of monochrome blocks are calculated (S601). In S601, the number of gray blocks and the number of monochrome blocks already calculated in the block determination of the color determination process (S202 in FIG. 4) are inherited up to this point, and the remaining blocks are determined based on the Y value.

さらに,ページ内の全ブロックについて,各ブロック数の算出が終了したら,得られたグレーブロック数の,ページの全ブロック数に占める割合が,所定の割合を超えているか否かを判断する(S205)。例えば,グレーブロック数の割合が0.3%以上であるか否かを判断する。   Further, when the calculation of the number of blocks is completed for all blocks in the page, it is determined whether or not the ratio of the obtained gray block number to the total number of blocks on the page exceeds a predetermined ratio (S205). ). For example, it is determined whether or not the ratio of the number of gray blocks is 0.3% or more.

そして,グレーブロック数の割合が所定の範囲を超えていると判断した場合には(S205:YES),そのページをグレーページであると判定する(S207)。つまり,グレーの非無地画像であると判定して,無彩色判定処理を終了する。一方,S205にて,グレーブロック数の割合が所定の範囲を超えていないと判断した場合には(S205:NO),そのページをモノクロページであると判定する(S208)。つまり,モノクロの非無地画像であると判定して,無彩色判定処理を終了する。そして,図7に戻り,ページの判定が終了したので,サイズ無地判定処理を終了する。   If it is determined that the ratio of the number of gray blocks exceeds the predetermined range (S205: YES), it is determined that the page is a gray page (S207). That is, it is determined that the image is a gray solid image, and the achromatic color determination process is terminated. On the other hand, if it is determined in S205 that the ratio of the number of gray blocks does not exceed the predetermined range (S205: NO), it is determined that the page is a monochrome page (S208). That is, it is determined that the image is a monochrome non-solid image, and the achromatic color determination process ends. Then, returning to FIG. 7, since the page determination is completed, the size plainness determination process is ended.

以上,詳細に説明したように,本形態のスキャナ100は,画像読取部20にて取得した画像に基づいて,カラー画像データとグレー画像データとを生成する。そして,生成されたカラー画像データのサイズとグレー画像データのサイズとを比較し,その違いが閾値より大きい場合に,非無地画像であると判定する。さらに,非無地画像であると判定したら原稿の画像に基づいた画像データを出力すると決定し,無地画像であると判定したら画像データを出力しないと決定する。従って,無地判定を早期に終了し,画像データを出力する場合には早期に出力を開始することが期待できる。   As described above in detail, the scanner 100 according to the present embodiment generates color image data and gray image data based on the image acquired by the image reading unit 20. Then, the size of the generated color image data is compared with the size of the gray image data, and when the difference is larger than the threshold value, it is determined that the image is a plain image. Further, if it is determined that the image is a plain image, it is determined to output image data based on the image of the document, and if it is determined that the image is a plain image, it is determined not to output the image data. Therefore, when the plain color determination is finished early and image data is output, it can be expected that the output is started early.

なお,本実施の形態は単なる例示にすぎず,本発明を何ら限定するものではない。したがって本発明は当然に,その要旨を逸脱しない範囲内で種々の改良,変形が可能である。例えば,スキャナに限らず,複写機,複合機,FAX機等,画像処理機能と画像データ出力機能とを備えるものであれば適用可能である。   Note that this embodiment is merely an example, and does not limit the present invention. Therefore, the present invention can naturally be improved and modified in various ways without departing from the gist thereof. For example, the present invention is not limited to a scanner, and can be applied to any apparatus having an image processing function and an image data output function, such as a copying machine, a multifunction machine, and a FAX machine.

また,例えば,色種別の判定対象とする画像は,画像読取部20にて読み取った画像データに限らない。例えば,プリンタドライバが印刷対象として受け付ける画像データでもよい。また,他の装置から受信して画像データを取得してもよいし,既に取得してメモリに保存されている画像データを読み出してもよい。読み取り動作による画像データの取得をしない場合には,画像読取部20はなくてもよい。つまり,画像データを取得し,処理後の画像データを出力するプリンタドライバ等のプログラムにも,本発明を適用できる。   Further, for example, the image to be determined as the color type is not limited to the image data read by the image reading unit 20. For example, image data received by a printer driver as a print target may be used. Further, the image data may be acquired by receiving from another device, or the image data already acquired and stored in the memory may be read. If the image data is not acquired by the reading operation, the image reading unit 20 may be omitted. That is, the present invention can be applied to a program such as a printer driver that acquires image data and outputs the processed image data.

また,例えば,カラー画像データとグレー画像データとの圧縮方式は,JPEGに限らない。GIFでもよいし,PNGでもよいし,さらに他の方式でもよい。また,モノクロ画像データの圧縮方式は,パックビッツ方式に限らない。   For example, the compression method of color image data and gray image data is not limited to JPEG. GIF, PNG, or another method may be used. In addition, the compression method of monochrome image data is not limited to the pack bits method.

また,例えば,分割ブロックの大きさ,各種の閾値等の数値は一例であり,適宜変更可能である。また,サイズの比率をサイズの違いとして用いる場合にも,閾値を可変値としてもよい。   Also, for example, numerical values such as the size of divided blocks and various threshold values are examples, and can be changed as appropriate. Also, the threshold value may be a variable value when the size ratio is used as the size difference.

また,例えば,上記の形態では,画像処理回路22と,色種別判定回路23と,無地判定回路24と,画像ファイル生成回路25とはASIC35に含まれるとしたが,いずれの処理もASICによる処理に限らず,ソフトウエアによって実行してもよい。例えば,各処理を,ROM32に組み込まれたソフトウエアによってCPU31が実行してもよい。   For example, in the above embodiment, the image processing circuit 22, the color type determination circuit 23, the plain color determination circuit 24, and the image file generation circuit 25 are included in the ASIC 35. However, any processing is performed by the ASIC. Not limited to this, it may be executed by software. For example, each process may be executed by the CPU 31 by software incorporated in the ROM 32.

また,上記の形態では,色種別判定回路23にて実行される色判定処理では,1ページ分のブロック判定が終了してから,そのページの色種別の判定を行うとしたが,これに限らない。例えば,ページの途中で,それまでにカラーブロックと判定されたブロックの数が,ページ全体のブロック数のうちの所定の割合を超えているか否かを判断してもよい。そして,超えていると判断した場合には,そのページをカラーページと判定できる。   In the above embodiment, the color determination processing executed by the color type determination circuit 23 determines the color type of the page after the block determination for one page is completed. Absent. For example, in the middle of the page, it may be determined whether the number of blocks that have been determined as color blocks so far exceeds a predetermined ratio of the total number of blocks in the page. If it is determined that the page is exceeded, the page can be determined as a color page.

また,上記の形態では,無地判定回路24にて実行される成分無地判定処理では,1ページ分のブロック判定が終了してから,そのページの無地判定を行うとしたが,これに限らない。例えば,ページの途中で,それまでに非無地ブロックと判定されたブロックの数が,ページ全体のブロック数のうちの所定の割合を超えているか否かを判断してもよい。そして,超えていると判断した場合には,そのページを非無地画像と判定できる。例えば,前述したようにページの途中でカラーページと判定され,さらに,非無地画像であると判定された場合には,出力する画像データをカラー画像データに決定できる。   Further, in the above embodiment, in the component solid color determination process executed by the solid color determination circuit 24, the block determination for one page is performed after the block determination for one page is completed. However, the present invention is not limited to this. For example, in the middle of a page, it may be determined whether the number of blocks that have been determined as plain blocks so far exceeds a predetermined percentage of the total number of blocks in the page. If it is determined that the page is exceeded, the page can be determined as a plain image. For example, as described above, when it is determined that the page is a color page in the middle of the page and is further determined to be a plain image, the image data to be output can be determined as color image data.

また,例えば,モノクロ画像データの判定を行わず,カラー画像データとグレー画像データとを生成してそのいずれかを出力する装置に,本発明を適用することも可能である。その場合には,グレーページかモノクロページかを判定する無彩色判定処理はなくてもよい。   Further, for example, the present invention can be applied to an apparatus that generates color image data and gray image data and outputs either one without determining monochrome image data. In that case, the achromatic color determination process for determining whether the page is a gray page or a monochrome page is not necessary.

また,実施の形態に開示されている処理は,単一のCPU,複数のCPU,ASICなどのハードウェア,またはそれらの組み合わせで実行されてもよい。また,実施の形態に開示されている処理は,その処理を実行するためのプログラムを記録した記録媒体,または方法等の種々の態様で実現することができる。   The processing disclosed in the embodiments may be executed by a single CPU, a plurality of CPUs, hardware such as an ASIC, or a combination thereof. Further, the processing disclosed in the embodiment can be realized in various modes such as a recording medium or a method recording a program for executing the processing.

20 画像読取部
31 CPU
100 スキャナ
20 Image reading unit 31 CPU
100 scanner

Claims (13)

画像を取得する取得部と,
制御部と,
を備え,
前記制御部は,
前記取得部にて画像を取得する取得処理と,
前記取得処理にて取得した画像である取得画像に基づいて,所定の圧縮方式によって圧縮されたカラー画像データを生成するカラー生成処理と,
前記取得画像に基づいて,前記カラー画像データと同じ圧縮方式によって圧縮されたグレースケールの画像データであるグレー画像データを生成するグレー生成処理と,
前記カラー画像データのサイズと前記グレー画像データのサイズとの違いが閾値よりも大きい場合に,前記取得画像を非無地画像と判定する無地判定処理と,
前記取得画像の少なくとも輝度成分に基づいて,前記取得画像が無地画像か非無地画像かを判定する成分無地判定処理と,
前記無地判定処理または前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定する決定処理と,
を実行し,
さらに,前記制御部は,
前記カラー生成処理によるカラー画像データの生成と,前記グレー生成処理によるグレー画像データの生成とが終了しても,前記成分無地判定処理が終了していない場合には,前記無地判定処理の実行を開始することを特徴とする画像出力装置。
An acquisition unit for acquiring images;
A control unit;
With
The controller is
An acquisition process of acquiring an image in the acquisition unit;
A color generation process for generating color image data compressed by a predetermined compression method based on an acquired image that is an image acquired by the acquisition process;
Gray generation processing for generating gray image data, which is grayscale image data compressed by the same compression method as the color image data, based on the acquired image;
A solid color determination process for determining the acquired image as a solid color image when a difference between the size of the color image data and the size of the gray image data is larger than a threshold;
A component plain color determination process for determining whether the acquired image is a plain image or a solid color image based on at least a luminance component of the acquired image;
A determination process for determining whether to output image data based on the acquired image according to a determination result of the solid color determination process or the component solid color determination process ;
The execution,
Furthermore, the control unit
Even if the generation of the color image data by the color generation process and the generation of the gray image data by the gray generation process are completed, if the component solid color determination process is not completed, the solid color determination process is executed. An image output apparatus characterized by starting .
請求項1に記載する画像出力装置において,
前記制御部は,前記カラー画像データのサイズと前記グレー画像データのサイズとの比率を,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いとして用いることを特徴とする画像出力装置。
The image output apparatus according to claim 1,
The image output apparatus, wherein the control unit uses a ratio between the size of the color image data and the size of the gray image data as a difference between the size of the color image data and the size of the gray image data.
請求項1に記載する画像出力装置において,
前記制御部は,前記カラー画像データのサイズと前記グレー画像データのサイズとの差分を,前記カラー画像データのサイズと前記グレー画像データのサイズとの違いとして用いることを特徴とする画像出力装置。
The image output apparatus according to claim 1,
The image output apparatus according to claim 1, wherein the control unit uses a difference between the size of the color image data and the size of the gray image data as a difference between the size of the color image data and the size of the gray image data.
請求項1から請求項3のいずれか1つに記載する画像出力装置において,
前記制御部は
記決定処理では,前記無地判定処理にて前記取得画像が非無地画像と判定されなかった場合には,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定することを特徴とする画像出力装置。
In the image output device according to any one of claims 1 to 3,
Wherein,
In the previous SL determination process, the acquired image in the non-coating determination processing when it is not determined that the non-solid color image in accordance with the determination result of the component solid judgment processing, and outputs the image data based on the acquired image An image output apparatus that determines whether or not.
請求項4に記載する画像出力装置において,
前記制御部は,
前記決定処理では,前記無地判定処理の判定結果よりも先に前記成分無地判定処理の判定結果が得られた場合に,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定することを特徴とする画像出力装置。
The image output device according to claim 4,
The controller is
In the determination process, when the determination result of the component solid color determination process is obtained prior to the determination result of the solid color determination process, image data based on the acquired image according to the determination result of the component solid color determination process Determining whether or not to output the image.
請求項4または請求項5に記載する画像出力装置において,
前記制御部は,
前記取得画像に基づいて,二値化された無彩色の画像データである無彩色二値画像データを生成する二値生成処理と,
前記取得画像がカラー画像であることが不明な状態で前記無地判定処理が実行され,当該無地判定処理にて前記取得画像が非無地画像と判定されなかった後,前記成分無地判定処理にて前記取得画像が非無地画像と判定された場合に,前記取得画像が無彩色の非無地画像であると判定し,前記取得画像の少なくとも輝度成分に基づいて,前記取得画像の色種別をグレー画像か無彩色二値画像かを判定する無彩色判定処理と,
前記無彩色判定処理の判定結果に基づいて,出力する画像データを決定する無彩色データ決定処理と,
を実行することを特徴とする画像出力装置。
In the image output device according to claim 4 or 5,
The controller is
A binary generation process for generating achromatic binary image data which is a binarized achromatic image data based on the acquired image;
The solid color determination process is executed in a state where it is unknown that the acquired image is a color image, and after the acquired image is not determined to be a solid color image in the solid color determination process, the solid color determination process is performed. When the acquired image is determined to be a plain image, it is determined that the acquired image is an achromatic solid image, and the color type of the acquired image is determined based on at least the luminance component of the acquired image. An achromatic color determination process for determining whether the image is an achromatic binary image;
Achromatic color data determination processing for determining image data to be output based on the determination result of the achromatic color determination processing;
The image output apparatus characterized by performing.
請求項1から請求項6のいずれか1つに記載する画像出力装置において,
前記制御部は,
前記取得画像の少なくとも色差成分に基づいて,前記取得画像の色種別を判定する色判定処理と,
前記色判定処理の判定結果に基づいて,出力する画像データを決定するデータ決定処理と,
を実行することを特徴とする画像出力装置。
In the image output device according to any one of claims 1 to 6,
The controller is
A color determination process for determining a color type of the acquired image based on at least a color difference component of the acquired image;
A data determination process for determining image data to be output based on a determination result of the color determination process;
The image output apparatus characterized by performing.
請求項7に記載する画像出力装置において,
前記制御部は,
前記色判定処理にて前記取得画像がカラー画像であると判定された後,前記無地判定処理にて非無地画像と判定されなかった場合,無地画像であると判定し,
前記無地判定処理の判定結果が得られる前に,前記色判定処理にて前記取得画像がカラー画像ではないと判定された場合,前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定することを特徴とする画像出力装置。
The image output apparatus according to claim 7 ,
The controller is
If it is determined that the acquired image is a color image in the color determination process and is not determined to be a plain image in the plain determination process, it is determined to be a plain image;
If it is determined in the color determination process that the acquired image is not a color image before the determination result of the solid color determination process is obtained, based on the acquired image according to the determination result of the component solid color determination process An image output apparatus for determining whether or not to output image data.
請求項1から請求項のいずれか1つに記載する画像出力装置において,
前記制御部は,
前記無地判定処理にて前記取得画像が非無地画像と判定された場合に,前記取得画像の色種別をカラー画像と判定することを特徴とする画像出力装置。
In the image output device according to any one of claims 1 to 8 ,
The controller is
An image output apparatus, wherein when the acquired image is determined to be a non-solid image in the plain determination process, the color type of the acquired image is determined to be a color image.
請求項1から請求項9のいずれか1つに記載する画像出力装置において,
前記制御部は,
前記取得画像に基づいて,二値化および圧縮された無彩色の画像データである無彩色二値画像データを生成する二値生成処理と,
前記無彩色二値画像データのサイズが基準値よりも小さい場合に,前記取得画像が無地画像であると判定する二値無地判定処理と,
を実行し,
前記決定処理では,前記無地判定処理の判定結果よりも先に前記二値無地判定処理の判定結果が得られた場合に,前記二値無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定することを特徴とする画像出力装置。
In the image output device according to any one of claims 1 to 9,
The controller is
A binary generation process for generating achromatic binary image data which is binarized and compressed achromatic image data based on the acquired image;
When the size of the achromatic binary image data is smaller than a reference value, a binary plain determination process for determining that the acquired image is a plain image;
And
In the determination process, when the determination result of the binary solid color determination process is obtained prior to the determination result of the solid color determination process, the determination process is based on the acquired image according to the determination result of the binary solid color determination process. An image output apparatus for determining whether or not to output image data.
請求項1から請求項10のいずれか1つに記載する画像出力装置において,
前記取得部は,原稿の画像の読み取りを行い,
前記制御部は,
前記取得処理では,前記取得部によってカラー読み取りが行われた画像を取得することを特徴とする画像出力装置。
In the image output device according to any one of claims 1 to 10,
The acquisition unit reads an image of a document,
The controller is
In the acquisition process, an image that has been subjected to color reading by the acquisition unit is acquired.
請求項11に記載する画像出力装置において,
前記制御部は,
前記閾値を,原稿のサイズと読取解像度との少なくとも一方に基づいて設定することを特徴とする画像出力装置。
The image output apparatus according to claim 11,
The controller is
An image output apparatus, wherein the threshold is set based on at least one of a document size and a reading resolution.
画像出力装置に,
画像を取得する取得処理と,
前記取得処理にて取得した画像である取得画像に基づいて,所定の圧縮方式によって圧縮されたカラー画像データを生成するカラー生成処理と,
前記取得画像に基づいて,前記カラー画像データと同じ圧縮方式によって圧縮されたグレースケールの画像データであるグレー画像データを生成するグレー生成処理と,
前記カラー画像データのサイズと前記グレー画像データのサイズとの違いが閾値よりも大きい場合に,前記取得画像を非無地画像と判定する無地判定処理と,
前記取得画像の少なくとも輝度成分に基づいて,前記取得画像が無地画像か非無地画像かを判定する成分無地判定処理と,
前記無地判定処理または前記成分無地判定処理の判定結果に応じて,前記取得画像に基づく画像データを出力するか否かを決定する決定処理と,
を実行させ
さらに,前記カラー生成処理によるカラー画像データの生成と,前記グレー生成処理によるグレー画像データの生成とが終了しても,前記成分無地判定処理が終了していない場合には,前記無地判定処理の実行を開始させることを特徴とするプログラム。
In the image output device,
Acquisition processing to acquire images,
A color generation process for generating color image data compressed by a predetermined compression method based on an acquired image that is an image acquired by the acquisition process;
Gray generation processing for generating gray image data, which is grayscale image data compressed by the same compression method as the color image data, based on the acquired image;
A solid color determination process for determining the acquired image as a solid color image when a difference between the size of the color image data and the size of the gray image data is larger than a threshold;
A component plain color determination process for determining whether the acquired image is a plain image or a solid color image based on at least a luminance component of the acquired image;
A determination process for determining whether to output image data based on the acquired image according to a determination result of the solid color determination process or the component solid color determination process ;
Was executed,
Further, when the generation of the color image data by the color generation process and the generation of the gray image data by the gray generation process are not completed, the solid color determination process is not completed. A program characterized by starting execution .
JP2013270362A 2013-12-26 2013-12-26 Image output apparatus and program Active JP6127966B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013270362A JP6127966B2 (en) 2013-12-26 2013-12-26 Image output apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013270362A JP6127966B2 (en) 2013-12-26 2013-12-26 Image output apparatus and program

Publications (2)

Publication Number Publication Date
JP2015126441A JP2015126441A (en) 2015-07-06
JP6127966B2 true JP6127966B2 (en) 2017-05-17

Family

ID=53536842

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013270362A Active JP6127966B2 (en) 2013-12-26 2013-12-26 Image output apparatus and program

Country Status (1)

Country Link
JP (1) JP6127966B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10867201B2 (en) 2019-01-15 2020-12-15 Waymo Llc Detecting sensor occlusion with compressed image data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3304858B2 (en) * 1997-11-28 2002-07-22 富士ゼロックス株式会社 Image transmission apparatus and image transmission method
JP2002120411A (en) * 2000-10-17 2002-04-23 Fuji Xerox Co Ltd White sheet detector and image recorder, imaging apparatus and image reader comprising it
JP4474650B2 (en) * 2005-05-30 2010-06-09 富士ゼロックス株式会社 Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2015126441A (en) 2015-07-06

Similar Documents

Publication Publication Date Title
JP6489761B2 (en) Image processing apparatus, image processing method, and program
JP2015223717A (en) Testing apparatus, testing method, and testing program
JP6127966B2 (en) Image output apparatus and program
JP6108220B2 (en) Image processing apparatus and image processing program
JP5605139B2 (en) Image reading device
US20160189389A1 (en) Image processing apparatus that processes image containing background color
US10402802B2 (en) Apparatus, method, and program for setting printing fee based on image analysis result
JP6127965B2 (en) Image output apparatus and program
US7545540B2 (en) Method and system for processing color image data
US10367971B2 (en) Image processing apparatus detecting toner peeling area on crease in document and correcting pixel data
US9667832B2 (en) Image processing apparatus
US9886648B2 (en) Image processing device generating arranged image data representing arranged image in which images are arranged according to determined relative position
JP6149613B2 (en) Image processing apparatus and image processing program
JP2008092553A (en) Image color judging apparatus, method and program
US20080266611A1 (en) Image Processing Device and Image Processing Method
US9225874B2 (en) Image reading apparatus capable of outputting a plurality of types of image data
JP6427960B2 (en) Image processing device
JP5361830B2 (en) Image processing device
JP7159762B2 (en) Image reader
JP5422520B2 (en) Image processing device
JP6079371B2 (en) Image processing apparatus and image processing program
JP2016092492A (en) Image reader
JP6210322B2 (en) Image forming apparatus
JP5478428B2 (en) Image processing device
JP5799675B2 (en) Image processing apparatus and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160318

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170302

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170327

R150 Certificate of patent or registration of utility model

Ref document number: 6127966

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150