JP2006333175A - Image processor, image processing method and image processing program - Google Patents

Image processor, image processing method and image processing program Download PDF

Info

Publication number
JP2006333175A
JP2006333175A JP2005155105A JP2005155105A JP2006333175A JP 2006333175 A JP2006333175 A JP 2006333175A JP 2005155105 A JP2005155105 A JP 2005155105A JP 2005155105 A JP2005155105 A JP 2005155105A JP 2006333175 A JP2006333175 A JP 2006333175A
Authority
JP
Japan
Prior art keywords
foreground
color
colors
image
image data
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
JP2005155105A
Other languages
Japanese (ja)
Other versions
JP4584771B2 (en
Inventor
Toshio Akiyama
敏雄 穐山
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2005155105A priority Critical patent/JP4584771B2/en
Publication of JP2006333175A publication Critical patent/JP2006333175A/en
Application granted granted Critical
Publication of JP4584771B2 publication Critical patent/JP4584771B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To attain character quality uniform with a high compression rate by using a simple image processing mode. <P>SOLUTION: Image data is separated into a character region and a non-character region, that is, a foreground region and a background region on the basis of a characteristic amount such as a distribution state of histogram and is separately stored in a separated data storing part 232. A representative color discriminating part 233 represents one plane by a monochromatic image on the basis of the image data stored in the foreground image storing part of the separated data storing part 232 and discriminates the number of colors of the foreground region on the basis of this representation result. Compression processing corresponding to the discriminated number of colors of the foreground region is applied to the foreground region, and the foreground region is stored in a data by colors storing part 234. However, when the discriminated number of colors of the foreground is within the range between one and five colors, a foreground color rechecking/region reextracting part 235 discriminates the number of colors of the foreground region again. When the number of colors is discriminated to be large, the region is switched from the foreground region to a background region and compressed as a background region. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、例えば、スキャナ装置やデジタルカメラなどの画像入力装置を用いて入力された文書画像データを高圧縮率で圧縮して保存する画像処理装置、画像処理方法、および画像処理プログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and an image processing program that compress and store document image data input using an image input device such as a scanner device or a digital camera at a high compression rate.

近年、スキャナ装置やデジタルカメラ装置が幅広く普及するとともに、画像情報処理における画像情報の扱いを容易にする様々な技術が開発されている。その1つに、パソコン通信等でファイルを送受信する際の通信時間を短縮したり、記憶装置により多くのデータを保存するために利用される画像情報の圧縮符号化技術がある。
この画像情報の圧縮符号化技術は、画像情報量を削減する技術であり、その方式は画像データの特徴や用途に応じて多種多様である。
従来、画像データの軽減化を図る圧縮処理技術が、下記の特許文献をはじめ種々提案されている。
特開2004−248271公報
In recent years, scanner devices and digital camera devices have become widespread, and various techniques for facilitating the handling of image information in image information processing have been developed. One of them is a compression coding technique for image information used for shortening the communication time when transmitting / receiving a file by personal computer communication or the like, and storing a large amount of data in a storage device.
This compression encoding technology for image information is a technology for reducing the amount of image information, and there are a variety of methods depending on the characteristics and application of the image data.
Conventionally, various compression processing techniques for reducing image data have been proposed including the following patent documents.
JP 2004-248271 A

特許文献1には、画像の領域ごとに異なるコンポーネントとして圧縮符号化することにより、圧縮符号化の効率を高め、画像データの利便性を向上させ画像処理の効率化を図る技術が提案されている。
詳しくは、はじめに、読み込まれた画像データを像域分離を行うことにより複数の領域に分割する。そして、分割された画像の領域ごとに異なるコンポーネントを作成し、必要に応じてコンポーネントごとに異なる設定(圧縮符号化方式、量子化レベル、データ形式など)で画像の圧縮符号化を行う。
特に、画像を特定領域とそれ以外の領域、あるいは、文字領域、線画領域、写真領域、背景領域に分割することにより、領域の特性に応じた圧縮符号化を実行することができる。
Patent Document 1 proposes a technique for improving the efficiency of compression encoding, improving the convenience of image data, and improving the efficiency of image processing by compressing and encoding as different components for each region of an image. .
Specifically, first, the read image data is divided into a plurality of regions by performing image region separation. Then, a different component is created for each divided image region, and the image is compression-encoded with different settings (compression encoding method, quantization level, data format, etc.) for each component as necessary.
In particular, by dividing an image into a specific area and other areas, or a character area, a line drawing area, a photographic area, and a background area, compression coding according to the characteristics of the area can be executed.

また、上述した特許文献1で提案されている技術の他、画像データの圧縮率をより高めた高圧縮技術も提案されている。
この高圧縮技術では、高い圧縮率を確保するために前景(文字)画像を減色する手法が用いられている。
特に、前景色が1色となり画像データを1bit/pixelで表現できる場合には、MMR(Modified Modified READ:G4ファクシミリの符号化方式)圧縮など、一般に高圧縮が可能な方式への対応ができる。
In addition to the technique proposed in Patent Document 1 described above, a high compression technique in which the compression rate of image data is further increased is also proposed.
In this high compression technique, a technique of subtracting the foreground (character) image is used to ensure a high compression rate.
In particular, when the foreground color is one color and the image data can be expressed in 1 bit / pixel, it is possible to cope with a method capable of high compression in general, such as MMR (Modified Modified READ: G4 facsimile encoding method) compression.

なお、前景を1色で表現する際には、原稿がモノトーン画像であるか、または前景となる文字部分が1色で表現されていることが必須条件となる。
そのため通常は、グレースケール判別処理などを行うことにより原稿の前景状態を判断し、グレースケールである場合のみ前景を1色で処理するように設定されている。
When the foreground is expressed by one color, it is an essential condition that the document is a monotone image or that the character portion serving as the foreground is expressed by one color.
For this reason, it is usually set so that the foreground state of the document is determined by performing gray scale discrimination processing and the like, and the foreground is processed with one color only when it is in gray scale.

適切に元画像に応じた高圧縮処理の方式を自動切り替えさせるためには、前景状態などの元画像(原稿)の情報を自動取得するためのグレースケール判別処理などの判別処理が必要となる。
しかしながら、新聞などの黄ばんだ元画像をカラー画像と判別してしまったり、ラインマーカーや手書き赤ペンの量が少ない元画像をモノクロ画像と判別してしまったりなどの誤動作(誤処理)が判別処理の段階において生じるおそれがある。
In order to automatically switch the method of high compression processing according to the original image appropriately, determination processing such as gray scale determination processing for automatically acquiring information of the original image (original) such as the foreground state is required.
However, it is possible to identify malfunctions (error processing) such as determining a yellowish original image such as newspaper as a color image, or determining an original image with a small amount of line marker or handwritten red pen as a monochrome image. There is a risk that this will occur at the stage.

このような誤動作が生じた場合には、判別処理の段階で実際の原稿情報と異なる誤った判断結果が得られるため、最終的に期待する画像処理結果が得ることができないことが多い。
そこで本発明は、簡単な画像処理方式を用いて高い圧縮率と均一な文字品質を実現する画像圧縮を可能にする画像処理装置、画像処理方法、および画像処理プログラムを提供することを第1の目的とする。
また、本発明は、前景(文字)情報の判別処理の段階において誤処理された場合であっても、圧縮符号化処理後のデータにその影響が反映されることを抑制することができる画像処理装置、画像処理方法、画像処理プログラムを提供することを第2の目的とする。
When such a malfunction occurs, an erroneous determination result different from the actual document information is obtained at the stage of the determination process, so that the expected image processing result cannot be obtained in many cases.
In view of this, the present invention provides a first image processing apparatus, an image processing method, and an image processing program that enable image compression that achieves a high compression rate and uniform character quality using a simple image processing method. Objective.
In addition, the present invention is an image processing that can suppress the influence of the influence on the data after the compression encoding process even when erroneous processing is performed in the foreground (character) information determination process. A second object is to provide an apparatus, an image processing method, and an image processing program.

請求項1記載の発明では、画像データを文字部である前景領域と、非文字部である背景領域とに分離する分離手段と、前記分離手段により分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する色数判別手段と、前記色数判別手段により判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する圧縮手段と、前記圧縮手段により圧縮された画像データを所定の格納領域に圧縮方式別に格納する格納手段と、を備えることにより前記第1目的を達成する。   In the first aspect of the present invention, a separation unit that separates image data into a foreground region that is a character part and a background region that is a non-character part, and a plane in the foreground region separated by the separation unit is a monochromatic image. A color number determination unit that expresses and determines the number of colors in the foreground region based on the result, and a compression unit that compresses data using a predetermined compression method according to the number of colors determined by the color number determination unit And the storage means for storing the image data compressed by the compression means in a predetermined storage area for each compression method, to achieve the first object.

請求項2記載の発明では、請求項1記載の発明において、前記色数判別手段により判別された代表色の色数が所定の数に満たない場合、前記圧縮手段で圧縮処理を行う前に、再度前記前景領域における色数を判別する再判別手段と、前記再判別手段により判別された色数が、前記色数判別手段により判別された色数よりも多い場合、該当する前景領域を背景領域に切り替える切り替え手段と、を備えることにより前記第2の目的を達成する。   In the invention according to claim 2, in the invention according to claim 1, when the number of representative colors determined by the number-of-colors determination unit is less than a predetermined number, before performing compression processing by the compression unit, Re-discriminating means for discriminating the number of colors in the foreground area again, and when the number of colors discriminated by the redetermining means is larger than the number of colors discriminated by the color number discriminating means, And switching means for switching to the second object.

請求項3記載の発明では、請求項1または請求項2記載の発明において、前記色数判別手段および前記再判別手段のうち少なくとも一方は、前記前景画像の代表色を各プレーンに対して1つ判別される代表色情報に基づいて、前記前景領域における色数を判別する。   According to a third aspect of the present invention, in the first or second aspect of the present invention, at least one of the number-of-colors discriminating means and the redetermining means has one representative color of the foreground image for each plane. The number of colors in the foreground region is determined based on the determined representative color information.

請求項4記載の発明では、請求項1、請求項2または請求項3記載の発明において、前記前景領域におけるプレーン数を複数設定する。   According to a fourth aspect of the present invention, in the first, second, or third aspect of the present invention, a plurality of planes in the foreground area are set.

請求項5記載の発明では、請求項1、請求項3、請求項4または請求項5記載の発明において、前記色数判別手段および前記再判別手段のうち少なくとも一方は、前記前景領域におけるエッジ部分を除いた色の特徴情報に基づき、前記前景領域における色数を判別する。   According to a fifth aspect of the present invention, in the first, third, fourth, or fifth aspect of the present invention, at least one of the color number determining means and the re-discriminating means is an edge portion in the foreground region. The number of colors in the foreground region is discriminated based on the color feature information excluding.

請求項6記載の発明では、コンピュータを用いて画像データの圧縮処理を行う際に使用される画像処理方法であって、画像データを文字部である前景領域と、非文字部である背景領域とに分離する第1のステップと、前記第1のステップにより分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する第2のステップと、前記第2のステップにより判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する第3のステップと、前記第3のステップにより圧縮された画像データを所定の格納領域に圧縮方式別に格納する第4のステップと、を有することにより前記第1の目的を達成する。   The invention according to claim 6 is an image processing method used when performing compression processing of image data using a computer, wherein the image data includes a foreground area that is a character part, a background area that is a non-character part, and And a second step of expressing the plane in the foreground region separated in the first step as a single color image and determining the number of colors in the foreground region based on the result, A third step of compressing data using a predetermined compression method according to the number of colors determined in the second step, and a method of compressing the image data compressed in the third step into a predetermined storage area And the fourth step of storing separately to achieve the first object.

請求項7記載の発明では、コンピュータを用いて画像データの圧縮処理を行う際に使用される画像処理プログラムであって、画像データを文字部である前景領域と、非文字部である背景領域とに分離する分離機能と、前記分離機能段により分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する色数判別機能と、前記色数判別機能により判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する圧縮機能と、前記圧縮機能により圧縮された画像データを所定の格納領域に圧縮方式別に格納する格納機能と、をコンピュータに実現させることにより前記第1の目的を達成する。   According to the seventh aspect of the present invention, there is provided an image processing program used when image data compression processing is performed using a computer, wherein the image data includes a foreground region that is a character portion, a background region that is a non-character portion, and A separation function for separating the image into a plurality of colors, a plane in the foreground area separated by the separation function stage is expressed by a single color image, and a color number determination function for determining the number of colors in the foreground area based on the result, and the number of colors A compression function for compressing data using a predetermined compression method according to the number of colors determined by the determination function; a storage function for storing image data compressed by the compression function in a predetermined storage area for each compression method; The first object is achieved by realizing the above in a computer.

請求項1、請求項6または請求項7記載の発明によれば、前景領域におけるプレーンを単色画像で表現した結果に基づいて前景領域における色数を判別し、判別された色数に応じた所定の圧縮方式を用いてデータを圧縮することにより、圧縮手段簡単な画像処理方式を用いて高い圧縮率と均一な文字品質を実現する画像圧縮が可能になる。   According to the first, sixth, or seventh aspect of the invention, the number of colors in the foreground area is determined based on the result of expressing the plane in the foreground area with a single color image, and a predetermined number corresponding to the determined number of colors is determined. By compressing data using this compression method, it is possible to perform image compression that achieves a high compression rate and uniform character quality using an image processing method that is simple in the compression means.

請求項2記載の発明によれば、圧縮処理を行う前に、再度前記前景領域における色数を判別し、再度判別された色数が、色数判別手段により判別された色数よりも多い場合、該当する前景領域を背景領域に切り替えることにより、前景(文字)情報の判別処理の段階において誤処理された場合であっても、圧縮符号化処理後のデータにその影響が反映されることを抑制することができる。   According to the second aspect of the present invention, the number of colors in the foreground area is determined again before performing the compression process, and the number of colors determined again is larger than the number of colors determined by the color number determination means. By switching the corresponding foreground area to the background area, even if it is erroneously processed in the foreground (character) information discrimination process stage, the effect is reflected in the data after the compression encoding process. Can be suppressed.

請求項3記載の発明によれば、前景画像の代表色を各プレーンに対して1つ判別される代表色情報に基づいて、前景領域における色数を判別することにより、適切に前景領域における色数を判別することができる。
請求項4記載の発明によれば、前景領域におけるプレーン数を複数設定することにより、複数の文字色を有する画像データの圧縮に対応させることができる。
請求項5記載の発明によれば、前景領域におけるエッジ部分を除いた色の特徴情報に基づき、前景領域における色数を判別すること適切に前景領域における色数を判別することができる。
According to the invention described in claim 3, by appropriately determining the number of colors in the foreground area based on the representative color information for determining one representative color of the foreground image for each plane, The number can be determined.
According to the invention described in claim 4, by setting a plurality of planes in the foreground area, it is possible to cope with compression of image data having a plurality of character colors.
According to the fifth aspect of the present invention, it is possible to appropriately determine the number of colors in the foreground area by determining the number of colors in the foreground area based on the color feature information excluding the edge portion in the foreground area.

以下、本発明の好適な実施の形態について、図1〜図3を参照して詳細に説明する。
なお、本実施の形態では、画像データの符号化処理を行う画像処理装置を搭載した画像形成装置の一例として、デジタル複写機を用いて説明する。
図1は、本実施の形態に係るデジタル複写機1の概略構成を示すブロック図である。
デジタル複写機1は、電子写真プロセスにより用紙上などに画像形成を行うプリンタエンジン2と、原稿の画像を読み取るスキャナ3とを備えている。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to FIGS.
In the present embodiment, a digital copying machine will be used as an example of an image forming apparatus equipped with an image processing apparatus that performs image data encoding processing.
FIG. 1 is a block diagram showing a schematic configuration of a digital copying machine 1 according to the present embodiment.
The digital copying machine 1 includes a printer engine 2 that forms an image on a sheet or the like by an electrophotographic process, and a scanner 3 that reads an image of a document.

デジタル複写機1は、マイクロコンピュータを有するコントローラ5を備えている。このコントローラ5は、デジタル複写機1の全体を制御するメインコントローラと、コントローラ5各部をそれぞれ制御する複数のサブコントローラとからなる。
プリンタエンジン2は、それぞれ感光体、現像装置、クリーニング装置、帯電装置を有しており、K、M、C、Y(ブラック、マゼンタ、シアン、イエロー)各色の乾式トナー像を形成するためのプロセスカートリッジ11K、11M、11C、11Y、転写ベルト12、定着装置13、プロセスカートリッジ11K、11M、11C、11Yの各感光体にK、M、C、Y各色の画像の静電潜像を光書込みする色書込装置14K、14M、14C、14Yを備えている。
The digital copying machine 1 includes a controller 5 having a microcomputer. The controller 5 includes a main controller that controls the entire digital copying machine 1 and a plurality of sub-controllers that control each part of the controller 5.
The printer engine 2 includes a photoreceptor, a developing device, a cleaning device, and a charging device, and processes for forming dry toner images of K, M, C, and Y (black, magenta, cyan, and yellow) colors. Electrostatic latent images of K, M, C, and Y color images are optically written on the photosensitive members of the cartridges 11K, 11M, 11C, and 11Y, the transfer belt 12, the fixing device 13, and the process cartridges 11K, 11M, 11C, and 11Y. Color writing devices 14K, 14M, 14C, and 14Y are provided.

また、デジタル複写機1は、カラー画像を記録されるための転写材(記録用紙やOHPなど)を収納する給紙トレイ15a〜15cを備えている。
各プロセスカートリッジ11K、11M、11C、11Yは、K、M、C、Y各色のトナー像を転写ベルト12に重ね合わせて形成する。
そして、この重ね合わされたトナー像は、給紙トレイ15a〜15cから供給される転写材に転写されて、定着装置13により定着される。
また、デジタル複写機1は、バンドバッファ22、符号化部23、復号化部24、ページメモリ25を有する画像処理装置26を備えている。
The digital copying machine 1 also includes paper feed trays 15a to 15c that store transfer materials (recording paper, OHP, etc.) for recording color images.
The process cartridges 11K, 11M, 11C, and 11Y are formed by superimposing toner images of K, M, C, and Y colors on the transfer belt 12.
The superimposed toner images are transferred to a transfer material supplied from the paper feed trays 15 a to 15 c and fixed by the fixing device 13.
The digital copying machine 1 also includes an image processing device 26 having a band buffer 22, an encoding unit 23, a decoding unit 24, and a page memory 25.

バンドバッファ22は、1ページ分の画像データを構成する複数のバンドのうち、一つのバンドに含まれる画素のデータを格納するためのバッファである。なお、バンドとは、所定数の画素ラインから構成される画像データの一領域を示す。
デジタル複写機1は、LANなどの所定のネットワーク4から図示しない通信インターフェイスを介して画像データを受け取ることも可能に構成されている。
RIP部21は、ネットワーク4を介して入力された画像データがPDL(ページ記述言語)形式のデータであるとき、これをバンド単位に描画処理してビットマップ形式に変換して、画像処理装置26に出力する。
The band buffer 22 is a buffer for storing pixel data included in one band among a plurality of bands constituting image data for one page. A band indicates a region of image data composed of a predetermined number of pixel lines.
The digital copying machine 1 is configured to receive image data from a predetermined network 4 such as a LAN via a communication interface (not shown).
When the image data input via the network 4 is data in the PDL (page description language) format, the RIP unit 21 performs drawing processing on a band basis and converts it into a bitmap format, and the image processing device 26 Output to.

符号化部23は、バンドバッファ22に格納された画像データを符号化するための符号化装置である。
復号化部24は、圧縮符号を復号するための復号化装置である。
ページメモリ25は所定ページ分の画像データを圧縮符号として格納(記憶)するためのメモリである。本実施の形態に係るページメモリ25は、A4サイズの画像データ1ページ分の圧縮符号列を格納可能とする。
The encoding unit 23 is an encoding device for encoding the image data stored in the band buffer 22.
The decoding unit 24 is a decoding device for decoding the compression code.
The page memory 25 is a memory for storing (storing) image data for a predetermined page as a compression code. The page memory 25 according to the present embodiment can store a compression code string for one page of A4 size image data.

ハードディスク27は、ページメモリ25に格納された圧縮符号列を取得して格納し、必要に応じてその圧縮符号列をページメモリ25に再格納するために設けられたメモリ(記憶装置)である。
RGB→CMYK変換部28は、バンドバッファ22からバンド単位でRGB(レッド、グリーン、ブルー)色の信号で表現された画像データを受け取り、これをCMYK信号に変換する。
K、M、C、Y色階調処理部29K、29M、29C、29Yは、それぞれK、M、C、Y色の多値データを少値化して書込データに変換する機能を果たす。
The hard disk 27 is a memory (storage device) provided to acquire and store the compression code string stored in the page memory 25 and to re-store the compression code string in the page memory 25 as necessary.
The RGB → CMYK conversion unit 28 receives image data represented by RGB (red, green, blue) color signals in band units from the band buffer 22 and converts them into CMYK signals.
The K, M, C, and Y color gradation processing units 29K, 29M, 29C, and 29Y each perform a function of reducing the K, M, C, and Y color multivalued data and converting it into write data.

本実施の形態では、バンドバッファ22では1画素8ビットの600dpi画像データを格納し、これをK、M、C、Y色階調処理部29K、29M、29C、29Yで1画素1ビットの1200dpi画像データへと変換する。
そして、K、M、C色の書込みデータは、画像形成開始タイミングを調節するためにラインメモリ16K、16M、16Cに格納され、各色の画像が転写材上で重なり合うようにタイミングを合わせてK、M、C、Yの色書込装置14K、14M、14C、14Y、即ち画像形成を行うプリンタエンジン2に送られる。
In the present embodiment, the band buffer 22 stores 600 dpi image data of 8 bits per pixel, which is converted to 1200 dpi of 1 bit per pixel by the K, M, C, and Y color gradation processing units 29K, 29M, 29C, and 29Y. Convert to image data.
The K, M, and C color write data are stored in the line memories 16K, 16M, and 16C in order to adjust the image formation start timing, and the K, M, and C color data are overlapped on the transfer material. M, C, and Y color writing devices 14K, 14M, 14C, and 14Y, that is, the printer engine 2 that performs image formation.

図2は、本実施の形態に係る符号化部23の機能ブロックを示した図である。
符号化部23は、入力画像格納部230、2値化・領域認識部231、分離データ格納部232、代表色判別部233、色別データ格納部234、前景色再チェック・領域再抽出部235、グレー/カラー判別部236、出力画像データ格納部237を備えている。
入力画像格納部230は、バンドバッファ22から読み込んだ(入力された)画像データを格納する領域である。
FIG. 2 is a diagram illustrating functional blocks of the encoding unit 23 according to the present embodiment.
The encoding unit 23 includes an input image storage unit 230, a binarization / region recognition unit 231, a separated data storage unit 232, a representative color determination unit 233, a color-specific data storage unit 234, a foreground color recheck / region reextraction unit 235. , A gray / color discrimination unit 236 and an output image data storage unit 237 are provided.
The input image storage unit 230 is an area for storing image data read (input) from the band buffer 22.

2値化・領域認識部231は、入力画像格納部230に格納された画像データに対して、2値化処理および領域認識(識別)処理を行い、画像データを前景(文字)データと背景データとに分離する。
2値化処理とは、濃淡画像から2値画像を得るための処理を示す。ここでは、閾値処理が用いられる。なお、この処理で用いられる閾値の設定方法には、濃度ヒストグラムに基づく方法、画像の局所性質を生かし、この性質を利用する方法、画像をいくつかに分割し、各領域ごとに設定する方法、適応的処理方法がある。
The binarization / region recognition unit 231 performs binarization processing and region recognition (identification) processing on the image data stored in the input image storage unit 230, and converts the image data into foreground (character) data and background data. And to separate.
The binarization process is a process for obtaining a binary image from a grayscale image. Here, threshold processing is used. Note that the threshold setting method used in this process is a method based on a density histogram, a method that utilizes the local properties of an image, a method that uses this property, a method that divides an image into several, and sets each region, There are adaptive processing methods.

領域認識(識別)処理とは、文字領域と非文字領域とを認識(識別)する処理を示す。ここでは、画像データの特徴量、例えば、ヒストグラムの分布状態などを解析することにより行う。
分離データ格納部232は、2値化・領域認識部231で分離された前景(文字)データと背景データとをデータ別に格納する領域であり、前景イメージ格納部と背景イメージ格納部とを備えている。
The area recognition (identification) process is a process for recognizing (identifying) a character area and a non-character area. Here, the analysis is performed by analyzing the feature amount of the image data, for example, the distribution state of the histogram.
The separated data storage unit 232 is a region for storing foreground (character) data and background data separated by the binarization / region recognition unit 231 according to data, and includes a foreground image storage unit and a background image storage unit. Yes.

代表色判別部233は、分離データ格納部232の前景イメージ格納部に格納されたイメージデータに基づいて前景(文字)データの色数を判別する。
詳しくは、プレーン単位に前景画像の代表色を1つ判別し、即ち、前景画像を1プレーンごとの単色画像で表現した場合の前景(文字)データの色数を判別する。
ここでは、前景画像データの特徴量、例えば、前景画像データのエッジ部分を除いた色情報をヒストグラム分布や色の連続性に基づいて、前景画像データの代表色数を求める(判別する)。
The representative color determination unit 233 determines the number of colors of the foreground (character) data based on the image data stored in the foreground image storage unit of the separation data storage unit 232.
Specifically, one representative color of the foreground image is determined for each plane, that is, the number of colors of foreground (character) data when the foreground image is expressed as a single color image for each plane is determined.
Here, the number of representative colors of the foreground image data is determined (determined) based on the histogram distribution and the color continuity of color information excluding the feature amount of the foreground image data, for example, the edge portion of the foreground image data.

色別データ格納部234は、代表色判別部233で判別された前景(文字)データの色数の種別ごとに、詳しくは、フルカラー、6〜256色、2〜5色、1色ごとに前景(文字)データを格納する領域である。
前景色再チェック・領域再抽出部235は、色別データ格納部234における2〜5色データ格納部および1色データ格納部に格納されたデータに対して、再度前景色をチェックし、代表色に含まれない色が存在する場合にはそのドットを前景→背景に切り替える。
For each color type of the foreground (character) data discriminated by the representative color discriminating unit 233, the color-specific data storage unit 234, specifically, foreground for each of the full color, 6 to 256 colors, 2 to 5 colors, and one color. (Character) This is an area for storing data.
The foreground color re-check / area re-extraction unit 235 checks the foreground color again for the data stored in the 2-5 color data storage unit and the 1 color data storage unit in the color-specific data storage unit 234, and displays the representative color If there is a color that is not included, the dot is switched from foreground to background.

グレー/カラー判別部236は、分離データ格納部232の背景イメージ格納部に格納されたイメージデータに対して、グレー画像データであるか、カラー画像データであるかの判別を行う。
出力画像データ格納部237は、処理された画像データをそれぞれの領域にごとに異なる圧縮形式で格納する領域であり、前景色JPEG形式格納部、前景マスクMMR形式格納部、前景(文字)PNG形式格納部、前景(文字)MMR形式格納部、背景8/24bitJPEG形式格納部を備えている。
背景8/24bitJPEG形式格納部には、8bitデータと24bitデータとを分けて格納できるように構成されている。
The gray / color determining unit 236 determines whether the image data stored in the background image storage unit of the separated data storage unit 232 is gray image data or color image data.
The output image data storage unit 237 is a region for storing processed image data in a different compression format for each region, and includes a foreground JPEG format storage unit, a foreground mask MMR format storage unit, and a foreground (character) PNG format. A storage unit, a foreground (character) MMR format storage unit, and a background 8/24 bit JPEG format storage unit are provided.
The background 8 / 24-bit JPEG format storage unit is configured to store 8-bit data and 24-bit data separately.

なお、JPEG(Joint Photographic Experts Group)とは、ISOとITU−Tの共同作業グループが規格化した静止画圧縮の国際標準方式を示し、MMR(Modified Modified READ)とは、ITU−T勧告T.6として制定された、G4ファクシミリの画像符号化方式を示し、PNG(Portable Network Graphics)とはネットワーク環境でグラフィックス・データを扱うことを考慮して開発された画像ファイル形式を示す。   JPEG (Joint Photographic Experts Group) indicates an international standard method for still image compression standardized by a joint working group of ISO and ITU-T. MMR (Modified Modified READ) is an ITU-T recommendation T.264. 6 indicates an image encoding method of G4 facsimile, and PNG (Portable Network Graphics) indicates an image file format developed in consideration of handling graphics data in a network environment.

符号化部23は、最終的に出力画像データ格納部237に格納されたデータをタイルごとに独立して階層的に圧縮符号化し、符号データを生成する。そして、符号化部23は、生成したこの符号データを一本の符号列に合成する。   The encoding unit 23 hierarchically compresses and encodes the data finally stored in the output image data storage unit 237 for each tile to generate code data. Then, the encoding unit 23 combines the generated code data into one code string.

次に、本実施の形態に係る符号化部23における画像処理について説明する。
図3は、本実施の形態に係る符号化部23における画像処理の手順を示したフローチャートである。
まず、符号化部23は、バンドバッファ22から読み込んだ画像データ(イメージデータ)を入力画像格納部230に入力する(ステップ11)。なお、この画像データは、フルカラー画像データである。
Next, image processing in the encoding unit 23 according to the present embodiment will be described.
FIG. 3 is a flowchart showing a procedure of image processing in the encoding unit 23 according to the present embodiment.
First, the encoding unit 23 inputs the image data (image data) read from the band buffer 22 to the input image storage unit 230 (step 11). This image data is full-color image data.

そして、2値化・領域認識部231は、入力画像格納部230に格納された画像データに対して、最適な2値化処理を実行する(ステップ12)。なお、これらの処理は、画像データの特徴を示すヒストグラムの分布状態を解析することにより行う。
2値化処理を行った後、2値化・領域認識部231は、領域認識(識別)処理を実行する(ステップ13)。ここでは、罫線画像の識別や行データの抽出などを行う。
Then, the binarization / region recognition unit 231 executes an optimal binarization process on the image data stored in the input image storage unit 230 (step 12). Note that these processes are performed by analyzing the distribution state of the histogram indicating the characteristics of the image data.
After performing the binarization processing, the binarization / region recognition unit 231 executes region recognition (identification) processing (step 13). Here, ruled line image identification, line data extraction, and the like are performed.

2値化・領域認識部231は、2値化処理および領域認識(識別)処理された画像データを前景(文字)データと背景データとに分離する(ステップ14)。
前景(文字)データとして分離された場合(ステップ14;前景)、分離された前景(文字)画像データを分離データ格納部232の前景イメージ格納部に格納する(ステップ15)。
また、背景データとして分離された場合(ステップ14;背景)、分離された背景画像データを分離データ格納部232の背景イメージ格納部に格納する(ステップ22)。
The binarization / region recognition unit 231 separates the binarized and region recognition (identification) image data into foreground (character) data and background data (step 14).
When separated as foreground (character) data (step 14; foreground), the separated foreground (character) image data is stored in the foreground image storage unit of the separated data storage unit 232 (step 15).
If the background data is separated (step 14; background), the separated background image data is stored in the background image storage unit of the separated data storage unit 232 (step 22).

次に、代表色判別部233は、分離データ格納部232の前景イメージ格納部に格納されたイメージデータに基づいて前景(文字)データの色数を判別する代表色判別処理を実行する(ステップ16)。
ここでは、前景(文字)データの色数の種別、即ちフルカラー、6〜256色、2〜5色、1色、からなる4種類のパターンの判別を行う。
なお、前景(文字)データの色数の判別処理は、ヒストグラム分布状態の解析処理や色集合のクラスタリングなどにより行われる。
Next, the representative color determining unit 233 executes a representative color determining process for determining the number of colors of the foreground (character) data based on the image data stored in the foreground image storage unit of the separated data storage unit 232 (step 16). ).
Here, the type of the number of colors of the foreground (character) data, that is, four types of patterns including full color, 6 to 256 colors, 2 to 5 colors, and 1 color are discriminated.
The foreground (character) data color number discrimination processing is performed by histogram distribution state analysis processing, color set clustering, or the like.

そして、対象画像のデータがフルカラーまたは6〜256色に判別された場合(ステップ16;フルカラー、6〜256色)、代表色判別部233は、画像データを出力画像データ格納部237における前景色JPEG形式格納部、前景マスクMMR形式格納部、前景(文字)PNG形式格納部、前景(文字)MMR形式格納部、背景8/24bitJPEG形式格納部の該当領域に出力し(ステップ17)、処理を終了する。なお、出力画像データ格納部237へ出力する際に、所定の形式の圧縮処理を施し圧縮前景画像データとして格納する。   When the data of the target image is determined to be full color or 6 to 256 colors (step 16; full color, 6 to 256 colors), the representative color determination unit 233 outputs the image data to the foreground color JPEG in the output image data storage unit 237. Output to corresponding areas of the format storage unit, foreground mask MMR format storage unit, foreground (character) PNG format storage unit, foreground (character) MMR format storage unit, and background 8 / 24-bit JPEG format storage unit (step 17), and the process is terminated. To do. Note that when outputting to the output image data storage unit 237, compression processing of a predetermined format is performed and stored as compressed foreground image data.

一方、対象画像のデータが1〜5色と判別された場合(ステップ16;1〜5色)、前景色再チェック・領域再抽出部235は、色別データ格納部234における2〜5色データ格納部および1色データ格納部に格納されたデータに対して、再度前景色をチェックし、代表色に含まれない色の抽出処理を行う(ステップ18)。
そして、再度前景色をチェックした結果、代表色に含まれない色の抽出処理が行われた否か、即ち、前景色のみか否かの判別を行う(ステップ19)。詳しくは、画像データに前回の判別処理に抽出された色と異なる色(他の色)が混じっている(存在する)か否かを判断する。
On the other hand, when the data of the target image is determined to be 1 to 5 colors (step 16; 1 to 5 colors), the foreground color re-check / area re-extraction unit 235 performs the 2 to 5 color data in the color-specific data storage unit 234. The foreground color is checked again for the data stored in the storage unit and the one-color data storage unit, and a color extraction process not included in the representative color is performed (step 18).
Then, as a result of checking the foreground color again, it is determined whether or not a color extraction process not included in the representative color has been performed, that is, whether or not only the foreground color is present (step 19). Specifically, it is determined whether or not the image data includes (exists) a color (other color) different from the color extracted in the previous determination process.

画像データに前回の判別処理に抽出された色と異なる色(他の色)が混じっていない場合(ステップ19;Y)、ステップ17の処理に進みその領域の画像データを格納する。
一方、画像データに前回の判別処理に抽出された色と異なる色(他の色)が混じっている場合(ステップ;N)、異色/非異色領域分離処理、即ち、前回の判別処理に抽出された色と異なる色(異色)の領域と、その色でない色(非異色)の領域とを分離する(ステップ20)。
If the image data does not include a color (other color) different from the color extracted in the previous determination process (step 19; Y), the process proceeds to step 17, and the image data of that area is stored.
On the other hand, when the image data contains a color (other color) different from the color extracted in the previous discrimination process (step; N), the color is extracted in the different color / non-different color area separation process, that is, the previous discrimination process. A region of a color different from the selected color (different color) and a region of a color that is not that color (non-different color) are separated (step 20).

非異色領域として分離された場合(ステップ20;非異色領域)、ステップ17の処理に進み、その領域の画像データを格納する。
一方、異色領域として分離された場合(ステップ20;異色領域)、前景色再チェック・領域再抽出部235は、その領域の前景画像データを背景画像データへ切り替える処理を行い(ステップ21)、ステップ22の処理に進む。
これにより、前景画像データにステップ16の処理で求めた代表色数よりも大きく離れた色数がある場合は、その部分を前景から削除し、背景画像データとして圧縮させることができる。
If it is separated as a non-different color area (step 20; non-different color area), the process proceeds to step 17 to store the image data of that area.
On the other hand, when separated as a different color area (step 20; different color area), the foreground color re-check / area re-extraction unit 235 performs a process of switching the foreground image data of the area to background image data (step 21). Proceed to step 22.
As a result, if the foreground image data has a color number far from the representative color number obtained in the processing of step 16, that portion can be deleted from the foreground and compressed as background image data.

分離データ格納部232の背景イメージ格納部に格納されたデータに対して、符号化部23は、前景画像データから背景画像データへ切り替えられた履歴のあるデータが存在するか否かを判断する(ステップ23)。
前景画像データから背景画像データへ切り替えられた履歴のあるデータが存在する場合(ステップ23;Y)、その領域のデータを出力画像データ格納部237における背景8/24bitJPEG形式格納部の24bitデータの格納領域に背景画像データとして出力し(ステップ24)、処理を終了する。
一方、前景画像データから背景画像データへ切り替えられた履歴のあるデータが存在しない場合(ステップ23;N)、グレー/カラー判別部236は、分離データ格納部232の背景イメージ格納部に格納されたイメージデータに対して、グレー画像データであるか、カラー画像データであるかの判別を行う(ステップ25)。
For the data stored in the background image storage unit of the separated data storage unit 232, the encoding unit 23 determines whether there is data with a history of switching from the foreground image data to the background image data ( Step 23).
When there is data with a history of switching from the foreground image data to the background image data (step 23; Y), the data of that area is stored in the output 8 / 24bit JPEG format storage unit of 24bit data in the output image data storage unit 237. The background image data is output to the area (step 24), and the process is terminated.
On the other hand, when there is no data with a history of switching from the foreground image data to the background image data (step 23; N), the gray / color discrimination unit 236 is stored in the background image storage unit of the separated data storage unit 232. It is determined whether the image data is gray image data or color image data (step 25).

その結果、背景画像データがカラー画像データである場合(ステップ25;カラー)、ステップ24の処理に進む。
また、背景画像データがグレー画像データである場合(ステップ25;グレー)、その領域のデータを出力画像データ格納部237における背景8/24bitJPEG形式格納部の8bitデータの格納領域に背景画像データとして出力し(ステップ26)、処理を終了する。
As a result, when the background image data is color image data (step 25; color), the process proceeds to step 24.
If the background image data is gray image data (step 25; gray), the data in that area is output as background image data to the 8-bit data storage area of the background 8 / 24-bit JPEG format storage section in the output image data storage section 237. (Step 26), the process is terminated.

本実施の形態では、前景画像データのプレーン数を複数設定することにより、複数の文字色を有する画像データの圧縮に対応させることができる。例えば、2プレーン設定し、黒+赤文字の画像データに対応させることができる。   In the present embodiment, it is possible to cope with compression of image data having a plurality of character colors by setting a plurality of planes of foreground image data. For example, two planes can be set to correspond to black + red character image data.

ステップ16における前景(文字)データの色数を判別する代表色判別処理では、判別時に設定される閾値の程度(チューニングの精度)によって、誤判断(誤認識)される場合がある。前景色の誤認識が問題になるのは、前景色が1色〜数色程度の場合であり、次のような問題を引き起こすおそれがある。
・文字色が原稿どおりで無い(赤い文字が赤くないなど)。
・文字色が均一な濃度にならない。
・写真上の一部を文字と誤認識した場合、ノイズとして目立つ。
In the representative color discrimination process for discriminating the number of colors of the foreground (character) data in step 16, there is a case where an erroneous judgment (erroneous recognition) is made depending on the threshold level (tuning accuracy) set at the time of discrimination. The misrecognition of the foreground color becomes a problem when the foreground color is about one to several colors, which may cause the following problems.
-The text color is not the same as the original (red text is not red).
-The character color does not have a uniform density.
・ If a part of a photo is mistakenly recognized as a character, it will stand out as noise.

そこで本実施の形態では、前景色が1色〜5色程度の場合には、前景データを格納する時点で、ステップ18における前景色の再チェック・領域再抽出処理を実行し、再度前景色をチェックし代表色に含まれない色が存在する場合にはそのドット(ピクセル)を前景から背景に切り替える処理を行う。
これにより、異常な色が起因の上述したような不具合を適切に回避することができる。
即ち、ステップ16における前景(文字)データの色数を判別する代表色判別処理において失敗しても異常な結果にならないようなデータに回復することができるため、代表色判別処理における閾値の設定(色判別チューニング)の範囲を広げることができるため、閾値のチューニング処理を容易に行うことができる。また、自動判別の誤りを最終的に補正させることができる。
Therefore, in the present embodiment, when the foreground color is about 1 to 5 colors, the foreground color is rechecked and the region is re-extracted in step 18 when the foreground data is stored, and the foreground color is again displayed. If there is a color that is not included in the representative color after checking, a process of switching the dot (pixel) from the foreground to the background is performed.
As a result, the above-described problems caused by abnormal colors can be appropriately avoided.
That is, since it is possible to recover data that does not produce an abnormal result even if the representative color determination process for determining the number of colors of the foreground (character) data in step 16 fails, the threshold value setting in the representative color determination process ( Since the range of color discrimination tuning) can be expanded, the threshold tuning process can be easily performed. Further, it is possible to finally correct an error in automatic determination.

本実施の形態では、前景色再チェック・領域再抽出部235によって、前景画像データから背景画像データへ切り替える処理が行われた場合には、ステップ25における背景画像のグレー/カラー判別処理を行わずに24bitカラーで保存するように構成されている。
これはステップ25におけるグレー/カラー判別処理の誤動作の可能性を考慮してのものであり、即ち、グレー/カラー判別処理においてグレー原稿と判別されても、前景画像データから背景画像データへ切り替えたドット(ピクセル)は、グレー画像に限定されないためである。
In the present embodiment, when the foreground color re-check / area re-extraction unit 235 performs the process of switching from the foreground image data to the background image data, the background image gray / color discrimination process in step 25 is not performed. Are stored in 24-bit color.
This is in consideration of the possibility of malfunction of the gray / color discrimination process in step 25. That is, even if the gray / color discrimination process determines that the document is a gray document, the foreground image data is switched to the background image data. This is because dots (pixels) are not limited to gray images.

また、、前景画像データから背景画像データへ切り替える処理を行うことにより、画像データ(原稿データ)の文字色が1色でない場合であっても原稿に忠実な色を再現をさせることができる。
なお、グレー画像データをを8bitと24bitのJPEG形式に分けて格納した場合、データサイズは3倍違うことになるが、画像データ(ファイル)のサイズには、それほど大きな変化は生じない。従って、誤ってグレー画像データが24bitのJPEG形式で格納されることがあっても不都合を生じることはない。
In addition, by performing the process of switching from the foreground image data to the background image data, it is possible to reproduce a color faithful to the document even when the character color of the image data (document data) is not one color.
Note that when gray image data is stored separately in 8-bit and 24-bit JPEG format, the data size is three times different, but the image data (file) size does not change much. Therefore, there is no inconvenience even if gray image data is stored in the 24-bit JPEG format by mistake.

本実施の形態によれば、単純な画像処理方式を用いて、前景色を1色〜数色のMMRプレーンデータとして格納することにより、ファイル(画像データ)のサイズを小さくできる、均一で読みやすい文字色が得られ、最終的に均一で読みやすい文字色が得られる、などの効果を得ることができる。   According to the present embodiment, the size of the file (image data) can be reduced by storing the foreground color as one to several colors of MMR plane data using a simple image processing method. It is possible to obtain an effect that a character color is obtained and finally a uniform and easy-to-read character color is obtained.

また、前景(文字)は、通常は任意の色を持つものとして処理されることが多いが、前景(文字)を1色にしてしまうことにより、本来1色しか使用されていない原稿にもかかわらず、濃度が一定しない、赤い文字のはずが別の色が混じってしまう、などの誤動作(誤処理)を抑制することもできる。   Also, the foreground (character) is usually processed as having an arbitrary color. However, since the foreground (character) is set to one color, the foreground (character) is originally used only for one color. In addition, it is possible to suppress malfunctions (incorrect processing) such as the density is not constant and the red character should be mixed with another color.

本実施の形態によれば、文字色を単色にすることにより文字情報量を自体を減らす、とともに圧縮のされやすさを向上し、画像データのサイズ抑制(低減)を図ることができる。そして、原稿の単色チェックにおいて誤動作(誤処理)が生じた場合であっても、文字の誤単色を抑制し、最終的には正しい色合いの結果を得ることができる。
上述したように、本実施の形態によれば、簡素かつ高速な処理によって、異常な結果(出力画像の不具合)を抑制することができる。
According to the present embodiment, it is possible to reduce the amount of character information by making the character color a single color, improve the ease of compression, and suppress (reduce) the size of image data. Even if a malfunction (erroneous processing) occurs in the single color check of the document, it is possible to suppress the erroneous single color of the character and finally obtain a correct color result.
As described above, according to the present embodiment, it is possible to suppress abnormal results (defective output images) by simple and high-speed processing.

本実施の形態によれば、画像データの特徴(特性)別に、例えば、文字色が1色の場合には背景JPEG+1プレーンのMMR、文字色が2〜5色の場合には背景JPEG+2〜5プレーンのMMR、文字色が6〜256色の場合には、背景JPEG+4/8bitPNG、文字色がフルカラーの場合には、背景JPEG+前景色JPEG+マスクMMR、文字色がグレースケール場合には背景24bitJPEG+前景色8bitJPEG+マスクMMR、などのように高圧縮の方式を切り替えることにより、入力画像データ(原稿データ)に応じて最適な画質と圧縮率を達成することができる。   According to the present embodiment, according to the characteristics (characteristics) of the image data, for example, when the character color is one color, the background JPEG + 1 plane MMR, and when the character color is 2-5 colors, the background JPEG + 2-5 planes If the character color is 6 to 256 colors, the background JPEG + 4/8 bit PNG, if the character color is full color, the background JPEG + foreground JPEG + mask MMR, if the character color is grayscale, the background 24 bit JPEG + foreground color 8 bit JPEG + By switching the high compression method such as the mask MMR, the optimum image quality and compression rate can be achieved according to the input image data (original data).

本実施の形態に係るデジタル複写機の概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of a digital copying machine according to an embodiment. 本実施の形態に係る符号化部の機能ブロックを示した図である。It is the figure which showed the functional block of the encoding part which concerns on this Embodiment. 本実施の形態に係る符号化部における画像処理の手順を示したフローチャートである。It is the flowchart which showed the procedure of the image process in the encoding part which concerns on this Embodiment.

符号の説明Explanation of symbols

1 デジタル複写機
2 プリンタエンジン
3 スキャナ
4 ネットワーク
5 コントローラ
11 プロセスカートリッジ
12 転写ベルト
13 定着装置
14 色書込装置
15 給紙トレイ
16 ラインメモリ
21 RIP部
22 バンドバッファ
23 符号化部
24 復号化部
25 ページメモリ
26 画像処理装置
27 ハードディスク
28 変換部
29 色階調処理部
230 入力画像格納部
231 2値化・領域認識部
232 分離データ格納部
233 代表色判別部
234 色別データ格納部
235 前景色再チェック・領域再抽出部
236 グレー/カラー判別部
237 出力画像データ格納部
DESCRIPTION OF SYMBOLS 1 Digital copier 2 Printer engine 3 Scanner 4 Network 5 Controller 11 Process cartridge 12 Transfer belt 13 Fixing device 14 Color writing device 15 Paper feed tray 16 Line memory 21 RIP part 22 Band buffer 23 Encoding part 24 Decoding part 25 Page Memory 26 Image processing device 27 Hard disk 28 Conversion unit 29 Color gradation processing unit 230 Input image storage unit 231 Binary / area recognition unit 232 Separated data storage unit 233 Representative color discrimination unit 234 Color-specific data storage unit 235 Foreground color re-check Area re-extraction unit 236 Gray / color discrimination unit 237 Output image data storage unit

Claims (7)

画像データを文字部である前景領域と、非文字部である背景領域とに分離する分離手段と、
前記分離手段により分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する色数判別手段と、
前記色数判別手段により判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する圧縮手段と、
前記圧縮手段により圧縮された画像データを所定の格納領域に圧縮方式別に格納する格納手段と、
を備えたことを特徴とする画像処理装置。
Separating means for separating the image data into a foreground region which is a character portion and a background region which is a non-character portion;
Expressing the plane in the foreground area separated by the separating means by a single color image, and determining the number of colors in the foreground area based on the result,
Compression means for compressing data using a predetermined compression method according to the number of colors determined by the number of colors determination means;
Storage means for storing the image data compressed by the compression means in a predetermined storage area for each compression method;
An image processing apparatus comprising:
前記色数判別手段により判別された代表色の色数が所定の数に満たない場合、前記圧縮手段で圧縮処理を行う前に、再度前記前景領域における色数を判別する再判別手段と、
前記再判別手段により判別された色数が、前記色数判別手段により判別された色数よりも多い場合、該当する前景領域を背景領域に切り替える切替手段と、
を備えたことを特徴とする請求項1記載の画像処理装置。
When the number of representative colors determined by the color number determination unit is less than a predetermined number, a re-determination unit that determines the number of colors in the foreground area again before performing compression processing by the compression unit;
Switching means for switching the corresponding foreground area to the background area when the number of colors determined by the redetermination means is greater than the number of colors determined by the color number determination means;
The image processing apparatus according to claim 1, further comprising:
前記色数判別手段および前記再判別手段のうち少なくとも一方は、前記前景画像の代表色を各プレーンに対して1つ判別される代表色情報に基づいて、前記前景領域における色数を判別することを特徴とする請求項1または請求項2記載の画像処理装置。   At least one of the number-of-colors determining unit and the re-determining unit determines the number of colors in the foreground region based on representative color information in which one representative color of the foreground image is determined for each plane. The image processing apparatus according to claim 1, wherein: 前記前景領域におけるプレーン数を複数設定することを特徴とする請求項1、請求項2または請求項3記載の画像処理装置。   4. The image processing apparatus according to claim 1, wherein a plurality of planes in the foreground area are set. 前記色数判別手段および前記再判別手段のうち少なくとも一方は、前記前景領域におけるエッジ部分を除いた色の特徴情報に基づき、前記前景領域における色数を判別することを特徴とする請求項1、請求項3、請求項4または請求項5記載の画像処理装置。   The at least one of the color number determination unit and the re-discrimination unit determines the number of colors in the foreground region based on color feature information excluding an edge portion in the foreground region. The image processing apparatus according to claim 3, 4 or 5. コンピュータを用いて画像データの圧縮処理を行う際に使用される画像処理方法であって、
画像データを文字部である前景領域と、非文字部である背景領域とに分離する第1のステップと、
前記第1のステップにより分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する第2のステップと、
前記第2のステップにより判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する第3のステップと、
前記第3のステップにより圧縮された画像データを所定の格納領域に圧縮方式別に格納する第4のステップと、
を有することを特徴とする画像処理方法。
An image processing method used when compressing image data using a computer,
A first step of separating the image data into a foreground region that is a character portion and a background region that is a non-character portion;
A second step of expressing the plane in the foreground region separated in the first step as a single color image and determining the number of colors in the foreground region based on the result;
A third step of compressing the data using a predetermined compression method according to the number of colors determined in the second step;
A fourth step of storing the image data compressed in the third step in a predetermined storage area for each compression method;
An image processing method comprising:
コンピュータを用いて画像データの圧縮処理を行う際に使用される画像処理プログラムであって、
画像データを文字部である前景領域と、非文字部である背景領域とに分離する分離機能と、
前記分離機能段により分離された前記前景領域におけるプレーンを単色画像で表現し、この結果に基づいて前記前景領域における色数を判別する色数判別機能と、
前記色数判別機能により判別された色数に応じた所定の圧縮方式を用いてデータを圧縮する圧縮機能と、
前記圧縮機能により圧縮された画像データを所定の格納領域に圧縮方式別に格納する格納機能と、
をコンピュータに実現させることを特徴とする画像処理プログラム。
An image processing program used when image data is compressed using a computer,
A separation function that separates image data into a foreground area that is a character part and a background area that is a non-character part;
Representing the plane in the foreground area separated by the separation function stage as a single color image, and determining the number of colors in the foreground area based on the result,
A compression function for compressing data using a predetermined compression method according to the number of colors determined by the color number determination function;
A storage function for storing the image data compressed by the compression function in a predetermined storage area for each compression method;
An image processing program for causing a computer to realize the above.
JP2005155105A 2005-05-27 2005-05-27 Image processing device Expired - Fee Related JP4584771B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005155105A JP4584771B2 (en) 2005-05-27 2005-05-27 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005155105A JP4584771B2 (en) 2005-05-27 2005-05-27 Image processing device

Publications (2)

Publication Number Publication Date
JP2006333175A true JP2006333175A (en) 2006-12-07
JP4584771B2 JP4584771B2 (en) 2010-11-24

Family

ID=37554373

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005155105A Expired - Fee Related JP4584771B2 (en) 2005-05-27 2005-05-27 Image processing device

Country Status (1)

Country Link
JP (1) JP4584771B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290780A (en) * 2008-05-30 2009-12-10 Canon Inc Image processing apparatus, image processing method, program, and storage medium
JP2010171735A (en) * 2009-01-22 2010-08-05 Sharp Corp Method, and apparatus for compressing image, image forming apparatus, computer program and recording medium
US8335373B2 (en) 2009-04-13 2012-12-18 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
US8335375B2 (en) 2009-04-13 2012-12-18 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
US20170039724A1 (en) * 2014-04-16 2017-02-09 Glory Ltd. Method and apparatus for removing character background from colored image

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002165105A (en) * 2000-11-27 2002-06-07 Canon Inc Image processing device, its method, and recording medium
JP2002298083A (en) * 2001-03-30 2002-10-11 Ricoh Co Ltd Character color extracting device and method, recording medium storing computer program for extracting character color, and computer program for extracting character color

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002165105A (en) * 2000-11-27 2002-06-07 Canon Inc Image processing device, its method, and recording medium
JP2002298083A (en) * 2001-03-30 2002-10-11 Ricoh Co Ltd Character color extracting device and method, recording medium storing computer program for extracting character color, and computer program for extracting character color

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009290780A (en) * 2008-05-30 2009-12-10 Canon Inc Image processing apparatus, image processing method, program, and storage medium
JP2010171735A (en) * 2009-01-22 2010-08-05 Sharp Corp Method, and apparatus for compressing image, image forming apparatus, computer program and recording medium
JP4698743B2 (en) * 2009-01-22 2011-06-08 シャープ株式会社 Image compression method, image compression apparatus, image forming apparatus, computer program, and recording medium
US8335373B2 (en) 2009-04-13 2012-12-18 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
US8335375B2 (en) 2009-04-13 2012-12-18 Canon Kabushiki Kaisha Image processing apparatus and control method thereof
US20170039724A1 (en) * 2014-04-16 2017-02-09 Glory Ltd. Method and apparatus for removing character background from colored image
US10083364B2 (en) * 2014-04-16 2018-09-25 Glory Ltd. Method and apparatus for removing character background from colored image

Also Published As

Publication number Publication date
JP4584771B2 (en) 2010-11-24

Similar Documents

Publication Publication Date Title
JP4808267B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
US8374432B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer program product
US8073262B2 (en) Image matching apparatus, image matching method, and image data output processing apparatus
JP5153857B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
US7986837B2 (en) Image processing apparatus, image forming apparatus, image distributing apparatus, image processing method, computer program product, and recording medium
US8254672B2 (en) Image compressing method, image compressing apparatus and image forming apparatus
US8126270B2 (en) Image processing apparatus and image processing method for performing region segmentation processing
US10115011B2 (en) Document type recognition apparatus, image forming apparatus, document type recognition method, and computer program product
JP4496239B2 (en) Image processing method, image processing apparatus, image forming apparatus, image reading apparatus, computer program, and recording medium
JP5541672B2 (en) Apparatus, method, program
US20080031549A1 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, and recording medium
JP2000175031A (en) Image processing unit, image processing method and image input device
US7433082B2 (en) Method of, apparatus for, and computer program for image processing
JP4584771B2 (en) Image processing device
JP3896776B2 (en) Image data encoding apparatus, image data encoding method, image forming apparatus, and recording medium
US11470207B2 (en) Image processing apparatus, image processing system, image processing method, and non-transitory computer-readable storage medium
JP2009060474A (en) Image processing apparatus
JP2008227825A (en) Image processor, image forming apparatus provided with the same, and image processing method
JP2007189275A (en) Image processor
JP7185451B2 (en) Image processing device, image processing method, and program
JP2012134847A (en) Image compression apparatus, image compression method and program
JP4926118B2 (en) Image compression apparatus, image processing apparatus, image forming apparatus, computer program, and recording medium
JP2007251820A (en) Image processing device, image forming apparatus, image processing method, and program for computer to execute the method
US9451127B2 (en) Image processing apparatus and non-transitory computer readable recording medium for encoding halftone image
JP2010288144A (en) Image processing apparatus, control method of the same, program and storage medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070828

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091026

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091224

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100806

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100902

R150 Certificate of patent or registration of utility model

Ref document number: 4584771

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130910

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees