JP2007006411A - Image processing equipment - Google Patents

Image processing equipment Download PDF

Info

Publication number
JP2007006411A
JP2007006411A JP2005187252A JP2005187252A JP2007006411A JP 2007006411 A JP2007006411 A JP 2007006411A JP 2005187252 A JP2005187252 A JP 2005187252A JP 2005187252 A JP2005187252 A JP 2005187252A JP 2007006411 A JP2007006411 A JP 2007006411A
Authority
JP
Japan
Prior art keywords
image
area
image processing
character
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005187252A
Other languages
Japanese (ja)
Other versions
JP4792835B2 (en
Inventor
Toshihiro Mori
俊浩 森
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies 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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2005187252A priority Critical patent/JP4792835B2/en
Publication of JP2007006411A publication Critical patent/JP2007006411A/en
Application granted granted Critical
Publication of JP4792835B2 publication Critical patent/JP4792835B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Storing Facsimile Image Data (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide image processing equipment capable of reducing a cost by using a reduced capacity of memory, while raising compression property and high processing speed by area determination. <P>SOLUTION: When an input image is divided into a plurality of areas (bands) and made into a PDF file by each band, it is determined whether the spare capacity of the memory is not less than a regulation value or not (S102). The memory stores character area information, which includes the coordinate of the area deteremined as a character area and binary data of each pixel in a character image in the area, as an area determination result. When the spare capacity is determined to be not less than the regulation value, the character area is compressed by MMR (step S115) and a background area is compressed by JPEG (step S107) concerning the band A. When it is determined that the spare capacity is smaller than the regulation value, the whole area of the band A is compressed by JPEG (step S111). <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、入力画像を領域判別し、判別された領域毎に画像処理を施す画像処理装置に関する。   The present invention relates to an image processing apparatus that determines an area of an input image and performs image processing for each determined area.

複写機には、書類等の画像をスキャナー部で読み込み、読み込んだ画像について各画素がどの属性(文字、背景等)の領域に属するのかを判別し、判別された領域毎にその領域に適した画像処理、例えば圧縮を施してHDD(ハードディスクドライブ)等の記憶装置に格納しておき、ユーザの指示があると記憶装置から画像データを読み出してプリント出力する構成のものがある。   The copier reads an image of a document or the like with a scanner unit, determines which attribute (character, background, etc.) each pixel belongs to in the read image, and each determined region is suitable for that region There is a configuration in which image processing, for example, compression is performed and the image data is stored in a storage device such as an HDD (hard disk drive), and image data is read from the storage device and printed out in response to a user instruction.

このような領域判別を行う場合、通常、処理時間の短縮のために、HDDのようなデータ転送速度が遅いディスクではなくRAM等の専用のメモリが利用される。
具体的には、文字領域の判別の場合、画像データをメモリに展開すると共にメモリの空き領域を利用して2値化、黒画素の輪郭線追跡、ラベリングを行う。そして、ラベリング後の画像について横幅や高さが閾値以下の画素の集まりをその位置の近さや横幅、高さが一致するものを順次グループ化して行くことで原稿1頁内における個々の文字領域を判別する。文字領域が判別される毎に、その領域の座標および画素値(色等)を表すデータをメモリの空き領域に格納し、原稿1頁分の画像について判別が終わると、メモリに格納された座標等のデータを読み出し、文字と判別された領域の画像に文字用の圧縮処理を施すものである。
特開2003−338934号公報
When such area determination is performed, a dedicated memory such as a RAM is generally used instead of a disk having a slow data transfer speed such as an HDD in order to shorten the processing time.
Specifically, in the case of character area discrimination, image data is developed in a memory, and binarization, black pixel outline tracking, and labeling are performed using an empty area of the memory. Then, for each image after labeling, individual character areas in one page of a document are grouped by sequentially grouping together pixels whose horizontal width and height are equal to or less than the threshold value, and whose closeness, horizontal width, and height match. Determine. Each time a character area is determined, data representing the coordinates and pixel values (color, etc.) of the area are stored in a free area of the memory, and when the determination is completed for an image of one page of the document, the coordinates stored in the memory are stored. And the like, and compression processing for characters is performed on the image of the area determined to be characters.
JP 2003-338934 A

上記のような領域判別に必要なメモリの記憶容量は、原稿の種類(文字数、文字サイズ、色数等)によって異なる。これは、例えば文字領域の判別の場合、文字数やサイズによって座標を表すデータが増減し、また色数が多ければ各色を表すデータも増えることがあるからである。このことは他の写真等の領域判別についても同様である。
領域判別の途中でメモリの空き容量がなくなると処理を中止せざるを得ず、そのため、従来ではどのような種類の原稿であっても確実に領域判別を行えるように大容量のメモリを配置しているのであるが、メモリの容量を大きくすればそれだけコスト高になってしまう。
The storage capacity of the memory necessary for such area determination differs depending on the type of document (number of characters, character size, number of colors, etc.). This is because, for example, in the determination of the character area, the data representing the coordinates increases or decreases depending on the number of characters and the size, and if the number of colors is large, the data representing each color may increase. The same applies to the area discrimination of other photographs.
If there is no more free memory in the middle of area determination, the process must be stopped. Therefore, in the past, a large-capacity memory has been installed to ensure area determination for any type of document. However, the larger the memory capacity, the higher the cost.

本発明は、上記の問題点に鑑みてなされたものであって、領域判別による処理速度の高速化を図ることで圧縮等の画像処理の性能向上を実現しつつ容量を出来るだけ低減したメモリを用いて低コスト化をも図れる複写機等の画像処理装置を提供することを目的としている。   The present invention has been made in view of the above problems, and a memory having a capacity reduced as much as possible while improving the performance of image processing such as compression by increasing the processing speed by region discrimination. An object of the present invention is to provide an image processing apparatus such as a copying machine which can be used at a low cost.

上記目的を達成するため、本発明に係る画像処理装置は、入力画像に画像処理を施す画像処理装置であって、所定の格納領域を有するメモリと、入力画像を複数のブロック画像に分けたときの一のブロック画像毎に、当該一のブロック画像に含まれる所定の属性の画像領域を判別する判別手段と、前記判別手段により前記所定の属性の画像領域が判別される毎にその画像領域を特定するための情報を前記所定の格納領域に順次格納する格納手段と、入力画像中における、前記所定の格納領域に格納されている情報により特定される所定の属性の画像領域の画像に対し第1の画像処理を施す画像処理手段と、を備え、前記判別手段は、一のブロック画像に対する判別を行う前に、前記所定の格納領域の現在の空き容量を検出し、検出された量が規定値より少ない場合には、当該一のブロック画像を含む未判別のブロック画像に対する判別を中止し、前記画像処理手段は、判別が中止された場合には、少なくとも未判別のブロック画像に対し前記第1の画像処理とは異なる第2の画像処理を施すことを特徴とする。   In order to achieve the above object, an image processing apparatus according to the present invention is an image processing apparatus that performs image processing on an input image, when a memory having a predetermined storage area and the input image are divided into a plurality of block images. A discriminating unit that discriminates an image region having a predetermined attribute included in the one block image, and each time the discriminating unit discriminates the image region having the predetermined attribute. Storage means for sequentially storing information for specifying in the predetermined storage area; and an image of an image area having a predetermined attribute specified by the information stored in the predetermined storage area in the input image. Image processing means for performing one image processing, and the discrimination means detects the current free space in the predetermined storage area before making a discrimination for one block image, and the detected amount is If it is less than the fixed value, the discrimination for the unidentified block image including the one block image is stopped, and the image processing means cancels the determination for at least the unidentified block image when the discrimination is stopped. The second image processing different from the first image processing is performed.

このように、メモリの空き容量が規定値より少なくなったことが検出されると、領域判別を中止すると共に少なくとも未判別のブロック画像に第1の画像処理とは異なる第2の画像処理を施す構成にしたので、従来のように大容量のメモリを配置する必要がなくなり低コスト化を図ることができる。
また、前記画像処理手段は、判別が中止された場合には、判別済のブロック画像に対し前記特定される画像に第1の画像処理を施し、未判別のブロック画像についてのみ第2の画像処理を施すことを特徴とする。
As described above, when it is detected that the free space of the memory is less than the specified value, the region discrimination is stopped and at least a second image processing different from the first image processing is performed on the unidentified block image. Since the configuration is adopted, it is not necessary to arrange a large-capacity memory as in the conventional case, and the cost can be reduced.
In addition, when the determination is stopped, the image processing unit performs the first image processing on the identified image with respect to the determined block image, and performs the second image processing only on the unidentified block image. It is characterized by giving.

このようにすれば、判別結果を有効に利用することができる。
さらに、前記画像処理手段は、判別が中止された場合には、それまでの判別による判別結果によらず、前記複数のブロック画像全てに第2の画像処理を施すことを特徴とする。
このようにすれば、各ブロック画像に同じ画像処理が施されることになり、異なる場合に比べて再現画像の画質向上を期待できる。
In this way, the determination result can be used effectively.
Furthermore, when the determination is stopped, the image processing means performs the second image processing on all the plurality of block images regardless of the determination result obtained by the previous determination.
In this way, the same image processing is performed on each block image, and an improvement in the image quality of the reproduced image can be expected as compared with a different case.

また、入力画像が第1と第2のいずれの種類のものかを判定する判定手段を備え、前記判別手段は、入力画像が第1の種類のものと判定されると前記判別を実行し、第2の種類のものと判定されると前記判別を実行せず、前記画像処理手段は、入力画像が第1の種類のものと判定されると前記画像処理を実行し、第2の種類のものと判定されると前記複数のブロック画像全てに第2の画像処理を施すことを特徴とする。   A determination unit configured to determine whether the input image is of the first type or the second type, and the determination unit executes the determination when the input image is determined to be of the first type; The image processing means does not execute the determination when it is determined as the second type, and the image processing means executes the image processing when the input image is determined as the first type. If it is determined that the image data is determined to be an object, the second image processing is performed on all the plurality of block images.

このように上記判定結果により領域判別の要否、いずれの画像処理を施すべきなのかを決める構成にすれば、処理をより高速化することが可能になる。
また、前記所定の属性の画像領域は、文字画像領域のことであり、前記第1の画像処理は、第1の方法による圧縮処理であり、前記第2の画像処理は、前記第1の方法とは異なる第2の方法による圧縮処理を含むことを特徴とする。
As described above, if the configuration is used to determine whether or not region determination is necessary and which image processing should be performed based on the determination result, the processing can be further speeded up.
The image area having the predetermined attribute is a character image area, the first image processing is compression processing by the first method, and the second image processing is by the first method. And a compression process using a second method different from the above.

ここで、前記画像処理手段は、各ブロック画像の内、文字画像領域の画像に対し第1の画像処理が施されるブロック画像について、そのブロック画像に含まれる文字画像領域以外の画像に対し前記第2の方法と同じ方法による圧縮処理を施す第3の画像処理を実行し、前記第2の画像処理を実行する場合の圧縮強度を、前記第3の画像処理を実行する場合の圧縮強度よりも弱くしたことを特徴とする。   Here, the image processing means, with respect to a block image subjected to the first image processing on the image of the character image region among the block images, for the image other than the character image region included in the block image. The third image processing for performing the compression processing by the same method as the second method is executed, and the compression strength when the second image processing is executed is more than the compression strength when the third image processing is executed. It is also characterized by weakening.

また、前記画像処理手段は、各ブロック画像の内、文字画像領域の画像に対し第1の画像処理が施されるブロック画像について、そのブロック画像に含まれる文字画像領域以外の画像に対しその解像度を第1の解像度に落とした後、圧縮処理を施す第3の画像処理を実行し、前記第2の画像処理は、圧縮前に画像の解像度を前記第1の解像度よりも高い第2の解像度に落とす処理を含むことを特徴とする。   Further, the image processing means has a resolution for an image other than the character image area included in the block image in which the first image processing is performed on the image of the character image area among the block images. After the image is dropped to the first resolution, a third image process is performed to perform a compression process, and the second image process has a second resolution higher than the first resolution before the compression. It includes the process of dropping into

このようにすれば、非判別のブロック画像に含まれる文字画像領域については、判別済のブロック画像の文字画像以外の領域よりも圧縮強度が弱くまたは変換後の解像度が大きくなるように処理が施されるので、再現画像の劣化の抑制が可能になる。
また、前記所定の属性の画像領域の画像に対し本来の第1の画像処理とは異なる第2の画像処理が施された場合に、その旨を通知する通知手段を備えることを特徴とする。
In this way, the character image area included in the non-discriminated block image is processed so that the compression strength is weaker or the resolution after conversion is larger than the area other than the character image of the discriminated block image. Therefore, it is possible to suppress degradation of the reproduced image.
In addition, when an image in the image area having the predetermined attribute is subjected to a second image process different from the original first image process, a notification unit that notifies the fact is provided.

このようにすれば、ユーザはどのような画像処理が施されたのかを知ることができ、便利である。   In this way, the user can know what kind of image processing has been performed, which is convenient.

以下、本発明の実施の形態について図面を参照しながら説明する。
(第1の実施の形態)
図1は、本発明に係る画像処理装置としての複写機1を含む画像処理システム(以下、「システム」と略する。)5の全体構成を示す図である。
同図に示すように、本システム5は、複写機1、2、3・・がネットワーク、ここではLAN4を介してデータのやりとりが可能に接続されて構成されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
FIG. 1 is a diagram showing an overall configuration of an image processing system (hereinafter abbreviated as “system”) 5 including a copying machine 1 as an image processing apparatus according to the present invention.
As shown in the figure, the present system 5 is configured by copying machines 1, 2, 3,... Being connected so as to be able to exchange data via a network, here LAN4.

複写機1は、主な構成要素として、操作パネル11、スキャナ部12、プリンタ部13および制御部14を備える多機能デジタル複写機(Multiple Function Peripheral)であり、原稿画像を読み取って画像データを得るスキャン機能、その画像データに基づいて原稿画像をシートに印刷(プリント)するコピー機能を有する。
また、画像データを圧縮してHDD144に格納する蓄積機能、格納されている圧縮データを読み出して伸張し、伸張後の画像データに基づいて印刷を行うプリント機能、さらに電子メール(以下、単に「メール」という。)の送受信を、メールサーバ(不図示)を介して行うメール送受信機能を有している。なお、メール送受信には、公知のSMTP (Simple Mail Transfer Protocol)およびPOP3(Post Office Protocol 3)が用いられる。
The copying machine 1 is a multi-function digital copying machine (Multiple Function Peripheral) having an operation panel 11, a scanner unit 12, a printer unit 13 and a control unit 14 as main components, and obtains image data by reading a document image. A scan function and a copy function for printing (printing) a document image on a sheet based on the image data are provided.
In addition, a storage function for compressing image data and storing it in the HDD 144, a print function for reading out and decompressing the stored compressed data, printing based on the decompressed image data, and e-mail (hereinafter simply referred to as “mail”). Is transmitted / received via a mail server (not shown). For mail transmission / reception, well-known SMTP (Simple Mail Transfer Protocol) and POP3 (Post Office Protocol 3) are used.

スキャナ部12は、セットされた原稿の画像を読み取る公知の装置である。ここでは、原稿の画像データとして画素毎にr(赤)、g(緑)、b(青)の色成分(256階調)のデータが生成される。
プリンタ部13は、公知の電子写真方式により、スキャナ部12で読み取られた原稿の画像データに基づいて画像をシートに印刷する。
The scanner unit 12 is a known device that reads an image of a set document. Here, data of r (red), g (green), and b (blue) color components (256 gradations) is generated for each pixel as image data of the document.
The printer unit 13 prints an image on a sheet based on image data of a document read by the scanner unit 12 by a known electrophotographic method.

操作パネル11は、コピースタートボタンやコピー枚数設定用のテンキーなどの他、表面にタッチパネルが積層された液晶表示部が設けられており、制御部14の指示により必要な画面、例えばユーザからの蓄積機能やプリント機能の実行指示を受付けるための画面等を表示させると共に、ユーザによるタッチ入力等を受付けて、受付けた情報を制御部14に伝える。   The operation panel 11 is provided with a liquid crystal display unit having a touch panel laminated on the surface in addition to a copy start button and a numeric keypad for setting the number of copies, and a necessary screen, for example, accumulation from a user according to an instruction from the control unit 14. A screen or the like for receiving a function or print function execution instruction is displayed, and a touch input by the user is received, and the received information is transmitted to the control unit 14.

制御部14は、主な構成要素として、通信インターフェース(I/F)部141、CPU142、ROM143、HDD144、領域判別部145、圧縮部146、合成部147、RAM148および伸張部149を備えている。
通信I/F部141は、LANカード、LANボードといったLAN4に接続するためのインターフェースである。
The control unit 14 includes a communication interface (I / F) unit 141, a CPU 142, a ROM 143, an HDD 144, an area determination unit 145, a compression unit 146, a synthesis unit 147, a RAM 148, and an expansion unit 149 as main components.
The communication I / F unit 141 is an interface for connecting to the LAN 4 such as a LAN card or a LAN board.

ROM143には、制御に必要なプログラムが格納されている。
CPU142は、ROM143の制御プログラムに基づいて、スキャナ部12、プリンタ部13の動作を制御し、円滑なコピー等の動作を実現する。また、操作パネル11を介してユーザによるキー入力等を受付けると共に、必要なメッセージ等を液晶タッチパネルに表示させる。
The ROM 143 stores programs necessary for control.
The CPU 142 controls the operations of the scanner unit 12 and the printer unit 13 based on the control program stored in the ROM 143, thereby realizing a smooth copy operation. In addition, a key input or the like by the user is accepted through the operation panel 11, and a necessary message or the like is displayed on the liquid crystal touch panel.

HDD144は、画像データを格納する。
領域判別部145は、スキャナ部12により読み取られた原稿の画像データを受信し、原稿1頁ごとに、原稿画像に含まれる文字と文字以外の背景の領域判別を行う。
圧縮部146は、文字領域と判別された領域のデータに第1の画像処理、ここではMMR(Modified Modified READ)により圧縮処理を施し、背景領域と判別された領域のデータに第2の画像処理、ここではJPEG(Joint Photographic Experts Group)により圧縮処理を施す。
The HDD 144 stores image data.
The area discriminating unit 145 receives the image data of the original read by the scanner unit 12 and discriminates the areas of characters and backgrounds other than the characters included in the original image for each page of the original.
The compression unit 146 performs the first image processing on the data of the area determined as the character area, here, the compression processing by MMR (Modified Modified READ), and performs the second image processing on the data of the area determined as the background area. Here, compression processing is performed by JPEG (Joint Photographic Experts Group).

合成部147は、異なる方法で圧縮された文字と背景領域の圧縮データを所定の形式のファイル、ここではPDF(Portable Document Format)ファイルに変換し、HDD144に格納する。
RAM148は、領域判別の際に利用される記憶手段としてのメモリ(背景技術のメモリに相当)であり、図2(a)に示すように、バンドデータ格納領域1481、文字情報格納領域1482および処理作業領域1483を有している。
The synthesizing unit 147 converts the character and the compressed data of the background area compressed by different methods into a file of a predetermined format, here a PDF (Portable Document Format) file, and stores it in the HDD 144.
The RAM 148 is a memory (corresponding to a background art memory) used as a storage means used for area determination. As shown in FIG. 2A, a band data storage area 1481, a character information storage area 1482, and a process A work area 1483 is provided.

バンドデータ格納領域1481には、領域判別対象となる画像データが格納される。
文字情報格納領域1482には、領域判別結果としての文字領域情報(後述)が格納される。処理作業領域1483は、文字等の判別のための2値化や解像度変換(低解像度化)等の処理を実行する作業領域として用いられる。
RAM148は、その記憶容量が一般的な原稿について領域判別を実行できる程度の小容量に抑えられ、従来のものに比べて低コストのものが用いられている。このような小容量のものを用いることができる理由については後述する。
The band data storage area 1481 stores image data to be subject to area determination.
Character information storage area 1482 stores character area information (described later) as an area determination result. The processing work area 1483 is used as a work area for executing processing such as binarization and resolution conversion (reduction in resolution) for character discrimination.
The RAM 148 has a storage capacity that is limited to a small capacity that allows area discrimination for a general document, and has a lower cost than the conventional one. The reason why such a small capacity can be used will be described later.

図1に戻って、伸張部149は、HDD144に格納されている圧縮データを読み出して伸張し、その画像データをプリンタ部13に送る。
CPU142は、ユーザからの蓄積機能の実行指示を受付けると、領域判別部145等に指示して領域判別〜PDFファイルの格納までの一連の処理を実行させる。また、プリント機能の実行指示を受付けると、伸張部149等に指示して、圧縮データの読み出し〜プリントまでの処理を実行させる。
Returning to FIG. 1, the decompression unit 149 reads and decompresses the compressed data stored in the HDD 144, and sends the image data to the printer unit 13.
When the CPU 142 receives a storage function execution instruction from the user, the CPU 142 instructs the area determination unit 145 and the like to execute a series of processes from area determination to PDF file storage. When the print function execution instruction is received, the decompression unit 149 is instructed to execute the processing from reading the compressed data to printing.

図3は、蓄積機能が実行される場合の蓄積処理フローの概要を示す図である。
同図に示すように、ステップS1では、スキャナ部12において原稿画像が読み取られる。読み取りにより得られる画像データとしては、例えばBMP(ビットマップ)とすることができるが、TIFF(Tagged Image File Format)、その他のフォーマットの画像データであっても良い。
FIG. 3 is a diagram showing an outline of the accumulation processing flow when the accumulation function is executed.
As shown in the figure, in step S1, the scanner unit 12 reads a document image. The image data obtained by reading may be, for example, BMP (bitmap), but may be TIFF (Tagged Image File Format) or other format image data.

ステップS2では、領域判別の前処理が実行される。この前処理は、入力画像の領域判別をより精度良く行うための処理であり、具体的にはガンマ補正等の公知の処理である。
ステップS3では、文字領域と背景領域の判別が行われる。
ステップS4では、文字領域のデータがMMRにより圧縮される。
ステップS5では、背景領域のデータがJPEGにより圧縮される。
In step S2, pre-processing for area determination is executed. This pre-process is a process for determining the area of the input image with higher accuracy, and is a known process such as gamma correction.
In step S3, a character area and a background area are discriminated.
In step S4, the character area data is compressed by MMR.
In step S5, the background area data is compressed by JPEG.

ステップS6では、圧縮された文字と背景領域のデータが1ページの原稿画像のPDFファイルとして生成される。
次に、蓄積処理の詳細を図4、図5を用いて説明する。
図4は、蓄積処理の詳細な内容を示すフローチャートであり、図5は、当該処理により生成されるPDF形式のファイルの構成例を示す図である。
In step S6, the compressed character and background area data are generated as a one-page document image PDF file.
Next, details of the accumulation process will be described with reference to FIGS.
FIG. 4 is a flowchart showing the detailed contents of the accumulation process, and FIG. 5 is a diagram showing a configuration example of a file in PDF format generated by the process.

ここでは、図5に示すように、赤、青、黒の3色の文字列が印刷されている原稿を用い、原稿(入力)画像を300dpi(dot per inch)の解像度で読み取った場合に、走査ライン数が2048ラインあり、これを4つのブロック画像(以下、「バンド」という。)に分割して、分割されたバンド毎に領域判別等の処理を順次実行する場合の例を説明する。   Here, as shown in FIG. 5, when a document on which character strings of three colors of red, blue, and black are printed and a document (input) image is read at a resolution of 300 dpi (dot per inch), An example will be described in which there are 2048 scanning lines, which are divided into four block images (hereinafter referred to as “bands”), and processing such as region determination is sequentially performed for each of the divided bands.

また、図5のファイル101は、バンド毎に領域判別等の処理がスムーズに行われた場合(通常時)の例を示し、ファイル102は、処理の途中でRAM148の空き容量がなくなった場合(メモリ不足時)の例を示している。それぞれがHDD144内に割り当てられた格納領域にPDFファイルの形式で格納されている状態を模式的に示したものである。   Further, the file 101 in FIG. 5 shows an example in which processing such as area determination is performed smoothly for each band (normal time), and the file 102 is in the case where the free space of the RAM 148 is exhausted during the processing ( An example of when memory is insufficient. Each diagram schematically shows a state in which each is stored in the storage area allocated in the HDD 144 in the form of a PDF file.

なお、図4では、上記ステップS1、S2に相当する処理が省略されている。また、ステップS2の前処理後の画像データが一時的に制御部14の内部メモリ(不図示)にバンド単位で格納され、領域判別の際に順次読み出される構成になっているものとする。
図4に示すように、制御部14は、PDFヘッダ作成/出力処理を実行する(ステップS101)。ここでは、PDFファイルのバージョンや作成者、作成日時等のデータが作成され、作成されたデータを、ヘッダを示すファイルとしてHDD144に出力する。出力されたファイルは、HDD144に格納される(図5のファイル1010参照。)。
In FIG. 4, processes corresponding to steps S1 and S2 are omitted. In addition, it is assumed that the image data after the preprocessing in step S2 is temporarily stored in an internal memory (not shown) of the control unit 14 in units of bands and sequentially read out in the area determination.
As shown in FIG. 4, the control unit 14 executes a PDF header creation / output process (step S101). Here, data such as the version, creator, creation date and time of the PDF file is created, and the created data is output to the HDD 144 as a file indicating a header. The output file is stored in the HDD 144 (see the file 1010 in FIG. 5).

次に、RAM148の空き容量(残量)を検出し、空き容量が規定値以上あるか否かを判断する(ステップS102)。具体的には、RAM148の文字情報格納領域1482の空き容量が検出される。この検出方法としては、例えばデータがアドレス順に書き込まれる構成の場合、前回の書き込み時のデータの終端アドレスを記憶しておき、その終端アドレスを読み出すことで、文字情報格納領域1482の内のどのアドレスまでデータが書き込み済みなのかを検出する等の方法を用いることができる。   Next, the free space (remaining amount) of the RAM 148 is detected, and it is determined whether or not the free space is greater than or equal to a specified value (step S102). Specifically, the free space in the character information storage area 1482 of the RAM 148 is detected. As a detection method, for example, in the case of a configuration in which data is written in the order of addresses, the end address of the data at the time of the previous writing is stored, and by reading the end address, which address in the character information storage area 1482 is stored. It is possible to use a method such as detecting whether data has already been written.

ここでは、まだ何も書き込まれていない、すなわち空き容量が規定値以上あると判断し(ステップS102で「YES」)、処理対象のバンド、ここではバンド1の画像データを読み出して、RAM148のバンドデータ格納領域1481に展開する(書き込む)(ステップS103)。
そして、バンド1の画像について文字領域の判別を行う(ステップS104)。
Here, it is determined that nothing has been written yet, that is, that the free space is equal to or greater than the predetermined value (“YES” in step S102), and the image data of the band to be processed, here band 1 is read, and the band of RAM 148 is read. The data is expanded (written) in the data storage area 1481 (step S103).
Then, the character area of the band 1 image is determined (step S104).

具体的には、(a)バンド1の画像データの各画素について、そのr、g、b色のデータ(256階調)を公知の変換式を用いて明度データに変換し、変換された明度データに公知のスムージングフィルタをかけてノイズを除去するスムージングを実行する。
(b)スムージングが施されたデータに公知のエッジフィルタをかけ2値のエッジ画像を生成する2値化を行い、生成された2値のエッジ画像について、主走査方向、副走査方向に所定の範囲内、例えば日本語の場合に単語(数文字)程度の範囲にあるものを連結し、連結されたブロックを取り囲んだ矩形領域を設定する。例えば、1行の文字列に対し1つの矩形領域が設定されるとすると、1バンド内に文字列が10行存在すれば10個の矩形領域が別々に設定されることになる。
Specifically, (a) for each pixel of band 1 image data, the r, g, b color data (256 gradations) is converted into lightness data using a known conversion formula, and the converted lightness Smoothing is performed to remove noise by applying a known smoothing filter to the data.
(B) A binarization is performed to generate a binary edge image by applying a known edge filter to the smoothed data, and the generated binary edge image is predetermined in the main scanning direction and the sub-scanning direction. In the range, for example, in the case of Japanese, those within a range of about a word (several characters) are connected, and a rectangular area surrounding the connected blocks is set. For example, if one rectangular area is set for one line of character string, if there are 10 lines of character strings in one band, 10 rectangular areas are set separately.

(c)設定された矩形領域それぞれについて、その領域内の画像が文字であるか否かを判定する。例えば、矩形領域内の画像について、その局所的な形状を特徴量として抽出し、抽出した特徴量からその画像が文字によるものであるか否かを判定する。
より具体的には、画像の局所的な形状として、カーブ量や傾斜方向、閉ループ数、十字交差数、T字交差数等を抽出し、抽出された特徴点が、予め保持している文字判定のためのパターンの特徴点と一致している数が所定値(閾値)以上であれば、文字と判定し、所定値よりも少なければ文字ではないと判定するものである。なお、文字判定の方法は、上記のものに限られず、他の公知の方法を用いることができる。例えば、文字判定用の辞書に基づいてパターン認識を行う方法が考えられる。
(C) For each set rectangular area, it is determined whether or not the image in the area is a character. For example, a local shape of an image in a rectangular area is extracted as a feature amount, and it is determined whether or not the image is based on characters from the extracted feature amount.
More specifically, as the local shape of the image, the curve amount, the inclination direction, the number of closed loops, the number of crosses, the number of T-shaped intersections, and the like are extracted, and the extracted feature points hold character determinations held in advance. If the number matching the feature points of the pattern for the number is greater than or equal to a predetermined value (threshold), it is determined as a character, and if it is less than the predetermined value, it is determined as not a character. Note that the character determination method is not limited to the above, and other known methods can be used. For example, a method of performing pattern recognition based on a dictionary for character determination is conceivable.

また、文字領域の判別方法は、上記のものに限られず、他の公知の方法、例えば上記「背景技術」の項で説明したように、2値化画像の黒画素の輪郭線追跡、ラベリングを行って、横幅や高さが閾値以下の画素の集まりを文字領域とする方法をとるとしても良い。
(d)文字と判定された矩形領域(文字領域)の全画素を2値化して、各画素が文字とそれ以外の部分(下地)のいずれに属するのかを判別する。これは、例えば全画素の明度ヒストグラムをとり、そのヒストグラムから文字と下地を分けるための閾値を決め、その閾値よりも明度が低い画素を文字、明度が高い画素を下地と判別するという公知の方法をとることができる。例えば、文字と判別された画素を「1」、下地と判別された画素を「0」にする。
In addition, the method for determining the character region is not limited to the above, and other known methods, for example, the tracking and labeling of the contour line of the black pixel of the binarized image, as described in the section “Background Art” above. A method may be adopted in which a character region is a collection of pixels whose horizontal width and height are equal to or less than a threshold value.
(D) All pixels of the rectangular area (character area) determined to be a character are binarized, and it is determined whether each pixel belongs to a character or the other part (background). This is, for example, a known method of taking a brightness histogram of all pixels, determining a threshold for separating a character and a background from the histogram, and determining a pixel having a lightness lower than the threshold as a character and a pixel having a high lightness as a background. Can be taken. For example, a pixel determined as a character is set to “1”, and a pixel determined as a background is set to “0”.

ステップS105では、文字領域ごとに、当該領域の原稿1ページ内における座標(例えば対角の2点のX−Y座標)を示す位置情報、当該領域内の各画素の画素値(2値)および色情報を文字領域情報(当該領域を特定するための情報)として文字情報格納領域1482に格納する。この意味で、制御部14は、当該処理を実行する場合に、文字領域情報をメモリに格納する格納手段として機能するものである。   In step S105, for each character area, position information indicating coordinates (for example, XY coordinates of two diagonal points) within one page of the area, pixel values (binary) of each pixel in the area, and The color information is stored in the character information storage area 1482 as character area information (information for specifying the area). In this sense, the control unit 14 functions as a storage unit that stores character area information in a memory when executing the processing.

ここで、色情報とは、当該領域内の全文字の色の平均値(r、g、bの色毎の平均値)と下地の部分の色の平均値(下地色平均値)を示す情報をいう。文字の色を平均値とするのは、1列内で各文字の色が異なることはほとんどないため、平均をとることでも本来の色と同等に表すことができるからである。このように文字の色を代表して1色で扱うことにより、文字領域の圧縮時のデータ量を減らすことができる。   Here, the color information is information indicating an average value of colors of all characters in the region (average value for each color of r, g, and b) and an average value of colors of the background portion (background color average value). Say. The reason why the color of the character is used as the average value is that the color of each character is hardly different within one column, and thus it can be expressed equivalent to the original color even by taking the average. In this way, the amount of data when the character area is compressed can be reduced by treating the character color with one color.

また、下地の部分の色の平均をとるのは、後述のように背景領域を低解像度化、JPEG圧縮する際に当該文字領域が位置する部分にダミーの画素があるとして低解像度化等するようにしており、そのダミーの全画素の色として当該下地色平均値を用いるためである。ダミーの全ての画素が同色となるので、圧縮率を向上できる。
ステップS104とS105の処理は、個々の文字領域が設定される毎に順次実行される。従って、設定される文字領域の数が多いほどバンド1の文字領域情報として文字情報格納領域1482に格納されるデータ量が増えることになる。
Also, the average of the colors of the background part is to reduce the resolution of the background area, as described later, and to reduce the resolution assuming that there is a dummy pixel in the part where the character area is located when JPEG compression is performed. This is because the background color average value is used as the color of all the dummy pixels. Since all the dummy pixels have the same color, the compression rate can be improved.
The processes in steps S104 and S105 are executed sequentially each time an individual character area is set. Therefore, as the number of character areas to be set increases, the amount of data stored in the character information storage area 1482 as the character area information of the band 1 increases.

続いて、バンド1内における文字領域以外の領域を非文字領域(背景領域)として、当該非文字領域の画像データをバンドデータ格納領域1481から読み出して処理作業領域1483に展開し、低解像度化する(ステップS106)。背景領域は、文字領域を除く部分であるから、文字領域が位置する部分については穴あきのように画素が存在していない状態になっているはずであるが、より高圧縮化を図るため、バンド1内において文字領域と設定された部分に、上記の下地色平均値と同じ色のダミーの画素が存在するものとして低解像度化が実行される。解像度変換として、ここでは150dpiに変換される。また、変換方法としては、公知の方法、例えば隣接する2画素の内の1画素を間引く方法等が用いられる。   Subsequently, an area other than the character area in the band 1 is set as a non-character area (background area), and image data of the non-character area is read from the band data storage area 1481 and developed in the processing work area 1483 to reduce the resolution. (Step S106). Since the background area is a part excluding the character area, the part where the character area is located should be in a state where there is no pixel like a hole, but in order to achieve higher compression, The resolution reduction is executed on the assumption that a dummy pixel having the same color as the above background color average value exists in a portion set as a character area in 1. Here, the resolution is converted to 150 dpi. As the conversion method, a known method, for example, a method of thinning out one of two adjacent pixels is used.

そして、低解像度化された画像データをJPEGにより圧縮し(ステップS107)、その圧縮データをバンド1における非文字領域のファイルとしてHDD144に出力する(ステップS108)。出力されたファイルは、HDD144に格納される(図5のファイル1011参照。)。
ステップS109では、バンド1〜4についてステップS102〜S108までの処理が終了したか否かを判断する。
The reduced-resolution image data is compressed by JPEG (step S107), and the compressed data is output to the HDD 144 as a non-character area file in band 1 (step S108). The output file is stored in the HDD 144 (see the file 1011 in FIG. 5).
In step S109, it is determined whether or not the processing from steps S102 to S108 has been completed for bands 1 to 4.

ここでは、まだ終了していないとして(ステップS109で「NO」)、ステップS102に戻り、未処理のバンド2、3、4に対しステップS102〜S109までの処理を繰り返し実行する。その際、ステップS103では、当該バンドの画像データがバンドデータ格納領域1481に上書きされることになる。
この繰り返しの間、RAM148の空き容量が規定値以上であると判断された場合には(ステップS102で「YES」)、バンド毎にそのバンドの文字領域情報が文字情報格納領域1482に順次格納され(図2(b)参照)、非文字領域の画像データはバンド毎にJPEG圧縮されてHDD144に格納されることになる(図5のファイル1012、1013、1014参照。)。
Here, assuming that the processing has not been completed yet (“NO” in step S109), the process returns to step S102, and the processing from steps S102 to S109 is repeatedly executed for the unprocessed bands 2, 3, and 4. At that time, in step S103, the image data of the band is overwritten in the band data storage area 1481.
If it is determined that the free space of the RAM 148 is equal to or greater than the predetermined value during this repetition (“YES” in step S102), the character area information of the band is sequentially stored in the character information storage area 1482 for each band. The image data in the non-character area is JPEG compressed for each band and stored in the HDD 144 (see the files 1012, 1013, and 1014 in FIG. 5).

なお、図2(b)において、文字情報格納領域1482に格納されている文字領域情報のデータ量がバンド1、2、3でそれぞれ異なるのは、上記「発明が解決しようとする課題」の項で述べたように、文字数、サイズ等によって、文字領域として判別される領域の大きさや個数が異なり、そのため文字領域情報として格納されるデータ量もバンドによって異なって来るからである。   In FIG. 2B, the amount of data of the character area information stored in the character information storage area 1482 differs between bands 1, 2, and 3, respectively. As described above, the size and number of areas determined as character areas differ depending on the number of characters, size, etc., and therefore the amount of data stored as character area information also varies depending on the band.

ステップS109で最終バンド、ここではバンド4に対する領域判別等の処理が終了したことを判断すると、ステップS115に移る。
ステップS115では、文字領域を統合する処理を行う。
具体的には、文字情報格納領域1482に格納されている各バンドの文字領域情報(矩形領域の座標、画素値、色情報)を参照し、複数個の文字領域の中に、隣り合うもの同士が近接かつ文字色の略等しいものがあるか否かを判断する。この近接の判断は、隣り合うもの同士の間隔が所定値、例えば5[mm]より短いか否かにより行われる。また、どの色のものを統合するのかについては、同じまたは近いものなど伸張後の文字色の再現性等から予め決めることができる。
If it is determined in step S109 that processing such as area determination for the last band, here band 4, has been completed, the process proceeds to step S115.
In step S115, processing for integrating character areas is performed.
Specifically, by referring to the character area information (rectangular area coordinates, pixel values, color information) of each band stored in the character information storage area 1482, adjacent ones among a plurality of character areas It is determined whether or not there is an object that is close and substantially equal in character color. This proximity determination is made based on whether or not the interval between adjacent objects is shorter than a predetermined value, for example, 5 [mm]. In addition, which color is to be integrated can be determined in advance from the reproducibility of the character color after expansion, such as the same or similar.

近接かつ略同色のものがあると判断すると、それらを取り囲む新たな矩形領域を設定する。これにより、文字領域の判別が終了した全バンドについて、文字色が略同じで近接した矩形領域同士が統合されて1つの文字領域ができあがることになる。
なお、新たな文字領域内の各画素の画素値(2値)については、統合前の文字領域情報に含まれるものが読み出され、例えば文字の部分の画素を「1」としたとき、それ以外の画素を全て下地として「0」に設定する処理が行われる。
If it is determined that there are objects that are close and of the same color, a new rectangular area surrounding them is set. As a result, for all the bands for which the determination of the character area has been completed, the adjacent rectangular areas having substantially the same character color are integrated to form one character area.
As for the pixel value (binary) of each pixel in the new character area, the one included in the character area information before integration is read out. For example, when the pixel of the character part is “1”, A process of setting all pixels other than to “0” as a background is performed.

統合が終了すると、文字領域の判別が終了したバンド、ここではバンド1〜4について、その文字領域の圧縮を行う(ステップS116)。ここでは、文字領域毎に、その領域の座標と各画素の画素値(2値)と当該各画素がどの領域に属するものであるのかを示す識別情報とを対応付けたデータを生成し、生成したデータをMMRにより圧縮する。ここでは、色別に文字領域を圧縮する。この意味で、制御部14は、ステップS115、S116の処理を実行する場合に、所定の属性の画像領域(ここでは文字領域)の画像に対し第1の画像処理を施す画像処理手段として機能するものである。   When the integration is completed, the character area is compressed for the band for which the determination of the character area is completed, here, the bands 1 to 4 (step S116). Here, for each character area, data is generated by associating the coordinates of the area, the pixel value (binary value) of each pixel, and identification information indicating to which area each pixel belongs. The obtained data is compressed by MMR. Here, the character area is compressed for each color. In this sense, the control unit 14 functions as an image processing unit that performs first image processing on an image of an image region (here, a character region) having a predetermined attribute when executing the processing of steps S115 and S116. Is.

続いて、圧縮データを文字領域のファイルとしてHDD144に出力する(ステップS117)。出力されたファイルは、色毎に別ファイルとしてHDD144に格納される(図5のファイル1015参照。)。
ステップS118では、PDFフッタ作成/出力処理を行う。具体的には、文字領域情報に含まれる位置情報と色情報とを対応付けたデータ等をフッタファイルとして生成し、HDD144に出力する。出力されたファイルは、HDD144に格納される(図5のファイル1016参照。)。
Subsequently, the compressed data is output to the HDD 144 as a character area file (step S117). The output file is stored in the HDD 144 as a separate file for each color (see the file 1015 in FIG. 5).
In step S118, PDF footer creation / output processing is performed. Specifically, data that associates position information and color information included in the character area information is generated as a footer file, and is output to the HDD 144. The output file is stored in the HDD 144 (see the file 1016 in FIG. 5).

これまでは、RAM148の空き容量が規定値以上になっている場合(通常時)の例を説明したが、次に、処理の途中でRAM148の空き容量が規定値よりも少なくなった場合(メモリ不足時)の例を説明する。
ここでは、図2(b)に示すように、バンド1〜3について領域判別が終了し、次にバンド4について領域判別を開始するときの処理を説明する。
So far, an example has been described in which the free space of the RAM 148 is greater than or equal to the specified value (normal time), but next, when the free space of the RAM 148 becomes smaller than the specified value during the processing (memory) An example of shortage) will be described.
Here, as shown in FIG. 2B, a process when the area determination for the bands 1 to 3 ends and the area determination for the band 4 starts next will be described.

制御部14は、ステップS102において、RAM148の空き容量として、図2(b)の領域14821の容量を検出し、その容量が規定値以上であるか否かを判断する。
領域14821の容量が規定値以上ではない、すなわち規定値よりも少ないと判断すると(ステップS102で「NO」)、処理対象となるバンド4の画像データをRAM148のバンドデータ格納領域1481に書き込む(ステップS110)。
In step S102, the control unit 14 detects the capacity of the area 14821 in FIG. 2B as the free capacity of the RAM 148, and determines whether or not the capacity is equal to or greater than a specified value.
If it is determined that the capacity of the area 14821 is not equal to or greater than the specified value (ie, “NO” in step S102), the image data of band 4 to be processed is written in the band data storage area 1481 of the RAM 148 (step S102). S110).

そして、その画像データを低解像度化した後、JPEGにより圧縮する(ステップS111)。この低解像化およびJPEG圧縮の方法は、例えば上記ステップS106、S107の処理と同じ方法とすることができるが、当該バンド4については文字画像もJPEG圧縮されることになる。そこで、ステップS111では、文字の画質劣化を低減するため、ステップS106の解像度変換により変換される解像度よりも解像度を高く、例えば200dpiとする方法、解像度変換自体を行わない方法、またステップS107の圧縮よりも圧縮率を弱くする方法等をとることが好ましい。   Then, after the resolution of the image data is reduced, the image data is compressed by JPEG (step S111). The low resolution and JPEG compression method can be the same as the processing in steps S106 and S107, for example, but the character image of the band 4 is also JPEG compressed. Therefore, in step S111, in order to reduce image quality degradation of characters, a method of setting the resolution higher than the resolution converted by the resolution conversion of step S106, for example, 200 dpi, a method of not performing the resolution conversion itself, and the compression of step S107 It is preferable to take a method of reducing the compression rate.

続いて、圧縮データをバンド4における非文字領域のファイルとしてHDD144に出力する(ステップS112)。出力されたファイルは、HDD144に格納される(図5のファイル1023参照)。
このようにバンド4については、文字判別のためのメモリの空き容量がないために、文字判別を行わず強制的に全領域がJPEG圧縮される。この意味で、制御部14は、ステップS110、S111の処理を実行する場合に、領域判別が中止された場合に未判別のブロック画像に対し第2の画像処理を施す画像処理手段として機能するものといえる。
Subsequently, the compressed data is output to the HDD 144 as a non-character area file in the band 4 (step S112). The output file is stored in the HDD 144 (see the file 1023 in FIG. 5).
As described above, with respect to the band 4, since there is no free space in the memory for character determination, the entire region is forcibly JPEG compressed without performing character determination. In this sense, the control unit 14 functions as an image processing unit that performs the second image processing on the unidentified block image when the region determination is stopped when executing the processing of steps S110 and S111. It can be said.

ステップS113では、当該バンドが最終バンドであるか否か、すなわち未処理のバンドが残っていないか否かを判断する。
最終ではない(未処理のバンドが残っている)と判断すると、ステップS110に戻り、ステップS110〜S113の処理、すなわち、未処理のバンドの画像データに対し低解像度化とJPEG圧縮を施し、生成された圧縮データのファイルをHDD144に出力して格納する。
In step S113, it is determined whether or not the band is the last band, that is, whether or not an unprocessed band remains.
If it is determined that it is not final (the unprocessed band remains), the process returns to step S110, the processing of steps S110 to S113, that is, the image data of the unprocessed band is subjected to low resolution and JPEG compression and generated. The compressed data file is output to the HDD 144 and stored.

最終バンドと判断すると(ステップS113で「YES」)、ユーザに対し本来と異なる画像処理を行った旨、例えば「文字画像に、本来のMMRとは異なるJPEG圧縮された部分が含まれている可能性があります」といったメッセージを操作パネル11に表示させる通知処理を実行し(ステップS114)、ステップS115に移る。
ステップS115以降では、上記のように文字判別済みの領域について統合、MMRによる圧縮、出力等を行って、当該蓄積処理を終了する。
If it is determined that the band is the final band (“YES” in step S113), for example, “a character image may include a JPEG-compressed portion that is different from the original MMR. Notification processing for displaying a message such as “There is a possibility” on the operation panel 11 is executed (step S114), and the process proceeds to step S115.
In step S115 and subsequent steps, integration, compression by MMR, output, and the like are performed on the area where the character has been determined as described above, and the accumulation process is terminated.

これにより図5のファイル102に示すように、バンド1〜3については、文字領域のファイル1021と背景領域のファイル1022が別々に生成され、バンド4についてはその全領域の1つのファイル1023が生成されることになる。
このように各バンドについて領域判別の前にメモリの空き容量が規定値よりも少ないことを判断すると、それ以降のバンドについては領域判別を行わずにその領域の画像をJPEG圧縮する。
As a result, as shown in the file 102 of FIG. 5, the file 1021 of the character area and the file 1022 of the background area are separately generated for the bands 1 to 3, and one file 1023 of the entire area is generated for the band 4. Will be.
As described above, when it is determined that the free capacity of the memory is smaller than the predetermined value before the area determination for each band, the image of that area is JPEG compressed without performing the area determination for the subsequent bands.

従って、RAMとして、一般の原稿に対し領域判別を行うのに十分と考えられる小容量のものを配置しておけば、コストを抑えながら、使用頻度が高い一般の原稿については領域判別による高圧縮、文字の可読性の向上を図ることができる。
また、文字数や色数が多いなど領域判別を行うのに一般の原稿よりもメモリ容量を多く必要とする原稿については、メモリの空き容量が規定値よりも少なくなった以降のバンドの文字画像がJPEG圧縮されることになるが、その圧縮率を弱くする等により画質劣化を抑えることができると共に、蓄積処理の中断を防止でき、ユーザは希望する画像を確実にHDD等に保存し、またメールに添付して外部端末に送信することが可能になる。
Therefore, if a small-capacity RAM that is considered to be sufficient to perform area determination on a general document is arranged as a RAM, high-compression by area determination is performed for a general document that is frequently used while suppressing cost. The readability of characters can be improved.
Also, for documents that require more memory capacity than ordinary documents for area determination, such as when the number of characters and colors is large, the character images in the band after the free memory capacity becomes less than the specified value Although JPEG compression is performed, image quality deterioration can be suppressed by reducing the compression rate, etc., and interruption of the accumulation process can be prevented, so that the user can securely store the desired image in the HDD, etc. It becomes possible to attach to and send to an external terminal.

さらに、入力画像を複数の領域(バンド)に分けて、バンド毎に領域判別を行う構成にしているので、入力画像の全部をまとめて一度にメモリ(RAM)に展開し領域判別を行ってその結果を格納して行く構成とする場合に比べてメモリ自体の容量を小さく抑えることができる。
このように領域を分割する方法をとる場合、1ページ分の画像データをより小さな領域に分割してバンド数を多くすれば、それだけメモリ容量を小さくできる。ところが、メモリ容量を小さくすると格納できる画像データの量が減ることになるので、逆にメモリへの画像データの書き込み回数が増えて、その処理に要する時間が余分にかかることになり、蓄積処理全体の処理時間が長くなってしまう。そのため、処理時間とメモリ容量を比較考慮した上で最適なバンド数が実験等から予め求められることになる。
Furthermore, since the input image is divided into a plurality of regions (bands) and the region is determined for each band, all the input images are collected and expanded in a memory (RAM) at a time, and the region is determined. Compared to a configuration in which results are stored, the capacity of the memory itself can be reduced.
When the method of dividing the area is used, the memory capacity can be reduced by dividing the image data for one page into smaller areas and increasing the number of bands. However, if the memory capacity is reduced, the amount of image data that can be stored is reduced. Conversely, the number of times image data is written to the memory increases, and the time required for the processing increases. The processing time will be longer. For this reason, the optimum number of bands is obtained in advance from experiments or the like after considering the processing time and the memory capacity.

また、上記では、メモリの空き容量の検出を1バンドの処理ごとに行うとしたが、例えば1つのバンドの処理中にも空き容量を検出するとしても良い。1つのバンドについてその各文字領域の文字領域情報が順次RAM148に書き込まれる間に、空き容量が規定値よりも少なくなることも考えられるからである。
例えば、ステップS104、S105において、文字領域の判別と共にメモリの空き容量の検出も行い、あるバンドの領域判別の処理中に空き容量が規定値よりも少なくなったことを検出すると、判別途中であってもステップS106に移り、当該バンドに対し低解像度化、JPEG圧縮等の処理を行う(ステップS106〜S108)。そして、当該バンド内の、空き容量が規定値よりも少なくなったことが検出されるまでに文字と判別された領域については、ステップS105で文字領域情報が記憶されているので、ステップS115〜S117において、それまでに文字と判別された他のバンドの文字領域と共にMMR圧縮を施した後、出力する処理を行うことで実現できる。
In the above description, the detection of the free space of the memory is performed for each processing of one band. However, for example, the free space may be detected during the processing of one band. This is because it is conceivable that the free space becomes smaller than the prescribed value while the character area information of each character area is sequentially written in the RAM 148 for one band.
For example, in steps S104 and S105, the free space of the memory is detected together with the determination of the character region, and if it is detected that the free space has become smaller than a predetermined value during the region determination processing of a certain band, the determination is in progress. However, the process proceeds to step S106, and processing such as resolution reduction and JPEG compression is performed on the band (steps S106 to S108). Since the character area information is stored in step S105 for the area determined to be a character before it is detected that the free space is smaller than the specified value in the band, steps S115 to S117 are performed. In this case, it can be realized by performing output processing after performing MMR compression together with character regions of other bands that have been determined as characters so far.

(第2の実施の形態)
上記第1の実施の形態では、1つのバンドついて文字等の領域判別を行う前にメモリの空き容量を検出し、その空き容量が規定値よりも少ない場合に、当該バンドを含む領域判別をまだ行っていない未判別のバンドに対し領域判別を行わずJPEG圧縮を施すとしたが、本実施の形態では、領域判別済のバンドを含む全バンドについてJPEG圧縮を施すとしており、その点が第1の実施の形態と異なっている。以下、本実施の形態の内容を説明するが、第1の実施の形態と同じ内容についてはその説明を省略し、同じ構成要素については、同符号を付すものとする。
(Second Embodiment)
In the first embodiment, the free space of the memory is detected before performing the region determination for one band, etc., and if the free space is less than the specified value, the region determination including the band is not yet performed. In this embodiment, JPEG compression is applied to all the bands including the band that has been subjected to the area determination. The JPEG compression is applied to the unidentified band that has not been performed. This is different from the embodiment. The contents of the present embodiment will be described below, but the description of the same contents as those of the first embodiment will be omitted, and the same constituent elements will be denoted by the same reference numerals.

図6は、本実施の形態の蓄積処理の内容を示すフローチャートである。
同図に示すように、本実施の形態の蓄積処理は、第1の実施の形態の蓄積処理とほとんど同じであるが、ステップS102とS110の間にステップS201の処理が介在しており、この点が異なっている。
すなわち、メモリの空き容量が規定値よりも少ないことを判断すると(ステップS102で「NO」)、それまでに出力したファイルを削除(破棄)し、処理対象バンドを先頭、ここではバンド1に戻す処理を実行する(ステップS201)。
FIG. 6 is a flowchart showing the contents of the accumulation process of the present embodiment.
As shown in the figure, the accumulation process of the present embodiment is almost the same as the accumulation process of the first embodiment, but the process of step S201 is interposed between steps S102 and S110. The point is different.
That is, when it is determined that the free space of the memory is less than the specified value (“NO” in step S102), the file output so far is deleted (discarded), and the band to be processed is returned to the top, here band 1. Processing is executed (step S201).

具体的には、例えばバンド1〜3の画像に対する領域判別が終わりバンド4について領域判別しようとしたときに空き容量が規定値よりも少ないことが判断された場合には、バンド1〜3における背景領域のJPEG圧縮されたファイルを破棄すると共に現にRAM148に格納されているバンド1〜3にかかる画像データおよび文字領域情報を破棄するものである。   Specifically, for example, when it is determined that the area for the images of the bands 1 to 3 is over and the area for the band 4 is to be determined, the background in the bands 1 to 3 is determined. The JPEG-compressed file in the area is discarded and the image data and character area information relating to the bands 1 to 3 that are actually stored in the RAM 148 are discarded.

ステップS110では、処理対象となるバンド1の画像データをRAM148のバンドデータ格納領域1481に書き込む。
ステップS111では、その画像データを低解像度化した後、JPEGにより圧縮する。この低解像化およびJPEG圧縮の方法は、上記ステップS111の処理と同じ方法とすることができる。
In step S 110, the band 1 image data to be processed is written in the band data storage area 1481 of the RAM 148.
In step S111, the image data is reduced in resolution and then compressed by JPEG. The method of the low resolution and JPEG compression can be the same method as the process in step S111.

そして、ステップS112では、圧縮データをバンド1における非文字領域(実際には文字を含む場合があるが領域判別されていないので非文字領域とされる。)のファイルとしてHDD144に出力する。出力されたファイルは、HDD144に格納される。
ステップS113では、最終バンドであるか否かを判断し、最終ではないことを判断すると、ステップS110に戻り、ステップS110〜S112の処理を実行して未処理のバンドについて低解像度化とJPEG圧縮を施し、生成された圧縮ファイルをHDD144に格納させる。未処理のバンドがないと判断されるまで、ステップS110〜S113の処理が繰り返し実行される。
In step S112, the compressed data is output to the HDD 144 as a file of a non-character area in band 1 (actually a character may be included, but the area is not determined and is thus a non-character area). The output file is stored in the HDD 144.
In step S113, it is determined whether or not it is the final band. If it is determined that the band is not final, the process returns to step S110, and the processing of steps S110 to S112 is executed to reduce the resolution and JPEG compression for the unprocessed band. The compressed file generated is stored in the HDD 144. Until it is determined that there is no unprocessed band, the processes of steps S110 to S113 are repeatedly executed.

最終バンドであることを判断すると(ステップS113で「YES」)、ステップS114を介してステップS118に移る。これにより、図7に示すファイル201の構成例に示すように、バンド1〜4についてバンド毎にその画像がJPEG圧縮されたファイルがHDD144に格納されることになる。
このように本実施の形態では、蓄積処理の途中でメモリの空き容量が規定値よりも少なくなったことが検出されると、全バンドに対しJPEGによる同じ方法の圧縮処理を施す構成としている、
従って、部分的に異なる方法で圧縮を施す構成に比べて、1ページ分の圧縮後の画像を見たとき人の目には文字画像の画質劣化と映り難くなる。なお、本実施の形態においても第1の実施の形態と同様に、ステップS111ではステップS106、S107の処理よりも解像度を上げる設定や圧縮率を低く設定する等とすることが好ましい。
If it is determined that it is the final band (“YES” in step S113), the process proceeds to step S118 via step S114. As a result, as shown in the configuration example of the file 201 shown in FIG. 7, the files in which the images of the bands 1 to 4 are JPEG compressed for each band are stored in the HDD 144.
As described above, in the present embodiment, when it is detected that the free space of the memory is less than the specified value during the accumulation process, the compression method of the same method using JPEG is performed on all bands.
Therefore, compared with a configuration in which compression is performed by a partially different method, it is difficult for human eyes to see the image quality deterioration of a character image when viewing a compressed image for one page. In this embodiment as well, as in the first embodiment, it is preferable to set the resolution to be higher and the compression rate to be lower in step S111 than in the processes in steps S106 and S107.

(第3の実施の形態)
上記第2の実施の形態では、メモリの空き容量が規定値よりも少ない場合に全バンドについてJPEG圧縮を施すとしたが、本実施の形態では、1ページ内の文字数が極端に多い原稿など、蓄積処理の途中で空き容量が規定値よりも少なくなる蓋然性が高いと考えられる原稿(以下、「特殊原稿」という。)の場合には、全バンドについてJPEG圧縮を施すとしており、その点が第2の実施の形態と異なっている。
(Third embodiment)
In the second embodiment, JPEG compression is performed for all the bands when the available memory capacity is less than the specified value. However, in this embodiment, a document having an extremely large number of characters in one page, etc. In the case of a document that is considered to have a high probability that the free space will become smaller than the specified value during the accumulation process (hereinafter referred to as “special document”), JPEG compression is applied to all bands. This is different from the second embodiment.

図8は、本実施の形態の蓄積処理の内容を示すフローチャートである。
同図に示すように、本実施の形態の蓄積処理は、第2の実施の形態の蓄積処理とほとんど同じであるが、ステップS104とS105の間にステップS301の処理が介在しており、この点が異なっている。
すなわち、ステップS301では、原稿の種類として原稿が特殊原稿であるか否かを判断する。この特殊原稿の判断は、ここではステップS104の処理でバンド1の画像について判別された文字の矩形領域の数をカウントし、そのカウント値が所定値以上であるか否かにより行われる。このような方法をとるのは、矩形領域の数が多いということは、それだけ文字行数が多いことを意味しており、文字数が多い原稿と考えることができるからである。なお、所定値は、矩形領域としてカウントされる数がどの程度以上になれば蓄積処理の途中でメモリの空き容量が規定値よりも少なくなるかを予め実験等から求めておくことにより設定することができる。
FIG. 8 is a flowchart showing the contents of the accumulation process of the present embodiment.
As shown in the figure, the accumulation process of the present embodiment is almost the same as the accumulation process of the second embodiment, but the process of step S301 is interposed between steps S104 and S105. The point is different.
That is, in step S301, it is determined whether the original is a special original as the type of original. Here, the determination of the special document is performed by counting the number of rectangular areas of characters determined for the band 1 image in the process of step S104, and whether the count value is equal to or greater than a predetermined value. The reason why such a method is adopted is that the fact that the number of rectangular areas is large means that the number of character lines is so large that it can be considered as a document having a large number of characters. Note that the predetermined value is set by obtaining in advance an experiment or the like how much the number counted as a rectangular area will be and the free space in the memory will be smaller than the specified value during the accumulation process. Can do.

特殊原稿であることを判断すると(ステップS301で「YES」)、ステップS111に移ってバンド1の画像データを低解像度化しJPEGによる圧縮処理を施す。以下、バンド2〜4についても、ステップS110〜S113の処理を繰り返し行う。この場合、第2の実施の形態と同様に図7に例示する構成のファイルが生成されることになる。
一方、特殊原稿でないことを判断すると(ステップS301で「NO」)、ステップS105に移って、それ以降、第1(第2)の実施の形態と同じ処理が実行される。
If it is determined that the document is a special document (“YES” in step S301), the process proceeds to step S111, where the resolution of the band 1 image data is reduced, and compression processing using JPEG is performed. Hereinafter, the processes in steps S110 to S113 are repeated for bands 2 to 4. In this case, a file having the configuration illustrated in FIG. 7 is generated as in the second embodiment.
On the other hand, if it is determined that the document is not a special document (“NO” in step S301), the process proceeds to step S105, and thereafter, the same processing as in the first (second) embodiment is executed.

このように本実施の形態では、特殊原稿と判断されると全バンドに対しJPEGによる圧縮処理を施す構成としたので、特殊原稿の場合にはすぐに圧縮処理を始めることができ、より処理時間を短縮できる。
なお、上記ではバンド1の画像を用いて特殊原稿であるか否かを判断したが、バンド1に限られず、他のバンド、例えばバンド2の画像を用いて判断することもできる。この場合、バンド2を最初に処理するバンドと決め、それ以降、例えばバンド1、3、4の順に処理するようにすれば良い。
As described above, in this embodiment, when it is determined that the original is a special document, the compression processing by JPEG is performed on all the bands. Therefore, in the case of the special document, the compression processing can be started immediately, and the processing time can be further increased. Can be shortened.
In the above description, whether or not the document is a special document is determined using the band 1 image. However, the determination is not limited to the band 1, and the determination can be performed using another band, for example, the band 2 image. In this case, band 2 may be determined as the band to be processed first, and thereafter, for example, bands 1, 3, and 4 may be processed in this order.

また、特殊原稿の判断の方法は、矩形領域の数に限られない。例えば、文字画像の色の数をカウントし、その値が所定の閾値を越えた場合に特殊原稿と判断する方法をとることができる。さらに、これらを組み合わせるとしても良い。
また、特殊原稿であるか否か(原稿の種類)をユーザによる指示、例えば操作パネル11からの入力指示により判断する方法をとることもできる。
Further, the method for determining a special document is not limited to the number of rectangular areas. For example, it is possible to take a method of counting the number of colors of a character image and determining that the original is a special document when the value exceeds a predetermined threshold. Furthermore, these may be combined.
Also, a method of determining whether or not the document is a special document (document type) by an instruction from the user, for example, an input instruction from the operation panel 11 can be used.

本発明は、画像処理装置に限られず、上記した蓄積処理方法に適用することができる。また、その方法をコンピュータが実行するプログラムであるとしてもよい。
また、本発明に係るプログラムは、例えば磁気テープ、フレキシブルディスク等の磁気ディスク、DVD、CD−ROM、CD−R、MO、PDなどの光記録媒体、Smart Media(登録商標)などのフラッシュメモリ系記録媒体等、コンピュータ読み取り可能な各種記録媒体に記録することが可能であり、当該記録媒体の形態で生産、譲渡等がなされる場合もあるし、プログラムの形態でインターネットを含む有線、無線の各種ネットワーク、放送、電気通信回線、衛星通信等を介して伝送、供給される場合もある。また、所定の処理を、専用ハードウェアを利用して実行させるようにすることができる場合もある。
The present invention is not limited to an image processing apparatus, and can be applied to the above-described storage processing method. The method may be a program executed by a computer.
The program according to the present invention includes a magnetic disk such as a magnetic tape and a flexible disk, an optical recording medium such as DVD, CD-ROM, CD-R, MO, and PD, and a flash memory system such as Smart Media (registered trademark). It can be recorded on various computer-readable recording media such as a recording medium, and may be produced, transferred, etc. in the form of the recording medium, and various wired and wireless types including the Internet in the form of a program. In some cases, the data is transmitted and supplied via a network, broadcast, telecommunication line, satellite communication, or the like. In some cases, the predetermined process may be executed using dedicated hardware.

(変形例)
以上、本発明を実施の形態に基づいて説明してきたが、本発明は、上述の実施の形態に限定されないのは勿論であり、以下のような変形例が考えられる。
(1)上記実施の形態では、バンド1〜4をその数字順に処理するとしたが、これに限られることはない。例えば、原稿画像を複数の領域に分けたとき、その分割の方向に両端に位置するバンド、上記ではバンド1と4の処理順がより後ろになるようにバンド2、3、1、4等と順番を決めることができる。
(Modification)
As described above, the present invention has been described based on the embodiment. However, the present invention is not limited to the above-described embodiment, and the following modifications may be considered.
(1) In the above embodiment, the bands 1 to 4 are processed in the numerical order, but the present invention is not limited to this. For example, when an original image is divided into a plurality of areas, bands 2, 3, 1, 4, etc. are arranged so that the bands located at both ends in the dividing direction, in the above, bands 1 and 4 are processed later. You can decide the order.

このようにすれば、1ページの原稿の中で文字の存在している可能性が高い中間部の領域(バンド2、3)の処理が、その可能性が低い端部の領域(バンド1、4)よりも早く行われるようになる。従って、仮に途中でメモリの空き容量が規定値より少なくなったとしても、文字の多く存在している可能性が高い中間部の領域の文字画像については本来のMMRによる圧縮処理が施され易くなる、換言すれば文字の少ない可能性が高い端部の領域にだけJPEGによる圧縮処理が施され易くなって、圧縮方法が変わることによる画質の影響を低減することが可能になる。   In this way, the processing of the intermediate area (bands 2 and 3) where the possibility of the presence of characters in the one-page document is low is reduced. It will be performed earlier than 4). Therefore, even if the free space of the memory becomes smaller than the prescribed value in the middle, the character image in the intermediate area where there is a high possibility that many characters are present is likely to be subjected to the original MMR compression processing. In other words, it becomes easy to perform the compression processing by JPEG only on the edge region where the possibility of having few characters is high, and it becomes possible to reduce the influence of the image quality due to the change of the compression method.

また、バンドの処理順を固定せず原稿画像に応じて変えるとしても良い。例えば、各バンドの文字量を比較し、文字量が多いバンドから順に処理を行う構成をとることが考えられる。なお、文字量の検出は、例えばバンド毎に文字の矩形領域の数をカウントし、その値が多いバンドを文字量が多いバンドとすれば良い。
(2)上記実施の形態では、判別対象とすべき所定の属性の画像領域を文字領域として、原稿画像の文字領域を判別するとしたが、判別対象は文字に限られない。例えば、写真領域やグラフ等の図形領域を公知の方法を用いて判別するとしても良い。
Further, the processing order of the bands may be changed according to the document image without being fixed. For example, it can be considered that the character amount of each band is compared, and processing is performed in order from the band having the largest character amount. For example, the number of characters may be detected by counting the number of rectangular regions of characters for each band and setting a band having a large value as a band having a large amount of character.
(2) In the above embodiment, the character area of the document image is determined using the image area having the predetermined attribute to be determined as the character area. However, the determination target is not limited to the character. For example, a graphic region such as a photographic region or a graph may be determined using a known method.

図形領域を判別する構成をとる場合、文字の場合と同様に、図形が判別される毎にその図形領域の座標、各画素の位置、色等のデータ(判別結果)をその領域を特定するための情報(図形情報)としてRAMに格納していき、その図形情報から、例えば隣り合うもの同士の距離が近いものを統合して第1の圧縮処理を施すとすることができる。もちろん、処理の途中でメモリ容量が規定値よりも少なくなると以降のバンドについては、文字の場合と同様に図形画像が背景領域の一部として背景用の第2の圧縮処理が施される。これらのことは、写真など他の領域についても同様に考えることができる。さらに、罫線領域や網点領域などを所定の属性の画像領域として判別する構成をとることもできる。   In the case of adopting a configuration for discriminating a graphic area, as in the case of a character, every time a graphic is discriminated, data (discrimination result) such as coordinates of the graphic area, the position of each pixel, and color (discrimination result) is specified. Information (graphic information) is stored in the RAM, and from the graphic information, for example, the ones that are close to each other are integrated to perform the first compression processing. Of course, when the memory capacity becomes smaller than the prescribed value during the process, the graphic image is subjected to the second compression process for the background as a part of the background area for the subsequent bands as in the case of the character. These can be considered similarly for other areas such as photographs. Further, a ruled line area, a halftone dot area, or the like can be determined as an image area having a predetermined attribute.

(3)上記実施の形態では、PDFファイルを作成する場合の例を説明したが、本発明はPDFに限定されることはないし、領域判別された画像に対し画像処理として圧縮を施す構成に限られることもない。例えば、領域毎にそれに応じた色変換を行い、下地色を付けるなどのカラー画像処理や、領域毎に画像を切り出して領域別DB(データベース)に保存させるなど、領域判別された各領域についてその領域に応じた画像処理を実行する構成一般に適用できる。   (3) In the above embodiment, an example in which a PDF file is created has been described. However, the present invention is not limited to PDF, and is limited to a configuration in which compression is performed as image processing on an image whose area has been determined. It will never be done. For example, for each area that has been identified, such as color image processing such as performing color conversion corresponding to each area and adding a background color, or cutting out an image for each area and saving it in a DB (database) for each area The present invention can be generally applied to a configuration that executes image processing according to a region.

また、上記では文字領域にMMRを、背景領域にJPEG圧縮を施すとしたが、これに限定されないこともいうまでもない。各領域に対し適切な圧縮が施されれば良く、例えば文字にMHを、背景にGIFを適用するなどが考えられる。さらに、例えば文字に可逆圧縮を、背景に非可逆圧縮を適用するとしても良い。
(4)上記実施の形態では、ステップS114において、本来とは異なる圧縮処理を行った旨のメッセージを操作パネル11に表示させるとしたが、その旨をユーザに通知することができれば良く、メッセージ表示という方法に限られることはない。例えば、その旨をスピーカ等から音声出力する方法や、蓄積処理の実行を要求したユーザにその旨を含む電子メールを、LAN4(ネットワーク)を介して送信する方法等をとることができる。
In the above description, MMR is applied to the character area and JPEG compression is applied to the background area. However, it goes without saying that the present invention is not limited to this. Appropriate compression may be applied to each region. For example, MH may be applied to characters and GIF may be applied to backgrounds. Furthermore, for example, reversible compression may be applied to characters and irreversible compression may be applied to the background.
(4) In the above embodiment, in step S114, a message to the effect that compression processing different from the original has been performed is displayed on the operation panel 11. However, it is sufficient that the user can be notified of this, and message display is possible. It is not limited to this method. For example, a method of outputting a sound to that effect from a speaker or the like, a method of transmitting an e-mail including the notification to a user who has requested execution of the storage process via the LAN 4 (network), or the like can be used.

(5)上記実施の形態では、画像処理装置を複写機に適用した場合の例を説明したが、本発明は、上記の蓄積処理を実行できるものであれば、例えばスキャナ、プリンタ、FAX等の画像処理装置一般に適用できる。また、カラー画像に限られず、モノクロ画像を処理する場合にも同様に適用できる。さらに、上記実施の形態及び上記変形例をそれぞれ組み合わせるとしてもよい。   (5) In the above embodiment, an example in which the image processing apparatus is applied to a copying machine has been described. However, the present invention is not limited to a scanner, a printer, a FAX, or the like as long as the above storage processing can be performed. Applicable to general image processing apparatus. Further, the present invention is not limited to a color image, and can be similarly applied when processing a monochrome image. Furthermore, the above embodiment and the above modification examples may be combined.

本発明は、画像の領域判別を行う画像処理装置において、領域判別に用いるためのメモリの低コスト化を図る技術として有用である。   INDUSTRIAL APPLICABILITY The present invention is useful as a technique for reducing the cost of a memory used for area determination in an image processing apparatus that performs image area determination.

第1の実施の形態の複写機1の構成を示す図である。1 is a diagram illustrating a configuration of a copying machine 1 according to a first embodiment. 複写機1の制御部内に配されたRAM148の格納領域の構成例を示す模式図である。3 is a schematic diagram illustrating a configuration example of a storage area of a RAM 148 disposed in a control unit of the copier 1. FIG. 画像処理装置1が実行する蓄積処理フローの概要を示す図である。It is a figure which shows the outline | summary of the accumulation | storage process flow which the image processing apparatus 1 performs. 蓄積処理の詳細な内容を示すフローチャートである。It is a flowchart which shows the detailed content of the accumulation | storage process. 蓄積処理により生成されるファイル101、102の構成例を示す図である。It is a figure which shows the structural example of the files 101 and 102 produced | generated by the accumulation | storage process. 第2の実施の形態の蓄積処理の内容を示すフローチャートである。It is a flowchart which shows the content of the accumulation | storage process of 2nd Embodiment. 蓄積処理により生成されるファイル201の構成例を示す図である。It is a figure which shows the structural example of the file 201 produced | generated by the accumulation | storage process. 第3の実施の形態の蓄積処理の内容を示すフローチャートである。It is a flowchart which shows the content of the accumulation | storage process of 3rd Embodiment.

