Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7531374B2 - Image processing device, control method and program - Google Patents
[go: Go Back, main page]

JP7531374B2 - Image processing device, control method and program - Google Patents

Image processing device, control method and program Download PDF

Info

Publication number
JP7531374B2
JP7531374B2 JP2020197478A JP2020197478A JP7531374B2 JP 7531374 B2 JP7531374 B2 JP 7531374B2 JP 2020197478 A JP2020197478 A JP 2020197478A JP 2020197478 A JP2020197478 A JP 2020197478A JP 7531374 B2 JP7531374 B2 JP 7531374B2
Authority
JP
Japan
Prior art keywords
image data
image
background
control unit
background removal
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
JP2020197478A
Other languages
Japanese (ja)
Other versions
JP2022085677A (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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2020197478A priority Critical patent/JP7531374B2/en
Publication of JP2022085677A publication Critical patent/JP2022085677A/en
Application granted granted Critical
Publication of JP7531374B2 publication Critical patent/JP7531374B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Input (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本開示は、画像処理装置等に関する。 This disclosure relates to an image processing device, etc.

画像形成装置において、入力された原稿に下地がある場合において、適切な出力を得るための技術が提案されている。 A technology has been proposed for image forming devices to obtain appropriate output when the input document has a background.

例えば、原稿の画像データを、原稿の下地のオブジェクトを含む複数のオブジェクトに分離するとともに画像データに現れる筋画像を検知し、筋画像の画素が下地オブジェクトに存在し、かつ、筋画像の画素の画素値が下地の代表値に基づいて定められた閾値以下のときに、当該画素を下地オブジェクトとみなす処理を行う技術が提案されている(例えば、特許文献1参照)。 For example, a technology has been proposed that separates image data of a document into multiple objects including a background object of the document, detects line images that appear in the image data, and treats a pixel of the line image as a background object when the pixel exists in the background object and the pixel value of the pixel of the line image is equal to or less than a threshold value determined based on a representative value of the background (see, for example, Patent Document 1).

また、下地画素であると判定された画素を除去することにより、下地画素ではない画像データの画素値を保持する技術が提案されている(例えば、特許文献2参照)。 In addition, a technique has been proposed that removes pixels determined to be background pixels, thereby preserving the pixel values of image data that are not background pixels (see, for example, Patent Document 2).

特開2017-175270号公報JP 2017-175270 A 特開2016-066872号公報JP 2016-066872 A

しかし、下地の上に下地の濃度と近い濃度によって現された薄い文字や薄い図形が含まれる場合、薄い文字や薄い図形が含まれる領域は下地の領域と判定されやすく、下地を除去することにより、薄い文字や薄い図形の情報が消えてしまうという課題があった。 However, when faint characters or figures that are expressed with a density close to that of the background are included on top of the background, the area containing the faint characters or figures is likely to be determined to be a background area, and there was a problem in that removing the background would erase the information of the faint characters or figures.

上述した課題に鑑み、本開示は、下地除去処理を行った画像と、下地除去処理を行っていない画像との何れかの画像を適切に出力することが可能な画像処理装置等を提供することを目的とする。 In view of the above-mentioned problems, the present disclosure aims to provide an image processing device and the like that can appropriately output either an image that has undergone background removal processing or an image that has not undergone background removal processing.

上述した課題を解決するための第1の実施態様は、
第1の画像データを取得する取得部と、制御部とを備えた画像処理装置であって、
前記制御部は、
入力された前記第1の画像データに基づいて下地除去のレベルを決定し、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成し、
前記第1の画像データと、前記第2の画像データとの差分を算出し、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、
前記差分が、閾値未満となった場合には前記第2の画像データを出力する
ことを特徴とする画像処理装置である。
The first embodiment for solving the above-mentioned problem is as follows:
An image processing device including an acquisition unit that acquires first image data and a control unit,
The control unit is
determining a level of background removal based on the input first image data;
performing a background removal process on the first image data based on the level of background removal to generate second image data having been subjected to background removal;
Calculating a difference between the first image data and the second image data;
When the difference is equal to or greater than a threshold value, the first image data is output.
When the difference is less than a threshold value, the second image data is output.

上述した課題を解決するための第2の実施態様は、
入力された第1の画像データに基づいて下地除去のレベルを決定するステップと、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成するステップと、
前記第1の画像データと、前記第2の画像データとの差分を算出するステップと、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、前記差分が、閾値未満となった場合には前記第2の画像データを出力するステップと、
を含むことを特徴とする制御方法である。
The second embodiment for solving the above-mentioned problem is as follows:
determining a level of background removal based on the input first image data;
performing a background removal process on the first image data based on the level of background removal to generate second image data that has been background removed;
calculating a difference between the first image data and the second image data;
outputting the first image data when the difference is equal to or greater than a threshold, and outputting the second image data when the difference is less than the threshold;
The control method includes:

上述した課題を解決するための第3の実施態様は、
コンピュータに、
入力された第1の画像データに基づいて下地除去のレベルを決定する機能と、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成する機能と、
前記第1の画像データと、前記第2の画像データとの差分を算出する機能と、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、前記差分が、閾値未満となった場合には前記第2の画像データを出力する機能と、
を実現させることを特徴とするプログラムである。
The third embodiment for solving the above-mentioned problem is as follows:
On the computer,
A function of determining a level of background removal based on the input first image data;
a function of performing background removal processing on the first image data based on the level of background removal to generate second image data from which background has been removed;
A function of calculating a difference between the first image data and the second image data;
a function of outputting the first image data when the difference is equal to or greater than a threshold value, and outputting the second image data when the difference is less than the threshold value;
It is a program characterized by realizing the above.

本開示によれば、下地除去処理を行った画像と、下地除去処理を行っていない画像との何れかの画像を適切に出力することが可能となる。 According to the present disclosure, it is possible to appropriately output either an image that has undergone background removal processing or an image that has not undergone background removal processing.

第1実施形態における画像形成装置の外観斜視図である。1 is an external perspective view of an image forming apparatus according to a first embodiment. 第1実施形態における画像形成装置の機能構成を説明するためのブロック図である。1 is a block diagram for explaining a functional configuration of an image forming apparatus according to a first embodiment. 第1実施形態における下地除去テーブルのデータ構成の一例を示す図である。5 is a diagram showing an example of a data configuration of a background removal table in the first embodiment. FIG. 第1実施形態における処理の流れを説明するためのフロー図である。FIG. 2 is a flow diagram for explaining a process flow in the first embodiment. 第1実施形態におけるヒストグラムの例を示す図である。FIG. 4 is a diagram illustrating an example of a histogram in the first embodiment. 第1実施形態における動作例を説明するための図である。FIG. 4 is a diagram for explaining an operation example in the first embodiment. 第1実施形態における動作例を説明するための図である。FIG. 4 is a diagram for explaining an operation example in the first embodiment. 第2実施形態における処理の流れを説明するためのフロー図である。FIG. 11 is a flow diagram for explaining a process flow in a second embodiment. 第2実施形態における動作例を説明するための図である。FIG. 11 is a diagram for explaining an operation example in the second embodiment. 第3実施形態における処理の流れを説明するためのフロー図である。FIG. 13 is a flowchart illustrating a process flow in a third embodiment. 第3実施形態における動作例を説明するための図である。FIG. 13 is a diagram for explaining an operation example in the third embodiment. 第4実施形態における処理の流れを説明するためのフロー図である。FIG. 13 is a flow diagram for explaining a process flow in a fourth embodiment. 第4実施形態における判定項目を説明するための図である。FIG. 13 is a diagram for explaining determination items in the fourth embodiment. 第4実施形態における原稿の種類を説明するための図である。13A and 13B are diagrams for explaining types of documents in a fourth embodiment. 第5実施形態における画像形成装置の機能構成を説明するためのブロック図である。FIG. 13 is a block diagram for explaining a functional configuration of an image forming apparatus according to a fifth embodiment. 第5実施形態における動作例を説明するための図である。FIG. 13 is a diagram for explaining an operation example in the fifth embodiment.

以下、図面を参照して、本開示を実施するための一実施形態について説明する。なお、以下の実施形態は、本開示を説明するための一例であり、特許請求の範囲に記載した発明の技術的範囲が、以下の記載に限定されるものではない。 One embodiment for carrying out the present disclosure will be described below with reference to the drawings. Note that the following embodiment is an example for explaining the present disclosure, and the technical scope of the invention described in the claims is not limited to the following description.

[1.第1実施形態]
[1.1 機能構成]
本実施形態の画像形成装置10の機能構成について、図1及び図2を参照して説明する。図1は、画像形成装置10の外観斜視図であり、図2は、画像形成装置10の機能的構成を示すブロック図である。
[1. First embodiment]
[1.1 Functional configuration]
The functional configuration of an image forming apparatus 10 according to the present embodiment will be described with reference to Fig. 1 and Fig. 2. Fig. 1 is an external perspective view of the image forming apparatus 10, and Fig. 2 is a block diagram showing the functional configuration of the image forming apparatus 10.

画像形成装置10は、コピー機能、印刷機能、スキャナ機能、メール送信機能等を有するデジタル複合機である。図2に示すように、画像形成装置10は、制御部100と、画像入力部120と、画像形成部130と、表示部140と、操作部150と、記憶部180と、通信部190とを備えて構成される。 The image forming device 10 is a digital multifunction device having a copy function, a print function, a scanner function, an email sending function, etc. As shown in FIG. 2, the image forming device 10 is configured with a control unit 100, an image input unit 120, an image forming unit 130, a display unit 140, an operation unit 150, a storage unit 180, and a communication unit 190.

制御部100は、画像形成装置10の全体を制御する。制御部100は、記憶部180に記憶されている各種プログラムを読み出して実行することにより各種機能を実現しており、1又は複数の演算装置(例えば、CPU(Central Processing Unit))により構成されている。 The control unit 100 controls the entire image forming device 10. The control unit 100 realizes various functions by reading and executing various programs stored in the storage unit 180, and is composed of one or more arithmetic units (e.g., CPUs (Central Processing Units)).

制御部100は、プログラムを実行することにより、領域分離部102、画像処理部104、エッジ検出部106、情報欠落判定部108、出力制御部110として機能する。 By executing the program, the control unit 100 functions as a region separation unit 102, an image processing unit 104, an edge detection unit 106, an information loss determination unit 108, and an output control unit 110.

領域分離部102は、画像データを所定の領域に分離したり、画像データにおける各画素を所定の領域に含まれる画素であると判定したりする。 The region separation unit 102 separates the image data into predetermined regions and determines that each pixel in the image data is a pixel contained in a predetermined region.

例えば、領域分離部102は、RGB(R:赤、G:緑、B:青)のそれぞれの色信号における濃度値信号によって、画像データにおける各画素を、下地領域、写真(印画紙写真)領域、文字領域および網点領域のいずれに属するのかを判定する。なお、本実施形態において、領域分離処理とは、1枚の画像の中で文字領域であるのか印画紙領域(写真領域;連続階調領域)であるのか網点領域であるのか、等を切り分けることを指す。文字領域は、文字および記号を含むキャラクタを表す。下地領域は、原稿の地肌部分(背景)を表す。 For example, the region separation unit 102 determines whether each pixel in the image data belongs to a background region, a photograph (photographic paper photograph) region, a text region, or a halftone region, based on the density value signals in each of the RGB (R: red, G: green, B: blue) color signals. In this embodiment, region separation processing refers to separating an image into a text region, a photographic paper region (photographic region; continuous tone region), a halftone region, etc. A text region represents characters including letters and symbols. A background region represents the bare part (background) of a document.

例えば、領域分離部102は、画像データによって示される画像に含まれる画素の判別を行う。各画素の判別は、画像データを下地候補画素、印画紙画素(写真画素)、文字画素、網点画素の何れかに分離して判別する。以降、下地候補画素、印画紙画素、文字画素、網点画素を領域画素という。下地候補画素とは、領域画素判定の工程において、下地画素である可能性の高い画素として抽出される画素である。 For example, the region separation unit 102 determines the pixels contained in the image represented by the image data. Each pixel is determined by separating the image data into one of background candidate pixels, photographic paper pixels (photo pixels), character pixels, and halftone dot pixels. Hereinafter, background candidate pixels, photographic paper pixels, character pixels, and halftone dot pixels are referred to as region pixels. Background candidate pixels are pixels that are extracted as having a high probability of being background pixels in the region pixel determination process.

領域画素に分離するアルゴリズムは、既存の領域分離方法を用いることができ、たとえば、以下に示すような、特開2002-232708号公報に記載の方法などを用いることができる。
(1)注目画素を含むn×m(たとえば、7画素×15画素)の画素ブロックにおける最小濃度値および、最大濃度値を算出する。
(2)算出された最小濃度値及び最大濃度値を用いて最大濃度差を算出する。
(3)注目画素に隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度(たとえば、主走査方向と副走査方向について算出した値の和)を算出する。
(4)算出された最大濃度差と最大濃度差閾値との比較及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行う。
(5)最大濃度差<最大濃度差閾値および総和濃度繁雑度<総和濃度繁雑度閾値のとき、注目画素は下地・印画紙領域に属すると判定する。
(6)上記条件を満たさないときは、注目画素は文字・網点領域に属すると判定する。
(7)下地・印画紙領域に属すると判定された画素について、注目画素が、最大濃度差<下地・印画紙判定閾値を充たすとき、下地候補画素であると判定し、この条件を充たさないときは、印画紙画素であると判定する。
(8)文字・網点領域に属すると判定された画素について、注目画素が、総和濃度繁雑度<(最大濃度差に文字・網点判定閾値を掛けた値)の条件を充たすとき、文字画素であると判定し、この条件を充たさないときは、網点画素であると判定する。
The algorithm for separating the pixels into regions can use an existing region separation method, such as the method described in Japanese Patent Application Laid-Open No. 2002-232708 below.
(1) The minimum and maximum density values in a pixel block of n×m (for example, 7 pixels×15 pixels) including the pixel of interest are calculated.
(2) The calculated minimum and maximum density values are used to calculate a maximum density difference.
(3) A total density busyness, which is the sum of the absolute values of density differences between pixels adjacent to the pixel of interest (for example, the sum of values calculated in the main scanning direction and the sub-scanning direction), is calculated.
(4) The calculated maximum density difference is compared with a maximum density difference threshold, and the calculated total density busyness is compared with a total density busyness threshold.
(5) When the maximum density difference<the maximum density difference threshold and the total density busyness<the total density busyness threshold, the pixel of interest is determined to belong to the background/photographic paper region.
(6) If the above conditions are not satisfied, the pixel of interest is determined to belong to a character/halftone dot area.
(7) For pixels determined to belong to the background/photographic paper area, if the pixel of interest satisfies the maximum density difference < background/photographic paper determination threshold, it is determined to be a background candidate pixel, and if this condition is not satisfied, it is determined to be a photographic paper pixel.
(8) For pixels determined to belong to a character or halftone dot area, if the pixel of interest satisfies the condition of total density busyness < (maximum density difference multiplied by character/halftone dot determination threshold), it is determined to be a character pixel; if this condition is not satisfied, it is determined to be a halftone dot pixel.

なお、画像データに含まれる下地領域とは、下地候補画素により構成される領域をいう。同様にして、印画紙画素(写真画素)により構成される領域を印画紙領域、文字画素により構成される領域を文字領域、網点画素により構成される領域を網点領域という。 Note that the background region included in image data refers to the region composed of background candidate pixels. Similarly, the region composed of photographic paper pixels (photographic pixels) is called the photographic paper region, the region composed of character pixels is called the character region, and the region composed of halftone pixels is called the halftone region.

画像処理部104は、画像データに対して所々の画像処理を実行する。例えば、画像処理部104は、画像入力部120によって入力された画像の画像データ(第1の画像データ)に含まれる画素の各輝度(濃度)の値を、後述する下地除去テーブル184に定義された値に置換した画像の画像データ(第2の画像データ)を生成する。 The image processing unit 104 performs various image processing operations on the image data. For example, the image processing unit 104 generates image data (second image data) of an image in which the luminance (density) values of each pixel included in the image data (first image data) of the image input by the image input unit 120 are replaced with values defined in a background removal table 184 described below.

エッジ検出部106は、画像データからエッジを検出する。例えば、エッジ検出部106は、画像入力部120によって入力された画像や、画像処理部104によって画像処理がされた画像に対して、エッジ検出オペレータ(例えば、Prewitt、あるいはSobelと呼ばれるオペレータ)を適用する。これにより、エッジ検出部106は、エッジの検出対象となる画像をエッジを際立たせた画像に変換したり、エッジの検出対象となる画像からエッジを検出し、検出したエッジのみを現した画像(エッジ画像)を生成したりする。 The edge detection unit 106 detects edges from image data. For example, the edge detection unit 106 applies an edge detection operator (for example, an operator called Prewitt or Sobel) to an image input by the image input unit 120 or an image processed by the image processing unit 104. In this way, the edge detection unit 106 converts the image for which edges are to be detected into an image in which the edges are accentuated, or detects edges from the image for which edges are to be detected and generates an image (edge image) that shows only the detected edges.

情報欠落判定部108は、2つの画像を比較することで、情報の欠落が生じているか否かを判定する。情報の欠落とは、一方の画像に現れていた文字や図形等が、他方の画像では失われていることをいう。 The information loss determination unit 108 compares the two images to determine whether or not there is information loss. Information loss refers to characters, figures, etc. that appear in one image being missing in the other image.

出力制御部110は、画像を出力する制御を行う。例えば、出力制御部110は、出力対象となる画像を画像形成部130を介して出力する制御を行ったり、出力対象となる画像の画像データを通信部190を介して他の装置に送信する制御を行ったりする。 The output control unit 110 controls the output of images. For example, the output control unit 110 controls the output of the image to be output via the image forming unit 130, and controls the transmission of image data of the image to be output to another device via the communication unit 190.

画像入力部120は、画像形成装置10に画像データを入力(取得)する。画像入力部120は、例えば、原稿から画像を光学的に読み取って画像データを生成することが可能なスキャナ装置等により構成される。スキャナ装置は、原稿からの反射光像を、RGB(R:赤、G:緑、B:青)にそれぞれ対応し、原稿画像が記録された紙などの記録媒体からの反射光の反射率を表すアナログ信号から成る画像データとしてCCD(Charge Coupled Device)やCIS(Contact Image Sensor)等のイメージセンサによって読み取る。そして、画像入力部120は、読み取った画像データ(デジタルデータ)を生成することにより、当該画像データを入力する。なお、画像入力部120は、USB(Universal Serial Bus)メモリや、SDカード等の記憶媒体に記憶された画像データを入力してもよいし、通信部190を介して他の装置から取得された画像データを入力してもよい。 The image input unit 120 inputs (acquires) image data to the image forming apparatus 10. The image input unit 120 is, for example, configured with a scanner device capable of optically reading an image from a document and generating image data. The scanner device reads the reflected light image from the document using an image sensor such as a CCD (Charge Coupled Device) or a CIS (Contact Image Sensor) as image data consisting of analog signals that correspond to RGB (R: red, G: green, B: blue) and represent the reflectance of reflected light from a recording medium such as paper on which the document image is recorded. The image input unit 120 then generates the read image data (digital data) to input the image data. The image input unit 120 may input image data stored in a storage medium such as a USB (Universal Serial Bus) memory or an SD card, or may input image data acquired from another device via the communication unit 190.

画像形成部130は、画像データに基づく画像を記録媒体(例えば記録用紙)に形成する。画像形成部130は、例えば、電子写真方式を利用したレーザプリンタ等により構成され、図1の給紙トレイ132から記録用紙を給紙し、記録用紙の表面に画像を形成し、記録用紙を排紙トレイ134から排紙する。 The image forming unit 130 forms an image based on image data on a recording medium (e.g., recording paper). The image forming unit 130 is, for example, configured with a laser printer that uses an electrophotographic method, feeds recording paper from the paper feed tray 132 in FIG. 1, forms an image on the surface of the recording paper, and discharges the recording paper from the paper discharge tray 134.

表示部140は、各種情報を表示する。表示部140は、例えば、LCD(Liquid crystal display)、有機EL(electro-luminescence)パネル、マイクロLED(Light Emitting Diode)ディスプレイ等の表示装置により構成される。 The display unit 140 displays various information. The display unit 140 is configured with a display device such as an LCD (Liquid crystal display), an organic EL (electro-luminescence) panel, or a micro LED (Light Emitting Diode) display.

操作部150は、画像形成装置10を使用するユーザの操作を受け付ける。操作部150は、ハードキー(例えば、テンキー)やボタン、タッチ操作を検出するセンサ等により構成される。なお、入力されたタッチ操作を検出する方式は、例えば、抵抗膜方式、赤外線方式、電磁誘導方式、静電容量方式といった、一般的な検出方式であればよい。また、画像形成装置10は、表示部140と操作部150とが一体に形成されたタッチパネルを備えてもよい。 The operation unit 150 accepts operations from a user who uses the image forming device 10. The operation unit 150 is composed of hard keys (e.g., a numeric keypad), buttons, a sensor that detects touch operations, and the like. The method for detecting the input touch operations may be any common detection method, such as a resistive film method, an infrared method, an electromagnetic induction method, or a capacitive method. The image forming device 10 may also be equipped with a touch panel in which the display unit 140 and the operation unit 150 are integrally formed.

記憶部180は、画像形成装置10の動作に必要な各種プログラムや、各種データを記憶する機能部である。記憶部180は、例えば、半導体メモリであるSSD(Solid State Drive)や、HDD(Hard Disk Drive)等の記憶装置により構成される。 The storage unit 180 is a functional unit that stores various programs and various data necessary for the operation of the image forming device 10. The storage unit 180 is configured, for example, by a storage device such as a solid state drive (SSD) or a hard disk drive (HDD), which is a semiconductor memory.

記憶部180は、画像入力部120によって入力された画像データを記憶する記憶領域である画像データ記憶領域182を確保する。また、記憶部180は、画像データの下地除去を行うために用いられる下地除去テーブル184を記憶する。 The storage unit 180 secures an image data storage area 182, which is a storage area for storing image data input by the image input unit 120. The storage unit 180 also stores a background removal table 184 that is used to remove the background from the image data.

下地除去テーブル184について、図3を参照して説明する。図3(a)は、下地除去テーブル184の例である。図3(a)に示すように、下地除去テーブル184は、入力値と出力値との対応が記憶される。入力値とは、変換前の画像データにおいて注目している画素の色を示す値であり、具体的にはRGBのそれぞれに対応する濃度値(RGBのそれぞれの色に対応する値)である。 The background removal table 184 will be described with reference to FIG. 3. FIG. 3(a) is an example of the background removal table 184. As shown in FIG. 3(a), the background removal table 184 stores the correspondence between input values and output values. The input value is a value indicating the color of the pixel of interest in the image data before conversion, and specifically, is a density value corresponding to each of RGB (a value corresponding to each of the RGB colors).

図3(a)に示すように、出力値は、下地除去のレベルに応じて、レベル1、レベル2といったように、複数のレベル(テーブル)が定義される。なお、本実施形態では、レベルは1から16までの16種類あるとする。 As shown in FIG. 3(a), multiple levels (tables) are defined for the output values, such as level 1 and level 2, depending on the level of background removal. In this embodiment, there are 16 levels, from 1 to 16.

また、入力値とレベルとの交点に記載された値は、注目している画素における変換後の濃度値を示す。特に、本実施形態では、変換後の濃度値を出力値という。つまり、下地除去テーブル184は、入力されたR、G、Bのそれぞれ色の濃度値を、色毎に、どの濃度値に変換するかを示したテーブルである。 The value written at the intersection of the input value and the level indicates the density value after conversion for the pixel of interest. In particular, in this embodiment, the density value after conversion is called the output value. In other words, the background removal table 184 is a table that indicates to which density value the density values of the input R, G, and B colors are converted for each color.

ここで、本実施形態では、濃度値を0から255までの何れかの整数値を取るものとし、下地除去テーブル184には、入力値よりも出力値が大きな値となるように、出力値が定義される。したがって、下地除去テーブル184を用いて画像データの濃度値を変換すると、変換前の画像に比べて変換後の画像は明るい画像となる。これにより、画像に含まれる薄い下地は、下地除去テーブル184に基づいて変換されることにより除去される。 In this embodiment, the density value takes any integer value between 0 and 255, and the output value is defined in the background removal table 184 so that the output value is greater than the input value. Therefore, when the density value of image data is converted using the background removal table 184, the converted image becomes brighter than the image before conversion. As a result, the faint background contained in the image is removed by conversion based on the background removal table 184.

本実施形態では、下地除去テーブル184は、レベルの番号が大きくなるに連れ、より明るい画像に変換されるように定義されるものとする。例えば、レベル1では、出力値は入力値と同じ値に置換され、レベルの番号が大きくなるに連れて、輝度が高い画素の輝度をより高い輝度に置換されるように、下地除去テーブル184が定義される。 In this embodiment, the background removal table 184 is defined so that the image is converted to a brighter image as the level number increases. For example, at level 1, the output value is replaced with the same value as the input value, and the background removal table 184 is defined so that the brightness of pixels with high brightness is replaced with a higher brightness as the level number increases.

図3(b)は、下地除去テーブル184に記憶された入力値及び出力値の関係をグラフにした図である。図3(b)に示すように、レベルの番号が大きくなればなるほど、中間的な輝度の画素がより高い輝度の画素に置換される。 Figure 3(b) is a graph showing the relationship between the input values and the output values stored in the background removal table 184. As shown in Figure 3(b), the higher the level number, the more pixels of intermediate brightness are replaced with pixels of higher brightness.

通信部190は、画像形成装置10が外部の装置と、インターネット等の外部ネットワークや、LAN(Local Area Network)等のネットワークを介してデータの通信を行う。通信部190は、例えば、有線/無線LANで利用されるNIC(Network Interface Card)等の通信装置や通信モジュールにより構成される。 The communication unit 190 allows the image forming apparatus 10 to communicate data with external devices via an external network such as the Internet or a network such as a LAN (Local Area Network). The communication unit 190 is configured, for example, by a communication device or communication module such as a NIC (Network Interface Card) used in a wired/wireless LAN.

[1.2 処理の流れ]
本実施形態における画像形成装置10の制御部100が実行する主な処理について、図4を参照して説明する。図4に示した処理は、例えば、制御部100が、記憶部180に記憶されたプログラムを読み出すことにより実行される。
[1.2 Processing flow]
The main processes executed by the control unit 100 of the image forming apparatus 10 in this embodiment will be described with reference to Fig. 4. The processes shown in Fig. 4 are executed by the control unit 100 reading out a program stored in the storage unit 180, for example.

はじめに、制御部100は、画像データを取得する(ステップS102)。例えば、制御部100は、画像入力部120を介して、原稿の画像データを取得したり、記憶媒体に記憶された画像データや他の装置から取得された画像データを取得したりしてもよい。 First, the control unit 100 acquires image data (step S102). For example, the control unit 100 may acquire image data of a document via the image input unit 120, or may acquire image data stored in a storage medium or image data acquired from another device.

つづいて、制御部100(領域分離部102)は、ステップS102において取得された画像データに基づき、当該画像データによって現される画像を所定の領域に分離する領域分離処理を実行する(ステップS104)。例えば、領域分離部102は、画像データにおける各画素を、下地領域、印画紙領域、文字領域および網点領域のいずれに属するのかを判定する。 Next, the control unit 100 (area separation unit 102) executes an area separation process based on the image data acquired in step S102 to separate the image represented by the image data into predetermined areas (step S104). For example, the area separation unit 102 determines whether each pixel in the image data belongs to a background area, a photographic paper area, a character area, or a halftone dot area.

つづいて、制御部100は、ステップS104の領域の分離結果に基づき、下地領域に含まれる画素の濃度値に基づくヒストグラムを算出する(ステップS106)。ヒストグラムは、例えば、輝度の範囲(区分)を予め定めておき、下地領域に含まれる画素の濃度値の出現頻度を区分毎に計数することにより生成される。 Next, the control unit 100 calculates a histogram based on the density values of the pixels included in the background region based on the region separation result in step S104 (step S106). The histogram is generated, for example, by predetermining a luminance range (division) and counting the occurrence frequency of the density values of the pixels included in the background region for each division.

具体的には、制御部100は、以下のようにヒストグラムを算出する。まず、制御部100は、下地候補画素と判定された注目画素について、下地候補画素のプレーン毎(信号毎)の平均値の濃度値の比較を行い、注目画素毎に、各色信号間で平均値の最小値を算出し、下地画素ヒストグラムを生成する。このときヒストグラム生成について対象となる範囲は、下地候補画素全体である。したがって、各下地候補画素における色信号毎の濃度値を(R,G,B)とすれば、この下地画素ヒストグラムは、全ての下地候補画素におけるMIN(R,G,B)の値の度数値を表すものである。このヒストグラムの濃度区分数はたとえば、濃度値の小さい方から第1濃度区分、第2濃度区分とし、濃度値の最も大きい区分を第16濃度区分とする16区分を設ける。 Specifically, the control unit 100 calculates the histogram as follows. First, the control unit 100 compares the average density values of the planes (signals) of the background candidate pixels for the target pixels determined to be background candidate pixels, calculates the minimum value of the average values among the color signals for each target pixel, and generates a background pixel histogram. In this case, the range targeted for the generation of the histogram is the entire background candidate pixels. Therefore, if the density value for each color signal of each background candidate pixel is ( R1 , G1 , B1 ), this background pixel histogram represents the frequency value of the value of MIN ( R1 , G1 , B1 ) for all the background candidate pixels. The number of density sections of this histogram is, for example, 16, with the first density section, the second density section, and the section with the largest density value being the 16th density section.

図5は、ステップS106において生成されるヒストグラムの具体例を示す図である。図5(a)は、0から255までの濃度値を、16ずつの単位で16等分することで16の区分(濃度区分)を定め、画像データに含まれる画素毎の濃度値(入力値)を、区分毎に計数することで、区分毎の出現頻度を示した表(ヒストグラム)である。なお、本実施形態では、16の区分は、区分0から区分15までの区分とする。また、図5(b)は、図5(a)に示したヒストグラムを図示した図である。図5(b)に示すヒストグラムにおいて、横軸は濃度区分を示す濃度値、縦軸が各濃度区分に属する最小値の頻度である度数値を示す。 Figure 5 shows a specific example of a histogram generated in step S106. Figure 5(a) shows a table (histogram) in which 16 sections (density sections) are defined by dividing density values from 0 to 255 into 16 equal parts in units of 16, and the density values (input values) of each pixel included in the image data are counted for each section, showing the frequency of occurrence for each section. In this embodiment, the 16 sections are sections 0 to 15. Figure 5(b) shows the histogram shown in Figure 5(a). In the histogram shown in Figure 5(b), the horizontal axis shows density values indicating the density sections, and the vertical axis shows frequency values which are the frequency of the minimum values belonging to each density section.

ここで、図5は、下地が存在する場合のヒストグラムを示している。制御部100は、図5に示すように、基本的に単色の画素からなる領域を下地であると判定する。下地は単色濃度の画素しか存在しないため、下地が存在する場合は、図5(b)に示すようにある限られた濃度区分群(たとえば1または2区分からなる濃度区分の集合)にのみ度数値が存在する。たとえば原稿画像データ全体が印画紙領域で構成される場合など、下地が存在しない場合は、下地候補画素として抽出された画素全体を対象にヒストグラムを生成しても、区分幅が拡がった濃度区分群が存在したり、または度数値が大きい濃度区分群が存在しなかったりする。 Here, FIG. 5 shows a histogram when a background is present. As shown in FIG. 5, the control unit 100 basically determines that an area consisting of pixels of a single color is the background. Since the background only has pixels of a single color density, when a background is present, frequency values exist only in a limited density range group (for example, a set of density ranges consisting of one or two ranges) as shown in FIG. 5(b). If there is no background, for example when the entire document image data is composed of a photographic paper area, even if a histogram is generated for all the pixels extracted as background candidate pixels, there may be density range groups with a wide range of ranges or no density range groups with large frequency values.

つづいて、制御部100は、入力された画像が下地除去処理を行う画像であるか否かを判定する(ステップS107)。制御部100は、下地除去処理を行う画像であるか否かについて、例えば、以下の手順により判定する。 Next, the control unit 100 determines whether the input image is an image to be subjected to background removal processing (step S107). The control unit 100 determines whether the image is an image to be subjected to background removal processing, for example, by the following procedure.

(1)領域画素のカウント
制御部100は、ステップS104において判定した各領域画素について、それぞれ判定された画素の画素数をカウントする。
(1) Counting Region Pixels The control unit 100 counts the number of pixels determined for each region pixel determined in step S104.

(2)下地判定
制御部100は、入力された画像データに下地が存在するか否かを判定する。例えば、制御部100は、図5(b)に示すように、予め定められた下地判定閾値Sg24よりも度数値が大きく、且つ、その濃度区分幅が下地判定区分幅閾値(たとえば3)よりも小さな濃度区分群が存在すれば下地と判定する。下地判定閾値Sg24は、出力用紙サイズをA4サイズと想定し、解像度を600dpi(dot per inch)とした場合、たとえば10000個に設定する。解像度が600dpiである場合には、A4サイズの出力用紙全体の画素数は、約3.5×10個となる。
(2) Background Determination The control unit 100 determines whether or not a background exists in the input image data. For example, as shown in FIG. 5B, the control unit 100 determines that a background exists if there is a density division group whose frequency value is greater than a predetermined background determination threshold Sg24 and whose density division width is smaller than a background determination division width threshold (e.g., 3). The background determination threshold Sg24 is set to, for example, 10,000 pixels when the output paper size is assumed to be A4 size and the resolution is 600 dpi (dots per inch). When the resolution is 600 dpi, the number of pixels in the entire output paper of A4 size is approximately 3.5× 107 pixels.

つづいて、制御部100は、下地候補画素についてのヒストグラムを対象に、下地画素であると判定された濃度区分群のうち、最も小さい濃度区分値を最小の下地画素濃度値Aとする。また、制御部100は、下地の濃度区分群に属する度数値の合計を下地度数値とする。 Next, the control unit 100 determines the smallest density classification value among the density classification groups determined to be background pixels in the histogram for the background candidate pixels as the minimum background pixel density value A. The control unit 100 also determines the sum of the frequency values belonging to the background density classification group as the background frequency value.

なお、RGB信号を用いた場合、画素値が「0」に近い方が実際の濃度は高く(本実施の形態においては、「濃度値は小さくなる」と表現)、画素値が「255」に近い方が実際の濃度は低くなる(本実施の形態においては、「濃度値は大きくなる」と表現)。 When using RGB signals, the closer the pixel value is to "0", the higher the actual density (in this embodiment, this is expressed as "the density value is smaller"), and the closer the pixel value is to "255", the lower the actual density (in this embodiment, this is expressed as "the density value is larger").

(3)原稿種別判定
つづいて、制御部100は、原稿種別の判定を行う。原稿種別の判別方法は、領域画素毎にカウントされた領域画素数を、予め定められている下地領域、印画紙領域、網点領域および文字領域にそれぞれ対応する閾値と比較して原稿全体の種別を判定する。
(3) Document Type Determination Next, the control unit 100 determines the document type. The document type determination method is to compare the number of area pixels counted for each area pixel with predetermined threshold values corresponding to the background area, the photographic paper area, the halftone dot area, and the character area, respectively, to determine the type of the entire document.

たとえば、文字、網点、印画紙写真の順に検出精度が高いとすると、文字領域の画素の比率が全画素数の30%以上の場合には文字原稿であると判定し、網点領域の画素の比率が全画素数の20%以上の場合には網点原稿(印刷写真原稿)であると判定し、印画紙領域の画素の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるときは、文字/網点原稿(文字印刷写真原稿)であると判定する。さらに文字領域の比率と印画紙領域の比率とが、それぞれ閾値以上であるときには、文字/写真原稿(文字印画紙写真原稿)であると判定する。 For example, assuming that the detection accuracy is highest for text, followed by halftone dots and then photographic paper, if the ratio of pixels in the text area is 30% or more of the total number of pixels, it is determined to be a text manuscript; if the ratio of pixels in the halftone dot area is 20% or more of the total number of pixels, it is determined to be a halftone dot manuscript (printed photograph manuscript); and if the ratio of pixels in the photographic paper area is 10% or more of the total number of pixels, it is determined to be a photographic paper manuscript. Furthermore, if the ratio of text area and the ratio of halftone dot area are each above a threshold value, it is determined to be a text/halftone dot manuscript (text printed photograph manuscript). Furthermore, if the ratio of text area and the ratio of photographic paper area are each above a threshold value, it is determined to be a text/photo manuscript (text photographic paper manuscript).

(4)下地除去を行う対象の原稿か否かの判定
つづいて、制御部100は、判定した原稿の種別が下地除去を行うべき原稿であるか否かの判定を行う。下地除去を行うべき原稿とは、文字原稿、印画紙領域を含まない原稿、文字/網点原稿(文字印刷写真原稿)で網点領域の比率が小さい原稿(例えば、網点領域の比率が原稿全体に対して40%以下の原稿)などである。
(4) Determination of whether the document is a target for background removal Next, the control unit 100 determines whether the determined document type is a document for which background removal should be performed. Documents for which background removal should be performed include text documents, documents that do not include a photographic paper area, text/halftone dot documents (text-printed photograph documents) with a small halftone dot area ratio (for example, a document with a halftone dot area ratio of 40% or less of the entire document), etc.

(5)下地除去を行う下地があるか否かの判定
下地除去を行うべき原稿であると判定した場合には、制御部100は、下地除去を行うべき下地領域があるか否かを判定する。ヒストグラムから求められた最小の下地画素濃度値Aが、予め定める下地濃度値以上である場合には、下地除去すべき下地領域があると判定し、最小の下地画素濃度値Aが、予め定める下地濃度値未満である場合には、下地領域が下地除去すべきでない領域であると判定する。
(5) Determination of whether or not there is a background to be removed When it is determined that the document is one for which background removal is to be performed, the control unit 100 determines whether or not there is a background region for which background removal is to be performed. If the minimum background pixel density value A obtained from the histogram is equal to or greater than a predetermined background density value, it is determined that there is a background region for which background removal is to be performed, and if the minimum background pixel density value A is less than the predetermined background density value, it is determined that the background region is one for which background removal is not to be performed.

上述した手順により、制御部100は、画像データに含まれる下地領域が下地除去すべき領域であるか否かを判定する。画像データに含まれる下地領域が下地除去すべき領域である場合は、制御部100は、下地除去処理を実行する(ステップS107;Yes)。一方、制御部100は、画像データに含まれる下地領域が下地除去すべき領域ではない場合は、図4に示した処理を終了する(ステップS107;No)。 By the above-mentioned procedure, the control unit 100 judges whether or not the background area included in the image data is an area where the background should be removed. If the background area included in the image data is an area where the background should be removed, the control unit 100 executes the background removal process (step S107; Yes). On the other hand, if the background area included in the image data is not an area where the background should be removed, the control unit 100 ends the process shown in FIG. 4 (step S107; No).

下地除去処理を実行する場合、制御部100は、下地除去処理に用いる下地除去テーブルを選択するために、ステップS106において生成したヒストグラムから、境界を算出する(ステップS108)。本実施形態における境界とは、ヒストグラムを2つの範囲に分割する箇所をいう。具体的には、例えば、区分12と区分13との間といった箇所が境界となる。 When performing background removal processing, the control unit 100 calculates a boundary from the histogram generated in step S106 in order to select a background removal table to be used in the background removal processing (step S108). In this embodiment, the boundary refers to a location that divides the histogram into two ranges. Specifically, for example, the boundary is between category 12 and category 13.

境界は、所定の方法で求められればよい。例えば、ヒストグラムにピークとなる区分が2つある場合、当該2つの区分の中間に相当する箇所が境界とされてもよいし、当該2つの区分のうち、最も頻度が低い区分と当該区分に隣接する区分との間を境界とされてもよい。また、ヒストグラムを2つの正規分布の和と仮定し、2つの正規分布のパラメータに基づいて境界が算出されてもよい。このような処理によって算出された境界は、例えば、図5(b)に示す。 The boundary may be found by a predetermined method. For example, if the histogram has two peak divisions, the boundary may be the midpoint between the two divisions, or the boundary may be between the division with the lowest frequency and the division adjacent to that division. The histogram may also be assumed to be the sum of two normal distributions, and the boundary may be calculated based on the parameters of the two normal distributions. The boundary calculated by this process is shown, for example, in FIG. 5(b).

つづいて、制御部100は、ステップS108において判定した境界に基づいて、下地除去のレベルを判定する(ステップS110)。例えば、制御部100は、境界の隣の区分の番号と対応する番号のレベルを選択する。具体的には、ステップS108において境界が区分12と区分13との間であれば、制御部100は、レベル13を下地除去のレベルとして判定する。そして、制御部100は、当該判定したレベルに対応した下地除去テーブルに基づく下地除去処理を行う。 Then, the control unit 100 determines the level of background removal based on the boundary determined in step S108 (step S110). For example, the control unit 100 selects the level with the number corresponding to the number of the section next to the boundary. Specifically, if the boundary is between sections 12 and 13 in step S108, the control unit 100 determines level 13 as the level of background removal. The control unit 100 then performs background removal processing based on the background removal table corresponding to the determined level.

つづいて、制御部100(画像処理部104)は、自動下地処理を実行することで、ステップS102において取得した画像の画像データ(第1の画像データ)から自動的に下地を除去した画像データ(第2の画像データ)を生成する(ステップS112)。自動下地処理は、ステップS102において取得した画像に含まれる各画素の濃度値を下地除去テーブル184に基づいて置換することで、当初取得された画像を明るくした画像に変換する処理をいう。ここでは、ステップS110において下地除去のレベルが判定されているため、制御部100(画像処理部104)は、当該レベルに基づき、濃度値を置換する。なお、本実施形態では、自動下地処理により下地を除去することを、自動下地除去ともいう。 Next, the control unit 100 (image processing unit 104) executes automatic background processing to generate image data (second image data) from the image data (first image data) of the image acquired in step S102 with the background automatically removed (step S112). Automatic background processing refers to a process of converting the initially acquired image into a brighter image by replacing the density value of each pixel included in the image acquired in step S102 based on the background removal table 184. Here, since the level of background removal was determined in step S110, the control unit 100 (image processing unit 104) replaces the density value based on that level. Note that in this embodiment, removing the background by automatic background processing is also referred to as automatic background removal.

なお、下地除去処理は、上述した処理の方法のほか、既存の除去処理を用いることができ、たとえば、特開2000-354167号公報に記載の方法を用いることができる。たとえば、画像データに含まれる下地領域が、下地除去すべき領域であると判定した場合、制御部100は、下地濃度値に対応する下地除去テーブルを選択し、下地除去処理を行う。 In addition to the above-mentioned processing method, the background removal process can use existing removal processes, for example, the method described in JP-A-2000-354167. For example, if it is determined that a background area included in the image data is an area where background removal is required, the control unit 100 selects a background removal table corresponding to the background density value and performs background removal process.

つづいて、制御部100(エッジ検出部106)は、ステップS112において自動下地除去を行った画像に対して、エッジ処理(エッジの検出)を行う(ステップS114)。なお、制御部100(エッジ検出部106)は、ステップS114の処理と並行して、自動下地除去を行っていない画像に対しても、エッジ処理(エッジの検出)を行う(ステップS116)。 Next, the control unit 100 (edge detection unit 106) performs edge processing (edge detection) on the image that has been subjected to automatic background removal in step S112 (step S114). Note that in parallel with the processing of step S114, the control unit 100 (edge detection unit 106) also performs edge processing (edge detection) on images that have not been subjected to automatic background removal (step S116).

つづいて、情報欠落判定部108は、ステップS114においてエッジ処理がされた画像と、ステップS116においてエッジ処理がされた画像とを比較する(ステップS118)。例えば、情報欠落判定部108は、ステップS114においてエッジ処理がされた画像に含まれる画素の濃度値から、ステップS116においてエッジ処理がされた画像における対応する位置の画素の濃度値を引いたモノクロの画像(比較画像)を生成する。この場合、2つの画像の濃度値の大きさが、比較画像の各画素における濃度値として現れる。したがって、比較画像においては、濃度値が大きい画素ほど2つの画像において差分が大きい画素を示し、濃度値が小さい画素ほど2つの画像において差分が小さい画素を示す。 Next, the information loss determination unit 108 compares the image subjected to edge processing in step S114 with the image subjected to edge processing in step S116 (step S118). For example, the information loss determination unit 108 generates a monochrome image (comparison image) by subtracting the density value of a pixel at a corresponding position in the image subjected to edge processing in step S116 from the density value of a pixel included in the image subjected to edge processing in step S114. In this case, the magnitude of the density values of the two images appears as the density value of each pixel in the comparison image. Therefore, in the comparison image, a pixel with a larger density value indicates a pixel with a larger difference between the two images, and a pixel with a smaller density value indicates a pixel with a smaller difference between the two images.

つづいて、情報欠落判定部108は、情報の欠落があるか否かを判定する(ステップS120)。例えば、ステップS118において差分画像が生成されている場合、情報欠落判定部108は、差分画像に含まれるがその画素値に基づいて、情報の欠落の程度や情報の欠落が生じている領域の大きさを定量的に算出する。 Then, the information loss determination unit 108 determines whether or not there is information loss (step S120). For example, if a difference image is generated in step S118, the information loss determination unit 108 quantitatively calculates the degree of information loss and the size of the area where information loss occurs based on the pixel values included in the difference image.

なお、情報の欠落の程度や情報の欠落が生じた領域の大きさに基づいて算出された値を、本実施形態では差分スコアという。情報欠落判定部108は、差分スコアの値が、予め設定された閾値以上である場合、ステップS102において取得(入力)された画像をステップS110において判定した判定パターンに基づいて明るい画像に変換すると、情報の欠落がある(生じる)と判定する。 In this embodiment, the value calculated based on the degree of information loss and the size of the area where information loss has occurred is called the difference score. If the value of the difference score is equal to or greater than a preset threshold, the information loss determination unit 108 determines that there is (will be) information loss when the image acquired (input) in step S102 is converted into a bright image based on the determination pattern determined in step S110.

具体的には、情報欠落判定部108は、以下の方法により、差分スコア及び情報の欠落の有無の判定を行う。
(1)所定の濃度値以上の濃度値を有する画素の数に基づく方法
情報欠落判定部108は、差分画像から、予め定められた判定用の濃度値(判定濃度値)以上の画素を計数する。例えば、情報欠落判定部108は、差分画像の各画素に対して濃度値としてMIN(R,G,B)を算出し、算出した濃度値が判定濃度値以上であるか否かを判定する。算出した濃度値が判定濃度値以上であれば、情報欠落判定部108は、当該画素が所定の濃度値以上の濃度値を有する画素であるとして、カウントする。情報欠落判定部108は、このようにカウントすることで計数した画素の数を差分スコアとする。
Specifically, the information loss determination unit 108 determines the difference score and whether or not there is information loss by the following method.
(1) Method based on the number of pixels having a density value equal to or greater than a predetermined density value The information loss determination unit 108 counts the number of pixels having a density value equal to or greater than a predetermined density value for determination (determination density value) from the difference image. For example, the information loss determination unit 108 calculates MIN ( R1 , G1 , B1 ) as a density value for each pixel of the difference image, and determines whether the calculated density value is equal to or greater than the determination density value. If the calculated density value is equal to or greater than the determination density value, the information loss determination unit 108 counts the pixel as a pixel having a density value equal to or greater than a predetermined density value. The information loss determination unit 108 regards the number of pixels counted in this way as the difference score.

また、情報欠落判定部108は、閾値を、画像の大きさに対する所定の割合(判定割合)の画素数又は画像の大きさに対応する画素数(判定画素数)とする。情報欠落判定部108は、差分スコアが判定割合に基づく画素数又は判定画素数以上である場合、情報の欠落があると判定する。 The information loss determination unit 108 also sets the threshold value to a pixel count that is a predetermined ratio (determination ratio) to the image size or a pixel count that corresponds to the image size (determination pixel count). The information loss determination unit 108 determines that there is information loss when the difference score is equal to or greater than the pixel count based on the determination ratio or the determination pixel count.

(2)濃度値の総和を差分スコアとする方法
情報欠落判定部108は、差分画像に含まれる画素の濃度値を全て足し合わせた値を差分スコアとする。また、情報欠落判定部108は、閾値を、画像の大きさに対応するスコア(判定スコア)とする。情報欠落判定部108は、差分スコアが判定スコア以上である場合、情報の欠落があると判定する。
(2) Method of Using the Sum of Density Values as the Difference Score The information loss determination unit 108 uses the sum of all density values of pixels included in the difference image as the difference score. The information loss determination unit 108 also uses a score (determination score) corresponding to the size of the image as the threshold. If the difference score is equal to or greater than the determination score, the information loss determination unit 108 determines that there is information loss.

ステップS120において情報の欠落がないと判定した場合は、制御部100(出力制御部110)は、ステップS102において入力された画像の画像データ(第1の画像データ)に対して、自動下地除去を実施した画像データ(第2の画像データ)を出力する(ステップS120;No→ステップS122)。例えば、出力制御部110は、ステップS112において生成した画像を、画像形成部130を介して記録用紙に形成する制御を行ったり、通信部190を介して他の装置に送信制御を行ったりする。 If it is determined in step S120 that there is no missing information, the control unit 100 (output control unit 110) outputs image data (second image data) that has been subjected to automatic background removal from the image data (first image data) of the image input in step S102 (step S120; No → step S122). For example, the output control unit 110 controls the image generated in step S112 to be formed on recording paper via the image forming unit 130, or controls transmission to another device via the communication unit 190.

一方で、ステップS120において情報の欠落があると判定された場合は、制御部100(出力制御部110)は、自動下地除去の処理をキャンセル(スキップ)することで、ステップS102において入力された画像の画像データ(第1の画像データ)を出力する(ステップS120;Yes→ステップS124)。 On the other hand, if it is determined in step S120 that there is missing information, the control unit 100 (output control unit 110) cancels (skips) the automatic background removal process, and outputs the image data (first image data) of the image input in step S102 (step S120; Yes → step S124).

[1.3 動作例]
つづいて、本実施形態の動作例を、図6及び図7を参照して説明する。はじめに、図6を参照して、情報の欠落について説明する。
[1.3 Operation example]
Next, an example of the operation of this embodiment will be described with reference to Fig. 6 and Fig. 7. First, information loss will be described with reference to Fig. 6.

図6(a)は、ユーザの操作に基づいて読み取られた原稿の画像P100を示す図である。図6(a)に示すように、画像P100は画像全体に薄い下地が現れている。さらに、画像P100には、濃い文字が現れる領域E100、薄い文字が現れる領域E102、濃い図形が現れる領域E104、薄い図形が現れる領域E106が含まれる。薄い文字や薄い図形とは、下地領域における下地の濃度(輝度)と近い濃度(輝度)によって現された文字や図形をいう。このうち、領域E100及び領域E104は文字領域として分離され、領域E102及び領域E106は印画紙領域や下地領域として分離される可能性が高い。 Figure 6(a) is a diagram showing image P100 of a document read based on a user's operation. As shown in Figure 6(a), image P100 has a light background across the entire image. Furthermore, image P100 includes area E100 where dark characters appear, area E102 where light characters appear, area E104 where dark figures appear, and area E106 where light figures appear. Light characters and light figures refer to characters and figures that are expressed with a density (brightness) close to the density (brightness) of the background in the background area. Of these, areas E100 and E104 are likely to be separated as character areas, and areas E102 and E106 are likely to be separated as photographic paper areas or background areas.

図6(b)は、画像P100に対して、自動下地処理を実行した場合における画像P110を示す図である。画像P100から下地を除去することで、画像P110に示すように、画像全体に現れていた薄い下地は消える(下地が飛ぶ)が、画像P100に現れていた薄い文字や薄い図形も消えてしまう。つまり、画像P100を明るくすることで、薄い文字や薄い図形という情報が欠落してしまう。この結果、画像P110には、濃い文字の領域E110及び濃い図形の領域E112のみが残り、元々存在していた薄い文字や薄い図形は、ユーザによって視認できなくなる。 Figure 6 (b) shows image P110 when automatic background processing is performed on image P100. By removing the background from image P100, the light background that appeared throughout the image disappears (the background is blown away), as shown in image P110, but the light letters and light figures that appeared in image P100 also disappear. In other words, by brightening image P100, the information of light letters and light figures is lost. As a result, only areas E110 of dark letters and areas E112 of dark figures remain in image P110, and the light letters and light figures that were originally present are no longer visible to the user.

つづいて、図7を参照して、エッジ処理について説明する。図7(a)は、図6(a)に示した画像P100をエッジ処理することにより検出されたエッジの画像P120である。画像P120には、濃い文字のエッジを含む領域E120、薄い文字のエッジを含む領域E122、濃い図形のエッジを含む領域E124、薄い図形のエッジを含む領域E126が含まれる。 Next, edge processing will be described with reference to FIG. 7. FIG. 7(a) is an image P120 of edges detected by performing edge processing on the image P100 shown in FIG. 6(a). Image P120 includes an area E120 containing edges of dark characters, an area E122 containing edges of light characters, an area E124 containing edges of dark figures, and an area E126 containing edges of light figures.

一方、図7(b)は、図6(b)に示した画像P100をエッジ処理することにより検出されたエッジの画像P130である。画像P130には、濃い文字のエッジを含む領域E130及び濃い図形のエッジを含む領域E134が含まれる。 On the other hand, FIG. 7(b) shows an image P130 of edges detected by performing edge processing on the image P100 shown in FIG. 6(b). Image P130 includes an area E130 that includes edges of dark characters and an area E134 that includes edges of dark figures.

ここで、画像P120と画像P130との画像の差分を取ると、画像P120に含まれる領域E122及び領域E126に含まれるエッジが差分として現れる。したがって、領域E122及び領域E126に含まれるエッジが、画像P100を明るくすることにより欠落する情報として示される。 Now, when taking the image difference between image P120 and image P130, the edges contained in region E122 and region E126 in image P120 appear as the difference. Therefore, the edges contained in region E122 and region E126 are shown as information that is missing by brightening image P100.

閾値が適切に設定されることにより、領域E122及び領域E126に含まれるエッジに基づく差分スコアの値が閾値以上であると判定され、自動下地除去をキャンセルされる。その結果として、図6(a)に示したような画像P100が画像形成装置10から出力されることとなる。 By appropriately setting the threshold, the difference score based on the edges contained in region E122 and region E126 is determined to be equal to or greater than the threshold, and automatic background removal is canceled. As a result, image P100 as shown in FIG. 6(a) is output from image forming device 10.

なお、上述した実施形態では、濃度値に基づいて下地除去処理を実行するか否かの判定や、下地除去テーブルの判定や、入力値である濃度値を出力値に変換する処理を実行することとして説明したが、判定や処理に用いる値は、明度や輝度値であってもよい。この場合、制御部100は、入力されたRGBの濃度値信号に基づく濃度値を、HSV色空間やXYZ色空間における画素値に変換し、明度や輝度値を求める。そして、制御部100は、明度や輝度値に基づき、下地除去処理を実行可否や、下地除去テーブルの判定を行う。また、制御部100は、下地除去テーブルに基づき明度や輝度値を変換し、変換後の画素値を、RGBの濃度信号に変換し直す。このようにすることで、制御部100は、RGBのそれぞれに対応する濃度値を、明度や輝度値に基づき変換することで、下地除去を行うことができる。 In the above embodiment, the determination of whether or not to perform background removal processing based on the density value, the determination of the background removal table, and the processing of converting the input density value to an output value are described, but the values used for the determination and processing may be lightness or luminance values. In this case, the control unit 100 converts the density value based on the input RGB density value signal into a pixel value in the HSV color space or the XYZ color space to obtain the lightness or luminance value. Then, the control unit 100 determines whether or not to perform background removal processing and the background removal table based on the lightness or luminance value. The control unit 100 also converts the lightness or luminance value based on the background removal table, and converts the converted pixel value back into an RGB density signal. In this way, the control unit 100 can perform background removal by converting the density value corresponding to each of RGB based on the lightness or luminance value.

本実施形態によれば、下地の輝度に併せて下地除去を行った場合に、下地に近い濃度の文字や図形等の情報が下地とともに消えてしまい、必要な情報が欠落するといったことを防ぐことができる。そのため、下地除去で消えてしまうような情報が画像に現れていても、当該情報を消さずに再現させることが自動で可能となる。 According to this embodiment, when background removal is performed in accordance with the luminance of the background, it is possible to prevent information such as characters and figures with a density close to that of the background from disappearing along with the background, resulting in the loss of necessary information. Therefore, even if information that would be lost by background removal appears in the image, it is possible to automatically reproduce the information without erasing it.

[2.第2実施形態]
つづいて第2実施形態について説明する。第2実施形態は第1実施形態と異なり、情報の欠落がある場合に、下地除去の処理の方法(レベル)を切り替える実施形態である。本実施形態は、第1実施形態の図4を図8に置き換えたものである。なお、同一の機能部及び処理には同一の符号を付し、説明については省略する。
[2. Second embodiment]
Next, a second embodiment will be described. The second embodiment differs from the first embodiment in that the method (level) of background removal processing is switched when there is a loss of information. In this embodiment, FIG. 4 of the first embodiment is replaced with FIG. 8. Note that the same functional units and processes are given the same reference numerals, and the description will be omitted.

図8を参照して、本実施形態のメイン処理について説明する。本実施形態では、ステップS120において情報の欠落があると判定された場合、制御部100は、ステップS102において取得した画像(第1の画像データ)は出力する処理を省略する。その代わりに、制御部100は、ステップS110において判定したレベルの番号よりも小さい番号のレベルに変更する(ステップS120;Yes→ステップS202)。すなわち、本実施形態では、制御部100は、下地除去のレベル(程度)を弱くした上で、ステップS112から処理を繰り返す。これにより、2回目のステップS112の処理において、画像処理部104は、ステップS102において取得した画像を、当初取得された画像よりも明るく、かつ、1回目にS112を実行したときよりも暗い画像を生成する。 The main processing of this embodiment will be described with reference to FIG. 8. In this embodiment, if it is determined in step S120 that there is a loss of information, the control unit 100 omits the process of outputting the image (first image data) acquired in step S102. Instead, the control unit 100 changes the level to a number smaller than the level number determined in step S110 (step S120; Yes -> step S202). That is, in this embodiment, the control unit 100 weakens the level (degree) of background removal and repeats the process from step S112. As a result, in the second processing of step S112, the image processing unit 104 generates an image acquired in step S102 that is brighter than the image acquired initially and darker than when S112 was executed the first time.

この結果、2回目の自動下地除去において生成される画像(第3の画像データ)は、1回目の自動下地除去において生成される画像(第2の画像データ)よりも、ステップS102において取得された画像(第1の画像データ)に近い画像となる。そのため、2回目のステップS118において生成される比較画像に含まれる画素の濃度値は、1回目のステップ118において生成される比較画像に含まれる濃度値よりも小さくなり、差分スコアも小さくなる。 As a result, the image (third image data) generated in the second automatic background removal is closer to the image (first image data) acquired in step S102 than the image (second image data) generated in the first automatic background removal. Therefore, the density values of the pixels included in the comparison image generated in step S118 for the second time are smaller than the density values included in the comparison image generated in step S118 for the first time, and the difference score is also smaller.

このとき、2回目の差分スコアが閾値未満であれば、出力制御部110は、ステップS202において変更されたレベルに基づいて自動下地除去が実施された画像(第3の画像データ)を出力する(ステップS120;No→ステップS124)。 At this time, if the second difference score is less than the threshold value, the output control unit 110 outputs an image (third image data) on which automatic background removal has been performed based on the level changed in step S202 (step S120; No → step S124).

なお、ステップS120において再度情報の欠落があると判定した場合(ステップS120;Yes)、制御部100は、ステップS202及びステップS112からステップS120までの処理を再度実行すればよい。なお、2回目以降のステップS202においては、制御部100は、直前に実行したステップS202において判定したレベルの番号よりも小さい番号のレベルに変更することで、下地処理のレベルをさらに弱くする。 If it is determined in step S120 that there is again a loss of information (step S120; Yes), the control unit 100 may execute step S202 and the processes from step S112 to step S120 again. In step S202 from the second time onwards, the control unit 100 further weakens the level of the base processing by changing the level to a lower number than the level number determined in the immediately preceding step S202.

このように、徐々に下地処理のレベルを弱くすることで、制御部100は、情報が欠落しないレベルにおける下地処理を実行することができ、情報が欠落しない画像データを出力することができる。言い換えれば、制御部100は、差分スコアが閾値未満となる下地除去のレベルを探索し、最適なレベルに基づく自動下地除去を実行することにより、下地除去を最適化することができる。 In this way, by gradually weakening the level of background processing, the control unit 100 can perform background processing at a level where no information is lost, and can output image data where no information is lost. In other words, the control unit 100 can optimize background removal by searching for a level of background removal where the difference score is less than the threshold value, and performing automatic background removal based on the optimal level.

本実施形態における動作例を図9を参照して説明する。図9(a)は、ユーザの操作によって読み取られた原稿の画像P200を示す図である。図9(a)に示すように、画像P200は画像全体に薄い下地が現れており、さらに、濃い文字及び薄い文字と、濃い図形及び薄い図形とが現れている。 An example of operation in this embodiment will be described with reference to FIG. 9. FIG. 9(a) is a diagram showing an image P200 of a document read by a user operation. As shown in FIG. 9(a), image P200 has a light background across the entire image, and further includes dark and light characters, and dark and light shapes.

図9(b)は、画像P200に対して、最適なレベルに基づく自動下地除去が実行された画像P210を示す。画像P210に示すように、最適なレベルに基づく自動下地除去が実行されることにより、下地が除去されつつ、薄い文字及び薄い図形の欠落を防ぐことができる。 Figure 9 (b) shows image P210, which is the result of performing automatic background removal based on the optimal level on image P200. As shown in image P210, automatic background removal based on the optimal level is performed, which makes it possible to remove the background while preventing the loss of faint text and faint figures.

本実施形態によれば、下地除去を実行することで下地以外の情報が欠落する場合、下地除去の処理の方法を切り替えて、下地以外の情報が欠落しない画像を出力することができる。 According to this embodiment, if performing background removal causes information other than the background to be lost, the method of background removal processing can be switched to output an image in which information other than the background is not lost.

[3.第3実施形態]
つづいて第3実施形態について説明する。第3実施形態は第1実施形態と異なり、情報の欠落がある場合、欠落した情報に対応する画像に対して輪郭を強調する処理を実行し、欠落した情報に対応する画像を、輪郭を強調した画像に置き換えて出力する実施形態である。本実施形態は、第1実施形態の図4を図10に置き換えたものである。なお、同一の機能部及び処理には同一の符号を付し、説明については省略する。
[3. Third embodiment]
Next, a third embodiment will be described. The third embodiment differs from the first embodiment in that, when there is missing information, a process for emphasizing the contours of an image corresponding to the missing information is executed, and the image corresponding to the missing information is replaced with an image with emphasized contours and output. In this embodiment, FIG. 4 of the first embodiment is replaced with FIG. 10. Note that the same functional units and processes are denoted by the same reference numerals, and description thereof will be omitted.

図10を参照して、本実施形態のメイン処理について説明する。本実施形態では、ステップS120において情報の欠落があると判定された場合、制御部100(出力制御部110)は、輪郭強調処理を実行する(ステップS120;Yes→ステップS302)。 The main processing of this embodiment will be described with reference to FIG. 10. In this embodiment, if it is determined in step S120 that there is missing information, the control unit 100 (output control unit 110) executes edge enhancement processing (step S120; Yes -> step S302).

輪郭強調処理とは、下地除去を行い、下地除去により欠落した情報が含まれる領域の画像を、当該領域に含まれる画像に対して輪郭を強調させた画像に置き換える処理をいう。具体的には、制御部100(出力制御部110)は、以下の処理を実行する。 The edge enhancement process refers to a process in which the background is removed and the image in the area containing the information lost by the background removal is replaced with an image in which the edges of the image in that area are enhanced. Specifically, the control unit 100 (output control unit 110) executes the following process.

(1)下地除去により情報が欠落する領域の特定
制御部100(出力制御部110)は、下地除去を実行することで、情報が欠落する領域を特定する。例えば、制御部100(出力制御部110)は、ステップS118において生成される比較画像のうち、所定の濃度値以上の濃度値の画素を含む領域(所定の差分が現れている領域)を、情報が欠落する領域として特定する。
(1) Identifying an area where information is missing due to background removal The control unit 100 (output control unit 110) identifies an area where information is missing by performing background removal. For example, the control unit 100 (output control unit 110) identifies an area including pixels with a density value equal to or greater than a predetermined density value (an area where a predetermined difference appears) in the comparison image generated in step S118 as an area where information is missing.

(2)輪郭を強調した画像の生成
制御部100(出力制御部110)は、ステップS102において取得された画像のうち、情報が欠落する領域に含まれる画像を抽出し、抽出した画像に対して、輪郭を強調する処理を実行することで、輪郭を強調した画像を生成する。例えば、制御部100(出力制御部110)は、画像処理部104に対して、情報が欠落する領域に含まれる画像と当該画像に対してエッジ処理を実行した画像とを合成させる処理を実行させることで、輪郭を強調した画像を生成する。
(2) Generation of an image with enhanced contours The control unit 100 (output control unit 110) extracts an image included in an area where information is missing from the images acquired in step S102, and executes a process of emphasizing contours on the extracted image, thereby generating an image with enhanced contours. For example, the control unit 100 (output control unit 110) generates an image with enhanced contours by causing the image processing unit 104 to execute a process of combining an image included in an area where information is missing with an image obtained by executing edge processing on the extracted image.

(3)自動下地除去後の画像に対する画像の合成
制御部100(出力制御部110)は、自動下地除去がされた画像に対して、情報が欠落する領域の画像を、輪郭を強調した画像に置き換えることで、自動下地除去後の画像と、輪郭を強調した画像とを合成する。これにより、下地除去によって消えた薄い文字や薄い図形は、輪郭のみ強調された文字や図形に置き換わる。
(3) Combining an image with an image after automatic background removal The control unit 100 (output control unit 110) replaces the image of an area where information is missing from the image after automatic background removal with an image with emphasized edges, thereby combining the image after automatic background removal with the image with emphasized edges. As a result, faint characters and faint figures that have disappeared due to background removal are replaced with characters and figures with emphasized edges only.

なお、制御部100(出力制御部110)は、上述した(3)の処理を行った後、当該処理後の画像の画像データを画像形成部130や通信部190を介して出力すればよい。 After performing the process of (3) described above, the control unit 100 (output control unit 110) outputs the image data of the processed image via the image forming unit 130 and the communication unit 190.

本実施形態における動作例を図11を参照して説明する。図11(a)は、ユーザの操作に基づいて読み取られた原稿の画像P300を示す図である。図11(a)に示すように、画像P300は画像全体に薄い下地が現れており、さらに、薄い文字が現れる領域E300と、薄い図形が現れる領域E302とが含まれる。 An example of operation in this embodiment will be described with reference to FIG. 11. FIG. 11(a) is a diagram showing an image P300 of a document read based on a user's operation. As shown in FIG. 11(a), image P300 has a faint background across the entire image, and further includes an area E300 in which faint characters appear, and an area E302 in which faint figures appear.

図11(b)は、本実施形態によって出力される画像P310を示す図である。図11(b)に示すように、画像P300に含まれる薄い文字及び薄い図形は輪郭が強調された図形に置き換えられるため、画像P310には、輪郭が強調された文字が現れる領域E310と、輪郭が強調された図形が現れる領域E312とが含まれる。 Fig. 11(b) is a diagram showing an image P310 output by this embodiment. As shown in Fig. 11(b), the faint characters and faint figures included in image P300 are replaced with figures with emphasized edges, so that image P310 includes an area E310 where characters with emphasized edges appear and an area E312 where figures with emphasized edges appear.

本実施形態によれば、下地除去によって情報が欠落することを防ぎ、さらに、下地除去によって欠落するような、薄い文字や薄い図形を、ユーザに対して視認しやすい画像にした上で出力することが可能となる。 This embodiment prevents information loss due to background removal, and furthermore makes it possible to output faint text and figures that would otherwise be lost due to background removal in an image that is easily visible to the user.

[4.第4実施形態]
つづいて第4実施形態について説明する。第4実施形態は第1実施形態と異なり、取得された画像の特徴に応じて、下地除去を実行するか否かを切り替える実施形態である。本実施形態は、第1実施形態の図4を図12に置き換えたものである。なお、同一の機能部及び処理には同一の符号を付し、説明については省略する。
[4. Fourth embodiment]
Next, a fourth embodiment will be described. The fourth embodiment differs from the first embodiment in that it switches whether or not to perform background removal depending on the characteristics of an acquired image. In this embodiment, FIG. 4 of the first embodiment is replaced with FIG. 12. Note that the same functional units and processes are denoted by the same reference numerals, and descriptions thereof will be omitted.

図12を参照して、本実施形態のメイン処理について説明する。本実施形態では、制御部100は、画像入力部120を介して原稿を読み取ったあと、当該原稿の種類を判定する(ステップS402)。 The main processing of this embodiment will be described with reference to FIG. 12. In this embodiment, the control unit 100 reads a document via the image input unit 120, and then determines the type of the document (step S402).

原稿の種類の判定について、図13及び図14を参照して説明する。本実施形態では、制御部100は、最初に読み取った原稿の特徴を5つの項目(判定項目)に分けて判定し、次に、それぞれの判定項目の結果に基づいて、原稿の種類を判定する。 The determination of the type of document will be described with reference to Figs. 13 and 14. In this embodiment, the control unit 100 first classifies the characteristics of the scanned document into five items (determination items) and then determines the type of document based on the results of each determination item.

はじめに、図13を参照して、原稿の特徴に関する判定項目について説明する。図13は、本実施形態における判定項目について、判定項目毎に、判定に用いる情報と、当該判定によって算出される判定結果とを示した表である。本実施形態では、制御部100は、以下の5つの判定項目に対して判定を行う。 First, the judgment items related to the characteristics of the document will be described with reference to FIG. 13. FIG. 13 is a table showing, for each judgment item in this embodiment, the information used for judgment and the judgment result calculated by the judgment. In this embodiment, the control unit 100 makes judgments for the following five judgment items.

(1)文字
制御部100は、原稿が文字原稿であるか否かを判定する。文字原稿とは、主に文字によって構成されている原稿をいう。文字原稿であるか否かを判定するために用いる情報は、文字の画像を構成するエッジ画素の総数を用いる。文字の画像を構成するエッジ画素は、例えば、注目している画素と周辺の画素との濃度値の差分が大きく、急な立ち上がりを示すエッジの画素である。
(1) Character The control unit 100 judges whether or not the document is a text document. A text document is a document that is mainly composed of text. The information used to judge whether or not the document is a text document is the total number of edge pixels that make up the image of the text. The edge pixels that make up the image of the text are, for example, pixels at edges that have a large difference in density value between the pixel of interest and the surrounding pixels and that show a steep rise.

制御部100は、読み取った原稿の画像データに含まれる画素を1つ選択し、注目画素を中心とした近傍の範囲(例えば、注目画素を中心とした縦5画素、横5画素のブロック)において、濃度値の変化を算出する。このとき、制御部100は、注目画素と隣接する画素との濃度値の差が予め定められた所定の変化量以上であり、急峻な濃度値の変化が生じていると看做せる場合、注目画素が急な立ち上がりを示すエッジの画素であると判定する。制御部100は、注目画素を1つずつずらして、画像データ全体に対して、急な立ち上がりを示すエッジの画素の数をカウントする。このようにしてカウントした値を、文字の画像を構成するエッジ画素の総数(総文字エッジ画素数)として算出する。 The control unit 100 selects one pixel included in the image data of the scanned document, and calculates the change in density value in a nearby range (for example, a block of five pixels vertically and five pixels horizontally centered on the target pixel) centered on the target pixel. At this time, if the difference in density value between the target pixel and an adjacent pixel is equal to or greater than a predetermined change amount, and it is deemed that a steep change in density value has occurred, the control unit 100 determines that the target pixel is an edge pixel that shows a steep rise. The control unit 100 shifts the target pixel one by one, and counts the number of edge pixels that show a steep rise for the entire image data. The value counted in this way is calculated as the total number of edge pixels that make up the character image (total number of character edge pixels).

制御部100は、総文字エッジ画素数が所定の画素数以上である(所定の大きさの文字領域が存在する)場合、原稿が文字原稿であると判定し、総文字エッジ画素数が所定の画素数未満である場合、原稿が文字原稿ではない(所定の大きさの文字領域が存在しない)と判定する。なお、本実施形態では、原稿が文字原稿であるか否かを示す判定結果を、所定の大きさの文字領域があれば1を、所定の大きさの文字領域がなければ0を示した文字領域判定結果とする。 The control unit 100 determines that the document is a text document if the total number of character edge pixels is equal to or greater than a predetermined number of pixels (a text area of a predetermined size exists), and determines that the document is not a text document if the total number of character edge pixels is less than the predetermined number of pixels (a text area of a predetermined size does not exist). Note that in this embodiment, the determination result indicating whether the document is a text document is a text area determination result that indicates 1 if there is a text area of a predetermined size, and 0 if there is no text area of a predetermined size.

(2)網点
制御部100は、原稿に所定の大きさの網点領域が存在するか否かを判定する。制御部100は、読み取った原稿の画像データに含まれる画素を1つ選択し、注目画素を中心とした近傍の範囲(例えば、注目画素を中心とした縦5画素、横5画素のブロック)において、濃度値の変化を算出する。このとき、制御部100は、ブロック内の濃度値の変化が、網点と看做せる特徴を示しているとき、注目画素が網点領域に含まれる画素であると判定する。制御部100は、注目画素を1つずつずらして、画像データ全体に対して、網点領域に含まれる画素と看做せる画素の数をカウントする。また、制御部100は、網点領域に含まれる画素と看做せる画素の数(網点画素カウント)に基づき、網点領域の大きさを算出する。
(2) Halftone dots The control unit 100 judges whether or not a halftone dot area of a predetermined size exists in the document. The control unit 100 selects one pixel included in the image data of the read document, and calculates the change in density value in a nearby range (for example, a block of 5 pixels vertically and 5 pixels horizontally centered on the pixel of interest) centered on the pixel of interest. At this time, the control unit 100 judges that the pixel of interest is a pixel included in the halftone dot area when the change in density value in the block shows a characteristic considered to be a halftone dot. The control unit 100 shifts the pixel of interest one pixel at a time, and counts the number of pixels considered to be included in the halftone dot area for the entire image data. The control unit 100 also calculates the size of the halftone dot area based on the number of pixels considered to be included in the halftone dot area (halftone dot pixel count).

制御部100は、網点領域の大きさが所定の大きさ以上であれば、所定の大きさの網点領域が存在すると判定し、網点領域の大きさが所定の大きさ未満であれば、所定の大きさの網点領域が存在しないと判定する。なお、本実施形態では、所定の網点領域が含まれるか否かを示す判定結果を、所定の大きさの網点領域があれば1を、所定の大きさの網点領域がなければ0を示した網点領域判定結果とする。 If the size of the dot area is equal to or larger than a predetermined size, the control unit 100 determines that a dot area of the predetermined size is present, and if the size of the dot area is less than the predetermined size, it determines that a dot area of the predetermined size is not present. Note that in this embodiment, the determination result indicating whether or not a dot area of the predetermined size is included is a dot area determination result indicating 1 if a dot area of the predetermined size is present, and 0 if a dot area of the predetermined size is not present.

(3)印画紙
制御部100は、原稿に所定の大きさの印画紙領域が存在するか否かを判定する。ここで、印画紙領域の特性を、周囲の濃度値の変化が少ないベタ領域であると仮定する。
(3) Photographic Paper The control unit 100 determines whether or not a photographic paper area of a predetermined size exists in the document. Here, it is assumed that the photographic paper area has the characteristic of being a solid area with little change in density value around it.

制御部100は、読み取った原稿の画像データに含まれる画素を1つ選択し、注目画素を中心とした近傍の範囲(例えば、注目画素を中心とした縦5画素、横5画素のブロック)において、濃度値の変化を算出する。このとき、制御部100は、注目画素と隣接する画素との濃度値の差が予め定められた所定の変化量未満であるなど、注目画素の周辺における濃度値の変化が少ない場合、注目画素がベタ領域に含まれる画素であると判定する。制御部100は、注目画素を1つずつずらして、画像データ全体に対して、ベタ領域に含まれる画素と看做せる画素の数をカウントする。また、制御部100は、ベタ領域に含まれる画素と看做せる画素の数(ベタ画素カウント)に基づき、印画紙領域の大きさを算出する。 The control unit 100 selects one pixel included in the image data of the scanned document, and calculates the change in density value in a nearby range (for example, a block of five pixels vertically and five pixels horizontally centered on the target pixel) centered on the target pixel. At this time, the control unit 100 determines that the target pixel is a pixel included in a solid area if there is little change in density value around the target pixel, such as when the difference in density value between the target pixel and an adjacent pixel is less than a predetermined change amount. The control unit 100 shifts the target pixel one by one, and counts the number of pixels that are considered to be included in a solid area for the entire image data. The control unit 100 also calculates the size of the photographic paper area based on the number of pixels that are considered to be included in a solid area (solid pixel count).

制御部100は、印画紙領域の大きさが所定の大きさ以上であれば、所定の大きさの印画紙領域が存在すると判定し、印画紙領域の大きさが所定の大きさ未満であれば、所定の大きさの印画紙領域が存在しないと判定する。なお、本実施形態では、所定の印画紙領域が含まれるか否かを示す判定結果を、所定の大きさの印画紙領域があれば1を、所定の大きさの印画紙領域がなければ0を示した印画紙領域判定結果とする。 The control unit 100 determines that a photographic paper area of the specified size exists if the size of the photographic paper area is equal to or larger than the specified size, and determines that a photographic paper area of the specified size does not exist if the size of the photographic paper area is less than the specified size. Note that in this embodiment, the determination result indicating whether or not a specified photographic paper area is included is a photographic paper area determination result indicating 1 if a photographic paper area of the specified size exists, and 0 if a photographic paper area of the specified size does not exist.

(4)ブランク
ブランクとは、文字や記号といった画像が含まれない画像(例えば、白紙の原稿の画像)をいう。制御部100は、画像データに含まれる画素全体を対象にした濃度値のヒストグラム(ブランク判定用ヒストグラム)を生成する。このとき、特定の区分に濃度値の出現頻度が極度に集中している場合、制御部100は、ブランクであると判定する。例えば、画像に文字や図形などが現れず、画像全体が白い画素や所定の濃度値の画素で構成される場合は、所定の区分に、濃度値の出現頻度が極度に集中することとなる。したがって、制御部100は、画像データに含まれる画素の数に対する特定の区分に含まれる画素の数が、所定の割合(例えば、90%)以上である場合や、ヒストグラムの分散が所定の値未満である場合は、ブランクであると判定する。ここで、ブランクと判定する場合に用いられる割合の値や、分散の値の範囲は、予め定められていてもよいし、ユーザによって設定されてもよい。なお、本実施形態では、ブランクであるか否かを示す判定結果を、ブランクであれば1を、ブランクでなければ0を示したブランク判定結果とする。
(4) Blank A blank is an image that does not include images such as characters or symbols (for example, an image of a blank document). The control unit 100 generates a histogram of density values (blank determination histogram) for all pixels included in the image data. At this time, if the frequency of occurrence of density values is extremely concentrated in a specific section, the control unit 100 determines that it is blank. For example, if no characters or figures appear in the image and the entire image is composed of white pixels or pixels with a predetermined density value, the frequency of occurrence of density values will be extremely concentrated in the specific section. Therefore, the control unit 100 determines that it is blank when the number of pixels included in a specific section relative to the number of pixels included in the image data is a predetermined ratio (for example, 90%) or more, or when the variance of the histogram is less than a predetermined value. Here, the ratio value and the range of the variance value used in determining that it is blank may be predetermined or may be set by the user. In this embodiment, the determination result indicating whether it is blank or not is a blank determination result indicating 1 if it is blank and 0 if it is not blank.

(5)全体ヒストグラム(薄い原稿)
薄い原稿とは、濃度値が高い画素によって文字や記号が現される画像をいう。例えば、制御部100は、画像データに含まれる画素全体を対象にした濃度値のヒストグラム(全体判定用ヒストグラム)を生成する。このとき、ヒストグラムの分散が所定の値以上であり、ヒストグラムの平均が所定の値以上である場合、薄い原稿であると判定する。例えば、制御部100は、全体判定用ヒストグラムの分散が、ブランクの画像(白紙の原稿の画像)と判定する場合における分散の値より大きく、かつ、所定の値よりも小さく、さらに、濃度値の平均値が高い場合、薄い原稿であると判定する。すなわち、画像の濃度値はある程度分散しているものの、濃度値が全体的に高い場合、制御部100は、画像が薄い原稿の画像であると判定する。薄い原稿であると判定する場合に用いられる分散の値や平均値の値は、予め定められていてもよいし、ユーザによって設定されてもよい。なお、本実施形態では、薄い原稿であるか否かを示す判定結果を、薄い原稿であれば1を、薄い原稿以外であれば0を示した全体ヒストグラム結果とする。
(5) Overall histogram (light original)
A thin document is an image in which characters or symbols are represented by pixels with high density values. For example, the control unit 100 generates a histogram of density values (overall determination histogram) targeting all pixels included in the image data. At this time, if the variance of the histogram is equal to or greater than a predetermined value and the average of the histogram is equal to or greater than a predetermined value, the control unit 100 determines that the document is a thin document when the variance of the overall determination histogram is greater than the variance value in determining that the image is a blank image (image of a blank document) and is smaller than a predetermined value, and further, the average density value is high. That is, if the density values of the image are dispersed to some extent but are generally high, the control unit 100 determines that the image is an image of a thin document. The variance value and the average value used when determining that the document is a thin document may be predetermined or may be set by the user. In this embodiment, the determination result indicating whether or not the document is a thin document is an overall histogram result indicating 1 if the document is a thin document and 0 if the document is not a thin document.

このようにして、制御部100は、判定項目毎に、0又は1を示すフラグの情報(判定結果)を取得する。 In this way, the control unit 100 obtains flag information (judgment result) indicating 0 or 1 for each judgment item.

つづいて、図14を参照して、判定結果に基づく原稿の種類(モード)の判定及び下地除去の有無について説明する。図14におけるT400は、判定項目毎の判定結果の組み合わせを示す表である。図14におけるT410は、T400に示された判定結果の組み合わせに対応する原稿の種類(モード)を示す表である。図14におけるT420は、T410に示された原稿の種類(モード)に対応する下地除去の有無を示す表である。なお、T400、T410、T420に示した表は、例えば、予め記憶部180に記憶されているものとする。 Next, with reference to FIG. 14, the determination of the document type (mode) based on the determination results and whether or not background removal is performed will be described. T400 in FIG. 14 is a table showing combinations of determination results for each determination item. T410 in FIG. 14 is a table showing the document type (mode) corresponding to the combination of determination results shown in T400. T420 in FIG. 14 is a table showing whether or not background removal is performed corresponding to the document type (mode) shown in T410. Note that the tables shown in T400, T410, and T420 are, for example, stored in advance in storage unit 180.

T400における判定項目は、図13に示した判定項目と対応する。また、図13に示した判定結果は、判定項目毎のフラグの情報に対応する。なお、判定結果に1または0の値が含まれていない箇所(具体的には、ハイフンが含まれている箇所)の判定結果は、考慮しないことを示す。 The judgment items in T400 correspond to the judgment items shown in FIG. 13. The judgment results shown in FIG. 13 correspond to the flag information for each judgment item. Note that the judgment results for places that do not contain a value of 1 or 0 (specifically, places that contain a hyphen) are not taken into consideration.

また、T410に示すように、本実施形態では、原稿の種類を、ブランクの原稿、文字の原稿、写真の原稿、印刷(網点)を含む原稿、薄い文字を含む原稿、地図等を含む原稿、文字及び印刷(網点)及び写真を含む原稿の7種類の何れかとする。 As shown in T410, in this embodiment, the type of document is one of seven types: blank document, text document, photographic document, document containing printing (halftone dots), document containing faint text, document containing maps, etc., and document containing text, printing (halftone dots), and photographs.

また、本実施形態では、制御部100は、ステップS102において取得した原稿に対する判定項目の判定結果が、原稿の種類に対応する判定項目毎の判定結果の組み合わせの何れかと合致するか否かを、上述した原稿の種類の順番に沿って判定する。 In addition, in this embodiment, the control unit 100 determines whether the judgment results of the judgment items for the manuscript obtained in step S102 match any of the combinations of judgment results for each judgment item corresponding to the manuscript type, in the order of the manuscript types described above.

例えば、制御部100は、最初に、ステップS102において取得した原稿がブランクの原稿であるか否かを判定する。ここで、図14のE400に示すように、制御部100は、文字領域判定結果と網点領域判定結果と印画紙領域判定結果とが0で、ブランク判定結果が1である原稿は、全体ヒストグラム結果の判定結果に関わらず、原稿の種類がブランクの原稿であると判定する。ステップS102において取得した原稿がブランクの原稿でなければ、制御部100は、次に、当該原稿が文字の原稿であるか否かを判定する。 For example, the control unit 100 first determines whether the document acquired in step S102 is a blank document. Here, as shown in E400 of FIG. 14, the control unit 100 determines that a document in which the character area determination result, the dot area determination result, and the photographic paper area determination result are 0 and the blank determination result is 1 is a blank document, regardless of the determination result of the overall histogram result. If the document acquired in step S102 is not a blank document, the control unit 100 next determines whether the document is a text document.

本実施形態では、特に、全体ヒストグラムの結果が1である場合、原稿が薄い文字の原稿又は地図等を含む原稿であると判定される。図14のE402に示すように、制御部100は、文字領域判定結果と全体ヒストグラム結果が1であり、網点領域判定結果と印画紙領域判定結果とブランク判定結果が0である場合は、原稿の種類が薄い文字の原稿と判定する。 In this embodiment, particularly when the result of the overall histogram is 1, the document is determined to be a document with faint text or a document containing a map, etc. As shown in E402 of FIG. 14, when the character area determination result and the overall histogram result are 1, and the halftone dot area determination result, photographic paper area determination result, and blank determination result are 0, the control unit 100 determines that the type of document is a document with faint text.

また、原稿の種類が薄い文字の原稿でない場合は、制御部100は、図14のE404に示すように、全体ヒストグラム結果が1であるか否かを判定する。全体ヒストグラム結果が1であれば、制御部100は、原稿の種類が地図等を含む原稿と判定する。 If the type of document is not a document with faint text, the control unit 100 determines whether the overall histogram result is 1, as shown at E404 in FIG. 14. If the overall histogram result is 1, the control unit 100 determines that the type of document is a document that includes a map or the like.

このようにして原稿の種類を判定したら、制御部100は、原稿の種類が薄い文字を含む原稿又は地図等を含む原稿であるか否かを判定する(ステップS404)。 After determining the type of document in this manner, the control unit 100 determines whether the document type is a document containing faint text or a document containing a map, etc. (step S404).

原稿の種類が薄い文字を含む原稿又は地図等を含む原稿である場合は、制御部100は、自動下地除去の処理をキャンセル(スキップ)する(ステップS404;Yes→ステップS124)。一方で、原稿の種類が薄い文字を含む原稿又は地図等を含む原稿ではない場合は、制御部100は、ステップS106からステップS112及びステップS122の処理を実行する(ステップS404;No)。 If the type of document is a document containing faint text or a document containing a map, the control unit 100 cancels (skips) the automatic background removal process (step S404; Yes -> step S124). On the other hand, if the type of document is not a document containing faint text or a document containing a map, the control unit 100 executes the processes from step S106 to step S112 and step S122 (step S404; No).

なお、図14に示すように、原稿の種類が薄い文字を含む原稿及び地図等を含む原稿に加えて、原稿の種類が、写真の原稿、印刷(網点)を含む原稿である場合も、制御部100は、自動下地除去の処理をキャンセル(スキップ)してもよい。 As shown in FIG. 14, in addition to documents containing faint text and documents containing maps, the control unit 100 may also cancel (skip) the automatic background removal process when the document type is a photograph document or a document containing printing (halftone dots).

上述した処理により、制御部100は、薄い文字を含む原稿や地図等を含む原稿といった全体的に薄い原稿に対して、下地除去により情報が欠落した画像を出力するといったことを防ぐことができる。 By performing the above-described process, the control unit 100 can prevent the output of an image with missing information due to background removal for documents that are generally faint, such as documents that contain faint text or maps.

本実施形態によれば、薄い文字を含む原稿や地図等を含む原稿のような、原稿の画像を明るくすることで除法が欠落してしまう画像に対しては、下地除去をキャンセルすることができる。これにより、画像形成装置は、原稿の種類に基づいて、適切に下地除去の実施及び不実施を切り替えることができる。 According to this embodiment, background removal can be canceled for images where brightening the image of the document would result in loss of detail, such as documents that contain faint text or maps. This allows the image forming device to appropriately switch between performing and not performing background removal based on the type of document.

[5.第5実施形態]
つづいて第5実施形態について説明する。第5実施形態は、ユーザによって、情報の欠落がある場合における処理の方法や、許容する情報の欠落の量(閾値)を設定することが可能な実施形態である。
[5. Fifth embodiment]
Next, a fifth embodiment will be described. The fifth embodiment is an embodiment in which a user can set a processing method in the case where there is a loss of information and an allowable amount of loss of information (threshold value).

本実施形態における画像形成装置12の機能構成を図15に示す。図15に示すように、画像形成装置12は、図2に示した画像形成装置10に比べて、さらに、制御部100が設定受付部112として機能する点が異なる。 The functional configuration of the image forming device 12 in this embodiment is shown in FIG. 15. As shown in FIG. 15, the image forming device 12 differs from the image forming device 10 shown in FIG. 2 in that the control unit 100 also functions as a setting reception unit 112.

設定受付部112は、情報の欠落がある場合における処理の方法や許容する情報の欠落の量を設定するための設定画面を表示部140に表示する。また、設定受付部112は、設定画面に対するユーザからの操作を受け付ける。 The setting reception unit 112 displays a setting screen on the display unit 140 for setting the processing method in the event of missing information and the amount of missing information to be tolerated. The setting reception unit 112 also receives operations from the user on the setting screen.

情報の欠落がある場合における処理の方法は、例えば、第1実施形態に示したしたように自動下地除去をキャンセルする方法と、第2実施形態に示したように下地除去の最適化を行う方法と、第3実施形態のように輪郭強調処理を実行する方法の何れかとする。また、許容する情報の欠落の量(閾値)は、例えば、判定割合を設定する。なお、閾値として、判定画素数や判定スコアを設定可能にしてもよい。また、制御部100は、設定画面を介した設定に基づいてメイン処理を実行する。 The processing method when there is missing information may be, for example, one of the following: canceling automatic background removal as shown in the first embodiment; optimizing background removal as shown in the second embodiment; or executing edge enhancement processing as shown in the third embodiment. The amount of information missing that is permitted (threshold) is set, for example, as a judgment ratio. Note that the number of judgment pixels or judgment score may be set as the threshold. The control unit 100 also executes the main processing based on the settings made via the setting screen.

図16は、設定受付部112が表示部140に表示する設定画面W500の例である。設定画面W500には、情報の欠落がある場合における処理の方法を選択することが可能なボタンを表示する領域E500と、許容する情報の欠落の量として判定割合(閾値)を設定するためのスライダーを表示する領域E504とが含まれる。また、設定画面W500には、設定内容を確定するためのOKボタンB500と、設定内容を取り消すためのキャンセルボタンB502とが含まれる。 Figure 16 is an example of a setting screen W500 that the setting reception unit 112 displays on the display unit 140. The setting screen W500 includes an area E500 that displays buttons that allow the user to select a processing method to be used when there is missing information, and an area E504 that displays a slider for setting a judgment ratio (threshold) as the amount of missing information that is acceptable. The setting screen W500 also includes an OK button B500 for confirming the settings, and a cancel button B502 for canceling the settings.

例えば、図16において、閾値の設定が1%である場合は、画像データ全体の画素数に対する差分画像に含まれる判定濃度値以上の濃度値を有する画素の数の割合が1%以上であるときには自動下地除去を行わないことを示す。同様に、図16において、閾値が10%であれば、画像データ全体の画素数に対する差分画像に含まれる判定濃度値以上の濃度値を有する画素の数の割合が10%以上であるときには自動下地除去を行わないことを示す。したがって、閾値が小さいほど、自動下地除去がキャンセル(スキップ)されやすくなる。 For example, in FIG. 16, if the threshold is set to 1%, this indicates that automatic background removal will not be performed when the ratio of the number of pixels in the difference image having a density value equal to or greater than the judgment density value to the total number of pixels in the image data is 1% or more. Similarly, in FIG. 16, if the threshold is set to 10%, this indicates that automatic background removal will not be performed when the ratio of the number of pixels in the difference image having a density value equal to or greater than the judgment density value to the total number of pixels in the image data is 10% or more. Therefore, the smaller the threshold, the more likely it is that automatic background removal will be canceled (skipped).

なお、設定画面W500には、領域E502に示すように、薄い文字を含む原稿や地図等を含む原稿に対しては、下地除去をキャンセルすることが選択できるボタンが含まれてもよい。薄い文字を含む原稿や地図等を含む原稿に対して下地除去をキャンセルすることが選択された場合は、制御部100は、第4実施形態に記載した処理を実行すればよい。 As shown in area E502, the setting screen W500 may include a button that allows the user to select canceling background removal for documents that include faint text or documents that include maps, etc. When the user selects to cancel background removal for documents that include faint text or documents that include maps, etc., the control unit 100 may execute the processing described in the fourth embodiment.

また、設定画面W500は設定画面の一例である。したがって、情報の欠落がある場合における処理の方法や、許容する情報の欠落の量(閾値)を設定できる画面であれば、設定画面W500に示した設定画面とは異なる画面が設定画面として表示されてもよい。 Also, the setting screen W500 is an example of a setting screen. Therefore, a screen different from the setting screen shown in the setting screen W500 may be displayed as the setting screen as long as it is a screen that allows the user to set the processing method in the event of missing information or the amount of missing information that is acceptable (threshold value).

本実施形態によれば、ユーザは、下地除去を行うことにより情報が欠落する場合の処理を所望する内容に切り替えたり、下地除去の処理の実施及び不実施を判定する際の基準となる閾値(許容する情報の欠落の量)を設定できたりする。 According to this embodiment, the user can switch to the desired processing when information is lost due to background removal, and can set a threshold value (the amount of information loss that is acceptable) that serves as a criterion for determining whether or not to perform background removal processing.

[6.変形例]
本開示は上述した各実施の形態に限定されるものではなく、種々の変更が可能である。すなわち、本開示の要旨を逸脱しない範囲内において適宜変更した技術的手段を組み合わせて得られる実施の形態についても本開示の技術的範囲に含まれる。
[6. Modifications]
The present disclosure is not limited to the above-described embodiments, and various modifications are possible. In other words, the technical scope of the present disclosure also includes embodiments obtained by combining technical means that are appropriately modified within the scope of the gist of the present disclosure.

また、上述した実施形態は、説明の都合上、それぞれ別に説明している部分があるが、技術的に可能な範囲で組み合わせて実行してもよいことは勿論である。 Although the above-mentioned embodiments are described separately for ease of explanation, they may of course be combined to the extent technically possible.

また、実施形態において各装置で動作するプログラムは、上述した実施形態の機能を実現するように、CPU等を制御するプログラム(コンピュータを機能させるプログラム)である。そして、これら装置で取り扱われる情報は、その処理時に一時的に一時記憶装置(例えば、RAM)に蓄積され、その後、各種ROM(Read Only Memory)やHDD等の記憶装置に格納され、必要に応じてCPUによって読み出し、修正・書き込みが行なわれる。 In the embodiments, the programs that run on each device are programs that control the CPU and other devices (programs that make the computer function) to realize the functions of the above-described embodiments. Information handled by these devices is temporarily stored in a temporary storage device (e.g., RAM) during processing, and is then stored in various storage devices such as ROMs (Read Only Memory) and HDDs, and is read, modified, and written by the CPU as necessary.

ここで、プログラムを格納する記録媒体としては、半導体媒体(例えば、ROMや、不揮発性のメモリカード等)、光記録媒体・光磁気記録媒体(例えば、DVD(Digital Versatile Disc)、MO(Magneto Optical Disc)、MD(Mini Disc)、CD(Compact Disc)、BD (Blu-ray(登録商標) Disk) 等)、磁気記録媒体(例えば、磁気テープ、フレキシブルディスク等)等の何れであってもよい。また、ロードしたプログラムを実行することにより、上述した実施形態の機能が実現されるだけでなく、そのプログラムの指示に基づき、オペレーティングシステムあるいは他のアプリケーションプログラム等と共同して処理することにより、本開示の機能が実現される場合もある。 The recording medium for storing the program may be any of semiconductor media (e.g., ROM, non-volatile memory cards, etc.), optical recording media, magneto-optical recording media (e.g., DVD (Digital Versatile Disc), MO (Magneto Optical Disc), MD (Mini Disc), CD (Compact Disc), BD (Blu-ray (registered trademark) Disk), etc.), and magnetic recording media (e.g., magnetic tape, flexible disk, etc.). In addition, not only are the functions of the above-mentioned embodiments realized by executing the loaded program, but the functions of the present disclosure may also be realized by processing in cooperation with an operating system or other application programs, etc., based on the instructions of the program.

また、市場に流通させる場合には、可搬型の記録媒体にプログラムを格納して流通させたり、インターネット等のネットワークを介して接続されたサーバコンピュータに転送したりすることができる。この場合、サーバコンピュータの記憶装置も本開示に含まれるのは勿論である。 When distributing the program on the market, the program can be stored on a portable recording medium and distributed, or transferred to a server computer connected via a network such as the Internet. In this case, the storage device of the server computer is of course also included in the present disclosure.

10、12 画像形成装置
100 制御部
102 領域分離部
104 画像処理部
106 エッジ検出部
108 情報欠落判定部
110 出力制御部
112 設定受付部
120 画像入力部
130 画像形成部
140 表示部
150 操作部
180 記憶部
182 画像データ記憶領域
184 下地除去テーブル
190 通信部
REFERENCE SIGNS LIST 10, 12 Image forming apparatus 100 Control unit 102 Region separation unit 104 Image processing unit 106 Edge detection unit 108 Information loss determination unit 110 Output control unit 112 Setting reception unit 120 Image input unit 130 Image forming unit 140 Display unit 150 Operation unit 180 Storage unit 182 Image data storage area 184 Background removal table 190 Communication unit

Claims (7)

第1の画像データを取得する取得部と、制御部とを備えた画像処理装置であって、
前記制御部は、
入力された前記第1の画像データに基づいて下地除去のレベルを決定し、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成し、
前記第1の画像データと、前記第2の画像データとの差分を算出し、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、
前記差分が、閾値未満となった場合には前記第2の画像データを出力する
ことを特徴とする画像処理装置。
An image processing device including an acquisition unit that acquires first image data and a control unit,
The control unit is
determining a level of background removal based on the input first image data;
performing a background removal process on the first image data based on the level of background removal to generate second image data having been subjected to background removal;
Calculating a difference between the first image data and the second image data;
When the difference is equal to or greater than a threshold value, the first image data is output.
When the difference is less than a threshold value, the second image data is output.
前記制御部は、
前記第1の画像データと、前記第2の画像データとのそれぞれにエッジ処理を実行した後に、前記差分を算出する
ことを特徴とする請求項1に記載の画像処理装置。
The control unit is
The image processing apparatus according to claim 1 , wherein the difference is calculated after edge processing is performed on each of the first image data and the second image data.
前記制御部は、
前記第1の画像データの下地領域と、それ以外との領域に分割し、
前記下地領域に基づいて前記下地除去のレベルを決定する
ことを特徴とする請求項1又は2に記載の画像処理装置。
The control unit is
Dividing the first image data into a background region and a region other than the background region;
3. The image processing apparatus according to claim 1, wherein a level of the background removal is determined based on the background region.
前記制御部は、
第1の下地除去のレベルに基づいて下地除去処理を実行したときに前記第1の画像データと前記第2の画像データとの差分が閾値以上となった場合、前記第2の画像データを出力する代わりに、前記第1の下地除去のレベルよりも低い第2の下地除去のレベルに基づいて下地除去処理を行った第3の画像データを生成し、
前記第1の画像データと、前記第3の画像データとの差分を算出し、
前記差分が、閾値未満となった場合には前記第3の画像データを出力する
ことを特徴とする請求項1から3のいずれか一項に記載の画像処理装置。
The control unit is
when a difference between the first image data and the second image data is equal to or greater than a threshold value when background removal processing is performed based on a first background removal level, instead of outputting the second image data, generate third image data by performing background removal processing based on a second background removal level lower than the first background removal level;
Calculating a difference between the first image data and the third image data;
4. The image processing apparatus according to claim 1, wherein the third image data is output when the difference is less than a threshold value.
前記制御部は、前記閾値を設定する操作を受け付ける画面を表示する制御を行うことを特徴とする請求項1から4の何れか一項に記載の画像処理装置。 The image processing device according to any one of claims 1 to 4, characterized in that the control unit controls displaying a screen that accepts an operation to set the threshold value. 入力された第1の画像データに基づいて下地除去のレベルを決定するステップと、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成するステップと、
前記第1の画像データと、前記第2の画像データとの差分を算出するステップと、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、前記差分が、閾値未満となった場合には前記第2の画像データを出力するステップと、
を含むことを特徴とする制御方法。
determining a level of background removal based on the input first image data;
performing a background removal process on the first image data based on the level of background removal to generate second image data that has been background removed;
calculating a difference between the first image data and the second image data;
outputting the first image data when the difference is equal to or greater than a threshold, and outputting the second image data when the difference is less than the threshold;
A control method comprising:
コンピュータに、
入力された第1の画像データに基づいて下地除去のレベルを決定する機能と、
前記下地除去のレベルに基づいて、前記第1の画像データに下地除去処理を行い、下地除去がされた第2の画像データを生成する機能と、
前記第1の画像データと、前記第2の画像データとの差分を算出する機能と、
前記差分が、閾値以上となった場合には前記第1の画像データを出力し、前記差分が、閾値未満となった場合には前記第2の画像データを出力する機能と、
を実現させることを特徴とするプログラム。
On the computer,
A function of determining a level of background removal based on the input first image data;
a function of performing background removal processing on the first image data based on the level of background removal to generate second image data from which background has been removed;
A function of calculating a difference between the first image data and the second image data;
a function of outputting the first image data when the difference is equal to or greater than a threshold value, and outputting the second image data when the difference is less than the threshold value;
A program characterized by realizing the above.
JP2020197478A 2020-11-27 2020-11-27 Image processing device, control method and program Active JP7531374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2020197478A JP7531374B2 (en) 2020-11-27 2020-11-27 Image processing device, control method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2020197478A JP7531374B2 (en) 2020-11-27 2020-11-27 Image processing device, control method and program

Publications (2)

Publication Number Publication Date
JP2022085677A JP2022085677A (en) 2022-06-08
JP7531374B2 true JP7531374B2 (en) 2024-08-09

Family

ID=81892394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2020197478A Active JP7531374B2 (en) 2020-11-27 2020-11-27 Image processing device, control method and program

Country Status (1)

Country Link
JP (1) JP7531374B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001285635A (en) 2000-03-28 2001-10-12 Sharp Corp Image processing apparatus, image processing method, and image forming apparatus
JP2003338930A (en) 2002-05-21 2003-11-28 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2011015172A (en) 2009-07-01 2011-01-20 Sharp Corp Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP2016192646A (en) 2015-03-31 2016-11-10 ブラザー工業株式会社 Computer program and image processing apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08336048A (en) * 1995-06-06 1996-12-17 Ricoh Co Ltd Color image processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001285635A (en) 2000-03-28 2001-10-12 Sharp Corp Image processing apparatus, image processing method, and image forming apparatus
JP2003338930A (en) 2002-05-21 2003-11-28 Sharp Corp Image processing method, image processing apparatus, and image forming apparatus
JP2011015172A (en) 2009-07-01 2011-01-20 Sharp Corp Device for processing image, device for forming image, method and program for processing image, and recording medium recording program for processing image
JP2016192646A (en) 2015-03-31 2016-11-10 ブラザー工業株式会社 Computer program and image processing apparatus

Also Published As

Publication number Publication date
JP2022085677A (en) 2022-06-08

Similar Documents

Publication Publication Date Title
US8494304B2 (en) Punched hole detection and removal
JP7050599B2 (en) Image processing device and image processing method
CN101140437A (en) Image forming apparatus, image forming method, and recording medium
CN101277371B (en) Image processing method, image processing apparatus, image forming apparatus, and recording device
US10659621B2 (en) Image processing apparatus, image processing method, and storage medium
US11588954B2 (en) Image processing device, control method, and non-transitory recording medium
US8345310B2 (en) Halftone frequency determination method and printing apparatus
US11283963B2 (en) Image processing apparatus and image processing method and storage medium
JP5206782B2 (en) Image processing apparatus, image processing method, and program
US9781308B2 (en) Non-transitory computer-readable medium
JP5531464B2 (en) Image processing program, image processing apparatus, and image processing method
JP4502001B2 (en) Image processing apparatus and image processing method
JP7531374B2 (en) Image processing device, control method and program
JP4050220B2 (en) Image processing method, image processing apparatus, image forming apparatus, program, and recording medium
JP7847504B2 (en) Image processing device, image processing method, and program
JP7382834B2 (en) Image processing device, image processing method, and program
CN107920184B (en) Image processing apparatus and image processing method
JP6474315B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium therefor
JP4101169B2 (en) Image processing apparatus, image processing method, and computer program
JP4084537B2 (en) Image processing apparatus, image processing method, recording medium, and image forming apparatus
JP4740913B2 (en) Image processing apparatus, image processing method, image forming apparatus and program, and recording medium
US20120194883A1 (en) Character detection apparatus, character detection method, and computer-readable storage medium
JP7804476B2 (en) Image processing device, image processing method and program
US9098768B2 (en) Character detection apparatus, character detection method, and computer-readable storage medium
JP2023114851A (en) Image processing device, control method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20230920

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20240626

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20240730

R150 Certificate of patent or registration of utility model

Ref document number: 7531374

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150