JP2012098811A - Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium - Google Patents

Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium Download PDF

Info

Publication number
JP2012098811A
JP2012098811A JP2010244216A JP2010244216A JP2012098811A JP 2012098811 A JP2012098811 A JP 2012098811A JP 2010244216 A JP2010244216 A JP 2010244216A JP 2010244216 A JP2010244216 A JP 2010244216A JP 2012098811 A JP2012098811 A JP 2012098811A
Authority
JP
Japan
Prior art keywords
image data
color
processing
image
character
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.)
Pending
Application number
JP2010244216A
Other languages
Japanese (ja)
Inventor
Yasutaka Hirayama
泰崇 平山
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 JP2010244216A priority Critical patent/JP2012098811A/en
Publication of JP2012098811A publication Critical patent/JP2012098811A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium in which the labor for a user to distinguish between a color document and a monochromatic document can be saved compatibly with preventing reduction in OCR precision from the monochromatic document.SOLUTION: An image processing apparatus which has a dropout color processing section which performs dropout color processing prior to character recognition processing includes a color determination section which determines whether input image data are image data produced by being read from a color document or a monochromatic document, and a control section which executes character recognition processing without performing dropout color processing on image data relating to the input image data in the case where the color determination section determines that the input image data are image data produced by being read from the monochromatic document.

Description

本発明は、原稿が読み取られて生成された画像データの文字認識を行う画像処理装置、画像形成装置、画像処理制御装置、画像処理制御方法、コンピュータプログラム、及び、記録媒体に関する。   The present invention relates to an image processing apparatus, an image forming apparatus, an image processing control apparatus, an image processing control method, a computer program, and a recording medium that perform character recognition of image data generated by reading a document.

従来、デジタルカラー複写機、複合機、ドキュメントスキャナ等の光学的に画像を読み取って処理する画像処理装置において、ドロップアウトカラー処理を行うことがある。ドロップアウトカラー処理は、OCR(Optical Character Recognition)における文字認識の精度向上を図ることを目的としている。具体的には、カラー枠線等、文字認識の精度低下の要因となる特定の色相(ドロップアウトカラー)を有する領域を消去し、文字認識に必要な黒文字のみを残す(例えば、特許文献1)。   Conventionally, dropout color processing is sometimes performed in an image processing apparatus that optically reads and processes an image, such as a digital color copying machine, a multifunction peripheral, and a document scanner. The purpose of the dropout color processing is to improve the accuracy of character recognition in OCR (Optical Character Recognition). Specifically, an area having a specific hue (dropout color) that causes a reduction in the accuracy of character recognition, such as a color frame line, is erased, and only black characters necessary for character recognition are left (for example, Patent Document 1). .

また、カラー原稿を読み取って得られた画像データであるか、モノクローム原稿を読み取って得られた画像データであるかを判別した結果に基づいて、実行する画像処理を異ならせる画像処理装置がある。このような装置では、原稿がカラーであるのかモノクロームであるのかの情報をユーザが入力する手間を省くことができ、さらに、原稿がカラーであるかモノクロームであるかに基づく画像データの特性に応じた画像処理を実行することができる。   In addition, there is an image processing apparatus that performs different image processing based on a result of determining whether image data is obtained by reading a color document or image data obtained by reading a monochrome document. In such an apparatus, it is possible to save the user from inputting information on whether the document is color or monochrome, and further according to the characteristics of the image data based on whether the document is color or monochrome. Image processing can be executed.

ところで、出力する画像データがモノクロームの場合には、必ずドロップアウトカラー処理を実行するように設定されている画像処理装置がある。これは、ドロップアウトカラー処理が、手書き文字等の黒文字を読み取る文字認識の精度の向上を目的としているからである。   By the way, when the output image data is monochrome, there is an image processing apparatus that is always set to execute dropout color processing. This is because the dropout color process aims at improving the accuracy of character recognition for reading black characters such as handwritten characters.

特開平10−27213号公報Japanese Patent Laid-Open No. 10-27213 特開2002−232708号公報Japanese Patent Laid-Open No. 2002-232708 特開平4−282968号公報JP-A-4-282968

しかしながら、モノクローム原稿を読み取った画像データにドロップアウトカラー処理を実行すると、色ずれが生じているときに、黒文字エッジがドロップアウトカラーの対象領域と判定されることがある。この結果、黒文字エッジが除去されてしまい、文字が細くなる、又は、文字がかすれる等の劣化が発生する。これは、文字認識の精度が低下する要因となる。   However, when dropout color processing is performed on image data obtained by reading a monochrome document, a black character edge may be determined as a dropout color target area when color misregistration occurs. As a result, the black character edge is removed, and deterioration such as thinning of the character or fading of the character occurs. This is a factor that decreases the accuracy of character recognition.

本発明は斯かる事情に鑑みてなされたものであり、ユーザがカラー原稿とモノクローム原稿とを区別する手間を省くことと、モノクローム原稿からのOCR精度を低下させないこととを、両立させる画像処理装置、画像形成装置、画像処理制御装置、画像処理制御方法、コンピュータプログラム、及び、記録媒体を提供することを目的とする。   The present invention has been made in view of such circumstances, and an image processing apparatus that allows the user to save time and effort to distinguish between a color original and a monochrome original and does not reduce the OCR accuracy from the monochrome original. An object of the present invention is to provide an image forming apparatus, an image processing control apparatus, an image processing control method, a computer program, and a recording medium.

本発明に係る画像処理装置は、文字認識処理に先んじてドロップアウトカラー処理を行うドロップアウトカラー処理部を有する画像処理装置において、入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するカラー判定部と、該カラー判定部が、前記入力画像データは、モノクローム原稿から読み取られて生成された画像データと判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定する制御部とを有することを特徴とする。   An image processing apparatus according to the present invention includes an image processing apparatus having a dropout color processing unit that performs dropout color processing prior to character recognition processing, and generates input image data by reading from either a color document or a monochrome document. A color determination unit that determines whether the input image data is generated, and the color determination unit determines that the input image data is image data generated by reading from a monochrome document. And a control unit that determines to execute the character recognition process without executing the dropout color process for the image data.

本発明にあっては、ユーザがカラー原稿とモノクローム原稿とを区別する手間を省くことと、モノクローム原稿から読み取られた画像データの文字認識の精度をドロップアウトカラー処理により低下させないこととを、両立させることができる。   In the present invention, both the user's trouble of distinguishing between a color document and a monochrome document and the character recognition accuracy of image data read from the monochrome document are not reduced by the dropout color processing. Can be made.

また、本発明に係る画像処理装置は、前記入力画像データに、文字画像が含まれるか否かを判定する文字判定部を有し、前記制御部は、前記カラー判定部が前記入力画像データはカラー原稿から読み取られて生成されたと判定し、さらに、前記文字判定部が前記入力画像データに文字画像が含まれると判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するように構成されていることを特徴とする。   The image processing apparatus according to the present invention further includes a character determination unit that determines whether or not a character image is included in the input image data, and the control unit is configured such that the color determination unit and the input image data are When it is determined that the image is read and generated from a color document, and the character determination unit determines that a character image is included in the input image data, dropout color processing and image data related to the input image data It is characterized by determining to perform a character recognition process.

本発明にあっては、文字画像が含まれると判定された場合にドロップアウトカラー処理及び文字認識処理を行うので、全体の処理に係る時間を短縮することができる。   In the present invention, the dropout color process and the character recognition process are performed when it is determined that a character image is included, so that the time required for the entire process can be reduced.

また、本発明に係る画像処理装置は、前記入力画像データの中の文字画像を含む領域を特定する文字領域特定部を有し、前記制御部は、前記入力画像データに係る画像データの中の前記文字領域特定部が特定した領域に対応する領域に対し前記ドロップアウトカラー処理及び前記文字認識処理を実行させることを決定するように構成されていることを特徴とする。   The image processing apparatus according to the present invention further includes a character area specifying unit that specifies an area including a character image in the input image data, and the control unit includes the image data in the input image data. The character area specifying unit is configured to determine that the dropout color process and the character recognition process are to be performed on an area corresponding to the area specified by the character area specifying unit.

本発明にあっては、ドロップアウトカラー処理を実行する領域を小さくすることができるので、全体の処理に係る時間を短縮することができる。   In the present invention, the area for executing the dropout color processing can be reduced, so that the time required for the entire processing can be shortened.

また、本発明に係る画像処理装置は、前記入力画像データに下地画像が含まれるか否かを判定する下地判定部と、前記下地判定部が、前記入力画像データは下地画像を含むと判定した場合に、前記入力画像データに係る画像データに対して下地除去を行う下地除去部とを有し、前記制御部は、前記下地除去部が下地除去した後の画像データに対し、ドロップアウトカラー処理及び文字認識処理を実行させるように構成されていることを特徴とする。   Further, the image processing apparatus according to the present invention determines that the input image data includes a background image, and a background determination unit that determines whether the input image data includes a background image, and the background determination unit. A background removal unit that performs background removal on the image data related to the input image data, and the control unit performs dropout color processing on the image data after the background removal unit removes the background And a character recognition process.

本発明にあっては、原稿の下地の影響を排除してドロップアウトカラー処理を実行することができる。   In the present invention, the dropout color process can be executed while eliminating the influence of the background of the document.

また、本発明に係る画像形成装置は、本発明の何れか一つの画像処理装置を有し、さらに、画像データに対して媒体上に前記画像データの画像を形成するための画像処理を行う画像処理部と、該画像処理部が前記画像処理を実行した画像データの画像を媒体上に形成して出力させる画像形成部とを有することを特徴とする。   An image forming apparatus according to the present invention includes any one of the image processing apparatuses according to the present invention, and further performs image processing for forming an image of the image data on a medium with respect to the image data. The image processing apparatus includes: a processing unit; and an image forming unit that forms and outputs an image of image data on which the image processing unit has performed the image processing on a medium.

本発明にあっては、本発明に係る画像処理装置と同様の効果を奏する画像形成装置を提供することができる。   In the present invention, it is possible to provide an image forming apparatus having the same effects as the image processing apparatus according to the present invention.

また、本発明に係る画像処理制御装置は、入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるのかの判定、及び、文字認識処理に先んじて行われるドロップアウトカラー処理を実行するか否かの決定を実行する画像処理制御装置であって、前記入力画像データが、モノクローム原稿から読み取られて生成された画像データと判定された場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定する制御部を有することを特徴とする。   In addition, the image processing control apparatus according to the present invention determines whether input image data is image data generated by reading from a color document or a monochrome document, and performs a drop performed prior to character recognition processing. An image processing control apparatus for executing a determination as to whether or not to execute out-color processing, wherein the input image data is determined when the input image data is determined to be image data generated by reading from a monochrome document. And a control unit that determines to perform character recognition processing without performing dropout color processing on the image data.

本発明にあっては、本発明に係る画像処理装置と同様の効果を奏する画像処理制御装置を提供する。   The present invention provides an image processing control device that exhibits the same effects as the image processing device according to the present invention.

また、本発明に係る画像処理制御方法は、文字認識処理に先んじるドロップアウトカラー処理を実行するか否かを選択する、画像処理制御方法であって、画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するステップと、該ステップで、前記画像データは、モノクローム原稿から読み取られて生成されたと判定した場合に、前記画像データに係る画像データに対し前記ドロップアウトカラー処理を実行させることなく前記文字認識処理を実行させることを決定するステップとを有することを特徴とする。   An image processing control method according to the present invention is an image processing control method for selecting whether or not to perform dropout color processing prior to character recognition processing, wherein the image data includes color documents and monochrome documents. A step of determining from which image data is read and generated; and in the step, when it is determined that the image data is read and generated from a monochrome document, the image data related to the image data is And determining to execute the character recognition process without executing the dropout color process.

本発明にあっては、本発明に係る画像処理装置と同様の効果を奏する画像処理制御方法を提供する。   The present invention provides an image processing control method that exhibits the same effects as the image processing apparatus according to the present invention.

また、本発明に係るコンピュータプログラムは、文字認識処理に先んじるドロップアウトカラー処理を実行するか否かをコンピュータに選択させるためのコンピュータプログラムにおいて、コンピュータに、入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するカラー判定ステップと、該カラー判定ステップで、前記入力画像データは、モノクローム原稿から読み取られて生成された画像データと判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定するステップとを実行させることを特徴とする。   The computer program according to the present invention is a computer program for causing a computer to select whether or not to execute dropout color processing prior to character recognition processing. A color determination step for determining which image data is read and generated, and the input image data is determined to be image data generated by reading from a monochrome document in the color determination step. And a step of determining that character recognition processing is to be performed without performing dropout color processing on the image data related to the input image data.

また、本発明に係るコンピュータプログラムは、前記コンピュータに、前記入力画像データに、文字画像が含まれるか否かを判定する文字判定ステップと、前記カラー判定ステップで、前記入力画像データがカラー原稿から読み取られて生成されたと判定され、さらに、前記文字判定ステップで、前記入力画像データに文字画像が含まれると判定された場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するステップとをさらに実行させることを特徴とする。   According to another aspect of the present invention, there is provided a computer program, wherein the input image data is obtained from a color original in the character determination step for determining whether or not the input image data includes a character image and the color determination step. If it is determined that the input image data includes a character image, and the character determination step determines that the input image data includes a character image, dropout color processing and characters are performed on the image data related to the input image data. And a step of determining to execute the recognition process.

また、本発明に係るコンピュータプログラムは、前記コンピュータに、前記入力画像データに、文字画像が含まれるか否かを判定する文字判定ステップと、前記入力画像データの中の文字画像を含む領域を特定する文字領域特定ステップと、前記カラー判定ステップで、前記入力画像データがカラー原稿から読み取られて生成されたと判定され、さらに、前記文字判定ステップで、前記入力画像データに文字画像が含まれると判定された場合に、前記入力画像データに係る画像データの中の前記文字領域判別ステップで特定された領域に対応する領域に対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するステップとをさらに実行させることを特徴とする。   Further, the computer program according to the present invention specifies, in the computer, a character determination step for determining whether or not a character image is included in the input image data, and an area including the character image in the input image data. In the character region specifying step and the color determining step, it is determined that the input image data is read and generated from a color original, and in the character determining step, it is determined that the input image data includes a character image. Determining whether to perform dropout color processing and character recognition processing on an area corresponding to the area specified in the character area determination step in the image data related to the input image data. Furthermore, it is made to perform.

