JP2020178171A - Image processing apparatus, image processing method, program, recording medium, and image forming apparatus - Google Patents

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

Info

Publication number
JP2020178171A
JP2020178171A JP2019077267A JP2019077267A JP2020178171A JP 2020178171 A JP2020178171 A JP 2020178171A JP 2019077267 A JP2019077267 A JP 2019077267A JP 2019077267 A JP2019077267 A JP 2019077267A JP 2020178171 A JP2020178171 A JP 2020178171A
Authority
JP
Japan
Prior art keywords
image data
original
output
image
gradation number
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.)
Granted
Application number
JP2019077267A
Other languages
Japanese (ja)
Other versions
JP7317557B2 (en
Inventor
今泉 大作
Daisaku Imaizumi
大作 今泉
泰崇 平山
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 JP2019077267A priority Critical patent/JP7317557B2/en
Publication of JP2020178171A publication Critical patent/JP2020178171A/en
Application granted granted Critical
Publication of JP7317557B2 publication Critical patent/JP7317557B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)

Abstract

To provide an image processing apparatus that can determine the type of a document from image data and create image data with an appropriate number of output gradations based on the type of the document from the image data.SOLUTION: In an image forming apparatus 1, an image processing apparatus 10 comprises: an image input unit that receives input of image data of a document; a document type determination unit that determines whether the document is a monochrome document or a color document based on the image data, and determines the type of the document based on the image data; a feature amount calculation operation unit that calculates the feature amount from the image data; an output gradation number setting unit that, when the document is the monochrome document, sets any one gradation number from among a plurality of output gradation number candidates as an output gradation number based on the feature amount and the type of the document; and an image processing operation unit that creates image data having the number of gradations of the image data as the set number of output gradations.SELECTED DRAWING: Figure 1

Description

本発明は、画像処理装置等に関する。 The present invention relates to an image processing apparatus and the like.

従来、紙面に印字された画像を伝送する場合、画像の伝送を所望するユーザにより、FAX等が利用されていた。さらに、近年、デジタル複合機(MFP(Multifunction Peripheral Printer))やインターネットの普及により、紙面をスキャナで読み取る電子データ形式の画像データに変換し、電子メール等により電子データ形式の画像データを添付して伝送することも、ごく日常的に行われている。 Conventionally, when transmitting an image printed on a paper surface, a fax or the like has been used by a user who desires to transmit the image. Furthermore, in recent years, with the spread of digital multifunction devices (MFPs (Multifunction Peripheral Printers)) and the Internet, paper is converted into electronic data format image data that can be read by a scanner, and electronic data format image data is attached by e-mail or the like. Transmission is also very routine.

また、昨今では原稿を読み取るためのスキャナ部分に対して紙を搬送するための自動シートフィーダ(Auto Document Feeder:以下、「ADF」と略す)が搭載されたMFPが普及している。ADFを利用することで、紙面1枚ごとに原稿をスキャナに載置して読み取るのではなく、複数枚の原稿(原稿セット)をADFに載置して、原稿の1枚ごとの読み取りをADFが自動で連続的に行うことができる。このように、ユーザに対する原稿の読み取り作業への負担を軽減させる環境が整備されている。 Recently, MFPs equipped with an automatic sheet feeder (hereinafter abbreviated as "ADF") for transporting paper to a scanner portion for reading a document have become widespread. By using ADF, instead of placing the original on the scanner for each sheet of paper and scanning it, multiple originals (original set) are placed on the ADF and the scanning of each original is performed by ADF. Can be done automatically and continuously. In this way, an environment is provided to reduce the burden on the user in reading the document.

ところが、ADFの利用により都度原稿を載置する手間が省けたため、ユーザは原稿セットの中身を意識せずに、原稿セットの中に、性質の異なる原稿が混在した状態で、原稿をADFに載置してしまう傾向がある。例えば、原稿セットの中にカラー画像の原稿とモノクロ画像の原稿とが混在するケースが生じうる。また、別の例としては、原稿セットの中に、テキストデータの原稿と写真データの原稿とが混在するケースが生じうる。 However, since the use of ADF saves the trouble of placing the manuscript each time, the user does not need to be aware of the contents of the manuscript set and puts the manuscript on the ADF in a state where the manuscripts having different properties are mixed in the manuscript set. It tends to be placed. For example, there may be a case where a color image original and a monochrome image original are mixed in the original set. Further, as another example, there may be a case where a text data manuscript and a photographic data manuscript are mixed in the manuscript set.

この問題に対して、原稿セットに含まれる原稿が、原稿毎にカラー原稿であるか、モノクロ原稿であるかを判定(Auto Color Select:以下、「ACS」と略す)し、ACS判定の判定結果に基づいた処理を行う技術が提案されている。さらに、ACS判定の精度を高めるための技術も提案されている。例えば、ACS判定のための複数のしきい値が設定可能とする技術や(例えば、特許文献1を参照)、原稿種別の判定結果によってACS判定の基準を切り替える技術や(例えば、特許文献2を参照)、画像の種類に応じた領域ごとの判定結果に基づき、ACS手段が用いる判定条件を調整する技術(例えば、特許文献3を参照)が提案されている。 To solve this problem, it is determined for each original whether the original included in the original set is a color original or a monochrome original (Auto Color Select: hereinafter abbreviated as "ACS"), and the determination result of the ACS determination is made. A technique for performing processing based on the above has been proposed. Further, a technique for improving the accuracy of the ACS determination has also been proposed. For example, a technique for setting a plurality of thresholds for ACS determination (see, for example, Patent Document 1), a technique for switching the criteria for ACS determination depending on the determination result of the manuscript type (for example, Patent Document 2). (See), a technique for adjusting the determination conditions used by the ACS means based on the determination results for each region according to the type of image (see, for example, Patent Document 3) has been proposed.

特開2010−21628号公報Japanese Unexamined Patent Publication No. 2010-21628 特開2008−35478号公報Japanese Unexamined Patent Publication No. 2008-35478 特開2011−142409号公報Japanese Unexamined Patent Publication No. 2011-142409

ここで、原稿の読み取り処理の方式としては、カラー画像、グレースケール画像、または白黒2値画像など、読み取らせた画像を様々な形式の画像データに変換する方法が知られている。したがって、ACS判定により原稿がモノクロ原稿であると判定したときは、さらに、読み取った原稿の画像を、グレースケール画像として扱うか、白黒2値画像として扱うかの判定(グレースケール・白黒2値判定)を行い、適切な原稿の読み取り処理の方法を選択することが望ましい。 Here, as a method for scanning a document, there is known a method of converting a scanned image into image data in various formats, such as a color image, a grayscale image, or a black-and-white binary image. Therefore, when it is determined by the ACS determination that the original is a monochrome original, it is further determined whether the scanned original image is treated as a grayscale image or a black and white binary image (grayscale / black and white binary determination). ), And it is desirable to select an appropriate method for scanning the original.

上述のように原稿セットの中に様々な原稿が混在する場合であって、原稿各々に応じて適切な原稿の読み取り処理の方式が選択されないときには、画像が塗り潰されて判読不能になるなど、情報が大きく損なわれてしまう場合があるという問題がある。例えば、表の見出し等、濃い灰色の背景の上に黒色の文字が重なっている原稿を白黒2値画像の画像データに変換すると、濃い灰色の背景が黒く塗りつぶされ(いわゆる、黒潰れ)、文字が読めなくなってしまう(いわゆる、文字潰れ)。このような場合は、原稿をグレースケール画像の画像データに変換することで、文字潰れを防ぎ、情報が損なわれないようにする必要がある。 Information such as when various originals are mixed in the original set as described above and an appropriate document scanning method is not selected for each original, the image is filled and becomes unreadable. There is a problem that the image may be greatly damaged. For example, when a document in which black characters are superimposed on a dark gray background such as a table heading is converted into image data of a black-and-white binary image, the dark gray background is filled in black (so-called black crush) and the characters. Becomes unreadable (so-called crushed characters). In such a case, it is necessary to prevent the characters from being crushed and to prevent the information from being damaged by converting the original into image data of a grayscale image.

一方で、原稿セットの中に、文字のみの原稿と写真のみの原稿とが混在する場合もあるが、原稿が写真のみである場合は、グレースケール・白黒2値判定により白黒2値画像を原稿の読み取り処理の方式として選択しても、階調の損失は発生するが、情報の損失は生じない。しかしながら、写真内のエッジ部を文字領域として抽出すると、文字潰れを引き起こす恐れがあると誤判定し、グレースケール画像に変換する場合がある。さらに、カラーの原稿については、グレースケール・白黒2値判定をする必要がないのにも関わらず、全ての原稿に対してグレースケール・白黒2値判定を実施すると、原稿セットに含まれる原稿の全数分について、グレースケール・白黒2値判定を行うための処理時間を必要としてしまう。 On the other hand, there are cases where a manuscript containing only characters and a manuscript containing only photographs are mixed in the manuscript set, but when the manuscript is only photographs, a black-and-white binary image is produced by grayscale / black-and-white binary judgment. Even if it is selected as the reading processing method of, gradation loss occurs, but information loss does not occur. However, if the edge portion in the photograph is extracted as a character area, it may be erroneously determined that the character may be crushed and converted into a grayscale image. Further, for color originals, although it is not necessary to perform grayscale / black-and-white binary determination, if grayscale / black-and-white binary determination is performed for all originals, the originals included in the original set will be determined. Processing time for grayscale / black-and-white binary determination is required for all the minutes.

このように、ACS判定により原稿がモノクロ原稿であると判定した場合において、さらに、適切にグレースケール・白黒2値判定を行う必要がある。しかしながら、特許文献1、特許文献2、特許文献3に記載された技術では、適切にグレースケール・白黒2値判定を行うことができなかった。 As described above, when it is determined by the ACS determination that the original is a monochrome original, it is necessary to further appropriately perform grayscale / black and white binary determination. However, the techniques described in Patent Document 1, Patent Document 2, and Patent Document 3 have not been able to appropriately perform grayscale / black and white binary determination.

上述した課題に鑑み、本発明は、画像データから原稿の種別を判定し、画像データから原稿の種別に基づく適切な出力階調数の画像データを生成することが可能な画像処理装置等を提供することを目的とする。 In view of the above-mentioned problems, the present invention provides an image processing device or the like capable of determining a document type from image data and generating image data having an appropriate output gradation number based on the document type from the image data. The purpose is to do.

上述した課題を解決するために、本発明の画像処理装置は、
原稿の画像データを入力する入力部と、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するカラー・モノクロ判定部と、
前記画像データから特徴量を算出する特徴量算出部と、
前記画像データに基づき、前記原稿の種別を判定する原稿種別判定部と、
前記原稿がモノクロ原稿である場合は、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定する出力階調数設定部と、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成する画像処理部と、
を備えたことを特徴とする。
In order to solve the above-mentioned problems, the image processing apparatus of the present invention
Input section for inputting image data of manuscript and
A color / monochrome determination unit that determines whether the original is a monochrome original or a color original based on the image data.
A feature amount calculation unit that calculates a feature amount from the image data,
A manuscript type determination unit that determines the type of the manuscript based on the image data,
When the manuscript is a monochrome manuscript, one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the manuscript, and the manuscript is described. When is a color document, an output gradation number setting unit that sets a predetermined gradation number as an output gradation number and
An image processing unit that generates image data in which the number of gradations of the image data is the set number of output gradations,
It is characterized by being equipped with.

本発明の画像処理方法は、
原稿の画像データを入力するステップと、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するステップと、
前記画像データから特徴量を算出するステップと、
前記画像データに基づき、前記原稿の種別を判定するステップと、
前記原稿がモノクロ原稿である場合に、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定するステップと、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成するステップと、
を備えたことを特徴とする。
The image processing method of the present invention
Steps to enter the image data of the manuscript and
A step of determining whether the original is a monochrome original or a color original based on the image data,
The step of calculating the feature amount from the image data and
A step of determining the type of the manuscript based on the image data,
When the original is a monochrome original, the gradation number of any one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the original, and the original If is a color document, the step of setting a predetermined number of gradations as the number of output gradations and
A step of generating image data in which the number of gradations of the image data is the set number of output gradations,
It is characterized by being equipped with.

本発明のプログラムは、コンピュータを、上記画像処理装置として動作させることを特徴とする。 The program of the present invention is characterized in that a computer is operated as the image processing device.

本発明の記録媒体は、上記プログラムを記録したことを特徴とする。 The recording medium of the present invention is characterized in that the above program is recorded.

本発明の画像形成装置は、
原稿を読み取り、画像データとして出力する原稿読取部と、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するカラー・モノクロ判定部と、
前記画像データから特徴量を算出する特徴量算出部と、
前記画像データに基づき、前記原稿の種別を判定する原稿種別判定部と、
前記原稿がモノクロ原稿である場合は、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定する出力階調数設定部と、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成する画像処理部と、
前記生成された画像データを印刷する印刷部と、
を備えたことを特徴とする。
The image forming apparatus of the present invention
A document reader that reads the document and outputs it as image data,
A color / monochrome determination unit that determines whether the original is a monochrome original or a color original based on the image data.
A feature amount calculation unit that calculates a feature amount from the image data,
A manuscript type determination unit that determines the type of the manuscript based on the image data,
When the original is a monochrome original, the gradation number of any one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the original, and the original When is a color document, an output gradation number setting unit that sets a predetermined gradation number as an output gradation number and
An image processing unit that generates image data in which the number of gradations of the image data is the set number of output gradations,
A printing unit that prints the generated image data,
It is characterized by being equipped with.

本発明によれば、画像データから原稿の種別を判定し、画像データから原稿の種別に基づく適切な出力階調数の画像データを生成することが可能となる。 According to the present invention, it is possible to determine the type of a document from the image data and generate image data having an appropriate number of output gradations based on the type of the document from the image data.

第1実施形態における画像形成装置の機能構成を説明するための図である。It is a figure for demonstrating the functional structure of the image forming apparatus in 1st Embodiment. 第1実施形態における記憶部に記憶される情報を説明するための図である。It is a figure for demonstrating the information stored in the storage part in 1st Embodiment. 第1実施形態における画像処理方法を説明するためのフロー図である。It is a flow figure for demonstrating the image processing method in 1st Embodiment. 第1実施形態における効果を説明するための図である。It is a figure for demonstrating the effect in 1st Embodiment. 第2実施形態における画像形成装置の機能構成を説明するための図である。It is a figure for demonstrating the functional structure of the image forming apparatus in 2nd Embodiment. 第2実施形態における画像処理方法を説明するためのフロー図である。It is a flow figure for demonstrating the image processing method in 2nd Embodiment. 第2実施形態における解像度の区分と文字サイズとの関係を示す図である。It is a figure which shows the relationship between the division of resolution and the character size in 2nd Embodiment. 第3実施形態における画像形成装置の機能構成を説明するための図である。It is a figure for demonstrating the functional structure of the image forming apparatus in 3rd Embodiment. 第3実施形態における画像処理方法を説明するためのフロー図である。It is a flow figure for demonstrating the image processing method in 3rd Embodiment. 第3実施形態における文字潰れ判定用のスコア計算時の重み係数を説明するための図である。It is a figure for demonstrating the weighting coefficient at the time of score calculation for character crush determination in 3rd Embodiment. 第3実施形態における領域分離結果と値数との関係を説明するための図である。It is a figure for demonstrating the relationship between the area separation result and the number of values in 3rd Embodiment. 第3実施形態における動作例を説明するための図である。It is a figure for demonstrating the operation example in 3rd Embodiment. 第3実施形態における動作例を説明するための図である。It is a figure for demonstrating the operation example in 3rd Embodiment.

以下に、本発明の実施の形態について、図を参照しながら詳細に説明する。以下の説明では、本発明に係る画像処理装置が画像形成装置の一部を成す形態を例示する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following description, a mode in which the image processing apparatus according to the present invention forms a part of the image forming apparatus will be illustrated.

[1.第1実施形態]
[1.1 機能構成説明]
図1は、第1実施形態に係る画像形成装置1の機能的構成を示すブロック図である。画像形成装置1は、コピー機能、印刷機能、及びスキャナ機能等を有するデジタル複合機である。画像形成装置1は、画像処理装置10、画像読み取り装置20、画像印刷装置30及び画像データ送信装置40を備えている。
[1. First Embodiment]
[1.1 Functional configuration description]
FIG. 1 is a block diagram showing a functional configuration of the image forming apparatus 1 according to the first embodiment. The image forming apparatus 1 is a digital multifunction device having a copy function, a printing function, a scanner function, and the like. The image forming apparatus 1 includes an image processing apparatus 10, an image reading apparatus 20, an image printing apparatus 30, and an image data transmitting apparatus 40.

画像処理装置10、画像読み取り装置20、画像印刷装置30及び画像データ送信装置40には、操作パネル50が接続されている。操作パネル50は、ユーザが画像形成装置の動作モードを設定するための設定ボタン及びテンキー等の操作部52と、液晶ディスプレイ等で構成される表示部54とを備える。 An operation panel 50 is connected to the image processing device 10, the image reading device 20, the image printing device 30, and the image data transmitting device 40. The operation panel 50 includes an operation unit 52 such as a setting button and a numeric keypad for the user to set an operation mode of the image forming apparatus, and a display unit 54 composed of a liquid crystal display or the like.

画像形成装置1で実行される各種処理は、制御部(CPU(Central Processing Unit)あるいはDSP(Digital Signal Processor)等のプロセッサを含むコンピュータ)が制御する。画像形成装置1の制御部100は、不図示のネットワークカード及びLAN(Local Area Network)ケーブルを介して、ネットワークに接続されたコンピュータ及び他のデジタル複合機等とデータ通信を行う。以下、画像形成装置1の各部について詳述する。 Various processes executed by the image forming apparatus 1 are controlled by a control unit (a computer including a processor such as a CPU (Central Processing Unit) or a DSP (Digital Signal Processor)). The control unit 100 of the image forming apparatus 1 performs data communication with a computer and other digital multifunction devices connected to the network via a network card (not shown) and a LAN (Local Area Network) cable. Hereinafter, each part of the image forming apparatus 1 will be described in detail.

画像読み取り装置20は、原稿から画像を光学的に読み取る装置である。画像読み取り装置20は、例えば、CCD(Charge Coupled Device)を有するカラースキャナよりなり、原稿からの反射光像を、CCDを用いてRGB(R:赤,G:緑,B:青)またはモノクロのアナログ信号として読み取り、画像処理装置10へ出力する。なお、画像読み取り装置20は、スキャナでなくてもよく、例えば、デジタルカメラ等であってもよい。 The image reading device 20 is a device that optically reads an image from a document. The image reading device 20 comprises, for example, a color scanner having a CCD (Charge Coupled Device), and the reflected light image from the document is converted into RGB (R: red, G: green, B: blue) or monochrome using the CCD. It is read as an analog signal and output to the image processing device 10. The image reading device 20 does not have to be a scanner, and may be, for example, a digital camera or the like.

画像処理装置10は、制御部100、画像入力部105、画像処理演算部110、特徴量算出演算部120、画像出力部130、原稿種別判定部140、記憶部150、および出力階調数設定部160を備えている。 The image processing device 10 includes a control unit 100, an image input unit 105, an image processing calculation unit 110, a feature amount calculation calculation unit 120, an image output unit 130, a document type determination unit 140, a storage unit 150, and an output gradation number setting unit. It has 160.

画像入力部105は、画像読み取り装置20が画像処理装置10へ出力したアナログ信号に基づき入力画像データを生成することで原稿の画像データを入力する機能部である。なお、画像入力部105は、上記の例に限定されず、外部から画像データを受け取り、受け取った画像データを入力画像データとして入力するものであってもよい。 The image input unit 105 is a functional unit that inputs image data of a document by generating input image data based on an analog signal output by the image reading device 20 to the image processing device 10. The image input unit 105 is not limited to the above example, and may receive image data from the outside and input the received image data as input image data.

画像処理演算部110は、入力画像データに対して画像処理を行い、新たな画像データ(出力画像データ)を生成する機能部である。画像処理の具体例としては、解像度変更処理、平滑化処理、鮮鋭化処理、ガンマ補正などの階調変換処理、カラー・モノクロ変換処理、白黒2値画像または多階調画像(グレースケール画像等)である階調数の異なる画像データへの変換処理などが挙げられる。 The image processing calculation unit 110 is a functional unit that performs image processing on the input image data and generates new image data (output image data). Specific examples of image processing include resolution change processing, smoothing processing, sharpening processing, gradation conversion processing such as gamma correction, color / monochrome conversion processing, black-and-white binary image or multi-gradation image (grayscale image, etc.). For example, conversion processing into image data having a different number of gradations.

特徴量算出演算部120は、画像データに基づき、適正な出力階調数を判定するときに用いる特徴量を算出する演算を行う機能部である。特徴量は、単純な数値データであってもよいし、画像データの各画素についての特徴量を示した数値データの群を画像データとして取り扱う特徴量画像データであってもよい。また、特徴量は必ずしも1成分である必要は無く、複数の成分を持つベクトルであってもよい。すなわち、後述する第1評価画像および第2評価画像と同一の画素数で構成され、画素毎に複数の成分を持つ特徴量画像データとすることも可能である。 The feature amount calculation calculation unit 120 is a functional unit that calculates a feature amount to be used when determining an appropriate output gradation number based on image data. The feature amount may be simple numerical data, or may be feature amount image data that handles a group of numerical data indicating the feature amount for each pixel of the image data as image data. Further, the feature amount does not necessarily have to be one component, and may be a vector having a plurality of components. That is, it is also possible to obtain feature amount image data having the same number of pixels as the first evaluation image and the second evaluation image, which will be described later, and having a plurality of components for each pixel.

画像出力部130は、画像処理装置10が生成した出力画像データを電子データの形式で画像処理装置10の外部に出力する機能部である。 The image output unit 130 is a functional unit that outputs the output image data generated by the image processing device 10 to the outside of the image processing device 10 in the form of electronic data.

原稿種別判定部140は、原稿の種別の判定(原稿種別判定)を行い、原稿の種別を判定した結果(原稿種別判定結果)を出力する機能部である。原稿種別判定の方法としては、何れかの公知方法を利用すればよいが、例えば、特開2002−218232号公報に開示されている、濃度ヒストグラムを用い最大度数値の濃度の区分ごとの解析などによって、読み取った原稿が写真原稿であるか文字原稿であるかを判別する方法を用いることができる。 The manuscript type determination unit 140 is a functional unit that determines the type of the manuscript (manuscript type determination) and outputs the result of determining the type of the manuscript (manuscript type determination result). As a method for determining the type of manuscript, any known method may be used. For example, analysis of the maximum concentration value for each category using a concentration histogram disclosed in JP-A-2002-218232 is used. Therefore, it is possible to use a method of determining whether the scanned original is a photographic original or a character original.

記憶部150は、複数の出力階調数候補に関する情報や、その他様々な設定情報を事前に記憶するとともに、画像処理中において、画像処理演算により作成した画像データを一時的に記憶する機能部である。記憶部150は、揮発性メモリ、不揮発性メモリ、またはこれらの組み合わせを用いることができる。また、ハードディスク装置などの磁気式記憶媒体を用いてもよい。 The storage unit 150 is a functional unit that stores information on a plurality of output gradation number candidates and various other setting information in advance, and temporarily stores image data created by image processing calculation during image processing. is there. The storage unit 150 can use a volatile memory, a non-volatile memory, or a combination thereof. Further, a magnetic storage medium such as a hard disk device may be used.

なお、画像処理演算部110、特徴量算出演算部120、原稿種別判定部140、出力階調設定部160は、制御部100がプログラムを実行することで、各機能部として動作するものであるが、各機能部をハードウェアで実現してもよい。 The image processing calculation unit 110, the feature amount calculation calculation unit 120, the document type determination unit 140, and the output gradation setting unit 160 operate as each functional unit when the control unit 100 executes a program. , Each functional part may be realized by hardware.

図2は、本実施形態において記憶部150に記憶される情報の例である。図2(a)は、原稿の種別ごとにグレースケール・白黒2値判定をするか否かを示した情報(以下、「原稿種別情報」という)である。原稿種別情報とは、具体的には、図2(a)に示すように、原稿種別判定部140において判定する原稿の種別を示す原稿種別判定結果(例えば、「文字」)と、原稿の種別ごとにグレースケール・白黒2値判定を行うか否かを示すグレースケール・白黒2値判定の有無(例えば、「ON」)とを対応付けた情報である。 FIG. 2 is an example of information stored in the storage unit 150 in the present embodiment. FIG. 2A is information (hereinafter, referred to as “manuscript type information”) indicating whether or not grayscale / black and white binary determination is performed for each type of manuscript. Specifically, as shown in FIG. 2A, the manuscript type information includes a manuscript type determination result (for example, “character”) indicating the type of the manuscript to be determined by the manuscript type determination unit 140 and the type of the manuscript. This is information associated with the presence / absence of grayscale / black / white binary determination (for example, “ON”) indicating whether or not to perform grayscale / black / white binary determination for each.

原稿の種別とは、原稿に表された画像の性質に基づく原稿の分類である。本実施形態では、原稿種別判定部140が判定する原稿の種別は、以下の5種類の何れかとする。
(1)文字
原稿の大部分が、明瞭なエッジによって構成される文字によって構成される原稿である。
(2)文字/印画紙写真
原稿が印画紙や光沢紙の写真が貼り付けられた用紙(例えば、コピー用紙)であり、原稿に写真と文字とが混在する原稿である。
(3)印画紙写真
原稿が印画紙であり、原稿の大部分が、銀塩写真のような連続的な階調で表現された写真によって構成される原稿である。
(4)印刷写真
原稿が印画紙以外の用紙(例えば、印刷物)であり、原稿の大部分が、網点や万線スクリーンのようなハーフトーン手法によって表現された写真によって構成される原稿である。
(5)文字/印刷写真
原稿が印画紙以外の用紙(例えば、コピー用紙)であり、原稿に写真と文字とが混在する原稿である。
The type of manuscript is a classification of manuscripts based on the nature of the image displayed on the manuscript. In the present embodiment, the type of the manuscript determined by the manuscript type determination unit 140 is any of the following five types.
(1) Characters Most of the originals are characters composed of characters with clear edges.
(2) Character / photographic paper photo The manuscript is a paper (for example, copy paper) to which a photo of photographic paper or glossy paper is attached, and the manuscript is a manuscript in which photographs and characters are mixed.
(3) Photographic paper The manuscript is photographic paper, and most of the manuscript is a manuscript composed of photographs expressed in continuous gradation such as silver halide photographs.
(4) Printed Photograph The manuscript is paper other than photographic paper (for example, printed matter), and most of the manuscript is a manuscript composed of photographs expressed by a halftone method such as halftone dots or a multi-line screen. ..
(5) Character / Printed Photograph The original is paper other than photographic paper (for example, copy paper), and the original is a manuscript in which photographs and characters are mixed.

例えば図2(a)の例では、原稿種別判定部140が出力する原稿種別判定結果が「文字」「文字/印画紙写真」「文字/印刷写真」であれば、グレースケール・白黒2値判定を行うことを示す。また、原稿種別判定部140が出力する原稿種別判定結果が「印画紙写真」あるいは「印刷写真」であれば、グレースケール・白黒2値判定を行わず、デフォルトの設定(初期値として設定した出力階調数)で出力することを示す。 For example, in the example of FIG. 2A, if the document type determination result output by the document type determination unit 140 is "character", "character / photographic paper photograph", or "character / print photograph", grayscale / black and white binary determination is performed. Indicates that If the original type determination result output by the original type determination unit 140 is "photographic paper photograph" or "printed photograph", the grayscale / black and white binary determination is not performed and the default setting (output set as the initial value) is performed. Indicates that the output is based on the number of gradations).

また、図2(b)は、グレースケール・白黒2値判定において用いるパラメータセットを原稿の種別ごとに示した情報(以下、「パラメータセット情報」という)である。パラメータセット情報とは、具体的には、図2(b)に示すように、原稿種別判定部140において判定する原稿の種別を示す原稿種別判定結果(例えば、「文字」)と、グレースケール・白黒2値判定において用いるパラメータセット(例えば、「Param_Text」)とを対応付けた情報である。 Further, FIG. 2B is information showing the parameter set used in the grayscale / black and white binary determination for each type of manuscript (hereinafter, referred to as “parameter set information”). Specifically, as shown in FIG. 2B, the parameter set information includes a manuscript type determination result (for example, “character”) indicating the type of the manuscript to be judged by the manuscript type determination unit 140, and grayscale. This is information associated with a parameter set (for example, "Param_Text") used in black-and-white binary determination.

例えば、原稿種別判定結果が「文字」である場合に用いるパラメータセットとしては、入力画像データの全域が文字領域であるため、画像に含まれるエッジが文字のエッジであるか否かを判定に用いる閾値を低くするパラメータセットを記憶する。一方で、原稿種別判定結果が「文字/印画紙写真」である場合に用いるパラメータセットとしては、写真領域に含まれるエッジを文字のエッジであると誤検出してしまうことを防ぐために、画像に含まれるエッジが文字のエッジであるか否かを判定に用いる閾値を高くするパラメータセットを記憶する。このようにすることで、原稿種別判定結果に応じて、文字の抽出を行うためのパラメータセットを切り替えて、グレースケール・白黒2値判定の精度を向上させることができる。 For example, as a parameter set used when the document type determination result is "character", since the entire area of the input image data is a character area, it is used for determination whether or not the edge included in the image is a character edge. Store the parameter set that lowers the threshold. On the other hand, as a parameter set used when the document type determination result is "character / photographic paper photograph", in order to prevent an edge included in the photographic area from being erroneously detected as a character edge, the image is included. Stores a parameter set that raises the threshold used to determine whether the included edge is a character edge. By doing so, it is possible to switch the parameter set for extracting characters according to the document type determination result, and improve the accuracy of grayscale / black and white binary determination.

なお、上述した情報以外にも、記憶部150には、出力階調数候補として、入力画像データを出力する場合における階調数である出力階調数を複数記憶する。例えば、カラー原稿をカラー画像の画像データとして出力する場合におけるカラー画像用の出力階調値と、モノクロ原稿をグレースケール画像の画像データとして出力する場合におけるモノクロ画像用の出力階調値とを記憶する。 In addition to the above-mentioned information, the storage unit 150 stores a plurality of output gradations, which are the number of gradations when the input image data is output, as output gradation number candidates. For example, the output gradation value for a color image when the color original is output as the image data of the color image and the output gradation value for the monochrome image when the monochrome original is output as the image data of the grayscale image are stored. To do.

出力階調数設定部160は、特徴量算出演算部120が算出した特徴量を基に、記憶部150に記憶された複数の出力階調数候補のうち、入力画像データを表わすのに最も適正な階調数を判定して、出力階調数として設定する機能部である。出力階調数設定部160が設定した出力階調数に従って、画像処理演算部110は、入力画像データの階調数を変換して、出力画像データを生成する。 The output gradation number setting unit 160 is the most appropriate for representing input image data among a plurality of output gradation number candidates stored in the storage unit 150 based on the feature amount calculated by the feature amount calculation calculation unit 120. This is a functional unit that determines the number of gradations and sets it as the number of output gradations. The image processing calculation unit 110 converts the number of gradations of the input image data according to the number of output gradations set by the output gradation number setting unit 160 to generate the output image data.

画像印刷装置30は、出力画像データに基づき画像を用紙に印刷する装置である。画像印刷装置30は、例えば、一般的な電子写真方式の複合機やプリンタなどを用いて、出力画像データに基づく画像を用紙に印刷する。 The image printing device 30 is a device that prints an image on paper based on the output image data. The image printing device 30 prints an image based on the output image data on paper by using, for example, a general electrophotographic multifunction device or a printer.

画像データ送信装置40は、ネットワークを介して出力画像データを外部に送信する装置である。画像データ送信装置40は、例えば、一般的な電子メールを用いて、出力画像データを外部に送信する。 The image data transmission device 40 is a device that transmits output image data to the outside via a network. The image data transmission device 40 transmits the output image data to the outside by using, for example, a general e-mail.

[1.2 処理の流れ]
次に、図3を参照して、上記の構成からなる画像形成装置1で出力階調数を設定する方法について説明する。図3に示す処理は、画像形成装置1の制御部100が、画像形成装置1に含まれる機能部を制御することにより実行される。
[1.2 Processing flow]
Next, with reference to FIG. 3, a method of setting the number of output gradations in the image forming apparatus 1 having the above configuration will be described. The process shown in FIG. 3 is executed by the control unit 100 of the image forming apparatus 1 controlling the functional unit included in the image forming apparatus 1.

[1.2.1 出力階調数の初期設定]
まず始めに、出力階調数の初期値を設定し、記憶部150に記憶する(ステップS102)。例えば、ユーザにより、出力の階調として「グレースケール」又は「白黒2値」のいずれかが手動で設定された上で原稿の読み取りが行われる場合に、適切な画像データを出力するために、ユーザの設定に対応する出力階調数を初期値として記憶部150に記憶する。具体的には、「グレースケール」の設定に対応する出力階調数の初期値として、「256階調」や「16階調」を記憶し、「白黒2値」の設定に対応する出力階調数の初期値として、「2階調」を記憶する。このようにすることで、ユーザにより出力の階調が手動で設定された場合は、原稿の種別によらず、ユーザに設定された階調に対応する出力階調数(例えば、出力の階調が「グレースケール」であれば256階調又は16階調、「白黒2値」であれば2階調)で画像データを出力することができる。また、ユーザによる設定もなく、グレースケール・白黒2値の判定も行われることのない場合において、グレースケールか白黒2値かの出力階調の指定を要するときの参照値として利用される出力階調数の値を、出力階調数の初期値として記憶部150に記憶する。
[1.2.1 Initial setting of output gradation number]
First, the initial value of the number of output gradations is set and stored in the storage unit 150 (step S102). For example, in order to output appropriate image data when the original is read after the user manually sets either "grayscale" or "black and white binary" as the output gradation. The number of output gradations corresponding to the user's setting is stored in the storage unit 150 as an initial value. Specifically, "256 gradations" and "16 gradations" are stored as initial values of the number of output gradations corresponding to the "grayscale" setting, and the output floor corresponding to the "black and white binary" setting is stored. "2 gradations" are stored as the initial value of the key. By doing so, when the output gradation is manually set by the user, the number of output gradations corresponding to the gradation set by the user (for example, the output gradation) regardless of the type of the original. Image data can be output in 256 gradations or 16 gradations if is "gray scale", and 2 gradations if is "black and white binary"). In addition, the output scale used as a reference value when it is necessary to specify the output gradation of grayscale or black-and-white binary when there is no setting by the user and the judgment of grayscale / black-and-white binary is not performed. The key value is stored in the storage unit 150 as the initial value of the output gradation number.

[1.2.2 原稿種別判定]
つづいて、制御部100は、ADFに載置された原稿セットから、画像読み取り装置20を介して原稿を1枚ごと読み出す(ステップS104)。このとき、画像入力部105は、画像読み取り装置20から出力されるアナログ信号に基づき入力画像データを生成することにより、原稿の画像データを入力する。つづいて、ACS判定により入力画像データに基づき、原稿がモノクロ原稿であるか否か(カラー原稿であるか)を判定する(ステップS106)。ACS判定の結果、原稿がモノクロ原稿であると判定された場合(ステップS106;Yes)、原稿種別判定部140は、入力画像データに基づき、処理対象の原稿の種別を特定するための原稿種別判定を行う(ステップS108)。前述のように、原稿がモノクロ原稿である場合は、原稿の種別によっては、白黒2値画像として取り扱うことによる文字潰れが生じてしまう恐れがある。そこで、原稿種別判定部140が原稿の種別を判定することで、文字潰れを生じてしまう恐れのある原稿をグレースケール・白黒2値判定の対象とする。このようにすることで、効率よく文字潰れを生じてしまう恐れのある原稿だけを処理対象とすることができる。
[1.2.2 Manuscript type judgment]
Subsequently, the control unit 100 reads the originals one by one from the original set placed on the ADF via the image reading device 20 (step S104). At this time, the image input unit 105 inputs the image data of the original by generating the input image data based on the analog signal output from the image reading device 20. Subsequently, it is determined whether or not the original is a monochrome original (whether it is a color original) based on the input image data by the ACS determination (step S106). When it is determined that the original is a monochrome original as a result of the ACS determination (step S106; Yes), the original type determination unit 140 determines the original type for specifying the type of the original to be processed based on the input image data. (Step S108). As described above, when the original is a monochrome original, character crushing may occur due to handling as a black and white binary image depending on the type of the original. Therefore, when the document type determination unit 140 determines the type of the document, the document that may cause character crushing is targeted for grayscale / black and white binary determination. By doing so, it is possible to efficiently process only the originals that may cause character crushing.

原稿種別判定の処理内容としては、例えば、前出の特開2002−218232号公報に開示されているような、濃度ヒストグラムを用いた最大度数となる濃度を区分し解析する方法を用いることができる。原稿種別判定により、原稿の大部分が網点によって表現された写真によって構成された印刷物の原稿、文章の書かれた文字の原稿、あるいは文章も印画紙の写真も同一紙面上にある文字と写真の原稿を、ぞれぞれ「印刷写真」、「文字」あるいは「文字/印画紙写真」といった原稿の種別として判定する。なお、既に説明したように、原稿種別判定部140は、記憶部150に記憶された原稿種別情報の原稿種別判定結果の何れかを、原稿種別判定の結果として出力する。 As the processing content of the manuscript type determination, for example, a method of classifying and analyzing the concentration having the maximum frequency using a density histogram as disclosed in JP-A-2002-218232 can be used. .. According to the manuscript type judgment, a printed manuscript composed of photographs in which most of the manuscript is represented by halftone dots, a manuscript of characters with sentences written on it, or a photo of both text and photographic paper are on the same page. Each manuscript is judged as a type of manuscript such as "printed photograph", "character" or "character / photographic paper photograph". As described above, the manuscript type determination unit 140 outputs any of the manuscript type determination results of the manuscript type information stored in the storage unit 150 as the result of the manuscript type determination.

[1.2.3 グレースケール・白黒2値判定と出力階調制御]
つづいて、制御部100は、原稿種別判定結果が、「印画紙写真」又は「印刷写真」であるか否か、すなわち、文字潰れを生じない写真原稿であるか否かを判定する(ステップS110)。原稿が写真原稿であれば、文字潰れが生じることがない。そこで、制御部100は、出力階調数設定部160に対して、グレースケール・白黒2値判定を実行せず、ステップS102において初期値として設定した「グレースケール」もしくは「白黒2値」の出力階調数にて画像データを出力するように、出力階調数の初期値を、出力する画像データの出力階調数に設定する制御を行う(ステップS110;Yes→ステップS112)。ユーザによって設定された出力の階調や、出力の階調が設定されていない場合における初期値として「グレースケール」が設定されていれば、出力階調数設定部160は、ステップS102において記憶した256階調や16階調を出力階調数として設定する。また、ユーザによって設定された出力の階調や、出力の階調が設定されていない場合における初期値として「白黒2値」が設定されていれば、出力階調数設定部160は、ステップS102において記憶した2階調を出力階調数として設定する。
[1.2.3 Grayscale / black and white binary judgment and output gradation control]
Subsequently, the control unit 100 determines whether or not the original type determination result is a “photographic paper photograph” or a “printed photograph”, that is, whether or not the original is a photographic original that does not cause character crushing (step S110). ). If the manuscript is a photographic manuscript, the characters will not be crushed. Therefore, the control unit 100 does not execute the grayscale / black and white binary determination for the output gradation number setting unit 160, and outputs the “grayscale” or “black and white binary” set as the initial value in step S102. Control is performed to set the initial value of the output gradation number to the output gradation number of the image data to be output so that the image data is output in the gradation number (step S110; Yes → step S112). If "gray scale" is set as the initial value when the output gradation set by the user or the output gradation is not set, the output gradation number setting unit 160 stores in step S102. 256 gradations and 16 gradations are set as the number of output gradations. Further, if the output gradation set by the user or the "black and white binary value" is set as the initial value when the output gradation is not set, the output gradation number setting unit 160 may perform step S102. The two gradations stored in the above are set as the number of output gradations.

一方で、ステップS110において、原稿種別判定結果が「印画紙写真」又は「印刷写真」といった写真原稿でない場合、すなわち、「文字」、「文字/印画紙写真」、「文字/印刷写真」であった場合には、文字潰れを生じる原稿が含まれている可能性がある。そこで、制御部100は、グレースケール・白黒2値判定を行うように出力階調数設定部160を制御する。そのために、まず、特徴量算出演算部120は、グレースケール・白黒2値判定に用いる入力画像データの特徴量を算出する(ステップS110;No→ステップS114)。そして、出力階調数設定部160は、原稿の種別や特徴量に基づき、グレースケール・白黒2値判定を実行する(ステップS116)。グレースケール・白黒2値判定を実行するとき、出力階調数設定部160は、記憶部150に記憶されたパラメータセット情報のうち、原稿種別判定結果に対応するパラメータセットを用いて判定してもよい。また、出力階調数設定部160は、グレースケール・白黒2値判定の判定に基づき、文字潰れを生じることの無いように、出力階調数を適切に設定する(ステップS118)。すなわち、出力階調数設定部160は、記憶部150に記憶された出力階調数候補の中から、グレースケール・白黒2値判定の判定に対応する階調数を、出力階調数として設定する。 On the other hand, in step S110, when the manuscript type determination result is not a photographic manuscript such as "printed paper photograph" or "printed photograph", that is, "character", "character / photographic paper photograph", and "character / printed photograph". If this is the case, there is a possibility that a document that causes crushed characters is included. Therefore, the control unit 100 controls the output gradation number setting unit 160 so as to perform grayscale / black and white binary determination. Therefore, first, the feature amount calculation calculation unit 120 calculates the feature amount of the input image data used for the grayscale / black and white binary determination (step S110; No → step S114). Then, the output gradation number setting unit 160 executes grayscale / black-and-white binary determination based on the type and feature amount of the original (step S116). When executing the grayscale / black and white binary determination, the output gradation number setting unit 160 may determine using the parameter set corresponding to the document type determination result among the parameter set information stored in the storage unit 150. Good. Further, the output gradation number setting unit 160 appropriately sets the output gradation number based on the determination of the grayscale / black-and-white binary determination so that the characters are not crushed (step S118). That is, the output gradation number setting unit 160 sets as the output gradation number the number of gradations corresponding to the determination of grayscale / black and white binary determination from the output gradation number candidates stored in the storage unit 150. To do.

なお、ステップS106において、ACS判定の結果、原稿がカラー原稿である場合は、出力階調数設定部160は、出力階調数をカラー画像用の階調数に設定すればよい(ステップS106;No→ステップS120)。 If the original is a color original as a result of the ACS determination in step S106, the output gradation number setting unit 160 may set the output gradation number to the gradation number for the color image (step S106; No → step S120).

つづいて、画像処理演算部110は、入力画像データの階調数を、ステップS112、ステップS118、ステップS120の何れかの処理で設定された出力階調数に変換した出力画像データを生成する(ステップS122)。なお、画像処理演算部110は、原稿の種別、特徴量、出力階調数等の情報に基づき、平滑化処理、鮮鋭化処理、ガンマ補正といった処理をしてもよい。そして、全ての入力画像データに対して処理が行われれば、すなわち、ADFに載置された全ての原稿を読み出していれば、処理を終了する(ステップS124;Yes)。全ての入力画像データに対して処理が行われていない場合は、ステップS104へ戻る(ステップS124;No→ステップS104)。 Subsequently, the image processing calculation unit 110 generates output image data obtained by converting the number of gradations of the input image data into the number of output gradations set in any of the processes of step S112, step S118, and step S120 ( Step S122). The image processing calculation unit 110 may perform processing such as smoothing processing, sharpening processing, and gamma correction based on information such as the type of original, the feature amount, and the number of output gradations. Then, if the processing is performed on all the input image data, that is, if all the originals placed on the ADF are read out, the processing ends (step S124; Yes). If all the input image data has not been processed, the process returns to step S104 (step S124; No → step S104).

本実施形態によれば、モノクロの原稿を白黒2値の画像データとして出力するか、グレースケールの画像データとして出力するかを、情報損失を数値化した情報損失評価値に基づいて判定することができる。このときに、文字潰れを生じる恐れの少ない写真原稿が読み取られた場合には、グレースケール・白黒2値判定を行わずに、出力階調数を設定することが可能となる。したがって、処理実行にかかる時間の削減や出力画像を得るまでの画像処理の工数を短縮でき、高速化が図れる。 According to the present embodiment, it is possible to determine whether to output a monochrome document as black-and-white binary image data or as grayscale image data based on an information loss evaluation value in which information loss is quantified. it can. At this time, when a photographic original with less possibility of character crushing is read, it is possible to set the number of output gradations without performing grayscale / black and white binary determination. Therefore, the time required for processing execution can be reduced, the man-hours for image processing until the output image is obtained can be shortened, and the speed can be increased.

また、原稿種別の判定結果に基づき、グレースケール・白黒2値判定に用いるパラメータセットを変更することが可能である。このため、グレースケール・白黒2値判定の精度を向上させることができる。 Further, it is possible to change the parameter set used for the grayscale / black and white binary determination based on the determination result of the original type. Therefore, the accuracy of grayscale / black and white binary determination can be improved.

例えば、図4(a)のような原稿を読み取った場合、従来であれば文字原稿として、図4(b)のような画像データとして出力されてしまう。すなわち、一部の場所が黒潰れにより文字潰れし、原稿が読めなくなっている。しかし、本実施形態によれば、特徴量を併せて算出してグレースケールとして出力されることから、画像処理装置10は、図4(a)の状態で画像データを出力することとなる。 For example, when a document as shown in FIG. 4A is read, it is conventionally output as a character document and as image data as shown in FIG. 4B. That is, some places are crushed by black and the manuscript cannot be read. However, according to the present embodiment, since the feature amounts are also calculated and output as grayscale, the image processing apparatus 10 outputs the image data in the state of FIG. 4A.

[2.第2実施形態]
次に、第2実施形態について説明する。昨今、原稿を最適な読み取り解像度にて読み取ることが行われている。例えば、小さい文字を含まない原稿を読み取らせる場合には解像度を低めに設定して、不必要にファイルサイズを増大させることなく読み取りを行うことができる。また、小さい文字を含む原稿を読み取らせる場合には解像度を上げて、文字の判読性を損なうことなく読み取りを行うことができる。このようなことを実現するために、読み取りの解像度を原稿に合わせて切り替える技術が提案されている。
[2. Second Embodiment]
Next, the second embodiment will be described. Recently, documents are read with an optimum reading resolution. For example, when scanning a document that does not contain small characters, the resolution can be set low so that scanning can be performed without unnecessarily increasing the file size. Further, when reading a document containing small characters, the resolution can be increased so that the characters can be read without impairing the legibility of the characters. In order to realize such a thing, a technique of switching the reading resolution according to the original has been proposed.

例えば、原稿の画像を構成する画素の画素値に基づき、その画像に係る文字候補を特定して文字候補を用いて文字列を特定し、その文字候補又はその文字列に基づいて画像の出力に係る出力解像度を決定する画像処理装置の技術が提案されている。例えば、画像に含まれる非文字領域の影響を踏まえて、画像に係る出力解像度の決定する方法については、いずれか公知の方法を利用することができるが、例えば、特開2017−55221号公報に開示されている方法を利用する。 For example, based on the pixel values of the pixels that make up the image of the original, the character candidates related to the image are specified, the character string is specified using the character candidates, and the image is output based on the character candidates or the character strings. A technique of an image processing device for determining the output resolution has been proposed. For example, any known method can be used as a method for determining the output resolution related to the image in consideration of the influence of the non-character region contained in the image. For example, Japanese Patent Application Laid-Open No. 2017-55221 can be used. Use the disclosed method.

第2実施形態は、いずれかの方法を使い、解像度の推定を行うことによって、原稿内に含まれる文字の大きさとして小さい文字を含むか否かの判定を行う。さらに、グレースケール・白黒2値判定における、文字領域の判定に使われるパラメータなどを、解像度に応じて切り替える実施形態である。第2実施形態は、第1実施形態の図1を図5に、図2を図6に、置き換えたものである。なお、同一の機能部には同一の符号を付し、説明については省略する。 In the second embodiment, one of the methods is used to estimate the resolution to determine whether or not a small character is included as the size of the character contained in the document. Further, in the grayscale / black and white binary determination, the parameters used for determining the character area and the like are switched according to the resolution. In the second embodiment, FIG. 1 of the first embodiment is replaced with FIG. 5, and FIG. 2 is replaced with FIG. The same functional parts are designated by the same reference numerals, and the description thereof will be omitted.

[2.1 機能構成]
本実施形態における画像形成装置2の機能的構成を示すブロック図を図5に示す。解像度推定部170は、画像を構成する文字候補を特定し、その文字候補を用いて文字列を特定し、前記文字候補又は前記文字列に基づいて前記画像の出力に係る出力解像度を決定するための機能部である。なお、解像度推定部170は、制御部100がプログラムを実行することで動作するが、ハードウェアで別に実現されてもよい。
[2.1 Functional configuration]
FIG. 5 shows a block diagram showing a functional configuration of the image forming apparatus 2 in the present embodiment. The resolution estimation unit 170 identifies the character candidates constituting the image, specifies the character string using the character candidate, and determines the output resolution related to the output of the image based on the character candidate or the character string. It is a functional part of. The resolution estimation unit 170 operates when the control unit 100 executes a program, but it may be realized separately by hardware.

[2.2 処理の流れ]
[2.2.1 最小文字サイズの初期設定]
本実施形態における処理フローについて、図6を参照して説明する。まず始めに、グレースケール・白黒2値判定を行う前に、予め、解像度と解像度に適した最小の文字サイズとを設定し、初期値として記憶部150に記憶する(ステップS102→ステップS202)。最小の文字サイズとは、文字領域として扱う領域に含まれるエッジの長さの最小値である。例えば、エッジが含まれる領域について、当該領域の短辺の長さが最小の文字サイズ以上であれば文字領域として扱い、当該領域の短辺の長さが最小の文字未満であれば文字領域としては扱わない。ここでは、例えば、ユーザにより手動で解像度を指定した上で、原稿の読み取りが行われる場合には、ユーザ指定の解像度で読み取りが行われるため、ユーザが指定した解像度に適した最小文字サイズとなる値を参照して初期値として決定し、記憶部150に記憶する。また、ユーザによって手動で解像度が指定されなかった場合において、前述した解像度推定部170による解像度推定が困難であった際など、解像度推定部170の応答が適正に行われなかったときに使われる、暫定的な値としても利用される。例えば、300dpiを初期解像度としている場合、それに準じた値(例えば、8画素)を記憶部150に記憶する。
[2.2 Processing flow]
[2.2.1 Initial setting of minimum font size]
The processing flow in this embodiment will be described with reference to FIG. First, before performing the grayscale / black-and-white binary determination, the resolution and the minimum character size suitable for the resolution are set in advance and stored in the storage unit 150 as initial values (step S102 → step S202). The minimum character size is the minimum value of the edge length included in the area treated as the character area. For example, regarding the area including the edge, if the length of the short side of the area is equal to or larger than the minimum character size, it is treated as a character area, and if the length of the short side of the area is less than the minimum character, it is treated as a character area. Does not handle. Here, for example, when the original is read after the resolution is manually specified by the user, the reading is performed at the resolution specified by the user, so that the minimum character size suitable for the resolution specified by the user is obtained. The value is referred to and determined as an initial value, and stored in the storage unit 150. Further, it is used when the response of the resolution estimation unit 170 is not properly performed, such as when the resolution is not manually specified by the user and the resolution estimation by the resolution estimation unit 170 described above is difficult. It is also used as a provisional value. For example, when 300 dpi is set as the initial resolution, a value (for example, 8 pixels) according to the initial resolution is stored in the storage unit 150.

[2.2.2 解像度推定の実行]
次に、読み取られた原稿の種別が「印画紙写真」又は「印刷写真」といった写真原稿でない場合、すなわち、「文字」、「文字/印画紙写真」、「文字/印刷写真」であった場合には、解像度推定部170は、入力画像データの解像度を推定する(ステップS110;No→ステップS204)。解像度推定の処理の概略として、はじめに、解像度推定部170は、画像内のエッジを抽出し、抽出されたエッジから、文字らしいエリアを文字矩形として抽出する。次に、解像度推定部170は、抽出された文字矩形について、文字矩形に含まれる画素が文字列を構成するか否かを判定し、文字矩形を構成する画素が文字列であると判定した場合は、文字矩形を文字列として抽出する。そして、解像度推定部170は、文字列として抽出された文字矩形に対して、最適な出力解像度を、入力画像データの解像度として推定する。入力画像データの解像度の推定方法としては、矩形のサイズと文字サイズおよび出力解像度との対応表などから、導出することにより決定を行う方法があげられる。
[2.2.2 Execution of resolution estimation]
Next, when the type of the scanned manuscript is not a photographic manuscript such as "printed paper photograph" or "printed photograph", that is, when it is "character", "character / photographic paper photograph", or "character / printed photograph". The resolution estimation unit 170 estimates the resolution of the input image data (step S110; No → step S204). As an outline of the resolution estimation process, first, the resolution estimation unit 170 extracts edges in the image, and extracts a character-like area as a character rectangle from the extracted edges. Next, the resolution estimation unit 170 determines whether or not the pixels included in the character rectangle constitute a character string for the extracted character rectangle, and determines that the pixels constituting the character rectangle are character strings. Extracts a character rectangle as a character string. Then, the resolution estimation unit 170 estimates the optimum output resolution as the resolution of the input image data for the character rectangle extracted as the character string. As a method of estimating the resolution of the input image data, there is a method of making a determination by deriving from a correspondence table between the rectangle size and the character size and the output resolution.

[2.2.3 推定された解像度に基づく最小の文字サイズの規定]
推定された画像データの解像度について、解像度と文字の分解能との関係を考慮し、画像入力装置の解像度の区分と最小の文字サイズとの関係を求めると、例えば、図7に示すような関係となる。図7の例は、画像データの解像度をxとして、xの値を150dpi未満、150dpi以上300dpi未満、300dpi以上の3段階のレベルに区分けし、それぞれの区分けにおける最小文字の画素数について、4、6、8画素が最小文字サイズの文字の画素数と定義されていることを示す図である。なお、図7では、最小の文字サイズを画素数で示しているが、最小の文字サイズは画素数によって示すことに限定されるものではなく、例えば、ポイント数や級数で示してもよい。
[2.2.3 Regulation of minimum font size based on estimated resolution]
Regarding the estimated resolution of the image data, considering the relationship between the resolution and the resolution of the characters, the relationship between the resolution division of the image input device and the minimum character size is obtained, for example, the relationship as shown in FIG. Become. In the example of FIG. 7, the resolution of the image data is x, and the value of x is divided into three levels of less than 150 dpi, 150 dpi or more and less than 300 dpi, and 300 dpi or more. It is a figure which shows that 6 or 8 pixels are defined as the number of pixels of the character of the minimum character size. Although the minimum character size is shown by the number of pixels in FIG. 7, the minimum character size is not limited to the number of pixels, and may be shown by, for example, the number of points or a series.

そして、グレースケール・白黒2値の判定における、注目画素の属性として文字領域か否かの判定を行う文字領域判定の処理に、最小の文字の画素数を用いる。例えば、入力画像データの解像度が150dpiと判定された場合には、6画素が最小文字の大きさとなる。そこで、文字領域判定において、注目画素の周辺画素を含めて最小文字の画素数を判定の基準の一つに用いた場合に、その画素値(例えば、注目画素の周辺画素を含んだ領域の短辺方向の長さ)が6画素を下回るものは、文字とはみなさないようにすることができる。このようにすることで、他の判定処理の結果を使わずとも、画素数の観点だけではあるものの文字でないかどうかを瞬時に判定することが可能となる。 Then, in the grayscale / black-and-white binary determination, the minimum number of character pixels is used in the character area determination process for determining whether or not the character area is an attribute of the pixel of interest. For example, when the resolution of the input image data is determined to be 150 dpi, 6 pixels is the minimum character size. Therefore, in the character area determination, when the number of pixels of the minimum character including the peripheral pixels of the attention pixel is used as one of the determination criteria, the pixel value (for example, the area including the peripheral pixels of the attention pixel is short). Characters whose side length) is less than 6 pixels can be regarded as characters. By doing so, it is possible to instantly determine whether or not the character is not a character, although it is only from the viewpoint of the number of pixels, without using the result of other determination processing.

また、画像内の本来文字領域でないエリア内にて抽出されたエッジ部が6画素未満のものが、文字としての判定とはならないため、最小文字の画素数による区分けがない場合に比べ、文字エッジとして誤検出されていた写真内エッジを削減することができる。 Further, since the edge portion extracted in the area other than the original character area in the image with less than 6 pixels is not judged as a character, the character edge is not classified by the minimum number of pixels of the character. It is possible to reduce the edges in the photograph that were erroneously detected as.

図7に示したような解像度と文字の分解能とを示す情報は、例えば記憶部150に記憶される。そして、制御部100は、ステップS204において推定された解像度と、記憶部150に記憶された解像度と文字の分解能とを示す情報に基づき、入力画像データにおける最小文字サイズを規定(推定)する(ステップS206)。そして、出力階調数設定部160は、最小文字の画素数を考慮して、グレースケール・白黒2値判定を実行する(ステップS208)。なお、ユーザによって解像度が指定された上で原稿が読み取られた場合は、制御部100はステップS204とステップS206とをスキップして、ユーザによって指定された解像度に適した最小文字サイズに基づいて、グレースケール・白黒2値判定を実行する。 Information indicating the resolution and the resolution of characters as shown in FIG. 7 is stored in, for example, the storage unit 150. Then, the control unit 100 defines (estimates) the minimum character size in the input image data based on the information indicating the resolution estimated in step S204, the resolution stored in the storage unit 150, and the character resolution (step). S206). Then, the output gradation number setting unit 160 executes grayscale / black-and-white binary determination in consideration of the number of pixels of the minimum character (step S208). When the original is read after the resolution is specified by the user, the control unit 100 skips step S204 and step S206, and based on the minimum character size suitable for the resolution specified by the user, Grayscale / black and white binary judgment is executed.

上記の工程を実施し、全ての入力画像データに対して処理が行われれば終了となる(ステップS124;Yes)。全ての入力画像データに対して処理が行われていない場合は、ステップS104へ戻る(ステップS124;No→ステップS104)。 When the above steps are carried out and all the input image data are processed, the process ends (step S124; Yes). If all the input image data has not been processed, the process returns to step S104 (step S124; No → step S104).

本実施形態によれば、解像度判定結果に応じて、グレースケール・白黒2値判定の判定条件を切り替えることが可能となる。このようにすることで、例えば、写真領域内において誤検知した小さな文字エッジ領域を、グレースケール・白黒2値判定において、判定の対象の領域から除外することができる。 According to the present embodiment, it is possible to switch the determination conditions for grayscale / black and white binary determination according to the resolution determination result. By doing so, for example, a small character edge region falsely detected in the photographic region can be excluded from the region to be determined in the grayscale / black and white binary determination.

[3.第3実施形態]
つづいて、第3の実施形態について説明する。第3実施形態は、入力画像データ、特に原稿を読み取り装置で読み取らせる場合の入力画像データに対し、「文字」や「印画紙写真」といった比較的大きい分類となる画像の分類よりも小さい分類を行う実施形態である。例えば、入力画像データに含まれる黒い文字(黒文字)についてさらに分類した場合として、下地や網点がない文字領域における黒文字なのか、下地がある黒文字(下地あり黒文字)なのか、網点上の黒文字(網点上黒文字)なのか、などといった区分けを行う。このように小さく分類することにより、原稿全面を画一的な紙面とするのではなく、原稿上にある各領域に対して、適応的に文字潰れがあるかどうかの判定を行うことができる。第3実施形態は、第1実施形態の図1を図8に、図2を図9に、置き換えたものである。なお、同一の機能部には同一の符号を付し、説明については省略する。第3実施形態は、第1実施形態の図1を図8に、図2を図9に、置き換えたものである。なお、同一の機能部には同一の符号を付し、説明については省略する。
[3. Third Embodiment]
Next, a third embodiment will be described. In the third embodiment, the input image data, particularly the input image data when the original is read by a scanning device, is classified smaller than the relatively large classification of images such as "characters" and "photographic paper photographs". It is an embodiment to carry out. For example, when the black characters (black characters) included in the input image data are further classified, whether they are black characters in the character area without a background or halftone dots, black characters with a background (black characters with a background), or black characters on the halftone dots. It is classified as to whether it is (black letters on halftone dots). By classifying the characters into small pieces in this way, it is possible to adaptively determine whether or not there is character crushing in each area on the document, instead of making the entire surface of the document a uniform paper surface. In the third embodiment, FIG. 1 of the first embodiment is replaced with FIG. 8, and FIG. 2 is replaced with FIG. The same functional parts are designated by the same reference numerals, and the description thereof will be omitted. In the third embodiment, FIG. 1 of the first embodiment is replaced with FIG. 8, and FIG. 2 is replaced with FIG. The same functional parts are designated by the same reference numerals, and the description thereof will be omitted.

[3.1 機能構成]
本実施形態における画像形成装置3の機能的構成を示すブロック図を図8に示す。領域分離判定部180は、画像を構成している各画素に対して、周辺画素との差分などの特徴量を計算し、統計的な判定を使うなどして、その画素の周囲との関連性を鑑みて、注目画素がどんな特性を持つ画素であるかの判定を行うための機能部である。なお、領域分離判定部180は、制御部100がプログラムを実行することで動作するが、ハードウェアで別に実現されてもよい。
[3.1 Functional configuration]
FIG. 8 shows a block diagram showing a functional configuration of the image forming apparatus 3 in the present embodiment. The area separation determination unit 180 calculates a feature amount such as a difference from peripheral pixels for each pixel constituting the image, and uses statistical determination to determine the relationship with the surroundings of the pixel. This is a functional unit for determining what kind of characteristics the pixel of interest has in view of the above. The area separation determination unit 180 operates when the control unit 100 executes a program, but it may be realized separately by hardware.

[3.2 処理の流れ]
[3.2.1 文字潰れ判定用パラメータの初期設定]
本実施形態における処理フローについて、図9を参照して説明する。まず始めに、文字潰れを生じているか否かの判定を行う領域分離判定部180で用いる判定用パラメータの初期値を記憶部150に記憶する(ステップS302)。例えば、領域分離判定部180内での判定結果として、「文字」、「網点」、「下地」あるいは「その他」といった区分けがなされたとする。また、領域分離判定部180によって、黒文字の領域が抽出されたとする。このとき、黒文字のうち、「下地」と区分けされた領域にある黒文字(下地あり黒文字)や、「網点」と区分けされた領域にある黒文字(網点上黒文字)が文字潰れの対象となる。そこで、文字潰れを生じやすい領域である「下地」や「網点」に属する領域については、他の領域に比べて文字潰れの可能性が高いことから、文字潰れが生じていると判定されやすいような重みを付与させる。例えば、判定方法として、所定の値を超えるかどうかを判断する閾値処理を行う場合に、これら「下地」や「網点」の領域については、これらに属する領域の重み係数を大きく設定する。このようにして、「下地」や「網点」の領域は、他の領域よりも閾値処理に使う数値が大きな値となり易くする。
[3.2 Processing flow]
[3.2.1 Initial setting of parameters for character crush judgment]
The processing flow in this embodiment will be described with reference to FIG. First, the initial value of the determination parameter used in the area separation determination unit 180 that determines whether or not the character is crushed is stored in the storage unit 150 (step S302). For example, it is assumed that the determination result in the area separation determination unit 180 is classified into "character", "halftone dot", "base", or "other". Further, it is assumed that the region of black characters is extracted by the region separation determination unit 180. At this time, among the black characters, the black characters in the area classified as "ground" (black characters with background) and the black characters in the area classified as "halftone dots" (black characters on halftone dots) are subject to character crushing. .. Therefore, in the areas belonging to the "base" and "halftone dots", which are areas where character crushing is likely to occur, the possibility of character crushing is higher than in other areas, so it is easy to determine that character crushing has occurred. Give weight like this. For example, as a determination method, when performing a threshold value process for determining whether or not a predetermined value is exceeded, the weighting coefficient of the region belonging to these "base" and "halftone dot" regions is set large. In this way, in the "base" and "halftone dot" areas, the numerical value used for the threshold processing tends to be larger than in the other areas.

例えば、図10に示すような初期値としての関係となるような重み係数を初期値として、記憶部150に記憶する。この設定は、前述した領域分離判定部180内での領域分離処理が困難であった場合など、応答が適正に行われなかった場合に使われる暫定的な値として利用できる。このようにすることで、領域分離判定部180が故障した場合でも、領域分離の結果としては反映がなされず、領域分離を行わないときと同じ精度のままの動作を保証できる。すなわち、重み係数としては、全ての画素に「その他」の重み1.0が適用されるため、重み係数は変化しないこととなる。 For example, a weighting coefficient having a relationship as an initial value as shown in FIG. 10 is stored in the storage unit 150 as an initial value. This setting can be used as a provisional value used when the response is not properly performed, such as when the region separation processing in the region separation determination unit 180 described above is difficult. By doing so, even if the region separation determination unit 180 fails, the result of the region separation is not reflected, and the operation with the same accuracy as when the region separation is not performed can be guaranteed. That is, as the weighting coefficient, the "other" weight of 1.0 is applied to all the pixels, so that the weighting coefficient does not change.

[3.2.2 領域分離処理の実行]
次に、読み取られた原稿の種別が「印画紙写真」又は「印刷写真」といった写真原稿でない場合、すなわち、「文字」、「文字/印画紙写真」、「文字/印刷写真」であった場合には、領域分離判定部180は、領域分離処理を行う(ステップS110;No→ステップS304)。領域分離判定部180は、領域分離処理として、入力画像データを文字領域、網点領域又は写真領域を含む複数の領域に分離する。領域を分離する処理の概略として、判定を行う所定エリア内において、濃度値の最大・最小や最大濃度差などの統計量を求め、それら統計量等をもとに、各画素に対して、統計量の大小関係を条件として所定エリアがどのような領域であるかを判定する。このようにすることで、「下地」と「印画紙」、あるいは「文字」と「網点」および「その他」といった領域の判別が行える。
[3.2.2 Execution of area separation processing]
Next, when the type of the scanned manuscript is not a photographic manuscript such as "printed paper photograph" or "printed photograph", that is, when it is "character", "character / photographic paper photograph", or "character / printed photograph". The area separation determination unit 180 performs the area separation process (step S110; No → step S304). The area separation determination unit 180 separates the input image data into a plurality of areas including a character area, a halftone dot area, and a photographic area as the area separation process. As an outline of the process of separating the regions, statistics such as the maximum / minimum density value and the maximum density difference are obtained in a predetermined area for determination, and statistics are obtained for each pixel based on these statistics. It is determined what kind of area the predetermined area is on the condition of the magnitude relation of the amount. By doing so, it is possible to discriminate areas such as "base" and "photographic paper", or "characters" and "halftone dots" and "others".

ここでの領域分離の実行により、読み取らせた原稿の各画素に対しての属性が、例えば、図10にあるような5種類に分類した際において、領域分離の属性の結果に対応する値数の例を図11に示す。この値数を持った全画素数に相当する2次元配列データを次のグレースケール・白黒2値判定の判定内の重み係数切り替えの処理に用いる。 By executing the area separation here, when the attributes for each pixel of the scanned document are classified into five types as shown in FIG. 10, for example, the number of values corresponding to the result of the area separation attribute. An example of is shown in FIG. The two-dimensional array data corresponding to the total number of pixels having this number of values is used for the processing of switching the weighting coefficient in the judgment of the next grayscale / black and white binary judgment.

[3.2.3 文字潰れ判定用重み係数を使ったグレースケール・白黒2値判定処理]
つづいて、文字潰れ判定における重み係数の使ったグレースケール・白黒2値判定を行う(ステップS306)。ここで、文字潰れ判定における重み係数を使ったグレースケール・白黒2値判定について説明する。図12は、網点の上にある「山」という文字が読み取られた際のグレースケール画像の例であり、矩形が画素を示し、矩形内の数値が画素値を示している。このときの領域分離の結果が図13のように得られたとすると、図10に示した属性にある重み係数を、対応する係数を判定に用いる判定式内にある重み係数を当てはめる。
[3.2.3 Grayscale / black and white binary judgment processing using weight coefficient for character collapse judgment]
Subsequently, a grayscale / black-and-white binary determination using the weighting coefficient in the character collapse determination is performed (step S306). Here, a grayscale / black-and-white binary determination using a weighting coefficient in a character crush determination will be described. FIG. 12 is an example of a grayscale image when the character “mountain” above the halftone dots is read. The rectangle indicates the pixel, and the numerical value in the rectangle indicates the pixel value. Assuming that the result of region separation at this time is obtained as shown in FIG. 13, the weighting coefficient in the attribute shown in FIG. 10 is applied to the weighting coefficient in the discriminant using the corresponding coefficient for the determination.

例えば、図12の左上の太枠で囲われた10×10画素の範囲をブロックαとする。この場合に、網点の画素であるAの位置にある画素のスコア値(評価値)の計算式には、重み係数として、図13の二次元配列データ上にある同一の座標にあるaの位置の重み係数である、図10の対応表にある値数16(=網点)の2.00という重みを用いる。 For example, the range of 10 × 10 pixels surrounded by the thick frame on the upper left of FIG. 12 is defined as the block α. In this case, in the calculation formula of the score value (evaluation value) of the pixel at the position A, which is the pixel of the halftone dot, the weight coefficient of a at the same coordinates on the two-dimensional array data of FIG. The weight of 2.00 of the number of values 16 (= halftone dots) in the correspondence table of FIG. 10, which is the weight coefficient of the position, is used.

ここで、ブロックαの特徴量は、文字潰れ判定処理を実行する前に算出される値であり、特徴量算出演算部120にて計算される。ブロックαの特徴量が100と算出された場合であれば、下式により網点の画素であるAの位置にある画素のスコア値が計算される。
ScoreA = ブロックαの特徴量 × 画素位置Aの重み係数
= 100 × 2.00
= 200
Here, the feature amount of the block α is a value calculated before executing the character crush determination process, and is calculated by the feature amount calculation calculation unit 120. If the feature amount of the block α is calculated to be 100, the score value of the pixel at the position A, which is the pixel of the halftone dot, is calculated by the following formula.
ScoreA = Feature amount of block α × Weight coefficient of pixel position A
= 100 x 2.00
= 200

同様に、図13における実際の網点上の文字の画素にあたるbの位置の画素のスコア値の計算式には、図12のBの位置における重み係数として、図10の対応表から網点上黒文字10.0が用いられる。したがって、下式により網点上の文字の画素であるBの位置にある画素のスコア値が計算される。
ScoreB = ブロックαの特徴量 × 画素位置Bの重み係数
= 100 × 10.00
= 1000
上記のようにブロック内の各画素についてスコア値が計算される。
Similarly, in the calculation formula of the score value of the pixel at the position b corresponding to the pixel of the character on the actual halftone dot in FIG. 13, the weighting coefficient at the position B in FIG. 12 is shown on the halftone dot from the correspondence table of FIG. Black letters 10.0 are used. Therefore, the score value of the pixel at the position B, which is the pixel of the character on the halftone dot, is calculated by the following formula.
ScoreB = Feature of block α × Weight coefficient of pixel position B
= 100 x 10.00
= 1000
The score value is calculated for each pixel in the block as described above.

画素ごとに、画素の属性に応じて重み係数が変化する。そのため、図10のように重み係数が割り振られていた場合には、同じブロック内において、「その他」画素に対して、「網点」画素で2倍、また、「網点上文字」画素あるいは「下地あり黒文字」画素の場合には10倍もスコア値が変動することとなる。したがって、検出したい黒潰れしてしまう恐れのある「下地あり黒文字」や「網点上黒文字」をより分別しやすくできる。 For each pixel, the weighting coefficient changes according to the attributes of the pixel. Therefore, when the weighting coefficient is assigned as shown in FIG. 10, in the same block, the "halftone dot" pixel is doubled with respect to the "other" pixel, and the "halftone dot character" pixel or In the case of "black characters with background" pixels, the score value fluctuates 10 times. Therefore, it is possible to make it easier to distinguish "black characters with a background" and "black characters on halftone dots" that may be crushed in black.

このように画素毎に計算されたスコア値は、ブロック内総画素数分のスコア値を合算した値について、所定値よりも大きければ、文字潰れが発生するブロック候補として判定が行われる。 If the score value calculated for each pixel in this way is larger than a predetermined value for the sum of the score values for the total number of pixels in the block, it is determined as a block candidate in which character crushing occurs.

そして、上記の工程を実施し、全ての入力画像データに対して処理が行われれば終了となる(ステップS124;Yes)。全ての入力画像データに対して処理が行われていない場合は、ステップS104へ戻る(ステップS124;No→ステップS104)。 Then, when the above steps are carried out and all the input image data are processed, the process ends (step S124; Yes). If all the input image data has not been processed, the process returns to step S104 (step S124; No → step S104).

本実施形態によれば、グレースケール・白黒2値判定において、文字潰れが発生する可能性が高い部分に対して、文字検出に用いるパラメータの重みを制御し、計算方法を切り替えることが可能となる。また、グレースケール・白黒2値判定において、判定に不要な領域の影響を小さくすることが可能となる。 According to the present embodiment, in grayscale / black and white binary determination, it is possible to control the weight of the parameter used for character detection and switch the calculation method for the portion where character crushing is likely to occur. .. Further, in the grayscale / black and white binary determination, it is possible to reduce the influence of the region unnecessary for the determination.

[4.変形例]
実施形態の説明に記載した画像処理装置10に含まれる各機能部は、ソフトウェアで実現してもよいし、全て又は一部をハードウェア(回路や装置)で実現してもよい。何れの場合であっても、画像データの特徴量と、原稿の種別とに基づき、適切な出力階調数を設定し、入力画像データを、設定した出力階調数の画像データとして生成できればよい。
[4. Modification example]
Each functional unit included in the image processing apparatus 10 described in the description of the embodiment may be realized by software, or may be realized in whole or in part by hardware (circuit or device). In any case, it suffices to set an appropriate number of output gradations based on the feature amount of the image data and the type of the original, and generate the input image data as the image data of the set number of output gradations. ..

本願発明はデジタル複写機に適用してもよい。また、コピー機能、プリンタ機能、ファクシミリ送信機能、scan to e−mail機能等を備えるデジタルカラー複合機に適用してもよい。デジタルカラー複合機は、さらに、例えば、モデムやネットワークカードよりなる通信装置を備えていてもよい。通信装置は、ファクシミリの送信を行うときは、モデムにて、相手先との送信手続きを行い送信可能な状態が確保されると、所定の形式で圧縮された画像データ(スキャナで読み込まれた画像データ)をメモリから読み出し、圧縮形式の変更など必要な処理を施して、相手先に通信回線を介して順次送信する。 The present invention may be applied to a digital copier. Further, it may be applied to a digital color multifunction device having a copy function, a printer function, a facsimile transmission function, a scan to e-mail function and the like. The digital color multifunction device may further include a communication device including, for example, a modem or a network card. When transmitting a facsimile, the communication device performs a transmission procedure with the other party with a modem, and when a state in which transmission is possible is secured, image data compressed in a predetermined format (image read by a scanner). Data) is read from the memory, necessary processing such as changing the compression format is performed, and the data is sequentially transmitted to the other party via the communication line.

ファクシミリを受信する場合、CPUは、通信手続きを行いながら相手先から送信されてくる画像データを受信して画像処理装置に入力し、画像処理装置では、受信した画像データを、不図示の圧縮/伸張処理部にて伸張処理を施す。伸張された画像データは、必要に応じて、回転処理や解像度変換処理が行なわれ、出力階調補正、階調再現処理が施され、画像印刷装置30より出力される。 When receiving the facsimile, the CPU receives the image data transmitted from the other party and inputs it to the image processing device while performing the communication procedure, and the image processing device compresses the received image data (not shown). Stretching is performed in the stretching processing section. The stretched image data is subjected to rotation processing and resolution conversion processing, output gradation correction, and gradation reproduction processing, if necessary, and is output from the image printing device 30.

また、ネットワークカード、LANケーブルを介して、ネットワークに接続されたコンピュータや他のデジタル複合機とデータ通信を行なう。 In addition, data communication is performed with a computer or other digital multifunction device connected to the network via a network card or LAN cable.

上記では、カラー複合機について説明したが、モノクロの複合機であっても構わない。本発明はコンピュータに実行させるためのプログラムを記録したコンピュータ読み取り可能な記録媒体に、上記した画像処理装置において、背景を含んで撮影された対象を含む画像を入力して対象領域だけの画像データを抽出する処理方法を記録するものとすることもできる。 Although the color multifunction device has been described above, it may be a monochrome multifunction device. In the present invention, an image including an object taken with a background is input to a computer-readable recording medium on which a program to be executed by a computer is recorded, and image data of only the target area is input. It is also possible to record the processing method to be extracted.

この結果、上記処理を行うプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録した記録媒体を持ち運び自在に提供することができる。
なお、本実施の形態では、この記録媒体としては、マイクロコンピュータで処理が行われるために図示していないメモリ、例えばROMのようなものそのものがプログラムメディアであってもよいし、また、図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。
As a result, a recording medium on which the program code (executable program, intermediate code program, source program) that performs the above processing is recorded can be freely provided.
In the present embodiment, as the recording medium, a memory (for example, a ROM) itself (not shown) may be a program medium because the processing is performed by the microcomputer, or is shown in the figure. Although it is not provided, a program reading device may be provided as an external storage device, and the program media may be readable by inserting a recording medium into the program reading device.

いずれの場合においても、格納されているプログラムはマイクロプロセッサがアクセスして実行させる構成であってもよいし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。
ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であってもよい。
In either case, the stored program may be configured to be accessed and executed by the microprocessor, or in either case, the program code is read and the read program code is the microcomputer's. A method may be used in which the program is downloaded to a program storage area (not shown) and the program is executed. It is assumed that this download program is stored in the main unit in advance.
Here, the program media is a recording medium configured to be separable from the main body, and is a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, a CD-ROM / MO / MD / DVD, or the like. Disk system of optical disk, card system such as IC card (including memory card) / optical card, or semiconductor by mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that fixedly carries the program code including the memory.

また、本実施の形態においては、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであってもよい。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 Further, in the present embodiment, since the system configuration is such that a communication network including the Internet can be connected, the medium may be a medium that supports the program code in a fluid manner so as to download the program code from the communication network. When the program is downloaded from the communication network in this way, the download program may be stored in the main unit in advance or may be installed from another recording medium. The present invention 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.

上記記録媒体は、画像処理装置に備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。 The above-mentioned image processing method is executed by reading the recording medium by a program reading device provided in the image processing device.

1、2、3 画像形成装置
10 画像処理装置
100 制御部
105 画像入力部
110 画像処理演算部
120 特徴量算出演算部
130 画像出力部
140 原稿種別判定部
150 記憶部
160 出力階調数設定部
170 解像度推定部
180 領域分離判定部
20 画像読み取り装置
30 画像印刷装置
40 画像データ送信装置
50 操作パネル
52 操作部
54 表示部
1, 2, 3 Image forming device 10 Image processing device 100 Control unit 105 Image input unit 110 Image processing calculation unit 120 Feature amount calculation calculation unit 130 Image output unit 140 Manuscript type determination unit 150 Storage unit 160 Output gradation number setting unit 170 Resolution estimation unit 180 Area separation judgment unit 20 Image reading device 30 Image printing device 40 Image data transmission device 50 Operation panel 52 Operation unit 54 Display unit

Claims (8)

原稿の画像データを入力する入力部と、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するカラー・モノクロ判定部と、
前記画像データから特徴量を算出する特徴量算出部と、
前記画像データに基づき、前記原稿の種別を判定する原稿種別判定部と、
前記原稿がモノクロ原稿である場合は、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定する出力階調数設定部と、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成する画像処理部と、
を備えたことを特徴とする画像処理装置。
Input section for inputting image data of manuscript and
A color / monochrome determination unit that determines whether the original is a monochrome original or a color original based on the image data.
A feature amount calculation unit that calculates a feature amount from the image data,
A manuscript type determination unit that determines the type of the manuscript based on the image data,
When the original is a monochrome original, the gradation number of any one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the original, and the original When is a color document, an output gradation number setting unit that sets a predetermined gradation number as an output gradation number and
An image processing unit that generates image data in which the number of gradations of the image data is the set number of output gradations,
An image processing device characterized by being equipped with.
前記出力階調数設定部は、前記原稿の種別に応じたパラメータセットを用いて出力階調数を設定することを特徴とする請求項1に記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the output gradation number setting unit sets an output gradation number using a parameter set according to the type of the document. 前記画像データに含まれる文字の最小の文字サイズを推定する文字サイズ推定部を更に備え、
前記出力階調数設定部は、前記特徴量と、前記原稿の種別と、前記文字サイズとに基づき、出力階調数を設定することを特徴とする請求項1又は2に記載の画像処理装置。
A character size estimation unit for estimating the minimum character size of characters included in the image data is further provided.
The image processing apparatus according to claim 1 or 2, wherein the output gradation number setting unit sets an output gradation number based on the feature amount, the type of the original document, and the character size. ..
前記画像データを、文字領域、網点領域、下地領域を含む複数の領域に分離する領域分離部を更に備え、
前記出力階調数設定部は、網点領域及び下地領域上の文字が文字潰れを生じないように出力階調数を設定することを特徴とする請求項1又は2に記載の画像処理装置。
Further, an area separation unit for separating the image data into a plurality of areas including a character area, a halftone dot area, and a base area is provided.
The image processing apparatus according to claim 1 or 2, wherein the output gradation number setting unit sets the output gradation number so that characters on the halftone dot region and the background region do not collapse.
原稿の画像データを入力するステップと、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するステップと、
前記画像データから特徴量を算出するステップと、
前記画像データに基づき、前記原稿の種別を判定するステップと、
前記原稿がモノクロ原稿である場合に、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定するステップと、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成するステップと、
を備えたことを特徴とする画像処理方法。
Steps to enter the image data of the manuscript and
A step of determining whether the original is a monochrome original or a color original based on the image data,
The step of calculating the feature amount from the image data and
A step of determining the type of the manuscript based on the image data,
When the original is a monochrome original, the gradation number of any one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the original, and the original If is a color document, the step of setting a predetermined number of gradations as the number of output gradations and
A step of generating image data in which the number of gradations of the image data is the set number of output gradations,
An image processing method characterized by being provided with.
コンピュータに、請求項1から4の何れか一項に記載の画像処理装置を動作させるためのプログラム。 A program for operating the image processing device according to any one of claims 1 to 4 on a computer. 請求項6に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。 A computer-readable recording medium on which the program according to claim 6 is recorded. 原稿を読み取り、画像データとして出力する原稿読取部と、
前記画像データに基づき、前記原稿がモノクロ原稿かカラー原稿かを判定するカラー・モノクロ判定部と、
前記画像データから特徴量を算出する特徴量算出部と、
前記画像データに基づき、前記原稿の種別を判定する原稿種別判定部と、
前記原稿がモノクロ原稿である場合は、前記特徴量と、前記原稿の種別とに基づき、複数の出力階調数候補のうち何れか1つの階調数を出力階調数として設定し、前記原稿がカラー原稿である場合は、予め定められた階調数を出力階調数として設定する出力階調数設定部と、
前記画像データの階調数を前記設定された出力階調数とした画像データを生成する画像処理部と、
前記生成された画像データを印刷する印刷部と、
を備えたことを特徴とする画像形成装置。
A document reader that reads the document and outputs it as image data,
A color / monochrome determination unit that determines whether the original is a monochrome original or a color original based on the image data.
A feature amount calculation unit that calculates a feature amount from the image data,
A manuscript type determination unit that determines the type of the manuscript based on the image data,
When the original is a monochrome original, the gradation number of any one of a plurality of output gradation number candidates is set as the output gradation number based on the feature amount and the type of the original, and the original When is a color document, an output gradation number setting unit that sets a predetermined gradation number as an output gradation number and
An image processing unit that generates image data in which the number of gradations of the image data is the set number of output gradations,
A printing unit that prints the generated image data,
An image forming apparatus characterized by being provided with.
JP2019077267A 2019-04-15 2019-04-15 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS Active JP7317557B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019077267A JP7317557B2 (en) 2019-04-15 2019-04-15 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019077267A JP7317557B2 (en) 2019-04-15 2019-04-15 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS

Publications (2)

Publication Number Publication Date
JP2020178171A true JP2020178171A (en) 2020-10-29
JP7317557B2 JP7317557B2 (en) 2023-07-31

Family

ID=72936188

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019077267A Active JP7317557B2 (en) 2019-04-15 2019-04-15 IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS

Country Status (1)

Country Link
JP (1) JP7317557B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010157811A (en) * 2008-12-26 2010-07-15 Konica Minolta Business Technologies Inc Image processing device, data amount reduction method, and data amount reduction program
JP2010183456A (en) * 2009-02-06 2010-08-19 Sharp Corp Image processor, image reading processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2012105132A (en) * 2010-11-11 2012-05-31 Sharp Corp Image processing device, image formation device, image reading device, image processing method, program, and recording medium
JP2013051652A (en) * 2011-08-31 2013-03-14 Brother Ind Ltd Image processing device, image reading device, and image processing program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010157811A (en) * 2008-12-26 2010-07-15 Konica Minolta Business Technologies Inc Image processing device, data amount reduction method, and data amount reduction program
JP2010183456A (en) * 2009-02-06 2010-08-19 Sharp Corp Image processor, image reading processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2012105132A (en) * 2010-11-11 2012-05-31 Sharp Corp Image processing device, image formation device, image reading device, image processing method, program, and recording medium
JP2013051652A (en) * 2011-08-31 2013-03-14 Brother Ind Ltd Image processing device, image reading device, and image processing program

Also Published As

Publication number Publication date
JP7317557B2 (en) 2023-07-31

Similar Documents

Publication Publication Date Title
JP4118749B2 (en) Image processing apparatus, image processing program, and storage medium
US8634650B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, and image processing method
JP4495197B2 (en) Image processing apparatus, image forming apparatus, image processing program, and recording medium for recording image processing program
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP7050599B2 (en) Image processing device and image processing method
US11308318B2 (en) Image processing apparatus, image processing method, and storage medium
JP2006203703A (en) Image processor, image forming apparatus, image reader, image processing method, image processing program, and computer readable recording medium
US20160028920A1 (en) Image processing apparatus, image processing method, and image processing system
JP2006115425A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP4350778B2 (en) Image processing apparatus, image processing program, and recording medium
JP4725645B2 (en) Image processing apparatus, data amount reduction method, and data amount reduction program
US20130004066A1 (en) Determining a background color of a document
US8369614B2 (en) Edge control in a digital color image via tone and size dependent dilation of pixels
JP2015015599A (en) Image processing apparatus, image forming apparatus, image processing method, and program and recording medium of the same
JP4442701B2 (en) Area discriminating method, image compressing method, image compressing apparatus, and computer program
JP7382834B2 (en) Image processing device, image processing method, and program
JP7317557B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, PROGRAM, RECORDING MEDIUM, AND IMAGE FORMING APPARATUS
JP2009017208A (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and computer readable recording medium
JP2017135690A (en) Image processing device, image processing method, and program
JP4169674B2 (en) Image processing apparatus, image processing program, and storage medium
JP5549836B2 (en) Image processing apparatus and image processing method
JP4073877B2 (en) Image processing method, image processing apparatus, image forming apparatus, and computer program
JP2020069717A (en) Image processing device, image formation apparatus, image processing method, image processing program and recording medium
JP2011010232A (en) Image processing apparatus, image reading apparatus, multi function peripheral, image processing method, program and recording medium
JP6441772B2 (en) Image processing apparatus, image forming apparatus, and image processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220323

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20221129

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221206

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20230203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230331

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20230411

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20230609

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230627

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230719

R150 Certificate of patent or registration of utility model

Ref document number: 7317557

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150