符号の説明Explanation of symbols

1 画像処理装置
14 制御部
101、102、201 ファイル
145 領域判別部
146 圧縮部
148 RAM
1481 バンドデータ格納領域
1482 文字情報格納領域
1483 処理作業領域
14821 空き領域
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 14 Control part 101,102,201 File 145 Area | region discrimination | determination part 146 Compression part 148 RAM
1481 Band data storage area 1482 Character information storage area 1483 Processing work area 14821 Free area

Claims (8)

入力画像に画像処理を施す画像処理装置であって、
所定の格納領域を有するメモリと、
入力画像を複数のブロック画像に分けたときの一のブロック画像毎に、当該一のブロック画像に含まれる所定の属性の画像領域を判別する判別手段と、
前記判別手段により前記所定の属性の画像領域が判別される毎にその画像領域を特定するための情報を前記所定の格納領域に順次格納する格納手段と、
入力画像中における、前記所定の格納領域に格納されている情報により特定される所定の属性の画像領域の画像に対し第1の画像処理を施す画像処理手段と、を備え、
前記判別手段は、
一のブロック画像に対する判別を行う前に、前記所定の格納領域の現在の空き容量を検出し、検出された量が規定値より少ない場合には、当該一のブロック画像を含む未判別のブロック画像に対する判別を中止し、
前記画像処理手段は、
判別が中止された場合には、少なくとも未判別のブロック画像に対し前記第1の画像処理とは異なる第2の画像処理を施すことを特徴とする画像処理装置。
An image processing apparatus that performs image processing on an input image,
A memory having a predetermined storage area;
A discriminating means for discriminating an image area of a predetermined attribute included in the one block image for each block image when the input image is divided into a plurality of block images;
Storage means for sequentially storing information for specifying the image area in the predetermined storage area each time the image area of the predetermined attribute is determined by the determination means;
Image processing means for performing first image processing on an image in an image area having a predetermined attribute specified by information stored in the predetermined storage area in the input image;
The discrimination means includes
Before performing discrimination for one block image, the current free space in the predetermined storage area is detected, and if the detected amount is less than a specified value, an unidentified block image including the one block image Discontinue discrimination against
The image processing means includes
An image processing apparatus that performs second image processing different from the first image processing on at least an unidentified block image when the determination is stopped.
前記画像処理手段は、
判別が中止された場合には、判別済のブロック画像に対し前記特定される画像に第1の画像処理を施し、未判別のブロック画像についてのみ第2の画像処理を施すことを特徴とする請求項1に記載の画像処理装置。
The image processing means includes
When the determination is stopped, the first image processing is performed on the identified image with respect to the determined block image, and the second image processing is performed only on the unidentified block image. Item 8. The image processing apparatus according to Item 1.
前記画像処理手段は、
判別が中止された場合には、それまでの判別による判別結果によらず、前記複数のブロック画像全てに第2の画像処理を施すことを特徴とする請求項1に記載の画像処理装置。
The image processing means includes
2. The image processing apparatus according to claim 1, wherein when the determination is stopped, the second image processing is performed on all of the plurality of block images regardless of the determination result obtained until then.
入力画像が第1と第2のいずれの種類のものかを判定する判定手段を備え、
前記判別手段は、
入力画像が第1の種類のものと判定されると前記判別を実行し、第2の種類のものと判定されると前記判別を実行せず、
前記画像処理手段は、
入力画像が第1の種類のものと判定されると前記画像処理を実行し、第2の種類のものと判定されると前記複数のブロック画像全てに第2の画像処理を施すことを特徴とする請求項1乃至3のいずれか1項に記載の画像処理装置。
Determining means for determining whether the input image is of the first or second type;
The discrimination means includes
When the input image is determined to be of the first type, the determination is performed. When the input image is determined to be of the second type, the determination is not performed.
The image processing means includes
When the input image is determined to be of the first type, the image processing is executed, and when the input image is determined to be of the second type, the second image processing is performed on all the plurality of block images. The image processing apparatus according to any one of claims 1 to 3.
前記所定の属性の画像領域は、文字画像領域のことであり、
前記第1の画像処理は、第1の方法による圧縮処理であり、
前記第2の画像処理は、前記第1の方法とは異なる第2の方法による圧縮処理を含むことを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。
The image area having the predetermined attribute is a character image area,
The first image processing is compression processing by a first method;
5. The image processing apparatus according to claim 1, wherein the second image processing includes compression processing by a second method different from the first method. 6.
前記画像処理手段は、
各ブロック画像の内、文字画像領域の画像に対し第1の画像処理が施されるブロック画像について、そのブロック画像に含まれる文字画像領域以外の画像に対し前記第2の方法と同じ方法による圧縮処理を施す第3の画像処理を実行し、
前記第2の画像処理を実行する場合の圧縮強度を、前記第3の画像処理を実行する場合の圧縮強度よりも弱くしたことを特徴とする請求項5に記載の画像処理装置。
The image processing means includes
Of each block image, for the block image on which the first image processing is performed on the image in the character image area, the image other than the character image area included in the block image is compressed by the same method as the second method. Execute a third image processing to perform processing,
The image processing apparatus according to claim 5, wherein a compression strength when the second image processing is executed is weaker than a compression strength when the third image processing is executed.
前記画像処理手段は、
各ブロック画像の内、文字画像領域の画像に対し第1の画像処理が施されるブロック画像について、そのブロック画像に含まれる文字画像領域以外の画像に対しその解像度を第1の解像度に落とした後、圧縮処理を施す第3の画像処理を実行し、
前記第2の画像処理は、圧縮前に画像の解像度を前記第1の解像度よりも高い第2の解像度に落とす処理を含むことを特徴とする請求項5に記載の画像処理装置。
The image processing means includes
Among the block images, the resolution of the block image in which the first image processing is performed on the image of the character image area is reduced to the first resolution with respect to the image other than the character image area included in the block image. After that, the third image processing that performs compression processing is executed,
The image processing apparatus according to claim 5, wherein the second image processing includes a process of reducing the resolution of the image to a second resolution higher than the first resolution before compression.
前記所定の属性の画像領域の画像に対し本来の第1の画像処理とは異なる第2の画像処理が施された場合に、その旨を通知する通知手段を備えることを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。   2. The information processing apparatus according to claim 1, further comprising notification means for notifying that when an image in the image area having the predetermined attribute is subjected to a second image process different from the original first image process. 8. The image processing apparatus according to any one of items 1 to 7.
JP2005187252A 2005-06-27 2005-06-27 Image processing device Expired - Fee Related JP4792835B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005187252A JP4792835B2 (en) 2005-06-27 2005-06-27 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005187252A JP4792835B2 (en) 2005-06-27 2005-06-27 Image processing device

Publications (2)

Publication Number Publication Date
JP2007006411A true JP2007006411A (en) 2007-01-11
JP4792835B2 JP4792835B2 (en) 2011-10-12

Family

ID=37691536

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005187252A Expired - Fee Related JP4792835B2 (en) 2005-06-27 2005-06-27 Image processing device

Country Status (1)

Country Link
JP (1) JP4792835B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009071405A (en) * 2007-09-11 2009-04-02 Ricoh Co Ltd Image processing apparatus, image processing method and computer-readable storage medium with image processing program stored thereon
US8582906B2 (en) 2010-03-03 2013-11-12 Aod Technology Marketing, Llc Image data compression and decompression
JP2014165766A (en) * 2013-02-26 2014-09-08 Sharp Corp Content creation device, content distribution server, and content creation method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6142549B2 (en) * 2013-01-30 2017-06-07 大日本印刷株式会社 Electronic document image compression device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08307676A (en) * 1995-03-08 1996-11-22 Ricoh Co Ltd Page printer and its image data processing method
JPH09216349A (en) * 1995-12-29 1997-08-19 Ricoh Co Ltd Data processing method in page printer
JPH10224225A (en) * 1997-02-10 1998-08-21 Fuji Xerox Co Ltd Method and device for selecting data compression automatically
JPH10293666A (en) * 1997-04-21 1998-11-04 Canon Inc Image data processing device and method, and printer
JP2001045247A (en) * 1999-08-04 2001-02-16 Konica Corp Original reader and image forming device
JP2004128714A (en) * 2002-09-30 2004-04-22 Fuji Photo Film Co Ltd Host computer, interface unit, and data processing method
JP2004173205A (en) * 2002-11-22 2004-06-17 Minolta Co Ltd Image processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08307676A (en) * 1995-03-08 1996-11-22 Ricoh Co Ltd Page printer and its image data processing method
JPH09216349A (en) * 1995-12-29 1997-08-19 Ricoh Co Ltd Data processing method in page printer
JPH10224225A (en) * 1997-02-10 1998-08-21 Fuji Xerox Co Ltd Method and device for selecting data compression automatically
JPH10293666A (en) * 1997-04-21 1998-11-04 Canon Inc Image data processing device and method, and printer
JP2001045247A (en) * 1999-08-04 2001-02-16 Konica Corp Original reader and image forming device
JP2004128714A (en) * 2002-09-30 2004-04-22 Fuji Photo Film Co Ltd Host computer, interface unit, and data processing method
JP2004173205A (en) * 2002-11-22 2004-06-17 Minolta Co Ltd Image processing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009071405A (en) * 2007-09-11 2009-04-02 Ricoh Co Ltd Image processing apparatus, image processing method and computer-readable storage medium with image processing program stored thereon
US8582906B2 (en) 2010-03-03 2013-11-12 Aod Technology Marketing, Llc Image data compression and decompression
JP2014165766A (en) * 2013-02-26 2014-09-08 Sharp Corp Content creation device, content distribution server, and content creation method

Also Published As

Publication number Publication date
JP4792835B2 (en) 2011-10-12

Similar Documents

Publication Publication Date Title
JP4135752B2 (en) Image processing apparatus, image processing method, and image processing program
JP4329764B2 (en) Image processing apparatus and ruled line extraction program
US20090284801A1 (en) Image processing apparatus and image processing method
JP2008042325A (en) Method, device, and computer program for processing input data related to generation of electronic file
JP5183587B2 (en) Image processing apparatus, image processing method, and program for executing image processing method
JP4089736B2 (en) Image processing apparatus, image processing method, and image processing program
US8199967B2 (en) Image processing apparatus, image processing method, and storage medium
JP2008219928A (en) Image processing apparatus, image processing method, and image processing program
JP4792835B2 (en) Image processing device
JP6197840B2 (en) Image processing apparatus, electronic file generation method, and program
JP2010056946A (en) Image processing device, image forming apparatus, image storage method, and computer program
JP2010057017A (en) Image processing apparatus and method
JP2003186635A (en) Image processing apparatus and program
JP4135656B2 (en) Image region determination method, image processing apparatus, and program
JP4396710B2 (en) Image processing apparatus, image processing apparatus control method, and image processing apparatus control program
JP4569162B2 (en) Image processing method, image processing program, and image processing apparatus
JP5517028B2 (en) Image processing device
JP4742632B2 (en) Image processing apparatus, image processing method, and program
JP5474222B2 (en) Image processing apparatus, image processing method, and program
JP5464157B2 (en) Image processing apparatus and image processing program
US11405525B2 (en) Image processing apparatus, control method, and product capable of improving compression efficiency by converting close color to background color in a low light reading mode
JP4948144B2 (en) Image processing apparatus, image processing system, image processing method, image processing program, and storage medium
JP4957570B2 (en) Image processing device
JP2020093494A (en) Image output device, image output method, and output image data production method
JP4848920B2 (en) Image management apparatus, image management apparatus control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080521

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110322

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110419

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110610

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

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

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

Year of fee payment: 3

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees