JP4742632B2 - Image processing apparatus, image processing method, and program - Google Patents

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

Info

Publication number
JP4742632B2
JP4742632B2 JP2005078990A JP2005078990A JP4742632B2 JP 4742632 B2 JP4742632 B2 JP 4742632B2 JP 2005078990 A JP2005078990 A JP 2005078990A JP 2005078990 A JP2005078990 A JP 2005078990A JP 4742632 B2 JP4742632 B2 JP 4742632B2
Authority
JP
Japan
Prior art keywords
image
image information
character
color
area
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.)
Expired - Fee Related
Application number
JP2005078990A
Other languages
Japanese (ja)
Other versions
JP2006262258A (en
Inventor
清隆 土渕
俊之 山田
由武 松原
寛 林
のり子 荒井
淳一 清水
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2005078990A priority Critical patent/JP4742632B2/en
Publication of JP2006262258A publication Critical patent/JP2006262258A/en
Application granted granted Critical
Publication of JP4742632B2 publication Critical patent/JP4742632B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像データを圧縮処理する画像処理装置、画像処理方法及びプログラムに関する。   The present invention relates to an image processing apparatus, an image processing method, and a program for compressing image data.

近年、カラープリンタの普及に伴い、例えばビジネス文書にも色文字やカラー写真等が含まれるようになっている。これらのカラーの情報を含む文書は、スキャナや複写機においてデジタル化されてデジタルカラー画像として取り込まれ、編集や、複写、FAX送信等の処理に供されている。   In recent years, with the widespread use of color printers, for example, business documents include color characters and color photographs. A document including such color information is digitized by a scanner or a copying machine and captured as a digital color image, and is used for processing such as editing, copying, and FAX transmission.

しかし、一般にデジタルカラー画像のデータ量は大きく、保存・通信等の処理を行う場合に、ハードウェアやネットワークの処理負担が大きくなる。そこで、JPEG圧縮などの手法によって画像データを圧縮処理し、デジタルカラー画像の保存や通信等に係るデータ量を低減する技術がある。   However, in general, the amount of data of a digital color image is large, and when processing such as storage / communication is performed, the processing load on the hardware and network increases. Accordingly, there is a technique for compressing image data by a technique such as JPEG compression to reduce the amount of data related to storage or communication of digital color images.

このとき、圧縮率をさらに向上させるため、スキャナ等から読み込まれた画像がデジタルカラー画像であるのか、モノトーンの画像であるのかを判断し、モノトーンの画像であれば、カラー情報を破棄して処理する技術も考えられている。具体的な例として、読み込まれた画像に有彩色が含まれているか否かを判定し、有彩色が含まれる場合には、当該読み込まれた画像をデジタルカラー画像であるとして圧縮処理を行い、有彩色が含まれない場合には、モノトーン画像として、ランレングス圧縮などの方法で圧縮処理を行うものがある。   At this time, in order to further improve the compression rate, it is determined whether the image read from the scanner or the like is a digital color image or a monotone image, and if it is a monotone image, the color information is discarded and processed. The technology to do is also considered. As a specific example, it is determined whether or not a chromatic color is included in the read image, and when the chromatic color is included, the read image is subjected to compression processing as a digital color image, When a chromatic color is not included, some monotone images are subjected to compression processing by a method such as run length compression.

さらに、こうした従来の画像処理装置には、読み取られた画像を、文字領域と写真領域とに分離・分割し、写真領域に有彩色が含まれているか否かを判断し、写真領域に有彩色が含まれている場合は、当該読み込まれた画像をデジタルカラー画像であるとして圧縮処理を行い、有彩色が含まれない場合には、モノトーン画像として圧縮処理を行うものもある。   Further, such a conventional image processing apparatus separates and divides the read image into a character area and a photographic area, determines whether the photographic area contains a chromatic color, and determines whether the photographic area includes a chromatic color. Is included, the read image is compressed as a digital color image, and if a chromatic color is not included, the image is compressed as a monotone image.

なお、特許文献1には、かかる画像処理装置を搭載し、該画像処理装置によって生成された画像データを出力するデジタルカラー複写機が開示されている。
特開平6−225167号公報
Patent Document 1 discloses a digital color copier equipped with such an image processing apparatus and outputting image data generated by the image processing apparatus.
JP-A-6-225167

しかしながら、上記従来例の画像処理装置では、分離・分割された各領域(文字、写真の各領域)のすべてについて共通に、カラーとして扱うか、モノトーンとして扱うかが定められる。そのため、一部の写真領域にのみ有彩色が含まれる場合であっても、画像全体がカラーの画像データとして扱われて圧縮処理される。このため、圧縮効率が劣化する場合があった。   However, in the above-described conventional image processing apparatus, it is determined in common that all the separated and divided areas (character and photo areas) are handled as color or monotone. Therefore, even when a chromatic color is included only in a part of the photographic area, the entire image is treated as color image data and compressed. For this reason, compression efficiency may deteriorate.

一方、特許文献1の例では、文字領域に有彩色が含まれる場合、つまり、色文字が含まれる場合であっても、写真部分がモノトーンであると、文字領域と写真領域との双方をモノトーンの画像データとして圧縮処理が行われる。そのため、原稿の作成者が文章中の文字列の一部を強調するために、その一部分の色を変えているような場合であっても、その色が失われる結果、原稿の作成者の意図が反映されない画像に変化してしまうという問題点があった。   On the other hand, in the example of Patent Document 1, when a chromatic color is included in a character area, that is, even when a color character is included, if the photographic part is monotone, both the character area and the photographic area are monotone. The compression processing is performed as the image data. Therefore, even if the manuscript creator changes the color of a part of the text in order to emphasize a part of the character string in the sentence, the color is lost. There is a problem that the image is changed to an image that is not reflected.

本発明は、上記実情に鑑みてなされたもので、元の画像に含まれる色情報を保持しつつ、圧縮効率の向上を図ることのできる画像処理装置を提供することを、その目的の一つとする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus capable of improving compression efficiency while retaining color information included in an original image. To do.

上記従来例の問題点を解決するための本発明は、画像処理装置であって、処理対象となる画像情報を分離して、複数の画像要素情報を生成する手段と、前記画像要素情報の各々について、カラー画像として圧縮を行うか否かを判断する判断手段と、前記判断の結果に基づいて、画像要素情報の各々の圧縮処理を行う手段と、を含むことを特徴としている。   The present invention for solving the problems of the above conventional example is an image processing apparatus, which separates image information to be processed and generates a plurality of image element information, and each of the image element information And a means for determining whether or not to perform compression as a color image, and a means for performing compression processing of each of the image element information based on the result of the determination.

このように、処理の対象となる画像を画像要素に分離した上で、画像要素ごとにカラー又はモノトーンのいずれかの圧縮処理が行われる。つまり、画像要素の一部がカラー画像であり、他の画像要素がモノトーンである場合、それぞれの画像要素がカラーであるか否かに応じて、圧縮処理の方法を変更している。これにより、元の画像に含まれる色情報を保持しつつ、圧縮効率の向上を図ることができる。   As described above, after the image to be processed is separated into image elements, either color or monotone compression processing is performed for each image element. That is, when a part of the image elements is a color image and the other image elements are monotone, the compression processing method is changed depending on whether or not each image element is a color. Thereby, it is possible to improve the compression efficiency while retaining the color information included in the original image.

またここで、前記判断手段は、前記複数の画像要素情報のうち所定条件を満足する画像要素情報については、モノトーン画像として圧縮を行うべく判断する、こととしてもよい。   Here, the determination unit may determine that image element information satisfying a predetermined condition among the plurality of image element information is to be compressed as a monotone image.

さらに、前記処理対象となる画像情報に含まれる有彩色の画素数を、全体有彩画素数として計数する手段と、前記画像要素情報のうち、注目画像要素情報に含まれる有彩色の画素数を、注目部分有彩画素数として計数する手段と、をさらに含み、前記判断手段は、前記計数された全体有彩画素数と注目部分有彩画素数とに基いて、注目画像要素情報以外の画像要素情報をカラー画像として圧縮するか否かを判断する、こととしてもよい。   Further, a means for counting the number of chromatic pixels included in the image information to be processed as the total number of chromatic pixels, and the number of chromatic pixels included in the target image element information among the image element information. And a means for counting as the number of attention partial chromatic pixels, wherein the determination means is an image other than the attention image element information based on the counted total number of chromatic pixels and the number of attention partial chromatic pixels. It may be determined whether or not the element information is compressed as a color image.

これにより、後述の穴埋め処理結果を一旦ページメモリに格納することなく、注目画像要素以外の画像要素について、カラー画像として圧縮するか否かの判断を行うことができ、メモリ資源の節約および、処理負担の軽減ができる。   As a result, it is possible to determine whether or not image elements other than the image element of interest are compressed as color images without temporarily storing the below-described hole filling process results in the page memory, thereby saving memory resources and processing. The burden can be reduced.

ここで、前記判断手段は、文字形状を構成する画素と前記文字形状の背景となる背景画像とについて各々カラー画像として圧縮を行うか否かを判断する、こととしてもよい。   Here, the determination unit may determine whether or not to perform compression as a color image for each of the pixels forming the character shape and the background image serving as the background of the character shape.

また本発明の一態様に係る画像処理方法は、処理対象となる画像情報を分離して、複数の画像要素情報を生成し、前記画像要素情報の各々について、カラー画像として圧縮を行うか否かを判断し、前記判断の結果に基づいて、画像要素情報の各々の圧縮処理を行う、ことを特徴としている。   Also, an image processing method according to an aspect of the present invention separates image information to be processed, generates a plurality of pieces of image element information, and determines whether or not each of the image element information is compressed as a color image. And compressing each of the image element information based on the result of the determination.

さらに本発明の別の態様に係るプログラムは、コンピュータに、処理対象となる画像情報を分離して、複数の画像要素情報を生成する手順と、前記画像要素情報の各々について、カラー画像として圧縮を行うか否かを判断する手順と、前記判断の結果に基づいて、画像要素情報の各々の圧縮処理を行う手順と、を実行させることを特徴としている。   Furthermore, a program according to another aspect of the present invention includes a computer that separates image information to be processed and generates a plurality of pieces of image element information, and compresses each of the image element information as a color image. It is characterized in that a procedure for determining whether or not to perform and a procedure for performing compression processing of each of the image element information based on the result of the determination are characterized.

本発明の第1の実施の形態に係る画像処理装置について、次に図面を参照しながら説明する。本実施の形態に係る画像処理装置1は、図1に示すように、処理制御部11と、記憶部12と、画像入力部13と、出力部14と、操作部15とを含んで構成されている。   Next, an image processing apparatus according to a first embodiment of the present invention will be described with reference to the drawings. As shown in FIG. 1, the image processing apparatus 1 according to the present embodiment includes a processing control unit 11, a storage unit 12, an image input unit 13, an output unit 14, and an operation unit 15. ing.

処理制御部11は、例えばCPU等のプログラム制御デバイスであり、記憶部12に格納されているプログラムに従って動作する。本実施の形態では、この処理制御部11は、画像入力部13から入力される画像情報を処理対象として、当該画像情報に所定の画像処理を行い、処理後の画像データを出力部14に出力している。   The processing control unit 11 is a program control device such as a CPU, and operates according to a program stored in the storage unit 12. In the present embodiment, the processing control unit 11 sets the image information input from the image input unit 13 as a processing target, performs predetermined image processing on the image information, and outputs the processed image data to the output unit 14. is doing.

記憶部12は、RAMなどのメモリ素子や、ハードディスク等のディスクデバイス等で実現できる。この記憶部12は、処理制御部11によって実行されるプログラムを格納している。また、この記憶部12は、処理制御部11の処理対象となる画像情報などを格納し、処理制御部11のワークメモリとしても動作する。   The storage unit 12 can be realized by a memory element such as a RAM or a disk device such as a hard disk. The storage unit 12 stores a program executed by the processing control unit 11. Further, the storage unit 12 stores image information and the like to be processed by the processing control unit 11, and also operates as a work memory of the processing control unit 11.

画像入力部13は、例えばスキャナ装置であり、紙媒体等に固定されている画像を光学的に読み込んで、処理対象となる画像情報を出力する。一般に、この画像入力部13が出力する画像情報では、各画素の値を、RGB(赤、青、緑)の色空間で表現して出力する。   The image input unit 13 is a scanner device, for example, and optically reads an image fixed on a paper medium or the like and outputs image information to be processed. In general, in the image information output by the image input unit 13, the value of each pixel is expressed in an RGB (red, blue, green) color space and output.

出力部14は、例えばネットワークに接続された端末やプリンタなどであり、処理制御部11から入力された画像データをファイルとして記憶し必要に応じてネットワークに接続されたPC等に転送したり、紙媒体などに形成して出力する。   The output unit 14 is, for example, a terminal or a printer connected to the network, stores the image data input from the processing control unit 11 as a file, and transfers it to a PC or the like connected to the network as necessary. It is formed on a medium and output.

操作部15は、例えばキー入力デバイスであり、ユーザーの指示操作の入力を受けて、処理制御部11に当該指示操作の内容を出力する。   The operation unit 15 is a key input device, for example, and outputs the contents of the instruction operation to the processing control unit 11 in response to an input of a user instruction operation.

次に、処理制御部11における具体的な処理の例について説明する。本実施の形態では、処理制御部11が、処理対象となる画像情報を、複数の画像要素情報に分離し、画像要素情報ごとにモノトーン画像又はカラー画像のいずれかの画像として圧縮処理を施す。   Next, a specific example of processing in the processing control unit 11 will be described. In the present embodiment, the processing control unit 11 separates image information to be processed into a plurality of pieces of image element information, and performs compression processing as either a monotone image or a color image for each piece of image element information.

以下では、処理制御部11が、入力される画像情報から、画像要素情報として文字を含む文字領域と、絵柄を含む背景領域とを分離して処理するものとする。そして処理制御部11は、文字領域と背景領域とを分離した後で、文字領域については文字の色に応じてグループ化し、二値化処理して圧縮処理に供する。また背景領域については、有彩色の画素の有無が判定され、背景領域に有彩色の画素が含まれないと判定された場合には、モノトーン画像(グレイスケールの画像)として圧縮される。一方、背景領域に有彩色の画素が含まれると判定された場合には、背景領域についてカラー画像としての圧縮処理が行われる。こうして、それぞれ、カラー又はモノトーンのいずれか選択された性状の画像として圧縮された、文字領域の画像要素情報と背景領域の画像要素情報とを含めて、一つの圧縮画像情報を生成する。   In the following description, it is assumed that the processing control unit 11 processes a character area including characters as image element information and a background area including a pattern separately from input image information. Then, after separating the character region and the background region, the processing control unit 11 groups the character regions according to the color of the characters, binarizes them, and uses them for compression processing. For the background area, the presence / absence of a chromatic pixel is determined. If it is determined that the background area does not include a chromatic pixel, the background area is compressed as a monotone image (grayscale image). On the other hand, when it is determined that the background area includes chromatic pixels, the background area is compressed as a color image. In this way, one piece of compressed image information is generated including the image element information of the character area and the image element information of the background area, each compressed as an image having a property selected from either color or monotone.

つまり、各画像要素情報について効率の高い圧縮処理が選択的に適用されることとなり、また、カラーについてはその情報が保持されることとなる。これにより、元の画像に含まれる色情報を保持しつつ、圧縮効率の向上を図ることができる。   That is, highly efficient compression processing is selectively applied to each piece of image element information, and information about colors is retained. Thereby, it is possible to improve the compression efficiency while retaining the color information included in the original image.

次にこの処理制御部11の処理について、図2を参照しながら、より詳細に説明する。図2は、処理制御部11で実行される画像処理に係る機能ブロック図である。   Next, the process of this process control part 11 is demonstrated in detail, referring FIG. FIG. 2 is a functional block diagram relating to image processing executed by the processing control unit 11.

図2に示すように、処理制御部11によって実行される画像処理は、機能的に、色変換部21と、前処理部22と、連結画素抽出部23と、文字領域分離部24と、文字領域同一色分離部25と、二値化圧縮処理部26と、背景画像穴埋処理部27と、背景画像カラー判定部28と、背景画像圧縮処理部29と、ファイル合成部30とを含んで構成されている。   As shown in FIG. 2, the image processing executed by the processing control unit 11 functionally includes a color conversion unit 21, a preprocessing unit 22, a connected pixel extraction unit 23, a character region separation unit 24, and a character. The same color separation unit 25, binarization compression processing unit 26, background image filling processing unit 27, background image color determination unit 28, background image compression processing unit 29, and file composition unit 30 are included. It is configured.

本実施の形態の処理制御部11は、画像入力部13から入力される、読み取られた画像情報を、記憶部12にまず格納する。そして、図2の画像処理を開始する。   The processing control unit 11 according to the present embodiment first stores the read image information input from the image input unit 13 in the storage unit 12. Then, the image processing of FIG. 2 is started.

ここで色変換部21は、記憶部12に保持されている画像情報を読み出し、当該画像情報の各画素の値の色空間を変換する。ここでは読み取られた画像情報がRGB色空間で表現されているので、後の画像処理のため、輝度成分を、独立の成分として分離した色空間として、例えばYCbCr(輝度成分と色差成分とからなる色空間)に変換して出力する。なお、処理の対象となる画像情報において、輝度成分が予め独立した成分として含まれる色空間が用いられている場合などでは、この色変換部21の処理は必ずしも必要ではない。   Here, the color conversion unit 21 reads out the image information held in the storage unit 12 and converts the color space of the value of each pixel of the image information. Here, since the read image information is expressed in the RGB color space, for later image processing, for example, YCbCr (consisting of a luminance component and a color difference component) is used as a color space in which the luminance component is separated as an independent component. Color space) and output. Note that the processing of the color conversion unit 21 is not necessarily required when the image information to be processed uses a color space in which the luminance component is included as an independent component in advance.

前処理部22は、色変換部21が出力する画像情報について、ノイズを検出して、当該検出したノイズを原稿画像データから除去する処理(ノイズ除去処理)や、色変換部21の画像情報の輪郭を明確にする処理(エッジ強調処理)等のフィルタ処理を行う。なお、この前処理部22は、フィルタ処理後の画像情報を、記憶部12内に確保したページメモリに格納する。   The preprocessing unit 22 detects noise in the image information output from the color conversion unit 21 and removes the detected noise from the document image data (noise removal processing). Filter processing such as processing for clarifying the contour (edge enhancement processing) is performed. The preprocessing unit 22 stores the filtered image information in a page memory secured in the storage unit 12.

連結画素抽出部23は、記憶部12に保持されている画像情報から連結画素群(有意な画素の連続している部分)を抽出する。また、この連結画素抽出部23は、抽出した各連結画素群について、互いに異なるラベル識別子を関連付ける。この処理は、いわゆるラベリング処理と呼ばれる処理であり、広く知られた処理であるので、ここでの詳細な説明を省略する。本実施の形態では、連結画素抽出部23が、連結画素群を特定する情報(例えば連結画素群に含まれる各画素の座標値)と、ラベル識別子とを関連付けて、連結画素データとして記憶部12に格納する。   The connected pixel extracting unit 23 extracts a connected pixel group (a portion in which significant pixels are continuous) from the image information held in the storage unit 12. The connected pixel extraction unit 23 associates different label identifiers with each extracted connected pixel group. This process is a process called a so-called labeling process, and is a widely known process, and a detailed description thereof will be omitted here. In the present embodiment, the connected pixel extraction unit 23 associates information for specifying a connected pixel group (for example, coordinate values of each pixel included in the connected pixel group) and a label identifier, and stores the connected pixel data as the storage unit 12. To store.

文字領域分離部24は、記憶部12に格納された連結画素データを参照しながら、当該連結画素データに含まれる連結画素群を順次読み出して、連結画素群のうち、文字の画像に係る連結画素群を特定する。ここで連結画素群が文字の画像に係るものか否かの判断は、例えば、連結画素群の外接矩形を検出し、そのサイズ(高さや幅、面積等)に基づいて行う。つまり、この方法は、画像情報に含まれる文字のサイズが6ポイントから50ポイント程度のサイズであるとの前提のもとに、当該文字のサイズに対応するサイズの外接矩形を選択するものである。本実施の形態における判断は、これに限られるものではなく、外接矩形の面積と連結画素群部分の面積との比や、連結画素群の周囲長等に基づいて、文字であるか否かを判断してもよい。   The character region separation unit 24 sequentially reads out the connected pixel groups included in the connected pixel data while referring to the connected pixel data stored in the storage unit 12, and among the connected pixel groups, the connected pixels related to the character image. Identify the group. Here, the determination of whether or not the connected pixel group is related to a character image is performed based on, for example, the circumscribed rectangle of the connected pixel group and the size (height, width, area, etc.). In other words, this method selects a circumscribed rectangle having a size corresponding to the size of the character on the assumption that the size of the character included in the image information is about 6 to 50 points. . The determination in the present embodiment is not limited to this, and based on the ratio between the area of the circumscribed rectangle and the area of the connected pixel group portion, the perimeter of the connected pixel group, etc., whether or not the character is a character is determined. You may judge.

文字領域分離部24は、連結画素群の外接矩形のうち、文字領域に係るものを特定し、当該外接矩形の左上隅及び右下隅の位置座標など、文字領域の位置を特定する座標情報(処理対象の画像情報上の座標情報)を、文字領域座標データとして生成する。また、この文字領域分離部24は、処理対象の画像情報のうち、文字領域座標データで特定される領域内のビットマップデータを、文字の形状を特定する文字形状データとして抽出する。そして、文字領域分離部24は、これら文字形状データと、対応する文字領域座標データとを関連付けたエントリーを、文字領域データベースのエントリーとして記憶部12に格納する。   The character region separation unit 24 identifies the circumscribed rectangles of the connected pixel group that relate to the character region, and coordinates information (processing) that identifies the position of the character region, such as the position coordinates of the upper left corner and the lower right corner of the circumscribed rectangle. Coordinate information on target image information) is generated as character area coordinate data. Further, the character region separation unit 24 extracts bitmap data in the region specified by the character region coordinate data from the image information to be processed as character shape data for specifying the character shape. Then, the character region separation unit 24 stores an entry in which the character shape data is associated with the corresponding character region coordinate data in the storage unit 12 as an entry in the character region database.

文字領域同一色分離部25は、記憶部12に格納した文字領域データベースから、文字領域座標データを順次読み出す。そして、処理対象となった画像情報上で、読み出した文字座標データに対応する領域のデータ部分を参照し、当該データ部分に含まれる画素値について、代表値を決定する。すなわち文字領域同一色分離部25は、各文字を構成する画素群ごとに、代表色を決定する。   The character area identical color separation unit 25 sequentially reads character area coordinate data from the character area database stored in the storage unit 12. Then, on the image information to be processed, the data portion of the area corresponding to the read character coordinate data is referred to, and a representative value is determined for the pixel value included in the data portion. That is, the character area identical color separation unit 25 determines a representative color for each pixel group constituting each character.

ここで代表色(代表値)の決定は、次のようにして行う。文字領域同一色分離部25は、例えば文字を構成する画素の階調値の平均値を演算して、当該平均値を代表値としてもよい。ここで平均値は、文字領域に含まれる有意画素(文字を構成している画素)の階調値を全て加算し、その合計値を、文字を構成する画素数で除して演算する。なお、ここでは平均値を用いる例について述べたが、この他の統計値(例えば最頻値)を用いる方法など、他の方法で代表値を演算してもよい。   Here, the representative color (representative value) is determined as follows. For example, the character region identical color separation unit 25 may calculate an average value of gradation values of pixels constituting a character and use the average value as a representative value. Here, the average value is calculated by adding all the gradation values of significant pixels (pixels constituting the character) included in the character area and dividing the total value by the number of pixels constituting the character. Although the example using the average value has been described here, the representative value may be calculated by another method such as a method using another statistical value (for example, the mode value).

文字領域同一色分離部25はこうして、読み出した文字座標データに対応する領域内の文字について代表色を決定し、当該代表色の情報を、当該読み出した文字座標データを含むエントリーに追記して、文字領域データベースに追加する。   In this way, the character region same color separation unit 25 determines a representative color for the character in the region corresponding to the read character coordinate data, and adds information on the representative color to the entry including the read character coordinate data, Add to the character space database.

さらに文字領域同一色分離部25は、文字領域データベースに含まれるすべての文字領域座標データについて、それによって画定される領域内の文字の代表色を決定した後、次の処理を行う。すなわち、文字領域同一色分離部25は、文字領域データベースを参照して、各エントリーを、それぞれに含まれる代表値の差が所定の範囲以内にあるものごとにグループ化する。例えば、文字領域同一色分離部25は、文字領域データベースに含まれるエントリーの一つを注目エントリーとして選択し、当該注目エントリーに固有のグループ識別子を関連付けて記憶部12に格納する。また、この注目エントリーに含まれる代表値(注目代表値)を取得しておく。そして注目エントリー以外のエントリーを順次、比較対象エントリーとして選択し、比較対象エントリーに含まれる代表値(対象代表値)を取得しながら、注目代表値と、対象代表値との差を演算して、その差が所定範囲未満である場合は、注目エントリーに関連付けたものと同じグループ識別子を、比較対象エントリーに関連付けて記憶部12に格納する。以下、グループ識別子が未だ関連づけられていないエントリーの一つを注目エントリーとして選択しながら、グループ識別子が関連づけられていないエントリーがなくなるまで、上記処理を繰り返して行う。   Further, the character area identical color separation unit 25 determines the representative color of the character in the area defined by all the character area coordinate data included in the character area database, and then performs the following process. That is, the character area identical color separation unit 25 refers to the character area database and groups the entries according to the difference between the representative values included in each entry within a predetermined range. For example, the character region identical color separation unit 25 selects one entry included in the character region database as a target entry, and associates a group identifier unique to the target entry and stores it in the storage unit 12. Further, the representative value (remarked representative value) included in this attention entry is acquired in advance. Then, entries other than the target entry are sequentially selected as comparison target entries, and while calculating the representative value (target representative value) included in the comparison target entry, the difference between the target representative value and the target representative value is calculated, When the difference is less than the predetermined range, the same group identifier as that associated with the target entry is stored in the storage unit 12 in association with the comparison target entry. Hereinafter, the above process is repeated until there is no entry associated with the group identifier while selecting one entry with no group identifier associated as the target entry.

この処理により、画像入力部13での読取時に各画素の階調値にばらつきが生じたとしても、そのばらつきを抑制できる。   By this processing, even if the gradation value of each pixel varies during reading by the image input unit 13, the variation can be suppressed.

二値化圧縮処理部26は、文字領域データベースから各エントリーを順次読み出す。そして、読み出したエントリーに含まれる文字形状データ(ビットマップデータ)を二値化処理する。これにより、文字形状データに含まれる、文字を構成する画素(有意画素)を黒色の画素とし、それ以外の画素を白画素とする。   The binarization compression processing unit 26 sequentially reads each entry from the character area database. Then, the character shape data (bitmap data) included in the read entry is binarized. As a result, the pixels (significant pixels) included in the character shape data and constituting the character are black pixels, and the other pixels are white pixels.

さらに、この二値化圧縮処理部26は、二値化後の文字形状データをラスタスキャン順に(ビットマップの左上隅から、左から右へと1ラインずつ走査し、下のラインに移行して走査を繰り返す走査順序で)走査しながら、二値化した文字形状データに対してMMR(Modified Modified Read)などの手法でランレングス圧縮する。二値化圧縮処理部26は、このランレングス圧縮後の圧縮文字形状データを、その元となった文字形状データに上書きして格納する。   Further, the binarization compression processing unit 26 scans the binarized character shape data in a raster scan order (from the upper left corner of the bitmap one line at a time from left to right, and moves to the lower line). While scanning, the character shape data binarized is run-length compressed by a technique such as MMR (Modified Modified Read) while scanning. The binarized compression processing unit 26 stores the compressed character shape data after the run length compression by overwriting the original character shape data.

これにより、記憶部12には、処理対象となった画像情報に含まれる文字情報ごとに、圧縮文字形状データと、その文字領域座標データと、代表値の情報とを関連付けたエントリーが格納されていることになる。   Thus, the storage unit 12 stores an entry that associates the compressed character shape data, the character region coordinate data, and the representative value information for each character information included in the image information to be processed. Will be.

背景画像穴埋処理部27は、処理対象となった画像情報のうち、文字領域分離部24が生成した各文字領域内の有意画素に対応する画素の値を、当該画素近傍であって、文字領域内の有意画素に対応する画素以外の画素値に基づいて設定する。例えば、背景画像穴埋処理部27は、処理対象となった画像情報に含まれる各画素をスキャンライン順に走査しながら順次、注目画素として選択する。そして、選択した注目画素についてそれが、文字領域分離部24が生成した各文字領域内の有意画素に対応する画素となっているか否かを調べ、なっていない場合、注目画素の画素値を、直前値として記憶部12に保持させる。また、注目画素が、文字領域分離部24の生成した各文字領域内の有意画素に対応する画素となっている場合は、注目画素の値を記憶部12に保持させておいた直前値で置き換える。   The background image embedding processing unit 27 sets the pixel value corresponding to the significant pixel in each character region generated by the character region separation unit 24 in the image information to be processed, in the vicinity of the pixel, It sets based on pixel values other than the pixel corresponding to the significant pixel in an area | region. For example, the background image filling processor 27 sequentially selects each pixel included in the image information to be processed as a target pixel while scanning each pixel in the scan line order. Then, it is checked whether or not the selected target pixel is a pixel corresponding to a significant pixel in each character region generated by the character region separation unit 24. If not, the pixel value of the target pixel is It is stored in the storage unit 12 as the immediately preceding value. If the target pixel is a pixel corresponding to a significant pixel in each character region generated by the character region separation unit 24, the value of the target pixel is replaced with the immediately preceding value held in the storage unit 12. .

これにより、処理対象となった画像情報のうち、文字形状を構成する画素が、その近傍の背景画像の画素値に置き換えられる。そして背景画像穴埋処理部27は、この置き換え後の画像情報を、背景領域の画像要素情報として記憶部12内に確保したページメモリ(前処理後の画像を格納したページメモリとは別途確保したページメモリ、以下区別のため第2ページメモリと呼ぶ)に格納する。   Thereby, the pixel which comprises a character shape is replaced with the pixel value of the background image of the vicinity among the image information used as the process target. Then, the background image embedding processing unit 27 secures the image information after the replacement in the page memory secured in the storage unit 12 as the image element information of the background area (separately from the page memory storing the pre-processed image). Page memory, hereinafter referred to as second page memory for distinction).

この処理を行うと、例えば文字の部分に有彩色が含まれ、背景画像にはモノトーンの画素のみが含まれる場合に、文字を構成する有彩色は、その近傍のモノトーンの画素値で上書きされ、背景領域がモノトーンの画素のみからなる画像となる。   When this process is performed, for example, when a chromatic color is included in the character portion and the background image includes only monotone pixels, the chromatic color constituting the character is overwritten with the monotone pixel values in the vicinity thereof, The background area is an image composed of only monotone pixels.

背景画像カラー判定部28は、第2ページメモリに保持されている背景領域の画像について、有彩色の画素があるか否かを調べる。そして背景画像カラー判定部28は、有彩色の画素があれば、背景領域はカラー画像であると判定し、その判定結果を背景画像圧縮処理部29に出力する。また、有彩色の画素がなければ、背景領域はモノトーン画像であると判定し、その判定結果を背景画像圧縮処理部29に出力する。   The background image color determination unit 28 checks whether or not there is a chromatic pixel in the background area image held in the second page memory. If there is a chromatic pixel, the background image color determination unit 28 determines that the background region is a color image, and outputs the determination result to the background image compression processing unit 29. If there is no chromatic color pixel, the background area is determined to be a monotone image, and the determination result is output to the background image compression processing unit 29.

背景画像カラー判定部28は、また、背景画像穴埋処理部27から入力される背景領域の画像に含まれる有彩色の画素の数をカウントし、有彩色の画素の数が、予め定めた閾値より小さい場合には、背景領域の画像がモノトーン画像であると判定するようにしてもよい。   The background image color determination unit 28 also counts the number of chromatic pixels included in the background region image input from the background image filling processing unit 27, and the number of chromatic pixels is set to a predetermined threshold value. If it is smaller, it may be determined that the image in the background area is a monotone image.

なお、ここまでの説明における、有彩色であるか否かの判断は例えば次のようにして行う。すなわち、画素の色差成分(Cb、Cr)を検出し、色差成分双方の階調値が、その取り得る範囲の中間値(例えば、色差成分が8ビットであれば、中間値は128)であるか否かを調べ、中間値である場合に、その画素はモノトーンであると判断し、そうでない場合に有彩色であると判定するのである。この場合において色差成分にノイズや誤差がある場合に配慮して、色差成分双方の階調値が中間値を含む所定の範囲(例えば、125から131までなど)にある場合に、その画素がモノトーンの画素であると判定するようにしてもよい。   In the description so far, the determination of whether or not the color is a chromatic color is performed as follows, for example. That is, the color difference component (Cb, Cr) of the pixel is detected, and the gradation value of both the color difference components is an intermediate value within the possible range (for example, if the color difference component is 8 bits, the intermediate value is 128). If it is an intermediate value, it is determined that the pixel is a monotone, and if not, it is determined that the pixel is a chromatic color. In this case, in consideration of the case where there is noise or an error in the color difference component, when the gradation value of both color difference components is in a predetermined range including an intermediate value (for example, from 125 to 131), the pixel is monotone. You may make it determine with it being a pixel of this.

背景画像圧縮処理部29は、背景画像カラー判定部28から入力される判定結果を参照し、当該判定結果に応じて予め定められた手法で、第2ページメモリに保持されている背景領域の画像に対して圧縮処理を行い、圧縮背景画像データを生成する。例えば、背景領域の画像がモノトーン画像であるとの判定結果が入力された場合は、背景領域の画像の各画素について、輝度成分(Y)について多値の圧縮処理を行う。また、背景領域の画像がカラー画像であるとの判定結果が入力された場合には、背景領域の画像の各画素について、輝度成分(Y)と、色差成分(Cb、Cr)との双方について圧縮処理を行う。この場合の圧縮手法としては、例えば、JPEG圧縮などの手法を用いる。   The background image compression processing unit 29 refers to the determination result input from the background image color determination unit 28, and uses the method determined in advance according to the determination result to store the image of the background area held in the second page memory. Is compressed to generate compressed background image data. For example, when a determination result that the background area image is a monotone image is input, multivalue compression processing is performed on the luminance component (Y) for each pixel of the background area image. When a determination result that the background area image is a color image is input, for each pixel of the background area image, both the luminance component (Y) and the color difference components (Cb, Cr) are input. Perform compression processing. As a compression method in this case, for example, a method such as JPEG compression is used.

ファイル合成部30は、圧縮背景画像データと圧縮文字領域データとを含む、一つの圧縮画像データを生成して、出力部14に出力する。なお、ファイル合成部30は、この圧縮画像データに、外部からのデータの読み出し指示に応じて、圧縮背景画像データを展開して背景領域の画像をビットマップとして生成させる指示と、圧縮文字領域データを展開して、文字領域データを再現し、文字形状データを展開して、代表色に着色し、文字を描画させる指示を含ませてもよい。これにより、プリンタへの印刷も可能となる。   The file composition unit 30 generates one compressed image data including the compressed background image data and the compressed character area data, and outputs it to the output unit 14. The file compositing unit 30 expands the compressed background image data and generates an image of the background area as a bitmap in response to an external data read instruction, and the compressed character area data. May be included to reproduce the character area data, expand the character shape data, color the representative color, and draw the character. Thereby, printing to a printer is also possible.

次に、本実施形態の画像処理装置1の動作について説明する。以下の説明において処理対象とする画像は、図3に示すように、カラーの文字列L1(ここでは赤)と、黒の文字列L2と、モノトーンの絵柄部Pとから構成されているものとする。   Next, the operation of the image processing apparatus 1 of this embodiment will be described. In the following description, as shown in FIG. 3, the image to be processed is composed of a color character string L1 (red here), a black character string L2, and a monotone pattern portion P. To do.

本実施の画像処理装置1は、この図3に示した画像の画像情報について、文字領域の外接矩形を抽出し、その代表色が共通する文字ごとに共通するグループ識別子を付与する。なお、図4(a),(b)では、共通するグループ識別子が付与された文字領域の全体を含む外接矩形(図4(a),(b)において破線で示す)を図示している。   The image processing apparatus 1 of the present embodiment extracts a circumscribed rectangle of the character area from the image information of the image shown in FIG. 3, and assigns a common group identifier to each character having a common representative color. 4A and 4B illustrate a circumscribed rectangle (indicated by a broken line in FIGS. 4A and 4B) that includes the entire character area to which a common group identifier is assigned.

また、処理対象となった(図3の)画像情報から文字領域に含まれる有意画素を除去し(図4(c))、さらに穴埋処理を行って、背景領域の画像を生成する(図4(d))。   Further, significant pixels included in the character area are removed from the image information (FIG. 3) to be processed (FIG. 4 (c)), and a hole filling process is performed to generate an image of the background area (FIG. 4). 4 (d)).

ここで画像処理装置1は、各文字領域、背景領域のそれぞれについて、カラー画像であるか、モノトーン画像であるかを調べる。この図3の例では、図4(a)に示した文字列L1については、赤色であるので、カラー画像であると判断する。また図4(b)に示した文字列L2については黒色であるので、モノトーン画像であると判断する。さらに、図4(d)に示した背景領域については、本例ではモノトーンであるので、モノトーン画像であると判断する。   Here, the image processing apparatus 1 checks whether each of the character area and the background area is a color image or a monotone image. In the example of FIG. 3, since the character string L1 shown in FIG. 4A is red, it is determined to be a color image. Since the character string L2 shown in FIG. 4B is black, it is determined to be a monotone image. Furthermore, since the background area shown in FIG. 4D is monotone in this example, it is determined to be a monotone image.

そこで画像処理装置1は、背景領域についてはモノトーン画像として多値圧縮処理を行う。また、文字領域について、黒色の文字列L2を含む領域については二値化して圧縮処理を施すとともに、対象領域データベースの代表色(黒)を圧縮後のデータと関連付ける。さらに、赤色の文字列L1を含む領域に対しても同様に、二値化して圧縮処理を施すとともに、対象領域データベースの代表色(赤)を圧縮後のデータと関連付ける。   Therefore, the image processing apparatus 1 performs multi-value compression processing on the background area as a monotone image. Further, regarding the character region, the region including the black character string L2 is binarized and subjected to compression processing, and the representative color (black) of the target region database is associated with the compressed data. Further, the region including the red character string L1 is similarly binarized and subjected to compression processing, and the representative color (red) of the target region database is associated with the compressed data.

なお、ここまでの説明では、文字領域分離部24が、文字領域座標データと文字形状データを生成した後、文字領域同一色分離部25が各文字領域ごとにその代表色に応じてグループ分けしているが、これに限られるものではない。例えば、文字領域座標データと文字形状データを生成した後、処理対象となった、元の画像情報を参照して、文字領域のカラー判定を行い、文字領域に複数の文字色が含まれると判定された場合に、各文字領域の画像を代表色によってグループ分けしてもよい。   In the above description, after the character region separation unit 24 generates the character region coordinate data and the character shape data, the character region identical color separation unit 25 groups each character region according to the representative color. However, it is not limited to this. For example, after generating the character area coordinate data and the character shape data, the color of the character area is determined with reference to the original image information to be processed, and it is determined that the character area includes a plurality of character colors. In this case, the image of each character area may be grouped by the representative color.

また、ここでは、文字領域と背景領域とに分離する例について述べたが、文字領域・絵柄領域・背景領域の3つの層に分離しても構わない。ここで絵柄領域は、有意画素の連結画素群のうち、サイズが比較的大きいもの(例えば文字の50ポイントを超えるサイズなど)に外接する矩形によって画定する。   Although an example in which the character region and the background region are separated has been described here, the character region, the design region, and the background region may be separated into three layers. Here, the picture area is defined by a rectangle circumscribing a relatively large size (for example, a size exceeding 50 points of a character) of a connected pixel group of significant pixels.

さらに、図2に示した画像処理に代えて、背景領域をカラー画像として扱うか否かにつき、背景領域の画像を生成することなく判断するようにし、背景領域の画像を保持させるためのページメモリ量を柔軟に調整可能としてもよい。つまり、図2に示した例では、背景領域がカラー画像であるか否かが、実際に背景領域の画像を生成するまで分からないので、背景領域の画像を保持するためのページメモリを、カラー画像を1ページ分保持可能なサイズで確保し、1ページ分の背景画像を生成完了してカラー画像であるか否か確定してから圧縮処理をする必要があったが、背景領域の画像を生成する前に背景領域がカラー画像であるかモノトーン画像であるかを判断させることにより、背景領域の画像を生成しながらの圧縮処理が可能となるため、背景画像を保持するメモリサイズは、圧縮に必要なバンド分のみを確保すれば良いというようにすることもできる。   Further, in place of the image processing shown in FIG. 2, whether or not the background area is handled as a color image is determined without generating the background area image, and a page memory for holding the background area image. The amount may be adjusted flexibly. That is, in the example shown in FIG. 2, since it is not known until the background area image is actually generated whether or not the background area is a color image, the page memory for holding the background area image is set as a color image. It was necessary to secure the image in a size that can hold one page, complete the generation of the background image for one page, determine whether the image is a color image, and then perform compression processing. By determining whether the background area is a color image or a monotone image before generation, compression processing while generating the background area image is possible, so the memory size that holds the background image is compressed. It is also possible to ensure that only the necessary band is required.

この例に係る、本発明の第2の実施の形態について、次に説明する。本実施の形態の画像処理装置1は、第1の実施形態におけるものと同様の構成を採るものであるが、処理制御部11における処理の内容が異なっている。   Next, a second embodiment of the present invention according to this example will be described. The image processing apparatus 1 of the present embodiment has the same configuration as that of the first embodiment, but the contents of processing in the processing control unit 11 are different.

すなわち、本実施の形態の処理制御部11は、背景領域のカラー判定を、処理対象の画像情報全体に含まれる有彩色の画素の数と、文字領域に含まれる有彩色の画素の数とを、それぞれ計数(カウント)し、その差を演算することで、背景領域に含まれるべき有彩色の画素の数を推定し、背景領域をカラー画像として扱うか否かを判断する。   That is, the processing control unit 11 according to the present embodiment performs color determination of the background area by determining the number of chromatic pixels included in the entire image information to be processed and the number of chromatic pixels included in the character area. The number of chromatic pixels to be included in the background region is estimated by counting (counting) and calculating the difference, and it is determined whether or not the background region is handled as a color image.

つまり、上記の差がある閾値より小さい場合には、背景領域に有彩色が含まれないとして、背景領域をモノトーン画像として扱うべきと判断する。これにより、第1の実施の形態において述べた第2ページメモリの容量を柔軟に調整できるようになる。   That is, when the difference is smaller than a certain threshold value, it is determined that the background area should be treated as a monotone image, assuming that the background area does not include a chromatic color. Thereby, the capacity of the second page memory described in the first embodiment can be flexibly adjusted.

具体的な例として、本実施の形態における処理制御部11が実行する画像処理を、図5を参照しながら説明する。   As a specific example, image processing executed by the processing control unit 11 in the present embodiment will be described with reference to FIG.

本実施の形態の処理制御部11によって実行される画像処理は、機能的に、色変換部21と、前処理部22と、連結画素抽出部23と、文字領域分離部24と、文字領域同一色分離部25と、二値化圧縮処理部26と、背景画像穴埋処理部27と、背景画像カラー判定部28′と、全体画像有彩色画素数カウント部41と、文字領域有彩色画素数カウント部42と、背景画像圧縮処理部29と、ファイル合成部30とを含んで構成される。なお、第1の実施の形態に係るものと同様の処理を行うものについては、同一の符号を付して詳細な説明を省略する。   The image processing executed by the processing control unit 11 of the present embodiment is functionally the same as the color conversion unit 21, the preprocessing unit 22, the connected pixel extraction unit 23, the character region separation unit 24, and the character region. Color separation unit 25, binarization compression processing unit 26, background image filling processing unit 27, background image color determination unit 28 ′, overall image chromatic color pixel count unit 41, and character region chromatic color pixel number The count unit 42, the background image compression processing unit 29, and the file composition unit 30 are configured. In addition, about the thing which performs the process similar to what concerns on 1st Embodiment, the same code | symbol is attached | subjected and detailed description is abbreviate | omitted.

全体画像有彩色画素数カウント部41は、色変換部21が出力する、色変換後の画像情報に含まれる有彩色の画素の数をカウントする。具体的な例として、この全体画像有彩色画素数カウント部41は、記憶部12に格納されている、色変換後の画像情報の各画素を、ラスタスキャン順に走査して、色差成分(Cb、Cr)双方の階調値が、その取り得る範囲の中間値(色差成分が8ビットであれば、中間値は128)から所定の範囲外にある画素の数(有彩色の画素の数)をカウントする。そして、カウントした値を全体有彩色画素数として出力する。   The total image chromatic color pixel count counting unit 41 counts the number of chromatic pixels included in the image information after color conversion output from the color conversion unit 21. As a specific example, the whole image chromatic color pixel number counting unit 41 scans each pixel of the image information after color conversion stored in the storage unit 12 in the raster scan order, and the color difference components (Cb, Cr) The number of pixels (the number of chromatic pixels) that are outside the predetermined range from the intermediate value of the range that both of the gradation values can take (the intermediate value is 128 if the color difference component is 8 bits) Count. Then, the counted value is output as the total number of chromatic color pixels.

また、文字領域有彩色画素数カウント部42は、文字領域同一色分離部25が生成する文字領域の画像の情報を、記憶部12から読み出して、その代表色が有彩色であるエントリーを選択し、そのエントリーに対応する文字領域内の有意画素の数(文字領域ごとの有彩色の画素の数)をカウントし、それらを総和する。これにより、文字領域全体での有彩色の画素の数を求める。そして、当該求めた値を、文字有彩色画素数データとして出力する。   In addition, the character area chromatic color pixel number counting unit 42 reads information on the image of the character area generated by the character area same color separation unit 25 from the storage unit 12 and selects an entry whose representative color is a chromatic color. The number of significant pixels in the character area corresponding to the entry (the number of chromatic pixels for each character area) is counted and summed up. Thus, the number of chromatic pixels in the entire character area is obtained. Then, the obtained value is output as character chromatic color pixel number data.

背景画像カラー判定部28′は、全体画像有彩色画素数データから文字領域有彩色画素数データを引いた差を算出する。そしてその差が、予め定めた閾値以下である場合には、背景領域の画像は、モノトーンの画像であると判断する。一方、上記差が上記閾値より大きい場合には、背景領域の画像はカラー画像であると判断する。この判断の結果は、背景画像穴埋処理部27に出力され、背景画像穴埋処理部27は、当該判断の結果に基づいて必要な色成分のみを用いて穴埋め処理を行う。また、背景画像圧縮処理部29もまた、この判断の結果に基づいて、背景領域の画像をカラー画像として圧縮するか、モノトーン画像として圧縮するかを定め、穴埋め処理部から出力される背景画像に対し、当該定めた方式で逐次圧縮処理を行う。   The background image color determination unit 28 'calculates a difference obtained by subtracting the character area chromatic color pixel number data from the entire image chromatic color pixel number data. If the difference is equal to or smaller than a predetermined threshold, it is determined that the background area image is a monotone image. On the other hand, when the difference is larger than the threshold value, it is determined that the image in the background area is a color image. The result of this determination is output to the background image hole filling processing unit 27, and the background image hole filling processing unit 27 performs hole filling processing using only necessary color components based on the result of the determination. The background image compression processing unit 29 also determines whether the image of the background area is compressed as a color image or a monotone image based on the result of this determination, and the background image is output to the background image output from the hole filling processing unit. On the other hand, sequential compression processing is performed by the determined method.

さらに上記、第1、第2の実施形態において、写真などでは、それがカラー写真であっても、モノトーンに変換して構わない場合もある。このような場合に、絵柄領域については、そこに有彩色の画素値が含まれているか否かに関わらず、モノトーン画像であるとして、カラーの情報を廃棄して圧縮処理を施すこととしてもよい。これにより圧縮効率を高めることができる。この場合、利用者が操作部15から絵柄領域についてのカラー情報を破棄する旨の指示操作を行ったときに、この処理を行うこととしてもよい。   Furthermore, in the first and second embodiments described above, a photograph or the like may be converted into a monotone even if it is a color photograph. In such a case, regarding the pattern area, regardless of whether or not a chromatic color pixel value is included therein, it may be determined that the image area is a monotone image, and color information may be discarded and compression processing may be performed. . Thereby, compression efficiency can be improved. In this case, this processing may be performed when the user performs an instruction operation for discarding the color information about the pattern area from the operation unit 15.

本発明の第1の実施の形態に係る画像処理装置の構成ブロック図である。1 is a configuration block diagram of an image processing apparatus according to a first embodiment of the present invention. 本発明の第1の実施の形態に係る画像処理装置の機能ブロック図である。1 is a functional block diagram of an image processing apparatus according to a first embodiment of the present invention. 処理対象となる画像情報の例を表す説明図である。It is explanatory drawing showing the example of the image information used as a process target. 本発明の第1の実施の形態に係る画像処理装置の画像処理例を表す説明図である。It is explanatory drawing showing the image processing example of the image processing apparatus which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る画像処理装置の機能ブロック図である。It is a functional block diagram of the image processing apparatus which concerns on the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

1 画像処理装置、11 処理制御部、12 記憶部、13 画像入力部、14 出力部、15 操作部、21 色変換部、22 前処理部、23 連結画素抽出部、24 文字領域分離部、25 文字領域同一色分離部、26 二値化圧縮処理部、27 背景画像穴埋処理部、28,28′ 背景画像カラー判定部、29 背景画像圧縮処理部、30 ファイル合成部、41 全体画像有彩色画素数カウント部、42 文字領域有彩色画素数カウント部。
DESCRIPTION OF SYMBOLS 1 Image processing apparatus, 11 Processing control part, 12 Storage part, 13 Image input part, 14 Output part, 15 Operation part, 21 Color conversion part, 22 Pre-processing part, 23 Concatenated pixel extraction part, 24 Character area separation part, 25 Character area same color separation unit, 26 binarization compression processing unit, 27 background image filling processing unit, 28, 28 'background image color determination unit, 29 background image compression processing unit, 30 file composition unit, 41 overall image chromatic color Pixel number counting unit, 42 Character area chromatic color pixel number counting unit.

Claims (4)

処理対象となる1つの原稿の画像情報を文字領域の画像情報と背景領域の画像情報とに分離する手段と、
前記背景領域の画像情報に基づいて、前記背景領域における有彩色の有無を判定する判定手段と、
前記背景領域の画像情報に対して、モノトーン画像としての圧縮処理とカラー画像としての圧縮処理とを前記判定手段の判定結果に応じて選択的に実行する手段と、
前記文字領域の画像情報に基づいて各文字の代表色を決定する手段と、
前記文字領域の画像情報を、前記代表色が所定の範囲内にあるものごとにグループ化する手段と、
前記文字領域の画像情報に対して二値化処理を実行し、当該画像情報を圧縮する手段と、
前記代表色と圧縮された前記文字領域の画像情報とを関連づける手段と、
を含むことを特徴とする画像処理装置。
It means for separating the image information of one document to be processed in the image information of the image information and the background area of the character region,
Determination means for determining the presence or absence of a chromatic color in the background region based on the image information of the background region;
Means for selectively executing compression processing as a monotone image and compression processing as a color image on the image information of the background area according to the determination result of the determination means;
Means for determining a representative color of each character based on image information of the character region;
Means for grouping the image information of the character area for each of the representative colors within a predetermined range;
Means for performing binarization processing on the image information of the character region and compressing the image information;
Means for associating the representative color with the compressed image information of the character area;
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記処理対象となる画像情報に含まれる有彩色の画素数を、全体有彩画素数として計数する手段と、
前記文字領域に含まれる有彩色の画素数を、文字領域有彩画素数として計数する手段と、をさらに含み、
前記判定手段は、前記計数された全体有彩画素数と文字領域有彩画素数とに基いて、前記背景領域の画像情報をカラー画像として圧縮するか否かを判断する、
ことを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
Means for counting the number of chromatic pixels included in the image information to be processed as the total number of chromatic pixels;
Means for counting the number of chromatic pixels included in the character area as the number of chromatic pixels in the character area ;
Said determining means, said had counted the whole chromatic pixel number and the character region chromatic group Dzu to the number of pixels, it is determined whether to compress the image information of the background region as a color image,
An image processing apparatus.
処理対象となる1つの原稿の画像情報を文字領域の画像情報と背景領域の画像情報とに分離し、
前記背景領域の画像情報に基づいて、前記背景領域における有彩色の有無を判定し、
その判定結果に応じて、前記背景領域の画像情報に対して、モノトーン画像としての圧縮処理とカラー画像としての圧縮処理とを選択的に実行し、
前記文字領域の画像情報に基づいて各文字の代表色を決定し、
前記文字領域の画像情報を、前記代表色が所定の範囲内にあるものごとにグループ化し、
前記文字領域の画像情報に対して二値化処理を実行した後、当該画像情報を圧縮し、
前記代表色と圧縮された前記文字領域の画像情報とを関連づける、
ことを特徴とする画像処理方法。
Separating image information of one document to be processed into image information of a character area and image information of a background area ,
Based on the image information of the background area, determine the presence or absence of chromatic color in the background area,
In accordance with the determination result, a compression process as a monotone image and a compression process as a color image are selectively executed on the image information of the background area,
Determining the representative color of each character based on the image information of the character region;
Grouping the image information of the character region for each of the representative colors within a predetermined range,
After performing binarization processing on the image information of the character area, the image information is compressed,
Associating the representative color with the compressed image information of the character area;
An image processing method.
コンピュータに、
処理対象となる1つの原稿の画像情報を文字領域の画像情報と背景領域の画像情報とに分離する手順と、
前記背景領域の画像情報に基づいて、前記背景領域における有彩色の有無を判定する手順と、
その判定結果に応じて、前記背景領域の画像情報に対して、モノトーン画像としての圧縮処理とカラー画像としての圧縮処理とを選択的に実行する手順と、
前記文字領域の画像情報に基づいて各文字の代表色を決定する手順と、
前記文字領域の画像情報を、前記代表色が所定の範囲内にあるものごとにグループ化する手順と、
前記文字領域の画像情報に対して二値化処理を実行し、当該画像情報を圧縮する手順と、
前記代表色と圧縮された前記文字領域の画像情報とを関連づける手順と、
を実行させることを特徴とするプログラム。
On the computer,
A procedure for separating image information of one original to be processed into image information of a character area and image information of a background area ;
A procedure for determining the presence or absence of a chromatic color in the background region based on the image information of the background region;
A procedure for selectively executing a compression process as a monotone image and a compression process as a color image for the image information of the background region according to the determination result;
A procedure for determining a representative color of each character based on image information of the character region;
A procedure for grouping the image information of the character region for each of the representative colors within a predetermined range;
A procedure of performing binarization processing on the image information of the character region and compressing the image information;
Associating the representative color with the compressed image information of the character region;
A program characterized by having executed.
JP2005078990A 2005-03-18 2005-03-18 Image processing apparatus, image processing method, and program Expired - Fee Related JP4742632B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005078990A JP4742632B2 (en) 2005-03-18 2005-03-18 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005078990A JP4742632B2 (en) 2005-03-18 2005-03-18 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2006262258A JP2006262258A (en) 2006-09-28
JP4742632B2 true JP4742632B2 (en) 2011-08-10

Family

ID=37100976

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005078990A Expired - Fee Related JP4742632B2 (en) 2005-03-18 2005-03-18 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4742632B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6145983B2 (en) * 2012-09-28 2017-06-14 ブラザー工業株式会社 Image processing apparatus and computer program
JP6091400B2 (en) * 2013-06-28 2017-03-08 京セラドキュメントソリューションズ株式会社 Image processing device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3330308B2 (en) * 1997-06-30 2002-09-30 株式会社日立製作所 Color image information encoding processing method
JP2005027037A (en) * 2003-07-02 2005-01-27 Canon Inc Format conversion method and image processing apparatus

Also Published As

Publication number Publication date
JP2006262258A (en) 2006-09-28

Similar Documents

Publication Publication Date Title
US8331671B2 (en) Image processing apparatus and image encoding method related to non-photo image regions
JP5302768B2 (en) Image processing apparatus and image processing method
US8384964B2 (en) Image processing apparatus and image processing method
US8503036B2 (en) System and method of improving image quality in digital image scanning and printing by reducing noise in output image data
US8395813B2 (en) Subtractive color method, subtractive color processing apparatus, image forming apparatus, and computer-readable storage medium for computer program
JP4557843B2 (en) Image processing apparatus and method
US20090297024A1 (en) Image processing apparatus, image processing method, program, and storage medium
US8737749B2 (en) Image processing apparatus, image processing method, and medium storing image processing program
US8611658B2 (en) Image processing apparatus and image processing method
US10523843B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
JP5049921B2 (en) Image processing apparatus and image processing method
JP2003152995A (en) Image processing device
JP6362632B2 (en) Image processing apparatus and image processing method
JP2004193964A (en) Picture processor, picture processing method, program and recording medium
US8810877B2 (en) Image processing apparatus, image processing method, and storage medium for eliminating blurring of scanned image
JP4742632B2 (en) Image processing apparatus, image processing method, and program
JP3899872B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
US7302097B2 (en) MRC image compression
JP2007006411A (en) Image processing equipment
JP7134045B2 (en) Image processing device, image processing method, and program
US20150117778A1 (en) Image processing apparatus
JP4228905B2 (en) Image processing apparatus and program
JP4787776B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
JP5517028B2 (en) Image processing device
JP4375106B2 (en) Image processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100823

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100831

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101025

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110425

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

Free format text: PAYMENT UNTIL: 20140520

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4742632

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees