JP4193687B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP4193687B2
JP4193687B2 JP2003421666A JP2003421666A JP4193687B2 JP 4193687 B2 JP4193687 B2 JP 4193687B2 JP 2003421666 A JP2003421666 A JP 2003421666A JP 2003421666 A JP2003421666 A JP 2003421666A JP 4193687 B2 JP4193687 B2 JP 4193687B2
Authority
JP
Japan
Prior art keywords
pixel
character
unit
value
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
JP2003421666A
Other languages
Japanese (ja)
Other versions
JP2005184402A (en
JP2005184402A5 (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 JP2003421666A priority Critical patent/JP4193687B2/en
Publication of JP2005184402A publication Critical patent/JP2005184402A/en
Publication of JP2005184402A5 publication Critical patent/JP2005184402A5/ja
Application granted granted Critical
Publication of JP4193687B2 publication Critical patent/JP4193687B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、画像データから文字部分を特定する画像処理装置及びプログラムに関する。
The present invention relates to an image processing apparatus and a program for specifying a character part from image data.

ラスタ画像のデータ(以下、区別するべき場合を除いて単に「画像データ」と呼ぶ)には、文字(テキスト)部分や、自然画の部分(絵柄部分)など、互いに性状の異なる多くの画像要素が含まれ得る。こうした画像要素は、その性状の相違から、例えば圧縮処理において異なる方式での圧縮が適していたりするなど、画像要素ごとに異なる画像処理を行うことが好ましい場合が多い。   Raster image data (hereinafter simply referred to as “image data” unless otherwise distinguished) has many image elements with different properties such as character (text) parts and natural picture parts (design parts). Can be included. Due to the difference in properties of these image elements, it is often preferable to perform different image processing for each image element, for example, compression by a different method is suitable for compression processing.

そこで従来から、いわゆるT/I分離と呼ばれる画像処理が研究・開発されている。従来、T/I分離の方法としては、例えば処理対象画像をニ値化し、黒画素の連続する領域を画定し、当該画定した領域のサイズが予め定めたしきい値を下回る場合に当該領域に含まれる黒画素が文字を表すものと判定する方法等がある(特許文献1)。
特開2003−8909号公報(段落番号0026を参照) 特開2002−175532号公報
Therefore, conventionally, image processing called so-called T / I separation has been researched and developed. Conventionally, as a method of T / I separation, for example, an image to be processed is binarized, a continuous region of black pixels is defined, and when the size of the defined region is lower than a predetermined threshold value, the region is included in the region. There is a method of determining that an included black pixel represents a character (Patent Document 1).
JP 2003-8909 A (see paragraph 0026) JP 2002-175532 A

しかしながら、上記従来の画像処理方法では、例えば絵柄と判定された部分の内部にある文字などについての分離が困難となっており、絵柄と同じ画像処理が適用される結果となっていた。   However, in the conventional image processing method, for example, it is difficult to separate characters or the like inside a portion determined to be a pattern, and the same image processing as that for the pattern is applied.

本発明は上記実情に鑑みて為されたもので、文字部分の抽出精度をより高めて、より適切な画像処理に供することのできる画像処理装置を提供することを目的とする。   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 that can be used for more appropriate image processing with higher accuracy of character portion extraction.

請求項1記載の発明は、処理対象となった画像データについて、当該画像データを構成する各画素が、文字部分と絵柄部分とのいずれに属するかを判断し、当該判断の結果に基づいて文字部分と絵柄部分との少なくとも一方を抽出する画像処理装置であって、前記画像データに対して一つに定められた第1条件を用いて、前記画像データの各画素の値を二値化して第1の二値化データを生成する手段と、当該第1の二値化データに基づいて、各画素文字部分と絵柄部分とに分離する第1分離手段と、前記画像データの各画素について、各画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を第2条件として定め、当該局所的に定めた第2条件を用いて、前記画像データの各画素の値を二値化して第2の二値化データを生成する手段と、当該第2の二値化データに基づいて、前記第1分離手段により分離された絵柄部分の少なくとも一部各画素文字部分と絵柄部分とに分離する第2分離手段と、前記第1分離手段による判断結果と第2分離手段による判断結果とに基づいて、前記画像データから文字部分と絵柄部分との少なくとも一方を抽出する手段と、を含むこととしたものである。 According to the first aspect of the present invention, in the image data to be processed, it is determined whether each pixel constituting the image data belongs to a character part or a picture part, and based on the result of the determination An image processing apparatus that extracts at least one of a part and a pattern part, and binarizes a value of each pixel of the image data using a first condition defined for the image data. It means for generating a first binary data, based on the first binary data, a first separating means for separating each pixel in the character portion and the picture portion, for each pixel of the image data Then, a local binarization threshold value is determined as a second condition based on an average value of pixel values in the vicinity of each pixel, and the value of each pixel of the image data is determined using the locally determined second condition. A method of binarizing and generating second binarized data If, on the basis of the second binary data, and second separating means for separating the character portion and the picture portion of each pixel of at least a portion of the separated picture portion by the first separating means, said first a determination result by first separating means and on the basis of the determination result by the second separating means, in which it was decided to include a means for extracting at least one of the character portion and the picture portion from the image data.

このように、互いに異なる複数の二値化方法によって段階的に文字部分を抽出することで、文字部分の抽出精度をより高めて、より適切な画像処理に供することができるようになる。   In this way, by extracting the character part step by step using a plurality of different binarization methods, the character part extraction accuracy can be further improved and the image can be used for more appropriate image processing.

請求項2記載の発明は、請求項1記載の画像処理装置において、前記第1分離手段と第2分離手段とは、それぞれ第1、第2の二値化データに基づくレイアウト解析処理を行って、どの画素が文字部分に属する画素であるかを判断することとしたものである。 According to a second aspect of the present invention, in the image processing apparatus according to the first aspect , the first separation unit and the second separation unit perform layout analysis processing based on the first and second binarized data, respectively. Which pixel is a pixel belonging to the character part .

請求項3記載の発明は、処理対象となった画像データについて、当該画像データを構成する各画素が、文字部分と絵柄部分とのいずれに属するかを判断し、当該判断の結果に基づいて文字部分と絵柄部分との少なくとも一方を抽出する画像処理プログラムであって、コンピュータ、前記画像データに対して一つに定められた第1条件を用いて、前記画像データの各画素の値を二値化して第1の二値化データを生成する手段と、当該第1の二値化データに基づいて、各画素文字部分と絵柄部分とに分離する第1分離手段と、前記画像データの各画素について、各画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を第2条件として定め、当該局所的に定めた第2条件を用いて、前記画像データの各画素の値を二値化して第2の二値化データを生成する手段と、当該第2の二値化データに基づいて、前記第1分離手段により分離された絵柄部分の少なくとも一部各画素文字部分と絵柄部分とに分離する第2分離手段と、前記第1分離手段による判断結果と第2分離手段による判断結果とに基づいて、前記画像データから文字部分と絵柄部分との少なくとも一方を抽出する手段と、として機能させることとしたものである。 According to the third aspect of the present invention, for the image data to be processed, it is determined whether each pixel constituting the image data belongs to a character part or a picture part, and based on the result of the determination an image processing program for extracting at least one of the parts and the picture portion, the computer, using the first condition defined in one respect to the image data, the value of each pixel of the image data two means for generating a first binary data by binarizing, based on the first binary data, a first separating means for separating each pixel in the character portion and the picture portion of the image data For each pixel, a local binarization threshold value is defined as a second condition based on an average value of pixel values in the vicinity of each pixel, and each pixel of the image data is determined using the locally determined second condition. Binarize the value of the second two It means for generating data, based on the second binary data, a second for separating at least a portion of each pixel character portion of the picture portion of the been pattern portion separated by the first separating means a separation unit, on the basis of the determination result by the first determination result of the separating means and the second separation means, it was decided to function as a means for extracting at least one of the character portion and the picture portion from the image data Is.

本発明の第1の実施の形態に係る画像処理装置は、図1に示すように、制御部11と記憶部12と画像入力部13と画像出力部14とを含んで構成されている。制御部11は、記憶部12に格納されているプログラムに従って動作しており、後に説明する各画像処理を遂行する。この画像処理の内容については、後に詳しく述べる。   As shown in FIG. 1, the image processing apparatus according to the first embodiment of the present invention includes a control unit 11, a storage unit 12, an image input unit 13, and an image output unit 14. The control unit 11 operates in accordance with a program stored in the storage unit 12 and performs each image processing described later. The contents of this image processing will be described in detail later.

記憶部12は、制御部11によって実行されるプログラムを保持している。またこの記憶部12は、制御部11の処理の過程で生成される各種データ等を格納するワークメモリとしても動作する。具体的にこの記憶部12は、コンピュータ可読な記録媒体と当該記録媒体に対してデータを書き込み、又は当該記録媒体からデータを読み出す装置(例えばハードディスク装置やメモリ装置)として実装できる。   The storage unit 12 holds a program executed by the control unit 11. The storage unit 12 also operates as a work memory that stores various data generated during the process of the control unit 11. Specifically, the storage unit 12 can be implemented as a computer-readable recording medium and a device that writes data to or reads data from the recording medium (for example, a hard disk device or a memory device).

画像入力部13は、例えばスキャナであり、原稿を光学的に読み取って得られた画像データを制御部11に出力する。ここではこの画像入力部13が出力する画像データにおいて、各画素の値がRGB(赤、緑、青)の色空間で表現されているとする。画像出力部14は、制御部11から入力される指示に従って画像データを出力するもので、例えば画像を記憶部12に格納し、又は、画像形成部(プリンタ等)に出力し、又はネットワークを介して外部の装置に送信する等の処理を行うものである。   The image input unit 13 is, for example, a scanner, and outputs image data obtained by optically reading a document to the control unit 11. Here, it is assumed that the value of each pixel is expressed in an RGB (red, green, blue) color space in the image data output from the image input unit 13. The image output unit 14 outputs image data in accordance with an instruction input from the control unit 11. For example, the image output unit 14 stores an image in the storage unit 12, outputs the image data to an image forming unit (such as a printer), or via a network. To perform processing such as transmission to an external device.

次に制御部11の処理の内容について説明する。本実施の形態の制御部11は、図2に機能的に示すように、画像入力部13から入力される画像データを処理対象として、この処理対象となった画像データに対して、所定前処理を行う前処理部21と、絵柄部分の候補となる部分(絵柄候補部分)を特定する絵柄候補部分特定処理部22と、文字線画を抽出する文字線画抽出処理部23と、レイアウト処理を遂行するレイアウト処理部24と、同一色領域分離部25と、穴埋処理部26と、圧縮処理部27とを含んで構成されている。   Next, the content of the process of the control part 11 is demonstrated. As functionally shown in FIG. 2, the control unit 11 of the present embodiment sets the image data input from the image input unit 13 as a processing target, and performs predetermined preprocessing on the image data that is the processing target. A pre-processing unit 21 that performs the pattern processing, a pattern candidate portion specifying processing unit 22 that specifies a portion that is a candidate for a pattern portion (design candidate portion), a character / line image extraction processing unit 23 that extracts a character / line image, and a layout process. The layout processing unit 24, the same color region separation unit 25, a hole filling processing unit 26, and a compression processing unit 27 are included.

以下、これら各部について具体的に説明する。   Hereinafter, each of these parts will be described in detail.

[1.前処理部]
この前処理部21では、画像入力部13から入力される画像データ(処理対象画像データ)の各画素の値をRGBからYCbCr(輝度と色差とからなる値)に変換する。具体的には、次の(1)式を用いて変換を行うことができる。なお、ここではRGBの各成分の値は0x00(「0x」は16進数であることを示す)から0xFFまでの値であるとしている。また、この前処理部21では、下地領域の輝度・彩度に基づいて各画素値を階調補正してもよい。尤も、この階調補正の処理は、必ずしも必要なものではない。
[1. Pre-processing section]
In the preprocessing unit 21, the value of each pixel of the image data (processing target image data) input from the image input unit 13 is converted from RGB to YCbCr (a value composed of luminance and color difference). Specifically, the conversion can be performed using the following equation (1). Here, the value of each component of RGB is assumed to be a value from 0x00 (“0x” indicates a hexadecimal number) to 0xFF. Further, the pre-processing unit 21 may correct the gradation of each pixel value based on the luminance and saturation of the background area. However, the gradation correction process is not always necessary.

Figure 0004193687
Figure 0004193687

[2.絵柄候補領域特定処理部]
絵柄候補部分特定処理部22は、前処理部21が出力するYCbCr色空間で表現された画像データから絵柄の領域と推定される領域を、絵柄候補領域として特定する処理を行う。具体的に、絵柄候補部分特定処理部22の処理方法は、種々の方法があるので、以下そのうちの代表的な2つの方法の例について説明する。
[2. Design candidate area identification processing unit]
The pattern candidate portion identification processing unit 22 performs a process of identifying an area estimated as a pattern area from the image data expressed in the YCbCr color space output from the preprocessing unit 21 as a pattern candidate area. Specifically, since there are various processing methods of the pattern candidate portion identification processing unit 22, examples of two typical methods will be described below.

[2a.小領域除去による方法]
絵柄候補部分特定処理部22は、図3(a)に示すように、二値化処理部31と、連結画素抽出部32と、特徴量算出部33と、属性判定部34と、非絵柄領域処理部35と、背景領域塗潰部36と、絵柄候補領域作成部37とを含んで構成される。
[2a. Method by removing small area]
As shown in FIG. 3A, the pattern candidate portion specifying processing unit 22 includes a binarization processing unit 31, a connected pixel extraction unit 32, a feature amount calculation unit 33, an attribute determination unit 34, and a non-pattern region. The processing unit 35, the background region painting unit 36, and the pattern candidate region creation unit 37 are configured.

二値化処理部31は、前処理部21が出力するYCbCr色空間で表現された画像データを記憶部12にコピーして格納する。そして、当該コピーされた画像データ(絵柄領域特定画像データ)の各画素の値を参照しながら、当該画素値の輝度成分と、予め定めた二値化しきい値とを比較して、輝度成分が二値化しきい値以上の画素を黒画素(値「1」)、輝度成分が二値化しきい値未満の画素を白画素(値「0」)としていき、当該絵柄領域特定画像データを二値画像データに変換する。   The binarization processing unit 31 copies and stores image data expressed in the YCbCr color space output from the preprocessing unit 21 in the storage unit 12. Then, referring to the value of each pixel of the copied image data (design area specifying image data), the luminance component of the pixel value is compared with a predetermined binarization threshold value, and the luminance component is Pixels above the binarization threshold are black pixels (value “1”), pixels whose luminance components are less than the binarization threshold are white pixels (value “0”), and the pattern area specific image data is binarized. Convert to image data.

連結画素抽出部32は、二値画像データ中から、黒画素が連結している領域(連結領域)を抽出する。この連結領域の抽出は、ラベリング処理として広く知られた処理を用いることができる。ラベリング処理を用いる場合、各連結領域には互いに異なるラベル識別子を付して、記憶部12に格納しておく。   The connected pixel extracting unit 32 extracts a region (connected region) where black pixels are connected from the binary image data. For the extraction of the connected region, a process widely known as a labeling process can be used. When the labeling process is used, each connected area is given a different label identifier and stored in the storage unit 12.

特徴量算出部33は、連結画素抽出部32によって抽出された連結領域の各々について、その所定のスケール特徴量を演算する。ここでスケール特徴量には、連結領域に関係して定められる矩形の面積や、当該矩形内での黒画素の密度(矩形内の黒画素の数を矩形内の全画素の数で除したもの)などを含む。例えば特徴量算出部33は次のように処理を行う。すなわち特徴量算出部33は、各連結領域ごとの関係領域として、各連結領域に外接する矩形(外接矩形)を画定する。具体的に外接矩形は、連結領域に含まれる画素のうち、そのX座標が最小のもの(絵柄領域特定画像データ中で最も左にあるもの)の当該X座標をXminとし、同じくY座標が最小のもの(絵柄領域特定画像データ中で最も上にあるもの)の当該Y座標をYminとし、以下同様にX座標が最大のものと、Y座標が最大のものとにおける、X座標とY座標とのそれぞれをXmax、Ymaxとして、(Xmin,Ymin)から(Xmax,Ymax)までの線を対角線とする矩形を外接矩形と定める。そして当該外接矩形の面積Aを、(Xmax−Xmin)×(Ymax−Ymin)として演算する。なお、この面積Aは、当該外接矩形に含まれる全画素の数にも等しい。一方、特徴量算出部33は、当該外接矩形内の黒画素の数をカウントし、その数を上記全画素の数(すなわち面積Aの値)で除して密度Dを求める。   The feature amount calculation unit 33 calculates a predetermined scale feature amount for each of the connected regions extracted by the connected pixel extraction unit 32. Here, the scale feature amount includes the rectangular area determined in relation to the connected region, the density of black pixels in the rectangle (the number of black pixels in the rectangle divided by the number of all pixels in the rectangle) ) Etc. For example, the feature amount calculation unit 33 performs processing as follows. That is, the feature amount calculation unit 33 defines a rectangle circumscribing each connected region (a circumscribed rectangle) as a related region for each connected region. Specifically, for the circumscribed rectangle, among the pixels included in the connected area, the X coordinate of the pixel with the smallest X coordinate (the leftmost pixel in the image area specific image data) is defined as Xmin, and the Y coordinate is also the smallest. X coordinate and Y coordinate of the one with the largest X coordinate and the one with the largest Y coordinate are set to Ymin. , Xmax and Ymax are defined as rectangles having diagonal lines from (Xmin, Ymin) to (Xmax, Ymax). Then, the area A of the circumscribed rectangle is calculated as (Xmax−Xmin) × (Ymax−Ymin). The area A is equal to the number of all pixels included in the circumscribed rectangle. On the other hand, the feature amount calculation unit 33 counts the number of black pixels in the circumscribed rectangle and divides the number by the number of all the pixels (that is, the value of the area A) to obtain the density D.

こうして特徴量算出部33は、各連結領域について、これら外接矩形の面積A(面積特徴量に相当する)と、黒画素密度D(密度特徴量に相当する)とを、当該連結領域のスケール特徴量として算出する。そして、各連結領域の識別子(例えばラベル識別子)とそのスケール特徴量とを関連づけて、記憶部12にスケール特徴量データベースとして格納しておく。   In this way, the feature amount calculation unit 33 uses, for each connected region, the area A (corresponding to the area feature amount) of the circumscribed rectangle and the black pixel density D (corresponding to the density feature amount) as the scale feature of the connected region. Calculated as a quantity. Then, the identifier (for example, label identifier) of each connected area and the scale feature amount are associated with each other and stored in the storage unit 12 as a scale feature amount database.

属性判定部34は、記憶部12に格納されたスケール特徴量データベースを参照しながら、各連結領域が絵柄候補領域であるか否かを判定する。具体的な例を挙げると、この属性判定部34は、文字であれば一定以上のサイズがあるとの前提に基づく処理を行う。つまり、一般的なドキュメントで利用されるフォントサイズの最小値(例えば6ポイント)に相当する面積(いわば最小面積)未満の領域(小領域)は、文字を含まない、絵柄の領域と判定できるので、こうした小領域を除去することで文字部分を特定できる。   The attribute determination unit 34 determines whether each connected region is a pattern candidate region while referring to the scale feature amount database stored in the storage unit 12. As a specific example, this attribute determination unit 34 performs processing based on the premise that there is a certain size or more if it is a character. That is, an area (small area) less than an area (so-called minimum area) corresponding to the minimum font size (for example, 6 points) used in a general document can be determined as a picture area that does not include characters. By removing these small areas, the character portion can be specified.

さらに、本実施の形態では、例えば一般的なドキュメントで利用されるフォントサイズの最大値(例えば24ポイント)に相当する面積(いわば最大面積)以上の場合、文字は含まれないと基本的に判断できる。しかしながら、こうした領域は絵柄だけでなく線図(グラフなど)である場合もある。そこで、ここでも黒画素密度を利用して、最大面積より大きい面積を有する矩形のうち、黒画素密度が比較的大きい場合に限り、絵柄であると判定する。なぜならば、グラフなどの線図は、線を用いて構成されるので黒画素の密度は比較的低くなると推定されるからである。   Furthermore, in the present embodiment, for example, when the area is equal to or larger than the maximum font size (for example, 24 points) used in a general document (ie, the maximum area), it is basically determined that no character is included. it can. However, such a region may be a diagram (graph etc.) as well as a picture. Therefore, the black pixel density is also used here, and it is determined that the image has a pattern only when the black pixel density is relatively large among rectangles having an area larger than the maximum area. This is because a graph such as a graph is composed of lines, so that the density of black pixels is estimated to be relatively low.

つまり、本実施の形態では、各連結領域ごとに、その面積特徴量が予め定めた複数の等級のいずれに属するかを判断し、各等級について予め定められた特徴量に対するしきい値のうち、当該面積特徴量が属する等級に係る特徴量に対するしきい値と目的の特徴量とを比較して、絵柄であるか否かを表す情報(本発明にいう分類情報)を生成する。   That is, in the present embodiment, for each connected region, it is determined which of the plurality of predetermined grades the area feature amount belongs to, and among the threshold values for the feature amount predetermined for each grade, The threshold value for the feature value related to the class to which the area feature value belongs is compared with the target feature value to generate information (classification information referred to in the present invention) indicating whether or not it is a pattern.

具体的に本実施の形態の属性判定部34は、上記最小面積を表す第1の面積しきい値α1と、最大面積を表す第2の面積しきい値α2(ただし、α1<α2)並びに、第1、第2の密度しきい値(ρ1,ρ2)を予め定めておき、これらのしきい値を用いて、次のように判定する。   Specifically, the attribute determination unit 34 of the present embodiment includes a first area threshold value α1 representing the minimum area, a second area threshold value α2 representing the maximum area (where α1 <α2), First and second density threshold values (ρ1, ρ2) are determined in advance, and the determination is performed as follows using these threshold values.

すなわち属性判定部34は、図4に示すように、スケール特徴量データベースに含まれる連結領域のうち、この処理で未だ選択されていない連結領域の一つを注目領域として選択する(S1)。そしてこの注目領域に関連づけられたスケール特徴量を読み出して、当該スケール特徴量に含まれる面積Aが、第1の面積しきい値α1未満となっているか否か(A<α1か否か)を調べる(S2)。ここで、A<α1であれば、注目領域を非絵柄領域として判定し、注目領域の識別子(例えばラベル識別子)と、その判定結果(非絵柄領域である旨を表す情報)とを関連づけて記憶部12に格納し(S3)、スケール特徴量データベース内にこの処理で未だ選択されていない連結領域があるか否かを調べて(S4)、未選択の連結領域があれば(Yesならば)、処理S1に戻って処理を続ける。また、処理S4において、未選択の連結領域がなければ(Noならば)、つまりすべての連結領域について判定を終了したならば、処理を終了する。   That is, as shown in FIG. 4, the attribute determination unit 34 selects one of the connected areas not yet selected in this process as a target area from the connected areas included in the scale feature amount database (S1). Then, the scale feature quantity associated with the region of interest is read, and whether or not the area A included in the scale feature quantity is less than the first area threshold value α1 (A <α1 or not). Check (S2). Here, if A <α1, the region of interest is determined as a non-picture region, and the identifier of the region of interest (for example, a label identifier) and the determination result (information indicating that the region is a non-pattern region) are stored in association with each other. It is stored in the unit 12 (S3), and it is checked whether or not there is a connected area not yet selected in this process in the scale feature database (S4). If there is an unselected connected area (if Yes) Then, the process returns to the process S1 to continue the process. Further, if there is no unselected connected region in the process S4 (if No), that is, if the determination is completed for all the connected regions, the process is ended.

また、処理S2において、A<α1でなければ、続いて注目領域の面積Aが第2の面積しきい値α2を越えているか否か(A>α2であるか否か)を調べ(S5)、A>α2であれば、注目領域のスケール特徴量の一つである黒画素密度Dが、第1の密度しきい値ρ1未満であるか否か(D<ρ1か否か)を調べ(S6)、D<ρ1であれば、注目領域が絵柄領域である判定して、注目領域の識別子(例えばラベル識別子)と、その判定結果(絵柄領域である旨を表す情報)とを関連づけて記憶部12に格納し(S7)、処理S4に移行する。さらに処理S6において、D<ρ1でなければ、処理S3に移行して(つまり非絵柄領域と判定して)処理を続ける。   If it is determined in step S2 that A <α1 is not satisfied, whether or not the area A of the attention area exceeds the second area threshold value α2 (whether A> α2) is checked (S5). If A> α2, it is checked whether or not the black pixel density D, which is one of the scale feature quantities of the region of interest, is less than the first density threshold ρ1 (whether D <ρ1) ( S6) If D <ρ1, it is determined that the region of interest is a picture region, and an identifier of the region of interest (for example, a label identifier) and a result of the determination (information indicating that the region is a pattern region) are stored in association with each other. The data is stored in the unit 12 (S7), and the process proceeds to S4. Furthermore, if D <ρ1 is not satisfied in process S6, the process proceeds to process S3 (that is, it is determined as a non-picture area) and the process is continued.

また、処理S5において、A>α2でなければ、処理S3に移行して(つまり非絵柄領域と判定して)処理を続ける。なお、密度しきい値ρ1は、実験によって線画等を抽出するのに適した値に定める。   If A> α2 is not satisfied in process S5, the process proceeds to process S3 (that is, it is determined as a non-picture area) and the process is continued. The density threshold ρ1 is set to a value suitable for extracting line drawings and the like by experiment.

また、面積特徴量又は面積しきい値の少なくとも一方を、処理対象となっている画像データの解像度に基づいて補正してもよい。例えば面積しきい値α1,α2が解像度r0で設定された値である場合において、処理対象となった画像データの解像度がrであったとき、第1の面積しきい値α1を(r/r0)×α1に補正し、第2の面積しきい値α2を(r/r0)×α2に補正する。   Further, at least one of the area feature amount or the area threshold value may be corrected based on the resolution of the image data to be processed. For example, when the area threshold values α1 and α2 are values set at the resolution r0, when the resolution of the image data to be processed is r, the first area threshold value α1 is set to (r / r0). ) × α1 and the second area threshold value α2 is corrected to (r / r0) × α2.

非絵柄領域処理部35は、属性判定部34によって生成されて記憶部12に格納されている、各連結領域ごとの判定結果を参照して、絵柄領域特定画像データのうち、非絵柄領域と判定された連結領域に含まれる黒画素を白画素に変換して、非絵柄領域と背景とが白画素となっている絵柄領域特定画像データを生成する。   The non-design area processing unit 35 refers to the determination result for each connected area that is generated by the attribute determination unit 34 and stored in the storage unit 12, and is determined to be a non-design area in the design area specifying image data. The black pixels included in the connected area are converted into white pixels, and the image area specifying image data in which the non-picture area and the background are white pixels is generated.

背景領域塗潰部36は、非絵柄領域と背景とが白画素となっている絵柄領域特定画像データに対して、絵柄部分の境界と連結している白画素を、所定の値(白、黒以外の任意の色)で塗りつぶす。ここでは、広く知られているような、閉じた領域(閉曲線で囲まれた内部又は外部)を塗つぶす処理を用いる。絵柄候補領域作成部37は、背景領域塗潰部36によって所定の値で塗潰されなかった画素の色を黒に設定する。この絵柄候補領域作成部37によって黒画素に設定された部分を絵柄候補領域として扱うことになる。   The background area filling unit 36 sets white pixels connected to the boundary of the pattern portion to predetermined values (white, black, etc.) for the pattern area specifying image data in which the non-pattern area and the background are white pixels. Fill with any color other than Here, a process of painting a closed region (inside or outside surrounded by a closed curve) as is widely known is used. The pattern candidate area creation unit 37 sets the color of the pixels that have not been painted with the predetermined value by the background area painting unit 36 to black. A portion set as a black pixel by the pattern candidate area creation unit 37 is handled as a pattern candidate area.

この、小領域除去の方法による絵柄候補部分特定処理部22の動作について説明する。以下、図5(a)に示す画像データを処理対象とする場合を例として説明する。なお、図示の都合上、図5(a)においては、全体を線図で示しているが、図5(a)には、写真部分Pと、テキスト部分Tと、線図部分Gと、地図などの図版部分Mとが含まれているものとする。また、地図M内には、地図を構成する線分と一部重なり合う文字等が記述されている場合がある(X)。例えば道路名を示す文字などは、他の道路と重なり合って示されていることも多い。   The operation of the pattern candidate portion specifying processing unit 22 by this small area removal method will be described. Hereinafter, a case where the image data illustrated in FIG. 5A is a processing target will be described as an example. For convenience of illustration, FIG. 5A shows the whole as a diagram, but FIG. 5A shows a photograph portion P, a text portion T, a diagram portion G, and a map. And a plate part M such as Further, in the map M, there are cases where characters or the like partially overlapping with the line segments constituting the map are described (X). For example, letters indicating road names are often shown overlapping other roads.

絵柄候補部分特定処理部22がこれを二値化処理して(図5(b))、連結画素を抽出し、各連結画素についての特徴量に基づき小領域除去の処理を行う。すると絵柄領域特定画像データは、図5(c)に示すように、テキスト部分(T)が除かれた状態となる。なお図5においては線図部分Gの黒画素密度が比較的高いので、当該線図部分Gは除去されずに残存した状態となっている。また、地図部分M内において線分と重なり合っている文字は、当該重なり合う線分と一体として連結画素として抽出されてしまう。このためこの連結画素を囲む矩形の面積が大きくなり、小領域として除去されず、残存することとなる(図5(c)のX)。   The pattern candidate portion specifying processing unit 22 binarizes this (FIG. 5B), extracts connected pixels, and performs a small area removal process based on the feature amount for each connected pixel. Then, the pattern area specifying image data is in a state where the text portion (T) is removed as shown in FIG. In FIG. 5, since the black pixel density of the diagram portion G is relatively high, the diagram portion G remains without being removed. In addition, the characters that overlap the line segment in the map portion M are extracted as connected pixels together with the overlapping line segment. For this reason, the area of the rectangle surrounding the connected pixel is increased, and is not removed as a small region, but remains (X in FIG. 5C).

絵柄候補部分特定処理部22は、背景となっている白画素部分Bを所定の色で塗潰し(図5(d))、さらにこの所定の色で塗潰された部分以外の部分を黒画素とする。ここで背景となっている部分を塗潰す方法としては、画像データの四隅(左上、右上、左下、右下の四隅)から線分によって仕切られない領域を塗潰す、一般的なペイント処理を利用する方法を採ることができる。そして絵柄候補部分特定処理部22は、上記所定の色部分を白画素に戻す。すると、図5(e)に示すように、絵柄候補となる部分が黒画素となり、それ以外の部分が白画素となっているような絵柄領域特定画像データが得られることとなる。   The pattern candidate portion specifying processing unit 22 fills the white pixel portion B, which is the background, with a predetermined color (FIG. 5D), and further black pixels other than the portion painted with the predetermined color. And As a method of painting the background part here, use the general paint processing that paints the area that is not partitioned by line segments from the four corners of the image data (upper left, upper right, lower left, lower right corners). Can be taken. Then, the pattern candidate part specifying unit 22 returns the predetermined color part to a white pixel. Then, as shown in FIG. 5 (e), pattern area specifying image data is obtained in which the pattern candidate part is a black pixel and the other part is a white pixel.

また、絵柄候補部分特定処理部22は、非絵柄領域処理部35によって絵柄領域特定画像データのうち、非絵柄領域と判定された連結領域に含まれる黒画素を白画素に変換した後の絵柄領域特定画像データに対して、膨張収縮処理を行ってもよい。すなわち、図3(b)に示すように、絵柄候補部分特定処理部22による処理は機能的に、二値化処理部31と、連結画素抽出部32と、特徴量算出部33と、属性判定部34と、非絵柄領域処理部35と、膨張収縮部38と、背景領域塗潰部36と、絵柄候補領域作成部37とを含んで構成されてもよい。   In addition, the pattern candidate portion specifying processing unit 22 converts the black pixel included in the connected region determined as the non-pattern region in the pattern region specifying image data by the non-pattern region processing unit 35 to the white pixel. Expansion and contraction processing may be performed on the specific image data. That is, as shown in FIG. 3B, the processing by the pattern candidate portion specifying processing unit 22 is functionally a binarization processing unit 31, a connected pixel extraction unit 32, a feature amount calculation unit 33, and attribute determination. A part 34, a non-picture area processing part 35, an expansion / contraction part 38, a background area painting part 36, and a pattern candidate area creation part 37 may be included.

ここで膨張収縮部38は、非絵柄領域処理部35によって絵柄領域特定画像データのうち、非絵柄領域と判定された連結領域に含まれる黒画素を白画素に変換した後の絵柄領域特定画像データに含まれる画素を順次注目画素として選択する。   Here, the expansion / contraction unit 38 has the pattern area specifying image data obtained by converting the black pixels included in the connected area determined to be the non-pattern area among the pattern area specifying image data by the non-pattern area processing unit 35 into white pixels. Are sequentially selected as the target pixel.

そして膨張収縮部38は、注目画素の近傍(上下左右の画素からなる4近傍または、周辺8画素の8近傍)に黒画素が一つでもあれば、当該注目画素を黒画素とする処理(膨張処理)を行って、黒画素部分を膨張させて、次の注目画素を選択する。この選択順序は、上から下へとラインを走査し、ライン内は左から右へと走査する順序(いわゆるラスタスキャン順)とすればよい。   Then, the expansion / contraction unit 38 performs processing (expansion) when the pixel of interest is a black pixel if there is at least one black pixel in the vicinity of the pixel of interest (four neighborhoods of upper, lower, left, and right pixels or eight neighborhoods of the surrounding 8 pixels) Process) to expand the black pixel portion and select the next pixel of interest. The selection order may be the order in which lines are scanned from top to bottom and the lines are scanned from left to right (so-called raster scan order).

膨張収縮部38は、すべての画素に対する膨張処理を完了すると、再び、各画素を順次注目画素として選択しながら収縮処理を開始する。収縮処理では、注目画素の近傍(4近傍または8近傍)に白画素が一つでもあれば、注目画素を白画素とする。そして、全画素について収縮処理が完了すると、膨張収縮部38の処理を終了する。   When the expansion / contraction unit 38 completes the expansion processing for all the pixels, the expansion / contraction unit 38 again starts the contraction processing while sequentially selecting each pixel as a target pixel. In the contraction process, if there is at least one white pixel in the vicinity (near 4 or 8) of the target pixel, the target pixel is set as a white pixel. Then, when the contraction process is completed for all the pixels, the process of the expansion / contraction unit 38 ends.

この場合、背景領域塗潰部36は、膨張収縮部38によって処理された後の絵柄領域特定画像データに対して、絵柄部分の境界と連結している背景部分の白画素を、所定の値(白、黒以外の任意の色)で塗りつぶすことになる。   In this case, the background area filling unit 36 sets the white pixels in the background part connected to the boundary of the pattern part to a predetermined value (with respect to the pattern area specifying image data processed by the expansion / contraction part 38). Any color other than white or black) will be painted.

このように膨張収縮処理を行うことによって、網点の領域が背景領域と区別されて絵柄領域として認識され易くなる。   By performing the expansion / contraction process in this manner, the halftone dot region is easily distinguished from the background region and recognized as a pattern region.

本実施の形態において特徴的なことの一つは、この絵柄領域候補を特定する処理において文字部分を絵柄と誤判定しても、後に行われるレイアウト処理によって文字部分がさらに抽出されるので、絵柄候補領域の抽出精度が比較的低くても構わないことである。   One of the characteristic features of the present embodiment is that even if the character part is erroneously determined as a pattern in the process of specifying the pattern area candidate, the character part is further extracted by the layout process performed later. That is, the extraction accuracy of candidate regions may be relatively low.

なお、ここまでの説明では、背景領域塗潰部36は、背景部分を所定の色で塗り潰すこととしているが、これに代えて次のようにしてもよい。すなわち、連結領域の抽出にラベリング処理を用いている場合に、当該抽出の際に得られた最大のラベルの値より大きい値(例えば最大のラベル値に1を加えた値)のラベル(背景特定ラベル)を背景部分の画素のラベルに置換えて設定していくこととしてもよい。この場合、絵柄候補領域作成部37は、当該背景特定ラベルが付されていない画素を黒画素に設定することで、図5(e)に示した絵柄領域特定画像データを生成してもよい。   In the description so far, the background region filling unit 36 fills the background portion with a predetermined color, but the following may be used instead. That is, when a labeling process is used to extract a connected region, a label (background identification) that is larger than the maximum label value obtained at the time of extraction (for example, a value obtained by adding 1 to the maximum label value). (Label) may be set by replacing the label of the pixel in the background portion. In this case, the pattern candidate area creation unit 37 may generate the pattern area specific image data shown in FIG. 5E by setting the pixels not attached with the background specific label to black pixels.

制御部11は、特定された絵柄候補領域の各々を規定する座標情報(以下、絵柄候補領域画定情報と呼ぶ)を記憶部12に格納する。   The control unit 11 stores coordinate information (hereinafter referred to as “design candidate area definition information”) that defines each of the identified design candidate areas in the storage unit 12.

[3.文字線画抽出処理部]
文字線画抽出処理部23は、前処理部21が出力するYCbCr色空間で表現された画像データから文字線画部分を抽出する処理を行う。この処理は、例えば特許文献2に開示されている通りの処理を用いることができる。
[3. Character line drawing extraction processing unit]
The character / line drawing extraction processing unit 23 performs processing for extracting a character / line drawing part from the image data expressed in the YCbCr color space output from the preprocessing unit 21. For this processing, for example, processing as disclosed in Patent Document 2 can be used.

そして文字線画抽出部処理部23は、個々の文字や、線画部分についてそれらを取囲む矩形(文字線画外接矩形)の座標情報を記憶部12に格納する。   The character / line drawing extraction unit processing unit 23 stores the coordinate information of individual characters and rectangles (character / line drawing circumscribed rectangles) surrounding the line drawing parts in the storage unit 12.

[4.レイアウト処理部]
レイアウト処理部24は、絵柄候補部分特定処理部22が生成した絵柄候補領域画定情報と、文字線画抽出処理部23が生成した文字線画外接矩形の座標情報とを記憶部12から読み出す。
[4. Layout processing section]
The layout processing unit 24 reads, from the storage unit 12, the pattern candidate area defining information generated by the pattern candidate portion specifying processing unit 22 and the coordinate information of the character / line drawing circumscribing rectangle generated by the character / line drawing extraction processing unit 23.

レイアウト処理部24は、この絵柄候補領域画定情報によって画定される絵柄候補領域と、文字線画外接矩形の座標情報で画定される文字線画の領域とのそれぞれに対して互いに異なる判定条件を用いてレイアウト解析を行う。   The layout processing unit 24 performs layout using different determination conditions for each of the pattern candidate area defined by the pattern candidate area definition information and the character / line drawing area defined by the coordinate information of the circumscribed rectangle of the character / line drawing. Analyze.

具体的に本実施の形態においては、記憶部12から読出した絵柄候補領域画定情報によって画定される絵柄候補領域においてレイアウト解析処理を行い、当該絵柄候補領域の中からさらに文字部分の抽出を試みる。そして、抽出された文字部分を除く部分を絵柄領域として画定し、後段の処理に供する。   Specifically, in the present embodiment, layout analysis processing is performed in the pattern candidate area defined by the pattern candidate area definition information read from the storage unit 12, and further character portions are extracted from the pattern candidate area. Then, a portion excluding the extracted character portion is defined as a pattern region, and is used for subsequent processing.

ここでレイアウト解析処理の処理内容について説明する。レイアウト処理部24は図6に機能的に示すように、二値化処理部41と、連結画素抽出部42と、基本矩形画定部43と、第1セパレータ検出部44と、行矩形画定部45と、第2セパレータ検出部46と、文字領域画定部47と、ノイズ判定部48と、文字部分特定部49とを含んで構成される。   Here, processing contents of the layout analysis processing will be described. As functionally shown in FIG. 6, the layout processing unit 24 includes a binarization processing unit 41, a connected pixel extraction unit 42, a basic rectangle defining unit 43, a first separator detecting unit 44, and a row rectangle defining unit 45. A second separator detection unit 46, a character region demarcation unit 47, a noise determination unit 48, and a character part specifying unit 49.

二値化処理部41は、前処理部21が出力するYCbCr色空間で表現された画像データ(元の画像データ)のうち、絵柄候補領域画定情報で画定される領域内の部分的な画像データ(絵柄候補部分データ)を処理対象として、この処理対象となった絵柄候補部分データを二値化して、二値化絵柄候補部分データを生成する。   The binarization processing unit 41 includes partial image data in an area defined by the pattern candidate area definition information among the image data (original image data) expressed in the YCbCr color space output from the preprocessing unit 21. Using (picture candidate part data) as a processing target, the pattern candidate part data that is the processing target is binarized to generate binarized picture candidate part data.

連結画素抽出部42は、二値化絵柄候補部分データに対してラベリング処理を行い、所定の条件(例えば黒画素である等の条件)を満足する画素値の画素が連続する部分からなる複数の画素群(連結画素群)を特定する。   The connected pixel extraction unit 42 performs a labeling process on the binarized pattern candidate partial data, and includes a plurality of continuous pixels having pixel values that satisfy a predetermined condition (for example, a condition such as a black pixel). A pixel group (connected pixel group) is specified.

なお、これらの処理は、絵柄候補部分特定処理部22の二値化処理部31と連結画素抽出部32とによる処理結果をそのまま用いてもよい。その場合、レイアウト解析処理における二値化処理部41と連結画素抽出部42とは必ずしも必要ではない。   In these processes, the processing results of the binarization processing unit 31 and the connected pixel extraction unit 32 of the pattern candidate portion specifying processing unit 22 may be used as they are. In that case, the binarization processing unit 41 and the connected pixel extraction unit 42 in the layout analysis process are not necessarily required.

基本矩形画定部43は、連結画素抽出部42が特定した連結画素群に関する矩形(例えば連結画素群に外接する矩形)を基本矩形として画定し、各連結画素群についての基本矩形の座標情報(当該矩形を画定するための座標情報)を生成する。そして、各基本矩形ごとに固有の識別子を発行し、当該識別子と基本矩形の座標情報とを関連づけて基本矩形データベースとして記憶部12に格納する。   The basic rectangle defining unit 43 defines a rectangle (for example, a rectangle circumscribing the connected pixel group) related to the connected pixel group specified by the connected pixel extracting unit 42 as a basic rectangle, and the basic rectangle coordinate information about each connected pixel group Coordinate information for defining a rectangle) is generated. Then, a unique identifier is issued for each basic rectangle, and the identifier and the coordinate information of the basic rectangle are associated and stored in the storage unit 12 as a basic rectangle database.

第1セパレータ検出部44は、処理対象となっている絵柄候補部分データの左上端の画素を初期位置として、各画素を左から右へと1ライン走査し、一つ下のラインについて同様に(すなわちラスタスキャン順に)走査していき、上記ラベリング処理における所定の条件を満足しない画素値の画素(例えば白画素)が、予め定めた水平方向閾値より多く連続している場合に、当該連続画素部分を(水平方向の)第1セパレータとして検出し、当該第1セパレータを特定する情報(連続画素部分の左端画素の座標と右端画素の座標など、ここで座標は、元の画像データ上の座標であってもよいし、絵柄候補部分データ上のローカルな座標であってもよい)を生成して記憶部12に格納する。   The first separator detection unit 44 scans each pixel one line from the left to the right with the pixel at the upper left corner of the pattern candidate partial data to be processed as the initial position, and similarly for the next lower line ( That is, when the pixels having pixel values that do not satisfy the predetermined condition in the labeling process (for example, white pixels) are continuously larger than a predetermined horizontal threshold value, the continuous pixel portion is scanned. Is detected as the first separator (in the horizontal direction), and the information specifying the first separator (the coordinates of the left end pixel and the right end pixel of the continuous pixel portion, such as the coordinates are the coordinates on the original image data) Or the local coordinates on the pattern candidate portion data may be generated and stored in the storage unit 12.

また、この第1セパレータ検出部44は、処理対象となっている絵柄候補部分データの左上端の画素を初期位置として、各画素を上から下へと1ライン走査し、一つ右のラインについて同様に走査していき、上記ラベリング処理における所定の条件を満足しない画素値の画素(例えば白画素)が、予め定めた垂直方向閾値より多く連続している場合に、当該連続画素部分を(垂直方向の)第1セパレータとして検出し、当該第1セパレータを特定する情報(連続画素部分の上端画素の座標と下端画素の座標など、ここで座標は、元の画像データ上の座標であってもよいし、絵柄候補部分データ上のローカルな座標であってもよい)を生成して記憶部12に格納する。   The first separator detection unit 44 scans each pixel one line from the top to the bottom with the pixel at the upper left corner of the candidate pattern data to be processed as the initial position. Similarly, when pixels having pixel values that do not satisfy the predetermined condition in the labeling process (for example, white pixels) continue more than a predetermined vertical threshold value, the continuous pixel portion is (vertical) Information that is detected as the first separator (in the direction) and identifies the first separator (such as the coordinates of the upper end pixel and the lower end pixel of the continuous pixel portion, where the coordinates are coordinates on the original image data) It may be local coordinates on the pattern candidate portion data) and is stored in the storage unit 12.

これらの処理において、水平方向閾値や垂直方向閾値は、ユーザが任意に定め得る。水平方向閾値は多段組のレイアウトにおいて各段を分かつための閾値であり、垂直方向閾値は2行以上の文字列を含む文書から、各行を分割するための閾値である。またユーザの設定によるだけでなく、水平方向閾値は基本矩形の幅の統計値(平均)などに基づく所定関数値として、また垂直方向閾値は基本矩形の高さの統計値(平均)などに基づく所定関数値としてそれぞれ定めてもよい。   In these processes, the horizontal direction threshold and the vertical direction threshold can be arbitrarily determined by the user. The horizontal threshold is a threshold for dividing each stage in a multi-column layout, and the vertical threshold is a threshold for dividing each line from a document including two or more lines of character strings. In addition to the user setting, the horizontal threshold is a predetermined function value based on the basic rectangle width statistical value (average), and the vertical threshold is based on the basic rectangular height statistical value (average). Each may be determined as a predetermined function value.

具体的に第1セパレータは、図7(a)に示すような状態で検出されることになる。なお、図7(a)では各第1セパレータが相互に隣接して検出された結果として、一つの第1セパレータ領域のように示されている。   Specifically, the first separator is detected in a state as shown in FIG. In FIG. 7A, as a result of detecting the first separators adjacent to each other, it is shown as one first separator region.

行矩形画定部45は、記憶部12に格納されている基本矩形の一つを注目基本矩形として選択する。そして、記憶部12に格納されている基本矩形であって、いままでに注目基本矩形として選択されていない基本矩形を処理対象基本矩形として順次選択しながら、次の処理を行う。   The row rectangle defining unit 45 selects one of the basic rectangles stored in the storage unit 12 as the target basic rectangle. Then, the following processing is performed while sequentially selecting the basic rectangles that have been stored in the storage unit 12 and have not been selected as the target basic rectangle so far as the processing target basic rectangles.

すなわち、注目基本矩形の中心座標(座標情報が対角位置にある各頂点の座標を表している場合、その中点座標)から、処理対象基本矩形の中心座標へのベクトルを算出する。さらに行矩形画定部45は、ベクトルの大きさ(各成分の二乗和の平方根)から注目基本矩形と処理対象基本矩形との距離を算出する。そして、この算出した距離が予め定めた距離閾値以下となっている場合は、上記算出したベクトルが、検出された第1セパレータのいずれかと交差するか否かを調べる。この処理は2つの線分が交差するか否かを調べる処理として広く知られたものを用いることができる。ここで、上記算出したベクトルが、検出された第1セパレータのいずれとも交差しない場合、注目基本矩形の識別子に、当該処理対象基本矩形の識別子を関連づけて基本矩形関係データベースとして記憶部12に格納する。   That is, a vector is calculated from the center coordinates of the target basic rectangle (in the case where the coordinate information represents the coordinates of each vertex at the diagonal position, the center point coordinates thereof) to the center coordinates of the processing target basic rectangle. Further, the row rectangle defining unit 45 calculates the distance between the target basic rectangle and the processing target basic rectangle from the size of the vector (the square root of the sum of squares of each component). When the calculated distance is equal to or less than a predetermined distance threshold, it is checked whether the calculated vector intersects any of the detected first separators. For this process, a widely known process for checking whether or not two line segments intersect can be used. If the calculated vector does not intersect any of the detected first separators, the identifier of the target basic rectangle is associated with the identifier of the target basic rectangle and stored in the storage unit 12 as a basic rectangle relation database. .

行矩形画定部45は記憶部12に格納されている基本矩形について順次注目基本矩形として選択しながら上記処理を行う。そしてこの処理の結果として得られた基本矩形関係データベースを参照しながら連鎖的に互いに関連する一連の基本矩形群(複数あってもよい)を特定し、特定された基本矩形群に含まれる基本矩形に外接する矩形を行矩形として画定する(例えば図7(b))。   The row rectangle defining unit 45 performs the above processing while sequentially selecting the basic rectangles stored in the storage unit 12 as the target basic rectangle. Then, a series of basic rectangle groups (which may be plural) are linked and identified with reference to the basic rectangle relation database obtained as a result of this processing, and the basic rectangles included in the specified basic rectangle group A rectangle circumscribing is defined as a row rectangle (for example, FIG. 7B).

例えば基本矩形関係データベース内において、識別子が「1」の基本矩形と識別子が「2」の基本矩形とが関連づけられ、また識別子が「2」の基本矩形と識別子が「3」の基本矩形とが関連づけられている場合、行矩形画定部45は、これらの結果を統合して識別子「1」と「2」と「3」との各基本矩形を一連の基本矩形群として特定する。そして基本矩形群に含まれる基本矩形のうち、その座標情報のx(水平方向)の値の最大値と最小値とを抽出し、同じようにy(垂直方向)の値の最大値と最小値とを抽出する。そして、抽出されたxの最小値とyの最小値とを組とした第一座標と、xの最大値とyの最大値とを組とした第二座標とを、それぞれ左上座標,右下座標とする行矩形を画定する。つまり、行矩形は、この2つの座標値を含む座標情報によって画定される。   For example, in the basic rectangle relation database, a basic rectangle with an identifier “1” is associated with a basic rectangle with an identifier “2”, and a basic rectangle with an identifier “2” and a basic rectangle with an identifier “3” are associated with each other. If they are associated, the row rectangle defining unit 45 integrates these results and specifies the basic rectangles having the identifiers “1”, “2”, and “3” as a series of basic rectangle groups. Then, from the basic rectangles included in the basic rectangle group, the maximum value and minimum value of the x (horizontal direction) value of the coordinate information are extracted, and similarly the maximum value and minimum value of the y (vertical direction) value are extracted. And extract. Then, a first coordinate that is a set of the extracted minimum value of x and a minimum value of y, and a second coordinate that is a set of the maximum value of x and the maximum value of y are respectively set as upper left coordinates and lower right coordinates. A line rectangle is defined as coordinates. That is, the row rectangle is defined by coordinate information including these two coordinate values.

行矩形画定部45は、こうして画定した各行矩形についてそれぞれ固有の識別子を発行し、各識別子とその行矩形の座標情報と当該行矩形に含まれる基本矩形群を特定する情報(各基本矩形の識別子のリストなど)とを関連づけて行矩形データベースとして記憶部12に格納する。   The row rectangle defining unit 45 issues a unique identifier for each row rectangle thus defined, and information for identifying each identifier, the coordinate information of the row rectangle, and the basic rectangle group included in the row rectangle (the identifier of each basic rectangle) Are stored in the storage unit 12 as a row rectangle database.

第2セパレータ検出部46は、処理対象となっている絵柄候補部分データの左上端の画素を初期位置として、各画素を左から右へと1ライン走査し、一つ下のラインについて同様に(すなわちラスタスキャン順に)走査していき、連結画素抽出部42でのラベリング処理における所定の条件を満足する画素値の画素(例えば黒画素)が、予め定めた水平方向閾値より多く連続している場合に、当該連続画素部分を(水平方向の)第2セパレータとして検出し、当該第2セパレータを特定する情報(連続画素部分の左端画素の座標と右端画素の座標など、ここで座標は、元の画像データ上の座標であってもよいし、絵柄候補部分データ上のローカルな座標であってもよい)を生成して記憶部12に格納する。   The second separator detection unit 46 scans each pixel one line from the left to the right, using the pixel at the upper left corner of the candidate pattern data to be processed as the initial position, and similarly for the line below ( That is, when scanning is performed in the raster scan order), and pixels having pixel values satisfying a predetermined condition in the labeling process in the connected pixel extraction unit 42 (for example, black pixels) are continuously larger than a predetermined horizontal threshold value. In addition, the continuous pixel portion is detected as a second separator (in the horizontal direction), and information specifying the second separator (the coordinates of the left end pixel and the right end pixel of the continuous pixel portion, etc., where the coordinates are the original The coordinates may be coordinates on the image data, or may be local coordinates on the pattern candidate portion data) and stored in the storage unit 12.

また、この第2セパレータ検出部46は、処理対象となっている絵柄候補部分データの左上端の画素を初期位置として、各画素を上から下へと1ライン走査し、一つ右のラインについて同様に走査していき、連結画素抽出部42でのラベリング処理における所定の条件を満足する画素値の画素(例えば黒画素)が、予め定めた垂直方向閾値より多く連続している場合に、当該連続画素部分を(垂直方向の)第2セパレータとして検出し、当該第2セパレータを特定する情報(連続画素部分の上端画素の座標と下端画素の座標など、ここで座標は、元の画像データ上の座標であってもよいし、絵柄候補部分データ上のローカルな座標であってもよい)を生成して記憶部12に格納する。   The second separator detection unit 46 scans each pixel one line from the top to the bottom with the pixel at the upper left corner of the pattern candidate partial data to be processed as the initial position, and for the right one line. When scanning is performed in the same manner and pixels having pixel values satisfying a predetermined condition in the labeling process in the connected pixel extraction unit 42 (for example, black pixels) continue more than a predetermined vertical direction threshold, Information that detects a continuous pixel portion as a second separator (in the vertical direction) and identifies the second separator (such as the coordinates of the upper end pixel and the lower end pixel of the continuous pixel portion, where the coordinates are on the original image data) And may be local coordinates on the pattern candidate portion data) and stored in the storage unit 12.

これらの処理において、水平方向閾値や垂直方向閾値は、ユーザが任意に定め得る。水平方向閾値は多段組のレイアウトにおいて各段を分かつための閾値であり、垂直方向閾値は2行以上の文字列を含む文書から、各行を分かつための閾値である。またユーザの設定によるだけでなく、水平方向閾値は基本矩形の幅の統計値(平均)などに基づく所定関数値として、また垂直方向閾値は基本矩形の高さの統計値(平均)などに基づく所定関数値としてそれぞれ定めてもよい。   In these processes, the horizontal direction threshold and the vertical direction threshold can be arbitrarily determined by the user. The horizontal threshold is a threshold for dividing each stage in a multi-column layout, and the vertical threshold is a threshold for separating each line from a document including two or more character strings. In addition to the user setting, the horizontal threshold is a predetermined function value based on the basic rectangle width statistical value (average), and the vertical threshold is based on the basic rectangular height statistical value (average). Each may be determined as a predetermined function value.

文字領域画定部47は、行矩形画定部45が画定した行矩形の一つを注目行矩形として選択する。そして文字領域画定部47は、記憶部12に格納されている行矩形であって、いままでに注目行矩形として選択されていない行矩形を処理対象行矩形として順次選択しながら、次の処理を行う。   The character area defining unit 47 selects one of the line rectangles defined by the line rectangle defining unit 45 as the target line rectangle. The character area demarcating unit 47 then performs the next processing while sequentially selecting the row rectangles stored in the storage unit 12 and not selected as the target row rectangle so far as the processing target row rectangle. Do.

すなわち、注目行矩形の各頂点の座標と処理対象行矩形の対応する頂点の座標とを結ぶ線分、及び注目行矩形と処理対象行矩形の各辺とによって画定される多角形領域を生成し、この多角形領域と第2セパレータ(の領域)とが交差(領域同士が少なくとも一部で重なり合う)するか否かを調べる。この処理は2つの領域が交差するか否かを調べる処理として広く知られたものを用いることができる。   In other words, a line segment connecting the coordinates of each vertex of the target line rectangle and the coordinates of the corresponding vertex of the processing target line rectangle, and a polygonal area defined by each side of the target line rectangle and the processing target line rectangle are generated. Then, it is examined whether or not this polygonal region and the second separator (region) intersect (regions overlap at least partially). For this process, a widely known process for checking whether or not two regions intersect can be used.

ここで多角形領域と第2セパレータとが交差していない場合、注目行矩形の識別子と処理対象行矩形の識別子とを関連づけて行矩形関係データベースとして記憶部12に格納する。   Here, when the polygonal region and the second separator do not intersect, the identifier of the target row rectangle and the identifier of the processing target row rectangle are associated with each other and stored in the storage unit 12 as a row rectangle relation database.

文字領域画定部47は記憶部12に格納されている行矩形について順次注目行矩形として選択しながら上記処理を行う。そしてこの処理の結果として得られた行矩形関係データベースを参照しながら連鎖的に互いに関連する一連の行矩形群(複数あってもよい)を特定し、特定された行矩形群に含まれる行矩形に外接する矩形を文字領域として画定する。   The character area defining unit 47 performs the above processing while sequentially selecting the row rectangles stored in the storage unit 12 as the target row rectangle. Then, a series of row rectangle groups (which may be plural) related to each other in a chained manner are identified with reference to the row rectangle relation database obtained as a result of this processing, and the row rectangles included in the identified row rectangle group A rectangle circumscribing is defined as a character area.

例えば行矩形関係データベース内において、識別子が「1」の行矩形と識別子が「2」の行矩形とが関連づけられ、また識別子が「2」の行矩形と識別子が「3」の行矩形とが関連づけられている場合、行矩形画定部45は、これらの結果を統合して識別子「1」と「2」と「3」との各行矩形を一連の行矩形群として特定する。そして行矩形群に含まれる行矩形のうち、その座標情報のx(水平方向)の値の最大値と最小値とを抽出し、同じようにy(垂直方向)の値の最大値と最小値とを抽出する。そして、抽出されたxの最小値とyの最小値とを組とした第一座標と、xの最大値とyの最大値とを組とした第二座標とを、それぞれ左上座標,右下座標とする文字領域の矩形を画定する。つまり、文字領域は、この2つの座標値を含む座標情報によって画定される。   For example, in the row rectangle relation database, the row rectangle having the identifier “1” is associated with the row rectangle having the identifier “2”, and the row rectangle having the identifier “2” is associated with the row rectangle having the identifier “3”. If they are associated, the row rectangle defining unit 45 integrates these results and identifies the row rectangles having the identifiers “1”, “2”, and “3” as a series of row rectangle groups. Then, from the row rectangles included in the row rectangle group, the maximum value and the minimum value of the x (horizontal direction) value of the coordinate information are extracted, and similarly the maximum value and the minimum value of the y (vertical direction) value are extracted. And extract. Then, a first coordinate that is a set of the extracted minimum value of x and a minimum value of y, and a second coordinate that is a set of the maximum value of x and the maximum value of y are respectively set as upper left coordinates and lower right coordinates. Define the rectangle of the character area as coordinates. That is, the character area is defined by coordinate information including these two coordinate values.

文字領域画定部47は、こうして画定した文字領域についてそれぞれ固有の識別子を発行し、各識別子とその文字領域の座標情報と当該文字領域に含まれる行矩形群を特定する情報(各行矩形の識別子のリストなど)とを関連づけて文字領域データベースとして記憶部12に格納する。   The character area defining unit 47 issues unique identifiers for the character areas thus defined, and information for identifying each identifier, the coordinate information of the character area, and the group of line rectangles included in the character area (the identifier of each line rectangle identifier). Are stored in the storage unit 12 as a character area database.

ノイズ判定部48は、文字領域画定部47によって画定された文字領域のそれぞれについて文字が含まれているか否かを確認する、ノイズ判定処理を行う。ここでノイズ判定処理は、行矩形の数、又は各行矩形の性状を表す情報に基づいて、各行矩形に文字が含まれているか否かを判断する第1ノイズ判定処理と、行矩形に関係する基本矩形に関する情報に基づいて、当該行矩形に文字が含まれているか否かを判断する第2ノイズ処理とを含む。   The noise determination unit 48 performs noise determination processing for confirming whether or not a character is included in each of the character regions defined by the character region definition unit 47. Here, the noise determination processing is related to the first noise determination processing for determining whether or not each row rectangle includes a character based on the number of row rectangles or information indicating the property of each row rectangle, and the row rectangle. Second noise processing for determining whether or not a character is included in the row rectangle based on information on the basic rectangle.

具体的にノイズ判定部48の処理は、図8に示すような処理として行われる。まずノイズ判定部48は記憶部12に格納された文字領域のうち、未だ注目文字領域として選択されていないものを注目文字領域として選択する(S11)。そして注目文字領域に含まれる行矩形の数を調べ、これが2以上か(すなわち、当該文字領域が複数行からなるか)否かを判断する(S12)。ここで、行矩形の数が2以上であれば(Yesならば)、注目文字領域に含まれる各行矩形の幅と高さ、並びにそれらの平均や標準偏差など、ばらつきを検定するための統計量を演算する(S13)。そして、これらの統計量に基づいて各行矩形の幅や高さのばらつきが所定のしきい値より大きいか否かを比較する(S14)。この比較は例えば標準偏差が、予め定めたしきい値を超えるか否かの比較とすることができる。そしてこの処理S14によって、ばらつきが大きいと判断される場合(Yesの場合)、注目文字領域には文字は含まれないと判断して、記憶部12の文字領域データベースから、注目文字領域を削除して(S15)、処理S18に移行する。これら処理S12からS15の処理が、第1ノイズ判定処理に相当する。すなわちここでは行矩形の性状を表す情報として各行矩形の幅や高さ、並びにそれらの統計量が用いられている。   Specifically, the processing of the noise determination unit 48 is performed as shown in FIG. First, the noise determination unit 48 selects a character region stored in the storage unit 12 that has not yet been selected as a target character region as a target character region (S11). Then, the number of line rectangles included in the target character area is checked to determine whether it is 2 or more (that is, whether the character area is composed of a plurality of lines) (S12). Here, if the number of row rectangles is 2 or more (if Yes), the statistics for testing variation such as the width and height of each row rectangle included in the target character area, and their average and standard deviation Is calculated (S13). Then, based on these statistics, it is compared whether or not the variation in the width and height of each row rectangle is larger than a predetermined threshold (S14). This comparison can be, for example, a comparison as to whether or not the standard deviation exceeds a predetermined threshold value. If it is determined by this processing S14 that the variation is large (in the case of Yes), it is determined that no character is included in the target character region, and the target character region is deleted from the character region database in the storage unit 12. (S15), the process proceeds to S18. These processes from S12 to S15 correspond to a first noise determination process. That is, here, the width and height of each row rectangle and their statistics are used as information representing the properties of the row rectangle.

一方、処理S14において、ばらつきが小さいと判断される場合(Noの場合)には、注目文字領域に含まれる各行矩形に対して行内判定処理(第2ノイズ判定処理)を行う(S16)。この処理S16の具体的内容については後述する。そしてこの処理S16においてノイズ(文字が含まれていない)と判定された行の数と注目文字領域に含まれる行矩形の数との比に基づいて、ノイズと判定された行の数が、注目文字領域に含まれる行矩形の数に比して所定比率以上となっているか否かを判断し(S17)、所定比率以上であるときに、注目文字領域には文字は含まれないと判断して、処理S15に移行する。   On the other hand, if it is determined in the process S14 that the variation is small (in the case of No), an in-line determination process (second noise determination process) is performed on each line rectangle included in the target character area (S16). The specific contents of this process S16 will be described later. Then, based on the ratio of the number of lines determined as noise (no character is included) in this process S16 and the number of line rectangles included in the target character area, the number of lines determined as noise is It is determined whether or not the predetermined ratio is greater than or equal to the number of line rectangles included in the character area (S17). When the ratio is equal to or greater than the predetermined ratio, it is determined that no character is included in the target character area. Then, the process proceeds to process S15.

また、処理S17において、所定比率未満である場合は、未だ注目文字領域となっていない文字領域が記憶部12の文字領域データベースにあるか否かを調べ(S18)、未選択の文字領域があれば、処理S11に戻って処理を続ける。さらに処理S18において、未選択の文字領域がないならば(すべての文字領域について処理を行ったならば)、ノイズ判定の処理を終了する。   In step S17, if the ratio is less than the predetermined ratio, it is checked whether or not there is a character area that is not yet a focused character area in the character area database of the storage unit 12 (S18), and there is an unselected character area. If so, the process returns to step S11 to continue the process. Furthermore, if there is no unselected character area in process S18 (if all the character areas have been processed), the noise determination process is terminated.

さらに処理S12において行矩形の数が1つであれば(Noならば)、処理S16に移行して処理を続ける。この場合、当該単一の行矩形について文字が含まれているか否かを判断し、文字が含まれていれば(この場合は処理S17の比率は「0」となる)、注目文字領域には文字が含まれると判断され、当該単一の行矩形内に文字が含まれていないならば(この場合は処理S17の比率は「1」となる)、注目文字領域には文字が含まれないと判断される。   Further, if the number of row rectangles is one in process S12 (if No), the process proceeds to process S16 to continue the process. In this case, it is determined whether or not a character is included in the single line rectangle, and if a character is included (in this case, the ratio of processing S17 is “0”), the target character region includes If it is determined that a character is included and no character is included in the single line rectangle (in this case, the ratio of processing S17 is “1”), the character region of interest does not include the character. It is judged.

ここで、処理S16における具体的処理(第2ノイズ判定処理)の内容について説明する。この処理ではノイズ判定部48は、図9に示すように、処理の対象となった各行矩形の一つを注目行矩形として選択し(S21)、記憶部12に格納されている行矩形データベースを参照して、当該注目行矩形に含まれる基本矩形の数をカウントする(S22)。そしてカウントの結果、基本矩形の数が「1」である場合と、「2」である場合と、「3」以上である場合とに分岐して(S23)、基本矩形の数が「1」である場合は、注目行矩形に含まれる基本矩形の識別子のリストを取得し、このリストに含まれる基本矩形の座標情報を記憶部12の基本矩形データベースから読出して、このリストに含まれる基本矩形の幅及び高さとその積(つまり面積)を演算する。そしてこの面積が予め定められた面積しきい値以下であるか否かを判断し(S25)、面積しきい値以下である場合は、注目行矩形には文字が含まれないと判断して、当該結果を記憶部12に格納する(S26)。そして未だ注目行矩形として選択されていない行矩形があるか否かを調べ(S27)、未選択の行矩形があれば、当該未選択の行矩形の一つを注目行矩形として選択するべく処理S21に戻って処理を続ける。一方、処理S27において未選択の行矩形がなければ、処理を終了して図8の処理に戻る。   Here, the content of the specific process (2nd noise determination process) in process S16 is demonstrated. In this processing, as shown in FIG. 9, the noise determination unit 48 selects one of the row rectangles to be processed as a target row rectangle (S21), and selects the row rectangle database stored in the storage unit 12. With reference to this, the number of basic rectangles included in the target row rectangle is counted (S22). As a result of the counting, the process branches into a case where the number of basic rectangles is “1”, a case where it is “2”, and a case where it is “3” or more (S23), and the number of basic rectangles is “1”. Is obtained, a list of identifiers of the basic rectangles included in the target line rectangle is acquired, the coordinate information of the basic rectangles included in this list is read from the basic rectangle database of the storage unit 12, and the basic rectangles included in this list are read out. The width and height and the product (that is, the area) are calculated. Then, it is determined whether or not the area is equal to or smaller than a predetermined area threshold (S25). If the area is equal to or smaller than the area threshold, it is determined that no character is included in the target line rectangle, The result is stored in the storage unit 12 (S26). Then, it is checked whether or not there is a row rectangle that has not been selected as the target row rectangle (S27). If there is an unselected row rectangle, one of the unselected row rectangles is selected as the target row rectangle. The process returns to S21 and continues. On the other hand, if there is no unselected row rectangle in the process S27, the process is terminated and the process returns to the process of FIG.

さらに処理S22におけるカウント値が「2」である場合、各基本矩形の面積を演算し、また、これらの基本矩形間の距離を演算する。基本矩形間の距離は、例えば基本矩形の中心同士の距離として演算できる。そして、距離が予め定めた距離しきい値より大きいか、または2つの基本矩形の面積の比が予め定めた面積比しきい値より大きいかを判断し(S31)、距離が予め定めた距離しきい値より大きいか、または2つの基本矩形の面積の比が予め定めた面積比しきい値より大きい場合は、処理S26に移行して(X)処理を続ける。   Further, when the count value in the process S22 is “2”, the area of each basic rectangle is calculated, and the distance between these basic rectangles is calculated. The distance between the basic rectangles can be calculated as the distance between the centers of the basic rectangles, for example. Then, it is determined whether the distance is larger than a predetermined distance threshold value or the ratio of the areas of the two basic rectangles is larger than a predetermined area ratio threshold value (S31), and the distance is set to a predetermined distance. If it is larger than the threshold value, or if the ratio of the areas of the two basic rectangles is larger than the predetermined area ratio threshold, the process proceeds to step S26 and (X) the process is continued.

さらに、処理S22におけるカウント値が「3」以上である場合には、カウント値(基本矩形の数)が所定最大数を超えているか否かを判断し(S32)、この所定最大数を超える場合は、注目行矩形には文字が含まれないと判断して処理S26に移行する(X)。これは、一行内に例えば100字を超える文字を含めることは通常あり得ないことなどに配慮したものであり、固定値として定めておいてもよいし、注目行矩形の幅に基づいて調整してもよい。また処理S32において基本矩形の数が所定最大数を超えていない場合は、さらに各基本矩形の面積を演算して、演算された面積の最大値が、所定最大面積値を超えているか否かを判断する(S34)。ここで所定最大面積値を超えていると判断される場合は、注目行矩形には文字が含まれないと判断して処理S26に移行する(X)。この最大面積値も、固定値として定めてもよいし、注目行矩形の幅や高さの少なくとも一方(例えばそれらのうち小さい方)に基づいて調整してもよい。   Furthermore, when the count value in process S22 is “3” or more, it is determined whether or not the count value (number of basic rectangles) exceeds a predetermined maximum number (S32). Determines that no character is included in the target line rectangle, and the process proceeds to step S26 (X). This is in consideration of the fact that it is usually impossible to include more than 100 characters in a line, and may be set as a fixed value or adjusted based on the width of the line of interest rectangle. May be. If the number of basic rectangles does not exceed the predetermined maximum number in step S32, the area of each basic rectangle is further calculated to determine whether the calculated maximum area value exceeds the predetermined maximum area value. Judgment is made (S34). If it is determined that the predetermined maximum area value is exceeded, it is determined that no character is included in the target line rectangle, and the process proceeds to step S26 (X). This maximum area value may also be determined as a fixed value, or may be adjusted based on at least one of the width and height of the target row rectangle (for example, the smaller of them).

さらに処理S34において所定最大面積値を超えていないと判断される場合、さらに2つの基本矩形の組み合せ(任意に取り出された少なくとも一つの組み合せ)について、各組み合せに係る2つの基本矩形の面積比が予め定めた面積比しきい値より大きいかを判断し(S35)、2つの基本矩形の面積の比が予め定めた面積比しきい値より大きい場合は、処理S26に移行して処理を続ける(X)。   Further, when it is determined in the process S34 that the predetermined maximum area value is not exceeded, the area ratio of the two basic rectangles related to each combination is further determined for two combinations of the basic rectangles (at least one combination arbitrarily extracted). It is determined whether it is larger than a predetermined area ratio threshold value (S35). If the ratio of the areas of the two basic rectangles is larger than the predetermined area ratio threshold value, the process proceeds to step S26 and the process continues ( X).

この処理S35において2つの基本矩形の面積の比が予め定めた面積比しきい値より大きくない場合は、注目行矩形内に文字が含まれると判断して、その判断結果を記憶部12に格納し、処理S27に移行する。   When the ratio of the areas of the two basic rectangles is not larger than the predetermined area ratio threshold value in this process S35, it is determined that the character is included in the target line rectangle, and the determination result is stored in the storage unit 12. Then, the process proceeds to process S27.

なお、処理S25において、面積が面積しきい値を超える場合、並びに、処理S31において、距離が予め定めた距離しきい値以下であり、かつ2つの基本矩形の面積の比が予め定めた面積比しきい値以下である場合には、処理S32(または処理S34)以下に移行して処理を続けることとする。   In the process S25, when the area exceeds the area threshold value, and in the process S31, the distance is equal to or smaller than the predetermined distance threshold value, and the ratio of the areas of the two basic rectangles is a predetermined area ratio. If it is less than or equal to the threshold value, the process proceeds to the process S32 (or process S34) and the process is continued.

また、処理S35においては各組み合せについて処理を行っているが、処理負荷を軽減するためには、例えば各基本矩形の面積の平均値(平均面積)や、最小値(最小面積)・最大値(最大面積)を演算し、平均面積と最小面積、平均面積と最大面積との比、あるいは最小面積と最大面積との比と、上記面積比しきい値との比較を行ってもよい。   Further, in the processing S35, the processing is performed for each combination, but in order to reduce the processing load, for example, the average value (average area) of each basic rectangle, the minimum value (minimum area), the maximum value ( The maximum area) may be calculated, and the average area and the minimum area, the ratio of the average area and the maximum area, or the ratio of the minimum area and the maximum area may be compared with the area ratio threshold value.

このように、ノイズ判定部48は、各行矩形について、そこに含まれる基本矩形の性状(面積、面積比、距離など)に基づき、各行矩形に真に文字が含まれているか否かを再確認する。   As described above, the noise determination unit 48 reconfirms whether or not each row rectangle truly includes a character based on the properties (area, area ratio, distance, etc.) of the basic rectangle included in each row rectangle. To do.

なお、ノイズ判定部48の第1ノイズ判定処理は、ここで述べた例に限られない。例えばここでは行矩形の性状として各行矩形の幅や高さを用いていたが、これらとともに、またはこれらに代えて、行矩形の座標情報(の平均値や標準偏差などの統計量)を用いてもよい。これによると、文字領域内に含まれる行矩形の位置がばらついている場合などに、当該文字領域には文字が含まれていない(ノイズである)と判断して、記憶部12の文字領域データベースから、注目文字領域を削除することとなる。   The first noise determination process of the noise determination unit 48 is not limited to the example described here. For example, the width and height of each row rectangle is used here as the property of the row rectangle, but using the coordinate information of the row rectangle (statistics such as an average value and standard deviation) together with or instead of these, Also good. According to this, when the positions of the line rectangles included in the character area vary, it is determined that the character area does not include a character (noise), and the character area database in the storage unit 12 is determined. Therefore, the attention character area is deleted.

文字部分特定部49は、ノイズ判定部48の処理を経た文字領域データベースを記憶部12から読出して、当該文字領域データベースに含まれる文字領域(文字領域の座標情報そのもの)、または当該文字領域内の黒画素部分(文字領域の座標情報と、黒画素部分からなるビットマップ情報)を文字部分として特定し、当該文字部分を特定する情報(文字部分特定情報)を記憶部12に格納する。制御部11は、この時点で記憶部12に格納されている、基本矩形関係データベースや行矩形関係データベースを削除してもよい。   The character part specifying unit 49 reads the character area database that has undergone the processing of the noise determination unit 48 from the storage unit 12, and the character area included in the character area database (the coordinate information of the character area itself) or the character area database A black pixel portion (character area coordinate information and bitmap information including a black pixel portion) is specified as a character portion, and information (character portion specifying information) for specifying the character portion is stored in the storage unit 12. The control unit 11 may delete the basic rectangle relationship database and the row rectangle relationship database stored in the storage unit 12 at this time.

このように、本実施の形態におけるレイアウト処理部24は、文字から行、行から領域へと段階的に文字領域を画定し、当該画定した文字領域内の行の状態に基づいて文字列が含まれているかを判断し、文字列が含まれていないと判断される場合には、さらに行内(文字単位)の状態に基づいて文字が含まれているかを判断することとしている。尤も、本実施の形態におけるレイアウト処理はこれに限られるものではなく、その他広く知られたレイアウト処理を用いても構わない。   As described above, the layout processing unit 24 according to the present embodiment demarcates character areas step by step from a character to a line and from a line to an area, and includes a character string based on the state of the line in the delimited character area. If it is determined that the character string is not included, it is further determined whether the character is included based on the state in the line (character unit). However, the layout processing in the present embodiment is not limited to this, and other well-known layout processing may be used.

本実施形態において特徴的なことの一つは、いわゆるT/I分離処理においてレイアウト解析を用いて文字部分を抽出することとしていることである。これによって絵柄候補領域に含まれる文字部分もレイアウト解析処理によって抽出されることとなり、文字部分の抽出精度を向上させることができる。   One characteristic of this embodiment is that a character portion is extracted using layout analysis in so-called T / I separation processing. As a result, the character portion included in the pattern candidate region is also extracted by the layout analysis process, and the accuracy of extracting the character portion can be improved.

一方、レイアウト処理部24は、文字線画として画定された部分(文字線画外接矩形)内についても、レイアウト解析処理を行う。そしてレイアウト処理部24は、当該レイアウト解析処理の結果として得られたレイアウト枠(少なくとも各文字に外接する矩形(基本矩形)を含む)を定め、これらレイアウト枠の情報(座標情報など)を記憶部12に格納する。   On the other hand, the layout processing unit 24 performs a layout analysis process also on a portion (character / line drawing circumscribed rectangle) defined as a character / line drawing. The layout processing unit 24 determines layout frames (including at least rectangles (basic rectangles) circumscribing each character) obtained as a result of the layout analysis processing, and stores information (coordinate information and the like) of these layout frames. 12.

なお、文字線画外接矩形内においても、上記基本矩形を水平または垂直方向に関係づけて得られる行矩形を画定し、この行矩形の座標情報などを記憶部12に併せて格納してもよい。   Note that a line rectangle obtained by relating the basic rectangle in the horizontal or vertical direction may also be defined within the circumscribing rectangle of the character line image, and the coordinate information of the line rectangle may be stored in the storage unit 12 together.

制御部11のレイアウト処理部24は、記憶部12に格納された文字部分特定情報と、文字線画外接矩形(またはそれに対するレイアウト処理結果としてのレイアウト枠)とを参照し、処理対象となった画像データ全体について、画像データ内で文字を含む矩形領域の座標情報を生成する。具体的にレイアウト処理部24は、文字部分特定情報の座標情報で画定される矩形と、文字線画外接矩形情報(またはそれに対するレイアウト処理結果としてのレイアウト枠)で画定される矩形とを結合して、文字線画領域を生成する。すなわち、本実施の形態では絵柄候補領域の画定と、文字線画領域の画定とを別々に行っているため、絵柄候補領域内にも文字線画領域として特定された領域が存在し得る。このためここでこれらの領域を結合して、重複領域を一つの文字線画領域とする。   The layout processing unit 24 of the control unit 11 refers to the character part specifying information stored in the storage unit 12 and the character / line drawing circumscribing rectangle (or the layout frame as a layout processing result thereof), and the image to be processed For the entire data, coordinate information of a rectangular area including characters in the image data is generated. Specifically, the layout processing unit 24 combines the rectangle defined by the coordinate information of the character part specifying information and the rectangle defined by the character / line drawing circumscribing rectangle information (or the layout frame as a result of the layout processing). A character line drawing area is generated. In other words, in the present embodiment, the pattern candidate area and the character / line drawing area are defined separately, and therefore the area specified as the character / line drawing area may exist in the pattern candidate area. For this reason, these areas are combined here to make the overlapping area one character / line drawing area.

そしてレイアウト処理部24は、結合後の各文字線画部分について固有の領域識別子(以下、ラベルデータと呼ぶ)を生成し、このラベルデータと、対応する文字線画領域を画定するための座標情報(頂点座標の情報等)とを関連づけて記憶部12に文字線画領域データベースとして格納する。   Then, the layout processing unit 24 generates a unique area identifier (hereinafter referred to as label data) for each combined character / line drawing part, and coordinates information (vertex) for defining the label data and the corresponding character / line drawing area. The information is stored in the storage unit 12 as a character / line drawing area database.

[5.同一色領域分離部]
同一色領域分離部25は、記憶部12の文字線画領域データベースに格納されている文字線画領域の各々について、同一の色の文字線画部分のみからなる領域に分割する処理を行う。同一色領域分離部25は、レイアウト処理の過程で記憶部12に格納された基本矩形(絵柄候補領域と文字線画領域との双方から画定された矩形)の座標情報を読み出す。そして、処理対象となっている画像データ(元画像データ)のうち、この座標情報で画定される各基本矩形内に含まれる画素値のうち代表値(代表色)の候補を決定する。
[5. Same color area separation unit]
The same color area separation unit 25 performs a process of dividing each of the character / line drawing areas stored in the character / line drawing area database of the storage unit 12 into an area including only the character / line drawing parts of the same color. The same color region separation unit 25 reads the coordinate information of the basic rectangle (rectangle defined from both the pattern candidate region and the character / line drawing region) stored in the storage unit 12 during the layout process. Then, a candidate for a representative value (representative color) is determined among the pixel values included in each basic rectangle defined by the coordinate information in the image data (original image data) to be processed.

本実施の形態における同一色領域分離部25は、図10に示すように、色数判定部51と、第1代表色決定部52と、第2代表色決定部53と、限定色化部54とを含んで構成されている。   As shown in FIG. 10, the same color area separation unit 25 in the present embodiment includes a color number determination unit 51, a first representative color determination unit 52, a second representative color determination unit 53, and a limited colorization unit 54. It is comprised including.

色数判定部51は、記憶部12に格納された基本矩形(本発明の基本領域に相当する)の座標情報を参照し、それらを順次注目基本矩形として選択しながら、元画像データのうち注目基本矩形内の画素値に基づいて色数をカウントする。具体的にこの色数判定部51は、元画像データのうち注目基本矩形内の画素値のヒストグラム(発生頻度)を生成し、このヒストグラムにおいて所定しきい値(例えば注目基本矩形内の画素数の1/3など)を超える頻度で出現する画素値の数をカウントする。   The number-of-colors determination unit 51 refers to the coordinate information of the basic rectangle (corresponding to the basic region of the present invention) stored in the storage unit 12 and selects the target rectangle as the target basic rectangle in order, while paying attention to the original image data. The number of colors is counted based on the pixel value in the basic rectangle. Specifically, the color number determination unit 51 generates a histogram (occurrence frequency) of pixel values in the target basic rectangle in the original image data, and uses a predetermined threshold (for example, the number of pixels in the target basic rectangle) in this histogram. The number of pixel values that appear with a frequency exceeding 1/3) is counted.

第1代表色決定部52は、色数判定部51によって判定された色数が所定の整数N(例えばN=1)以下であるか否かを調べ、色数が所定数N以下である場合は、注目基本矩形を処理対象として、当該注目基本矩形の画素値に基づいて少なくとも一つの代表画素値を決定する。   The first representative color determination unit 52 checks whether or not the number of colors determined by the number-of-colors determination unit 51 is a predetermined integer N (for example, N = 1) or less, and if the number of colors is a predetermined number N or less. Determines the at least one representative pixel value based on the pixel value of the target basic rectangle with the target basic rectangle as a processing target.

またこの第1代表色決定部52は、色数が所定数N以下でない場合は、注目基本矩形を処理対象としないこととなる。この場合、同一色領域分離部25は、当該注目基本矩形の部分を文字線画領域データベースから除去する処理を行って、当該注目基本矩形内の画素を絵柄として扱うこととしてもよい。   In addition, when the number of colors is not equal to or less than the predetermined number N, the first representative color determining unit 52 does not process the target basic rectangle. In this case, the same color region separation unit 25 may perform a process of removing the portion of the target basic rectangle from the character / line drawing region database, and treat the pixels in the target basic rectangle as a pattern.

なお、代表画素値の決定方法は、色数判定部51における色数判定の処理と同様に、元画像データのうち注目基本矩形内の画素値のヒストグラム(発生頻度)を生成し、このヒストグラムにおいて所定しきい値(例えば注目基本矩形内の画素数の1/3など)を超える頻度で出現する画素値を代表画素値として決定し、注目基本矩形を特定する情報(注目基本矩形に固有に発行された識別子)に関連づけて決定した代表画素値を代表画素値データベースとして記憶部12に格納する。   The representative pixel value determination method generates a histogram (occurrence frequency) of pixel values in the target basic rectangle in the original image data, as in the color number determination process in the color number determination unit 51. Information that identifies a pixel value that appears at a frequency exceeding a predetermined threshold value (for example, 1/3 of the number of pixels in the target basic rectangle) as a representative pixel value, and is issued specifically for the target basic rectangle The representative pixel value determined in association with the identifier) is stored in the storage unit 12 as a representative pixel value database.

このように、各基本矩形内の色数に基づいて処理対象とするか否かが定められるので、グラデーション文字などが限定色化されることがない。   Thus, since it is determined whether or not to be processed based on the number of colors in each basic rectangle, gradation characters and the like are not limited colors.

第2代表色決定部53は、記憶部12に格納されている行矩形データベースを参照して、各行矩形を順次、注目行矩形として選択する。そして注目行矩形に含まれる少なくとも一つの基本矩形の識別子を取り出し、取り出した各識別子に関連づけられた代表画素値を代表画素値データベースから読出す。   The second representative color determination unit 53 refers to the row rectangle database stored in the storage unit 12 and sequentially selects each row rectangle as a target row rectangle. Then, the identifier of at least one basic rectangle included in the target row rectangle is extracted, and the representative pixel value associated with each extracted identifier is read from the representative pixel value database.

以下、i番目の基本矩形についての代表画素値Pをa,b,cの3値で張られる色成分(a,b,cはL*a*b*やRGB等の色成分のどれであってもよい)を用いてPi(Pia,Pib,Pic)と表現する。また、元の画像データにおいて当該基本矩形内の画素値の各色成分の標準偏差σi(σia,σib,σic)を演算する。   Hereinafter, the color component (a, b, c is any color component such as L * a * b * or RGB) in which the representative pixel value P for the i-th basic rectangle is stretched by the three values a, b, c. May be expressed as Pi (Pia, Pib, Pic). Further, the standard deviation σi (σia, σib, σic) of each color component of the pixel value in the basic rectangle is calculated in the original image data.

第2代表色決定部53は、i番目の基本矩形とj(iとjとは互いに等しくないものとする)番目の基本矩形についてのこれらの値、Pi,σi,Pj,σjに基づいて色空間内に形成される2つの所定幾何形状を生成し、この2つの幾何形状が色空間上で交差しているか(重なり合う部分があるか)否かによってi番目の基本矩形についての代表画素値と、j番目の基本矩形についての代表画素値が同じ色であるか否かを判断する。この幾何形状の交差の有無が本発明の所定均一色条件に相当する。   The second representative color determining unit 53 determines the color based on these values, Pi, σi, Pj, σj for the i-th basic rectangle and the j-th basic rectangle (i and j are not equal to each other). Two predetermined geometric shapes formed in the space are generated, and the representative pixel value for the i-th basic rectangle is determined depending on whether or not the two geometric shapes intersect in the color space (there is an overlapping portion). , It is determined whether the representative pixel values for the jth basic rectangle are the same color. The presence or absence of the intersection of the geometric shapes corresponds to the predetermined uniform color condition of the present invention.

具体的には、幾何形状として直方体や楕円球を用いることができる。すなわち、直方体(Pia±α×σia,Pib±α×σib,Pic±α×σic)と、(Pja±α×σja,Pjb±α×σjb,Pjc±α×σjc)とが重なり合う場合に、i番目の基本矩形についての代表画素値と、j番目の基本矩形についての代表画素値が同じ色であると判断してもよい。また、Piを中心としてσiの各値を径とする楕円球と、Pjを中心としてσjの各値を径とする楕円球とが重なり合う場合に、i番目の基本矩形についての代表画素値と、j番目の基本矩形についての代表画素値が同じ色であると判断してもよい。   Specifically, a rectangular parallelepiped or an elliptic sphere can be used as the geometric shape. That is, when a rectangular parallelepiped (Pia ± α × σia, Pib ± α × σib, Pic ± α × σic) and (Pja ± α × σja, Pjb ± α × σjb, Pjc ± α × σjc) overlap, i It may be determined that the representative pixel value for the th basic rectangle and the representative pixel value for the j th basic rectangle are the same color. In addition, when an elliptical sphere having a diameter of each value of σi centered on Pi and an elliptical sphere having a diameter of each value of σj centered on Pj, a representative pixel value for the i-th basic rectangle, It may be determined that the representative pixel values for the jth basic rectangle are the same color.

さらに、標準偏差を演算する際に、色成分(a,b,c)に代えて、広く知られた主成分分析によって得られる3つの軸(a′,b′,c′)を各成分として、これらの軸方向の標準偏差を演算し、直方体(Pia±α×σia′,Pib±α×σib′,Pic±α×σic′)と、(Pja±α×σja′,Pjb±α×σjb′,Pjc±α×σjc′)とが重なり合う場合に、i番目の基本矩形についての代表画素値と、j番目の基本矩形についての代表画素値が同じ色であると判断してもよい。   Furthermore, when calculating the standard deviation, instead of the color components (a, b, c), three axes (a ′, b ′, c ′) obtained by widely known principal component analysis are used as the respective components. These standard deviations in the axial direction are calculated, and a rectangular parallelepiped (Pia ± α × σia ′, Pib ± α × σib ′, Pic ± α × σic ′) and (Pja ± α × σja ′, Pjb ± α × σjb) ′, Pjc ± α × σjc ′) may be determined to be the same color as the representative pixel value for the i-th basic rectangle and the representative pixel value for the j-th basic rectangle.

これらにおいてαは、均一色との判定のされ易さを表すパラメータであり、例えば比較の対照となる基本矩形間の距離に応じて変化させてもよい(例えば隣接する基本矩形においてはαの値を大きくして、均一色と判定のされ易くするなど)し、予め定めた一定値としてもよい。   In these, α is a parameter indicating the ease of determination as a uniform color, and may be changed according to the distance between the basic rectangles to be compared, for example (for example, the value of α in the adjacent basic rectangles). Or the like to make it easy to determine that the color is uniform), or a predetermined constant value.

第2代表色決定部53は、注目行矩形内から取り出した2つの基本矩形の組み合せについて、上記処理によって互いに均一の色であると判断される基本矩形群を少なくとも一つ特定する。そして、特定した基本矩形群ごとに、それらの基本矩形群に含まれる画素を抽出して当該抽出した画素からなる色別行領域を生成する。これにより、行矩形内の画素であって、一つの代表値に関連づけられる画素ごとに、当該代表値と当該画素を再現する情報とを関連づけた情報を含む色別行領域情報が生成され、注目行矩形の識別子に関連づけて記憶部12に格納される。   The second representative color determination unit 53 specifies at least one basic rectangle group that is determined to be a uniform color by the above processing with respect to a combination of two basic rectangles extracted from the target row rectangle. Then, for each identified basic rectangle group, pixels included in the basic rectangle group are extracted, and a color-specific row region including the extracted pixels is generated. Thereby, for each pixel that is associated with one representative value that is a pixel in the row rectangle, row-by-color row area information including information that associates the representative value with information that reproduces the pixel is generated. The data is stored in the storage unit 12 in association with the row rectangle identifier.

限定色化部54は、記憶部12に格納されている色別行領域情報ごとに、各色別行領域内の画素値をN色以下に限定色化して各画素値を設定する。   For each color-specific row area information stored in the storage unit 12, the limited colorization unit 54 limits each pixel value in each color-specific row area to N colors or less and sets each pixel value.

次に、図11を参照しながら、同一色領域分離部25の動作を説明する。ここでは具体的に図11(a)に示すような2行に配列された文字領域であって、各行の先頭にグラデーションがかけられた円が含まれ、文字の一部に赤色文字(破線で仮想的に囲んだ部分)が含まれるものとする。図11(a)では、各行について行矩形が画定されている状態が示されている。   Next, the operation of the same color region separation unit 25 will be described with reference to FIG. Here, specifically, a character region arranged in two lines as shown in FIG. 11A, a circle with gradation is included at the beginning of each line, and a red character (indicated by a broken line) is included in a part of the character. Virtually enclosed part) is included. FIG. 11A shows a state in which a row rectangle is defined for each row.

色数判定部51は、各文字についての色数を判定する。グラデーションがかけられた円については、複数色が含まれると判定され、他の文字部分については、黒又は赤色の一色と判定される。第1代表色決定部52は、グラデーションがかけられた円については処理対象から除外し、黒色文字については黒色の代表色を決定し、赤色文字については赤色の代表色を決定する。なお、この第1代表色決定部52の決定する代表色は、例えば同じ黒色と決定される色であっても、画素値自体は異なっていてもよい。   The color number determination unit 51 determines the number of colors for each character. The circle with gradation is determined to include a plurality of colors, and the other character portions are determined to be black or red. The first representative color determination unit 52 excludes a circle with gradation from the processing target, determines a black representative color for black characters, and determines a red representative color for red characters. The representative color determined by the first representative color determining unit 52 may be a color determined to be the same black, for example, or the pixel value itself may be different.

第2代表色決定部53は、各行矩形内で、黒色と決定された文字についての基本矩形について、これらの基本矩形内の画素(黒画素)を含んでなる色別行矩形(図11(b)の(イ),(ハ))と、赤色と決定された文字についての基本矩形について、これらの基本矩形内の画素(赤画素)を含んでなる色別行矩形(図11(b)の(ロ),(ニ))を生成する。   In each row rectangle, the second representative color determination unit 53 sets, for each basic rectangle for the character determined to be black, a color-specific row rectangle including pixels (black pixels) in these basic rectangles (FIG. 11B). ) (A), (c)) and the basic rectangle for the character determined to be red, the line-by-color rectangle (FIG. 11B) including the pixels (red pixels) in these basic rectangles. (B) and (d)) are generated.

そして限定色化部54が、各色別行矩形について当該色別行矩形内の画素値に基づいてN色(第1代表色決定部52が用いる色数Nと同一の値)以下の限定色を定める。例えば黒画素を含んでなる色別行矩形については黒色に相当する一つの画素値を限定色として定め、赤画素を含んでなる色別行矩形については赤色に相当する一つの画素値を限定色として定める。また、各色別行矩形内の画素のうち限定色として定められる画素を黒色画素とし、それ以外の画素を白色画素として二値化しておく。これにより、画像データのうち、基本領域内の画素値が限定色化された状態となる。   Then, the limited colorization unit 54 selects a limited color of N colors or less (the same value as the number N of colors used by the first representative color determination unit 52) for each color row rectangle based on the pixel value in the color row rectangle. Determine. For example, for a color-by-color row rectangle including black pixels, one pixel value corresponding to black is defined as a limited color, and for a color-by-color rectangle including red pixels, one pixel value corresponding to red is defined as a limited color. Determine as In addition, among the pixels in the row rectangle for each color, a pixel determined as a limited color is a black pixel, and the other pixels are binarized as a white pixel. As a result, the pixel values in the basic area of the image data are in a limited color state.

また、色別行矩形内の二値化画像をラスタスキャン順に走査しながら、この二値化画像に対してMMR(Modified Modified Read)などのランレングス圧縮を行って、文字線画圧縮データを生成する。そして同一色領域分離部25は、行矩形の識別子と、当該行矩形に含まれる画素によって得られた色別行矩形とを関連づけ、さらに各色別行矩形とそれについて定めた限定色の情報とを関連づけて、文字線画プレーンデータとして記憶部12に格納する。また、この限定色の情報は、画素値そのものではなく、各画素値を表す識別子の情報(以下、カラータグと呼ぶ)として保持してもよい。   In addition, while the binarized image in the color-specific row rectangle is scanned in the raster scan order, the binarized image is subjected to run-length compression such as MMR (Modified Modified Read) to generate character / line image compression data. . The same color region separation unit 25 associates the row rectangle identifier with the color-by-color row rectangle obtained by the pixels included in the row rectangle, and further associates each color-by-color row rectangle with the limited color information defined for the color rectangle. In association therewith, it is stored in the storage unit 12 as character / line drawing plane data. In addition, the limited color information may be held as identifier information (hereinafter referred to as a color tag) representing each pixel value, instead of the pixel value itself.

なお、基本矩形内の画素値がばらついている場合に配慮して、第1代表色決定部52は、平滑化処理を行ってから代表画素値を決定してもよい。ここで平滑化処理としては、各基本矩形内の各画素を順次注目画素として特定し、注目画素の値とそれに隣接する画素の値との平均値を注目画素の値とする処理などがある。   In consideration of the case where pixel values in the basic rectangle vary, the first representative color determination unit 52 may determine the representative pixel value after performing the smoothing process. Here, the smoothing process includes a process of sequentially specifying each pixel in each basic rectangle as a target pixel, and setting an average value of the value of the target pixel and the value of a pixel adjacent thereto as the value of the target pixel.

さらにこの平滑化処理の際に、基本矩形内で文字を構成する画素(例えば二値化処理により黒画素となる部分)のみを注目画素として選択してもよい。また平滑化の処理において、平均値を演算する際は当該文字を構成する画素の値のみを参照して平均値を演算することとしてもよい。これにより、文字以外の部分の画素値を参照することにより、文字の代表色が背景色に影響されることが防止される。   Furthermore, at the time of this smoothing process, only the pixels constituting the character in the basic rectangle (for example, the portion that becomes a black pixel by the binarization process) may be selected as the target pixel. In the smoothing process, when calculating the average value, the average value may be calculated by referring only to the values of the pixels constituting the character. This prevents the representative color of the character from being influenced by the background color by referring to the pixel value of the portion other than the character.

ここで平滑化処理してから決定した代表値について補正を行ってもよい。すなわち、本実施の形態の同一色領域分離部25は、決定した代表値の候補についてその輝度を補正して、補正後の値を代表値として決定する。ここで輝度の補正は、例えば図12に示すようなトーンカーブ(補正関数)を用いて補正することができる。この図12に示すトーンカーブは、入力値(補正前の代表値候補の輝度)が最小値MINから第1しきい値TH1までに対する出力値(補正後の値、つまり代表値として決定される値の輝度)が最小値MINであり、第2しきい値TH2(ただしTH2>TH1)から、最大値MAXまでに対する出力値が最大値MAXであるように設定されている。また、このトーンカーブは、入力値が最大値MAXと最小値MINとの間の中央の値MID(例えば最大値が「255」であり最小値が「0」であるときにはMIDは「128」となる)であるときに、これに対する出力値が略MIDとなるように設定されてもよい。   Here, the representative value determined after the smoothing process may be corrected. That is, the same color region separation unit 25 of the present embodiment corrects the luminance of the determined representative value candidate, and determines the corrected value as the representative value. Here, the luminance can be corrected using, for example, a tone curve (correction function) as shown in FIG. The tone curve shown in FIG. 12 is an output value (value after correction, that is, a value determined as a representative value) with respect to an input value (luminance of a representative value candidate before correction) from the minimum value MIN to the first threshold value TH1. Brightness) is the minimum value MIN, and the output value from the second threshold TH2 (where TH2> TH1) to the maximum value MAX is set to the maximum value MAX. The tone curve has a center value MID between the maximum value MAX and the minimum value MIN (for example, when the maximum value is “255” and the minimum value is “0”, the MID is “128”). The output value for this may be set to be substantially MID.

つまり同一色領域分離部25は、代表値の候補(本実施の形態ではYCbCrで表されることとしている)の輝度成分(Y)について、図12のトーンカーブによる補正を行って、代表値の輝度(Y′)を決定し、このY′と、代表値の候補の色差成分Cb,Crとによって特定される値を代表値として決定する。   That is, the same color region separation unit 25 corrects the representative value candidate (represented by YCbCr in the present embodiment) with the tone curve of FIG. Luminance (Y ′) is determined, and a value specified by this Y ′ and representative value candidate color difference components Cb and Cr is determined as a representative value.

なお、代表値候補がRGBなど、輝度成分を含まない色空間で表現されている場合は、L*a*b*や、YCbCrなど、輝度成分を含む色空間の値に変換してから上記処理を行うこととすればよい。   If the representative value candidate is expressed in a color space that does not include a luminance component, such as RGB, the above processing is performed after conversion to a value in a color space that includes a luminance component such as L * a * b * or YCbCr. Should be done.

さらに、ここでは輝度のみを補正したが、色差成分についても補正を行ってもよい。具体的に同一色領域分離部25は、代表値候補の各色差成分が所定の条件を満足しているときに、当該代表色候補値の輝度成分値に関する階調数を低減する補正を行い、当該補正後の値を代表値として決定してもよい。   Further, although only the luminance is corrected here, the color difference component may also be corrected. Specifically, the same color region separation unit 25 performs correction to reduce the number of gradations regarding the luminance component value of the representative color candidate value when each color difference component of the representative value candidate satisfies a predetermined condition, The corrected value may be determined as the representative value.

具体的には、図13に示すように、L*a*bの色空間で表現された代表値候補の色差成分(a*、b*)が、それぞれ対応する色差成分の値域の中心値からの所定範囲内(図13のTHa,THbで画定される円の内部)にあるとの条件を満足している場合に、例えば256階調で表現された輝度成分Lを4階調または8階調など所定階調に低減する。この場合、色差成分の値を上記中心値に設定してもよい。ここで、各成分ごとの所定範囲THa,THbは、同じ値であってもよいし、異なる値であってもよい。   Specifically, as shown in FIG. 13, the color difference components (a *, b *) of the representative value candidates expressed in the color space of L * a * b are respectively calculated from the center values of the corresponding color difference component value ranges. Of the luminance component L expressed in 256 gradations, for example, in 4 gradations or 8th floor, when the condition of being within the predetermined range (inside the circle defined by THa and THb in FIG. 13) is satisfied. It is reduced to a predetermined gradation such as a tone. In this case, the value of the color difference component may be set to the center value. Here, the predetermined ranges THa and THb for each component may be the same value or different values.

この処理により、特に文字色がグレー(黒を含む)である場合に、その文字色の本来の色を再現した代表値が設定される。例えば文字色が黒であるときに色差成分と輝度成分とは本来「0」であるが、スキャナの特性や、元の画像データのエンコード形式(例えばJPEGなど)の特性によっては、色差成分が「0」でなくなってしまったり、輝度成分が「0」でなくなってしまう場合がある。そこでここで示した色差成分に関する処理を行うことで、代表値を本来の黒色とすることができるようになる。   By this processing, when the character color is gray (including black), a representative value that reproduces the original color of the character color is set. For example, when the character color is black, the color difference component and the luminance component are originally “0”. However, depending on the characteristics of the scanner and the encoding format of the original image data (for example, JPEG), the color difference component may be “ In some cases, the luminance component is not “0” or the luminance component is not “0”. Therefore, by performing the processing relating to the color difference component shown here, the representative value can be set to the original black color.

このように本実施の形態によれば、処理対象となった画像データ内に画定される注目画像領域としての基本矩形や行矩形内の画素値に基づいて当該注目画像領域の代表色候補を決定し、その輝度を補正して、代表色を決定することとしている。   As described above, according to the present embodiment, the representative color candidate of the target image area is determined based on the pixel values in the basic rectangle or the row rectangle as the target image area defined in the image data to be processed. Then, the luminance is corrected to determine the representative color.

なお、ここでは平滑化処理を行った後で、補正処理を行って代表値を決定しているが、この処理順序を逆にして各画素について上記補正処理を行った後で、各画素値の平滑化処理を行ってヒストグラムを演算し、代表値を決定してもよい。なお、ここでは文字の場合を説明したが、線画についても同様の処理が行われることとなる。   Here, after performing the smoothing process, the correction process is performed to determine the representative value. However, after performing the above correction process for each pixel by reversing the process order, A representative value may be determined by performing a smoothing process and calculating a histogram. Although the case of characters has been described here, the same processing is performed for line drawings.

こうした平滑化と補正の処理によって、本実施の形態においては、文字や線画を構成する画素値にばらつきがあっても、当該ばらつきの影響を軽減して、元の画像データの色と違和感のない代表色を決定することができる。   With this smoothing and correction process, in this embodiment, even if there is a variation in the pixel values that make up a character or line drawing, the influence of the variation is reduced and there is no sense of incongruity with the color of the original image data. A representative color can be determined.

さらに、ここまでの説明では行矩形ごと、かつ代表色ごとに限定色化処理を行っているが、色別行矩形ごとに定められた限定色について、さらに上記第2代表色決定部53におけるのと同様の処理によって互いに均一色と判断される限定色に関連づけられている色別行矩形内の画素を抽出し、当該抽出した画素を含み、文字線画部分を画定する矩形と同一サイズの矩形を、色別文字線画部分データとして生成して、これについてさらに限定色を定めてもよい。   Further, in the above description, the limited colorization process is performed for each row rectangle and for each representative color. However, the limited color determined for each row rectangle for each color is further processed in the second representative color determination unit 53. Extract the pixels in the color-specific row rectangles that are associated with the limited colors that are determined to be uniform colors by processing similar to the above, and create a rectangle that includes the extracted pixels and has the same size as the rectangle that defines the character / line drawing part. Alternatively, it may be generated as character-specific line drawing data for each color, and a limited color may be determined for this.

また、色別行矩形を生成する代りに、第2代表色決定部53が直接、一つの文字線画部分に含まれる基本矩形であって、互いに均一色と判断される代表画素値に関連づけられている基本矩形内の画素を抽出し、当該抽出した画素を含み、文字線画部分を画定する矩形と同一サイズの矩形を、色別文字線画部分データとして生成して、これについて限定色を定めてもよい。   Further, instead of generating the line-by-color rectangle, the second representative color determining unit 53 directly associates the basic pixel values included in one character line drawing portion with the representative pixel values determined to be uniform colors. If a pixel within the basic rectangle is extracted, and a rectangle having the same size as the rectangle defining the character / line drawing part is generated as the character / line drawing part data for each color, and a limited color is defined for this Good.

これら色別文字線画部分データを生成する場合は、当該色別文字線画部分データの元となった文字線画部分の識別子と、それぞれ限定色を特定する情報に関連づけられた色別文字線画部分データ(内部の画素値は二値化し、MMR符号化してもよい)とを、文字線画プレーンデータとして生成することになる。   When generating these color-specific character / line drawing part data, the character / line drawing part data (color-specific character / line drawing part data) associated with the identifier of the character / line drawing part that is the source of the color-specific character / line drawing part data and the information for specifying the limited color ( The internal pixel value may be binarized and may be MMR encoded) as character / line drawing plane data.

[6.穴埋処理部]
穴埋処理部26は、元の画像データのうち、絵柄候補領域に相当する領域を抽出し、この領域内からレイアウト処理部24の処理で検出された文字の画素(文字を構成する画素)を除去して、絵柄部分画像データを生成する。
[6. Cavity processing section]
The hole-filling processing unit 26 extracts a region corresponding to the pattern candidate region from the original image data, and detects a pixel of a character (a pixel constituting the character) detected by the processing of the layout processing unit 24 from this region. The pattern partial image data is generated by removing.

そして、この絵柄部分画像データの各画素をラスタスキャン順に走査し、走査により選択される注目画素が除去された画素でなければ、当該注目画素の画素値をそのままとするとともに、当該注目画素の画素値を直前画素値として記憶部12のワークメモリに記憶する。なお、既に他の画素値が直前画素値として記憶されている場合は、その記憶内容に上書きする。   Then, each pixel of the pattern partial image data is scanned in the raster scan order, and if the pixel of interest selected by the scanning is not removed, the pixel value of the pixel of interest remains as it is and the pixel of the pixel of interest The value is stored in the work memory of the storage unit 12 as the previous pixel value. If another pixel value is already stored as the previous pixel value, the stored content is overwritten.

また、走査により選択される注目画素が除去された画素である場合、当該注目画素の画素値を、記憶している直前画素値に設定する。これにより除去された部分の画素値が、ラスタスキャン順に直前画素値と同一になり、多くの圧縮処理において圧縮効率を向上させることができるようになる。   If the pixel of interest selected by scanning is a removed pixel, the pixel value of the pixel of interest is set to the immediately preceding pixel value stored. As a result, the pixel value of the removed portion becomes the same as the previous pixel value in the raster scan order, and the compression efficiency can be improved in many compression processes.

そしてこの処理を行った後の絵柄部分画像データを絵柄プレーンデータとして記憶部12に格納する。   Then, the pattern partial image data after this processing is performed is stored in the storage unit 12 as pattern plane data.

[7.圧縮処理部]
圧縮処理部27は、記憶部12に格納されている絵柄プレーンデータを、JPEG圧縮し、圧縮絵柄プレーンデータを生成する。また、この圧縮処理部27は、記憶部12に格納されている文字線画プレーンデータと、この圧縮絵柄プレーンデータとを連結して一連のデータを生成する。
[7. Compression processing unit]
The compression processing unit 27 performs JPEG compression on the pattern plane data stored in the storage unit 12 to generate compressed pattern plane data. In addition, the compression processing unit 27 concatenates the character / line drawing plane data stored in the storage unit 12 and the compressed picture plane data to generate a series of data.

具体的にこの一連のデータとしては、PDF(Portable Document
Format)データとすることができる。すなわち、圧縮絵柄プレーンデータを伸長して生成したビットマップ(絵柄プレーンデータのビットマップ)を生成させる指示と、当該絵柄プレーンデータのビットマップ上に文字線画プレーンデータに含まれる各文字や線画を描画させる指示とを含むPDFデータとする。
Specifically, this series of data includes PDF (Portable Document).
Format) data. That is, an instruction to generate a bitmap generated by decompressing the compressed picture plane data (a bitmap of the picture plane data), and each character or line drawing included in the character / line drawing plane data is drawn on the bitmap of the picture plane data. PDF data including an instruction to be executed.

ここで文字線画プレーンデータに含まれる各文字や線画を描画させる指示は、文字線画圧縮データと、これに関連する代表色の情報と基本矩形等の座標情報との組を一つずつ読み出し、それぞれの組について、文字線画圧縮データを伸長して二値化画像を生成し、この二値化画像の黒画素の色を代表色に設定し、絵柄プレーンデータのビットマップ上において、上記基本矩形等の座標情報として設定された位置に透過合成する指示である。ここで透過合成とは、二値化画像のうち黒画素(代表色に設定された画素)以外の画素については上書きせず、代表色に設定された画素のみを上書きすることをいう。   Here, the instruction to draw each character or line drawing included in the character line drawing plane data is to read out the character line drawing compressed data, the representative color information related to this and the coordinate information such as the basic rectangle one by one, For the set of the above, the character line drawing compressed data is expanded to generate a binarized image, the color of the black pixel of the binarized image is set as the representative color, and the basic rectangle etc. on the bitmap of the picture plane data This is an instruction for transparent composition at the position set as the coordinate information. Here, “transparent composition” means that pixels other than black pixels (pixels set as representative colors) in the binarized image are not overwritten, but only pixels set as representative colors are overwritten.

圧縮処理部27は、この生成したPDFデータを記憶部12に格納し、または画像出力部14にこのPDFデータを出力して、外部の装置に送出させる。   The compression processing unit 27 stores the generated PDF data in the storage unit 12 or outputs the PDF data to the image output unit 14 to send it to an external device.

[動作]
本実施の形態の画像処理装置は、上述の構成を有しているので、次のように動作する。ここでは図14(a)に示すような文字部分(T1,T2)と、写真部分(P)と、線画部分としての地図部分(M)とを含むドキュメントが画像入力部13から入力され、このドキュメントの画像データを処理対象とする場合を例として説明する。この図14(a)の例においては写真部分(P)内に文字部分の一部(T2)が重ね合わせられている。また地図部分(M)には、道路線図と文字とが入組んでいる。なお、ここでは便宜的に白黒で示しているが、実際には地図部分の道路線図と文字とは互いに異なる色で表され、写真はカラーで構わない。
[Operation]
Since the image processing apparatus according to the present embodiment has the above-described configuration, it operates as follows. Here, a document including a character part (T1, T2) as shown in FIG. 14A, a photograph part (P), and a map part (M) as a line drawing part is input from the image input unit 13, and this A case where image data of a document is a processing target will be described as an example. In the example of FIG. 14A, a part (T2) of the character part is superimposed on the photograph part (P). The map portion (M) includes a road map and characters. Here, although shown in black and white for the sake of convenience, the road map and characters in the map portion are actually represented in different colors, and the photograph may be in color.

前処理部21は、この画像データの画素値を所定色空間(YCbCr)の値に変換する。絵柄候補部分特定処理部22は、この画像データ(元の画像データ)を二値化処理し、その小領域を除去して文字部分(T1)や線図(M)を除去した画像データを生成する(図14(b))。このとき、文字や道路線図のほとんどが除去されるが(部分的に残存しても構わない)、写真部分に重ね合わせられた文字は、そのまま絵柄候補部分として特定された状態となる。   The preprocessing unit 21 converts the pixel value of the image data into a value of a predetermined color space (YCbCr). The pattern candidate portion specifying processing unit 22 binarizes the image data (original image data), and generates image data from which the character region (T1) and the diagram (M) are removed by removing the small area. (FIG. 14B). At this time, most of the characters and the road map are removed (may be partially left), but the characters superimposed on the photograph portion are in a state of being directly specified as the pattern candidate portion.

文字線画抽出処理部23は、元の画像データを二値化し、小領域部分を特定するなどの方法で文字線画部分を抽出する。この際において、元の画像データを複数の領域に分割し、分割して得られた各領域ごとに二値化のしきい値を適応的に定める方法(特許文献2に開示の方法など)によって二値化を行うことで、地図等着色された部分からも文字の抽出を可能としている(図14(c))。   The character / line drawing extraction processing unit 23 binarizes the original image data and extracts the character / line drawing portion by a method such as specifying a small area portion. At this time, the original image data is divided into a plurality of areas, and a binarization threshold value is adaptively determined for each area obtained by the division (such as the method disclosed in Patent Document 2). By performing binarization, characters can be extracted from a colored portion such as a map (FIG. 14C).

レイアウト処理部24は、絵柄候補部分内でレイアウト解析処理を行い、絵柄候補部分内に残存する文字部分(T2)を抽出する。同一色領域分離部25は、文字線画抽出処理部23やレイアウト処理部24で抽出された文字部分や線図部分について、その代表色を定める。本実施の形態において特徴的なことの一つは、ここで元の画像データが画像入力部13での読取誤差や元の画像データのエンコードの特性(例えばJPEGエンコードにおけるモスキートノイズ)によって本来一色であった文字線画部分に複数の色が混ざり合う場合があることに配慮し、これらの画素を平滑化し、さらに輝度成分について暗いものをより暗く、明るい部分をより明るくする補正を行うことである。この補正を平滑化処理とともに行うことで、平滑化処理によって輝度部分に生じる変動を抑制し、文字や線画の代表色と元の画像データにおける色と違和感のないように設定できるようになる。なお、色差成分も併せて補正することとしてもよい。   The layout processing unit 24 performs a layout analysis process in the pattern candidate part, and extracts a character part (T2) remaining in the pattern candidate part. The same color region separation unit 25 determines a representative color for the character portion or the diagram portion extracted by the character / line drawing extraction processing unit 23 or the layout processing unit 24. One characteristic of the present embodiment is that the original image data is originally one color due to the reading error in the image input unit 13 and the characteristics of the encoding of the original image data (for example, mosquito noise in JPEG encoding). In consideration of the fact that a plurality of colors may be mixed in a certain character / line image portion, these pixels are smoothed, and further, a correction is made to make dark portions darker and light portions brighter with respect to luminance components. By performing this correction together with the smoothing process, it is possible to suppress a variation that occurs in the luminance portion due to the smoothing process, and to set the representative color of the character or line drawing and the color in the original image data so that there is no sense of incongruity. The color difference component may also be corrected together.

こうして制御部11は、各文字・線画部分(T1,T2,M)のそれぞれについてその領域を画定する座標情報と、その領域内部の画素の代表色を表す情報と、その領域内部で代表色とするべき部分を特定する二値ビットマップデータの圧縮画像とを組とした文字線画プレーンデータを生成する。   In this way, the control unit 11 performs coordinate information demarcating the area for each character / line drawing portion (T1, T2, M), information indicating the representative color of the pixel in the area, and the representative color in the area. Character line drawing plane data is generated by combining a compressed image of binary bitmap data specifying a portion to be processed.

穴埋処理部26は、絵柄候補部分から、それに内在していた文字部分(T2)を除去した画像データを生成する(図14(d))。なお、本来は文字部分T2の文字形状通りに白抜きとなるのであるが、図14(d)では図面を見やすくするため当該文字形状を含む矩形部分を白抜きにして図示している。また、図14(d)、(e)は絵柄画像部分のみを図示している。そして穴埋処理部26が当該除去された画素の値を、スキャンライン順で最近傍の画素値(除去されていない画素値)に設定して(図14(e))、絵柄プレーンデータを生成する。   The burial processing unit 26 generates image data obtained by removing the character portion (T2) inherent in the pattern candidate portion (FIG. 14D). Originally, the character portion T2 is outlined as in the character shape, but in FIG. 14D, the rectangular portion including the character shape is illustrated in white to make the drawing easier to see. FIGS. 14D and 14E show only the pattern image portion. Then, the hole filling processing unit 26 sets the value of the removed pixel to the nearest pixel value (the pixel value that has not been removed) in the scan line order (FIG. 14E), and generates the picture plane data. To do.

圧縮処理部27は、絵柄プレーンデータについてJPEG圧縮を行い、文字線画プレーンデータと組み合せてPDFデータを生成し、これを画像出力部14に出力する。画像出力部14は、このPDFデータを外部の装置に出力する。   The compression processing unit 27 performs JPEG compression on the pattern plane data, generates PDF data in combination with the character line drawing plane data, and outputs this to the image output unit 14. The image output unit 14 outputs the PDF data to an external device.

ここで圧縮処理部27は、絵柄プレーンデータについてJPEG圧縮の前に画像のサイズを縮小する処理(縮小処理)を行って圧縮率をより向上させることとしてもよい。   Here, the compression processing unit 27 may perform processing (reduction processing) for reducing the size of the image before JPEG compression on the pattern plane data to further improve the compression rate.

[第2実施形態]
次に、本発明の第2の実施の形態に係る画像処理装置について説明する。本実施の形態の画像処理装置は、図1に示した第1の実施の形態に係る画像処理装置と同様の構成を採るものであるが、制御部11における処理の一部が異なる。
[Second Embodiment]
Next, an image processing apparatus according to the second embodiment of the present invention will be described. The image processing apparatus according to the present embodiment has the same configuration as that of the image processing apparatus according to the first embodiment shown in FIG. 1, but part of the processing in the control unit 11 is different.

すなわち、本実施の形態の制御部11が実行する処理は、図15に機能的に示すように、画像入力部13から入力される画像データを処理対象として、この処理対象となった画像データに対して、所定前処理を行う前処理部21と、グレイ変換部61と、しきい値算出部62と、単純二値化部63と、第1レイアウト処理部64と、浮動二値化部65と、処理領域設定部66と、第2レイアウト処理部67と、文字部分統合処理部68と、同一色領域分離部25と、穴埋処理部26と、圧縮処理部27とを含んで構成されている。なお、図2に示した処理と同様の構成となる部分については同一の符号を付して詳細な説明を省略する。   That is, the processing executed by the control unit 11 of the present embodiment is, as functionally shown in FIG. 15, the image data input from the image input unit 13 as a processing target, and the image data that is the processing target. On the other hand, a preprocessing unit 21 that performs predetermined preprocessing, a gray conversion unit 61, a threshold value calculation unit 62, a simple binarization unit 63, a first layout processing unit 64, and a floating binarization unit 65. A processing region setting unit 66, a second layout processing unit 67, a character part integration processing unit 68, a same color region separation unit 25, a hole filling processing unit 26, and a compression processing unit 27. ing. Note that portions having the same configuration as the processing illustrated in FIG. 2 are denoted by the same reference numerals, and detailed description thereof is omitted.

グレイ変換部61は、前処理部21が入力する画像データから輝度成分を抽出して、色差成分のないグレイスケールの画像データ(グレイ画像データ)を生成する。しきい値算出部62は、グレイ画像データの特定の場所の画素に基づいて二値化のしきい値を決定する。このしきい値算出部62は、例えば四隅の画素の画素値の平均を算出し、当該平均の値を二値化のしきい値として決定する。   The gray conversion unit 61 extracts a luminance component from the image data input by the preprocessing unit 21, and generates gray scale image data (gray image data) having no color difference component. The threshold calculation unit 62 determines a binarization threshold based on a pixel at a specific location in the gray image data. The threshold value calculation unit 62 calculates, for example, an average of pixel values of pixels at four corners, and determines the average value as a threshold value for binarization.

単純二値化部63は、グレイ画像データの各画素のうち、しきい値算出部62が決定した二値化のしきい値(第1の条件)を越える画素値の画素を白画素、それ以外の画素を黒画素とした第1の二値化画像データを生成する。   The simple binarization unit 63 sets, as a white pixel, a pixel having a pixel value exceeding the binarization threshold (first condition) determined by the threshold calculation unit 62 among the pixels of the gray image data. First binarized image data in which the other pixels are black pixels is generated.

第1レイアウト処理部64は、第1の二値化画像データに対して所定のレイアウト解析処理(第1レイアウト解析処理)を行って、第1の文字部分特定情報を生成する。この第1レイアウト処理部64の具体的動作については、後に詳しく述べる。   The first layout processing unit 64 performs a predetermined layout analysis process (first layout analysis process) on the first binarized image data to generate first character part specifying information. The specific operation of the first layout processing unit 64 will be described in detail later.

浮動二値化部65は、グレイ画像データに対して、特許文献2に開示された方法によって二値化処理を行い、第2の二値化画像データを生成する。例えば、グレイ画像データの各画素を順次注目画素として選択し、注目画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を定め、当該局所的な二値化しきい値よりも当該注目画素の画素値が大きい場合に注目画素を白画素、小さい場合に注目画素を黒画素と設定していく。これにより第2の二値化画像データが生成される。   The floating binarization unit 65 performs binarization processing on the gray image data by the method disclosed in Patent Document 2 to generate second binarized image data. For example, each pixel of gray image data is sequentially selected as a target pixel, and a local binarization threshold value is determined based on an average value of pixel values in the vicinity of the target pixel. When the pixel value of the target pixel is large, the target pixel is set as a white pixel, and when the pixel value is small, the target pixel is set as a black pixel. As a result, second binarized image data is generated.

処理領域設定部66は、第1文字部分データ上でオンとなっている画素に対応する、第2の二値化画像データ上の画素の値を白画素に変更する。これにより、第1レイアウト処理部64によって文字部分として既に抽出された画素については、以下の処理を行わないように設定するのである。   The processing area setting unit 66 changes the value of the pixel on the second binarized image data corresponding to the pixel turned on in the first character partial data to a white pixel. Thereby, the pixel already extracted as the character part by the first layout processing unit 64 is set not to perform the following processing.

第2レイアウト処理部67は、処理領域設定部66によって処理された第2の二値化画像データについて、所定のレイアウト解析処理(第2レイアウト解析処理)を行って第2の文字部分特定情報を生成する。この第2レイアウト処理部67の具体的動作については、後に詳しく述べる。   The second layout processing unit 67 performs a predetermined layout analysis process (second layout analysis process) on the second binarized image data processed by the processing area setting unit 66 to obtain the second character part specifying information. Generate. The specific operation of the second layout processing unit 67 will be described in detail later.

文字部分統合処理部68は、第1の文字部分特定情報と第2の文字部分特定情報とを統合(透過合成)して、統合文字部分特定情報を生成し、記憶部12に格納する。従って同一色領域分離部25は、前処理部21が出力する画像データのうち、この統合文字部分特定情報によって特定される部分が文字部分であるとして処理を行うことになる。なお、ここでの透過合成とは、2つのデータの対応する画素について論理和(いずれか一方でも黒画素であれば、結果を黒画素とする)を演算し、対応する画素の値とする合成方法である。   The character part integration processing unit 68 integrates (transparent synthesis) the first character part specifying information and the second character part specifying information, generates integrated character part specifying information, and stores it in the storage unit 12. Therefore, the same color region separation unit 25 performs processing assuming that the part specified by the integrated character part specifying information is the character part in the image data output from the preprocessing unit 21. In this case, the transparent composition is a composition in which a logical sum is calculated for corresponding pixels of two data (if either one is a black pixel, the result is a black pixel) and the value of the corresponding pixel is calculated. Is the method.

また、穴埋処理部26は、前処理部21が出力する画像データのうち、この統合文字部分特定データによって特定されない部分(統合文字部分特定データの各画素値を反転したデータによって特定される部分)を絵柄部分であるとして処理を行うことになる。   Further, the hole filling processing unit 26 is a portion not specified by the integrated character portion specifying data (a portion specified by data obtained by inverting each pixel value of the integrated character portion specifying data) in the image data output from the preprocessing unit 21. ) Is processed as a picture part.

ここで第1レイアウト処理部64と、第2レイアウト処理部67との動作について説明する。これらのレイアウト処理部が行うレイアウト解析処理は、具体的には第1の実施の形態に係る制御部11におけるレイアウト処理部24の動作とほぼ同様の処理である。   Here, operations of the first layout processing unit 64 and the second layout processing unit 67 will be described. Specifically, the layout analysis processing performed by these layout processing units is substantially the same as the operation of the layout processing unit 24 in the control unit 11 according to the first embodiment.

尤も、第1レイアウト処理部64については、絵柄領域を二値化処理によって除去した結果に対して処理が行われると考えられるため、ノイズ判定部48の処理は必ずしも必要でない。すなわち、第1レイアウト処理部64は、二値化処理部41と、連結画素抽出部42と、基本矩形画定部43と、第1セパレータ検出部44と、行矩形画定部45と、第2セパレータ検出部46と、文字領域画定部47と、文字部分特定部49とを含んで構成される。この場合、文字部分特定部49は、文字領域画定部47が生成した文字領域データベースを記憶部12から読出して、当該文字領域データベースに含まれる文字領域(文字領域の座標情報そのもの)、または当該文字領域内の黒画素部分(文字領域の座標情報と、黒画素部分からなるビットマップ情報)を文字部分として特定し、当該文字部分を特定する情報(第1の文字部分特定情報)を記憶部12に格納する。   However, since it is considered that the first layout processing unit 64 is processed for the result of removing the pattern area by the binarization process, the process of the noise determination unit 48 is not necessarily required. That is, the first layout processing unit 64 includes a binarization processing unit 41, a connected pixel extraction unit 42, a basic rectangle defining unit 43, a first separator detecting unit 44, a row rectangle defining unit 45, and a second separator. The detection unit 46, a character region defining unit 47, and a character part specifying unit 49 are included. In this case, the character part specifying unit 49 reads the character region database generated by the character region defining unit 47 from the storage unit 12, and includes the character region (character region coordinate information itself) included in the character region database or the character. A black pixel portion in the region (coordinate information of the character region and bitmap information including the black pixel portion) is specified as a character portion, and information (first character portion specifying information) specifying the character portion is stored in the storage unit 12. To store.

また、第2レイアウト処理部67は、第1の実施の形態に係る制御部11におけるレイアウト処理部24と同様に、二値化処理部41と、連結画素抽出部42と、基本矩形画定部43と、第1セパレータ検出部44と、行矩形画定部45と、第2セパレータ検出部46と、文字領域画定部47と、ノイズ判定部48と、文字部分特定部49とを含んで構成される。この第2レイアウト処理部67の文字部分特定部49が第2の文字部分特定情報を生成して記憶部12に格納する。   In addition, the second layout processing unit 67 is similar to the layout processing unit 24 in the control unit 11 according to the first embodiment, and includes a binarization processing unit 41, a connected pixel extraction unit 42, and a basic rectangle defining unit 43. A first separator detection unit 44, a line rectangle defining unit 45, a second separator detecting unit 46, a character region defining unit 47, a noise determining unit 48, and a character part specifying unit 49. . The character part specifying unit 49 of the second layout processing unit 67 generates second character part specifying information and stores it in the storage unit 12.

これらの各部は、いずれも第1の実施の形態において同一の符号を付して説明したものとほぼ同様であるので、繰り返しての説明を省略する。   Since these parts are almost the same as those described with the same reference numerals in the first embodiment, the repeated description is omitted.

次に、本実施の形態の画像処理装置の動作について、第1の実施の形態の動作の説明と同様に、図14(a)に示したドキュメントが画像入力部13から入力され、このドキュメントの画像データを処理対象とする場合を例として説明する。   Next, as for the operation of the image processing apparatus according to the present embodiment, the document shown in FIG. 14A is input from the image input unit 13 as in the description of the operation of the first embodiment. A case where image data is a processing target will be described as an example.

前処理部21は、この画像データの画素値を所定色空間(YCbCr)の値に変換する。グレイ変換部61はこの画像データ(元の画像データ)の輝度成分(Y成分)を取り出して、グレイスケールのグレイ画像データを生成する。しきい値算出部62は、グレイ画像データの四隅の画素の画素値の平均を算出し、当該平均の値を二値化のしきい値として決定し、単純二値化部63は、グレイ画像データの各画素のうち、しきい値算出部62が決定した二値化のしきい値(第1の条件)を越える画素値の画素を白画素、それ以外の画素を黒画素とした第1の二値化画像データを生成する。この第1の二値化画像データは、図16(a)に示すようなものとなる。第1レイアウト処理部64は、第1の二値化画像データに対して第1レイアウト解析処理を行って、第1の文字部分特定情報を生成する。この第1レイアウト解析処理では、画素塊ごとの外接矩形のサイズや、各外接矩形間の位置関係やサイズの比較から文字部分が特定される。すなわち図14(a)の例では、T1を含む領域が第1の文字部分特定情報によって特定される(図16(b))。   The preprocessing unit 21 converts the pixel value of the image data into a value of a predetermined color space (YCbCr). The gray conversion unit 61 extracts the luminance component (Y component) of the image data (original image data), and generates gray-scale gray image data. The threshold calculation unit 62 calculates the average of the pixel values of the pixels at the four corners of the gray image data, determines the average value as a threshold for binarization, and the simple binarization unit 63 Among the pixels of the data, a pixel having a pixel value exceeding the binarization threshold (first condition) determined by the threshold calculation unit 62 is a white pixel, and the other pixels are black pixels. The binarized image data is generated. The first binarized image data is as shown in FIG. The first layout processing unit 64 performs a first layout analysis process on the first binarized image data to generate first character part specifying information. In the first layout analysis process, the character portion is specified from the size of the circumscribed rectangle for each pixel block and the positional relationship and size comparison between the circumscribed rectangles. That is, in the example of FIG. 14A, the region including T1 is specified by the first character portion specifying information (FIG. 16B).

浮動二値化部65は、グレイ画像データに対して、その各画素を順次注目画素として選択し、注目画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を定め、当該局所的な二値化しきい値よりも当該注目画素の画素値が大きい場合に注目画素を白画素、小さい場合に注目画素を黒画素と設定していく。これにより第2の二値化画像データ(図16(c))が生成される。   The floating binarization unit 65 sequentially selects each pixel as a target pixel for gray image data, determines a local binarization threshold based on an average value of pixel values near the target pixel, and When the pixel value of the target pixel is larger than the local binarization threshold, the target pixel is set as a white pixel, and when the pixel value is smaller, the target pixel is set as a black pixel. As a result, second binarized image data (FIG. 16C) is generated.

図16(c)では、絵柄に含まれる文字部分(T2)が当該絵柄の背景から分離されて黒画素となっている。また、絵柄部分のうち、一部は黒画素となることがある。なお、絵柄以外の文字部分T1等は、単純二値化の結果と同様のものとなる。   In FIG. 16C, the character portion (T2) included in the design is separated from the background of the design and becomes a black pixel. In addition, some of the pattern portions may be black pixels. Note that the character portion T1 and the like other than the picture are the same as the result of the simple binarization.

処理領域設定部66は、第1文字部分データ上でオンとなっている画素に対応する、第2の二値化画像データ上の画素の値、又は第1レイアウト処理部64によって文字部分として画定された領域に対応する領域内の画素を白画素に変更する(図16(d))。第2レイアウト処理部67は、図16(d)に示した、処理領域を設定した後の第2の二値化画像データについて、第2レイアウト解析処理を行って第2の文字部分特定情報を生成する。この処理においては、小さい画素塊などが除去されるなどとなり、絵柄内の文字部分T2が特定され、当該文字部分T2を含む領域が、第2の文字部分特定情報によって画定される(図17(a))。   The processing area setting unit 66 defines the value of the pixel on the second binarized image data corresponding to the pixel that is turned on on the first character part data, or the character part by the first layout processing unit 64. The pixel in the region corresponding to the region that has been changed is changed to a white pixel (FIG. 16D). The second layout processing unit 67 performs the second layout analysis processing on the second binarized image data after setting the processing area shown in FIG. Generate. In this processing, a small pixel block or the like is removed, the character portion T2 in the pattern is specified, and the region including the character portion T2 is defined by the second character portion specifying information (FIG. 17 ( a)).

文字部分統合処理部68は、第1の文字部分特定情報と第2の文字部分特定情報とを統合(透過合成)して、統合文字部分特定情報(図17(b))を生成する。この統合文字部分特定情報には、従って文字部分T1とT2とを画定する情報が含まれる。この統合文字部分特定情報は、記憶部12に格納される。   The character part integration processing unit 68 integrates (transparent synthesis) the first character part specifying information and the second character part specifying information to generate integrated character part specifying information (FIG. 17B). Accordingly, the integrated character portion specifying information includes information that defines the character portions T1 and T2. The integrated character part specifying information is stored in the storage unit 12.

同一色領域分離部25は、統合文字部分特定情報によって特定された文字部分について、その代表色を定める。そしてこれにより、各文字部分(T1,T2)のそれぞれについてその領域を画定する座標情報と、その領域内部の画素の代表色を表す情報と、その領域内部で代表色とするべき部分を特定する二値ビットマップデータの圧縮画像とを組とした文字プレーンデータを生成する。   The same color region separation unit 25 determines a representative color for the character portion specified by the integrated character portion specifying information. As a result, for each character part (T1, T2), coordinate information demarcating the area, information representing the representative color of the pixels in the area, and the part to be the representative color in the area are specified. Character plane data is generated by combining a binary bitmap data compressed image.

穴埋処理部26は、前処理部21が出力する画像データのうち、この統合文字部分特定データによって特定されない部分を取り出す。図14(a)に示した例においては、絵柄部分Pに内在していた文字部分(T2)を除去し、この除去処理後の絵柄部分と、線図部分Mとが処理対象となる。そしてこの処理対象部分について、上記除去された画素の値を、スキャンライン順で最近傍の画素値(除去されていない画素値)に設定して、絵柄プレーンデータを生成する。   The burying processing unit 26 extracts a portion that is not specified by the integrated character portion specifying data from the image data output by the preprocessing unit 21. In the example shown in FIG. 14A, the character portion (T2) inherent in the pattern portion P is removed, and the pattern portion after this removal processing and the diagram portion M are processed. And about this process target part, the value of the said removed pixel is set to the nearest pixel value (pixel value which is not removed) in the scanning line order, and design plane data is produced | generated.

圧縮処理部27は、絵柄プレーンデータについてJPEG圧縮を行い、文字プレーンデータと組み合せてPDFデータを生成し、これを画像出力部14に出力する。画像出力部14は、このPDFデータを外部の装置に出力する。   The compression processing unit 27 performs JPEG compression on the pattern plane data, generates PDF data in combination with the character plane data, and outputs this to the image output unit 14. The image output unit 14 outputs the PDF data to an external device.

ここで圧縮処理部27は、絵柄プレーンデータについてJPEG圧縮の前に画像のサイズを縮小する処理(縮小処理)を行って圧縮率をより向上させることとしてもよい。   Here, the compression processing unit 27 may perform processing (reduction processing) for reducing the size of the image before JPEG compression on the pattern plane data to further improve the compression rate.

なお、ここでは線画を絵柄プレーンデータに含めるようにしているが、例えば単純二値化の結果であって、統合文字部分特定情報によって文字部分として特定されない領域(M)を線画領域として、穴埋処理部26において、前処理部21が出力する画像データのうち、統合文字部分特定データ及び線画領域によって特定されない領域(図14(a)における領域Pから文字部分T2を除去した領域)を絵柄領域として処理してもよい。   Although the line drawing is included in the pattern plane data here, for example, the area (M) which is a result of simple binarization and is not specified as the character part by the integrated character part specifying information is used as the line drawing area. In the processing unit 26, a region that is not specified by the integrated character portion specifying data and the line drawing region (the region obtained by removing the character portion T 2 from the region P in FIG. 14A) among the image data output by the preprocessing unit 21 is a pattern region. You may process as.

この場合は、当該線画領域を画定する座標情報と、その内部のビットマップデータとを線画プレーンデータとして生成し、圧縮処理部27において、ランレングス圧縮、又はLZ(Lampel-Ziv)法等、辞書方式を基礎とした圧縮法(例えばzip等のフレート(flate)圧縮)を行い、文字プレーンデータと線画プレーンデータと絵柄プレーンデータとを含むPDFデータを生成し、これを画像出力部14に出力することとしてもよい。   In this case, coordinate information defining the line drawing area and bitmap data inside the line drawing area are generated as line drawing plane data, and the compression processing unit 27 uses a dictionary such as run length compression or LZ (Lampel-Ziv) method. A compression method based on a method (for example, flat compression such as zip) is performed to generate PDF data including character plane data, line drawing plane data, and design plane data, and output this to the image output unit 14 It is good as well.

本発明の第1の実施の形態に係る画像処理装置の一例を表す構成ブロック図である。1 is a configuration block diagram illustrating an example of an image processing apparatus according to a first embodiment of the present invention. 本発明の第1の実施の形態に係る画像処理装置の制御部によって実行される処理内容を表す機能ブロック図である。It is a functional block diagram showing the processing content performed by the control part of the image processing apparatus which concerns on the 1st Embodiment of this invention. 絵柄候補部分特定処理部22の処理内容例を表す機能ブロック図である。It is a functional block diagram showing the example of the processing content of the pattern candidate part specific process part. 属性判定部34の処理例を表すフローチャート図である。FIG. 6 is a flowchart illustrating a processing example of an attribute determination unit 34. 絵柄候補部分特定処理部22の処理例を表す説明図である。It is explanatory drawing showing the process example of the pattern candidate part specific process part. レイアウト処理部24の処理内容例を表す機能ブロック図である。4 is a functional block diagram illustrating an example of processing contents of a layout processing unit 24. FIG. レイアウト処理部24の処理例を表す説明図である。7 is an explanatory diagram illustrating a processing example of a layout processing unit 24. FIG. レイアウト処理部24の処理例を表すフローチャート図である。FIG. 6 is a flowchart illustrating a processing example of a layout processing unit 24. レイアウト処理部24の処理例を表すフローチャート図である。FIG. 6 is a flowchart illustrating a processing example of a layout processing unit 24. 同一色領域分離部25の処理内容例を表す機能ブロック図である。6 is a functional block diagram illustrating an example of processing contents of the same color region separation unit 25. FIG. 同一色領域分離部25の処理例を表す説明図である。11 is an explanatory diagram illustrating a processing example of the same color region separation unit 25. FIG. 同一色領域分離部25において利用されるトーンカーブの例を表す説明図である。It is explanatory drawing showing the example of the tone curve utilized in the same color area separation part 25. FIG. 同一色領域分離部25における補正処理の処理条件を表す説明図である。FIG. 11 is an explanatory diagram illustrating processing conditions for correction processing in the same color region separation unit 25. 本発明の第1の実施の形態に係る画像処理装置の処理例を表す説明図である。It is explanatory drawing showing the process example of the image processing apparatus which concerns on the 1st Embodiment of this invention. 本発明の第2の実施の形態に係る画像処理装置の制御部によって実行される処理内容を表す機能ブロック図である。It is a functional block diagram showing the processing content performed by the control part of the image processing apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態に係る画像処理装置の処理例を表す説明図である。It is explanatory drawing showing the process example of the image processing apparatus which concerns on the 2nd Embodiment of this invention. 本発明の第2の実施の形態に係る画像処理装置の処理例を表す説明図である。It is explanatory drawing showing the process example of the image processing apparatus which concerns on the 2nd Embodiment of this invention.

符号の説明Explanation of symbols

11 制御部、12 記憶部、13 画像入力部、14 画像出力部、21 前処理部、22 絵柄候補部分特定処理部、23 文字線画抽出処理部、24 レイアウト処理部、25 同一色領域分離部、26 穴埋処理部、27 圧縮処理部、31,41 二値化処理部、32,42 連結画素抽出部、33 特徴量算出部、34 属性判定部、35 非絵柄領域処理部、36 背景領域塗潰部、37 絵柄候補領域作成部、38 膨張収縮部、43 基本矩形画定部、44 第1セパレータ検出部、45 行矩形画定部、46 第2セパレータ検出部、47 文字領域画定部、48 ノイズ判定部、49 文字部分特定部、51 色数判定部、52 第1代表色決定部、53 第2代表色決定部、54 限定色化部、61 グレイ変換部、62 しきい値算出部、63 単純二値化部、64 第1レイアウト処理部、65 浮動二値化部、66 処理領域設定部、67 第2レイアウト処理部、68 文字部分統合処理部。
DESCRIPTION OF SYMBOLS 11 Control part, 12 Storage part, 13 Image input part, 14 Image output part, 21 Pre-processing part, 22 Picture candidate part specific processing part, 23 Character line drawing extraction processing part, 24 Layout processing part, 25 Same color area separation part, 26 burial processing unit, 27 compression processing unit, 31, 41 binarization processing unit, 32, 42 connected pixel extraction unit, 33 feature amount calculation unit, 34 attribute determination unit, 35 non-pattern region processing unit, 36 background region coating Crushing part, 37 Design candidate area creating part, 38 Expansion / contraction part, 43 Basic rectangle defining part, 44 First separator detecting part, 45 line rectangle defining part, 46 Second separator detecting part, 47 Character area defining part, 48 Noise determination Part, 49 character part identification part, 51 color number determination part, 52 first representative color determination part, 53 second representative color determination part, 54 limited colorization part, 61 gray conversion part, 62 threshold value calculation part, 63 simple Binarization part, 4 first layout processing unit, 65 a floating binarization unit 66 processing area setting unit, 67 second layout processing unit, 68 character part integration processing unit.

Claims (3)

処理対象となった画像データについて、当該画像データを構成する各画素が、文字部分と絵柄部分とのいずれに属するかを判断し、当該判断の結果に基づいて文字部分と絵柄部分との少なくとも一方を抽出する画像処理装置であって、
前記画像データに対して一つに定められた第1条件を用いて、前記画像データの各画素の値を二値化して第1の二値化データを生成する手段と、
当該第1の二値化データに基づいて、各画素文字部分と絵柄部分とに分離する第1分離手段と、
前記画像データの各画素について、各画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を第2条件として定め、当該局所的に定めた第2条件を用いて、前記画像データの各画素の値を二値化して第2の二値化データを生成する手段と、
当該第2の二値化データに基づいて、前記第1分離手段により分離された絵柄部分の少なくとも一部各画素文字部分と絵柄部分とに分離する第2分離手段と、
前記第1分離手段による判断結果と第2分離手段による判断結果とに基づいて、前記画像データから文字部分と絵柄部分との少なくとも一方を抽出する手段と、
を含むことを特徴とする画像処理装置。
For image data to be processed, it is determined whether each pixel constituting the image data belongs to a character part or a picture part, and at least one of the character part and the picture part based on the result of the determination An image processing apparatus for extracting
Means for generating first binarized data by binarizing the value of each pixel of the image data using a first condition defined as one for the image data;
First separation means for separating each pixel into a character part and a picture part based on the first binarized data;
For each pixel of the image data , a local binarization threshold is determined as a second condition based on an average value of pixel values in the vicinity of each pixel , and the image is generated using the locally determined second condition. Means for binarizing the value of each pixel of data to generate second binarized data;
The on the basis of the second binary data, and second separating means for separating the character portion and the picture portion of each pixel of at least a portion of the separated picture portion by said first separating means,
Based on the determination result by the determination result by the first separating means the second separation means, means for extracting at least one of the character portion and the picture portion from the image data,
An image processing apparatus comprising:
請求項1に記載の画像処理装置において、
前記第1分離手段と第2分離手段とは、それぞれ第1、第2の二値化データに基づくレイアウト解析処理を行って、どの画素が文字部分に属する画素であるかを判断することを特徴とする画像処理装置。
The image processing apparatus according to claim 1.
The first separation means and the second separation means perform layout analysis processing based on the first and second binarized data, respectively, and determine which pixels belong to the character portion. An image processing apparatus.
処理対象となった画像データについて、当該画像データを構成する各画素が、文字部分と絵柄部分とのいずれに属するかを判断し、当該判断の結果に基づいて文字部分と絵柄部分との少なくとも一方を抽出する画像処理プログラムであって、コンピュータ
前記画像データに対して一つに定められた第1条件を用いて、前記画像データの各画素の値を二値化して第1の二値化データを生成する手段と、
当該第1の二値化データに基づいて、各画素文字部分と絵柄部分とに分離する第1分離手段と、
前記画像データの各画素について、各画素近傍の画素値の平均値に基づいて局所的な二値化しきい値を第2条件として定め、当該局所的に定めた第2条件を用いて、前記画像データの各画素の値を二値化して第2の二値化データを生成する手段と、
当該第2の二値化データに基づいて、前記第1分離手段により分離された絵柄部分の少なくとも一部各画素文字部分と絵柄部分とに分離する第2分離手段と、
前記第1分離手段による判断結果と第2分離手段による判断結果とに基づいて、前記画像データから文字部分と絵柄部分との少なくとも一方を抽出する手段と、
として機能させることを特徴とする画像処理プログラム。
For image data to be processed, it is determined whether each pixel constituting the image data belongs to a character part or a picture part, and at least one of the character part and the picture part based on the result of the determination an image processing program for extracting a computer,
Means for generating first binarized data by binarizing the value of each pixel of the image data using a first condition defined as one for the image data;
First separation means for separating each pixel into a character part and a picture part based on the first binarized data;
For each pixel of the image data , a local binarization threshold is determined as a second condition based on an average value of pixel values in the vicinity of each pixel , and the image is generated using the locally determined second condition. Means for binarizing the value of each pixel of data to generate second binarized data;
The on the basis of the second binary data, and second separating means for separating the character portion and the picture portion of each pixel of at least a portion of the separated picture portion by said first separating means,
Based on the determination result by the determination result by the first separating means the second separation means, means for extracting at least one of the character portion and the picture portion from the image data,
An image processing program that functions as an image processing program.
JP2003421666A 2003-12-18 2003-12-18 Image processing apparatus and program Expired - Fee Related JP4193687B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003421666A JP4193687B2 (en) 2003-12-18 2003-12-18 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003421666A JP4193687B2 (en) 2003-12-18 2003-12-18 Image processing apparatus and program

Publications (3)

Publication Number Publication Date
JP2005184402A JP2005184402A (en) 2005-07-07
JP2005184402A5 JP2005184402A5 (en) 2007-01-25
JP4193687B2 true JP4193687B2 (en) 2008-12-10

Family

ID=34782795

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003421666A Expired - Fee Related JP4193687B2 (en) 2003-12-18 2003-12-18 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4193687B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4600491B2 (en) 2008-02-26 2010-12-15 富士ゼロックス株式会社 Image processing apparatus and image processing program
JP5648340B2 (en) * 2010-06-25 2015-01-07 富士ゼロックス株式会社 Image processing apparatus and program

Also Published As

Publication number Publication date
JP2005184402A (en) 2005-07-07

Similar Documents

Publication Publication Date Title
US10455117B2 (en) Image processing apparatus, method, and storage medium
US8644602B2 (en) Colour correcting foreground colours for visual quality improvement
US6865290B2 (en) Method and apparatus for recognizing document image by use of color information
US7158669B2 (en) Image compression method and apparatus, and image coding method and apparatus
JP4667062B2 (en) Image analysis apparatus, image analysis method, and blob identification apparatus
JP4071701B2 (en) Color image compression method and color image compression apparatus
EP1564684A2 (en) Systems and methods for clustering image data
JP2000175051A (en) Method for dividing digital image data, method for dividing data block and classification method
JP6743092B2 (en) Image processing apparatus, image processing control method, and program
US7526137B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP5645612B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP3715905B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP4217969B2 (en) Image processing apparatus and program
JP4035456B2 (en) Image compression method and image compression apparatus
JP4396331B2 (en) Image processing device
JP6370080B2 (en) Image processing apparatus, image processing method, and program.
JP4370950B2 (en) Image processing device
JP4259310B2 (en) Image processing apparatus and program
JP4182891B2 (en) Image processing device
JP4507656B2 (en) Image processing device
JP4193687B2 (en) Image processing apparatus and program
JP4311183B2 (en) Image processing apparatus and program
JP4329564B2 (en) Image processing device
JP4228905B2 (en) Image processing apparatus and program
JP4182873B2 (en) Image processing apparatus and program

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20061128

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061128

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20071112

RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20071115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20080214

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080226

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080404

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20111003

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20121003

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20121003

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20131003

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees