JP7211209B2 - IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD - Google Patents

IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD Download PDF

Info

Publication number
JP7211209B2
JP7211209B2 JP2019064895A JP2019064895A JP7211209B2 JP 7211209 B2 JP7211209 B2 JP 7211209B2 JP 2019064895 A JP2019064895 A JP 2019064895A JP 2019064895 A JP2019064895 A JP 2019064895A JP 7211209 B2 JP7211209 B2 JP 7211209B2
Authority
JP
Japan
Prior art keywords
image
frequency
page
determination
monochrome
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
JP2019064895A
Other languages
Japanese (ja)
Other versions
JP2020167483A (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 JP2019064895A priority Critical patent/JP7211209B2/en
Publication of JP2020167483A publication Critical patent/JP2020167483A/en
Application granted granted Critical
Publication of JP7211209B2 publication Critical patent/JP7211209B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Electrophotography (AREA)
  • Facsimiles In General (AREA)
  • Control Or Security For Electrophotography (AREA)

Description

本発明は、画像処理装置、画像処理装置を制御するためのプログラム、画像形成装置、および画像処理装置の制御方法に関する。 The present invention relates to an image processing apparatus, a program for controlling the image processing apparatus, an image forming apparatus, and a control method for the image processing apparatus.

従来、原稿の画像を読み取って、その画像を用紙またはディスプレイ等に出力する処理を実行する画像処理装置が知られている。また、このような画像処理装置は、読み取った画像を出力する際に白黒画像による出力を選択可能であり、白黒の二値化処理によって変換した白黒画像を出力する機能を有する場合がある。 2. Description of the Related Art Conventionally, there is known an image processing apparatus that reads an image of a document and outputs the image to a sheet of paper, a display, or the like. Further, such an image processing apparatus can select a black-and-white image output when outputting a read image, and may have a function of outputting a black-and-white image converted by a black-and-white binarization process.

この種の画像処理装置の中には、原稿が白紙原稿であるか否かを判定する白紙判定機能を搭載したものがある。しかし、白紙判定で白紙ではないと判定された画像に対して上述した二値化処理を実行すると、二値化処理によって画像が白紙化されてしまい、そのまま白紙が出力されてしまう場合があった。 Some image processing apparatuses of this type are equipped with a blank sheet determination function for determining whether or not a document is a blank document. However, when the above-described binarization processing is performed on an image that has been determined not to be blank in the blank page determination, the image may be blanked by the binarization processing, and the blank page may be output as it is. .

この問題を解決するために、例えば特許文献1には、二値化処理によって白黒に変換する前後の画像に対してそれぞれ白紙判定を行うことで、白紙原稿であるか否かを正確に判定する機能を搭載した画像処理装置が開示されている。 In order to solve this problem, for example, Japanese Patent Application Laid-Open No. 2002-200000 discloses that blank page determination is performed on images before and after conversion to black and white by binarization processing, so that whether or not the document is a blank page is accurately determined. An image processing apparatus equipped with functions is disclosed.

特開2015-65638号公報JP 2015-65638 A

上記特許文献1に記載された技術については、二値化処理後に白紙判定を行うために複数回の白紙判定を行う必要があった。一度の白紙判定によって二値化処理の有無を問わず正確な白紙判定が可能であれば、白紙判定にかかる時間の短縮が期待できる。 With the technique described in Patent Document 1, it was necessary to perform blank page determination multiple times in order to perform blank page determination after binarization processing. If accurate blank page determination can be made by one blank page determination regardless of the presence or absence of binarization processing, the time required for blank page determination can be expected to be shortened.

そこで本発明の一態様は、一度の白紙判定によって二値化処理が施される画像の白紙判定を正確に実施できる画像処理装置等を提供することを目的とする。 SUMMARY OF THE INVENTION Accordingly, it is an object of one aspect of the present invention to provide an image processing apparatus and the like that can accurately perform blank page determination for an image to be subjected to binarization processing by one blank page determination.

上記の課題を解決するために、本発明の一態様に係る画像処理装置は、原稿を読み取って多階調画像を取得する取得部と、制御部と、を備え、前記制御部は、前記多階調画像に含まれる1頁を判定対象頁とし、当該判定対象頁について、第1閾値以上である輝度値を有する画素の頻度の総和である第1頻度と、前記第1閾値未満である前記輝度値を有する画素の頻度の総和である第2頻度と、を取得する頻度取得処理と、前記第1頻度および前記第2頻度の少なくとも一方が第2閾値以上であれば、前記判定対象頁は単色であり、前記第1頻度および前記第2頻度がともに第2閾値未満であれば、前記判定対象頁は多色であると判定する、単色/多色判定処理と、前記単色/多色判定処理にて多色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像を前記第1閾値と前記輝度値との比較に基づく二値画像への画像変換を行って当該二値画像を出力し、前記単色/多色判定処理にて単色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像に対応する画像を出力しない画像出力判断処理と、を実行する。 In order to solve the above problems, an image processing apparatus according to an aspect of the present invention includes an acquisition unit that acquires a multi-tone image by reading a document, and a control unit. One page included in the gradation image is defined as a determination target page, and for the determination target page, a first frequency that is the sum of frequencies of pixels having a luminance value that is equal to or greater than the first threshold, and the above that is less than the first threshold a frequency acquisition process for acquiring a second frequency that is the sum of frequencies of pixels having luminance values; a single-color/multi-color determination process for determining that the page to be determined is multi-color if it is monochrome and both the first frequency and the second frequency are less than a second threshold, and the single-color/multi-color determination For the determination target page determined to be multicolored in the process, the multi-tone image related to the page is subjected to image conversion into a binary image based on the comparison between the first threshold value and the luminance value. and outputting the binary image, and for the determination target page determined to be monochrome in the monochrome/multicolor determination process, image output not outputting the image corresponding to the multi-tone image related to the page. Execute judgment processing.

前記構成によれば、二値画像への画像変換に用いる第1閾値を単色/多色判定処理でも用いる。そのため、単色/多色判定処理は画像変換後の二値画像における各画素の輝度値の頻度を算出し、当該算出結果を用いて画像変換後の二値画像が単色となるか否かを判定できる。したがって、多階調画像における判断対象頁は単色ではないと判定されたが、画像変換後の二値画像は単色となってしまう現象を、一度の単色/多色判定処理のみによって抑制できる。 According to the above configuration, the first threshold used for image conversion to a binary image is also used for monochrome/multicolor determination processing. Therefore, the monochrome/multicolor determination process calculates the frequency of the luminance value of each pixel in the binary image after image conversion, and uses the calculation result to determine whether the binary image after image conversion is monochrome. can. Therefore, it is possible to suppress the phenomenon that the page to be judged in the multi-tone image is not monochromatic, but the binary image after the image conversion is monochromatic only by performing the monochromatic/multicolor judging process once.

上記の課題を解決するために、本発明の一態様に係る制御方法は、原稿を読み取って多階調画像を取得する取得部を備える画像処理装置の制御方法であって、前記多階調画像に含まれる1頁を判定対象頁とし、当該判定対象頁について、第1閾値以上である輝度値を有する画素の頻度の総和である第1頻度と、前記第1閾値未満である前記輝度値を有する画素の頻度の総和である第2頻度と、を取得する頻度取得ステップと、前記第1頻度および前記第2頻度の少なくとも一方が第2閾値以上であれば、前記判定対象頁は単色であり、前記第1頻度および前記第2頻度がともに第2閾値未満であれば、前記判定対象頁は多色であると判定する、単色/多色判定ステップと、前記単色/多色判定ステップにて多色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像を前記第1閾値と前記輝度値との比較に基づく二値画像への画像変換を行って当該二値画像を出力し、前記単色/多色判定ステップにて単色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像に対応する画像を出力しない画像出力判断ステップと、を含む。 In order to solve the above problems, a control method according to one aspect of the present invention is a control method for an image processing apparatus including an acquisition unit that acquires a multi-tone image by reading a document, comprising: A page included in is a determination target page, and for the determination target page, a first frequency that is the sum of frequencies of pixels having a luminance value that is equal to or greater than a first threshold, and the luminance value that is less than the first threshold a frequency acquiring step of acquiring a second frequency that is the sum of the frequencies of the pixels having the a single-color/multi-color determination step, wherein if both the first frequency and the second frequency are less than a second threshold value, the page to be determined is determined to be multi-color; and the single-color/multi-color determination step. For the determination target page determined to be multicolored, the multi-tone image of the page is subjected to image conversion into a binary image based on the comparison between the first threshold value and the luminance value. an image output determination step of outputting a value image and not outputting an image corresponding to the multi-tone image of the determination target page determined to be monochrome in the monochrome/multicolor determination step; ,including.

本発明の一態様によれば、一度の白紙判定によって二値化処理が施される画像の白紙判定を正確に実施できる画像処理装置等を提供できる。 According to one aspect of the present invention, it is possible to provide an image processing apparatus and the like that can accurately perform blank page determination for an image to be binarized by one blank page determination.

本発明の一実施形態に係るMFP(Multi-Function Peripheral)の構成の一例を示すブロック図である。1 is a block diagram showing an example configuration of an MFP (Multi-Function Peripheral) according to an embodiment of the present invention; FIG. 単色頁除去処理の一例を示すフローチャートである。7 is a flowchart showing an example of monochrome page removal processing; 原稿を複数のブロックに分割する一例を示す図である。FIG. 4 is a diagram showing an example of dividing a document into a plurality of blocks; 頻度取得処理の一例を示すフローチャートである。8 is a flowchart illustrating an example of frequency acquisition processing; 輝度値のヒストグラムの一例を示す図である。FIG. 4 is a diagram showing an example of a histogram of luminance values; 二値画像要否判定処理の一例を示すフローチャートである。7 is a flowchart illustrating an example of binary image necessity determination processing; 白紙頁除去処理の一例を示すフローチャートである。6 is a flowchart showing an example of blank page removal processing;

以下、本発明の一実施形態について、図1~5を参照して詳細に説明する。 An embodiment of the present invention will now be described in detail with reference to FIGS.

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

プロセス部の一例としての画像形成部10は、画像データに基づく印刷(カラー印刷またはモノクロ印刷)を実行し、当該画像データに基づく現像剤像をプリント用紙等の被記録媒体上に形成する。画像形成の方式は、電子写真方式であってもよいし、インクジェット方式であってもよい。また画像形成部10は、ネットワークインターフェース40を介して接続された外部のPCなどに出力するための、デジタル画像データを生成してもよい。 An image forming unit 10, which is an example of a processing unit, executes printing (color printing or monochrome printing) based on image data, and forms a developer image based on the image data on a recording medium such as printing paper. An image forming method may be an electrophotographic method or an inkjet method. The image forming section 10 may also generate digital image data to be output to an external PC or the like connected via the network interface 40 .

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

操作パネル30は、タッチパネルを備えている。タッチパネルには、MFP1の状態等、各種の情報が表示される。また、タッチパネルに対するタッチ操作により、ユーザによる各種の入力が可能である。操作パネル30には、テンキーなどの入力キーが備えられていてもよい。 The operation panel 30 has a touch panel. Various types of information such as the state of the MFP 1 are displayed on the touch panel. Moreover, various inputs by the user are possible by performing a touch operation on the touch panel. The operation panel 30 may be provided with input keys such as numeric keys.

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

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

<機能および設定>
MFP1は、画像読取部20により原稿の画像を読み取り、読み取った画像に基づく画像データを画像形成部10によりプリント用紙などに出力したり、ネットワークインターフェース40を介して外部のPCなどに出力したりする読取機能を有している。
<Functions and Settings>
The MFP 1 reads an image of a document using an image reading unit 20, and outputs image data based on the read image to a print sheet or the like using the image forming unit 10, or outputs the image data to an external PC or the like via a network interface 40. It has a reading function.

この読取機能の使用に際して、ユーザは、操作パネル30を操作して、出力設定を変更することができる。出力設定としては、例えばBW(白黒)と、グレーと、カラーとの3タイプが用意されている。画像読取部20は、いずれの出力設定が設定されていても、原稿の画像について、多諧調のデジタル画像データである多階調画像として読み取る。多階調画像には、少なくとも多階調の輝度値データが含まれる。また、原稿には複数の頁が含まれていてもよい。この場合、多階調画像には複数の頁のデジタル画像データが含まれる。 When using this reading function, the user can operate the operation panel 30 to change the output settings. As output settings, for example, three types of BW (black and white), gray, and color are prepared. The image reading unit 20 reads the image of the document as a multi-gradation image, which is multi-gradation digital image data, regardless of which output setting is set. A multi-tone image includes at least multi-tone luminance value data. Also, the manuscript may include a plurality of pages. In this case, the multi-tone image includes multiple pages of digital image data.

そしてMFP1は、「出力設定:BW」が設定されると、読み取った多階調画像を白黒の二値画像に変換する画像変換を行い、当該二値画像を出力する。「出力設定:グレー」または「出力設定:カラー」が設定されると、例えば256階調のグレーJpeg画像またはカラーJpeg画像を出力する。 When "output setting: BW" is set, the MFP 1 performs image conversion to convert the read multi-tone image into a black and white binary image, and outputs the binary image. When "output setting: gray" or "output setting: color" is set, for example, a gray Jpeg image or a color Jpeg image with 256 gradations is output.

また、MFP1は単色画像除去機能を有している。単色画像除去機能は、画像読取部20により読み取った原稿の画像が白単色または黒単色等である単色の画像であるか否かを判定し、単色の画像であった場合に、当該画像を出力しない機能である。なおMFP1は、単色画像除去機能のうち、原稿が白紙であった場合のみ画像を出力しない、白紙除去機能を有効にすることができる。ユーザは、操作パネル30を操作して、単色画像除去機能または白紙除去機能を有効にするか無効にするかを設定することができる。 Also, the MFP 1 has a monochrome image removing function. The single-color image removal function determines whether or not the image of the document read by the image reading unit 20 is a single-color image such as white or black, and outputs the image if it is a single-color image. It is a function that does not Note that the MFP 1 can enable a blank page removal function, which does not output an image only when the original is blank, among monochrome image removal functions. The user can operate the operation panel 30 to set whether to enable or disable the monochrome image removal function or the blank page removal function.

なお、従来のMFPでは、「出力設定:BW」が設定された場合、さらに単色画像除去機能が有効に設定されていても、出力する画像は白単色または黒単色となる場合があるという問題点があった。これは例えば、当該MFPが読み取った多階調画像が単色の画像であるか否かを判定した際には単色の画像でないと判定したが、その後の二値画像への画像変換によっておよそ全ての画素が白または黒となった画像が生成され、当該画像が出力される場合である。 In addition, in the conventional MFP, when "output setting: BW" is set, even if the single-color image removal function is set to be effective, the output image may be in white or black. was there. For example, when it is determined whether or not a multi-tone image read by the MFP is a monochrome image, it is determined that the image is not a monochrome image, but after image conversion to a binary image, almost all This is the case where an image with white or black pixels is generated and output.

一方、本実施形態に係るMFP1によれば、「出力設定:BW」が設定された場合の単色の画像であるか否かの判定には、後述するように二値画像への画像変換に用いられる輝度値の閾値を参照する。これによりMFP1は、画像変換後の二値画像が単色となるか否かを判定できるため、単色画像除去機能が有効に設定されている場合に、単色の画像を出力してしまうことがない。 On the other hand, according to the MFP 1 according to the present embodiment, when "output setting: BW" is set, determination of whether or not the image is a monochrome image is performed using image conversion to a binary image as described later. Refers to the luminance value threshold for As a result, the MFP 1 can determine whether or not the binary image after the image conversion is monochromatic, so that when the monochromatic image removal function is set to be valid, the monochromatic image is not output.

また、MFP1によれば、前記のような問題点を解決するために、二値画像への画像変換前に多階調画像が単色の画像であるか否かを判定し、さらに二値画像への画像変換後に二値画像が単色の画像であるか否かを判定する必要がない。そのため、例えば二値画像が単色の画像であるか否かを判定するために、専用の回路等を設ける必要がなく、MFP1の構成を簡略化できる。また、単色の画像であるか否かの判定に要する時間の短縮も期待できる。 Further, according to the MFP 1, in order to solve the above-mentioned problems, it is determined whether or not the multi-tone image is a monochrome image before image conversion to a binary image, and furthermore, it is converted to a binary image. It is not necessary to determine whether the binary image is a monochrome image after the image conversion of . Therefore, for example, it is not necessary to provide a dedicated circuit or the like for determining whether a binary image is a monochrome image, and the configuration of the MFP 1 can be simplified. Also, it is expected that the time required for determining whether or not the image is a monochrome image can be shortened.

<単色画像除去機能における処理>
単色画像除去機能を実現するために、制御部50のCPU51は、プログラムを実行することにより、頻度取得処理と、単色/多色判定処理と、画像出力判断処理とが含まれる単色頁除去処理を実行する。以下に、MFP1の制御方法の一例として、これらの処理についてそれぞれ説明する。
<Processing in Monochromatic Image Removal Function>
In order to implement the single-color image removal function, the CPU 51 of the control unit 50 executes a program to perform single-color page removal processing including frequency acquisition processing, single-color/multicolor determination processing, and image output determination processing. Run. Each of these processes will be described below as an example of the control method of the MFP 1 .

(単色頁除去処理)
単色頁除去処理について、図2を参照して以下に説明する。CPU51は、画像読取部20により読み取られた多階調画像に含まれる1頁を判定対象頁とする。図3に示すように、CPU51は、判定対象頁を格子状に複数のブロックに分割する(S1)。このとき、各ブロックの大きさはblk_sizex×blk_sizeyとして表される。CPU51は、blk_sizexおよびblk_sizeyの値について、分割により得られるブロックの数に応じて適宜設定する。
(Single color page removal processing)
The monochrome page removal process will be described below with reference to FIG. The CPU 51 sets one page included in the multi-tone image read by the image reading section 20 as a determination target page. As shown in FIG. 3, the CPU 51 divides the determination target page into a plurality of blocks in a grid pattern (S1). At this time, the size of each block is expressed as blk_sizex×blk_sizey. The CPU 51 appropriately sets the values of blk_sizex and blk_sizey according to the number of blocks obtained by division.

次にCPU51は、ブロックごとに頻度取得処理を実行し、最頻度値の値を取得する(S2)。頻度取得処理については後述する。CPU51は、最頻度値が単色判定閾値hindo_th以上であるか否かを判定する、単色/多色判定処理を実行する(S3、単色/多色判定ステップ)。なお、単色判定閾値hindo_thは第2閾値の一例である。CPU51は、最頻度値が単色判定閾値hindo_th以上であった場合(S3でYES)、判定を実行したブロックの属性を単色ブロックとして設定し(S4)、最頻度値が単色判定閾値hindo_th未満であった場合(S3でNO)、判定を実行したブロックの属性を多色ブロックとして設定する(S5)。CPU51は、設定したブロックの属性をRAM53に保存する。 Next, the CPU 51 executes frequency acquisition processing for each block and acquires the mode value (S2). The frequency acquisition process will be described later. The CPU 51 executes single-color/multi-color determination processing for determining whether or not the mode value is equal to or greater than the single-color determination threshold hindo_th (S3, single-color/multi-color determination step). Note that the monochrome determination threshold hindo_th is an example of a second threshold. If the mode value is greater than or equal to the single-color determination threshold value hindo_th (YES in S3), the CPU 51 sets the attribute of the block for which the determination was performed as a single-color block (S4), and determines that the mode value is less than the single-color determination threshold value hindo_th. If so (NO in S3), the attribute of the block for which the determination has been executed is set as a multicolor block (S5). The CPU 51 stores the set attribute of the block in the RAM 53 .

なお、後述する頻度取得処理において第1頻度および第2頻度のみ取得し、最頻度値は取得していなかった場合には、CPU51は、第1頻度および第2頻度のそれぞれについて単色判定閾値hindo_th以上であるか否かを判定してもよい。この場合、CPU51は、第1頻度および第2頻度の少なくとも一方が単色判定閾値hindo_th以上であれば、判定を実行したブロックの属性を単色ブロックとして設定する。 If only the first frequency and the second frequency are acquired in the frequency acquisition process to be described later, and the mode frequency value is not acquired, the CPU 51 determines that each of the first frequency and the second frequency is greater than or equal to the single-color determination threshold hindo_th. It may be determined whether or not In this case, if at least one of the first frequency and the second frequency is greater than or equal to the single-color determination threshold hindo_th, the CPU 51 sets the attribute of the block for which the determination was performed as a single-color block.

次にCPU51は、判定対象頁に含まれる全てのブロックについてS3の判定、すなわち単色ブロックであるか多色ブロックであるかの判定を実行したか否かを判定する(S6)。全てのブロックについてS3の判定が終了していなかった場合(S6でNO)、CPU51は全てのブロックの判定が終了するまでS2~S5までの処理を実行する。一方、全てのブロックについてS3の判定が終了していた場合(S6でYES)、CPU51は、属性が単色ブロックに設定されているブロックの数をカウントする(S7)。 Next, the CPU 51 determines whether or not the determination of S3, that is, whether the block is a single-color block or a multi-color block, has been performed for all blocks included in the determination target page (S6). If the determination of S3 has not been completed for all blocks (NO in S6), the CPU 51 executes the processes from S2 to S5 until the determination of all blocks is completed. On the other hand, if the determination in S3 has been completed for all blocks (YES in S6), the CPU 51 counts the number of blocks whose attribute is set to monochromatic block (S7).

そしてCPU51は、判定対象頁に含まれる全ブロックのうちの、単色ブロックの割合が単色ブロック閾値plane_blk_weight以上であるか否かを判定する(S8)。CPU51は、判定対象頁に含まれる単色ブロックの割合が単色ブロック閾値plane_blk_weight以上であった場合(S8でYES)、判定対象頁の属性を単色頁として設定し(S9)、判定対象頁に含まれる単色ブロックの割合が単色ブロック閾値plane_blk_weight未満であった場合(S8でNO)、判定対象頁の属性を多色頁として設定する(S10)。 Then, the CPU 51 determines whether or not the ratio of single-color blocks to all blocks included in the determination target page is equal to or greater than the single-color block threshold value plane_blk_weight (S8). When the proportion of monochrome blocks included in the determination target page is equal to or greater than the monochrome block threshold value plane_blk_weight (YES in S8), the CPU 51 sets the attribute of the determination target page as a monochrome page (S9), and the page is included in the determination target page. If the ratio of single-color blocks is less than the single-color block threshold value plane_blk_weight (NO in S8), the attribute of the determination target page is set as a multicolor page (S10).

次に、CPU51は画像出力判断処理を実行し(S11)、単色頁除去処理を終了する。 Next, the CPU 51 executes image output determination processing (S11), and terminates the monochrome page removal processing.

以上のように、CPU51は、判定対象頁全体について、第1頻度および第2頻度の何れか一方が単色判定閾値hindo_th以上であれば、判定対象頁は単色であり、第1頻度および第2頻度がともに単色判定閾値hindo_th未満であれば、判定対象頁は多色であると判定する処理を実行する。 As described above, if either one of the first frequency and the second frequency is greater than or equal to the single-color determination threshold hindo_th for the entire determination target page, the CPU 51 determines that the determination target page is monochrome, and the first frequency and the second frequency are less than the single-color determination threshold value hindo_th, a process for determining that the page to be determined is multi-color is executed.

なお、単色ブロック閾値plane_blk_weightの値は、判定対象頁に誤差程度の多色ブロックが含まれることを許容し、かつ判定対象頁に含まれる多色ブロックの割合が誤差範囲内に収まるような値であることが好ましい。このような値として、例えば99%および98%等が挙げられるが、これに限られるものではない。 Note that the monochrome block threshold value plane_blk_weight is a value that allows the page to be judged to include multi-colored blocks with a margin of error, and that the ratio of multi-colored blocks included in the page to be judged is within the error range. Preferably. Examples of such values include, but are not limited to, 99% and 98%.

なおCPU51は、多階調画像に複数の頁が含まれていた場合には、全ての頁に対して上述の単色頁除去処理を実行する。 Note that when the multi-tone image includes a plurality of pages, the CPU 51 executes the above-described single-color page removal processing for all pages.

(頻度取得処理)
図2に示される単色頁除去処理のS1で実行される頻度取得処理について、図4および図5を参照して以下に説明する。
(Frequency acquisition process)
The frequency acquisition process executed in S1 of the monochrome page removal process shown in FIG. 2 will be described below with reference to FIGS. 4 and 5. FIG.

CPU51は、ブロック中の各画素が有する輝度値のヒストグラムを生成する(S21)。ここでは、多階調画像に含まれる輝度値の階調が6ビット(0~63)である場合を例として説明する。なお、多階調画像に含まれる輝度値の階調が6ビットよりも大きい場合、CPU51は、輝度値の階調を6ビットに変換してもよい。輝度値のヒストグラムは、図5に示すように、横軸を輝度値kとし、縦軸は、輝度値kを有する画素の頻度を表す頻度値h(k)として表される。CPU51は、生成した輝度値のヒストグラムをRAM53に保存する。 The CPU 51 generates a histogram of luminance values of each pixel in the block (S21). Here, a case where the gradation of the luminance value included in the multi-gradation image is 6 bits (0 to 63) will be described as an example. Note that if the gradation of the luminance value included in the multi-gradation image is greater than 6 bits, the CPU 51 may convert the gradation of the luminance value to 6 bits. As shown in FIG. 5, the luminance value histogram is expressed with the luminance value k on the horizontal axis and the frequency value h(k) representing the frequency of pixels having the luminance value k on the vertical axis. The CPU 51 stores the generated luminance value histogram in the RAM 53 .

次に、CPU51は、ブロック中の全画素を走査したか否かを判定する(S22)。CPU51がS21においてブロック中の全画素を走査しておらず、輝度値がヒストグラムに反映されていない画素があると判定した場合(S22でNO)、CPU51は、ブロック中の全画素の走査が完了するまで、S21の処理を繰り返す。一方、全画素が走査され、全画素の輝度値がヒストグラムに反映されたと判定した場合(S22でYES)、CPU51は、MFP1が「出力設定:BW」に設定されているか否か、すなわち最終出力がBW(白黒)であるか否かを判定する(S23)。 Next, the CPU 51 determines whether or not all pixels in the block have been scanned (S22). If the CPU 51 determines in S21 that all the pixels in the block have not been scanned and there is a pixel whose brightness value is not reflected in the histogram (NO in S22), the CPU 51 completes the scanning of all the pixels in the block. The process of S21 is repeated until it does. On the other hand, when it is determined that all pixels have been scanned and the luminance values of all pixels have been reflected in the histogram (YES in S22), the CPU 51 determines whether the MFP 1 is set to "output setting: BW", that is, determines whether the final output is BW (black and white) (S23).

MFP1が「出力設定:BW」に設定されていなかった場合(S23でNO)、すなわち、出力設定がグレーまたはカラーに設定されていた場合には、CPU51は、ヒストグラムにおいて最も頻度値h(k)が高い輝度値kの値である最頻値k_maxを、「最頻度値」として取得する。一方、MFP1が「出力設定:BW」に設定されていた場合(S23でYES)、CPU51は、ヒストグラムにおいて二値化閾値bw_th以上である輝度値kに対応する頻度値h(k)の総和を算出し、得られた値を「第1頻度」として取得する(S25、頻度取得ステップ)。またCPU51は、ヒストグラムにおいて二値化閾値bw_th未満である輝度値kに対応する頻度値h(k)の総和を算出し、得られた値を「第2頻度」として取得する(S26、頻度取得ステップ)。 If the MFP 1 is not set to "output setting: BW" (NO in S23), that is, if the output setting is set to gray or color, the CPU 51 determines the most frequent value h(k) in the histogram. A mode value k_max, which is the value of the luminance value k with a high value, is acquired as a "mode value". On the other hand, when the MFP 1 is set to "output setting: BW" (YES in S23), the CPU 51 calculates the sum of the frequency values h(k) corresponding to the luminance values k equal to or greater than the binarization threshold bw_th in the histogram. The calculated value is obtained as the "first frequency" (S25, frequency obtaining step). The CPU 51 also calculates the sum of the frequency values h(k) corresponding to the luminance values k that are less than the binarization threshold bw_th in the histogram, and acquires the obtained value as the "second frequency" (S26, frequency acquisition step).

なお、二値化閾値bw_thは第1閾値の一例であり、二値画像への画像変換において用いられる輝度値の閾値である。当該画像変換において、CPU51は、輝度値が二値化閾値bw_th以上である画素を白に変換し、二値化閾値bw_th未満である画素を黒に変換する。これにより、黒または白の画素のみを有する二値画像が得られる。図5では二値化閾値bw_thを64階調の輝度値kのうちの下から51番目の輝度値k(k=50)としているが、二値化閾値bw_thはこれに限られるものではない。 Note that the binarization threshold bw_th is an example of a first threshold, and is a luminance value threshold used in image conversion to a binary image. In the image conversion, the CPU 51 converts pixels whose luminance values are equal to or greater than the binarization threshold bw_th to white, and converts pixels whose luminance values are less than the binarization threshold bw_th to black. This results in a binary image with only black or white pixels. In FIG. 5, the binarization threshold bw_th is set to the 51st luminance value k (k=50) from among the luminance values k of 64 gradations, but the binarization threshold bw_th is not limited to this.

CPU51は、得られた第1頻度および第2頻度のうち、値の大きい方を「最頻度値」として取得し(S27)、当該最頻度値をRAM53に保存して頻度取得処理を終了する。このように最頻度値を取得する構成によれば、CPU51は、単色頁除去処理において第1頻度および第2頻度の両方を後述の単色判定閾値hindo_thと比較する必要がない。そのため、CPU51は、最頻度値と単色判定閾値hindo_thとを一度比較するだけで、原稿が単色か多色かを判定できる。したがって、CPU51の処理について、負荷の低減および高速化が期待できる。なおCPU51は、最頻度値を取得せずに、第1頻度および第2頻度のそれぞれをRAM53に保存してもよい。 The CPU 51 acquires the larger one of the obtained first frequency and second frequency as the "modal frequency value" (S27), saves the modal frequency value in the RAM 53, and ends the frequency obtaining process. According to the configuration for acquiring the mode value in this way, the CPU 51 does not need to compare both the first frequency and the second frequency with the below-described single-color determination threshold hindo_th in the single-color page removal process. Therefore, the CPU 51 can determine whether the document is monochrome or multicolor by simply comparing the mode value and the monochrome determination threshold value hindo_th once. Therefore, it can be expected that the processing of the CPU 51 will be reduced in load and speeded up. Note that the CPU 51 may store each of the first frequency and the second frequency in the RAM 53 without acquiring the mode value.

以上の通り、頻度取得処理においてCPU51は、多階調画像に含まれる1頁を判定対象頁とし、当該判定対象頁全体について、二値化閾値bw_th以上である輝度値を有する画素の頻度の総和である第1頻度と、二値化閾値bw_th未満である輝度値を有する画素の頻度の総和である第2頻度と、を取得する。 As described above, in the frequency acquisition process, the CPU 51 sets one page included in the multi-tone image as a determination target page, and sums up the frequency of pixels having luminance values equal to or higher than the binarization threshold bw_th for the entire determination target page. and a second frequency that is the sum of frequencies of pixels having luminance values less than the binarization threshold bw_th.

なお、二値化閾値bw_th、単色判定閾値hindo_thおよび単色ブロック閾値plane_blk_weightの値は、MFP1の工場出荷時に所定の値が設定されていてもよく、ユーザが操作パネル30によって任意の値として設定してもよい。二値化閾値bw_thと、単色判定閾値hindo_thと、単色ブロック閾値plane_blk_weightとは、初期設定値としてROM52に保存されていてもよく、ユーザ設定値としてNVRAM54に保存されていてもよい。 The values of the binarization threshold bw_th, the single-color determination threshold hindo_th, and the single-color block threshold plane_blk_weight may be set to predetermined values when the MFP 1 is shipped from the factory, or may be set as arbitrary values by the user through the operation panel 30. good too. The binarization threshold bw_th, the single-color determination threshold hindo_th, and the single-color block threshold plane_blk_weight may be stored in the ROM 52 as initial setting values, or may be stored in the NVRAM 54 as user setting values.

(画像出力判断処理)
次に、図2に示される単色頁除去処理のS11で実行される画像出力判断処理について、図6を参照して以下に説明する。まずCPU51は、RAM53に保存されている判定対象頁の属性を参照する(S31)。
(Image output determination processing)
Next, the image output determination process executed in S11 of the monochrome page removal process shown in FIG. 2 will be described below with reference to FIG. First, the CPU 51 refers to the attribute of the determination target page stored in the RAM 53 (S31).

次に、CPU51は、判定対象頁の属性が単色頁に設定されているか否かを判定する(S32、画像出力判断ステップ)。判定対象頁の属性が単色頁に設定されていなかった場合(S32でNO)、CPU51は、当該頁に係る多階調画像を二値化閾値と輝度値との比較に基づく二値画像への画像変換を行い(S33)、生成した二値画像を画像形成部10に出力し(S34)、画像出力判断処理を終了する。画像形成部10は、入力された二値画像をプリント用紙などに出力したり、ネットワークインターフェース40を介して外部のPCなどに出力したりする。 Next, the CPU 51 determines whether or not the attribute of the determination target page is set to monochrome page (S32, image output determination step). If the attribute of the determination target page is not set to monochrome page (NO in S32), the CPU 51 converts the multi-tone image of the page into a binary image based on the comparison between the binarization threshold value and the luminance value. Image conversion is performed (S33), the generated binary image is output to the image forming section 10 (S34), and the image output determination process ends. The image forming unit 10 outputs the input binary image to a print sheet or the like, or outputs it to an external PC or the like via the network interface 40 .

一方、判定対象頁の属性が単色頁に設定されていた場合(S32でYES)、CPU51は、当該頁に係る前記多階調画像に対応する画像を出力せずに、画像出力判断処理を終了する。この場合、CPU51は、単色頁に設定されていた判定対象頁について、二値画像への画像変換を行ってもよいし、行わなくてもよい。 On the other hand, if the attribute of the determination target page is set to monochrome page (YES in S32), the CPU 51 ends the image output determination process without outputting the image corresponding to the multi-tone image related to the page. do. In this case, the CPU 51 may or may not perform image conversion to a binary image for the page to be determined that has been set as a monochrome page.

ここで、二値画像への画像変換を行う場合、CPU51は、単色/多色判定処理の結果によらず多階調画像に含まれる全ての頁を二値画像に画像変換する。これによれば、CPU51は、多階調画像をRAM53に一時保存する場合に、低容量の二値画像をRAM53に保存できるため、必要なRAM53の容量を節約できる。また、二値画像への画像変換を行わない場合、CPU51は必要な場合のみ二値画像への画像変換を実行できる。したがって、CPU51の処理について、負荷の低減および処理の高速化が期待できる。 Here, when image conversion to a binary image is performed, the CPU 51 image-converts all pages included in the multi-tone image to a binary image regardless of the result of the single-color/multi-color determination process. According to this, the CPU 51 can store a low-capacity binary image in the RAM 53 when temporarily storing the multi-tone image in the RAM 53, so that the necessary capacity of the RAM 53 can be saved. Further, when image conversion to a binary image is not performed, the CPU 51 can execute image conversion to a binary image only when necessary. Therefore, it can be expected that the load on the CPU 51 will be reduced and the processing speed will be increased.

<白紙除去機能における処理>
上述したように、MFP1が備える単色画像除去機能には、白紙除去機能が含まれる。以下、白紙除去機能を実現するために、制御部50のCPU51が実行する白紙頁除去処理について説明する。なお、白紙頁除去処理は単色頁除去処理の一例である。また、白紙頁除去処理に含まれる頻度取得処理については単色頁除去処理の場合と同様のため、ここでは説明を省略する。
<Processing in blank page removal function>
As described above, the single-color image removing function of the MFP 1 includes the blank page removing function. Blank page removal processing executed by the CPU 51 of the control unit 50 to realize the blank page removal function will be described below. Note that the blank page removal process is an example of the monochrome page removal process. Further, since the frequency acquisition process included in the blank page removal process is the same as in the case of the single-color page removal process, description thereof will be omitted here.

(白紙頁除去処理)
白紙頁除去処理について、図7を参照して以下に説明する。CPU51は、画像読取部20により読み取られた多階調画像に含まれる1頁を判定対象頁とする。図3に示すように、CPU51は、判定対象頁を格子状に複数のブロックに分割する(S41)。各ブロックの大きさは上述の通りである。
(Blank page removal processing)
The blank page removal process will be described below with reference to FIG. The CPU 51 sets one page included in the multi-tone image read by the image reading section 20 as a determination target page. As shown in FIG. 3, the CPU 51 divides the determination target page into a plurality of blocks in a grid pattern (S41). The size of each block is as described above.

次に、CPU51は、ブロックごとに上述の頻度取得処理を実行し、最頻度値の値を取得する(S42)。CPU51は、最頻度値が単色判定閾値hindo_th以上であるか否かを判定する、単色/多色判定処理を実行する(S43、単色/多色判定ステップ)。最頻度値が単色判定閾値hindo_th以上であった場合(S43でYES)、CPU51は、最頻度値に対応する輝度値が白紙輝度閾値white_th以上であるか否かを判定する(S44)。 Next, the CPU 51 executes the above-described frequency acquisition process for each block and acquires the mode value (S42). The CPU 51 executes single-color/multi-color determination processing for determining whether or not the mode value is equal to or greater than the single-color determination threshold hindo_th (S43, single-color/multi-color determination step). If the mode frequency value is greater than or equal to the single-color determination threshold hindo_th (YES in S43), the CPU 51 determines whether or not the brightness value corresponding to the mode frequency value is greater than or equal to the white page brightness threshold white_th (S44).

ここで、MFP1が「出力設定:BW」に設定されていた場合の「最頻度値に対応する輝度値」とは、最頻度値に含まれる輝度値kの中で、頻度値h(k)が最も大きかった輝度値kを示す。例えば、図4に示す頻度取得処理のS27において、CPU51が第1頻度を最頻度値として取得した場合、CPU51は、二値化閾値bw_th以上であった輝度値kの中で、頻度値h(k)が最も大きかった輝度値kを、S44において「最頻度値に対応する輝度値」として用いる。 Here, the "luminance value corresponding to the mode frequency value" when the MFP 1 is set to "output setting: BW" means the frequency value h(k) among the luminance values k included in the mode frequency value. indicates the largest luminance value k. For example, in S27 of the frequency acquisition process shown in FIG. 4, when the CPU 51 acquires the first frequency as the mode frequency value, the CPU 51 selects the frequency value h ( The luminance value k for which k) is the largest is used as the "luminance value corresponding to the most frequent value" in S44.

CPU51は、最頻度値に対応する輝度値が白紙判定閾値white_th以上であった場合(S44でYES)、判定を実行したブロックの属性を白紙ブロックとして設定し(S45)、最頻度値が単色判定閾値hindo_th未満であった場合(S44でNO)、または最頻度値に対応する輝度値が白紙判定閾値white_th未満であった場合(S45でNO)、判定を実行したブロックの属性をカラーブロックとして設定する(S46)。CPU51は、設定したブロックの属性をRAM53に保存する。 When the brightness value corresponding to the mode frequency value is equal to or greater than the blank page determination threshold value white_th (YES in S44), the CPU 51 sets the attribute of the block for which the determination was performed as a blank page block (S45), and the mode frequency value is monochrome determination. If it is less than the threshold hindo_th (NO in S44), or if the brightness value corresponding to the mode frequency value is less than the white page determination threshold white_th (NO in S45), set the attribute of the block for which the determination was performed as a color block. (S46). The CPU 51 stores the set attribute of the block in the RAM 53 .

次に、CPU51は、判定対象頁に含まれる全てのブロックについてS43および/またはS44の判定、すなわち白紙ブロックであるかカラーブロックであるかの判定を実行したか否かを判定する(S47)。全てのブロックについてS43および/またはS44の判定が終了していなかった場合(S47でNO)、CPU51は全てのブロックの判定が終了するまでS42~S46までの処理を実行する。一方、全てのブロックについてS43および/またはS44の判定が終了していた場合(S47でYES)、CPU51は、属性が白紙ブロックに設定されているブロックの数をカウントする(S48)。 Next, the CPU 51 determines whether or not the determination of S43 and/or S44, that is, whether the block is a blank block or a color block, has been performed for all blocks included in the determination target page (S47). If the determination of S43 and/or S44 has not been completed for all blocks (NO in S47), the CPU 51 executes the processes of S42 to S46 until the determination of all blocks is completed. On the other hand, if the determination in S43 and/or S44 has been completed for all blocks (YES in S47), the CPU 51 counts the number of blocks whose attribute is set to blank block (S48).

そしてCPU51は、判定対象頁に含まれる全ブロックのうちの、白紙ブロックの割合が単色ブロック閾値plane_blk_weight以上であるか否かを判定する(S49)。CPU51は、判定対象頁に含まれる白紙ブロックの割合が単色ブロック閾値plane_blk_weight以上であった場合(S49でYES)、判定対象頁の属性を白紙頁として設定し(S50)、判定対象頁に含まれる白紙ブロックの割合が単色ブロック閾値plane_blk_weight未満であった場合(S49でNO)、判定対象頁の属性をカラー頁として設定する(S51)。 Then, the CPU 51 determines whether or not the ratio of blank blocks to all blocks included in the determination target page is equal to or greater than the monochrome block threshold value plane_blk_weight (S49). If the percentage of blank blocks included in the page to be determined is equal to or greater than the monochrome block threshold value plane_blk_weight (YES in S49), the CPU 51 sets the attribute of the page to be determined as a blank page (S50). If the ratio of blank blocks is less than the monochrome block threshold plane_blk_weight (NO in S49), the attribute of the page to be determined is set as a color page (S51).

次に、CPU51は後述する画像出力判断処理を実行し(S52)、白紙頁除去処理を終了する。 Next, the CPU 51 executes image output determination processing, which will be described later (S52), and ends the blank page removal processing.

(画像出力判断処理)
白紙頁除去処理における画像出力判断処理については、単色頁除去処理における画像出力判断処理と同様であるが、図6のS32では判断対象頁の属性が単色頁に設定されているか否かを判定するのではなく、白紙頁に設定されているか否かを判定する点においてのみ異なる。その他の処理は単色頁除去処理における画像出力判断処理と同様であるため、ここでは説明を省略する。
(Image output determination processing)
The image output determination process in the blank page removal process is the same as the image output determination process in the monochrome page removal process, but in S32 of FIG. 6, it is determined whether the attribute of the page to be determined is set to monochrome page. The only difference is that it is determined whether or not the page is set to a blank page. Other processes are the same as the image output determination process in the single-color page removal process, so the description is omitted here.

以上のように、白紙頁除去処理においては、判断対象頁が二値画像への画像変換により単色の二値画像となり、かつ該画像変換前の判断対象頁は白紙であると判定された場合のみ、CPU51は二値画像への画像変換要と判断する。すなわち、判断対象頁が白紙以外であった場合、CPU51は該判断対象頁を二値画像に変換し、該二値画像が単色となる場合でも画像形成部10により単色の二値画像を出力する。したがってユーザは、MFP1から単色の二値画像が出力された場合には、原稿は白紙以外の頁であったことを認識できる。この場合、ユーザは例えば、二値画像への画像変換に問題があったと判断し、適切な画像がMFP1から出力されるようにMFP1の出力設定を変更することができる。
<変形例>
以上、本発明の一実施形態について説明したが、本発明は、さらに他の形態で実施することもできる。
As described above, in the blank page removal process, only when the page to be judged becomes a monochrome binary image by image conversion into a binary image and the page to be judged before the image conversion is judged to be blank , the CPU 51 determines that image conversion to a binary image is necessary. That is, if the page to be judged is not blank, the CPU 51 converts the page to be judged into a binary image, and even if the binary image is monochromatic, the image forming section 10 outputs a monochromatic binary image. . Therefore, when a monochrome binary image is output from the MFP 1, the user can recognize that the document is a page other than a blank page. In this case, the user can determine, for example, that there is a problem with image conversion into a binary image, and change the output settings of MFP 1 so that an appropriate image is output from MFP 1 .
<Modification>
Although one embodiment of the present invention has been described above, the present invention can also be implemented in other forms.

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

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

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

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

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, but can be modified in various ways within the scope of the claims, and can be obtained by appropriately combining technical means disclosed in different embodiments. is also included in the technical scope of the present invention.

1 MFP(画像処理装置、画像形成装置)
10 画像形成部(プロセス部)
20 画像読取部(取得部)
50 制御部
1 MFP (image processing device, image forming device)
10 image forming unit (process unit)
20 image reading unit (acquisition unit)
50 control unit

Claims (5)

原稿を読み取って多階調画像を取得する取得部と、
制御部と、を備え、
前記制御部は、
前記多階調画像に含まれる1頁を判定対象頁とし、当該判定対象頁について、第1閾値以上である輝度値を有する画素の頻度の総和である第1頻度と、前記第1閾値未満である前記輝度値を有する画素の頻度の総和である第2頻度と、を取得する頻度取得処理と、
前記第1頻度および前記第2頻度の少なくとも一方が第2閾値以上であれば、前記判定対象頁は単色であり、前記第1頻度および前記第2頻度がともに第2閾値未満であれば、前記判定対象頁は多色であると判定する、単色/多色判定処理と、
前記単色/多色判定処理にて多色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像を前記第1閾値と前記輝度値との比較に基づく二値画像への画像変換を行って当該二値画像を出力し、
前記単色/多色判定処理にて単色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像に対応する画像を出力しない画像出力判断処理と、を実行することを特徴とする画像処理装置。
an acquisition unit that reads a document and acquires a multi-tone image;
a control unit;
The control unit
One page included in the multi-tone image is defined as a determination target page, and for the determination target page, a first frequency that is the sum of frequencies of pixels having a luminance value equal to or greater than a first threshold, and a frequency acquisition process for acquiring a second frequency that is the sum of frequencies of pixels having a certain luminance value;
If at least one of the first frequency and the second frequency is equal to or greater than the second threshold, the page to be determined is monochrome, and if both the first frequency and the second frequency are less than the second threshold, the a single-color/multi-color determination process for determining that the page to be determined is multi-colored;
For the determination target page determined to be multicolor in the single-color/multicolor determination process, the multi-tone image related to the page is a binary image based on the comparison between the first threshold value and the luminance value. Output the binary image by converting the image to
an image output determination process of not outputting an image corresponding to the multi-tone image of the page determined to be monochrome in the monochrome/multicolor determination process; An image processing device characterized by:
前記頻度取得処理にて、前記第1頻度および前記第2頻度のうち、値が大きい一方を最頻度値として取得し、
前記単色/多色判定処理にて、前記最頻度値が前記第2閾値以上であれば、前記判定対象頁は単色であると判定し、前記最頻度値が前記第2閾値未満であれば、前記判定対象頁は多色であると判定することを特徴とする、請求項1に記載の画像処理装置。
In the frequency acquisition process, one of the first frequency and the second frequency, which has a larger value, is acquired as a mode frequency value;
In the monochrome/multicolor determination process, if the mode frequency value is equal to or greater than the second threshold value, the page to be determined is determined to be monochrome, and if the mode frequency value is less than the second threshold value, 2. The image processing apparatus according to claim 1, wherein the determination target page is determined to be multicolor.
請求項1または2に記載の画像処理装置に備えられた前記制御部における各処理をコンピュータに実行させ、当該コンピュータを前記制御部として機能させることを特徴とするプログラム。 3. A program that causes a computer to execute each process in the control unit provided in the image processing apparatus according to claim 1 or 2, and causes the computer to function as the control unit. 請求項1または2に記載の画像処理装置と、
前記画像出力判断処理にて、前記二値画像への画像変換が必要と判断された多色頁について前記画像変換が行われた後の二値画像に基づいて現像剤像を被記録媒体上に形成するプロセス部と、を備えていることを特徴とする画像形成装置。
An image processing device according to claim 1 or 2;
In the image output determination process, a developer image is formed on a recording medium based on the binary image after the image conversion is performed for the multicolor page determined to require the image conversion to the binary image. and a process unit for forming an image.
原稿を読み取って多階調画像を取得する取得部を備える画像処理装置の制御方法であって、
前記多階調画像に含まれる1頁を判定対象頁とし、当該判定対象頁について、第1閾値以上である輝度値を有する画素の頻度の総和である第1頻度と、前記第1閾値未満である前記輝度値を有する画素の頻度の総和である第2頻度と、を取得する頻度取得ステップと、
前記第1頻度および前記第2頻度の少なくとも一方が第2閾値以上であれば、前記判定対象頁は単色であり、前記第1頻度および前記第2頻度がともに第2閾値未満であれば、前記判定対象頁は多色であると判定する、単色/多色判定ステップと、
前記単色/多色判定ステップにて多色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像を前記第1閾値と前記輝度値との比較に基づく二値画像への画像変換を行って当該二値画像を出力し、
前記単色/多色判定ステップにて単色であると判定された前記判定対象頁については、当該頁に係る前記多階調画像に対応する画像を出力しない画像出力判断ステップと、を含むことを特徴とする制御方法。
A control method for an image processing apparatus including an acquisition unit that acquires a multi-tone image by reading a document,
One page included in the multi-tone image is defined as a determination target page, and for the determination target page, a first frequency that is the sum of frequencies of pixels having a luminance value equal to or greater than a first threshold, and a frequency obtaining step of obtaining a second frequency that is the sum of frequencies of pixels having a certain luminance value;
If at least one of the first frequency and the second frequency is equal to or greater than the second threshold, the page to be determined is monochrome, and if both the first frequency and the second frequency are less than the second threshold, the a single color/multicolor determination step for determining that the page to be determined is multicolor;
For the determination target page determined to be multicolor in the single-color/multicolor determination step, the multi-tone image related to the page is a binary image based on the comparison between the first threshold value and the luminance value. Output the binary image by converting the image to
and an image output determination step of not outputting an image corresponding to the multi-tone image of the determination target page determined to be monochrome in the monochrome/multicolor determination step. control method.
JP2019064895A 2019-03-28 2019-03-28 IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD Active JP7211209B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019064895A JP7211209B2 (en) 2019-03-28 2019-03-28 IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019064895A JP7211209B2 (en) 2019-03-28 2019-03-28 IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD

Publications (2)

Publication Number Publication Date
JP2020167483A JP2020167483A (en) 2020-10-08
JP7211209B2 true JP7211209B2 (en) 2023-01-24

Family

ID=72715322

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019064895A Active JP7211209B2 (en) 2019-03-28 2019-03-28 IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD

Country Status (1)

Country Link
JP (1) JP7211209B2 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074536A (en) 2011-09-28 2013-04-22 Brother Ind Ltd Image processing device, image reading device and image processing program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013074536A (en) 2011-09-28 2013-04-22 Brother Ind Ltd Image processing device, image reading device and image processing program

Also Published As

Publication number Publication date
JP2020167483A (en) 2020-10-08

Similar Documents

Publication Publication Date Title
US10706340B2 (en) Image processing apparatus and method for controlling the same with character attribute indicating that pixel is pixel of a character
JP5953946B2 (en) Image processing apparatus and computer program
JP5060502B2 (en) Image processing apparatus and image processing apparatus control method
US10841457B2 (en) Image forming apparatus with density correction and edge smoothing, method, and storage medium storing program to perform the method
CN106303150B (en) Image processing apparatus, control method for image processing apparatus, and storage medium
JP6403490B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program.
US11272074B2 (en) System, method, and storage medium for converting low-resolution image data into high-resolution image data using neural network
JP2007013551A (en) Image processing apparatus and image processing method
EP3058548A1 (en) Image processing apparatus, image processing system, image processing method, and recording medium
US11070704B2 (en) Image processing apparatus, control method for controlling image processing apparatus, and storage medium for removing a color from image data based on specified color
JP7211209B2 (en) IMAGE PROCESSING APPARATUS, PROGRAM, IMAGE FORMING APPARATUS, AND CONTROL METHOD
JP7077451B2 (en) Image forming apparatus and control method of image forming apparatus, and program
JP6736299B2 (en) Printing device, printing method, and program
JP2010062610A (en) Image processor and image processing method
JP2013074314A (en) Image processing method, image reader, and image processing program
JP5453215B2 (en) Image processing apparatus, image forming apparatus, and image processing method
JP2010074627A (en) Image processor and method of processing image
JP2020174226A (en) Image processing apparatus, image processing method, and program
JP6427960B2 (en) Image processing device
JP7077925B2 (en) Image processing equipment, image processing methods, and programs
US20230224421A1 (en) Image processing apparatus, image processing method, and storage medium
JP5361830B2 (en) Image processing device
JP2006287603A (en) Mesh point region discrimination apparatus and mesh point region discrimination program
JP6781398B2 (en) Image processing equipment and computer programs
JP6707903B2 (en) Output device and computer program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220311

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221108

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221115

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221129

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20221226

R150 Certificate of patent or registration of utility model

Ref document number: 7211209

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

RD07 Notification of extinguishment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7427

Effective date: 20230414