JP5090881B2 - Image processing apparatus and image processing program - Google Patents

Image processing apparatus and image processing program Download PDF

Info

Publication number
JP5090881B2
JP5090881B2 JP2007308877A JP2007308877A JP5090881B2 JP 5090881 B2 JP5090881 B2 JP 5090881B2 JP 2007308877 A JP2007308877 A JP 2007308877A JP 2007308877 A JP2007308877 A JP 2007308877A JP 5090881 B2 JP5090881 B2 JP 5090881B2
Authority
JP
Japan
Prior art keywords
image data
pixel
image
ruled line
image processing
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
JP2007308877A
Other languages
Japanese (ja)
Other versions
JP2009134427A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2007308877A priority Critical patent/JP5090881B2/en
Publication of JP2009134427A publication Critical patent/JP2009134427A/en
Application granted granted Critical
Publication of JP5090881B2 publication Critical patent/JP5090881B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像処理に係わり、特に、画像データから不必要な情報を除去する機能を具備した画像処理装置及び画像処理プログラムに関する。   The present invention relates to image processing, and more particularly, to an image processing apparatus and an image processing program having a function of removing unnecessary information from image data.

スキャナ等の画像読取装置で原稿を読み取って得られた画像データには、ノイズや影などユーザにとって不必要な情報が含まれる。特に、レポート用紙やキャンパスノートに文字等が書き込まれた罫線付き原稿を読み取って得られた画像データには、罫線の濃度が薄いためその全ての情報を読み取りきれず、罫線がユーザにとって不必要な情報として含まれる場合がある。   Image data obtained by reading a document with an image reading apparatus such as a scanner includes information unnecessary for the user, such as noise and shadows. In particular, the image data obtained by scanning a ruled manuscript in which characters or the like are written on a report paper or campus note cannot read all the information because the density of the ruled line is low, and the ruled line is unnecessary for the user. May be included as information.

図2(a)は、文字等が書き込まれた罫線付き原稿の説明図であり、図2(b)は、図2(a)に示す罫線付き原稿を読み取って得られた画像データの説明図である。これらの図から、明瞭な罫線1001、ノイズ1002及び影1003などの情報の他に、実際は連続線である罫線が、読取画像データ内では不規則的な長さで連続している点線或いは無数の点情報として含まれていることが分かる。このような罫線1004は、ノイズと同様、ユーザにとって不必要な情報である(以下、点線情報或いは点情報となった罫線を「不明瞭な罫線情報」と称す)。   FIG. 2A is an explanatory diagram of a ruled document with characters or the like written therein, and FIG. 2B is an explanatory diagram of image data obtained by reading the ruled document shown in FIG. It is. From these figures, in addition to information such as clear ruled lines 1001, noise 1002, and shadows 1003, ruled lines that are actually continuous lines are dotted lines or innumerable lines that are irregular in the read image data. It can be seen that it is included as point information. Such a ruled line 1004 is unnecessary information for the user, like noise (hereinafter, the ruled line that becomes the dotted line information or the point information is referred to as “unclear ruled line information”).

そこで、下記特許文献1及び下記特許文献2では、スキャナで読み取って得られた画像データから罫線情報を抽出し、該罫線情報を一括して除去することが開示されている。   Therefore, Patent Document 1 and Patent Document 2 below disclose that ruled line information is extracted from image data obtained by reading with a scanner, and the ruled line information is collectively removed.

また、下記特許文献3では、画像データから文字やノイズ等の各々に外接する矩形を抽出し、これらの外接矩形からノイズと成り得る候補を抽出し、該候補となった外接矩形と周辺の矩形との関係からノイズであるとみなす外接矩形であるか否か判定し、肯定判定した場合にこれを除去することが開示されている。
特許第3079508号公報 特開2002−366900号公報 特開2006−72839号公報
Further, in Patent Document 3 below, rectangles circumscribing each of characters, noises, and the like are extracted from image data, candidates that can be noise are extracted from these circumscribed rectangles, and the circumscribed rectangle and the surrounding rectangles that are candidates are extracted. It is disclosed that it is determined whether or not the rectangle is a circumscribed rectangle that is considered to be noise from the relationship, and is removed when an affirmative determination is made.
Japanese Patent No. 3079508 JP 2002-366900 A JP 2006-72839 A

しかしながら、上記特許文献1及び2の発明はいずれも、スキャナにより綺麗に読み取られ、罫線だと認識可能な情報(以下、「明瞭な罫線情報」と称す)を除去するものであって、上記不明瞭な罫線情報1004は除去されない。   However, the inventions of Patent Documents 1 and 2 both remove information that can be clearly read by a scanner and can be recognized as ruled lines (hereinafter referred to as “clear ruled line information”). Clear ruled line information 1004 is not removed.

また、上記特許文献3の発明は、専ら一般的なノイズ(ゴマ塩状の孤立点ノイズ等)を除去しており、上記不明瞭な罫線情報をノイズとみなして除去する記載はない。なお、不明瞭な罫線がノイズと同等とみなせる程度の点情報であれば、上記ノイズ除去処理を施して該不明瞭な罫線情報を除去することが可能ではあるが、一般に不明瞭な罫線全てがノイズと同等とみなせる程度の点情報になることはない。   Further, the invention of Patent Document 3 exclusively removes general noise (sesame salt-like isolated point noise or the like), and there is no description that the unclear ruled line information is regarded as noise and removed. Note that if the unclear ruled line is point information that can be regarded as equivalent to noise, it is possible to remove the unclear ruled line information by performing the above-described noise removal processing. The point information cannot be regarded as equivalent to noise.

本発明の目的は、上記問題点に鑑み、罫線付き画像データから明瞭な罫線情報は残し、不明瞭な罫線情報を除去することが可能な画像処理装置及び画像処理プログラムを提供することにある。   In view of the above problems, an object of the present invention is to provide an image processing apparatus and an image processing program capable of leaving clear ruled line information from ruled image data and removing unclear ruled line information.

本発明による画像処理装置の第1態様では、
罫線付き原稿を画像読取装置により読み取って得られたN×M画素数を有する画像データから不明瞭な罫線情報を除去する画像処理装置であって、
該画像データの一の画素を着目画素として、該着目画素を中心とするX×Y(X<<NかつY<<M)画素のマトリクス内で濃度が第1閾値以上の着色画素がなく、かつ、該着目画素を中心とするV×W(X<V<<NかつY<W<<M)画素のマトリクス内で該着目画素との色差又は濃度差が第2閾値以下の画素の個数が第3閾値より少ないときに、該着目画素の色値を白色値に変更して、該不明瞭な罫線情報に係わる画素を除去する罫線除去部、
を具備し、ここにN、M、X、Y、V及びWはそれぞれ正の整数であることを特徴とする。
In the first aspect of the image processing apparatus according to the present invention,
An image processing apparatus for removing unclear ruled line information from image data having N × M pixels obtained by reading a document with ruled lines by an image reading apparatus,
There is no colored pixel having a density equal to or higher than the first threshold in a matrix of X × Y (X << N and Y << M) pixels centered on the target pixel, with one pixel of the image data as the target pixel. The number of pixels having a color difference or density difference with respect to the pixel of interest within a matrix of V × W (X << V << N and Y << W << M) pixels centered on the pixel of interest is equal to or less than a second threshold value. A ruled line removal unit that changes the color value of the pixel of interest to a white value and removes pixels related to the unclear ruled line information when
Where N, M, X, Y, V, and W are each a positive integer.

本発明による画像処理装置の第2態様では、第1態様において、
該罫線除去部が該画像データに処理を施す前に、該画像データに対しぼかし処理を施すぼかし処理部をさらに具備することを特徴とする。
In the second aspect of the image processing apparatus according to the present invention, in the first aspect,
The image processing apparatus further includes a blur processing unit that performs blur processing on the image data before the ruled line removal unit performs processing on the image data.

本発明による画像処理装置の第3態様では、第1又は第2態様において、
該罫線除去部が該画像データに処理を施す前に、該画像データに対しノイズ除去処理を施すノイズ除去部をさらに具備することを特徴とする。
In the third aspect of the image processing apparatus according to the present invention, in the first or second aspect,
The image processing apparatus further includes a noise removal unit that performs noise removal processing on the image data before the ruled line removal unit performs processing on the image data.

本発明による画像処理装置の第4態様では、第3態様において、
該画像データから影情報を取り除く影除去部をさらに具備することを特徴とする。
In the fourth aspect of the image processing apparatus according to the present invention, in the third aspect,
The image processing apparatus further includes a shadow removing unit that removes shadow information from the image data.

本発明による画像処理装置の第5態様では、第4又は第5態様において、
上記各種画像処理の最後に、該画像データに対しシャープネス処理を施すシャープネス処理部をさらに具備することを特徴とする。
In the fifth aspect of the image processing apparatus according to the present invention, in the fourth or fifth aspect,
At the end of the various image processes, a sharpness processing unit for performing a sharpness process on the image data is further provided.

上記第1態様の構成によれば、罫線付き原稿を画像読取装置により読み取って得られたN×M画素数を有する画像データに対し、その一の画素を着目画素として、該着目画素を中心とするX×Y(X<<NかつY<<M)画素のマトリクス内で濃度が第1閾値以上の着色画素がなく、かつ、該着目画素を中心とするV×W(X<V<<NかつY<W<<M)画素のマトリクス内で該着目画素との色差又は濃度差が第2閾値以下の画素の個数が第3閾値より少ないときに、該着目画素の色値を白色値に変更するので、明瞭な罫線に係わる画素は残し、該不明瞭な罫線情報に係わる画素を除去することが可能であるという効果を奏する。   According to the configuration of the first aspect, with respect to image data having the number of N × M pixels obtained by reading an original with a ruled line by an image reading device, the one pixel is a pixel of interest and the pixel of interest is the center. In the X × Y (X << N and Y << M) pixel matrix, there is no colored pixel having a density equal to or higher than the first threshold, and V × W (X << V << When the number of pixels whose color difference or density difference with the target pixel is less than or equal to the second threshold value in the matrix of N and Y << W << M) is less than the third threshold value, the color value of the target pixel is a white value Therefore, it is possible to leave the pixels related to the clear ruled line and to remove the pixels related to the unclear ruled line information.

上記第2態様の構成によれば、罫線除去部が画像データに処理を施す前に、該画像データに対しぼかし処理を施すので、前処理の段階で不必要な情報を軽減することができ、罫線除去部はその前処理で除去しきれない情報についてのみ処理すればよく、罫線除去部の処理の負担を下げることが可能であるという効果を奏する。   According to the configuration of the second aspect, since the ruled line removal unit performs blurring processing on the image data before processing the image data, unnecessary information can be reduced in the preprocessing stage, The ruled line removal unit only needs to process information that cannot be removed by the pre-processing, and the processing load of the ruled line removal unit can be reduced.

上記第3態様の構成によれば、罫線除去部が画像データに処理を施す前に、該画像データに対しノイズ除去処理を施すので、前処理の段階で不必要な情報を軽減することができ、罫線除去部はその前処理で除去しきれない情報についてのみ処理すればよく、罫線除去部の処理の負担を下げることが可能であるという効果を奏する。   According to the configuration of the third aspect, since the noise removal processing is performed on the image data before the ruled line removal unit performs processing on the image data, unnecessary information can be reduced at the preprocessing stage. The ruled line removing unit only needs to process information that cannot be removed by the preprocessing, and it is possible to reduce the processing load of the ruled line removing unit.

上記第4態様の構成によれば、画像データから影情報を取り除くので、上記態様に比べ画像データから不必要な情報をさらに除去することができ、印刷コストの負担を下げることが可能であるという効果を奏する。   According to the configuration of the fourth aspect, the shadow information is removed from the image data. Therefore, unnecessary information can be further removed from the image data as compared with the above aspect, and the printing cost can be reduced. There is an effect.

上記第5態様の構成によれば、罫線除去部が画像データに処理を施した後に、画像データに対しシャープネス処理を施すので、上記態様に比べ画質を向上することが可能であるという効果を奏する。 According to the configuration of the fifth aspect, since the ruled line removal unit performs the sharpness process on the image data after processing the image data, it is possible to improve the image quality compared to the above aspect. .

本発明の他の目的、構成及び効果は以下の説明から明らかになる。   Other objects, configurations and effects of the present invention will become apparent from the following description.

[1]画像形成装置のハードウェア構成 [1] Hardware configuration of image forming apparatus

図5は、本発明の実施例1に係わる画像形成装置10のハードウェア構成を示す概略ブロック図である。画像形成装置10は、カラースキャン、カラープリント及びカラーコピーが可能なデジタルカラー画像形成装置である。   FIG. 5 is a schematic block diagram showing a hardware configuration of the image forming apparatus 10 according to the first embodiment of the present invention. The image forming apparatus 10 is a digital color image forming apparatus capable of color scanning, color printing, and color copying.

この画像形成装置10では、MPU11にインタフェース12を介してEEPROM13E1、EEPROM13E2、DRAM13D、HDD14、操作パネル15、スキャナ16S、プリンタ16P、NIC17、ファクシミリモデム18及び圧縮・伸張ASIC19が結合されている。図5では、簡単化のため、複数のインタフェースを1つのブロックで示している。   In this image forming apparatus 10, an EEPROM 13 E 1, EEPROM 13 E 2, DRAM 13 D, HDD 14, operation panel 15, scanner 16 S, printer 16 P, NIC 17, facsimile modem 18, and compression / decompression ASIC 19 are coupled to the MPU 11 via an interface 12. In FIG. 5, a plurality of interfaces are shown as one block for the sake of simplicity.

EEPROM13E1及び13E2は、例えばフラッシュメモリである。EEPROM13E1には、BIOS(Basic Input Output System)が格納されている。EEPROM13E2には、OSやアプリケーションなど通常の画像形成装置が備えるソフトウェアに加え、本発明に係わる後述の画像処理プログラム20が格納されている。DRAM13Dはワークエリア用であり、HDD14はデータ格納用である。   The EEPROMs 13E1 and 13E2 are, for example, flash memories. The EEPROM 13E1 stores BIOS (Basic Input Output System). The EEPROM 13E2 stores a later-described image processing program 20 according to the present invention in addition to software included in a normal image forming apparatus such as an OS and an application. The DRAM 13D is for work area, and the HDD 14 is for data storage.

操作パネル15は、設定値又は指示を入力し、設定画面や状態などを表示させるためのものである。本実施例1では、操作パネル15がタッチパネルとハードウェアキーの組み合わせで構成されている場合を説明する。   The operation panel 15 is used for inputting a setting value or an instruction and displaying a setting screen or a state. In the first embodiment, a case where the operation panel 15 is configured by a combination of a touch panel and hardware keys will be described.

スキャナ16Sは、スキャン、コピー及びファックス送信での画像入力に用いられる。画像出力手段としてのプリンタ16Pは、プリントエンジン、定着器並びに用紙の給紙部、搬送部及び排紙部を備え、供給されるビットマップデータに基づいてプリントエンジンの感光ドラムに静電潜像を形成し、これをトナーで現像し、用紙に転写し定着させた後に排紙する。   The scanner 16S is used for image input in scanning, copying, and fax transmission. The printer 16P as an image output means includes a print engine, a fixing device, a paper feeding unit, a transport unit, and a paper discharge unit, and generates an electrostatic latent image on the photosensitive drum of the print engine based on the supplied bitmap data. The toner is formed, developed with toner, transferred to a sheet, fixed, and discharged.

NIC17は、ケーブル又は無線の通信媒体を介してネットワーク上のホストコンピュータ(不図示)に結合され、プリントジョブ、電子メール送受信及びインターネットファクシミリ送信に用いられる。ファクシミリモデム18は、ファクシミリ送受信用である。   The NIC 17 is coupled to a host computer (not shown) on a network via a cable or a wireless communication medium, and is used for print jobs, e-mail transmission / reception, and Internet facsimile transmission. The facsimile modem 18 is for facsimile transmission / reception.

圧縮・伸張ASIC19は、MPU11のコプロセッサとして用いられる。
[2]本発明に係わる画像形成装置の一部機能構成
図1は、本発明の実施例1に係わる画像形成装置10の一部機能ブロックを示す図である。
The compression / decompression ASIC 19 is used as a coprocessor of the MPU 11.
[2] Partial Functional Configuration of Image Forming Apparatus According to the Present Invention FIG. 1 is a diagram showing partial functional blocks of an image forming apparatus 10 according to the first embodiment of the present invention.

画像形成装置10は、原稿を読み取って画像信号を取得するためのスキャナ16Sと、この画像信号をA/D変換して得られる画像データに各種のデータ処理を施す画像処理部100と、画像処理部100による処理後のデータに基づいて原稿画像を記録用紙上に出力するプリンタ16Pと、を主に備えている。   The image forming apparatus 10 includes a scanner 16S for reading an original and acquiring an image signal, an image processing unit 100 that performs various data processing on image data obtained by A / D converting the image signal, and image processing. A printer 16P that mainly outputs a document image on recording paper based on data processed by the unit 100 is mainly provided.

スキャナ16Sは、原稿を光学的に読み取って、画素ごとにR(赤)、G(緑)及びB(青)の三原色を表すアナログ画像信号を出力するカラー画像撮像素子の一例であるCCD素子(不図示)を備えている。このCCD素子の出力信号は、画像処理部100に与えられる。   The scanner 16S optically reads an original and outputs a CCD image element (an example of a color image pickup element) that outputs analog image signals representing the three primary colors R (red), G (green), and B (blue) for each pixel. (Not shown). The output signal of the CCD element is given to the image processing unit 100.

画像処理部100は、MPU11、EEPROM13E2及びこれに格納された画像処理プログラム20で構成することができ、MPU11が画像処理プログラム20を実行することにより、その機能が実現される。画像処理部100の機能部として、A/D変換部110と、画像データ記憶部111と、CMY変換部112と、ぼかし処理部113と、ノイズ除去部114と、影除去部115と、罫線除去部116と、シャープネス処理部117と、がある。なお、これら機能の一部は電子回路によって実現することも可能である。   The image processing unit 100 can be configured by the MPU 11, the EEPROM 13E2, and the image processing program 20 stored in the MPU 11, and the MPU 11 executes the image processing program 20 to realize the function. As functional units of the image processing unit 100, an A / D conversion unit 110, an image data storage unit 111, a CMY conversion unit 112, a blur processing unit 113, a noise removal unit 114, a shadow removal unit 115, and ruled line removal And a sharpness processing unit 117. Note that some of these functions can be realized by an electronic circuit.

A/D変換部110は、スキャナ16Sから与えられる各色のアナログ画像信号を、例えば8ビットのデジタル信号に変換し、画像データとして画像データ記憶部111に格納する。   The A / D conversion unit 110 converts each color analog image signal supplied from the scanner 16S into, for example, an 8-bit digital signal, and stores the converted image data in the image data storage unit 111 as image data.

画像データ記憶部111は、例えばDRAM13Dであり、スキャナ16Sで取得した画像データを格納する。この記憶部111上の画像データに対し、以下各機能部は各々の処理を施す。   The image data storage unit 111 is, for example, a DRAM 13D, and stores image data acquired by the scanner 16S. Hereinafter, each functional unit performs respective processing on the image data on the storage unit 111.

CMY変換部112は、画像データ記憶部111からA/D変換後のRGBの色成分の画像データを読み出し、これをC(シアン)、M(マゼンダ)及びY(イエロー)の各色成分の濃度を表す画像データに色変換する。   The CMY conversion unit 112 reads the image data of RGB color components after A / D conversion from the image data storage unit 111, and converts the density of the color components of C (cyan), M (magenta), and Y (yellow). Color conversion to image data to represent.

ぼかし処理部113は、上記色変換後画像データを画像データ記憶部111から読み出し、該画像データ内にある、輪郭を形成しない領域を抽出し、この領域に対し例えば移動平均法及びメディアンフィルターなどの公知のぼかし(平滑化)処理を施す。ここで、本実施例では濃度ヒストグラムを作成し、この中で着色濃度が閾値以下(例えば10%以下)の領域を「輪郭を形成しない領域」としている。   The blur processing unit 113 reads out the color-converted image data from the image data storage unit 111, extracts a region in the image data that does not form a contour, and extracts, for example, a moving average method and a median filter from the region. A known blurring (smoothing) process is performed. Here, in this embodiment, a density histogram is created, and an area in which the color density is equal to or less than a threshold value (for example, 10% or less) is defined as an “area not forming an outline”.

上記ぼかし処理では、画像データからノイズ1002、影1003及び不明瞭な罫線1004を含む不必要な情報を軽減することができるが、完全には除去しきれないため以降のノイズ除去部114、影除去部115及び罫線除去部116で不必要な情報の各々を対象として除去処理を施す。   In the blurring process, unnecessary information including noise 1002, shadow 1003, and unclear ruled line 1004 can be reduced from the image data. However, since it cannot be completely removed, the subsequent noise removal unit 114 and shadow removal are performed. The removal processing is performed on each piece of unnecessary information in the unit 115 and the ruled line removal unit 116.

ノイズ除去部114は、上記ぼかし処理後の画像データを画像データ記憶部111から読み出し、例えば特開2007−129460号公報や上記特許文献3などの公知のノイズ除去処理を行う。これらノイズ処理では、背景技術の欄で説明したように、ノイズとともに不明瞭な罫線1004の一部を除去することが可能だが、完全には除去しきれない。   The noise removing unit 114 reads out the image data after the blurring process from the image data storage unit 111 and performs a known noise removing process such as Japanese Patent Application Laid-Open No. 2007-129460 and Patent Document 3 described above. In these noise processes, as described in the background art section, it is possible to remove a part of the ruled line 1004 that is unclear together with noise, but it cannot be completely removed.

影除去部115は、上記ノイズ除去後の画像データを画像データ記憶部111から読み出し、例えば該画像データの画像について上下左右の端からそれぞれ99画素以内の領域で、着色画素がある場合には、その色情報(CMY値)を保持する。保持した複数のCMY値から各色成分の平均値(C1、M1、Y1)と標準偏差(σ1、σ2、σ3)を求め、該99画素以内の領域で、(C1±σ1、M1±σ2、Y1±σ3)の範囲内のCMY値を有した着色画素を全て除去する(該着色画素の色値を白色の色値にする)。   The shadow removal unit 115 reads out the image data after the noise removal from the image data storage unit 111. For example, when there are colored pixels in an area within 99 pixels from the top, bottom, left, and right ends of the image data, The color information (CMY value) is held. An average value (C1, M1, Y1) and standard deviation (σ1, σ2, σ3) of each color component is obtained from the held plurality of CMY values. All the colored pixels having CMY values within the range of ± σ3) are removed (the color value of the colored pixels is changed to a white color value).

罫線除去部116は、本発明に係わる機能部であって、影除去後の画像データを画像データ記憶部111から読み出し、上記ぼかし処理、ノイズ除去処理及び影除去処理では除去しきれない不明瞭な罫線情報1004を除去するものであり、その詳細は後述する。   The ruled line removal unit 116 is a functional unit according to the present invention, reads image data after shadow removal from the image data storage unit 111, and is indistinct that cannot be removed by the blurring process, noise removal process, and shadow removal process. The ruled line information 1004 is removed, details of which will be described later.

シャープネス処理部117は、不明瞭な罫線除去後の画像データを画像データ記憶部111から読み出し、文字等の輪郭を強調するため、該画像データに対し、例えばラプラシアンフィルタ又はフーリエ変換などによるシャープネス処理を施す。シャープネス処理後の画像データは、プリンタ16Pに与えられ、プリンタ16Pは、入力された画像データに基づく画像を記録用紙上に出力する。
[3]罫線付き原稿に対する本発明の適用
以上の構成を備えた画像形成装置10にて、図2(a)に示す罫線付き原稿1000をコピーする場合を、図1を用いて説明する。以下、括弧内は図1中のステップ識別符号である。
The sharpness processing unit 117 reads out the image data after removing the unclear ruled lines from the image data storage unit 111, and in order to emphasize the outline of characters and the like, the image data is subjected to sharpness processing by, for example, Laplacian filter or Fourier transform. Apply. The image data after the sharpness processing is given to the printer 16P, and the printer 16P outputs an image based on the input image data on a recording sheet.
[3] Application of the Present Invention to Ruled Documents The case where the ruled document 1000 shown in FIG. 2A is copied by the image forming apparatus 10 having the above configuration will be described with reference to FIG. In the following, the step identification codes in FIG. 1 are shown in parentheses.

(S1、S2)ユーザが罫線付き原稿1000をスキャナ16Sの原稿台にセットして、操作パネル15上のスタート釦(不図示)を押下すると、該用紙1000がスキャナ16Sによって読み取られ、読み取って得られた各色のアナログ画像信号はA/D変換部110にてデジタル信号化され、画像データとして画像データ記憶部111に格納される。   (S1, S2) When the user sets a ruled document 1000 on the document table of the scanner 16S and presses a start button (not shown) on the operation panel 15, the paper 1000 is read by the scanner 16S and obtained by reading. The analog image signals of the respective colors are converted into digital signals by the A / D conversion unit 110 and stored in the image data storage unit 111 as image data.

(S3)画像データ記憶部111に格納された画像データは、CMY変換部112を通って色変換処理が施される。   (S3) The image data stored in the image data storage unit 111 is subjected to color conversion processing through the CMY conversion unit 112.

上記変換後の画像データは、図2(b)に示す如く、不必要な情報であるノイズ1002と、影1003と、不明瞭な罫線1004と、が含まれている。そこで、本発明では上記変換処理後の画像データに対し以下の各種画像処理を施して上記不必要な情報を除去している。   The converted image data includes noise 1002, which is unnecessary information, a shadow 1003, and an unclear ruled line 1004, as shown in FIG. Therefore, in the present invention, the image data after the conversion process is subjected to the following various image processes to remove the unnecessary information.

(S4〜S6)変換後の画像データは、ぼかし処理部113、ノイズ除去部114及び影除去部115を通って、各種画像処理が施される。   (S4 to S6) The converted image data is subjected to various image processing through the blurring processing unit 113, the noise removal unit 114, and the shadow removal unit 115.

図2(c)は、図2(b)に示す画像データをぼかし処理部113、ノイズ除去部114及び影除去部115を通して、各種画像処理を施した後の画像データの説明図である。この図から、上記各種画像処理でノイズ1002や影1003は除去されているが、不明瞭な罫線1004は完全には除去しきれていないことが分かる。   FIG. 2C is an explanatory diagram of the image data after various image processing is performed on the image data illustrated in FIG. 2B through the blurring processing unit 113, the noise removal unit 114, and the shadow removal unit 115. From this figure, it can be seen that the noise 1002 and the shadow 1003 have been removed by the above-described various image processing, but the unclear ruled line 1004 has not been completely removed.

(S7)上記各種処理が施された画像データは、罫線除去部116を通って、不明瞭な罫線1004が除去される。   (S7) The image data that has been subjected to the above-described various processes passes through the ruled line removal unit 116, and unclear ruled lines 1004 are removed.

図4は、罫線除去部116の画像処理の詳細フローチャートである。以下、括弧内は図4中のステップ識別符号である。   FIG. 4 is a detailed flowchart of the image processing of the ruled line removal unit 116. In the following, the step identification codes in FIG. 4 are shown in parentheses.

(S10)参照対象と変更対象を分けるため、影除去部115で処理された画像データをコピーする。以下、コピー元の画像データを参照画像データとし、コピーして得た画像データを変更画像データと称す。なお、これら画像データはN×Mの画素数を有しており、本実施例では該画像データを図3に示すようにN×M(N及びMはともに整数であり、かつ、N>>100、M>>100)画素のマトリクスで表現して説明する。   (S10) The image data processed by the shadow removal unit 115 is copied in order to separate the reference target and the change target. Hereinafter, the copy source image data is referred to as reference image data, and the image data obtained by copying is referred to as changed image data. These image data have N × M pixels. In this embodiment, the image data is represented by N × M (N and M are both integers and N >> as shown in FIG. 3). 100, M >> 100) A description will be given using a matrix of pixels.

(S11、S18)以下のステップS12〜S17の処理を、変数iを用いて、参照画像データのマトリクスにおいて100行目から(N−100)行目まで繰り返す。   (S11, S18) The following processes in steps S12 to S17 are repeated from the 100th line to the (N-100) th line in the matrix of reference image data using the variable i.

(S12、S17)以下のステップS13〜S16の処理を、変数jを用いて、参照画像データのマトリクスにおいて100列目から(M−100)列目まで繰り返す。これにより、該参照画像データの上下左右の端からそれぞれ99画素以内の領域以外の画素について以下着目対象となる。   (S12, S17) The processes in steps S13 to S16 below are repeated from the 100th column to the (M-100) th column in the matrix of reference image data using the variable j. As a result, the pixels other than the region within 99 pixels from the top, bottom, left, and right ends of the reference image data will be the subject of attention.

(S13)位置(i,j)の画素を、着目画素Dijとする。   (S13) The pixel at the position (i, j) is set as the pixel of interest Dij.

(S14)図3に示すように、着目画素Dijを中心とする5×5画素のマトリクス内に90パーセント以上の濃度の着色画素があるか否かを、濃度ヒストグラムを作成して判定する。肯定判定した場合にはステップS17に進み、否定判定した場合には次のステップS15に進む。ここで、図2(c)に示す文字や図に係わる画素が着目画素Dijの場合は肯定判定され、明瞭な罫線1001及び不明瞭な罫線1004に係わる画素が着目画素Dijの場合は、その濃度が薄いために否定判定される。   (S14) As shown in FIG. 3, whether or not there is a colored pixel having a density of 90% or more in the 5 × 5 pixel matrix centered on the pixel of interest Dij is determined by creating a density histogram. If the determination is affirmative, the process proceeds to step S17. If the determination is negative, the process proceeds to the next step S15. Here, when the pixel related to the character or figure shown in FIG. 2C is the target pixel Dij, an affirmative determination is made, and when the pixel related to the clear ruled line 1001 and the unclear ruled line 1004 is the target pixel Dij, the density thereof is determined. The result is negative because it is thin.

(S15)図3に示すように、着目画素Dijを中心とする9×9画素のマトリクス内に着目画素Dijと略同一の色値を有した画素の数が例えば8個以上あるか否か判定する。肯定判定した場合にはステップS17に進み、否定判定した場合には次のステップS16に進む。ここで、9×9画素のマトリクス内における一の画素の色値を(C2、M2、Y2)とし、着目画素Dijの色値を(C3、M3、Y3)として、該一の画素の色値が例えば以下の条件式を満たす場合に、該一の画素の色値(C2、M2、Y2)を上記「略同一の色値」とする。
√((C3−C2)^2+(M3−M2)^2+(Y3−Y2)^2)≦5
なお、上記式中の記号「^」は、累乗を意味する。
(S15) As shown in FIG. 3, it is determined whether or not the number of pixels having substantially the same color value as the target pixel Dij is, for example, eight or more in the 9 × 9 pixel matrix centered on the target pixel Dij. To do. If the determination is affirmative, the process proceeds to step S17. If the determination is negative, the process proceeds to the next step S16. Here, the color value of one pixel in the 9 × 9 pixel matrix is (C2, M2, Y2), and the color value of the pixel of interest Dij is (C3, M3, Y3). For example, when the following conditional expression is satisfied, the color value (C2, M2, Y2) of the one pixel is set as the “substantially identical color value”.
√ ((C3-C2) ^ 2 + (M3-M2) ^ 2 + (Y3-Y2) ^ 2) ≦ 5
Note that the symbol “^” in the above expression means a power.

(S16)上記着目画素Dijに対応する変更画像データの画素の着色を除去する(その画素の色値を白色の色値に変更する)。   (S16) The coloring of the pixel of the changed image data corresponding to the pixel of interest Dij is removed (the color value of the pixel is changed to a white color value).

図2(d)は、罫線除去部116による処理後の画像データの説明図である。この図に示すように、画像データに上記ステップS10〜S18の処理を施すことにより、図2(c)に示す明瞭な罫線1001は画像データに残され、不明瞭な罫線1004は除去される。   FIG. 2D is an explanatory diagram of the image data after processing by the ruled line removal unit 116. As shown in this figure, by performing the processing of steps S10 to S18 on the image data, the clear ruled line 1001 shown in FIG. 2C is left in the image data, and the unclear ruled line 1004 is removed.

(S8、S9)図1に戻って、罫線除去後の画素データ(変更画像データ)は、シャープネス処理部117により鮮鋭化され、その画像は、プリンタ16Pにより記録用紙上に出力される。   (S8, S9) Returning to FIG. 1, the pixel data after the ruled line removal (changed image data) is sharpened by the sharpness processing unit 117, and the image is output on the recording paper by the printer 16P.

本実施例1によれば、罫線付き原稿を画像読取装置により読み取って得られたN×M画素数を有する画像データに対し、その一の画素を着目画素Dijとして、該着目画素Dijを中心とする5×5画素のマトリクス内で濃度が90%以上の着色画素がなく、かつ、該着目画素Dijを中心とする9×9画素のマトリクス内で該着目画素Dijとの色差が第2所定の条件以下の画素の個数が第8個より少ないときに、該着目画素の色値を白色値に変更するので、画像データから明瞭な罫線1001は残し、不明瞭な罫線1004を除去することができるという効果を奏する。   According to the first embodiment, with respect to image data having the number of N × M pixels obtained by reading a ruled document with an image reading device, the one pixel is the target pixel Dij, and the target pixel Dij is the center. There is no colored pixel having a density of 90% or more in the 5 × 5 pixel matrix, and the color difference from the target pixel Dij is a second predetermined value in the 9 × 9 pixel matrix centered on the target pixel Dij. When the number of pixels below the condition is less than the eighth, the color value of the pixel of interest is changed to a white value, so that the clear ruled line 1001 can be left from the image data and the unclear ruled line 1004 can be removed. There is an effect.

なお、上述した本発明の実施例は、本発明の説明のための例示であり、本発明の範囲をそれらの実施例にのみ限定する趣旨ではない。本発明は、その要旨を逸脱することなしに、様々な変形が可能である。以下に、その変形の一部を例示する。   In addition, the Example of this invention mentioned above is an illustration for description of this invention, and is not the meaning which limits the scope of the present invention only to those Examples. Various modifications can be made to the present invention without departing from the gist thereof. Hereinafter, some of the modifications will be exemplified.

本実施例1では、罫線付き原稿1000をスキャナ16Sでカラー画像として読み取り、このカラー画像データに対して処理を施す場合を例にとったが、上記各画像処理はモノクロ画像データに対する処理にも適用することができる。   In the first embodiment, the document 1000 with ruled lines is read as a color image by the scanner 16S, and processing is performed on the color image data. However, each of the image processing is also applied to processing on monochrome image data. can do.

また、原稿をコピーする際に、スキャナ16Sで読み取って得られた画像データが画像処理対象として画像処理部100に入力される場合を例にとったが、例えば、記録ファイルから読み出された画像データが画像処理対象として画像処理部100に入力されてもよい。さらに、この画像処理部100で処理を施した後の画像データを、プリンタ16Pに入力するのではなく、記録ファイルに格納するようにしてもよい。   Further, in the case of copying a document, an example in which image data obtained by reading with the scanner 16S is input to the image processing unit 100 as an image processing target is exemplified. For example, an image read from a recording file is used. Data may be input to the image processing unit 100 as an image processing target. Further, the image data processed by the image processing unit 100 may be stored in a recording file instead of being input to the printer 16P.

さらに、画像形成装置10が画像処理部100を備える場合を例にとったが、パーソナルコンピュータなどの画像処理装置が画像処理部100を備えるようにしてもよい。   Furthermore, although the case where the image forming apparatus 10 includes the image processing unit 100 is taken as an example, an image processing apparatus such as a personal computer may include the image processing unit 100.

さらにまた、上記ステップS15では、着目画素Dijとの色差が所定以下である画素の個数で判定する場合を例にとったが、着目画素Dijとの濃度差が所定以下である画素の個数で判定するようにしてもよい。   Furthermore, in step S15, the case where the determination is made based on the number of pixels whose color difference from the target pixel Dij is equal to or smaller than a predetermined value is taken as an example, but the determination is made based on the number of pixels whose density difference from the target pixel Dij is equal to or smaller than the predetermined. You may make it do.

本発明の実施例1に係わる画像形成装置の一部機能ブロックを示す図である。1 is a diagram illustrating a partial functional block of an image forming apparatus according to Embodiment 1 of the present invention. (a)は、文字等が書き込まれた罫線付き原稿の説明図であり、(b)は、(a)に示す罫線付き原稿を読み取って得られた画像データの説明図である。また(c)は、(b)に示す画像データをぼかし処理部、ノイズ除去部及び影除去部を通して、各種画像処理を施した後の画像データの説明図であり、(d)は、罫線除去部116による罫線除去処理後の画像データの説明図である。(A) is an explanatory diagram of a document with ruled lines in which characters and the like are written, and (b) is an explanatory diagram of image data obtained by reading the document with ruled lines shown in (a). (C) is an explanatory diagram of the image data after various image processing is performed on the image data shown in (b) through the blurring processing unit, the noise removal unit, and the shadow removal unit, and (d) is the ruled line removal 6 is an explanatory diagram of image data after ruled line removal processing by a unit; FIG. N×M画素のマトリクスの説明図である。It is explanatory drawing of the matrix of a NxM pixel. 罫線除去部の画像処理の詳細フローチャートである。It is a detailed flowchart of the image process of a ruled line removal part. 本発明の実施例1に係わる画像形成装置のハードウェア構成を示す概略ブロック図である。1 is a schematic block diagram illustrating a hardware configuration of an image forming apparatus according to Embodiment 1 of the present invention.

符号の説明Explanation of symbols

10 画像形成装置
11 MPU
12 インタフェース
13E1 EEPROM
13E2 EEPROM
13D DRAM
14 HDD
15 操作パネル
16S スキャナ
16P プリンタ
17 NIC
18 ファクシミリモデム
19 圧縮・伸張ASIC
20 画像処理プログラム
100 画像処理部
110 A/D変換部
111 画像データ記憶部
112 CMY変換部
113 ぼかし処理部
114 ノイズ除去部
115 影除去部
116 罫線除去部
117 シャープネス処理部
1000 罫線付き原稿
1001 明瞭な罫線
1002 ノイズ
1003 影
1004 不明瞭な罫線
10 Image forming apparatus 11 MPU
12 interface 13E1 EEPROM
13E2 EEPROM
13D DRAM
14 HDD
15 Operation panel 16S Scanner 16P Printer 17 NIC
18 Facsimile modem 19 Compression / decompression ASIC
20 Image processing program 100 Image processing unit 110 A / D conversion unit 111 Image data storage unit 112 CMY conversion unit 113 Blur processing unit 114 Noise removal unit 115 Shadow removal unit 116 Ruled line removal unit 117 Sharpness processing unit 1000 Ruled line original 1001 Clear Ruled line 1002 Noise 1003 Shadow 1004 Unclear ruled line

Claims (6)

罫線付き原稿を画像読取装置により読み取って得られたN×M画素数を有する画像データから不明瞭な罫線情報を除去する画像処理装置であって、
該画像データの一の画素を着目画素として、該着目画素を中心とするX×Y(X<<NかつY<<M)画素のマトリクス内で濃度が第1閾値以上の着色画素がなく、かつ、該着目画素を中心とするV×W(X<V<<NかつY<W<<M)画素のマトリクス内で該着目画素との色差又は濃度差が第2閾値以下の画素の個数が第3閾値より少ないときに、該着目画素の色値を白色値に変更して、該不明瞭な罫線情報に係わる画素を除去する罫線除去部、
を具備することを特徴とする画像処理装置。
An image processing apparatus for removing unclear ruled line information from image data having N × M pixels obtained by reading a document with ruled lines by an image reading apparatus,
There is no colored pixel having a density equal to or higher than the first threshold in a matrix of X × Y (X << N and Y << M) pixels centered on the target pixel, with one pixel of the image data as the target pixel. The number of pixels having a color difference or density difference with respect to the pixel of interest within a matrix of V × W (X << V << N and Y << W << M) pixels centered on the pixel of interest is equal to or less than a second threshold value. A ruled line removal unit that changes the color value of the pixel of interest to a white value and removes pixels related to the unclear ruled line information when
An image processing apparatus comprising:
該画像データに対し該罫線除去部による処理が施される前に、該画像データに対しぼかし処理を施すぼかし処理部をさらに具備することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a blur processing unit that performs a blur process on the image data before the ruled line removal unit performs the process on the image data. 該画像データに対し該罫線除去部による処理が施される前に、該画像データから孤立点ノイズを取り除くノイズ除去部をさらに具備することを特徴とする請求項1又は2に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a noise removing unit that removes isolated point noise from the image data before the ruled line removing unit performs processing on the image data. . 該画像データから影情報を取り除く影除去部をさらに具備することを特徴とする請求項1乃至3のいずれか1つに記載の画像処理装置。 The image processing apparatus according to any one of claims 1 to 3, characterized by further comprising a shadow removal unit for removing a shadow information from the image data. 該画像データに対し該罫線除去部による処理が施された後に、該画像データに対しシャープネス処理を施すシャープネス処理部をさらに具備することを特徴とする請求項1乃至4のいずれか1つに記載の画像処理装置。 After treatment with該罫line removing section relative to the image data is performed, according to any one of claims 1 to 4, further comprising a sharpness processing unit for performing sharpness processing on the image data Image processing apparatus. コンピュータのプロセッサに対し、罫線付き原稿を画像読取装置により読み取って得られたN×M画素数を有する画像データから不明瞭な罫線情報を除去させる画像処理プログラムであって、
該プロセッサに対し、該画像データの一の画素を着目画素として、該着目画素を中心とするX×Y(X<<NかつY<<M)画素のマトリクス内で濃度が第1閾値以上の着色画素がなく、かつ、該着目画素を中心とするV×W(X<V<<NかつY<W<<M)画素のマトリクス内で該着目画素との色差又は濃度差が第2閾値以下の画素の個数が第3閾値より少ないときに、該着目画素の色値を白色値に変更させることにより、該不明瞭な罫線情報に係わる画素を除去させる、
ことを特徴とする画像処理プログラム。
An image processing program for causing a computer processor to remove unclear ruled line information from image data having N × M pixels obtained by reading a ruled document with an image reading device,
With respect to the processor, one pixel of the image data is set as a target pixel, and the density is not less than a first threshold in a matrix of X × Y (X << N and Y << M) pixels centered on the target pixel. There is no color pixel, and the color difference or density difference with the target pixel in the matrix of V × W (X << V << N and Y << W << M) pixels centered on the target pixel is the second threshold value. When the number of the following pixels is less than the third threshold, the pixel related to the unclear ruled line information is removed by changing the color value of the pixel of interest to a white value.
An image processing program characterized by that.
JP2007308877A 2007-11-29 2007-11-29 Image processing apparatus and image processing program Expired - Fee Related JP5090881B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007308877A JP5090881B2 (en) 2007-11-29 2007-11-29 Image processing apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007308877A JP5090881B2 (en) 2007-11-29 2007-11-29 Image processing apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2009134427A JP2009134427A (en) 2009-06-18
JP5090881B2 true JP5090881B2 (en) 2012-12-05

Family

ID=40866258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007308877A Expired - Fee Related JP5090881B2 (en) 2007-11-29 2007-11-29 Image processing apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5090881B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3794285B2 (en) * 2001-06-12 2006-07-05 日本電気株式会社 Optical character reader
JP2006072839A (en) * 2004-09-03 2006-03-16 Ricoh Co Ltd Image processing method, image processing apparatus, image processing program and recording medium
JP2007129460A (en) * 2005-11-02 2007-05-24 Kyocera Mita Corp Image reader and image forming apparatus equipped with same

Also Published As

Publication number Publication date
JP2009134427A (en) 2009-06-18

Similar Documents

Publication Publication Date Title
US8384964B2 (en) Image processing apparatus and image processing method
JP5219706B2 (en) Image processing apparatus, image processing method, and image processing program
JP2009069917A (en) Image matching device, image matching method, image data output processor, program and recording medium
JPH0410765A (en) Image processor
JP2008017014A (en) Image processor, image processing method, and program
JP2007311836A (en) Image processing apparatus, control method thereof, computer program and computer-readable storage medium
JP2017130811A (en) Image processing apparatus, image processing method, image processing program, and recording medium
JP5187331B2 (en) Image processing apparatus, image processing method, and computer program
JP2009044616A (en) Image processing apparatus and image processing method
JP4884305B2 (en) Image processing apparatus, image forming apparatus, computer program, and recording medium
JP6693310B2 (en) Image processing apparatus, image processing method and program
JP4908382B2 (en) Image processing apparatus and image processing method
JP3899872B2 (en) Image processing apparatus, image processing method, image processing program, and computer-readable recording medium recording the same
JP4823132B2 (en) Printing system, control method thereof, and program thereof
JP5090881B2 (en) Image processing apparatus and image processing program
JP4659789B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP6063911B2 (en) Image processing device
JP2001309183A (en) Image processing unit and method
JP5854973B2 (en) Image forming apparatus
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JP5723717B2 (en) Image processing apparatus, image forming apparatus including the same, and image processing method
RU2452126C1 (en) Image processing device, image processing method, and program
JP2008092323A (en) Image processing equipment, and image reading apparatus and image forming apparatus equipped with the same
JP3564216B2 (en) Image processing device
JP2023037968A (en) Image processing apparatus, control method of the same, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100927

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120327

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120410

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

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

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

Free format text: PAYMENT UNTIL: 20150921

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees