JP2013153273A - Image processing device, image reading device, and program - Google Patents

Image processing device, image reading device, and program Download PDF

Info

Publication number
JP2013153273A
JP2013153273A JP2012012144A JP2012012144A JP2013153273A JP 2013153273 A JP2013153273 A JP 2013153273A JP 2012012144 A JP2012012144 A JP 2012012144A JP 2012012144 A JP2012012144 A JP 2012012144A JP 2013153273 A JP2013153273 A JP 2013153273A
Authority
JP
Japan
Prior art keywords
image data
color
gradation
colors
unit
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
JP2012012144A
Other languages
Japanese (ja)
Other versions
JP5884509B2 (en
Inventor
Minoru Sodeura
稔 袖浦
Hiroyoshi Kamijo
裕義 上條
Tadashi Amaya
征 天谷
Kazuhiro Otani
和宏 大谷
Shigeru Okada
茂 岡田
Shinji Hanaoka
新治 花岡
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2012012144A priority Critical patent/JP5884509B2/en
Publication of JP2013153273A publication Critical patent/JP2013153273A/en
Application granted granted Critical
Publication of JP5884509B2 publication Critical patent/JP5884509B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To make it possible to select a more suitable compression processing technique in accordance with the contents of image data.SOLUTION: A compression condition determination part 130 includes: a color number calculation part 131 for calculating the number of colors constituting preprocessed image data; an object separation part 132 for performing object separation on the preprocessed image data; a gradation region extraction part 133 for extracting a gradation region in a target page on the basis of a result of the object separation; a uniform color region extraction part 134 for extracting a uniform color region in the target page on the basis of a result of the object separation by the object separation part 132; and a type determination part 135 for determining, on the basis of a result of the color number calculation by the color number calculation part 131, a result of the gradation region extraction by the gradation region extraction part 133, and a result of the uniform color region extraction by the uniform color region extraction part 134, whether the image data in the target page is a type, in which a first compression technique is to be applied, or a type, in which a second compression technique is to be applied.

Description

本発明は、画像処理装置、画像読取装置およびプログラムに関する。   The present invention relates to an image processing apparatus, an image reading apparatus, and a program.

原稿を読み取って得られた画像データに圧縮処理を施し、より小さい容量の画像データに変換することが行われている。
公報記載の従来技術として、画像情報を構成する複数の色情報を抽出し、抽出された色情報が属する特定の色への変換を行い、特定の色に変換された画像情報を特定の色ごとに分離し、特定の色ごとに分離された画像情報を特定の色ごとに圧縮し、特定の色ごとに圧縮された画像情報を、まとめた後に出力する画像処理装置が存在する(特許文献1参照)。
Image data obtained by reading a document is subjected to compression processing and converted into image data having a smaller capacity.
As a prior art described in the publication, a plurality of color information constituting image information is extracted, converted to a specific color to which the extracted color information belongs, and the image information converted into a specific color is converted for each specific color There is an image processing apparatus that compresses image information separated for each specific color, compresses the image information for each specific color, and outputs the compressed image information for each specific color (PTL 1). reference).

特開2010−232954号公報JP 2010-232954 A

ここで、画像データに含まれる色の数を減少(減色)させることは、確かに、圧縮後の画像データの容量を、圧縮前よりも小さくするために有用な手法の一つであるといえる。ただし、画像データを構成する色の数が少ない場合であっても、圧縮後の画像データの容量が、圧縮前よりも小さくなりにくいことがあった。
本発明は、画像データの内容に応じて、より適切な圧縮処理手法を選択できるようにすることを目的とする。
Here, reducing (decreasing) the number of colors included in the image data is certainly one of the useful techniques for reducing the volume of the image data after compression than before compression. . However, even when the number of colors constituting the image data is small, the volume of the image data after compression may be less likely to be smaller than that before compression.
An object of the present invention is to make it possible to select a more appropriate compression processing method in accordance with the contents of image data.

請求項1記載の発明は、画像データを構成する色の数を算出する算出手段と、前記画像データにおいて階調で表現される階調領域を抽出する階調領域抽出手段と、前記算出手段により算出された前記色の数が予め決められた閾値以下であり且つ前記階調領域抽出手段により抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、当該算出手段により算出された当該色の数が当該閾値を超え、あるいは、当該算出手段により算出された当該色の数が当該閾値以下であり且つ当該階調領域抽出手段により抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する判定手段とを含む画像処理装置である。   According to a first aspect of the present invention, there is provided calculation means for calculating the number of colors constituting image data, gradation area extraction means for extracting gradation areas expressed by gradations in the image data, and the calculation means. When the calculated number of colors is equal to or less than a predetermined threshold value and the gradation area extracted by the gradation area extraction means does not exist, the image data is determined as the first type, The gradation area extracted by the gradation area extraction means when the number of colors calculated by the calculation means exceeds the threshold or the number of colors calculated by the calculation means is equal to or less than the threshold. When the image data is present, the image processing apparatus includes a determination unit that determines the image data as the second type.

請求項2記載の発明は、前記第1の種別と判定された画像データにおける色の数を減少させる減色手段と、前記減色手段によって減色された前記第1の種別の画像データに圧縮処理を施す第1圧縮処理手段と、前記第2の種別と判定された画像データに圧縮処理を施す第2圧縮処理手段とをさらに含むことを特徴とする請求項1記載の画像処理装置である。
請求項3記載の発明は、前記画像データにおいて均一色で表現される均一色領域を抽出する均一色領域抽出手段をさらに含み、前記判定手段は、前記算出手段により算出された前記色の数が予め決められた閾値以下であり、前記階調領域抽出手段により抽出された前記階調領域が存在せず、さらに、前記均一色領域抽出手段により抽出された前記均一色領域の大きさが予め決められた基準大きさよりも小さい場合に、前記画像データを第1の種別と判定することを特徴とする請求項1または2記載の画像処理装置である。
According to a second aspect of the present invention, color reduction means for reducing the number of colors in the image data determined to be the first type, and compression processing is applied to the first type of image data reduced by the color reduction means. The image processing apparatus according to claim 1, further comprising: a first compression processing unit; and a second compression processing unit that performs a compression process on the image data determined to be the second type.
The invention according to claim 3 further includes a uniform color area extracting means for extracting a uniform color area expressed in a uniform color in the image data, wherein the determining means is configured such that the number of the colors calculated by the calculating means is The gradation area extracted by the gradation area extraction means does not exist, and the size of the uniform color area extracted by the uniform color area extraction means is predetermined. 3. The image processing apparatus according to claim 1, wherein the image data is determined to be the first type when smaller than the specified reference size. 4.

請求項4記載の発明は、原稿の画像を読み取る読取手段と、前記読取手段によって読み取られた画像データを構成する色の数を算出する算出手段と、前記画像データにおいて階調で表現される階調領域を抽出する階調領域抽出手段と、前記算出手段により算出された前記色の数が予め決められた閾値以下であり且つ前記階調領域抽出手段により抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、当該算出手段により算出された当該色の数が当該閾値を超え、あるいは、当該算出手段により算出された当該色の数が当該閾値以下であり且つ当該階調領域抽出手段により抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する判定手段とを含む画像読取装置である。   According to a fourth aspect of the present invention, there is provided a reading unit that reads an image of a document, a calculation unit that calculates the number of colors constituting the image data read by the reading unit, and a floor expressed in gradation in the image data. A gradation area extracting means for extracting a tone area; and the number of colors calculated by the calculating means is equal to or less than a predetermined threshold and the gradation area extracted by the gradation area extracting means does not exist. In this case, the image data is determined to be the first type, and the number of colors calculated by the calculation unit exceeds the threshold, or the number of colors calculated by the calculation unit is less than or equal to the threshold. The image reading apparatus includes a determination unit that determines the image data as the second type when the gradation region extracted by the gradation region extraction unit exists.

請求項5記載の発明は、前記読取手段は、複数ページの原稿を順番に読み取ることで、複数ページに対応する複数の画像データを出力し、前記判定手段は、前記複数の画像データに対し、ページ毎に判定を行うことを特徴とする請求項4記載の画像読取装置である。   In the invention according to claim 5, the reading unit sequentially reads a plurality of pages of document to output a plurality of image data corresponding to the plurality of pages, and the determination unit outputs the plurality of image data to the plurality of image data. 5. The image reading apparatus according to claim 4, wherein the determination is performed for each page.

請求項6記載の発明は、コンピュータに、画像データを構成する色の数を算出する機能と、前記画像データにおいて階調で表現される階調領域を抽出する機能と、算出された前記色の数が予め決められた閾値以下であり且つ抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、算出された当該色の数が当該閾値を超え、あるいは、算出された当該色の数が当該閾値以下であり且つ抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する機能とを実現させるプログラムである。   According to a sixth aspect of the present invention, there is provided a computer with a function of calculating the number of colors constituting image data, a function of extracting a gradation region expressed by gradation in the image data, and the calculated color of the color When the number is equal to or less than a predetermined threshold and the extracted gradation area does not exist, the image data is determined as the first type, and the calculated number of colors exceeds the threshold, or A program that realizes a function of determining the image data as the second type when the calculated number of the colors is equal to or less than the threshold value and the extracted gradation area exists.

請求項1記載の発明によれば、本構成を有していない場合と比較して、画像データの内容に応じて、より適切な圧縮処理手法を選択できるようにすることができる。
請求項2記載の発明によれば、本構成を有していない場合と比較して、第1の種別の画像データおよび第2の種別の画像データの両者を、より小さな容量に圧縮することができる。
請求項3記載の発明によれば、構成を有していない場合と比較して、画像データの内容に応じて、さらにより適切な圧縮処理手法を選択できるようにすることができる。
請求項4記載の発明によれば、本構成を有していない場合と比較して、画像データの内容に応じて、より適切な圧縮処理手法を選択できるようにすることができる。
請求項5記載の発明によれば、本構成を有していない場合と比較して、例えば1つのファイルを構成する複数の画像データのそれぞれに対し、より適切な圧縮処理手法を選択できるようにすることができる。
請求項6記載の発明によれば、本構成を有していない場合と比較して、画像データの内容に応じて、より適切な圧縮処理手法を選択できるようにすることができる。
According to the first aspect of the present invention, it is possible to select a more appropriate compression processing method in accordance with the content of the image data, as compared with the case where the present configuration is not provided.
According to the second aspect of the present invention, it is possible to compress both the first type image data and the second type image data to a smaller capacity as compared with the case where the present configuration is not provided. it can.
According to the third aspect of the present invention, it is possible to select a more appropriate compression processing method in accordance with the content of the image data as compared with the case where the configuration is not provided.
According to the fourth aspect of the present invention, it is possible to select a more appropriate compression processing method according to the content of the image data as compared with the case where the present configuration is not provided.
According to the invention described in claim 5, it is possible to select a more appropriate compression processing method for each of a plurality of image data constituting one file, for example, as compared with the case where the present configuration is not provided. can do.
According to the sixth aspect of the present invention, it is possible to select a more appropriate compression processing method according to the content of the image data as compared with the case where the present configuration is not provided.

本発明の実施の形態における画像読取システムの構成を示した図である。1 is a diagram showing a configuration of an image reading system in an embodiment of the present invention. 画像読取システムにおける画像読取装置のハードウェア構成を示すブロック図である。FIG. 2 is a block diagram illustrating a hardware configuration of an image reading apparatus in the image reading system. 画像読取装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of an image reading apparatus. 圧縮条件決定部の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a compression condition determination part. 色数算出部の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a color number calculation part. 圧縮条件決定部に設けられた色数算出部における色空間の分割処理を説明するための図である。It is a figure for demonstrating the division | segmentation process of the color space in the color number calculation part provided in the compression condition determination part. 圧縮条件決定部に設けられた色別分離処理部によるデータ分離の手法を説明するための図である。It is a figure for demonstrating the method of the data separation by the color separation process part provided in the compression condition determination part. 圧縮条件決定部における処理の手順を説明するためのフローチャートである。It is a flowchart for demonstrating the procedure of the process in a compression condition determination part. 圧縮条件決定部における圧縮処理手法の決定手順を説明するためのフローチャートである。It is a flowchart for demonstrating the determination procedure of the compression processing method in a compression condition determination part. スキャナによって読み取られた入力画像データの一例を示す図である。It is a figure which shows an example of the input image data read by the scanner.

以下、添付図面を参照して、本発明の実施の形態について詳細に説明する。
図1は、本発明の実施の形態における画像読取システムの構成を示した図である。
この画像読取システムは、ネットワーク30によって相互に接続された、画像読取装置10および端末装置20を有している。ここで、画像読取装置10は、セットされた原稿に形成された画像を読み取る機能を有している。また、画像読取装置10は、原稿送り装置を備えており、複数枚(複数ページ)で構成された原稿束の原稿を、順番に1枚ずつ読み取ることが可能になっている。一方、端末装置20は、画像読取装置10が原稿を読み取ることによって得られた画像データを、ネットワーク30を介して取得する機能を有している。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings.
FIG. 1 is a diagram showing a configuration of an image reading system according to an embodiment of the present invention.
The image reading system includes an image reading device 10 and a terminal device 20 that are connected to each other via a network 30. Here, the image reading apparatus 10 has a function of reading an image formed on a set original. Further, the image reading apparatus 10 includes a document feeding device, and can read a document in a document bundle composed of a plurality of sheets (a plurality of pages) one by one in order. On the other hand, the terminal device 20 has a function of acquiring image data obtained by the image reading device 10 reading a document via the network 30.

図2は、図1に示す画像読取システムにおける画像読取装置10のハードウェア構成を示すブロック図である。
本実施の形態の画像読取装置10は、CPU(Central Processing Unit)11と、ROM(Read Only Memory)やRAM(Random Access Memory)で構成されたメモリ12と、HDD(Hard Disk Drive)やSSD(Solid State Drive)で構成された記憶装置13と、ネットワーク30を介して端末装置10等の外部機器との間でデータ(画像データを含む)の送受信を行う通信装置14と、ユーザによる入力を受け付けるとともにユーザに対する指示を出力(表示)するUI(User Interface)装置15と、原稿の画像を読み取る読取手段の一例としてのスキャナ16とを備えている。また、画像読取装置10は、これらの各構成要素を相互に接続するバス18をさらに有している。なお、スキャナ16は、例えばRGB3色の画像を読み取ることにより、フルカラーの画像データを出力する機能を有している。
FIG. 2 is a block diagram showing a hardware configuration of the image reading apparatus 10 in the image reading system shown in FIG.
An image reading apparatus 10 according to the present embodiment includes a CPU (Central Processing Unit) 11, a memory 12 including a ROM (Read Only Memory) and a RAM (Random Access Memory), an HDD (Hard Disk Drive), and an SSD (SSD). A communication device 14 that transmits and receives data (including image data) between the storage device 13 configured by Solid State Drive) and an external device such as the terminal device 10 via the network 30 and receives input from the user. In addition, a UI (User Interface) device 15 that outputs (displays) an instruction to the user and a scanner 16 as an example of a reading unit that reads an image of a document are provided. Further, the image reading apparatus 10 further includes a bus 18 that connects these components. The scanner 16 has a function of outputting full-color image data by reading, for example, RGB three-color images.

画像読取装置10において、CPU11は、メモリ12または記憶装置13から読み出した制御プログラムに基づく処理を実行することで、画像処理を含む画像読取装置10の動作を制御する。なお、CPU11が実行する制御プログラムは、予めメモリ12に記憶させておく形態の他、例えばCD−ROM等の記憶媒体に格納してCPU11に提供したり、あるいは、ネットワーク30を介してCPU11に提供したりすることも可能である。   In the image reading apparatus 10, the CPU 11 controls the operation of the image reading apparatus 10 including image processing by executing processing based on the control program read from the memory 12 or the storage device 13. The control program executed by the CPU 11 is stored in a memory medium such as a CD-ROM, for example, in addition to being stored in the memory 12 in advance, or provided to the CPU 11 or provided to the CPU 11 via the network 30. It is also possible to do.

図3は、上述した制御プログラムが実行されることにより実現される、画像読取装置10の機能構成を示すブロック図である。
本実施の形態の画像読取装置10は、上述したスキャナ16と、スキャナ16が原稿を読み取ることによって得られた画像データに処理を施して出力する画像処理装置100とを有している。また、画像処理装置100は、スキャナ16から入力される画像データ(入力画像データ)に、予め決められた前処理を施す前処理部110と、前処理部110による前処理が施された画像データ(前処理済画像データ)に、圧縮処理を施す圧縮処理部120とを有している。なお、入力画像データは、1ページ分あるいは複数ページ分の画像データを含むファイルとして入力される。
FIG. 3 is a block diagram showing a functional configuration of the image reading apparatus 10 realized by executing the control program described above.
The image reading apparatus 10 according to the present embodiment includes the above-described scanner 16 and an image processing apparatus 100 that processes and outputs image data obtained by the scanner 16 reading a document. The image processing apparatus 100 also includes a preprocessing unit 110 that performs predetermined preprocessing on image data (input image data) input from the scanner 16, and image data that has been preprocessed by the preprocessing unit 110. A compression processing unit 120 that performs compression processing on (preprocessed image data). The input image data is input as a file including image data for one page or a plurality of pages.

ここで、前処理部110は、例えば、入力画像データに階調補正を施す機能、UI装置15等を介して指定された拡大倍率あるいは縮小倍率に応じて、入力画像データを拡大/縮小する機能、入力画像データに空間フィルタ処理を施す機能、入力画像データの色空間を変換する機能等を、必要に応じて実行する。また、前処理部110は、1または複数のページを含む入力画像データに対し、ページ毎に前処理を施す。   Here, for example, the pre-processing unit 110 has a function of performing gradation correction on the input image data, and a function of enlarging / reducing the input image data in accordance with the enlargement / reduction magnification designated via the UI device 15 or the like. A function for performing spatial filtering on the input image data, a function for converting the color space of the input image data, and the like are executed as necessary. In addition, the preprocessing unit 110 performs preprocessing for each page on input image data including one or a plurality of pages.

一方、圧縮処理部120は、圧縮条件決定部130と、色別分離処理部140と、第1圧縮処理部150と、ページ合成部160と、第2圧縮処理部170と、ファイル合成部180とを備えている。   On the other hand, the compression processing unit 120 includes a compression condition determination unit 130, a color separation processing unit 140, a first compression processing unit 150, a page composition unit 160, a second compression processing unit 170, and a file composition unit 180. It has.

圧縮条件決定部130は、入力されてくる前処理済画像データを解析し、ページ毎に、第1圧縮手法にて圧縮を施すか、あるいは、第1圧縮手法とは異なる第2圧縮手法にて圧縮を施すかを決定する。なお、第1圧縮手法および第2圧縮手法の詳細については後述する。以下では、圧縮条件決定部130において、第1圧縮手法の適用が決定されたページの画像データを第1画像データと呼び、第2圧縮手法の適用が決定されたページの画像データを第2画像データと呼ぶ。   The compression condition determination unit 130 analyzes the input preprocessed image data and performs compression by the first compression method for each page or by a second compression method different from the first compression method. Decide whether to apply compression. Details of the first compression method and the second compression method will be described later. Hereinafter, in the compression condition determination unit 130, the image data of the page for which the application of the first compression method is determined is referred to as first image data, and the image data of the page for which the application of the second compression method is determined is the second image. Called data.

色別分離処理部140は、前処理済画像データのうち、圧縮条件決定部130にて第1圧縮手法の適用が決定された第1画像データを、色別に分離する処理を施す。
第1圧縮処理手段の一例としての第1圧縮処理部150は、色別分離処理部140で色別に分離された第1画像データに対し、色毎に第1圧縮手法を用いた圧縮処理を施す。
ページ合成部160は、第1圧縮処理部150で圧縮処理が施された色毎の第1画像データをページ単位で合成することにより、第1圧縮処理が施された第1画像データ(圧縮済第1画像データ)を作成する。
The color separation processing unit 140 performs a process of separating the first image data, for which the application of the first compression method has been determined by the compression condition determination unit 130, among the preprocessed image data, by color.
The first compression processing unit 150 as an example of the first compression processing unit performs compression processing using the first compression method for each color on the first image data separated by color by the color separation processing unit 140. .
The page composition unit 160 synthesizes the first image data for each color subjected to the compression processing by the first compression processing unit 150 in units of pages, thereby performing the first image data subjected to the first compression processing (compressed). First image data) is created.

第2圧縮処理手段の一例としての第2圧縮処理部170は、前処理済画像データのうち、圧縮条件決定部130にて第2圧縮手法の適用が決定された第2画像データに対し、第2圧縮手法を用いた圧縮処理を施すことにより、第2圧縮処理が施された第2画像データ(圧縮済第2画像データ)を作成する。   The second compression processing unit 170 as an example of the second compression processing unit applies the second compression to the second image data for which the application of the second compression method is determined by the compression condition determination unit 130 among the preprocessed image data. By performing compression processing using the two-compression method, second image data subjected to the second compression processing (compressed second image data) is created.

ファイル合成部180は、入力されてくる圧縮済第1画像データおよび/または圧縮済第2画像データを、基となる入力画像データを構成するページ数およびページ順に基づいてまとめ、1ページ分あるいは複数ページ分の圧縮済画像データを含むファイル(出力画像データ)として出力する。なお、出力画像データは、図1に示すネットワーク30を介して、例えば端末装置20に送信される。   The file composition unit 180 summarizes the input compressed first image data and / or compressed second image data based on the number of pages constituting the input image data as a basis and the page order, or one page or a plurality of data Output as a file (output image data) containing compressed image data for a page. The output image data is transmitted to, for example, the terminal device 20 via the network 30 illustrated in FIG.

図4は、上述した制御プログラムが実行されることにより実現される、上記圧縮条件決定部130の機能構成を示すブロック図である。
本実施の形態の圧縮条件決定部130は、色数算出部131と、オブジェクト分離部132と、階調領域抽出部133と、均一色領域抽出部134と、種別決定部135とを備えている。
FIG. 4 is a block diagram showing a functional configuration of the compression condition determination unit 130, which is realized by executing the control program described above.
The compression condition determination unit 130 according to the present embodiment includes a color number calculation unit 131, an object separation unit 132, a gradation region extraction unit 133, a uniform color region extraction unit 134, and a type determination unit 135. .

算出手段および減色手段の一例としての色数算出部131は、入力されてくる前処理済画像データに対し、ページ毎に、画像を構成する1または複数の色情報を抽出し、抽出した色情報が属する特定の色への変換を行うとともに、変換された特定の色に基づいて代表色を決定し、得られた代表色の数(色数)を含む結果を、メモリ12(図2参照)に記憶させる。なお、色数算出部131の詳細な構成については後述する。   The number-of-colors calculation unit 131 as an example of the calculation unit and the color reduction unit extracts one or a plurality of color information constituting the image for each page from the input preprocessed image data, and extracts the extracted color information. Is converted to the specific color to which the image belongs, the representative color is determined based on the converted specific color, and the result including the number of representative colors (number of colors) obtained is stored in the memory 12 (see FIG. 2). Remember me. The detailed configuration of the color number calculation unit 131 will be described later.

オブジェクト分離部132は、入力されてくる前処理済画像データに対し、ページ毎に、文字、線画、図形、写真が含まれているか否かの検出を行う。また、オブジェクト分離部132は、対象ページの画像データにオブジェクト(この例では文字、線画、図形、写真の少なくとも1つ)が含まれていることを検出すると、含まれている文字、線画、図形、写真の、画像データ内での範囲を確定し、確定した文字、線画、図形、写真の範囲を示す座標値を、メモリ12に記憶させる。なお、以下の説明においては、オブジェクト分離部132による検出結果のうち、文字が検出された領域を「文字領域」と呼び、線画が検出された領域を「線画領域」と呼び、図形が検出された領域を「図形領域」と呼び、写真が検出された領域を「写真領域」と呼ぶ。   The object separation unit 132 detects whether characters, line drawings, figures, and photographs are included for each page of input preprocessed image data. When the object separation unit 132 detects that the image data of the target page includes an object (in this example, at least one of a character, a line drawing, a figure, and a photo), the included character, line drawing, and figure are included. The range of the photograph in the image data is determined, and the determined character, line drawing, figure, and coordinate values indicating the range of the photograph are stored in the memory 12. In the following description, among the detection results by the object separation unit 132, an area where a character is detected is called a “character area”, an area where a line drawing is detected is called a “line drawing area”, and a figure is detected. This area is called a “graphic area”, and an area where a photograph is detected is called a “photo area”.

階調領域抽出手段の一例としての階調領域抽出部133は、オブジェクト分離部132による検出結果に基づき、対象ページの図形領域および写真領域の中から、階調画像で表現されている領域(階調領域)を抽出し、メモリ12に記憶させる。なお、階調領域の抽出処理は、各種のものが適用される。   The gradation area extraction unit 133 as an example of the gradation area extraction unit is based on the detection result by the object separation unit 132, and the area (floor) expressed by the gradation image from the graphic area and the photograph area of the target page. Key area) is extracted and stored in the memory 12. Various types of gradation area extraction processing are applied.

均一領域抽出手段の一例としての均一色領域抽出部134は、オブジェクト分離部132による検出結果に基づき、対象ページの図形領域および写真領域の中から、均一な色で表現されている領域(均一色領域)を抽出し、メモリ12に記憶させる。また、均一色領域抽出部134は、均一色領域の存在とともに、対象ページの画像データ内での均一色領域の範囲を確定し、確定した均一色領域の範囲を示す座標値を、メモリ12に記憶させる。なお、均一色領域の抽出処理は、各種のものが適用される。   Based on the detection result by the object separation unit 132, the uniform color region extraction unit 134 as an example of the uniform region extraction unit is a region (uniform color) expressed in a uniform color from the graphic region and the photograph region of the target page. Region) is extracted and stored in the memory 12. Further, the uniform color area extraction unit 134 determines the range of the uniform color area in the image data of the target page together with the presence of the uniform color area, and stores the coordinate value indicating the determined range of the uniform color area in the memory 12. Remember. Various types of uniform color region extraction processing are applied.

判定手段の一例としての種別決定部135は、同一の対象ページの画像データに基づいて得られ、メモリ12から読み出した、色数算出部131による色数の算出結果、階調領域抽出部133による階調領域の抽出結果、均一色領域抽出部134による均一色領域の抽出結果および均一色領域の範囲に基づき、対象ページの画像データを、第1圧縮手法の適用対象とする種別(第1の種別に対応)とするのかあるいは第2圧縮手法の適用対象とする種別(第2の種別に対応)とするのかを決定する。なお、種別決定部135による具体的な種別の決定手順については後述する。   The type determination unit 135 as an example of a determination unit is obtained based on the image data of the same target page, and is read from the memory 12, the color number calculation result by the color number calculation unit 131, and the gradation region extraction unit 133. Based on the gradation region extraction result, the uniform color region extraction result by the uniform color region extraction unit 134, and the uniform color region range, the image data of the target page is classified as a type to which the first compression technique is applied (first Whether to be a type to be applied to the second compression method (corresponding to a second type). A specific type determination procedure by the type determination unit 135 will be described later.

図5は、上述した制御プログラムが実行されることにより実現される、上記色数算出部131の機能構成を示すブロック図である。
本実施の形態の色数算出部131は、平滑化部1311と、強調処理部1312と、頻度計数部1313と、計数結果処理部1314と、地色抽出部1315と、色抽出部1316と、3D・LUT生成部1317と、色置換部1318とを備えている。
FIG. 5 is a block diagram illustrating a functional configuration of the color number calculation unit 131 realized by executing the control program described above.
The number-of-colors calculation unit 131 according to the present embodiment includes a smoothing unit 1311, an enhancement processing unit 1312, a frequency counting unit 1313, a counting result processing unit 1314, a ground color extracting unit 1315, a color extracting unit 1316, A 3D / LUT generation unit 1317 and a color replacement unit 1318 are provided.

平滑化部1311は、入力されてくる前処理済画像データに、ページ毎に平滑化処理を施すことで、ノイズの除去を行う。
強調処理部1312は、平滑化処理済みの前処理済画像データに、例えば5×5フィルタを用いて強調処理を施す。
頻度計数部1313は、平滑化処理済の前処理済画像データについて、画素値の出現頻度(ヒストグラム)を計数する処理を行う。
The smoothing unit 1311 performs noise removal on the input preprocessed image data by performing a smoothing process for each page.
The enhancement processing unit 1312 performs enhancement processing on the preprocessed image data that has been smoothed using, for example, a 5 × 5 filter.
The frequency counting unit 1313 performs a process of counting the appearance frequency (histogram) of pixel values for the preprocessed image data that has been subjected to the smoothing process.

ここで、頻度計数部1313によるヒストグラム生成について説明する。
図6は、色空間の領域分割について説明する模式図である。頻度計数部1313は、ヒストグラムを生成するにあたり、ページ毎の前処理済画像データにおける3次元色空間を複数の領域に分割し、分割領域毎の頻度を計数する。
Here, the histogram generation by the frequency counting unit 1313 will be described.
FIG. 6 is a schematic diagram for explaining region division of the color space. In generating the histogram, the frequency counting unit 1313 divides the three-dimensional color space in the preprocessed image data for each page into a plurality of regions, and counts the frequency for each divided region.

図6に示すように、例えば、RGB色空間において取り得る階調値が0から255(8ビット)であった場合、頻度計数部1313は、RGB各階調値を32階調ごとに8等分する。これにより、RGB色空間は、8×8×8=512の領域に分割される。頻度計数部1313は、512個に分割された領域ごとに画素値の頻度を計数する。なお、分割単位はあくまでも一例に過ぎない。   As shown in FIG. 6, for example, when the gradation values that can be taken in the RGB color space are 0 to 255 (8 bits), the frequency counting unit 1313 divides the RGB gradation values into 8 equal parts every 32 gradations. To do. Thereby, the RGB color space is divided into 8 × 8 × 8 = 512 regions. The frequency counting unit 1313 counts the frequency of pixel values for each of the 512 divided areas. The division unit is merely an example.

図5に戻って説明を続ける。
計数結果処理部1314は、頻度計数部1313で計数された分割領域ごとのヒストグラムについて、予め決められた頻度の閾値を超えるものだけを抽出するフィルタリング処理を施す。また、計数結果処理部1314は、3次元2次微分フィルタを用い、ヒストグラムのピークを抽出する。
Returning to FIG.
The counting result processing unit 1314 performs a filtering process for extracting only the histograms for the divided areas counted by the frequency counting unit 1313 that exceed a predetermined frequency threshold. The counting result processing unit 1314 extracts a histogram peak using a three-dimensional second-order differential filter.

地色抽出部1315は、計数結果処理部1314でフィルタリング処理されたヒストグラムに基づき、画像データの地色(地肌の色)を抽出する処理を行う。例えば、予め設定された地色となる複数の候補色のうち、最も頻度の高いものを地色として抽出する。なお、地色抽出処理は、各種のものが適用される。   The background color extraction unit 1315 performs a process of extracting the background color (background color) of the image data based on the histogram filtered by the counting result processing unit 1314. For example, the most frequent of the plurality of candidate colors that are preset ground colors is extracted as the ground color. Various types of ground color extraction processing are applied.

色抽出部1316は、計数結果処理部1314でフィルタリング処理され、抽出されたヒストグラムのピークの中から、特定の色(代表色)を抽出する処理を行う。具体的には、まず、抽出されたヒストグラムのピーク(ピーク色)の中から、予め設定された彩度より低い色を候補色から排除する。次に、残ったピーク色の中から代表色を選定する。代表色の選定は、例えば、色相等の特徴量が予め設定された所定量以上離れているものを選定する。また、代表色の色数は、予め設定された上限を超えないようにする。すなわち、代表色として選定された色のうち、頻度が高いものから順に、上限の色数を超えないよう選択する。   The color extraction unit 1316 performs a process of extracting a specific color (representative color) from the histogram peaks extracted and filtered by the counting result processing unit 1314. Specifically, first, from the extracted histogram peaks (peak colors), a color lower than a preset saturation is excluded from the candidate colors. Next, a representative color is selected from the remaining peak colors. For the selection of the representative color, for example, a color whose feature value such as hue is separated by a predetermined amount or more is selected. Also, the number of representative colors should not exceed a preset upper limit. That is, the colors selected as representative colors are selected in order of decreasing frequency so as not to exceed the upper limit number of colors.

3D・LUT生成部1317は、平滑化処理済みの前処理済画像データの色を、色抽出部1316で抽出された代表色に色置換するための3D・LUT(3次元ルックアップテーブル)を生成する。すなわち、3D・LUTは、画像データの所定の画素値の範囲と、選定された代表色とを対応付けするものである。これにより、画像データの各画素値は、その画素値の属する範囲と対応付けられた特定の代表色へ変換されることになる。   The 3D / LUT generation unit 1317 generates a 3D / LUT (three-dimensional lookup table) for replacing the color of the smoothed preprocessed image data with the representative color extracted by the color extraction unit 1316. To do. That is, the 3D / LUT associates a predetermined pixel value range of image data with a selected representative color. Thereby, each pixel value of the image data is converted into a specific representative color associated with the range to which the pixel value belongs.

色置換部1318は、3D・LUT生成部1317で生成された3D・LUTを用いて、前処理済画像データの画素値をいずれかの代表色に置換する処理を、ページ毎に行う。これにより、前処理済画像データが代表色に減色されることになる。   The color replacement unit 1318 uses the 3D / LUT generated by the 3D / LUT generation unit 1317 to perform processing for replacing the pixel value of the preprocessed image data with one of the representative colors for each page. As a result, the preprocessed image data is reduced to the representative color.

なお、圧縮条件決定部130を経て第1圧縮処理部150側に出力される第1画像データは、色置換部1318による減色処理が施された後のものとなっている。一方、圧縮条件決定部130を経て第2圧縮処理部170側に出力される第2画像データは、色置換部1318による減色処理が施される前のものとなっている。   Note that the first image data output to the first compression processing unit 150 via the compression condition determination unit 130 has been subjected to the color reduction processing by the color replacement unit 1318. On the other hand, the second image data output to the second compression processing unit 170 via the compression condition determination unit 130 is the one before being subjected to the color reduction processing by the color replacement unit 1318.

図7は、図3に示す色別分離処理部140によるデータ分離を説明する模式図である。色別分離処理部140は、代表色に置換された第1画像データを代表色ごとに分離して、層構造のデータとする。層構造のデータは、代表色ごとの画像要素の画素値を2値化したものと、その代表色の画像要素が含まれる外接矩形の情報、すなわち、ページ内における外接矩形の始点座標、矩形高さ、矩形幅の情報とを備える。   FIG. 7 is a schematic diagram for explaining data separation by the color separation processing unit 140 shown in FIG. The color separation processing unit 140 separates the first image data replaced with the representative color for each representative color to obtain layered data. The layer structure data includes the binarized pixel values of the image elements for each representative color and the information of the circumscribed rectangle including the image element of the representative color, that is, the coordinates of the starting point of the circumscribed rectangle in the page, the rectangle height And rectangular width information.

図7に示す例では、代表色として「赤」、「青」、「緑」、「灰」の4色が選定されており、それぞれの代表色ごとに分離され、層構造のデータとして出力される。各代表色の画像要素のデータは、2値化されたものとなっている。   In the example shown in FIG. 7, four colors of “red”, “blue”, “green”, and “gray” are selected as representative colors, which are separated for each representative color and output as layer structure data. The The image element data of each representative color is binarized.

また、代表色のほか、背景色も層構造のデータとして出力される。背景色のデータは、景色の色値と、背景であることを示す情報とを備える。背景はページ全体に指定されるため、矩形情報を持つ必要はない。なお、背景色も代表色のデータと同様に矩形情報(この場合、ページ全体の矩形情報)を持たせるようにしてもよい。これにより、代表色と背景色とを区別しないデータ構造となる。   In addition to the representative color, the background color is also output as layer structure data. The background color data includes a landscape color value and information indicating the background. Since the background is specified for the entire page, it is not necessary to have rectangle information. Note that the background color may also have rectangular information (in this case, rectangular information of the entire page) as in the representative color data. As a result, the data structure does not distinguish between the representative color and the background color.

色別分離処理部140によって代表色や背景色ごと層構造のデータとして分離された情報(色毎の第1画像データ)は、第1圧縮処理部150で層構造のデータごと(色毎)に圧縮処理(第1の圧縮手法)される。ここでは色毎のデータが2値化されているため、ランレングス符号化といった圧縮処理が施されることになる。なお、背景色として色値と背景であることを示す情報とを備える構造では、圧縮の必要はない。   The information (first image data for each color) separated by the color separation processing unit 140 for each representative color and background color (first image data for each color) is separated for each layer structure data (for each color) by the first compression processing unit 150. Compression processing (first compression technique) is performed. Here, since the data for each color is binarized, compression processing such as run-length encoding is performed. It should be noted that compression is not necessary in the structure including the color value and information indicating the background as the background color.

また、図3に示すページ合成部160は、圧縮された代表色や背景色の層構造のデータを層構造のデータ形式として1つのファイルにまとめ、出力する処理を行う。層構造のデータ形式としては、例えばMRC(Mixed Raster Content)が挙げられる。   Further, the page composition unit 160 shown in FIG. 3 performs a process of collecting and outputting the compressed representative color and background color layer structure data into a single file as a layer structure data format. An example of the data format of the layer structure is MRC (Mixed Raster Content).

これに対し、図3に示す第2圧縮処理部170は、上述した減色処理(代表色への置換)が施されていない第2画像データに対し、そのまま圧縮処理を施す。   On the other hand, the second compression processing unit 170 shown in FIG. 3 directly performs the compression process on the second image data that has not been subjected to the above-described color reduction process (replacement with a representative color).

図8は、画像読取装置10を用いた原稿の読み取り動作において、圧縮条件決定部130における処理の手順を説明するためのフローチャートである。
ここでは、まず、前処理部110から圧縮条件決定部130に、前処理画像データ(ファイル)が入力される(ステップ11)。
次に、圧縮条件決定部130は、n=1に設定を行い(ステップ12)、ステップ11で入力されてきた前処理画像データのうち、nページ目(最初は1ページ目)の画像データを取得する(ステップ13)。
FIG. 8 is a flowchart for explaining a processing procedure in the compression condition determination unit 130 in a document reading operation using the image reading apparatus 10.
Here, first, preprocessed image data (file) is input from the preprocessing unit 110 to the compression condition determining unit 130 (step 11).
Next, the compression condition determination unit 130 sets n = 1 (step 12), and among the preprocessed image data input in step 11, the nth page (initially the first page) image data. Obtain (step 13).

続いて、圧縮条件決定部130は、nページ目の画像データに対する圧縮処理条件(第1圧縮手法あるいは第2圧縮手法)を決定する(ステップ14)。
その後、圧縮条件決定部130は、ステップ11で入力されてきた前処理画像データに残りのページがあるか否かを判断する(ステップ15)。
ステップ15において肯定の判断(Yes)を行った場合、圧縮条件決定部130は、n=n+1に設定を行い(ステップ16)、ステップ13に戻って次のページの画像データに対する処理を続行する。一方、ステップ15において否定の判断(No)を行った場合、圧縮条件決定部130は、一連の処理を完了する。
Subsequently, the compression condition determination unit 130 determines a compression processing condition (first compression method or second compression method) for the image data of the nth page (step 14).
Thereafter, the compression condition determination unit 130 determines whether or not there are remaining pages in the preprocessed image data input in step 11 (step 15).
If an affirmative determination (Yes) is made in step 15, the compression condition determination unit 130 sets n = n + 1 (step 16), returns to step 13, and continues processing for the image data of the next page. On the other hand, when a negative determination (No) is made in step 15, the compression condition determination unit 130 completes a series of processes.

図9は、上述したステップ14における具体的手順、すなわち、圧縮条件決定部130における圧縮処理手法の決定手順を説明するためのフローチャートである。
まず、色数算出部131が、対象ページの画像データに基づき、代表色の色数を算出する(ステップ141)。また、オブジェクト分離部132が、対象ページの画像データに基づいてオブジェクト分離を行う。そして、オブジェクト分離の結果に基づき、階調領域抽出部133が、階調領域の抽出を行う(ステップ142)。また、オブジェクト分離の結果に基づき、均一色領域抽出部134が、均一色領域の抽出を行う(ステップ143)とともに、均一色領域のサイズを抽出する(ステップ144)。
FIG. 9 is a flowchart for explaining a specific procedure in step 14 described above, that is, a procedure for determining a compression processing technique in the compression condition determining unit 130.
First, the color number calculation unit 131 calculates the number of representative colors based on the image data of the target page (step 141). Further, the object separation unit 132 performs object separation based on the image data of the target page. Based on the result of the object separation, the gradation area extraction unit 133 extracts the gradation area (step 142). Further, based on the object separation result, the uniform color area extraction unit 134 extracts the uniform color area (step 143) and extracts the size of the uniform color area (step 144).

そして、種別決定部135が、ステップ141で求められた代表色の色数が、予め決められた閾値(例えば5色)以下であるか否かを判断する(ステップ145)。ステップ145において否定の判断(No)を行った場合、種別決定部135は、対象ページに適用する圧縮手法を第2圧縮手法に決定する(ステップ149)。   Then, the type determining unit 135 determines whether or not the number of representative colors obtained in step 141 is equal to or less than a predetermined threshold (for example, five colors) (step 145). When a negative determination (No) is made in step 145, the type determining unit 135 determines the compression method to be applied to the target page as the second compression method (step 149).

また、ステップ145において肯定の判断(Yes)を行った場合、種別決定部135は、次に、ステップ142における抽出結果に基づき、対象ページに階調領域がなかったか否かを判断する(ステップ146)。ステップ146において否定の判断(No)を行った場合、種別決定部135は、対象ページに適用する圧縮手法を第2圧縮手法に決定する(ステップ149)。   If the determination in step 145 is affirmative (Yes), the type determination unit 135 next determines whether or not the target page has no gradation area based on the extraction result in step 142 (step 146). ). If a negative determination (No) is made in step 146, the type determining unit 135 determines the compression method to be applied to the target page as the second compression method (step 149).

さらに、ステップ146において肯定の判断(Yes)を行った場合、種別決定部135は、次に、ステップ143およびステップ144における抽出結果に基づき、対象ページに予め決められた基準サイズ以上の均一色領域がなかったか否かを判断する(ステップ147)。ステップ147において否定の判断(No)を行った場合、種別決定部135は、対象ページに適用する圧縮手法を第2圧縮手法に決定する(ステップ149)。一方、ステップ147において肯定の判断(Yes)を行った場合、種別決定部135は、対象ページに適用する圧縮手法を第1圧縮手法に設定し(ステップ148)、一連の処理を完了する。   Furthermore, when a positive determination (Yes) is made in step 146, the type determination unit 135 next selects a uniform color area that is equal to or larger than a predetermined reference size for the target page based on the extraction results in steps 143 and 144. It is determined whether or not there has been (step 147). If a negative determination (No) is made in step 147, the type determining unit 135 determines the compression method to be applied to the target page as the second compression method (step 149). On the other hand, when a positive determination (Yes) is made in step 147, the type determining unit 135 sets the compression method to be applied to the target page to the first compression method (step 148), and completes a series of processes.

なお、ステップ148では、圧縮条件決定部130から第1圧縮処理部150(色別分離処理部140)に向けて、対象ページの画像データとして、減色処理が施された第1画像データが出力される。一方、ステップ149では、圧縮条件決定部130から第2圧縮処理部170に向けて、対象ページの画像データとして、減色処理が施されていない第2画像データが出力される。   In step 148, the first image data subjected to the color reduction processing is output as image data of the target page from the compression condition determination unit 130 to the first compression processing unit 150 (color separation processing unit 140). The On the other hand, in step 149, the second image data that has not been subjected to the color reduction process is output from the compression condition determination unit 130 to the second compression processing unit 170 as the image data of the target page.

では、具体的な例を挙げつつ、画像データに適用する圧縮手法の決定手順を説明する。
図10は、スキャナ16によって読み取られた入力画像データの一例を示す図である。この例において、入力画像データは、3ページ分の画像データで構成される。
Now, a procedure for determining a compression method to be applied to image data will be described with a specific example.
FIG. 10 is a diagram illustrating an example of input image data read by the scanner 16. In this example, the input image data is composed of image data for three pages.

ここで、1ページ目の画像データは、見積書を読み取って得られたものである。この見積書は、黒で描かれた文字および線画(枠および線)と、赤で描かれた文字および線画(会社印、承認印および担当者印)を含んでいる。   Here, the image data on the first page is obtained by reading an estimate. This estimate includes characters and line drawings (frames and lines) drawn in black, and characters and line drawings (company mark, approval mark, and person-in-charge mark) drawn in red.

また、2ページ目の画像データは、雑誌の記事を読み取って得られたものである。この記事は、黒で描かれた文字および線画(地図など)、緑で描かれた文字(「アテネの」と記載された部位)および写真(神殿の写真)を含んでいる。なお、写真は、白を含む階調画像で構成された神殿部分と、青を含む階調画像で構成された空部分とを有している。   The image data on the second page is obtained by reading a magazine article. This article includes letters and line drawings drawn in black (such as maps), letters drawn in green (sites marked "Athens"), and photographs (photos of the temple). The photograph has a temple part composed of a gradation image including white and a sky part composed of a gradation image including blue.

さらに、3ページ目の画像データは、学習用のノート等を読み取って得られたものである。このノートは、黒で描かれた文字(アルファベット)と、ピンクで描かれた図形(「is」、「am」、「are」に重なる部位)を含んでいる。なお、ピンクで描かれた部位は、英文の文字画像に対し、例えばマーカーペン等を用いて書き込まれたものである。   Further, the image data on the third page is obtained by reading a learning notebook or the like. This note includes letters (alphabet) drawn in black and graphics (parts overlapping “is”, “am”, “are”) drawn in pink. The portion drawn in pink is written on an English character image using, for example, a marker pen.

本実施の形態の画像読取装置10で、これらの画像を読み取った場合、各画像データに対し、次のような圧縮処理が選択される。
例えば1ページ目が対象ページとなる場合、色数が少なく、階調領域が存在せず、しかも均一色領域のサイズが基準サイズよりも小さいために、1ページ目の画像データは第1圧縮手法の適用対象となる。
また、例えば2ページ目が対象ページとなる場合、色数は少ないものの、写真領域に階調領域が存在するために、2ページ目の画像データは第2圧縮手法の適用対象となる。
さらに、例えば3ページ目が対象ページとなる場合、色数が少なく、階調領域が存在せず、しかも均一色領域のサイズが基準サイズよりも小さいために、3ページ目の画像データは第1圧縮手法の適用対象となる。
When these images are read by the image reading apparatus 10 of the present embodiment, the following compression processing is selected for each image data.
For example, when the first page is the target page, the number of colors is small, the gradation area does not exist, and the size of the uniform color area is smaller than the reference size. Is subject to application.
For example, when the second page is the target page, the number of colors is small, but the gradation area is present in the photographic area, so the image data of the second page is an application target of the second compression method.
Further, for example, when the third page is the target page, the number of colors is small, the gradation area does not exist, and the size of the uniform color area is smaller than the reference size. The compression method is applied.

なお、本実施の形態では、対象ページにおける色数と、対象ページにおける階調領域の有無と、対象ページにおける基準サイズ以上の均一色領域の有無とに基づいて、第1圧縮手法の適用または第2圧縮手法の適用を決定するようにしていたが、これに限られるものではない。例えば、対象ページにおける色数と、対象ページにおける階調領域の有無とに基づいて決定(均一色領域については考慮しない)してもかまわない。   In the present embodiment, the first compression method or the first compression method is applied based on the number of colors in the target page, the presence / absence of a gradation region in the target page, and the presence / absence of a uniform color region equal to or larger than the reference size in the target page. Although the application of the two compression method is determined, the present invention is not limited to this. For example, it may be determined based on the number of colors in the target page and the presence / absence of a gradation region in the target page (a uniform color region is not considered).

また、本実施の形態では、スキャナ16と画像処理装置100とを有する画像読取装置10を例として説明を行ったが、これに限られるものではなく、例えばデジタルカメラ等の撮像装置によって得られた画像データに対し、画像処理装置100を用いて処理を施すものであってもよい。   In the present embodiment, the image reading apparatus 10 having the scanner 16 and the image processing apparatus 100 has been described as an example. However, the present invention is not limited to this, and the image reading apparatus 10 is obtained by an imaging apparatus such as a digital camera. The image data may be processed using the image processing apparatus 100.

さらに、本実施の形態では、ネットワークに30に対し、画像読取装置10を単体で接続する場合を例として説明を行ったが、これに限られるものではなく、例えば画像読取装置10とレーザプリンタ等の画像形成装置とを組み合わせてなる複写機であってもかまわない。   Furthermore, in the present embodiment, the case where the image reading apparatus 10 is connected to the network 30 as a single unit has been described as an example. However, the present invention is not limited to this. For example, the image reading apparatus 10 and a laser printer, etc. The image forming apparatus may be combined with a copying machine.

10…画像読取装置、16…スキャナ、100…画像処理装置、120…圧縮処理部、130…圧縮条件決定部、140…色別分離処理部、150…第1圧縮処理部、160…ページ合成部、170…第2圧縮処理部、180…ファイル合成部 DESCRIPTION OF SYMBOLS 10 ... Image reading apparatus, 16 ... Scanner, 100 ... Image processing apparatus, 120 ... Compression processing part, 130 ... Compression condition determination part, 140 ... Separation processing part classified by color, 150 ... First compression processing part, 160 ... Page composition part , 170 ... second compression processing unit, 180 ... file composition unit

Claims (6)

画像データを構成する色の数を算出する算出手段と、
前記画像データにおいて階調で表現される階調領域を抽出する階調領域抽出手段と、
前記算出手段により算出された前記色の数が予め決められた閾値以下であり且つ前記階調領域抽出手段により抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、当該算出手段により算出された当該色の数が当該閾値を超え、あるいは、当該算出手段により算出された当該色の数が当該閾値以下であり且つ当該階調領域抽出手段により抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する判定手段と
を含む画像処理装置。
Calculating means for calculating the number of colors constituting the image data;
Gradation area extraction means for extracting gradation areas represented by gradations in the image data;
When the number of colors calculated by the calculation unit is equal to or less than a predetermined threshold value and the gradation region extracted by the gradation region extraction unit does not exist, the image data is defined as a first type. The number of colors calculated by the calculation means exceeds the threshold, or the number of colors calculated by the calculation means is equal to or less than the threshold and is extracted by the gradation area extraction means An image processing apparatus comprising: a determination unit that determines that the image data is the second type when the gradation area exists.
前記第1の種別と判定された画像データにおける色の数を減少させる減色手段と、
前記減色手段によって減色された前記第1の種別の画像データに圧縮処理を施す第1圧縮処理手段と、
前記第2の種別と判定された画像データに圧縮処理を施す第2圧縮処理手段と
をさらに含むことを特徴とする請求項1記載の画像処理装置。
A color reduction means for reducing the number of colors in the image data determined to be the first type;
First compression processing means for performing compression processing on the first type of image data reduced in color by the color reduction means;
The image processing apparatus according to claim 1, further comprising: a second compression processing unit that performs a compression process on the image data determined to be the second type.
前記画像データにおいて均一色で表現される均一色領域を抽出する均一色領域抽出手段をさらに含み、
前記判定手段は、前記算出手段により算出された前記色の数が予め決められた閾値以下であり、前記階調領域抽出手段により抽出された前記階調領域が存在せず、さらに、前記均一色領域抽出手段により抽出された前記均一色領域の大きさが予め決められた基準大きさよりも小さい場合に、前記画像データを第1の種別と判定することを特徴とする請求項1または2記載の画像処理装置。
A uniform color region extracting means for extracting a uniform color region expressed in a uniform color in the image data;
The determination means has the number of colors calculated by the calculation means equal to or less than a predetermined threshold, the gradation area extracted by the gradation area extraction means does not exist, and the uniform color 3. The image data is determined to be the first type when the size of the uniform color area extracted by the area extraction unit is smaller than a predetermined reference size. Image processing device.
原稿の画像を読み取る読取手段と、
前記読取手段によって読み取られた画像データを構成する色の数を算出する算出手段と、
前記画像データにおいて階調で表現される階調領域を抽出する階調領域抽出手段と、
前記算出手段により算出された前記色の数が予め決められた閾値以下であり且つ前記階調領域抽出手段により抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、当該算出手段により算出された当該色の数が当該閾値を超え、あるいは、当該算出手段により算出された当該色の数が当該閾値以下であり且つ当該階調領域抽出手段により抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する判定手段と
を含む画像読取装置。
Reading means for reading an image of a document;
Calculating means for calculating the number of colors constituting the image data read by the reading means;
Gradation area extraction means for extracting gradation areas represented by gradations in the image data;
When the number of colors calculated by the calculation unit is equal to or less than a predetermined threshold value and the gradation region extracted by the gradation region extraction unit does not exist, the image data is defined as a first type. The number of colors calculated by the calculation means exceeds the threshold, or the number of colors calculated by the calculation means is equal to or less than the threshold and is extracted by the gradation area extraction means An image reading apparatus comprising: a determination unit that determines that the image data is the second type when the gradation area exists.
前記読取手段は、複数ページの原稿を順番に読み取ることで、複数ページに対応する複数の画像データを出力し、
前記判定手段は、前記複数の画像データに対し、ページ毎に判定を行うことを特徴とする請求項4記載の画像読取装置。
The reading unit outputs a plurality of image data corresponding to a plurality of pages by sequentially reading a plurality of pages of an original,
The image reading apparatus according to claim 4, wherein the determination unit determines, for each page, the plurality of image data.
コンピュータに、
画像データを構成する色の数を算出する機能と、
前記画像データにおいて階調で表現される階調領域を抽出する機能と、
算出された前記色の数が予め決められた閾値以下であり且つ抽出された前記階調領域が存在しない場合に、前記画像データを第1の種別と判定し、算出された当該色の数が当該閾値を超え、あるいは、算出された当該色の数が当該閾値以下であり且つ抽出された当該階調領域が存在する場合に、当該画像データを第2の種別と判定する機能と
を実現させるプログラム。
On the computer,
A function for calculating the number of colors constituting the image data;
A function of extracting a gradation area represented by gradation in the image data;
When the calculated number of colors is equal to or less than a predetermined threshold value and the extracted gradation area does not exist, the image data is determined as the first type, and the calculated number of colors is A function of determining the image data as the second type when the threshold value is exceeded or the calculated number of colors is equal to or less than the threshold value and the extracted gradation region exists is realized. program.
JP2012012144A 2012-01-24 2012-01-24 Image processing apparatus, image reading apparatus, and program Active JP5884509B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012012144A JP5884509B2 (en) 2012-01-24 2012-01-24 Image processing apparatus, image reading apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012012144A JP5884509B2 (en) 2012-01-24 2012-01-24 Image processing apparatus, image reading apparatus, and program

Publications (2)

Publication Number Publication Date
JP2013153273A true JP2013153273A (en) 2013-08-08
JP5884509B2 JP5884509B2 (en) 2016-03-15

Family

ID=49049311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012012144A Active JP5884509B2 (en) 2012-01-24 2012-01-24 Image processing apparatus, image reading apparatus, and program

Country Status (1)

Country Link
JP (1) JP5884509B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032263A (en) * 2014-07-30 2016-03-07 京セラドキュメントソリューションズ株式会社 Image formation apparatus

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05233790A (en) * 1992-02-19 1993-09-10 Brother Ind Ltd Digital image processor
JP2000013605A (en) * 1998-06-18 2000-01-14 Minolta Co Ltd Image processor, method and record medium recording image processing program
JP2004312693A (en) * 2003-03-24 2004-11-04 Kitakyushu Foundation For The Advancement Of Industry Science & Technology Image encoding apparatus and image encoding method
JP2005027037A (en) * 2003-07-02 2005-01-27 Canon Inc Format conversion method and image processing apparatus
JP2005260452A (en) * 2004-03-10 2005-09-22 Fuji Xerox Co Ltd Image processing apparatus
JP2007310775A (en) * 2006-05-22 2007-11-29 Murata Mach Ltd Image processor and image processing method
JP2010232952A (en) * 2009-03-27 2010-10-14 Fuji Xerox Co Ltd Image processor, and image processing program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05233790A (en) * 1992-02-19 1993-09-10 Brother Ind Ltd Digital image processor
JP2000013605A (en) * 1998-06-18 2000-01-14 Minolta Co Ltd Image processor, method and record medium recording image processing program
JP2004312693A (en) * 2003-03-24 2004-11-04 Kitakyushu Foundation For The Advancement Of Industry Science & Technology Image encoding apparatus and image encoding method
JP2005027037A (en) * 2003-07-02 2005-01-27 Canon Inc Format conversion method and image processing apparatus
JP2005260452A (en) * 2004-03-10 2005-09-22 Fuji Xerox Co Ltd Image processing apparatus
JP2007310775A (en) * 2006-05-22 2007-11-29 Murata Mach Ltd Image processor and image processing method
JP2010232952A (en) * 2009-03-27 2010-10-14 Fuji Xerox Co Ltd Image processor, and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032263A (en) * 2014-07-30 2016-03-07 京セラドキュメントソリューションズ株式会社 Image formation apparatus

Also Published As

Publication number Publication date
JP5884509B2 (en) 2016-03-15

Similar Documents

Publication Publication Date Title
US8345998B2 (en) Compression scheme selection based on image data type and user selections
JP5875637B2 (en) Image processing apparatus and image processing method
JP4295340B2 (en) Enlarge and pinch 2D images
US10332262B2 (en) Removal of background information from digital images
US9088754B2 (en) Image processing device determining characteristic quantity relating to number of colors
JP2012049826A (en) Image processing apparatus and image processing method
JP6923037B2 (en) Image processing equipment, image processing methods and programs
JP2022147074A (en) Image processing apparatus, image processing method, and program
US8577132B2 (en) Electronic document generation system, electronic document generation method, and program
JP5884509B2 (en) Image processing apparatus, image reading apparatus, and program
JP2021167084A (en) Image processing device, image processing method and program
JP6191256B2 (en) Image processing apparatus and program
JP2017118433A (en) Image processing device, image processing method and program
JP4710672B2 (en) Character color discrimination device, character color discrimination method, and computer program
JP6486082B2 (en) Image processing apparatus, image processing method, and program
JP4569162B2 (en) Image processing method, image processing program, and image processing apparatus
JP6051675B2 (en) Image processing apparatus, image processing method, program, and recording medium
US20150055193A1 (en) Processing Apparatus
US20120194883A1 (en) Character detection apparatus, character detection method, and computer-readable storage medium
JP6641982B2 (en) Image processing apparatus, image processing method, and program
US9098768B2 (en) Character detection apparatus, character detection method, and computer-readable storage medium
JP7185451B2 (en) Image processing device, image processing method, and program
JP7362405B2 (en) Image processing device, image processing method, and program
JP2006311193A (en) Image processor, image reader provided with the same and image processing method
JP2006262258A (en) Image processor, and image processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151216

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160125

R150 Certificate of patent or registration of utility model

Ref document number: 5884509

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350