本発明に係るコンピュータプログラムにあっては、本発明に係る画像処理装置と同様の効果を奏する。   The computer program according to the present invention has the same effects as the image processing apparatus according to the present invention.

また、本発明に係る記録媒体は、本発明の何れか一つのコンピュータプログラムを記録したことを特徴とする。   In addition, a recording medium according to the present invention records any one of the computer programs of the present invention.

本発明に係る記録媒体にあっては、本発明に係るコンピュータプログラムと同様の効果を奏する。   The recording medium according to the present invention has the same effects as the computer program according to the present invention.

本発明によれば、ユーザがカラー原稿とモノクローム原稿とを区別する手間を省くことと、モノクローム原稿からのOCR精度を低下させないこととを、両立させることを実現する画像処理装置、画像形成装置、画像処理制御装置、画像処理制御方法、コンピュータプログラム、及び、記録媒体を提供することができる。   According to the present invention, an image processing apparatus, an image forming apparatus, and an image processing apparatus that can achieve both a user's trouble of distinguishing between a color document and a monochrome document and a reduction in OCR accuracy from a monochrome document. An image processing control apparatus, an image processing control method, a computer program, and a recording medium can be provided.

本実施の形態に係る画像処理装置及び周辺の装置を説明する図である。It is a figure explaining the image processing apparatus and peripheral apparatus which concern on this Embodiment. 画像処理装置の詳細を説明する図である。It is a figure explaining the detail of an image processing apparatus. 原稿判定部の機能構成の例を示すブロック図である。3 is a block diagram illustrating an example of a functional configuration of a document determination unit. FIG. ヒストグラムの例を示す図である。It is a figure which shows the example of a histogram. 下地除去の階調補正曲線を示す図である。It is a figure which shows the gradation correction curve of background removal. ドロップアウトカラー処理部の機能構成を示すブロック図であ。It is a block diagram which shows the function structure of a dropout color process part. γ補正テーブルを示す図である。It is a figure which shows a gamma correction table. 本実施の形態に係る画像処理方法を説明するフローチャートである。It is a flowchart explaining the image processing method which concerns on this Embodiment. 文字認識を行う場合に、処理を行う各部と各部が出力するデータ形式とを示す図である。It is a figure which shows each part which processes, and the data format which each part outputs, when performing character recognition. 文字認識を行わない場合に、処理を行う各部と各部が出力するデータ形式とを示す図である。It is a figure which shows each part which processes, and the data format which each part outputs, when not performing character recognition. ドロップアウトカラー処理を説明するフローチャートである。It is a flowchart explaining dropout color processing. 画像データにテキストデータを付加する処理を説明するフローチャートである。It is a flowchart explaining the process which adds text data to image data. モノクロームの画素のみで構成されている原稿に対して、ドロップアウトカラー処理が選択された場合の文字認識の例を示す図である。FIG. 10 is a diagram illustrating an example of character recognition when dropout color processing is selected for an original composed only of monochrome pixels. 本実施の形態に係る画像処理方法の異なる例を説明するフローチャートである。It is a flowchart explaining the example from which the image processing method which concerns on this Embodiment differs. ステップS203の原稿判定処理の詳細を説明するフローチャートである。10 is a flowchart illustrating details of document determination processing in step S203. 文字画像の領域に属する画素にドロップアウトカラー処理を行う処理を説明するフローチャートである。It is a flowchart explaining the process which performs a dropout color process to the pixel which belongs to the area | region of a character image. 文字画像の領域の画像データにテキストデータを付加する処理の詳細を説明するフローチャートである。It is a flowchart explaining the detail of the process which adds text data to the image data of the area | region of a character image. 本実施の形態に係る画像形成装置のハードウェア構成の例を説明する図である。2 is a diagram illustrating an example of a hardware configuration of an image forming apparatus according to the present embodiment. FIG.

以下、本発明の実施の形態を図面に基づいて詳述する。なお、以下の実施の形態では、輝度及び濃度の値がより小さい色がより暗い(濃い)色であり、輝度及び濃度の値がより大きい色がより明るい(薄い)色である。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following embodiments, a color having a smaller luminance and density value is a darker (darker) color, and a color having a larger luminance and density value is a brighter (lighter) color.

図1は、本実施の形態に係る画像処理装置及び周辺の装置を説明する図である。図1の画像処理装置1は、画像入力装置5、画像出力装置6、及び、送受信装置8が接続される。   FIG. 1 is a diagram for explaining an image processing apparatus and peripheral apparatuses according to the present embodiment. 1 is connected to an image input device 5, an image output device 6, and a transmission / reception device 8.

画像処理装置1は、画像入力装置5から入力される画像データを処理して画像出力装置6又は送受信装置8に出力する。画像処理装置1の詳細は、後述する。   The image processing device 1 processes image data input from the image input device 5 and outputs the processed image data to the image output device 6 or the transmission / reception device 8. Details of the image processing apparatus 1 will be described later.

画像入力装置5は、例えば、原稿を光学的に読み取って画像データを出力する。画像入力装置5は、CCD(Charge Coupled Device)を有する図示しないラインセンサを有する。ラインセンサは、原稿が反射する光をR(赤)、G(緑)、B(青)に色分解された電気信号、すなわち、カラー画像信号(RGBアナログ信号)を出力する。   For example, the image input device 5 optically reads a document and outputs image data. The image input device 5 has a line sensor (not shown) having a CCD (Charge Coupled Device). The line sensor outputs an electrical signal obtained by color-separating light reflected by the document into R (red), G (green), and B (blue), that is, a color image signal (RGB analog signal).

画像出力装置6は、画像処理装置1が出力する画像データから出力画像を形成して出力する。画像出力装置6に入力される画像データは、例えば、CMYK信号による画像データである。画像出力装置6は、例えば、電子写真方式プリンタ又はインクジェット方式プリンタ等の画像を媒体に形成する装置(プロッタ)である。   The image output device 6 forms an output image from the image data output by the image processing device 1 and outputs the output image. The image data input to the image output device 6 is, for example, image data based on CMYK signals. The image output apparatus 6 is an apparatus (plotter) that forms an image on a medium, such as an electrophotographic printer or an inkjet printer.

送受信装置8は、画像出力装置6が出力する画像データを外部の装置に送信する。画像処理装置1から送受信装置8に入力される画像データは、例えば、PDF形式の画像データである。送受信装置8は、PDF形式の画像データを電子メールに添付しネットワークを介して他の装置に送信する。送受信装置8は、また、他の装置からの画像データ又は制御信号を受信する。   The transmission / reception device 8 transmits the image data output from the image output device 6 to an external device. The image data input from the image processing apparatus 1 to the transmission / reception apparatus 8 is, for example, image data in PDF format. The transmission / reception device 8 attaches image data in PDF format to an electronic mail and transmits it to another device via a network. The transmission / reception device 8 also receives image data or control signals from other devices.

図2は、画像処理装置1の詳細を説明する図である。
画像処理装置1は、画像処理部10、記憶部41、及び、制御部42を有する。画像処理部10は、画像入力装置5から入力されるRGBアナログ信号をデジタル信号に変換して入力画像データを生成し、各種の画像処理を行い、処理された画像データを画像出力装置6又は送受信装置8に出力する。画像処理部10は、また、入力画像データ、又は、入力画像データが画像処理されて中間生成する中間画像データを、記憶部41に格納させる。
FIG. 2 is a diagram for explaining the details of the image processing apparatus 1.
The image processing apparatus 1 includes an image processing unit 10, a storage unit 41, and a control unit 42. The image processing unit 10 converts the RGB analog signal input from the image input device 5 into a digital signal to generate input image data, performs various image processing, and transmits the processed image data to the image output device 6 or transmission / reception. Output to device 8. The image processing unit 10 also causes the storage unit 41 to store input image data or intermediate image data that is intermediately generated by image processing of the input image data.

記憶部41は、画像データを格納する。記憶部41が格納する画像データは、画像処理部10が処理する中間画像データである。記憶部41が格納する画像データは、画像入力装置5から入力されるRGBアナログ信号が変換された入力画像データ、画像処理部10から画像出力装置6に対して出力される前の画像データ、及び、送受信装置8が送受信する画像データでもよい。   The storage unit 41 stores image data. The image data stored in the storage unit 41 is intermediate image data processed by the image processing unit 10. The image data stored in the storage unit 41 includes input image data obtained by converting RGB analog signals input from the image input device 5, image data before being output from the image processing unit 10 to the image output device 6, and Image data transmitted and received by the transmission / reception device 8 may be used.

記憶部41は、画像データを、例えば、JPEG圧縮アルゴリズムに基づいてJPEGコードに圧縮した後に格納する。記憶部41は、例えば、ハードディスク装置として構成されるとよい。   The storage unit 41 stores the image data after compressing it into a JPEG code based on, for example, a JPEG compression algorithm. The storage unit 41 may be configured as a hard disk device, for example.

制御部42は、記憶部41に画像データを格納させる制御、記憶部41が格納する画像データの管理、画像処理部10が有する各部の動作の制御を行う。制御部42は、例えば、CPU(Central Processing Unit)、又は、DSP(Digital Signal Processor)として構成される。   The control unit 42 performs control for storing image data in the storage unit 41, management of image data stored in the storage unit 41, and control of operations of each unit included in the image processing unit 10. The control unit 42 is configured as, for example, a CPU (Central Processing Unit) or a DSP (Digital Signal Processor).

画像処理部10は、アナログ・デジタル変換部(以下、「A/D変換部」という。)11、シェーディング補正部12、入力処理部13、原稿判定部14、下地除去部15、ドロップアウトカラー処理部16、色補正部17、黒生成/下色除去部18、空間フィルタ部19、出力階調補正部20、中間調生成部21、領域分離部22、文字認識部31、描画コマンド生成部32、及び、フォーマット化処理部33を有する。   The image processing unit 10 includes an analog / digital conversion unit (hereinafter referred to as “A / D conversion unit”) 11, a shading correction unit 12, an input processing unit 13, a document determination unit 14, a background removal unit 15, and dropout color processing. 16, color correction unit 17, black generation / undercolor removal unit 18, spatial filter unit 19, output tone correction unit 20, halftone generation unit 21, region separation unit 22, character recognition unit 31, drawing command generation unit 32 And a formatting processor 33.

A/D変換部11は、画像入力装置5から入力されるRGBアナログ信号を、デジタル信号に変換する。シェーディング補正部12は、デジタル信号に含まれている歪みを除去する。除去される歪みは、例えば、画像入力装置5が原稿を光学的に読み取る際の、照明系、結像系、及び、撮像系で生じる歪みである。入力処理部13は、デジタル信号に対しγ補正を行う。   The A / D converter 11 converts the RGB analog signal input from the image input device 5 into a digital signal. The shading correction unit 12 removes distortion included in the digital signal. The distortion to be removed is, for example, distortion generated in the illumination system, the imaging system, and the imaging system when the image input apparatus 5 optically reads a document. The input processing unit 13 performs γ correction on the digital signal.

なお、シェーディング補正部12及び入力処理部13により処理された画像データを、入力画像データといい、入力画像データに対して、少なくとも一つ以上の画像処理が行われた後の画像データを中間画像データという。また、入力画像データと中間画像データとをあわせて処理画像データという。入力画像データは、JPEGコードに変換された後に、記憶部41に格納されるとよい。   The image data processed by the shading correction unit 12 and the input processing unit 13 is referred to as input image data, and the image data after at least one or more image processing is performed on the input image data is an intermediate image. It is called data. The input image data and the intermediate image data are collectively referred to as processed image data. The input image data may be stored in the storage unit 41 after being converted into a JPEG code.

原稿判定部14は、入力画像データから、読み取られた原稿の特性を判定する原稿判定処理を実行する。原稿判定部14は、判定した結果を、原稿判別データとして出力する。原稿判定処理は、原稿種別の判別、下地の有無の判定、及び、カラー判定を含む。図3は、原稿判定部14の機能構成の例を示すブロック図である。原稿判定部14は、原稿種別判別部141、下地判定部143、及び、カラー判定部145を有する。なお、原稿判定部14は、原稿種別判別部141、及び、下地判定部143を有さなくてもよい。   The document determination unit 14 executes document determination processing for determining the characteristics of the read document from the input image data. The document determination unit 14 outputs the determination result as document determination data. The document determination process includes document type determination, background presence / absence determination, and color determination. FIG. 3 is a block diagram illustrating an example of a functional configuration of the document determination unit 14. The document determination unit 14 includes a document type determination unit 141, a background determination unit 143, and a color determination unit 145. The document determination unit 14 may not include the document type determination unit 141 and the background determination unit 143.

原稿種別判別部141は、原稿種別の判別を行う。より詳細には、例えば、読み取られた原稿が、文字画像を含むか否かを判別する。原稿種別判別部141は、例えば、読み取られた原稿の種別が、文字原稿、印刷写真原稿、及び、文字と印刷写真とが混在した文字印刷写真原稿の何れの種別であるかを判定する。原稿種別判別部141は、例えば、特許文献2に記載の方法を用いて、原稿の種別を判別する。以下の(1)から(7)は、特許文献2に記載の方法の概要である。   The document type determination unit 141 determines the document type. More specifically, for example, it is determined whether or not the read document includes a character image. The document type determination unit 141 determines, for example, whether the type of the read document is a character document, a printed photo document, or a character printed photo document in which characters and a printed photo are mixed. The document type determination unit 141 determines the type of document using, for example, the method described in Patent Document 2. The following (1) to (7) are the outline of the method described in Patent Document 2.

(1)注目画素を含むn×m(例えば、7×15)のブロックにおける最小濃度値、及び、最大濃度値を算出する。
(2)算出された最小濃度値及び最大濃度値を用いて最大濃度差を算出する。
(3)隣接する画素の濃度差の絶対値の総和である総和濃度繁雑度(例えば、主走査方向と副走査方向について算出した値の和)を算出する。
(4)算出された最大濃度差と最大濃度差閾値との比較及び算出された総和濃度繁雑度と総和濃度繁雑度閾値との比較を行う。
最大濃度差<最大濃度差閾値、及び、総和濃度繁雑度<総和濃度繁雑度閾値
のとき、注目画素は下地・印画紙写真領域に属すると判定する。
上記条件を満たさないとき、注目画素は文字・網点領域に属すると判定する。
(1) The minimum density value and the maximum density value in an n × m (for example, 7 × 15) block including the target pixel are calculated.
(2) The maximum density difference is calculated using the calculated minimum density value and maximum density value.
(3) The total density busyness (for example, the sum of values calculated in the main scanning direction and the sub-scanning direction), which is the sum of absolute values of density differences between adjacent pixels, is calculated.
(4) A comparison between the calculated maximum density difference and the maximum density difference threshold and a comparison between the calculated total density busyness and the total density busyness threshold are performed.
When the maximum density difference <the maximum density difference threshold and the total density busyness <the total density busyness threshold, it is determined that the target pixel belongs to the background / photographic paper photograph area.
When the above condition is not satisfied, it is determined that the target pixel belongs to the character / halftone dot region.

(5)下地・印画紙写真領域に属すると判定された画素について
注目画素が、
最大濃度差<下地・印画紙写真判定閾値
を満たすとき、下地画素であると判定し、上記条件を満たさないとき、印画紙写真(写真領域、連続階調領域)画素であると判定する。
(5) About the pixel determined to belong to the background / photographic paper photograph area
When the maximum density difference <the background / photographic paper photograph determination threshold is satisfied, the pixel is determined to be a background pixel. When the above condition is not satisfied, the pixel is determined to be a photographic paper photograph (photo region, continuous tone region) pixel.

(6)文字・網点領域に属すると判定された画素について
注目画素が、
総和濃度繁雑度<最大濃度差に文字・網点判定閾値を掛けた値
の条件を満たすとき、文字画素であると判定し、上記条件を満たさないとき、網点画素であると判定する。
(6) Regarding the pixel determined to belong to the character / halftone dot region
When the condition of total density busyness <maximum density difference multiplied by a character / halftone dot determination threshold is satisfied, it is determined as a character pixel, and when the above condition is not satisfied, it is determined as a halftone pixel.

(7)下地領域、印画紙写真領域、文字領域、及び、網点領域に分類された画素数をカウントし、それぞれのカウント値と予め定められている下地領域、印画紙写真領域、網点領域及び文字領域に対する閾値と比較して原稿全体の種別を判定する。例えば、文字、網点、印画紙写真の順に検出精度が高いとすると、文字領域の比率が全画素数の30%以上の場合には文字原稿、網点領域の比率が全画素数の20%以上の場合には網点原稿(印刷写真原稿)、印画紙写真領域の比率が全画素数の10%以上の場合には印画紙写真原稿であると判定する。また、文字領域の比率と網点領域の比率とが、それぞれ閾値以上であるとき、文字/網点原稿(文字印刷写真原稿)であると判定する。 (7) Count the number of pixels classified into a background area, a photographic paper photograph area, a character area, and a halftone dot area, and count values and predetermined ground areas, a photographic paper photograph area, and a halftone dot area. The type of the entire document is determined by comparing with the threshold value for the character area. For example, assuming that the detection accuracy is higher in the order of characters, halftone dots, and photographic paper photographs, the ratio of the text original and halftone areas is 20% of the total number of pixels when the ratio of the character areas is 30% or more of the total number of pixels In the above case, when the ratio of the halftone original (printed photo original) and the photographic paper photo area is 10% or more of the total number of pixels, it is determined that the image is a photographic paper photo original. Further, when the ratio of the character area and the ratio of the halftone dot area are equal to or greater than the threshold value, respectively, it is determined that the character / halftone original (character-printed photo original).

原稿種別判別部141は、原稿種別の判別を行う際、全ての画素を対象とするのではなく、画素をサンプリングして原稿種別の判別を行ってもよい。原稿種別判別部141は、画素を識別する際、閾値付近の特徴量を有する画素を除外し、有意な特徴量を有する画素を選択して原稿種別の判別を行うようにしてもよい。   When determining the document type, the document type determination unit 141 may determine the document type by sampling pixels instead of targeting all the pixels. When identifying a pixel, the document type determination unit 141 may exclude a pixel having a feature amount near a threshold and select a pixel having a significant feature amount to determine the document type.

原稿種別は、図示しない操作パネルからユーザが入力してもよい。操作パネルから入力される原稿種別の情報は、制御部42が取得する。   The user may input the document type from an operation panel (not shown). Information on the document type input from the operation panel is acquired by the control unit 42.

下地判定部143は、読み取られた原稿が有する下地濃度を判定する。下地濃度は、例えば、原稿紙の色である。下地判定部143は、まず、RGB信号として入力されたデータから輝度信号を取得する。輝度信号の取得は、例えば、次式(1)を用いる。
=0.30R+0.59G+0.11B・・・(1)
但し、Y:各画素の輝度信号、
、G、B:各画素の色成分
The background determination unit 143 determines the background density of the read document. The background density is, for example, the color of original paper. The background determination unit 143 first acquires a luminance signal from data input as an RGB signal. For example, the following equation (1) is used to acquire the luminance signal.
Y j = 0.30R j + 0.59G j + 0.11B j (1)
Where Y j : luminance signal of each pixel,
R j , G j , B j : Color components of each pixel

輝度信号に代えて、CIE L信号(CIE: Commission International de l’Eclairage :国際照明委員会。L:明度、a、b:色度)等の均等色空間に変換して明度信号を求めても良い。 Instead of the luminance signal, it is converted into a uniform color space such as CIE L * a * b * signal (CIE: Commission International de l'Eclairage: International Lighting Commission. L * : brightness, a * , b * : chromaticity) Then, the brightness signal may be obtained.

下地判定部143は、求めた輝度信号又は明度信号に基づいて、画像全体のヒストグラムを作成する。図4は、ヒストグラムの例を示す図である。作成したヒストグラム中で、最も頻度が高く、度数が閾値th1以上の輝度又は明度を下地部分とみなし、このときの輝度又は明度Yと予め設定した閾値th2とを比較する。 The background determination unit 143 creates a histogram of the entire image based on the obtained luminance signal or lightness signal. FIG. 4 is a diagram illustrating an example of a histogram. In histogram created, most frequent high frequency is regarded as the threshold value th1 or more luminance or lightness background portion, is compared with the threshold value th2 set in advance with the luminance or brightness Y f in this case.

なお、閾値th1は、下地と判断される画素数の最小値である。閾値th1は、例えば、原稿サイズと下地と判断される画素数の最小値とを対応付けて格納しておき、原稿サイズの検知結果に対応づけて設定されるとよい。また、閾値th2は、下地と判断する濃度値の上限値である。   The threshold th1 is the minimum value of the number of pixels determined to be the background. For example, the threshold value th1 may be set in association with the document size detection result by storing the document size and the minimum value of the number of pixels determined to be the background. The threshold th2 is an upper limit value of the density value determined as the background.

下地判定部143は、Y≦th2の場合には、下地の濃度(輝度又は明度)が閾値を下回っている、すなわち、下地が検知されていると判定する。下地判定部143は、それ以外の場合には下地が所定の濃度(輝度又は明度)以上である、すなわち、下地なしと判定する。 When Y f ≦ th2, the background determination unit 143 determines that the background density (luminance or brightness) is below the threshold, that is, the background is detected. In other cases, the background determination unit 143 determines that the background is equal to or higher than a predetermined density (luminance or brightness), that is, no background.

下地判定部143は、また、読み取られた原稿が、無地の原稿(ブランク原稿)であるか否かの判定を行う。   The background determination unit 143 also determines whether or not the read original is a plain original (blank original).

下地判定部143による判定結果に基づいて、下地除去部15が下地除去を行う。   Based on the determination result by the background determination unit 143, the background removal unit 15 performs background removal.

カラー判定部145は、入力画像データに対して、自動カラー判定処理(以下、「ACS(Auto Color Selection)」という。)を行う。ACSは、カラー原稿から読み取られた画像データと、モノクローム原稿から読み取られた画像データとの何れであるかを判定する処理である。   The color determination unit 145 performs automatic color determination processing (hereinafter referred to as “ACS (Auto Color Selection)”) on the input image data. ACS is a process for determining whether image data read from a color original or image data read from a monochrome original.

カラー判定部145は、例えば、操作者により選択されたカラーモードが「自動」である場合に、ACSを実行する。カラーモードは、例えば、操作パネルの初期画面より、フルカラー、自動、白黒のうちの何れかが操作者により選択される。カラー判定部145は、また、全ての入力画像データに対してACSを行ってもよい。   For example, the color determination unit 145 executes ACS when the color mode selected by the operator is “automatic”. As the color mode, for example, the operator selects one of full color, automatic, and black and white from the initial screen of the operation panel. The color determination unit 145 may also perform ACS on all input image data.

ACSは、例えば、特許文献3に記載されている方法を適用するとよい。特許文献3に記載の方法によれば、画素毎にカラー画素であるかモノクローム画素であるかを判定し、与えられる画素順で所定数以上の連続するカラー画素の存在が検知されると、この連続カラー画素分をカラーブロックと認識し、1ライン中に所定数以上のカラーブロックが存在していれば、そのラインをカラーラインとして計数する。そして、一枚の原稿から読み取られた入力画像データにカラーラインが所定数存在していればカラー原稿と判定し、そうでない場合はモノクローム画像と判定する。   For the ACS, for example, a method described in Patent Document 3 may be applied. According to the method described in Patent Document 3, it is determined whether each pixel is a color pixel or a monochrome pixel, and when the presence of a predetermined number or more of continuous color pixels is detected in the given pixel order, A continuous color pixel is recognized as a color block. If a predetermined number or more of color blocks exist in one line, the line is counted as a color line. If a predetermined number of color lines exist in the input image data read from one original, it is determined as a color original, and otherwise it is determined as a monochrome image.

カラーブロックであるか否かを判定する際の連続カラー画素数、及び、カラー原稿と判定する際のカラーラインの所定数は、カラー原稿と判定する基準に基づいて適切に設定すれば良い。カラー原稿と判定する基準は、例えば、原稿中含まれているカラー画素の数又は割合である。カラー原稿と判定する基準は、予め設定しておくとよい。   The number of continuous color pixels when determining whether or not a color block and the predetermined number of color lines when determining as a color document may be appropriately set based on the criterion for determining as a color document. The standard for determining a color document is, for example, the number or ratio of color pixels included in the document. The standard for determining a color document may be set in advance.

上記の方法において、画素毎にカラー画素であるかモノクローム画素であるかの判定は、例えば、以下の(1)(2)等の公知の方法を使用するとよい。
(1)RGB信号の最大値と最小値を閾値THaと比較する方法
max(R,G,B)−min(R,G,B)≧THa(例えば、20)
(2)RGB信号の各色成分の差分の絶対値を求めて閾値と比較する方法
In the above method, for determining whether each pixel is a color pixel or a monochrome pixel, for example, a known method such as the following (1) or (2) may be used.
(1) A method of comparing the maximum and minimum values of the RGB signal with the threshold value THa
max (R, G, B) −min (R, G, B) ≧ THa (for example, 20)
(2) A method of obtaining an absolute value of a difference between each color component of an RGB signal and comparing it with a threshold value

原稿種別判別部141、下地判定部143、及び、カラー判定部145による判定結果は、原稿判別データとして出力される。より詳細には、原稿種別判別部141による原稿種別の情報は、色補正部17、空間フィルタ部19、及び、中間調生成部21に出力される。下地判定部143による下地の有無の情報は、下地除去部15に出力される。カラー判定部145によるカラー原稿かモノクローム原稿かの情報は、ドロップアウトカラー処理部16、色補正部17、空間フィルタ部19、及び、中間調生成部21に出力される。   The determination results by the document type determination unit 141, the background determination unit 143, and the color determination unit 145 are output as document determination data. More specifically, the document type information by the document type determination unit 141 is output to the color correction unit 17, the spatial filter unit 19, and the halftone generation unit 21. Information on the presence / absence of the background by the background determination unit 143 is output to the background removal unit 15. Information regarding whether the color document is a color document or a monochrome document by the color determination unit 145 is output to the dropout color processing unit 16, the color correction unit 17, the spatial filter unit 19, and the halftone generation unit 21.

図2に戻り、領域分離部22は、領域分離処理を行う。より詳細には、入力画像データのうち、文字画像を含む領域を他の領域と区別して特定する情報を出力する。領域分離部22は、例えば、入力画像データの各画素が含まれる領域の種類を判定する。領域の種類は、例えば、黒文字領域、色文字領域、及び、網点領域である。判定された結果は、領域の種類を識別するデータである領域分離データとして出力される。   Returning to FIG. 2, the region separation unit 22 performs region separation processing. More specifically, information for specifying a region including a character image in the input image data while distinguishing it from other regions is output. For example, the region separation unit 22 determines the type of region in which each pixel of the input image data is included. The types of regions are, for example, a black character region, a color character region, and a halftone dot region. The determined result is output as region separation data which is data for identifying the type of region.

下地除去部15は、入力画像データに対し下地除去を行う。下地除去は、下地判定部143による下地の濃さの判定結果、又は、図示しない操作パネルから入力される下地の濃さの設定情報の基づいて行われるとよい。下地除去部15は、例えば、図5に示す下地除去の階調補正曲線を選択し、入力画像データの下地除去を行う。なお、下地の濃さの設定情報とは、例えば、下地の濃さを段階によって表す場合の、濃さの段階の情報である。   The background removal unit 15 performs background removal on the input image data. The background removal may be performed based on a background darkness determination result by the ground surface determination unit 143 or background darkness setting information input from an operation panel (not shown). For example, the background removal unit 15 selects a gradation correction curve for background removal shown in FIG. 5 and performs background removal of the input image data. Note that the background darkness setting information is, for example, darkness level information when the background darkness is expressed in stages.

ドロップアウトカラー処理部16は、下地除去された中間画像データから、消去色を除去するドロップアウトカラー処理を実行する。なお、ドロップアウトカラー処理部16は、下地除去されていない入力画像データに対して、ドロップアウトカラー処理を実行してもよい。   The dropout color processing unit 16 executes dropout color processing for removing the erased color from the intermediate image data from which the background has been removed. Note that the dropout color processing unit 16 may perform dropout color processing on input image data that has not undergone background removal.

消去色は、例えば、「赤」又は「有彩色」等の所定の色相である。消去色は、図示しない操作パネルから入力される情報に基づいて決定されるとよい。   The erase color is, for example, a predetermined hue such as “red” or “chromatic color”. The erase color may be determined based on information input from an operation panel (not shown).

図6は、ドロップアウトカラー処理部16の機能構成を示すブロック図である。ドロップアウトカラー処理部16は、輝度彩度算出部161、色判定部163、有彩無彩判定部165、及び、指定色消去部167を有する。   FIG. 6 is a block diagram showing a functional configuration of the dropout color processing unit 16. The dropout color processing unit 16 includes a luminance saturation calculation unit 161, a color determination unit 163, a chromatic / achromatic determination unit 165, and a designated color erasure unit 167.

輝度彩度算出部161は、処理画像データ(RGBデータ)に対して輝度(Lum)と彩度(Chroma)とを計算する。計算式は例えば次式(2)を用いるとよい。   The luminance / saturation calculation unit 161 calculates luminance (Lum) and saturation (Chroma) for the processed image data (RGB data). For example, the following formula (2) may be used as the calculation formula.

Figure 2012098811
Figure 2012098811

但し、In_R,In_G,In_Bは処理画像データのR値、G値、B値(画素値)、
Coefficient_R、Coefficient_G、Coefficient_Bは予め設定される係数である。例えば、以下の値を用いればよい。
However, In_R, In_G, and In_B are the R value, G value, and B value (pixel value) of the processed image data,
Coefficient_R, Coefficient_G, and Coefficient_B are coefficients set in advance. For example, the following values may be used.

Figure 2012098811
Figure 2012098811

色判定部163は、処理画像データに対して色判定処理を行う。色判定処理は、消去色であるか否かを判定する処理である。消去色は、例えば、ユーザにより予め設定されるとよい。色判定部163は、消去色が「有彩」の場合、すなわち、無彩でない全ての色が消去される場合には、色判定処理を行わない。   The color determination unit 163 performs a color determination process on the processed image data. The color determination process is a process for determining whether or not the color is an erasure color. The erase color may be set in advance by the user, for example. The color determination unit 163 does not perform color determination processing when the erased color is “chromatic”, that is, when all non-achromatic colors are erased.

色判定処理は、例えば、入力RGB値の大小関係を比較することにより行えばよい。下記表1は消去色における大小比較の方法を示したものである。例えば、消去色が赤色の場合、次式(3)が満足される場合に、その画素が赤色であると判定する。   The color determination process may be performed, for example, by comparing the magnitude relationship between the input RGB values. Table 1 below shows a method of comparing the sizes of erased colors. For example, if the erase color is red and the following equation (3) is satisfied, it is determined that the pixel is red.

Figure 2012098811
Figure 2012098811

Figure 2012098811
Figure 2012098811

式(3)及び表1において、R_JudgeRは消去色が赤色の場合の入力値Rに対する閾値である。G_JudgeGは消去色が緑色の場合の入力値Gに対する閾値である。B_JudgeBは消去色が青色の場合の入力値Bに対する閾値である。表1に示す条件を満たす場合に、その画素は消去色であると判定する。閾値は、例えば下記表2に示す値を設定すればよい。   In Expression (3) and Table 1, R_JudgeR is a threshold value for the input value R when the erase color is red. G_JudgeG is a threshold for the input value G when the erase color is green. B_JudgeB is a threshold value for the input value B when the erase color is blue. When the conditions shown in Table 1 are satisfied, the pixel is determined to be an erased color. The threshold value may be set to a value shown in Table 2 below, for example.

Figure 2012098811
Figure 2012098811

有彩無彩判定部165は、色判定部163が判定した色判定情報と輝度彩度算出部161が算出した彩度情報とを用いて、画素毎に有彩画素と無彩画素との何れであるか判定を行う。例えば、有彩と判定する画素は、色判定情報により消去色とされ、かつ、彩度値が一定値(例えば、10)以上の画素であり、無彩と判定する画素は上記以外とするとよい。   The chromatic / achromatic determination unit 165 uses the color determination information determined by the color determination unit 163 and the saturation information calculated by the luminance / saturation calculation unit 161 to determine whether a chromatic pixel or an achromatic pixel is used for each pixel. It is determined whether or not. For example, a pixel that is determined to be chromatic is a pixel that is determined to be an erasure color based on the color determination information and has a saturation value that is equal to or greater than a certain value (for example, 10). .

指定色消去部167は、輝度彩度算出部161が算出した輝度と彩度とを用いて指定色消去処理を行う。R、G、Bそれぞれの出力値である、Out_R、Out_G、及び、Out_Bは、次式(4)により得られる。   The designated color erasure unit 167 performs designated color erasure processing using the luminance and saturation calculated by the luminance saturation calculation unit 161. Out_R, Out_G, and Out_B, which are output values of R, G, and B, are obtained by the following equation (4).

Figure 2012098811
Figure 2012098811

但し、Coefficient_OutR、Coefficient_OutG、及び、Coefficient_OutBは、予め設定されている係数であり、例えば20とすればよい。   However, Coefficient_OutR, Coefficient_OutG, and Coefficient_OutB are preset coefficients, and may be set to 20, for example.

なお、ユーザが消去色を指定する場合には、指定された消去色の画素を色判定部163が指定色と判断し、その画素を有彩無彩判定部165が有彩と判定する。一方、無彩と判定された画素に対しては、Chroma=0とする。   When the user designates an erasure color, the color determination unit 163 determines the pixel of the specified erasure color as the specified color, and the chromatic / achromatic determination unit 165 determines that the pixel is chromatic. On the other hand, for pixels determined to be achromatic, Chroma = 0.

有彩と判定された画素、あるいは、指定色の画素は、Chromaの値は、10より大きい値(例えば、30や40)になり、Out_R、Out_G、Out_Bの値は、255より大きくなり255にクリップされ、白色になる。   For the pixel determined to be chromatic or the pixel of the specified color, the value of Chroma is greater than 10 (for example, 30 or 40), and the values of Out_R, Out_G, and Out_B are greater than 255 and become 255. Clipped and turns white.

また、無彩色の画素は、Lum、Chromaが小さく、Out_R、Out_G、Out_Bは同じ値又は近い値になり、無彩色のまま出力される。指定色ではない画素は、Chromaが「0」に設定されるので、RGBそれぞれの輝度情報のみとなり、無彩色で出力される。   Further, the achromatic pixels have small Lum and Chroma, and Out_R, Out_G, and Out_B have the same value or close values, and are output as achromatic colors. For pixels that are not specified colors, Chroma is set to “0”, so only the luminance information of RGB is output and output in an achromatic color.

色補正部17は、文字認識が行われる場合には、下地除去部15又はドロップアウトカラー処理部16が処理した処理画像データを、図示しない表示装置の表示特性に適合する画像データに変換する。例えば、RGB画像データを、sRGB画像データに変換する。色補正部17は、コピーなどCMYKトナーを用いた紙への出力処理が行われる場合には(文字認識が行われない場合には)、ドロップアウトカラー処理が行われていない処理画像データに対し、RGBの補色であるCMY画像データに変換する。色補正部17は、原稿判別データに基づいて、原稿種別毎に異なる色補正処理を行ってもよい。色補正部17は、カラー原稿かモノクローム原稿かの情報に基づいて、色補正処理を異ならせてもよい。   When character recognition is performed, the color correction unit 17 converts the processed image data processed by the background removal unit 15 or the dropout color processing unit 16 into image data that conforms to display characteristics of a display device (not shown). For example, RGB image data is converted into sRGB image data. The color correction unit 17 performs processing for image data that has not been subjected to dropout color processing when output processing to paper using CMYK toner such as copying is performed (when character recognition is not performed). , Converted into CMY image data which is a complementary color of RGB. The color correction unit 17 may perform different color correction processing for each document type based on the document determination data. The color correction unit 17 may change the color correction processing based on information on whether a color document or a monochrome document.

黒生成/下色除去部18は、コピーなどCMYKトナーを用いた紙への出力処理が行われる場合には、色補正部17によりCMYK画像データに変換された処理画像データに対し、下色除去を行い、CMYK画像データに変換する。   The black generation / under color removal unit 18 removes under color from the processed image data converted into CMYK image data by the color correction unit 17 when output processing to paper using CMYK toner such as copying is performed. To convert to CMYK image data.

空間フィルタ部19は、領域分離部22から出力される領域分離データに基づいて、処理画像データに含まれる領域毎に、対応するフィルタ処理を行う。フィルタ処理は、例えば、強調処理、平滑化処理である。なお、空間フィルタ部19は、原稿判別データに基づいて、原稿種別毎に異なるフィルタ処理を行ってもよく、カラー原稿かモノクローム原稿かの情報に基づいて、フィルタ処理を異ならせてもよい。   The spatial filter unit 19 performs a corresponding filter process for each region included in the processed image data based on the region separation data output from the region separation unit 22. Filter processing is, for example, enhancement processing and smoothing processing. Note that the spatial filter unit 19 may perform different filter processing for each document type based on the document discrimination data, or may perform different filter processing based on information on whether a color document or a monochrome document.

出力階調補正部20は、文字認識が行われる場合には、領域分離データに基づいて、処理画像データに含まれる領域毎に、階調補正(γ補正)を行う。図7は、γ補正テーブルを示す図である。図7Aは、文字領域に用いるγ補正テーブルであり、図7Bは、文字以外の領域に用いるγ補正テーブルである。コピーなどCMYKトナーを用いた紙への出力処理が行われる場合には、用紙等の記録媒体に出力するための出力γ補正処理がなされる。   When character recognition is performed, the output tone correction unit 20 performs tone correction (γ correction) for each region included in the processed image data based on the region separation data. FIG. 7 is a diagram illustrating a γ correction table. FIG. 7A is a γ correction table used for a character region, and FIG. 7B is a γ correction table used for a region other than a character. When output processing to paper using CMYK toner such as copying is performed, output γ correction processing for output to a recording medium such as paper is performed.

中間調生成部21は、コピーなどCMYKトナーを用いた紙への出力処理が行われる場合にCMYK画像データに対する階調再現処理を行う。中間調生成部21は、領域分離データに基づいて、領域の種類毎に対応する階調表現方法による中間調を生成する。中間調生成部21は、また、領域分離データに代えて、原稿判別データに基づいて、原稿種別毎に異なる階調表現方法を用いてもよい。中間調生成部21は、カラー原稿かモノクローム原稿かの情報に基づいて、階調表現方法を異ならせてもよい。   The halftone generation unit 21 performs gradation reproduction processing on CMYK image data when output processing to paper using CMYK toner such as copying is performed. The halftone generation unit 21 generates a halftone by the gradation expression method corresponding to each type of region based on the region separation data. The halftone generation unit 21 may use a different gradation expression method for each document type based on the document discrimination data instead of the region separation data. The halftone generation unit 21 may change the gradation expression method based on information on whether a color document or a monochrome document.

文字認識部31、描画コマンド生成部32、及び、フォーマット化処理部33は、処理画像データにテキストデータを付加する処理を行う。文字認識部31は、処理画像データの中に含まれる文字画像を認識してテキストデータを生成する。文字認識部31には、出力階調補正部20から出力されるsRGB画像データの処理画像データが入力される。この処理画像データは、下地除去部15による下地除去が行われていてもよく、下地除去が行われていなくてもよい。   The character recognition unit 31, the drawing command generation unit 32, and the formatting processing unit 33 perform processing for adding text data to the processed image data. The character recognition unit 31 recognizes a character image included in the processed image data and generates text data. The character recognition unit 31 receives the processed image data of the sRGB image data output from the output tone correction unit 20. The processed image data may or may not have undergone background removal by the background removal unit 15.

文字認識部31は、画像データを低解像度の白黒2値のデータに変換する。より詳細には、例えば、sRGB画像データから、8ビットで表される輝度値を算出し、128を閾値として2値化を行う。なお、複数の画素からなるブロック毎に、輝度の平均値を2値化の閾値としてもよい。ブロックは、例えば、縦横5画素からなる。解像度変換は、2値化された画像データに対し、ニアレストネイバー法、バイリニア法、又は、バイキュービック法を用いる。文字認識部31は、さらに、低解像度の白黒2値のデータから、画像データの特徴量を抽出し、辞書データと比較して文字認識を行う。   The character recognition unit 31 converts the image data into low-resolution monochrome binary data. More specifically, for example, a luminance value represented by 8 bits is calculated from sRGB image data, and binarization is performed using 128 as a threshold value. Note that the average luminance value may be used as a binarization threshold value for each block including a plurality of pixels. The block is composed of, for example, 5 pixels vertically and horizontally. For resolution conversion, a nearest neighbor method, a bilinear method, or a bicubic method is used for the binarized image data. The character recognition unit 31 further extracts the feature amount of the image data from the low-resolution monochrome binary data, and performs character recognition by comparing with the dictionary data.

文字認識部31は、例えば、文字認識処理を行う1つのICとして構成される。なお、輝度値の算出、2値化、及び、解像度変換は、文字認識部31が実行する他に、輝度値の算出、2値化、及び、解像度変換を行う各部を設けてもよい。   For example, the character recognition unit 31 is configured as one IC that performs character recognition processing. In addition to the luminance value calculation, binarization, and resolution conversion being executed by the character recognition unit 31, each unit that performs luminance value calculation, binarization, and resolution conversion may be provided.

描画コマンド生成部32は、文字認識された結果に基づいて、処理画像データの上に非表示コンテンツを配置するための描画コマンドを生成する。非表示コンテンツとは、例えば、PDFの透明テキストである。   The drawing command generation unit 32 generates a drawing command for arranging the non-display content on the processed image data based on the character recognition result. The non-display content is, for example, a PDF transparent text.

フォーマット化処理部33は、処理画像データのイメージに非表示コンテンツが付加されたフォーマットを生成する。出力階調補正部20が出力する階調補正後の処理画像データをイメージ化し、描画コマンド生成部32が出力する描画コマンドにより、非表示コンテンツを付加する。イメージは、例えば、PDF形式であり、非表示コンテンツは、透明テキストである。   The formatting processor 33 generates a format in which non-display content is added to the image of the processed image data. The processed image data after gradation correction output from the output gradation correction unit 20 is imaged, and non-display content is added by the drawing command output from the drawing command generation unit 32. The image is in PDF format, for example, and the non-display content is transparent text.

非表示コンテンツが付加されたイメージは、送受信装置8から他の装置に対して送信される。例えば、非表示コンテンツが付加されたイメージが、図示しないメール処理部により電子メールに添付される形式にされた後に、送受信装置8から電子メールとしてネットワークを介して送信される。また例えば、非表示コンテンツが付加されたイメージが、記憶部41に格納されてもよい。電子メール送信、及び、記憶部41への格納の何れを行うかは、例えば、ユーザにより選択され入力される設定に基づく。ユーザが、電子メール送信を選択している場合には、電子メール送信が行われ、ファイリングモードを選択している場合には、記憶部41へ格納される。   The image to which the non-display content is added is transmitted from the transmission / reception device 8 to another device. For example, an image to which non-display content is added is converted into a format attached to an e-mail by a mail processing unit (not shown), and then transmitted as an e-mail from the transmission / reception device 8 via the network. For example, an image to which non-display content is added may be stored in the storage unit 41. Whether to perform e-mail transmission or storage in the storage unit 41 is based on, for example, a setting selected and input by the user. When the user selects e-mail transmission, e-mail transmission is performed, and when the filing mode is selected, the e-mail transmission is stored in the storage unit 41.

図8は、本実施の形態に係る画像処理方法を説明するフローチャートである。図8の画像処理方法は、画像処理装置1により実行される。図8のステップS101からステップS108の処理は、文字認識を行う場合の処理であり、図8のステップS101及びステップS109は、文字認識を行わない場合の処理である。文字認識を行う場合に、処理を行う各部と各部が出力するデータ形式を図9に示す。文字認識を行わない場合に、処理を行う各部と各部が出力するデータ形式を図10に示す。   FIG. 8 is a flowchart illustrating the image processing method according to the present embodiment. The image processing method in FIG. 8 is executed by the image processing apparatus 1. The processing from step S101 to step S108 in FIG. 8 is processing when character recognition is performed, and step S101 and step S109 in FIG. 8 are processing when character recognition is not performed. FIG. 9 shows the units to be processed and the data format output by each unit when performing character recognition. FIG. 10 shows each unit that performs processing and the data format that each unit outputs when character recognition is not performed.

図8のステップS101では、画像入力装置5から入力されるRGBアナログ信号に対し、前処理が実行される。前処理は、A/D変換部11によるアナログ/デジタル変換処理、シェーディング補正部12によるデジタル信号に含まれている歪みを除去する処理、及び、入力処理部13により実行されるγ補正処理である。ステップS101の処理により、入力画像データが生成される。   In step S <b> 101 of FIG. 8, preprocessing is performed on the RGB analog signal input from the image input device 5. The preprocessing includes analog / digital conversion processing by the A / D conversion unit 11, processing for removing distortion included in the digital signal by the shading correction unit 12, and γ correction processing executed by the input processing unit 13. . Input image data is generated by the processing of step S101.

ステップS101に続いてステップS102に進み、制御部42が、ドロップアウトカラー処理を実行することが選択されているか否かを判断する。この選択は、例えば、ユーザにより図示しない操作部から入力される情報に基づくとよい。ドロップアウトカラー処理を実行することが選択されている場合には、ステップS103へ進み、ドロップアウトカラー処理を実行することが選択されていない場合には、ステップS109へ進む。   Proceeding to step S102 following step S101, the control unit 42 determines whether or not the execution of the dropout color process is selected. This selection may be based on, for example, information input from an operation unit (not shown) by the user. If execution of the dropout color process is selected, the process proceeds to step S103, and if execution of the dropout color process is not selected, the process proceeds to step S109.

ステップS102に続くステップS103では、制御部42が、消去色を指定する。消去色の指定は、例えば、ユーザにより図示しない操作部から入力される情報に基づくとよい。ステップS103に続いてステップS104に進み、原稿判定部14のカラー判定部145が、入力画像データに対しACSを実行する。   In step S103 following step S102, the control unit 42 designates an erase color. The designation of the erase color may be based on, for example, information input from an operation unit (not shown) by the user. Progressing to step S104 following step S103, the color determination unit 145 of the document determination unit 14 executes ACS on the input image data.

ステップS104に続いてステップS105に進み、制御部42が、入力画像データが、カラー原稿を読み取って生成されたか否かの情報を、カラー判定部145によるACSの結果から取得する。カラー原稿が読み取られたものである場合には、ステップS106に進み、カラー原稿が読み取られたものではない場合には、ステップS107へ進む。   Proceeding to step S105 following step S104, the control unit 42 acquires information on whether or not the input image data was generated by reading a color original from the ACS result of the color determination unit 145. If the color original has been read, the process proceeds to step S106, and if the color original has not been read, the process proceeds to step S107.

ステップS105に続くステップS106では、ドロップアウトカラー処理部16が、ドロップアウトカラー処理を行う。図11は、ドロップアウトカラー処理を説明するフローチャートである。図11の処理は、ドロップアウトカラー処理部16により実行される。   In step S106 following step S105, the dropout color processing unit 16 performs a dropout color process. FIG. 11 is a flowchart for explaining dropout color processing. The process of FIG. 11 is executed by the dropout color processing unit 16.

図11のステップS11では、輝度彩度算出部161が、中間画像データに対して輝度と彩度とを算出する。ステップS12では、制御部42が、有彩色を抽出して消去することが選択されているか否かを判定する。この選択は、例えば、予めユーザが図示しない操作パネルから入力することにより、設定される。選択されている場合には、ステップS13に進み、選択されていない場合には、ステップS14に進む。   In step S11 of FIG. 11, the luminance / saturation calculation unit 161 calculates luminance and saturation for the intermediate image data. In step S <b> 12, the control unit 42 determines whether or not extraction of chromatic colors and deletion are selected. This selection is set, for example, when the user inputs in advance from an operation panel (not shown). If it is selected, the process proceeds to step S13. If it is not selected, the process proceeds to step S14.

ステップS13では、色判定部163が、処理画像データに含まれる画素毎に、消去色であるかを判定する色判定処理を行う。ステップS14では、有彩無彩判定部165が、ステップS11で算出された彩度を利用して、画素毎に有彩か無彩かの判定処理を行う。ステップS15では、指定色消去部167が、ステップS14で判定された画素毎の有彩、無彩の結果に基づいて、指定色を消去する、すなわち、有彩と判定された画素を白色に変換する処理を行う。これにより、指定された色あいが消去された画像が作成される。   In step S <b> 13, the color determination unit 163 performs a color determination process for determining whether each pixel included in the processed image data is an erased color. In step S14, the chromatic / achromatic determination unit 165 performs a determination process for chromatic or achromatic for each pixel using the saturation calculated in step S11. In step S15, the designated color erasing unit 167 erases the designated color based on the chromatic or achromatic result for each pixel determined in step S14, that is, converts the pixel determined to be chromatic into white. Perform the process. As a result, an image from which the designated color is erased is created.

なお、ステップS15において領域分離部22が実行する有彩無彩判定の結果を用いてもよい。この場合、ステップS14の処理は省略することができる。   In addition, you may use the result of the chromatic / achromatic determination which the area | region separation part 22 performs in step S15. In this case, the process of step S14 can be omitted.

図8に戻り、ステップS106又はステップS105に続くステップS107では、文字認識のための画像処理が実行される。文字認識のための画像処理は、色補正部17、空間フィルタ部19、及び、出力階調補正部20により実行される。   Returning to FIG. 8, in step S107 following step S106 or step S105, image processing for character recognition is executed. Image processing for character recognition is performed by the color correction unit 17, the spatial filter unit 19, and the output tone correction unit 20.

ステップS107に続いてステップS108に進み、画像データにテキストデータを付加する処理が実行される。より詳細には、先ず、処理画像データに含まれる文字画像を認識して対応するテキストデータ得た後、そのテキストデータを処理画像データのイメージに付加する。図12は、画像データにテキストデータを付加する処理を説明するフローチャートである。図12の処理は、文字認識部31、描画コマンド生成部32、及び、フォーマット化処理部33により実行される。   Progressing to step S108 following step S107, processing for adding text data to the image data is executed. More specifically, first, after the character image included in the processed image data is recognized and the corresponding text data is obtained, the text data is added to the image of the processed image data. FIG. 12 is a flowchart for explaining processing for adding text data to image data. The process of FIG. 12 is executed by the character recognition unit 31, the drawing command generation unit 32, and the formatting processing unit 33.

図12のステップS21では、文字認識部31が、文字認識処理を行う。ステップS22では、描画コマンド生成部32が、ステップS21で認識された文字に対応する描画コマンドを生成する。描画コマンドは、例えば、透明テキストである。ステップS23では、フォーマット化処理部33が、ステップS22で生成された描画コマンドにより、非表示コンテンツが付加されたイメージを生成する。   In step S21 of FIG. 12, the character recognition unit 31 performs a character recognition process. In step S22, the drawing command generation unit 32 generates a drawing command corresponding to the character recognized in step S21. The drawing command is, for example, transparent text. In step S23, the formatting processor 33 generates an image to which the non-display content is added by using the drawing command generated in step S22.

図8に戻り、ステップS108の処理の後、送受信装置8により非表示コンテンツが付加された画像データが、他の装置に送信される。   Returning to FIG. 8, after the process of step S <b> 108, the image data to which the non-display content is added by the transmission / reception device 8 is transmitted to another device.

一方、ステップS102に続くステップS109では、選択されたモードに応じた画像処理が実行される。選択されたモードとは、例えば、コピーモードであり、実行される画像処理は、例えば、画像データの画像を媒体上に形成して出力するための画像処理である。この画像処理は、原稿判定部14、領域分離部22、下地除去部15、色補正部17、黒生成/下色除去部18、空間フィルタ部19、出力階調補正部20、及び、中間調生成部21により実行される。   On the other hand, in step S109 following step S102, image processing corresponding to the selected mode is executed. The selected mode is, for example, a copy mode, and the image processing to be executed is, for example, image processing for forming and outputting an image of image data on a medium. This image processing includes a document determination unit 14, a region separation unit 22, a background removal unit 15, a color correction unit 17, a black generation / under color removal unit 18, a spatial filter unit 19, an output tone correction unit 20, and a halftone. It is executed by the generation unit 21.

ステップS109において、各部が実行する処理は、以下の通りである。色補正部17は、RGB形式の処理画像データから、CMY形式の処理画像データを生成し、コピー出力をする際の色再現性を高める処理を行う。黒生成/下色除去部18は、CMY形式の処理画像データから、CMYK形式の処理画像データを生成する。空間フィルタ部19は、処理画像データに対し、強調処理及び平滑化処理を行う。出力階調補正部20は、用紙等の記録媒体に出力するためのγ補正を行う。中間調生成部21は、階調再現処理を行う。   In step S109, the processing executed by each unit is as follows. The color correction unit 17 generates processed image data in CMY format from the processed image data in RGB format, and performs processing to improve color reproducibility when performing copy output. The black generation / under color removal unit 18 generates processed image data in CMYK format from processed image data in CMY format. The spatial filter unit 19 performs enhancement processing and smoothing processing on the processed image data. The output tone correction unit 20 performs γ correction for outputting to a recording medium such as paper. The halftone generation unit 21 performs gradation reproduction processing.

ステップS109において、領域分離部22は、入力画像データの各画素が、黒文字、色文字、網点、印画紙写真(連続階調領域)等の領域種別の何れであるかを判定し、領域分離データを出力する。領域分離データは、黒生成/下色除去部18、空間フィルタ部19、及び、中間調生成部21に入力され、それぞれの部において、各領域種別に応じた処理の切り替えが行われる。   In step S109, the region separation unit 22 determines whether each pixel of the input image data is a region type such as a black character, a color character, a halftone dot, a photographic paper photograph (continuous tone region), and the like. Output data. The region separation data is input to the black generation / undercolor removal unit 18, the spatial filter unit 19, and the halftone generation unit 21, and the processing is switched according to each region type in each unit.

ステップS109において、中間調生成部21から出力されるCMYK形式の処理画像データは、画像出力装置6に入力され、媒体上に画像が形成される。   In step S109, the processed image data in the CMYK format output from the halftone generator 21 is input to the image output device 6, and an image is formed on the medium.

ドロップアウトカラー処理は文字認識の精度を高めるための一機能であり、原稿中からカラーの枠線など認識精度に影響を与える情報を消去させる処理である。そのため、前述の画像処理装置においては例えば文字モードと呼ばれる文字優先の処理が実施され、また、出力される画像データはモノクローム画像でよいため、モノクローム出力モードかつ文字モード時にドロップアウトカラー処理が選択されることがある。しかし、例えば、モノクロームの画素のみで構成されている原稿に対して、ドロップアウトカラー処理を実行した後に、文字認識処理を行うと、文字がかすれたり、途切れたりするなど、文字再現性の悪化を招き、それが文字認識の精度の低下につながる恐れがある。   The drop-out color process is a function for improving the accuracy of character recognition, and is a process for erasing information that affects the recognition accuracy, such as color frame lines, from the document. Therefore, in the above-described image processing apparatus, for example, character priority processing called character mode is performed, and since the output image data may be a monochrome image, dropout color processing is selected in the monochrome output mode and the character mode. Sometimes. However, for example, if character recognition processing is performed after performing dropout color processing on a document composed only of monochrome pixels, character reproducibility deteriorates, such as characters being faded or interrupted. This may lead to a decrease in character recognition accuracy.

図13は、モノクロームの画素のみで構成されている原稿に対して、ドロップアウトカラー処理が選択された場合の文字認識の例を示す図である。図13には、処理画像データに含まれているアルファベット文字「H」の文字画像が示されている。原稿中の文字がコンポジットグレー(C・M・Yで構成されるグレー)で構成されている場合や、画像入力装置の読取ズレがある場合は、本来であれば、R、G、Bの値が等しい値か近い値になるべきところ、互いに異なる値になることがある。   FIG. 13 is a diagram showing an example of character recognition when dropout color processing is selected for an original composed only of monochrome pixels. FIG. 13 shows a character image of the alphabet letter “H” included in the processed image data. If the characters in the document are composed of composite gray (gray made up of C, M, and Y), or if there is misreading of the image input device, the original values of R, G, and B Where should be equal or close, they may be different from each other.

例えば、図13の斜線のハッチングが付された部分C1は、
R=G=B又はR≒G≒B
であり、図13の黒塗り部分C2は、
R≠G≠B
である。
For example, the hatched hatched portion C1 in FIG.
R = G = B or R≈G≈B
And the black portion C2 in FIG.
R ≠ G ≠ B
It is.

この場合、式(2)に基づく判定では、図13の黒塗り部分C2は有彩と判定されやすくなり、有彩と判定された画素は消去されるため、文字がかすれたり、途切れたりする。そこで、ステップS104のACSの結果に基づいて、ステップS105において、モノクロームと判定された場合はステップS106のドロップアウトカラー処理をせず、ステップS108の画像データにテキストデータを付加する処理をさせるようにすればよい。あるいは、ACSを手動で選択する機能を有する画像形成装置の場合、ドロップアウトカラー処理が選択された場合にはACSを必ず実行させるようにし、モノクローム原稿に対してドロップアウトカラー処理がなされないようにしてもよい。   In this case, in the determination based on Expression (2), the black portion C2 in FIG. 13 is easily determined to be chromatic, and the pixels determined to be chromatic are erased, so that the characters are faded or interrupted. Therefore, based on the ACS result of step S104, when it is determined that the image is monochrome in step S105, the dropout color process of step S106 is not performed, and the process of adding text data to the image data of step S108 is performed. do it. Alternatively, in the case of an image forming apparatus having a function of manually selecting ACS, when dropout color processing is selected, ACS is always executed, and dropout color processing is not performed on a monochrome document. May be.

ACSでも有彩、無彩判定が行われるが、ACSでは原稿全体の有彩画素数からカラーかモノクロームかの判定を行っているため、ドロップアウトカラー処理のように局所的に有彩画素が増えてもカラーと判定されにくいため、コンポジットグレーや色ずれがACSの判定に大きな影響は与えない。   In ACS, chromatic / achromatic determination is performed, but ACS determines whether it is color or monochrome based on the number of chromatic pixels in the entire document, so the number of chromatic pixels increases locally as in dropout color processing. However, since it is difficult to determine the color, the composite gray and the color misregistration do not greatly affect the ACS determination.

図14は、本実施の形態に係る画像処理方法の図8とは異なる例を説明するフローチャートである。図14の画像処理方法は、画像処理装置1により実行される。図14において、ステップS201からステップS211の処理に係る各部及び各部から出力される画像データの形式は、図9に示す。また、図14において、ステップS201及びステップS220の処理に係る各部及び各部から出力される画像データの形式は、図10に示す。   FIG. 14 is a flowchart illustrating an example different from FIG. 8 of the image processing method according to the present embodiment. The image processing method in FIG. 14 is executed by the image processing apparatus 1. In FIG. 14, the units related to the processing from step S201 to step S211 and the format of the image data output from each unit are shown in FIG. Further, in FIG. 14, the units related to the processing of step S <b> 201 and step S <b> 220 and the format of the image data output from each unit are shown in FIG. 10.

図14のステップS201では、画像入力装置5から入力されるRGBアナログ信号に対し、前処理が実行される。前処理は、A/D変換部11によるアナログ/デジタル変換処理、シェーディング補正部12によるデジタル信号に含まれている歪みを除去する処理、及び、入力処理部13により実行されるγ補正処理である。ステップS201の処理により、入力画像データが生成される。   In step S <b> 201 of FIG. 14, preprocessing is performed on the RGB analog signal input from the image input device 5. The preprocessing includes analog / digital conversion processing by the A / D conversion unit 11, processing for removing distortion included in the digital signal by the shading correction unit 12, and γ correction processing executed by the input processing unit 13. . Input image data is generated by the processing of step S201.

ステップS201に続いてステップS202に進み、制御部42が、ドロップアウトカラー処理を実行することが選択されているか否かを判断する。この選択は、例えば、ユーザにより図示しない操作部から入力される情報に基づくとよい。ドロップアウトカラー処理を実行することが選択されている場合には、ステップS203へ進み、ドロップアウトカラー処理を実行することが選択されていない場合には、ステップS220へ進む。   Proceeding to step S202 following step S201, the control unit 42 determines whether or not execution of the dropout color processing is selected. This selection may be based on, for example, information input from an operation unit (not shown) by the user. If execution of the dropout color process is selected, the process proceeds to step S203. If execution of the dropout color process is not selected, the process proceeds to step S220.

ステップS202に続くステップS203では、原稿判定部14が、原稿判定処理を行う。より詳細には、原稿種別の判別、下地の有無の判定、及び、カラー判定を行う。図15は、ステップS203の原稿判定処理の詳細を説明するフローチャートである。図15のステップS31では、原稿種別判別部141が、原稿種別を判別する。判別される原稿種別は、例えば、文字原稿、印刷写真原稿、及び、文字と印刷写真とが混在した文字印刷写真原稿である。   In step S203 subsequent to step S202, the document determination unit 14 performs document determination processing. More specifically, document type determination, background presence / absence determination, and color determination are performed. FIG. 15 is a flowchart for explaining the details of the document determination process in step S203. In step S31 of FIG. 15, the document type determination unit 141 determines the document type. The document types to be identified are, for example, a character document, a printed photo document, and a character printed photo document in which characters and a printed photo are mixed.

ステップS31に続いてステップS32に進み、下地判定部143が、下地判定処理を行う。より詳細には、入力画像データが下地を含むか否かを判定する。ステップS32に続いてステップS33に進み、カラー判定部145が、ACSを行う。すなわち、読み取られた原稿が、カラー原稿とモノクローム原稿との何れであるかを判定する。   Progressing to step S32 following step S31, the background determination unit 143 performs background determination processing. More specifically, it is determined whether or not the input image data includes a background. Progressing to step S33 following step S32, the color determination unit 145 performs ACS. That is, it is determined whether the read original is a color original or a monochrome original.

図14に戻り、ステップS203に続いてステップS204に進み、制御部42が、ステップS31の判定結果に基づいて、処理画像データに、文字画像が含まれているか否かを判定する。文字画像が含まれている場合には、ステップS205に進み、文字画像が含まれていない場合には、処理を終了する。なお、文字画像が含まれていない場合には、ステップS220と同様の処理を実行してもよい。   Returning to FIG. 14, the process proceeds to step S <b> 204 following step S <b> 203, and the control unit 42 determines whether or not a character image is included in the processed image data based on the determination result of step S <b> 31. If a character image is included, the process proceeds to step S205. If a character image is not included, the process ends. If no character image is included, the same processing as step S220 may be executed.

ステップS204に続くステップS205では、領域分離部22が、領域分離処理を行う。ステップS205に続いてステップS206に進み、下地除去部15が、下地除去処理を行う。下地除去は、ステップS32で下地があると判定されている場合に実行されるとよい。ステップS206に続いてステップS207に進み、制御部42が、消去色を指定する。消去色の指定は、例えば、ユーザにより図示しない操作部から入力される情報に基づくとよい。   In step S205 following step S204, the region separation unit 22 performs region separation processing. Progressing to step S206 following step S205, the background removal unit 15 performs background removal processing. The background removal is preferably performed when it is determined in step S32 that there is a background. Progressing to step S207 following step S206, the control unit 42 designates an erasing color. The designation of the erase color may be based on, for example, information input from an operation unit (not shown) by the user.

ステップS207に続いてステップS208に進み、制御部42が、入力画像データが、カラー原稿を読み取って生成されたものであるか否かの情報を、カラー判定部145によるACSの結果から取得する。カラー原稿が読み取られたものである場合には、ステップS209に進み、カラー原稿が読み取られたものではない場合には、ステップS210へ進む。   Proceeding to step S208 following step S207, the control unit 42 obtains information as to whether or not the input image data is generated by reading a color document from the ACS result by the color determination unit 145. If the color original has been read, the process proceeds to step S209. If the color original has not been read, the process proceeds to step S210.

ステップS208に続くステップS209では、ドロップアウトカラー処理部16が、文字画像の領域に属する画素にてドロップアウトカラー処理を行う。図16は、ステップS209で行われる文字画像の領域に属する画素にドロップアウトカラー処理を行う処理を説明するフローチャートである。図16の処理は、ドロップアウトカラー処理部16により実行される。   In step S209 following step S208, the dropout color processing unit 16 performs dropout color processing on pixels belonging to the character image region. FIG. 16 is a flowchart for explaining the process of performing the dropout color process on the pixels belonging to the character image area performed in step S209. The process of FIG. 16 is executed by the dropout color processing unit 16.

図16のステップS41では、制御部42が、処理画像データの画素毎にその画素が文字画像の領域に含まれているか否かを判定する。この判定は、ステップS205の領域分離処理の出力に基づいて、入力画像データの処理画像データの画素と対応する画素が、文字画像の領域に含まれているか否かを判定することにより行われる。文字画像の領域に含まれている画素の場合は、ステップS42に進み、文字画像の領域に含まれていない場合には、ステップS47に進む。   In step S41 in FIG. 16, the control unit 42 determines whether or not the pixel of the processed image data is included in the character image area. This determination is performed by determining whether or not the pixel corresponding to the pixel of the processed image data of the input image data is included in the character image area based on the output of the area separation process in step S205. If the pixel is included in the character image area, the process proceeds to step S42. If the pixel is not included in the character image area, the process proceeds to step S47.

ステップS41に続くステップS42からステップS46の処理は、図11のステップS11からステップS15の処理を一画素に対して行うものであるので、ここでは説明を省略する。   Since the processing from step S42 to step S46 subsequent to step S41 is the same as the processing from step S11 to step S15 in FIG. 11, the description is omitted here.

ステップS41又はステップS46に続くステップS47では、制御部42が、処理画像データに含まれている全画素の処理を終了したか否かを判定する。終了している場合には、処理を終了する。終了していない画素がある場合には、ステップS41に戻り、未処理の画素に対するステップS41からステップS47の処理を繰り返す。   In step S47 following step S41 or step S46, the control unit 42 determines whether or not the processing of all the pixels included in the processed image data has been completed. If it has been completed, the process ends. If there is a pixel that has not been completed, the process returns to step S41, and the processes from step S41 to step S47 for the unprocessed pixel are repeated.

図14に戻り、ステップS208又はステップS209に続くステップS210では、文字認識のための画像処理が行われる。この処理は図8のステップS107の処理と同一である。   Returning to FIG. 14, in step S210 following step S208 or step S209, image processing for character recognition is performed. This process is the same as the process of step S107 in FIG.

ステップS210に続いてステップS211に進み、文字画像の領域の画像データにテキストデータを付加する処理を行う。図17は、ステップS211で実行される文字画像の領域の画像データにテキストデータを付加する処理の詳細を説明するフローチャートである。   Progressing to step S211 following step S210, a process of adding text data to the image data of the character image region is performed. FIG. 17 is a flowchart for explaining the details of the process of adding text data to the image data of the character image area executed in step S211.

図17の処理は、制御部42、文字認識部31、描画コマンド生成部32、及び、フォーマット化処理部33により実行される。図17のステップS51では、制御部42が、領域分離部22が出力した領域分離データに基づいて、分離された領域毎に、その領域が文字画像の領域か否かを判定する。文字画像の領域の場合には、ステップS52に進み、文字画像の領域では無い場合には、ステップS55に進む。   17 is executed by the control unit 42, the character recognition unit 31, the drawing command generation unit 32, and the formatting processing unit 33. In step S51 of FIG. 17, the control unit 42 determines, for each separated region, whether or not the region is a character image region based on the region separation data output by the region separation unit 22. If it is a character image area, the process proceeds to step S52. If it is not a character image area, the process proceeds to step S55.

ステップS51に続くステップS52からステップS54の処理は、図12の処理と略同一である。より詳細には、図12の処理は、一枚の原稿を読み取って得られた画像に対応する画像データに対して実行するのに対し、ステップS52からステップS54の処理は、一枚の原稿を読み取って得られた画像に対応する画像データの中の、一つの文字画像の領域に対して実行する。   The processing from step S52 to step S54 following step S51 is substantially the same as the processing in FIG. More specifically, the process in FIG. 12 is performed on image data corresponding to an image obtained by reading one original, whereas the processes in steps S52 to S54 are performed on one original. The process is executed on one character image area in the image data corresponding to the image obtained by reading.

ステップS54に続いてステップS55に進み、制御部42が、未処理の領域の有無を確認する。未処理の領域がある場合には、ステップS51に戻って未処理の領域に対する処理を繰り返す。未処理の領域がない場合には、処理を終了する。   Proceeding to step S55 following step S54, the control unit 42 confirms whether there is an unprocessed area. If there is an unprocessed area, the process returns to step S51 to repeat the process for the unprocessed area. If there is no unprocessed area, the process ends.

図14に戻り、ステップS202に続くステップS220の処理は、図8のステップS109の処理と同一であるので、ここでは説明を省略する。   Returning to FIG. 14, the process of step S220 following step S202 is the same as the process of step S109 of FIG.

図14では、原稿種別の判別とドロップアウトカラー機能とを組み合わせて実行する。ドロップアウトカラー処理の対象となる原稿にはカラーの文字が存在していることから、原稿種別の判別と組み合わせて、原稿中に文字が存在している「文字原稿」、「文字印刷写真原稿」、「文字印画紙原稿」に判定された場合のみ、ドロップアウトカラー処理を実施することができる。すなわち、文字原稿、文字印刷写真原稿、文字印画紙写真原稿と判定された場合、領域分離部22が文字(又は文字エッジ)と判定された画素を抽出して、ドロップアウトカラー処理を行うようにすれば良い。   In FIG. 14, the discrimination of the document type and the dropout color function are executed in combination. Since there are color characters in the document that is subject to dropout color processing, this is combined with the determination of the document type. The dropout color process can be executed only when it is determined to be “character photographic paper original”. That is, when it is determined that the document is a character document, a character-printed photographic document, or a character photographic paper photographic document, the region separation unit 22 extracts pixels determined to be characters (or character edges) and performs dropout color processing. Just do it.

なお、領域分離処理は、上記した原稿種別の判別の(1)〜(6)の方法を用いるとよい。これにより、ドロップアウトカラー処理の対象外となる文字が存在しない原稿に対しては、例えば、ドロップアウトカラー設定を無効にして出力する、又は、出力しないとすればよい。   In the area separation process, the above-described methods (1) to (6) for determining the document type may be used. As a result, for a document that does not include characters that are not subject to dropout color processing, for example, the dropout color setting may be disabled or output.

以上では、原稿判定部14と領域分離部22とを備える構成の場合について説明を行っているが、領域分離部22のみを備える構成であっても良い。すなわち、上記原稿種別の判別の(1)〜(6)の方法を用いて領域分離処理を行い、文字(又は文字エッジ)と判定された画素を抽出して、ドロップアウトカラー処理を行うようにしても良い。   In the above, the case of the configuration including the document determination unit 14 and the region separation unit 22 has been described, but the configuration including only the region separation unit 22 may be used. That is, the region separation process is performed using the methods (1) to (6) for determining the document type, the pixels determined to be characters (or character edges) are extracted, and the dropout color process is performed. May be.

図14では、また、下地除去とドロップアウトカラー機能とを組み合わせて実行する。
例えば、新聞などに代表される淡い下地や裏写りが原稿に残っている画像データの場合、文字認識の際に下地や裏写りを文字と誤認識する可能性がある。そこで、下地除去処理を行うことにより文字でない情報を無くすことができ、文字認識の精度を高められる。
In FIG. 14, the background removal and the dropout color function are combined and executed.
For example, in the case of image data in which a pale background or show-through represented by a newspaper or the like remains in a document, the background or show-through may be erroneously recognized as a character during character recognition. Therefore, by performing background removal processing, information that is not characters can be eliminated, and the accuracy of character recognition can be improved.

下地除去は原稿判定部14の下地判定結果に基づいて、下地除去部15が行う。具体的には図5で示されるように原稿判定部での下地判定結果に基づいて下地を除去するような階調補正曲線が選択され、下地が除去される。   Background removal is performed by the background removal unit 15 based on the background determination result of the document determination unit 14. Specifically, as shown in FIG. 5, a gradation correction curve that removes the background is selected based on the background determination result in the document determination unit, and the background is removed.

下地除去部15は、ドロップアウトカラー処理部16より前に設けられてもよく、ドロップアウトカラー処理部16より後段に設けられてもよい。下地除去を行った後にドロップアウトカラー処理を行うとドロップアウトカラー処理及び文字認識の精度が向上する。また、ドロップアウトカラー処理を行った後に下地除去を行うと文字認識の精度が向上する。ドロップアウトカラー処理の結果が良くなると、文字認識の精度も向上するので、前者の構成を採用するのが好ましい。   The background removal unit 15 may be provided before the dropout color processing unit 16 or may be provided after the dropout color processing unit 16. If dropout color processing is performed after the background removal, the accuracy of dropout color processing and character recognition is improved. Further, if the background is removed after the dropout color processing is performed, the accuracy of character recognition is improved. When the result of the dropout color process is improved, the accuracy of character recognition is also improved. Therefore, it is preferable to adopt the former configuration.

図18は、本実施の形態に係る画像形成装置900のハードウェア構成の例を説明する図である。図18の画像形成装置900は、画像処理部910、スキャナ920、ハードディスク装置930、ドライブ装置940、及び、プリンタ980を有する。画像処理部910は、画像処理部910に接続される各部の制御、及び、画像形成装置900が出力する画像データを処理する。   FIG. 18 is a diagram for explaining an example of the hardware configuration of the image forming apparatus 900 according to this embodiment. The image forming apparatus 900 of FIG. 18 includes an image processing unit 910, a scanner 920, a hard disk device 930, a drive device 940, and a printer 980. The image processing unit 910 controls each unit connected to the image processing unit 910 and processes image data output from the image forming apparatus 900.

画像処理部910は、CPU901、ROM902、RAM903、画像処理ASIC904、文字認識IC905、スキャナインタフェース(以下、「スキャナI/F」という。)912、HDDインタフェース(以下、「HDD−I/F」という。)913、ドライブインタフェース(以下、「ドライブI/F」という。)914、プリンタインタフェース(以下、「プリンタI/F」という。)918、及び、通信インタフェース(以下、「通信I/F」)という。)919を有する。   The image processing unit 910 includes a CPU 901, ROM 902, RAM 903, image processing ASIC 904, character recognition IC 905, scanner interface (hereinafter referred to as “scanner I / F”) 912, HDD interface (hereinafter referred to as “HDD-I / F”). 913, a drive interface (hereinafter referred to as “drive I / F”) 914, a printer interface (hereinafter referred to as “printer I / F”) 918, and a communication interface (hereinafter referred to as “communication I / F”). . 919.

CPU901は、コンピュータプログラムを実行することにより、画像処理部910の各部、及び、画像処理部910に接続される各部の制御を行う。ROM902は、例えば、CPU901が実行するコンピュータプログラムを格納する。ROM902は、また、画像処理ASIC904、文字認識IC905、及び、CPU901がコンピュータプログラムを実行することにより実現される機能により処理される画像データを格納してもよい。   The CPU 901 controls each unit of the image processing unit 910 and each unit connected to the image processing unit 910 by executing a computer program. For example, the ROM 902 stores a computer program executed by the CPU 901. The ROM 902 may also store image data processed by the image processing ASIC 904, the character recognition IC 905, and a function realized by the CPU 901 executing a computer program.

CPU901は、また、原稿自動判定処理、描画コマンド生成処理、及び、非表示コンテンツが付加されたイメージの生成処理を行う機能を実現してもよい。   The CPU 901 may also realize a function of performing an automatic document determination process, a drawing command generation process, and an image generation process with non-display content added.

RAM903は、画像処理ASIC904、文字認識IC905、及び、CPU901がコンピュータプログラムを実行することにより実現される機能により処理される画像データを格納する。   The RAM 903 stores image data processed by the image processing ASIC 904, the character recognition IC 905, and a function realized by the CPU 901 executing a computer program.

画像処理ASIC904は、画像データに対する各種処理を行う。画像処理ASIC904は、例えば、領域分離処理、下地除去処理、色補正処理、黒生成/下色除去処理、空間フィルタ処理、出力階調補正処理、及び、中間調生成処理の何れか一以上の処理を行う。文字認識IC905は、文字認識処理を行う。   The image processing ASIC 904 performs various processes on the image data. The image processing ASIC 904 is, for example, at least one of region separation processing, background removal processing, color correction processing, black generation / undercolor removal processing, spatial filter processing, output tone correction processing, and halftone generation processing. I do. The character recognition IC 905 performs character recognition processing.

スキャナI/F912は、スキャナ920から入力される画像データを受け取り、スキャナ920の特性に応じた画像処理を行う。HDD−I/F913は、CPU901の制御に基づいて、HDD930に格納される画像データの入出力を行う。ドライブI/F914は、ドライブ装置940に挿入される可搬性記録媒体941に対するデータの入出力を行う。   The scanner I / F 912 receives image data input from the scanner 920 and performs image processing according to the characteristics of the scanner 920. The HDD-I / F 913 inputs and outputs image data stored in the HDD 930 based on the control of the CPU 901. The drive I / F 914 inputs / outputs data to / from the portable recording medium 941 inserted into the drive device 940.

プリンタI/F918は、画像処理部910が処理した画像データを、プリンタ980に出力する際のインタフェースである。通信I/F919は、画像処理部910からネットワーク990を介して他の装置と画像データ又は制御信号を通信する際のインタフェースである。   A printer I / F 918 is an interface for outputting image data processed by the image processing unit 910 to the printer 980. A communication I / F 919 is an interface for communicating image data or a control signal with another apparatus from the image processing unit 910 via the network 990.

スキャナ920は、媒体上に画像が形成されている原稿を光学的に読み取って画像データを出力する。スキャナ920が出力する画像データは、アナログ信号でもよく、アナログ信号が変換されたデジタル信号でもよい。   The scanner 920 optically reads a document on which an image is formed on a medium and outputs image data. Image data output from the scanner 920 may be an analog signal or a digital signal obtained by converting the analog signal.

HDD930は、画像処理部910が処理する画像データを格納する。HDD930は、例えば、スキャナ920から入力される画像データ、通信I/F919から入力される画像データ、及び、CPU901、画像処理ASIC904、及び、文字認識IC905の処理により生成される中間画像データを格納する。ドライブ装置940は、可搬性記録媒体941が挿入されることにより、可搬性記録媒体941に対するデータの書き込み及び読み出しを行う。可搬性記録媒体941には、例えば、CPU901が実行するコンピュータプログラムが格納される。   The HDD 930 stores image data processed by the image processing unit 910. The HDD 930 stores, for example, image data input from the scanner 920, image data input from the communication I / F 919, and intermediate image data generated by processing of the CPU 901, the image processing ASIC 904, and the character recognition IC 905. . The drive device 940 writes and reads data to and from the portable recording medium 941 by inserting the portable recording medium 941. The portable recording medium 941 stores a computer program executed by the CPU 901, for example.

プリンタ980は、画像処理部910により処理された画像データを、媒体上に形成して出力する。   The printer 980 forms and outputs the image data processed by the image processing unit 910 on a medium.

<コンピュータプログラム及び記録媒体>
本実施の形態の画像処理装置は、コンピュータがプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を実行することにより実現されてもよい。本実施の形態の記録媒体は、プログラムコードを記録したコンピュータ読み取り可能な記録媒体であり、各種パラメータについて、設定確認画面にて設定条件の確認を行う画像処理方法を実行するためのコンピュータプログラムを記録するものとすることもできる。各種パラメータは、例えば、(1)プレビュー画像に反映されないパラメータ、(2)プレビューしても効果が分からないパラメータである。
<Computer program and recording medium>
The image processing apparatus according to the present embodiment may be realized by a computer executing a program code (execution format program, intermediate code program, source program). The recording medium of the present embodiment is a computer-readable recording medium in which a program code is recorded, and a computer program for executing an image processing method for confirming setting conditions on a setting confirmation screen for various parameters is recorded. It can also be done. The various parameters are, for example, (1) a parameter that is not reflected in the preview image, and (2) a parameter whose effect is not known even when previewed.

本実施の形態に係る画像処理方法を行うためのプログラムを記録した記録媒体は、持ち運び自在に提供することができる。   A recording medium on which a program for performing the image processing method according to this embodiment is recorded can be provided in a portable manner.

なお、記録媒体は、マイクロコンピュータが処理を行うためのプログラムコードが記録された、図示していないメモリ、例えばROMでもよい。記録媒体は、また、図示していない外部記憶装置として設けられるプログラム読み取り装置に挿入することによりコンピュータが読み取り可能なプログラムメディアでもよい。   The recording medium may be a memory (not shown) such as a ROM in which program codes for processing by the microcomputer are recorded. The recording medium may also be a program medium that can be read by a computer by being inserted into a program reading device provided as an external storage device (not shown).

記録媒体に格納されているプログラムコードは、マイクロプロセッサが記録媒体にアクセスして実行させる構成でもよい。また、記録媒体からプログラムコードが読み出され、図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行されてもよい。ダウンロード用のプログラムは予め装置に格納されているものとする。   The program code stored in the recording medium may be configured to be executed by the microprocessor accessing the recording medium. Further, the program code may be read from the recording medium, downloaded to a program storage area (not shown), and the program code may be executed. It is assumed that the download program is stored in the apparatus in advance.

記録媒体としてのプログラムメディアは、装置と分離可能に構成される。例えば、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、及び、マスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体の何れでもよい。   A program medium as a recording medium is configured to be separable from the apparatus. For example, tape systems such as magnetic tapes and cassette tapes, magnetic disks such as flexible disks and hard disks, optical disk systems such as CD-ROM / MO / MD / DVD, IC cards (including memory cards) / optical cards, etc. Any medium of a card system and a fixed ROM including a semiconductor memory such as a mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. may be carried.

また、本実施の形態の画像処理装置は、インターネットを含む通信ネットワークを接続することができるシステム構成でもよく、この場合、記録媒体は、通信ネットワークからプログラムコードをダウンロードする際に流動的にプログラムコードを担持する媒体でもよい。なお、通信ネットワークからプログラムコードをダウンロードする場合には、ダウンロード用のプログラムは予め本体装置に格納しておくか、又は、別な記録媒体からインストールされるものでもよい。なお、本実施の形態に係るコンピュータプログラムは、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, the image processing apparatus according to the present embodiment may have a system configuration capable of connecting a communication network including the Internet. In this case, the recording medium is fluidly programmed when downloading the program code from the communication network. It may also be a medium carrying In the case of downloading the program code from the communication network, the download program may be stored in the main device in advance or installed from another recording medium. The computer program according to the present embodiment can also be realized in the form of a computer data signal embedded in a carrier wave, in which the program code is embodied by electronic transmission.

以上の実施の形態で説明する各部と、請求項に係る構成との対応は、以下の通りである。「カラー判定部」は、「カラー判定部145」に対応する。「制御部」は、「制御部42」に対応する。「文字判定部」は、「原稿種別判別部141」に対応する。「文字領域特定部」は、「領域分離部22」に対応する。「下地判定部」は、「下地判定部143」に対応する。「下地除去部」は、「下地除去部15」に対応する。   The correspondence between each part described in the above embodiments and the configuration according to the claims is as follows. The “color determination unit” corresponds to the “color determination unit 145”. The “control unit” corresponds to the “control unit 42”. The “character determination unit” corresponds to the “document type determination unit 141”. The “character area specifying part” corresponds to the “area separating part 22”. The “background determination unit” corresponds to the “background determination unit 143”. The “background removal unit” corresponds to the “background removal unit 15”.

以上、発明を実施するための形態について説明を行ったが、本発明は、この発明を実施するための形態で述べた実施形態に限定されるものではない。本発明の主旨をそこなわない範囲で変更することが可能である。   As mentioned above, although the form for inventing was demonstrated, this invention is not limited to embodiment described in the form for implementing this invention. Modifications can be made without departing from the spirit of the present invention.

1 画像処理装置
5 画像入力装置
6 画像出力装置
8 送受信装置
10 画像処理部
11 A/D変換部
12 シェーディング補正部
13 入力処理部
14 原稿判定部
141 原稿種別判別部
143 下地判定部
145 カラー判定部
15 下地除去部
16 ドロップアウトカラー処理部
161 輝度彩度算出部
163 色判定部
165 有彩無彩判定部
167 指定色消去部
17 色補正部
18 黒生成/下色除去部
19 空間フィルタ部
20 出力階調補正部
21 中間調生成部
22 領域分離部
31 文字認識部
32 描画コマンド生成部
33 フォーマット化処理部
41 記憶部
42 制御部
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 5 Image input apparatus 6 Image output apparatus 8 Transmission / reception apparatus 10 Image processing part 11 A / D conversion part 12 Shading correction part 13 Input processing part 14 Original determination part 141 Original type determination part 143 Background determination part 145 Color determination part DESCRIPTION OF SYMBOLS 15 Background removal part 16 Dropout color processing part 161 Luminance saturation calculation part 163 Color determination part 165 Chromatic / achromatic determination part 167 Designated color erasure part 17 Color correction part 18 Black generation / under color removal part 19 Spatial filter part 20 Output Tone correction unit 21 Halftone generation unit 22 Region separation unit 31 Character recognition unit 32 Drawing command generation unit 33 Formatting processing unit 41 Storage unit 42 Control unit

Claims (11)

文字認識処理に先んじてドロップアウトカラー処理を行うドロップアウトカラー処理部を有する画像処理装置において、
入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するカラー判定部と、
該カラー判定部が、前記入力画像データは、モノクローム原稿から読み取られて生成された画像データと判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定する制御部と
を有することを特徴とする画像処理装置。
In an image processing apparatus having a dropout color processing unit that performs dropout color processing prior to character recognition processing,
A color determination unit for determining whether the input image data is image data generated by reading from a color document or a monochrome document;
When the color determination unit determines that the input image data is image data generated by reading from a monochrome document, character recognition is performed without executing dropout color processing on the image data related to the input image data. An image processing apparatus comprising: a control unit that determines execution of processing.
前記入力画像データに、文字画像が含まれるか否かを判定する文字判定部を有し、
前記制御部は、前記カラー判定部が前記入力画像データはカラー原稿から読み取られて生成されたと判定し、さらに、前記文字判定部が前記入力画像データに文字画像が含まれると判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するように構成されていることを特徴とする請求項1記載の画像処理装置。
A character determination unit for determining whether or not a character image is included in the input image data;
The control unit determines that the color determination unit determines that the input image data has been read and generated from a color document, and further determines that the input image data includes a character image. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to determine to perform dropout color processing and character recognition processing on image data related to the input image data.
前記入力画像データの中の文字画像を含む領域を特定する文字領域特定部を有し、
前記制御部は、前記入力画像データに係る画像データの中の前記文字領域特定部が特定した領域に対応する領域に対し前記ドロップアウトカラー処理及び前記文字認識処理を実行させることを決定するように構成されていることを特徴とする請求項1又は2記載の画像処理装置。
A character area specifying unit for specifying an area including a character image in the input image data;
The control unit determines to execute the dropout color process and the character recognition process on an area corresponding to the area specified by the character area specifying unit in the image data related to the input image data. The image processing apparatus according to claim 1, wherein the image processing apparatus is configured.
前記入力画像データに下地画像が含まれるか否かを判定する下地判定部と、
前記下地判定部が、前記入力画像データは下地画像を含むと判定した場合に、前記入力画像データに係る画像データに対して下地除去を行う下地除去部と
を有し、
前記制御部は、前記下地除去部が下地除去した後の画像データに対し、ドロップアウトカラー処理及び文字認識処理を実行させるように構成されていることを特徴とする請求項1又は2記載の画像処理装置。
A background determination unit that determines whether a background image is included in the input image data;
A background removal unit that performs background removal on the image data related to the input image data when the background determination unit determines that the input image data includes a background image;
3. The image according to claim 1, wherein the control unit is configured to perform dropout color processing and character recognition processing on the image data after the background removal unit removes the background. 4. Processing equipment.
請求項1から4の何れか一項に記載の画像処理装置を有し、さらに、画像データに対して媒体上に前記画像データの画像を形成するための画像処理を行う画像処理部と、
該画像処理部が前記画像処理を実行した画像データの画像を媒体上に形成して出力させる画像形成部と
を有することを特徴とする画像形成装置。
An image processing unit comprising the image processing apparatus according to any one of claims 1 to 4, and further performing image processing for forming an image of the image data on a medium with respect to the image data;
An image forming apparatus, comprising: an image forming unit that forms an image of image data on which the image processing has been performed on a medium and outputs the image.
入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるのかの判定、及び、文字認識処理に先んじて行われるドロップアウトカラー処理を実行するか否かの決定を実行する画像処理制御装置であって、
前記入力画像データが、モノクローム原稿から読み取られて生成された画像データと判定された場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定する制御部を有することを特徴とする画像処理制御装置。
Determining whether input image data is image data generated by reading from a color document or a monochrome document, and determining whether or not to perform dropout color processing performed prior to character recognition processing An image processing control device to execute,
When the input image data is determined to be image data generated by reading from a monochrome document, a character recognition process is executed without executing a dropout color process on the image data related to the input image data. An image processing control apparatus comprising a control unit for determining
文字認識処理に先んじるドロップアウトカラー処理を実行するか否かを選択する画像処理制御方法であって、
画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するステップと、
該ステップで、前記画像データは、モノクローム原稿から読み取られて生成されたと判定した場合に、前記画像データに係る画像データに対し前記ドロップアウトカラー処理を実行させることなく前記文字認識処理を実行させることを決定するステップと
を有することを特徴とする画像処理制御方法。
An image processing control method for selecting whether or not to execute dropout color processing prior to character recognition processing,
Determining whether the image data is image data generated by reading from a color document or a monochrome document;
In this step, when it is determined that the image data is generated by reading from a monochrome document, the character recognition process is executed without executing the dropout color process on the image data related to the image data. An image processing control method comprising the steps of:
文字認識処理に先んじるドロップアウトカラー処理を実行するか否かをコンピュータに選択させるためのコンピュータプログラムにおいて、
コンピュータに、
入力画像データが、カラー原稿及びモノクローム原稿の何れから読み取られて生成された画像データであるかを判定するカラー判定ステップと、
該カラー判定ステップで、前記入力画像データは、モノクローム原稿から読み取られて生成された画像データと判定した場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理を実行させることなく文字認識処理を実行させることを決定するステップと
を実行させるためのコンピュータプログラム。
In a computer program for causing a computer to select whether or not to execute dropout color processing preceding character recognition processing,
On the computer,
A color determination step of determining whether the input image data is image data generated by reading from a color original or a monochrome original;
In the color determination step, if the input image data is determined to be image data generated by reading from a monochrome document, character recognition is performed without executing dropout color processing on the image data related to the input image data. A computer program for executing the step of deciding to execute the process.
前記コンピュータに、
前記入力画像データに、文字画像が含まれるか否かを判定する文字判定ステップと、
前記カラー判定ステップで、前記入力画像データがカラー原稿から読み取られて生成されたと判定され、さらに、前記文字判定ステップで、前記入力画像データに文字画像が含まれると判定された場合に、前記入力画像データに係る画像データに対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するステップと
をさらに実行させるための請求項8記載のコンピュータプログラム。
In the computer,
A character determination step for determining whether or not a character image is included in the input image data;
In the color determination step, it is determined that the input image data has been read and generated from a color document, and further, in the character determination step, it is determined that the input image data includes a character image. The computer program according to claim 8, further comprising: a step of determining that the dropout color process and the character recognition process are to be performed on the image data related to the image data.
前記コンピュータに、
前記入力画像データに、文字画像が含まれるか否かを判定する文字判定ステップと、
前記入力画像データの中の文字画像を含む領域を特定する文字領域特定ステップと、
前記カラー判定ステップで、前記入力画像データがカラー原稿から読み取られて生成されたと判定され、さらに、前記文字判定ステップで、前記入力画像データに文字画像が含まれると判定された場合に、前記入力画像データに係る画像データの中の前記文字領域判別ステップで特定された領域に対応する領域に対しドロップアウトカラー処理及び文字認識処理を実行させることを決定するステップと
をさらに実行させるための請求項8又は9記載のコンピュータプログラム。
In the computer,
A character determination step for determining whether or not a character image is included in the input image data;
A character region specifying step for specifying a region including a character image in the input image data;
In the color determination step, it is determined that the input image data has been read and generated from a color document, and further, in the character determination step, it is determined that the input image data includes a character image. A step for further executing a step of determining that a dropout color process and a character recognition process are to be executed on an area corresponding to the area specified in the character area determination step in the image data related to the image data. The computer program according to 8 or 9.
請求項8から10の何れか一項に記載のコンピュータプログラムを記録したことを特徴とするコンピュータ読取可能な記録媒体。   A computer-readable recording medium on which the computer program according to any one of claims 8 to 10 is recorded.
JP2010244216A 2010-10-29 2010-10-29 Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium Pending JP2012098811A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010244216A JP2012098811A (en) 2010-10-29 2010-10-29 Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010244216A JP2012098811A (en) 2010-10-29 2010-10-29 Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium

Publications (1)

Publication Number Publication Date
JP2012098811A true JP2012098811A (en) 2012-05-24

Family

ID=46390666

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010244216A Pending JP2012098811A (en) 2010-10-29 2010-10-29 Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium

Country Status (1)

Country Link
JP (1) JP2012098811A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015192435A (en) * 2014-03-28 2015-11-02 ブラザー工業株式会社 Image processing apparatus and computer program
JP2020072402A (en) * 2018-10-31 2020-05-07 キヤノン株式会社 Image processing apparatus, image processing method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015192435A (en) * 2014-03-28 2015-11-02 ブラザー工業株式会社 Image processing apparatus and computer program
JP2020072402A (en) * 2018-10-31 2020-05-07 キヤノン株式会社 Image processing apparatus, image processing method, and program
JP7154951B2 (en) 2018-10-31 2022-10-18 キヤノン株式会社 Image processing device, image processing method, and program
JP7367159B2 (en) 2018-10-31 2023-10-23 キヤノン株式会社 Image processing device, image processing method, and program

Similar Documents

Publication Publication Date Title
US8384952B2 (en) Image processing and forming apparatus, method and computer-readable medium for improving document image compression efficiency and quality
US8792735B2 (en) Image compressing apparatus which extracts black text edge pixels from an image and compresses a layer with black text edge pixels extracted
US8165402B2 (en) Image processing method, image processing apparatus, image forming apparatus and storage medium
JP5813523B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP4758502B2 (en) Image processing apparatus, image reading apparatus, image transmitting apparatus, image forming apparatus, image processing method, program, and recording medium thereof
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
JP5220828B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, program, and recording medium
US8422778B2 (en) Image compressing method, image compressing apparatus, image forming apparatus, computer program and computer readable medium
JP6939449B2 (en) Image processing equipment, image processing method and image processing program
US8599456B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
JP2009005312A (en) Image processing apparatus and image processing method, computer program, and storage medium
JP2012118863A (en) Image reading device, image formation device, image reading method, program and recording medium therefor
JP2017130811A (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP2010258799A (en) Image processing apparatus and image forming apparatus equipped with the same, image processing method, control program, and recording medium
JP2009042942A (en) Image processing device, image processing method, image processing program, and recording medium in which its program is stored
JP2012074852A (en) Image processing device, image formation device, image reading device, image processing method, image processing program and recording medium
JP4105539B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, image processing program, and recording medium
JP3899872B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP2012098811A (en) Image processing apparatus, image forming apparatus, image processing control device, image processing control method, computer program and recording medium
JP6262102B2 (en) Image processing apparatus, image processing system, computer program, and recording medium
JP2009017208A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP2009095007A (en) Image data output processing apparatus, image data output processing method, program and recording medium
JP2010273119A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2004343207A (en) Image processing apparatus, image processing method, image processing program, recording medium for recording image processing program, and image forming apparatus provided with image processing apparatus
JP4808282B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium for recording image processing program