Nothing Special   »   [go: up one dir, main page]

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

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

Info

Publication number
JP4630836B2
JP4630836B2 JP2006064806A JP2006064806A JP4630836B2 JP 4630836 B2 JP4630836 B2 JP 4630836B2 JP 2006064806 A JP2006064806 A JP 2006064806A JP 2006064806 A JP2006064806 A JP 2006064806A JP 4630836 B2 JP4630836 B2 JP 4630836B2
Authority
JP
Japan
Prior art keywords
image
original
replacement
document
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.)
Expired - Fee Related
Application number
JP2006064806A
Other languages
Japanese (ja)
Other versions
JP2007243729A5 (en
JP2007243729A (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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2006064806A priority Critical patent/JP4630836B2/en
Publication of JP2007243729A publication Critical patent/JP2007243729A/en
Publication of JP2007243729A5 publication Critical patent/JP2007243729A5/ja
Application granted granted Critical
Publication of JP4630836B2 publication Critical patent/JP4630836B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、画像処理装置およびその制御方法、および画像処理システムに関する。特に、紙文書を読み取って得られたスキャン画像から特定の画像を検出する画像処理装置およびその制御方法、および画像処理システムに関する。   The present invention relates to an image processing apparatus, a control method thereof, and an image processing system. In particular, the present invention relates to an image processing apparatus that detects a specific image from a scanned image obtained by reading a paper document, a control method thereof, and an image processing system.

近年、オフィスにおける紙文書を電子文書に置き換える、いわゆるペーパレス化が推進されている。しかしながら紙文書には、目が疲れにくい、全体を概観しやすい、容易に書き込が行える等、電子文書にはないメリットがあるため、現状のオフィスでは、電子文書と紙文書のそれぞれのメリットを生かし、それらが併用されている状況にある。   In recent years, so-called paperless printing has been promoted in which paper documents in offices are replaced with electronic documents. However, paper documents have advantages that electronic documents do not have, such as less eye fatigue, easy overview, and easy writing, so the current office has the advantages of both electronic and paper documents. It is in a situation where they are used together.

このような状況では、紙文書と電子文書との扱いの差異を軽減するために、電子文書から紙文書へ、紙文書から電子文書への相互の移行を容易に実行可能とする環境が求められている。   In such a situation, in order to reduce the difference in handling between paper documents and electronic documents, an environment is required that makes it easy to perform a mutual transition from electronic documents to paper documents and from paper documents to electronic documents. ing.

電子文書から紙文書への移行は、電子文書をプリンタによって印刷することで容易に達成できる。それに対して、紙文書から電子文書への移行は、スキャナによって紙文書を読み取り、画像データとして電子化する方法が一般的である。しかしながら、紙文書に対してそのオリジナル(原本)である電子文書がある場合は、該紙文書を電子化した画像データよりも、該紙文書に対するオリジナルの電子文書を取得するほうが望ましい。   The transition from an electronic document to a paper document can be easily achieved by printing the electronic document with a printer. On the other hand, a general method for shifting from a paper document to an electronic document is to read the paper document with a scanner and digitize it as image data. However, when there is an electronic document that is the original (original) of a paper document, it is preferable to acquire the original electronic document for the paper document rather than image data obtained by digitizing the paper document.

このようにオリジナルの電子文書の取得を実現するために、以下のような方法が提案されている。すなわち、電子文書を変換したラスタ画像を、該電子文書に対応付けて予め保存しておく。そして、紙文書をスキャンして得られたラスタ画像データと、予め保存されている電子文書対応のラスタ画像データとについて、その特徴量の類似性を比較することにより、オリジナルの電子文書の検索を可能にしている(例えば、特許文献1参照)。これにより、例えば、会議資料として出席者に配布された紙文書に基づき、オリジナルの電子文書を取得することでき、会議の出席者がオリジナルの電子文書を編集したり、会議に出席していない人に配布したりすることが可能になる。   In order to achieve acquisition of an original electronic document in this way, the following method has been proposed. That is, the raster image converted from the electronic document is stored in advance in association with the electronic document. The original electronic document can be searched by comparing the similarity of the feature amounts between raster image data obtained by scanning a paper document and raster image data corresponding to the electronic document stored in advance. (For example, refer to Patent Document 1). Thus, for example, an original electronic document can be obtained based on a paper document distributed to attendees as meeting materials, and the meeting attendee can edit the original electronic document or not attend the meeting. Can be distributed.

このように、スキャナで読み取った画像データに対し、そのオリジナルである電子文書が得られることにより、例えば書類のコピーを行う際にも、通常のコピー処理に代えて、該書類に対するオリジナルの電子文書を印刷することが可能となる。これにより、該書類のコピー処理がすなわちオリジナルの電子文書を再印刷したことと等価になり、高画質なコピー処理が実現される。   As described above, the original electronic document is obtained from the image data read by the scanner, so that, for example, when copying a document, the original electronic document for the document can be used instead of a normal copy process. Can be printed. Thereby, the copy process of the document is equivalent to the reprinting of the original electronic document, and a high-quality copy process is realized.

また、スキャナで読み込んだ画像データは一般にサイズが大きく、例えば、A4サイズの1ページの画像をフルカラーのビットマップ形式で記憶しようとすると、300DPIで約24メガバイトにもなり、JPEG圧縮しても数メガバイトになってしまう。これに対しオリジナルの電子文書は一般に、その紙文書をスキャンした画像データよりもかなりコンパクトなサイズであるため、データ処理および保存時に有利である。   The image data read by the scanner is generally large in size. For example, if an A4-size image of one page is stored in a full-color bitmap format, it becomes about 24 megabytes at 300 DPI, and even if JPEG compression is used, It becomes megabytes. On the other hand, an original electronic document is generally more compact than image data obtained by scanning the paper document, and is advantageous in data processing and storage.

一方、オリジナルの電子文書が見つからなかった場合、スキャナで読み取ったラスタ画像に対して、ベクトル化可能な領域に関してはベクトル画像に変換する技術が開示されている(例えば、特許文献2参照)。これにより、スキャンした画像データのコンパクト化が図れると共に、拡大した場合にもジャギー等の不具合が発生しない等、画質とともにその再利用性を高めることが可能となる。   On the other hand, when an original electronic document is not found, a technique for converting a raster image read by a scanner into a vector image for a vectorizable area is disclosed (see, for example, Patent Document 2). As a result, the scanned image data can be made compact, and it is possible to improve the reusability of the scanned image data as well as image quality, such as no occurrence of problems such as jaggies even when enlarged.

また、編集の容易さにこだわらなければ、スキャナで読み取った画像データに対して領域分割を行い、文字領域部と画像部分とでそれぞれに適した圧縮を施す技術が開示されている(例えば、特許文献3参照)。例えば、文字領域部には2値のMMR圧縮、画像部分にはJPEG圧縮を行うことによって、高画質かつコンパクトな画像データに変換することができる。
特開2001−256256号公報 特開2004−265384号公報 特開2003−338935号公報
Also, a technique is disclosed in which image data read by a scanner is divided into regions and compression suitable for each of a character region portion and an image portion is performed unless editing is easy (for example, patents). Reference 3). For example, by performing binary MMR compression on the character area portion and JPEG compression on the image portion, it can be converted into high-quality and compact image data.
JP 2001-256256 A JP 2004-265384 A JP 2003-338935 A

しかしながら、上述したような、予め登録されたオリジナル文書の中から、スキャンした画像を検索する方法では、オリジナル文書の登録に問題があった。すなわち、登録対象となるオリジナルの電子文書データとしては、社内外の別部門で作成された文書等も含まれるため、これら全ての文書を事前に登録しておくことは、極めて困難であった。   However, the above-described method for searching for a scanned image from previously registered original documents has a problem in registering the original document. That is, since the original electronic document data to be registered includes documents created in other departments inside and outside the company, it is extremely difficult to register all these documents in advance.

一方、会社等のシンボルとなるロゴマークやクリップアート等は、各種文書において頻繁に利用されるであろうことは予想され、このような頻出する特定画像に対しては、特に高画質を保つことが要求される。しかしながら、このような特定画像データに対しても、一般の画像データと同様に以下のような問題があった。   On the other hand, it is expected that logo marks, clip art, etc., which are symbols of companies, etc. will be frequently used in various documents, and keep high image quality especially for such specific images that appear frequently. Is required. However, such specific image data has the following problems as in the case of general image data.

すなわち、一般に紙文書をスキャナで読み取ることによって得られた画像データには、該紙文書の作成時、すなわちオリジナルの電子データを印刷した際に生じた画質劣化と、さらに、該印刷画像をスキャンした際に生じた画質劣化とが含まれている。したがってスキャン画像には、オリジナル画像と比べて大幅な画質劣化が生じている。さらに、スキャン画像に対してベクトル化や圧縮等の画像処理を施す場合、該処理に起因したさらなる画質劣化が上乗せされてしまう。   That is, in general, image data obtained by reading a paper document with a scanner includes image quality degradation that occurred when the paper document was created, that is, when the original electronic data was printed, and the printed image was scanned. Image quality degradation that occurs during the process. Therefore, the image quality is greatly deteriorated in the scanned image as compared with the original image. Further, when image processing such as vectorization or compression is performed on the scanned image, further image quality degradation due to the processing is added.

また一般に、画像データに対してベクトル化や圧縮等の画像処理を施す場合、処理後のデータサイズを小さくしようとすると画質が劣化し、画質の劣化を抑制しようとするとデータサイズが大きくなる。このように、画像処理におけるデータサイズと画質とは、いわゆるトレードオフの関係にある。   In general, when image processing such as vectorization or compression is performed on image data, the image quality deteriorates when the data size after the processing is reduced, and the data size increases when the deterioration of the image quality is suppressed. Thus, the data size and image quality in image processing have a so-called trade-off relationship.

また、上記従来の、画像をベクトル化することによってコンパクト化および高画質化を図る処理についても、以下のような問題があった。   In addition, the conventional processing for reducing the size and improving the image quality by vectorizing an image has the following problems.

一般に、会社や団体のロゴマークや、商用化されているアニメキャラクターのイラスト等の画像は、著作権によって保護されている。このような著作権で保護された特定画像については、その著作権保持者の許可を得ることなく、ベクトル化して再利用することはできない。したがって、上記従来のベクトル化処理においても、その対象となる画像は制限されるべきであり、どのような画像に対しても自由にベクトル化できるわけではない。   In general, images such as logo marks of companies and organizations and illustrations of commercial anime characters are protected by copyright. Such a copyright-protected specific image cannot be vectorized and reused without obtaining the permission of the copyright holder. Therefore, even in the above-described conventional vectorization processing, the target image should be limited, and any image cannot be freely vectorized.

一方、ロゴマーク等の特定画像については、たとえベクトル化は行えないとしても、色再現性等の画質に対する要求も高く、該特定画像の利用時には画質劣化を極力抑制したいという要求もある。   On the other hand, for a specific image such as a logo mark, there is a high demand for image quality such as color reproducibility even if vectorization cannot be performed, and there is also a demand for suppressing image quality degradation as much as possible when using the specific image.

本発明は、このような課題を個々にまたはまとめて解決するためになされたものであり、以下の機能を有する画像処理装置およびその制御方法、および画像処理システムを提供することを目的とする。   The present invention has been made to solve such problems individually or collectively, and an object thereof is to provide an image processing apparatus having the following functions, a control method therefor, and an image processing system.

すなわち、特定の画像を含む文書を電子化して文書画像データとして処理する際に、該特定の画像に対してはオリジナル画像への置き換えを行うことによって高画質化する。   That is, when a document including a specific image is digitized and processed as document image data, the specific image is replaced with the original image to improve the image quality.

さらに、置き換えられた文書画像のデータサイズをコンパクト化する。   Further, the data size of the replaced document image is made compact.

また、文書画像データ内においてベクトル化対象となる画像を制限する。   Further, the image to be vectorized is limited in the document image data.

また、置き換え結果をユーザが確認することを可能とする。   In addition, the user can confirm the replacement result.

上記目的を達成するための一手段として、本発明の画像処理方法は以下の構成を備える。 As a means for achieving the above object, an image processing method of the present invention comprises the following arrangement.

すなわち、複数のオリジナル画像が登録されたサーバにアクセス可能な画像処理装置における画像処理方法であって、文書を読み込んでスキャン画像を得るスキャンステップと、前記スキャン画像を、属性を有する部分画像に分割する分割ステップと、前記複数のオリジナル画像の少なくともいずれかと前記部分画像が一致するか否かを判定する判定ステップと、前記判定ステップでオリジナル画像と一致すると判定された部分画像を、オリジナル画像と一致しないと判定された部分画像よりも高画質な圧縮方法によって圧縮した該オリジナル画像に置換する置換ステップと、を有することを特徴とする。 That is, an image processing method in an image processing apparatus accessible to a server in which a plurality of original images are registered, a scan step of obtaining a scanned image by reading a document, and dividing the scanned image into partial images having attributes Dividing step, determining step for determining whether or not the partial image matches at least one of the plurality of original images, and matching the partial image determined to match the original image in the determining step with the original image And a replacement step of replacing the original image compressed by a compression method having a higher image quality than the partial image determined not to be performed.

以上の構成からなる本発明によれば、特定の画像を含む文書を電子化して文書画像データとして処理する際に、該特定の画像に対してはオリジナル画像への置き換えを行うことによって高画質化できる。   According to the present invention having the above configuration, when a document including a specific image is digitized and processed as document image data, the specific image is replaced with the original image to improve the image quality. it can.

さらに、置き換えられた文書画像のデータサイズをコンパクト化することができる。   Further, the data size of the replaced document image can be reduced.

また、文書画像データ内においてベクトル化対象となる画像を制限することができる。   Further, it is possible to limit images to be vectorized in the document image data.

また、置き換え結果をユーザが確認することが可能となる。   In addition, the user can check the replacement result.

以下、添付の図面を参照して、本発明をその好適な実施形態に基づいて詳細に説明する。なお、以下の実施形態において示す構成は一例に過ぎず、本発明は図示された構成に限定されるものではない。   Hereinafter, the present invention will be described in detail based on preferred embodiments with reference to the accompanying drawings. The configurations shown in the following embodiments are merely examples, and the present invention is not limited to the illustrated configurations.

<第1実施形態>
●システム概要
図1は、本実施形態に係る画像処理システムの構成例を示すブロック図である。同図においては、オフィス10とオフィス20がインターネット104で接続されている例を示している。オフィス10とオフィス20とでは、その内部の構成が実質的に同様であるため、以下ではオフィス10について説明する。
<First Embodiment>
System Overview FIG. 1 is a block diagram illustrating a configuration example of an image processing system according to the present embodiment. In the figure, an example in which the office 10 and the office 20 are connected via the Internet 104 is shown. Since the internal configuration of the office 10 and the office 20 is substantially the same, the office 10 will be described below.

オフィス10内に構築されたLAN107には、ネットワークスキャナやネットワークプリンタとして機能する複写機であるMFP(Multi Function Peripheral)100が接続されている。LAN107にはさらに、MFP100を制御するマネージメントPC101、クライアントPC102、インターネット104への接続を管理するプロキシサーバ103が接続されている。そしてさらに、文書ファイルや画像ファイルを管理する文書管理サーバ(ファイルサーバ)106、文書ファイルや画像ファイルを属性情報等で検索できるように構成されたデータベース105が接続されている。なお、図1ではクライアントPC102が1台だけ接続された例を示しているが、これは複数存在し得るものである。   An MFP (Multi Function Peripheral) 100 that is a copier functioning as a network scanner or a network printer is connected to the LAN 107 constructed in the office 10. Further, a management PC 101 that controls the MFP 100, a client PC 102, and a proxy server 103 that manages connection to the Internet 104 are connected to the LAN 107. Further, a document management server (file server) 106 that manages document files and image files, and a database 105 configured so that document files and image files can be searched by attribute information and the like are connected. Although FIG. 1 shows an example in which only one client PC 102 is connected, a plurality of client PCs 102 may exist.

オフィス10におけるネットワーク107は、プロキシサーバ103を介してインターネット104に接続するようになっている。これはオフィス20においても同様である。従って、オフィス10とオフィス20のそれぞれのネットワークは、インターネット104を介して相互に情報通信が可能になっている。なお、周知のVPN等の技術を利用して、第3者によるオフィス10,20内のネットワークへの侵入を阻止することが望ましい。   A network 107 in the office 10 is connected to the Internet 104 via a proxy server 103. The same applies to the office 20. Accordingly, each network of the office 10 and the office 20 can perform information communication with each other via the Internet 104. It is desirable to prevent third parties from entering the networks in the offices 10 and 20 using a known technology such as VPN.

本実施形態におけるMFP100は、紙文書の画像読み取り(スキャン)と、該読み取った画像信号に対する画像処理の一部(前処理等)を担当し、処理後の画像データはLAN109を介してマネージメントPC101に供給される。マネージメントPC101は、その内部に画像記憶部(ハードディスク)、画像処理部(画像処理用の回路もしくは画像処理用のプログラム)、表示部、入力部(キーボードやマウス等のポインティングデバイス)を有する。したがって、マネージメントPC101は例えば、通常のパーソナルコンピュータ(以下、PC)によって実現可能である。   The MFP 100 according to the present embodiment is responsible for image reading (scanning) of a paper document and part of image processing (preprocessing, etc.) for the read image signal, and the processed image data is sent to the management PC 101 via the LAN 109. Supplied. The management PC 101 includes therein an image storage unit (hard disk), an image processing unit (an image processing circuit or an image processing program), a display unit, and an input unit (a pointing device such as a keyboard and a mouse). Therefore, the management PC 101 can be realized by, for example, a normal personal computer (hereinafter, PC).

図2は、MFP100の構成を示すブロック図である。同図において、オートドキュメントフィーダ(ADF)を含む画像読み取り部110である。画像読み取り部110は、束状、或いは1枚の原稿画像を不図示の光源で照射し、その原稿反射像をレンズで固体撮像素子上に結像することによって、ラスタ状の画像読み取り信号を例えば解像度600dpiの画像データとして得る。通常の複写を行なう際には、得られた画像データに対してデータ処理部115にて各種補正処理等を施すことにより記録信号へ変換し、ハードディスク等の記憶装置111に一旦記憶(格納)する。そして、該記憶した旨をネットワークIF117を介してマネージメントPC101に通知し、マネージメントPC101の制御の下で、例えばプリンタエンジン部である記録装置112に順次出力して、記録用紙上に画像を形成する。   FIG. 2 is a block diagram showing a configuration of MFP 100. In the figure, an image reading unit 110 including an auto document feeder (ADF). The image reading unit 110 irradiates a bundle or one original image with a light source (not shown) and forms a reflection image of the original on a solid-state image sensor with a lens. Obtained as image data with a resolution of 600 dpi. When performing normal copying, the obtained image data is converted into a recording signal by performing various correction processes and the like in the data processing unit 115 and temporarily stored (stored) in a storage device 111 such as a hard disk. . Then, the storage PC notifies the management PC 101 via the network IF 117, and sequentially outputs to the recording device 112, which is a printer engine unit, for example, under the control of the management PC 101 to form an image on a recording sheet.

なお、本実施形態におけるMFP100はネットワークプリンタとしても機能するため、ページ記述言語に基づいて印刷イメージデータを生成する機能を有する。ネットワークプリンタとして機能する場合には、クライアントPC102から出力されるプリントデータをLAN107からネットワークIF114を経て、データ処理装置115で記録可能なラスタデータに変換した後、やはり記録装置111に一旦記憶する。そして、該記憶した旨をマネージメントPC101に通知し、マネージメントPC101の制御の下で記録装置112に順次出力して、記録用紙上に画像を形成することになる。このように、MFP100において記録用紙上に画像形成するために生成されるイメージデータとしては、画像読み取り部110で読取られたものと、ネットワークプリンタとして機能した結果として生成されたものが考えられる。そこで本実施形態においては、MFP100におけるイメージデータがいずれの経路で生成されたかを示す情報を、マネージメントPC101へ通知する。   Note that the MFP 100 according to the present embodiment also functions as a network printer, and thus has a function of generating print image data based on a page description language. In the case of functioning as a network printer, print data output from the client PC 102 is converted from the LAN 107 via the network IF 114 into raster data that can be recorded by the data processing device 115 and then temporarily stored in the recording device 111. Then, the management PC 101 is notified of the storage, and sequentially output to the recording device 112 under the control of the management PC 101 to form an image on the recording paper. As described above, the image data generated for forming an image on the recording paper in the MFP 100 may be one read by the image reading unit 110 or one generated as a result of functioning as a network printer. Therefore, in this embodiment, the management PC 101 is notified of information indicating on which route the image data in the MFP 100 was generated.

なお図2において、113は各種キーやスイッチ、液晶表示画面上に設けられたタッチパネルで構成される入力装置であり、116は液晶表示器等の表示装置である。   In FIG. 2, 113 is an input device composed of various keys, switches, and a touch panel provided on a liquid crystal display screen, and 116 is a display device such as a liquid crystal display.

本実施形態において、マネージメントPC101とMFP100がネットワーク109を介して直接接続されていることにより、MFP100内の記憶装置111に対するマネージメントPC101からの高速なダイレクトアクセスが可能となる。これにより、マネージメントPC101とMFP100間において後述するようなデータ通信を行っても、ネットワーク107のトラフィックには影響を与えることがない。   In the present embodiment, since the management PC 101 and the MFP 100 are directly connected via the network 109, high-speed direct access from the management PC 101 to the storage device 111 in the MFP 100 is possible. Thus, even if data communication as will be described later is performed between the management PC 101 and the MFP 100, traffic on the network 107 is not affected.

図3は、マネージメントPC101の構成を示すブロック図である。上述したように、本実施形態におけるマネージメントPC101は、通常のPCによって実現される。図3において、30は装置全体の制御を司るCPU、31はブートプログラムやBIOSを記憶しているROM、32はCPU30のワークエリアとして使用されるRAMである。RAM32に、OSをはじめ本実施形態におけるMFP100を管理するプログラムがロードされ、実行されることになる。33は各種データを格納可能なハードディスクである。34は表示コントローラであり、ビデオRAMを内蔵している。35は表示装置であって、本実施形態では液晶表示装置を採用しているが、CRT等の他の表示装置でも構わない。36は表示装置35のスクリーンの前面に設けられたタッチパネルである。37はMFP100との通信を行うためのネットワークI/F、38はネットワーク107に接続するためのI/Fである。   FIG. 3 is a block diagram showing the configuration of the management PC 101. As described above, the management PC 101 in this embodiment is realized by a normal PC. In FIG. 3, 30 is a CPU that controls the entire apparatus, 31 is a ROM that stores a boot program and BIOS, and 32 is a RAM that is used as a work area of the CPU 30. A program for managing the MFP 100 according to the present embodiment including the OS is loaded into the RAM 32 and executed. Reference numeral 33 denotes a hard disk capable of storing various data. A display controller 34 has a built-in video RAM. Reference numeral 35 denotes a display device, which employs a liquid crystal display device in the present embodiment, but may be another display device such as a CRT. Reference numeral 36 denotes a touch panel provided on the front surface of the screen of the display device 35. 37 is a network I / F for communicating with the MFP 100, and 38 is an I / F for connecting to the network 107.

通常のPCは、キーボードやマウス等のポインティングデバイスを入力装置として備えるが、本実施形態ではそれに代えて、タッチパネルが入力装置として機能する。もちろん、マネージメントPC101がキーボードやマウスを備えるものであっても構わないし、それらをタッチパネル36と併用しても良い。   A normal PC includes a pointing device such as a keyboard or a mouse as an input device. In this embodiment, instead, a touch panel functions as an input device. Of course, the management PC 101 may include a keyboard and a mouse, or they may be used in combination with the touch panel 36.

図4は、MFP100にマネージメントPC101を収容した際の外観を示す図である。同図に示すように、マネージメントPC101の表示装置35、タッチパネル36が、あたかもMFP100の一部として見えるように収容されている。なお、マネージメントPC101のメンテナンスが容易に行えるようにするため、通常のPCが有するキーボードやマウス等のポインティングデバイスを、MFP100の筐体内に収容するように構成しても構わない。   FIG. 4 is a diagram illustrating an appearance when the management PC 101 is accommodated in the MFP 100. As shown in the figure, the display device 35 and the touch panel 36 of the management PC 101 are accommodated so as to be seen as a part of the MFP 100. In order to facilitate maintenance of the management PC 101, a pointing device such as a keyboard or a mouse included in a normal PC may be housed in the casing of the MFP 100.

また、以下の説明からも明らかになるが、本実施形態においてマネージメントPC101が有する表示装置35及びタッチパネル36は、実質的にMFP100のユーザインタフェース(UI)として機能する。したがって、MFP100内にマネージメントPC101の処理を行う機能を付加すば良いとも考えられる。しかしながら、マネージメントPC101による処理は多岐に渡り、その処理を実現するプログラムの開発、管理の容易性、バージョンアップの容易性の観点から、本実施形態では、複合機であるMFPとは独立した、汎用のPCを介在させている。   As will be apparent from the following description, the display device 35 and the touch panel 36 included in the management PC 101 in this embodiment substantially function as a user interface (UI) of the MFP 100. Accordingly, it may be considered that a function for performing processing of the management PC 101 may be added to the MFP 100. However, the processing by the management PC 101 is wide-ranging. From the viewpoint of development of a program that realizes the processing, ease of management, and ease of version upgrade, in this embodiment, a general-purpose that is independent from the MFP as a multifunction device. PC is interposed.

●全体処理概要
以下、本実施形態の画像処理システムにおける全体処理の概要を、図5のフローチャートを用いて説明する。なお、図5のフローチャートは、主にマネージメントPC101における処理を示すものである。
Overview of Overall Processing Hereinafter, an overview of overall processing in the image processing system of this embodiment will be described using the flowchart of FIG. Note that the flowchart of FIG. 5 mainly shows processing in the management PC 101.

まずステップS501において、MFP100を使用するユーザに対するユーザ認証を行って、マネージメントPC101にログインする。ユーザ認証の方法としては、指紋認証などのバイオメトリクスやICカードを用いた方法等、様々な方法があるが、どのような方法を用いても良い。例えば、マネージメントPC101のタッチパネル36からユーザ名とパスワードを入力させ、図6に示すような内容で予め格納されているユーザアカウント情報と照合して、認証を行うようにすれば良い。なお、図6はマネージメントPC101に予め登録されているユーザ情報の構成例を示すものである。   First, in step S501, user authentication for a user who uses the MFP 100 is performed and the management PC 101 is logged in. There are various user authentication methods such as biometrics such as fingerprint authentication and a method using an IC card. Any method may be used. For example, the user name and password may be input from the touch panel 36 of the management PC 101, and authentication may be performed by comparing with user account information stored in advance with the contents shown in FIG. FIG. 6 shows a configuration example of user information registered in advance in the management PC 101.

続いてステップS502において、ユーザは、マネージメントPC101の表示装置35に表示されるメニューから、タッチパネル36を用いて機能を選択する。本実施形態では、「画像登録」、「文書登録」、「コピー」、「送信」、「保存」の5つの機能が選択可能である。そしてステップS503において、ユーザが選択した機能に応じて処理が分岐する。画像登録が選択された場合はステップS504へ、文書登録が選択された場合はステップS508へ、コピーが選択された場合はステップS511へ、送信が選択された場合はステップS512へ、保存が選択された場合はステップS513へ、それぞれ分岐する。   Subsequently, in step S502, the user selects a function using the touch panel 36 from a menu displayed on the display device 35 of the management PC 101. In the present embodiment, five functions of “image registration”, “document registration”, “copy”, “transmission”, and “save” can be selected. In step S503, the process branches according to the function selected by the user. If image registration is selected, save is selected in step S504. If document registration is selected, step S508 is selected. If copy is selected, step S511 is selected. If transmission is selected, save is selected in step S512. If YES, branch to step S513.

・画像登録処理
ステップS504〜S507は、ステップS502で「画像登録」が選択された場合の処理であり、コピー、送信、保存の各処理において検出対象となる画像、およびその処理情報を登録する。

すなわち、画像読み取り部110で読み取られた画像からの検出対象となる部分画像としての画像と、該画像が検出された場合の処理情報とを、文書管理サーバ106およびデータベース105へ登録する。
Image Registration Processing Steps S504 to S507 are processing when “image registration” is selected in step S502, and registers an image to be detected in the copy, transmission, and storage processing, and its processing information.

That is, an image as a partial image to be detected from an image read by the image reading unit 110 and processing information when the image is detected are registered in the document management server 106 and the database 105.

まずステップS504において、後述する文書登録処理による登録と区別するために、RAM32上に確保されたメモリ領域上に、登録モードとして「画像」を設定する。   First, in step S504, “image” is set as the registration mode on the memory area secured on the RAM 32 in order to distinguish from registration by document registration processing described later.

続いてステップS505において、クライアントPC102のハードディスク33から、処理対象となる画像ファイルを選択する。画像の選択方法は限定しないが、例えば、Windows(登録商標) XPにおけるExplorer(登録商標)等に代表される、ファイルビューワを用いれば良い。なお、クライアントPC102においては予め、ファイルシステム上の特定のフォルダが、ステップS501で認証されたユーザに対してアクセス可能となるように設定されているものとする。また、選択可能な画像ファイルの形式としては、ビットマップやJPEG等のラスタ画像や、SVG(Scalable Vector Graphics)やWMF(Windows(登録商標) Meta File)等のベクトル画像が考えられる。ベクトル画像が選択された場合、後の処理を簡略化するために特定のフォーマット(SVG等)に変換しておく。このベクトル画像のフォーマット変換については、既に多数の変換プログラムが流通しており、周知であるため、ここでは詳細な説明は省略する。   In step S505, an image file to be processed is selected from the hard disk 33 of the client PC 102. The method for selecting an image is not limited. For example, a file viewer represented by Explorer (registered trademark) in Windows (registered trademark) XP may be used. In the client PC 102, a specific folder on the file system is set in advance so as to be accessible to the user authenticated in step S501. As a format of the selectable image file, a raster image such as a bitmap or JPEG, or a vector image such as SVG (Scalable Vector Graphics) or WMF (Windows (registered trademark) Meta File) can be considered. When a vector image is selected, it is converted into a specific format (such as SVG) in order to simplify the subsequent processing. As for the format conversion of the vector image, a number of conversion programs have already been distributed and are well known, so detailed description thereof will be omitted here.

続いてステップS506において、登録対象である画像に対する処理制御情報を設定する。この設定は例えば、マネージメントPC101の表示装置35に図7に示すような画面を表示し、タッチパネル36を用いて行われる。

図7に示されるように、処理制御情報の設定項目は、例えばラジオボタンを選択することによって設定がなされる。設定項目としては例えば、印刷(コピー)/送信/保存の各処理の実行の可否、該各処理における置換処理の可否、履歴保存と履歴通知の可否、ならびに、送信/保存時の画像のベクトル化処理の可否がある。また、コピー/送信/保存の実行に対するユーザの実行権限のレベルも、プルダウンメニューを用いて設定できる。ここで、実行権限のレベルとは0〜5までの数値で示され、値が低いほど実行権限レベルが低いことを意味する。また図6のユーザ情報に示されるように、実行権限はユーザアカウント毎に予め設定されている。さらに、保存処理時の保存先として、クライアントPC101のディレクトリを指定することが可能であるが、この保存先を設定しないでおくことも可能である。図7に示す画面上において必要な設定を終えると、ユーザがOKボタンを押下することにより、設定項目の内容がRAM32上に所定の形式で格納される。
In step S506, processing control information for an image to be registered is set. This setting is performed, for example, by displaying a screen as shown in FIG. 7 on the display device 35 of the management PC 101 and using the touch panel 36.

As shown in FIG. 7, the setting items of the process control information are set by selecting a radio button, for example. As setting items, for example, whether to execute each process of printing (copying) / transmission / storing, whether to perform replacement processing in each process, whether to save history and history notification, and vectorization of images at the time of sending / storing There is a possibility of processing. Also, the level of user execution authority for execution of copy / send / save can be set using a pull-down menu. Here, the execution authority level is indicated by a numerical value from 0 to 5, and the lower the value, the lower the execution authority level. As shown in the user information in FIG. 6, the execution authority is set in advance for each user account. Furthermore, the directory of the client PC 101 can be specified as a storage destination during the storage process, but this storage destination can be left unset. When necessary settings are completed on the screen shown in FIG. 7, the contents of the setting items are stored in the RAM 32 in a predetermined format when the user presses the OK button.

続いてステップS507において、ステップS505で選択・変換された画像ファイルを文書管理サーバ106に登録し、さらに、画像に関する情報と、ステップS506で設定された処理制御情報を対応させ、画像情報としてデータベース105に登録する。登録された画像情報の構成例を図8、図9に示すが、その詳細については後述する。   Subsequently, in step S507, the image file selected / converted in step S505 is registered in the document management server 106, and the information about the image is associated with the processing control information set in step S506, and the database 105 is stored as image information. Register with. Examples of the configuration of the registered image information are shown in FIGS. 8 and 9, and details thereof will be described later.

・文書登録処理
ステップS508〜S510は、ステップS502で「文書登録」が選択された場合の処理である。この文書登録処理においては、コピー、送信、保存の各処理時に画像読み取り部110で読み込まれた画像について、そのオリジナルとしての検索対象となる文書を、文書管理サーバ106とデータベース105へ登録する。
Document Registration Processing Steps S508 to S510 are processing when “document registration” is selected in step S502. In this document registration process, a document to be searched as an original is registered in the document management server 106 and the database 105 for the image read by the image reading unit 110 during the copy, transmission, and storage processes.

まずステップS508において、上述した画像登録処理による登録と区別するために、RAM32上に確保されたメモリ領域上に、登録モードとして「文書」を設定する。   First, in step S508, “document” is set as the registration mode on the memory area secured on the RAM 32 in order to distinguish from the registration by the image registration process described above.

続いてステップS509において、クライアントPC102のハードディスク33から、処理対象となる文書ファイルを選択する。文書の選択方法は限定しないが、例えばステップS505と同様にファイルビューワを用いれば良い。また、クライアントPC102においては予め、ファイルシステム上の特定のフォルダが、ステップS501で認証されたユーザに対してアクセス可能となるように設定されているものとする。また、選択可能な文書ファイルの形式としては、一般的なWord(登録商標)やPower Point(登録商標)等の文書や、PDF(Portable Document Format)等、多様な形式を選択可能である。文書が選択されると、後の処理を簡略化するために、特定のベクトル画像形式のフォーマット(SVG等)に変換しておく。このベクトル画像形式へのフォーマット変換については、既に多数の変換プログラムが流通しており、周知であるため、ここでは詳細な説明は省略する。   In step S509, a document file to be processed is selected from the hard disk 33 of the client PC. Although the document selection method is not limited, for example, a file viewer may be used as in step S505. In the client PC 102, a specific folder on the file system is set in advance so as to be accessible to the user authenticated in step S501. Also, as a selectable document file format, various formats such as a general Word (registered trademark) and Power Point (registered trademark) document, PDF (Portable Document Format), and the like can be selected. When a document is selected, it is converted into a specific vector image format (SVG or the like) in order to simplify subsequent processing. Regarding the format conversion to the vector image format, a number of conversion programs have already been distributed and are well known, so detailed description thereof will be omitted here.

続いてステップS510において、ステップS509で選択・変換された文書ファイルを文書管理サーバ106に登録する。このとき、文書のラスタイメージ画像に対する像域分離を行う。そして、各領域に細分化(ブロックセグメント化:BS化)して得られるブロック毎の情報を、登録文書ブロック情報およびブロック内のテキストの実データを示すテキスト情報として、データベース105に登録する。登録文書ブロック情報およびテキスト情報の構成例を図11、図12に示すが、その詳細については後述する。   In step S510, the document file selected / converted in step S509 is registered in the document management server 106. At this time, image area separation is performed on the raster image of the document. Then, information for each block obtained by subdividing each area (block segmentation: BS) is registered in the database 105 as registered document block information and text information indicating actual data of text in the block. Examples of the configuration of the registered document block information and the text information are shown in FIGS. 11 and 12, and details thereof will be described later.

なお、文書中の画像ブロックに関してはステップS507と同様に、該画像ブロック内の画像データを画像ファイルとして文書管理サーバ106に登録し、さらに、画像に関する情報をデータベース105に登録する。   As for the image block in the document, the image data in the image block is registered in the document management server 106 as an image file, and information about the image is registered in the database 105 as in step S507.

・コピー処理
ステップS511は、ステップS502において「コピー」が選択された場合の処理であり、MFP100において原稿の高画質コピーを行う。すなわち、ADFにセットされた原稿を画像読取部110で読み取り、記憶装置111に1ページ分の画像データとして一旦保持する。そして、読み取った画像データの一部もしくは全てを、必要に応じて登録済みのオリジナルの画像データに置き換えて記録装置112に出力することにより、高画質のコピー処理を実現する。
Copy Process Step S511 is a process performed when “Copy” is selected in Step S502, and the MFP 100 performs high-quality copy of the document. That is, the original set on the ADF is read by the image reading unit 110 and temporarily stored in the storage device 111 as image data for one page. Then, a part of or all of the read image data is replaced with the registered original image data as necessary and outputted to the recording device 112, thereby realizing high-quality copy processing.

本実施形態のコピー処理においては、読み取られた画像データ(以下、スキャン画像データ)に対して、マネージメントPC101によって像域分離が施され、各領域(ブロック)に細分化される(BS処理)。細分化された各ブロックの情報は、図13に示すようなスキャン文書ブロック情報としてRAM32上に抽出される。そして、スキャン画像内の画像ブロックに一致する画像情報がデータベース105に登録されていた場合、対応する実行権限レベルに従って当該ユーザの実行権限の有無を判定し、権限がある場合にのみ、コピーを実行する。   In the copy process of the present embodiment, the read image data (hereinafter referred to as scan image data) is subjected to image area separation by the management PC 101 and subdivided into areas (blocks) (BS process). The information of each subdivided block is extracted on the RAM 32 as scanned document block information as shown in FIG. If image information that matches the image block in the scanned image is registered in the database 105, it is determined whether or not the user has the execution authority according to the corresponding execution authority level, and the copy is executed only when there is an authority. To do.

また、スキャン画像と一致する文書の情報がデータベース105に登録されていた場合には、対応するオリジナルの文書ファイルを文書管理サーバ106から読み取ってラスタライズし、読み取られた画像データに代えて記録装置112に出力する。一方、オリジナルの文書ファイルが登録されていない場合でも、スキャン画像における画像ブロックの画像データと一致する画像がデータベース105に格納されていれば、これを利用する。すなわち、スキャン画像内における画像ブロックを、文書管理サーバ106に格納されているオリジナルの画像データで置き換えた後、記録装置112に出力する。なお、本実施形態におけるコピー処理の詳細については、図19を用いて後述する。   If the document information matching the scanned image is registered in the database 105, the corresponding original document file is read from the document management server 106 and rasterized, and the recording device 112 is replaced with the read image data. Output to. On the other hand, even if the original document file is not registered, if an image that matches the image data of the image block in the scanned image is stored in the database 105, it is used. That is, the image block in the scanned image is replaced with the original image data stored in the document management server 106 and then output to the recording device 112. Details of the copy processing in this embodiment will be described later with reference to FIG.

・送信処理
ステップS512は、ステップS502において「送信」が選択された場合の処理であり、MFP100において読み取った画像データを指定された送信先へ送信する。すなわち、ADFにセットされた原稿を画像読取部110で読み取り、記憶装置111に1ページ分の画像データとして一旦保持する。そして、読み取った画像データをベクトル化し、ベクトル化された画像の一部もしくは全てを、必要に応じてオリジナルの画像データに置き換えて、指定された送信先に送信する。この送信処理においては、上述したステップS511のコピー処理と同様にBS処理を行ってユーザの実行権限の有無を判定し、権限がある場合のみ、送信を実行する。また、やはりステップS511と同様に、読み取られた画像データの全てもしくは一部を、オリジナルの画像データに置き換えてから送信を行う。なお、本実施形態における送信処理の詳細については、図24を用いて後述する。
Transmission Processing Step S512 is processing when “transmission” is selected in step S502, and transmits image data read by the MFP 100 to a designated transmission destination. That is, the original set on the ADF is read by the image reading unit 110 and temporarily stored in the storage device 111 as image data for one page. Then, the read image data is vectorized, and part or all of the vectorized image is replaced with original image data as necessary, and transmitted to a designated transmission destination. In this transmission process, the BS process is performed in the same manner as the copy process in step S511 described above to determine whether or not the user has execution authority, and transmission is executed only when there is an authority. Similarly to step S511, transmission is performed after replacing all or part of the read image data with the original image data. Details of the transmission processing in this embodiment will be described later with reference to FIG.

・保存処理
ステップS513は、ステップS502において「保存」が選択された場合の処理であり、MFP100において読み取った画像データを指定された保存先へ保存する。すなわち、ADFにセットされた原稿を画像読取部110で読み取り、記憶装置111に1ページ分の画像データとして一旦保持する。そして、読み取ったイメージデータをベクトル化し、ベクトル化された画像の一部もしくは全てを、必要に応じてオリジナルの画像データに置き換えて、指定された保存先に保存する。この保存処理においては、上述したステップS511のコピー処理と同様にBS処理を行ってユーザの実行権限の有無を判定し、権限がある場合のみ、保存を実行する。また、やはりステップS511と同様に、読み取られた画像データの全てもしくは一部を、オリジナルの画像データに置き換えてから保存を行う。画像ブロックのオリジナルデータに対して保存先が設定されている場合は、ユーザが保存先を指定する必要は無く、設定された保存先に自動的に保存される。なお、本実施形態における保存処理の詳細については、図27を用いて後述する。
Saving Process Step S513 is a process when “Save” is selected in Step S502, and the image data read by the MFP 100 is saved in a designated saving destination. That is, the original set on the ADF is read by the image reading unit 110 and temporarily stored in the storage device 111 as image data for one page. Then, the read image data is vectorized, and part or all of the vectorized image is replaced with original image data as necessary, and stored in a designated storage location. In this storage process, the BS process is performed in the same manner as the copy process in step S511 described above to determine whether or not the user has the execution authority, and the storage is executed only when there is an authority. Similarly to step S511, all or part of the read image data is replaced with original image data and then stored. When the storage destination is set for the original data of the image block, the user does not need to specify the storage destination and is automatically stored in the set storage destination. Details of the storage process in the present embodiment will be described later with reference to FIG.

●画像登録処理(詳細)
以下、上述したステップS507における画像登録処理について、図14のフローチャートを用いてその詳細を説明する。なお、この画像登録処理は、ステップS510の文書登録処理において文書中の画像ブロックの画像を登録する際にも実行される。
● Image registration processing (details)
Hereinafter, the details of the image registration processing in step S507 described above will be described with reference to the flowchart of FIG. This image registration process is also executed when registering an image of an image block in a document in the document registration process in step S510.

まずステップS1401において、登録対象の画像がベクトル画像であるかラスタ画像であるかによって、処理が分岐する。ベクトル画像であればステップS1402へ進み、ラスタ画像であればステップS1404へ進む。   First, in step S1401, the process branches depending on whether the registration target image is a vector image or a raster image. If it is a vector image, the process proceeds to step S1402, and if it is a raster image, the process proceeds to step S1404.

ステップS1402では、ベクトルデータの比較を容易にするために正規化を行う。例えば、ベクトル画像の外接矩形のサイズを正規化するために、登録対象のベクトル画像の外接矩形の長辺が所定の長さ(例えば、20000ピクセル)となるように、ベクトルデータ中の座標の値や、フォントのサイズなどを補正する。   In step S1402, normalization is performed to facilitate comparison of vector data. For example, in order to normalize the size of the circumscribed rectangle of the vector image, the value of the coordinates in the vector data so that the long side of the circumscribed rectangle of the vector image to be registered has a predetermined length (for example, 20000 pixels) And correct the font size.

続いてステップS1403において、正規化されたベクトル画像に対してラスタライズを行い、ラスタ画像に変換する。ラスタ画像のサイズとしては、正規化の際に用いたサイズをそのまま使用する必要は無く、後述する画像特徴の抽出が可能なレベルのサイズであればよい。   In step S1403, the normalized vector image is rasterized and converted into a raster image. As the size of the raster image, it is not necessary to use the size used at the time of normalization as long as it is a size that enables extraction of image features to be described later.

ステップS1404においては、登録対象の画像に対する画像特徴を抽出する。ここで本実施形態における画像特徴を特に限定する必要は無く、例えば、MPEG−7(ISO/IEC15938)のPart−3に記載されている、Color LayoutとEdge Histogramを使用するものとする。また、画像特徴の抽出方法としては、同じくMPEG−7のPart−8に記載されている方法を使用するものとする。   In step S1404, image features for the registration target image are extracted. Here, there is no need to particularly limit the image features in the present embodiment, and for example, Color Layout and Edge Histogram described in Part-3 of MPEG-7 (ISO / IEC 15938) are used. Also, as an image feature extraction method, the method described in Part-8 of MPEG-7 is used.

続いてステップS1405において、登録対象の画像と類似する画像が、データベース105に画像情報として既に登録されているか否かを検索する。ここで、画像情報の構成例を図8に示す。図8に示されるように画像情報としては、登録されている個々の画像に対して、画像ID毎に画像特徴およびサイズ情報(横方向と縦方向のピクセル数)等が格納されている。ここで画像特徴としては、ステップS1404でも登録対象画像から抽出される、Color LayoutとEdge Histogramが、個々の画像から抽出されて格納されている。   In step S1405, it is searched whether an image similar to the image to be registered is already registered in the database 105 as image information. Here, a configuration example of the image information is shown in FIG. As shown in FIG. 8, as image information, image characteristics and size information (number of pixels in the horizontal and vertical directions) are stored for each image ID for each registered image. Here, as the image features, Color Layout and Edge History extracted from the registration target image in step S1404 are extracted from the individual images and stored.

登録対象画像による検索方法としては、まず、登録対象画像のサイズによる絞込みを行う。すなわち、データベース105に画像情報として登録されている画像の中から、登録対象の画像とアスペクト比(縦方向と横方向のピクセル数の比率)がほぼ等しい画像を選び出して絞り込む。続いて、絞り込まれた画像の中から画像特徴が類似する画像を選ぶことにより、検索結果を得る。すなわち、ステップS1404で抽出した画像特徴の値と、データベース105に画像情報として格納されている画像特徴の値から、2つの画像の類似度(もしくは距離)を算出する。そして、所定の類似度以上(所定の距離以下)の画像特徴を持つ画像を、類似する画像として抽出し、これを検索結果とする。なお、類似度(もしくは距離)の算出方法は、MPEG−7のPart−8に記載されている方法を使用するものとする。   As a search method using registration target images, first, narrowing down according to the size of the registration target images is performed. That is, from the images registered as image information in the database 105, an image having an aspect ratio (ratio of the number of pixels in the vertical and horizontal directions) that is substantially the same as the image to be registered is selected and narrowed down. Subsequently, a search result is obtained by selecting an image having similar image characteristics from the narrowed-down images. That is, the similarity (or distance) between two images is calculated from the image feature value extracted in step S1404 and the image feature value stored as image information in the database 105. Then, an image having an image feature equal to or higher than a predetermined similarity (less than a predetermined distance) is extracted as a similar image, and this is used as a search result. Note that a method described in Part-8 of MPEG-7 is used as a method of calculating the similarity (or distance).

そしてステップS1406では、ステップS1405における検索結果として類似する画像が得られたか否かによって処理を分岐する。すなわち、類似する画像が存在すればステップS1407へ進み、存在しなければステップS1411へ進む。   In step S1406, the process branches depending on whether a similar image is obtained as the search result in step S1405. That is, if a similar image exists, the process proceeds to step S1407, and if not, the process proceeds to step S1411.

ステップS1407では、ステップS1405における検索結果として得られた類似画像中に、登録対象画像に一致する画像が存在するか否かを判定するために、画像の詳細比較を行う。この画像詳細比較処理の詳細については、図15を用いて後述する。この詳細比較結果に基づき、ステップS1408において処理が分岐する。すなわち、登録対象画像と同じ画像が存在すると判定された場合はステップS1409へ進み、存在しないと判定された場合はステップS1411へ進む。   In step S1407, in order to determine whether or not there is an image that matches the registration target image in the similar images obtained as the search result in step S1405, detailed image comparison is performed. Details of this image detail comparison processing will be described later with reference to FIG. Based on this detailed comparison result, the process branches in step S1408. That is, if it is determined that the same image as the registration target image exists, the process proceeds to step S1409, and if it is determined that no image exists, the process proceeds to step S1411.

ステップS1409では、ステップS1407で登録対象画像と同じであると判定された登録済の画像について、登録対象の画像による置換え、すなわちオリジナルの更新が可能であるか否かの判定を行う。このオリジナル更新判定処理の詳細については、図16を用いて後述する。   In step S1409, it is determined whether the registered image determined to be the same as the registration target image in step S1407 can be replaced with the registration target image, that is, whether the original can be updated. Details of the original update determination process will be described later with reference to FIG.

そしてステップS1410では、ステップS1409での判定結果に基づいて処理を分岐する。すなわち、更新可能と判定された場合はステップS1412へ進み、更新不可と判定されれば、登録対象の画像を登録することなく、画像登録処理を終了する。   In step S1410, the process branches based on the determination result in step S1409. In other words, if it is determined that update is possible, the process proceeds to step S1412. If it is determined that update is not possible, the image registration process is terminated without registering the registration target image.

ステップS1411においては、登録対象の画像を文書管理サーバ106に画像ファイルとして新規登録し、さらにその画像情報をデータベース105に登録する。   In step S1411, the image to be registered is newly registered as an image file in the document management server 106, and the image information is registered in the database 105.

ここでデータベース105に登録される画像情報としては、図8に示されるように、「画像ID」、「画像特徴」、「モード」、「種類」、「サイズ」、「処理フラグ」、「実行権限レベル」、「保存先」、「管理者」が格納される。登録対象の画像について、その画像情報を登録する際には、まず、登録対象の画像に対して「画像ID」が発行される。画像IDは、画像情報中に存在しない値が選ばれて発行される。そして、新たに発行された画像IDに対して、ステップS1404で抽出した「画像特徴」が格納される。同様に、「モード」として、ステップS504もしくはステップS508で設定された値、すなわち、「画像」または「文書」のいずれかが格納される。また、「種類」として、登録対象の画像の種類である、「ラスタ画像」または「ベクトル画像」のいずれかが判定されて格納される。「サイズ」としては、ラスタ画像であれば、その画像の縦横のピクセル数が格納され、ベクトル画像であれば、ステップS1402で正規化した画像の縦横のピクセル数が格納される。「処理フラグ」は、モードが「画像」である場合のみ有効であり、ステップS506において設定した、印刷、送信、保存、置換、ベクトル化、履歴保存、履歴通知の各処理の実行の可否を示すフラグが格納される。詳細には図9に示すように、各ビットにそれぞれのフラグを対応させて格納している。「実行権限レベル」および「保存先」にも、ステップS506で設定された値がそのまま格納される。また、「管理者」には、ステップS501でログインしたユーザのメールアドレスが格納される。   Here, as the image information registered in the database 105, as shown in FIG. 8, “image ID”, “image feature”, “mode”, “type”, “size”, “processing flag”, “execution” “Authority level”, “save destination”, and “administrator” are stored. When registering image information of a registration target image, first, an “image ID” is issued for the registration target image. As the image ID, a value that does not exist in the image information is selected and issued. Then, the “image feature” extracted in step S1404 is stored for the newly issued image ID. Similarly, the value set in step S504 or step S508, that is, “image” or “document” is stored as “mode”. Further, as the “type”, either the “raster image” or the “vector image”, which is the type of the image to be registered, is determined and stored. As the “size”, in the case of a raster image, the number of vertical and horizontal pixels of the image is stored, and in the case of a vector image, the number of vertical and horizontal pixels of the image normalized in step S1402 is stored. The “processing flag” is valid only when the mode is “image”, and indicates whether the printing, transmission, storage, replacement, vectorization, history storage, and history notification processing set in step S506 can be executed. A flag is stored. Specifically, as shown in FIG. 9, each bit is stored in association with each flag. The values set in step S506 are also stored as they are in “execution authority level” and “save destination”. Further, the “administrator” stores the mail address of the user who logged in in step S501.

このように、オリジナル画像の登録時に、ベクトル化や置換え等についての可否情報等、画質制御条件を登録可能とすることによって、多様な画質制御の要求に柔軟に対応することができる。例えば、オリジナル画像の登録時にベクトル化の可否を設定することにより、スキャン画像をベクトル化する際に、オリジナル画像と一致する画像についてはベクトル化を行わないように制御することができ、著作権等の問題を回避することができる。   As described above, when the original image is registered, the image quality control conditions such as vectorization and replacement information can be registered, so that various image quality control requests can be flexibly handled. For example, by setting whether or not vectorization is possible when registering the original image, when the scan image is vectorized, it can be controlled not to vectorize the image that matches the original image, such as copyright. The problem can be avoided.

そして、文書管理サーバ106に対しては、そのハードディスク上の所定のディレクトリに、登録対象画像のファイルが格納される。このとき、ファイル名としては画像IDが使用され、画像の種類に応じた拡張子が付加される。登録対象画像がラスタ画像であれば、ステップS505で選択した画像ファイル、もしくはステップS510で文書ファイルから抽出されて一時的に保存された画像ブロックのファイルをコピーすることにより、格納する。また、登録対象画像がベクトル画像であれば、ステップS1402で正規化したデータをファイルとして格納する。このように、データベース105への画像情報の登録、および文書管理サーバ106への画像ファイルの登録が終了すると、ステップS1411における画像情報登録処理を終了する。   For the document management server 106, the file of the registration target image is stored in a predetermined directory on the hard disk. At this time, an image ID is used as the file name, and an extension corresponding to the type of image is added. If the registration target image is a raster image, the image file selected in step S505 or the image block file extracted from the document file and temporarily saved in step S510 is copied and stored. If the registration target image is a vector image, the data normalized in step S1402 is stored as a file. As described above, when the registration of the image information in the database 105 and the registration of the image file in the document management server 106 are finished, the image information registration process in step S1411 is finished.

一方、ステップS1412においては、ステップS1407で登録対象画像に一致すると判定された登録済みのオリジナル画像を、登録対象画像で更新する。すなわち、データベース105内の画像情報と、文書管理サーバ106内の画像ファイルそのものが置き換えられる。このとき、登録対象画像に対して新たな画像IDの発行を行わず、更新される画像のIDがそのまま割り当てられる。したがって、更新される画像の画像情報については、その画像ID以外の項目の値が、登録対象画像の値に書き換えられる。ここで書き換える値は、ステップS1411における新規登録の場合と同様にして求められる。また、文書管理サーバ106においても画像ファイルが書き換えられるが、該ファイルの内容はステップS1411における新規登録の場合と同様である。このように、データベース105に対する画像情報の更新、および文書管理サーバ106に対する画像ファイルの更新が終了すると、ステップS1412における画像情報更新処理を終了する。   On the other hand, in step S1412, the registered original image determined to match the registration target image in step S1407 is updated with the registration target image. That is, the image information in the database 105 and the image file itself in the document management server 106 are replaced. At this time, the image ID to be updated is assigned as it is without issuing a new image ID for the registration target image. Therefore, for the image information of the image to be updated, the value of the item other than the image ID is rewritten to the value of the registration target image. The value to be rewritten here is obtained in the same manner as in the case of new registration in step S1411. Also, the image file is rewritten in the document management server 106, and the content of the file is the same as in the case of new registration in step S1411. As described above, when the update of the image information in the database 105 and the update of the image file in the document management server 106 are finished, the image information update process in step S1412 is finished.

以上説明したように、データベース105に対する画像情報の登録または更新、および文書管理サーバ106に対する画像ファイルの登録または更新が終了すると、ステップS507における画像登録処理を終了する。   As described above, when the registration or update of the image information in the database 105 and the registration or update of the image file in the document management server 106 are completed, the image registration process in step S507 is ended.

・画像詳細比較処理
ここで図15を用いて、上述したステップ1407における画像詳細比較処理について、詳細に説明する。
Image Detail Comparison Processing Here, the image detail comparison processing in step 1407 described above will be described in detail with reference to FIG.

まず、ステップS1501において、ステップS1405で検索結果として得られた類似画像を、登録対象画像との類似度の高い順に、候補として取り出す。   First, in step S1501, similar images obtained as search results in step S1405 are extracted as candidates in descending order of similarity to the registration target image.

そしてステップS1502において候補の取り出し結果を判定し、候補が取り出せればステップS1503へ進むが、全候補を取り出しを終えていれば、登録対象の画像に一致する画像は登録されていないものとして、画像詳細比較処理を終了する。   In step S1502, the candidate extraction result is determined, and if candidates can be extracted, the process proceeds to step S1503. If all candidates have been extracted, it is assumed that no image matching the registration target image has been registered. The detailed comparison process ends.

ステップS1503では、ステップS1501で取り出した候補の画像がベクトル画像であるか否かによって処理を分岐する。すなわち、候補画像がベクトル画像であればステップS1504へ進み、そうでなければステップS1506へ進む。   In step S1503, the process branches depending on whether the candidate image extracted in step S1501 is a vector image. That is, if the candidate image is a vector image, the process proceeds to step S1504; otherwise, the process proceeds to step S1506.

ステップS1504では、登録対象の画像がベクトル画像であるか否かによって処理を分岐する。すなわち、登録対象画像がベクトル画像であればステップS1505へ進み、そうでなければステップS1506へ進む。   In step S1504, the process branches depending on whether the registration target image is a vector image. That is, if the registration target image is a vector image, the process proceeds to step S1505; otherwise, the process proceeds to step S1506.

ステップS1505では、比較する画像が両方ともベクトル画像であるので、そのベクトルデータを直接比較する。この比較は、ステップS1402において登録対象画像の正規化が行われたために可能となっている。ただし、正規化時の誤差が生じる可能性があるため、例えば、座標値を比較する場合は、その差分が所定値以下であれば同じとみなすようにする。   In step S1505, since both images to be compared are vector images, the vector data are directly compared. This comparison is possible because the registration target image is normalized in step S1402. However, since an error in normalization may occur, for example, when comparing coordinate values, if the difference is equal to or less than a predetermined value, they are regarded as the same.

一方、ステップS1506では、比較する画像の両方もしくは一方がラスタ画像であるので、これらをラスタ画像として比較する。すなわち、いずれかがベクトル画像であれば、これをラスタライズした後に比較を行う。また、画像のサイズが異なる場合は、画像のサイズをそろえて比較を行う。画像のサイズをそろえる際の位置のずれなどを吸収するために、2つのラスタ画像の差分画像を作成した後、例えば、差分の画素値が0近傍の画素の占める面積の割合が所定の割合以上の場合に同じであるとみなすようにする。   On the other hand, in step S1506, since both or one of the images to be compared is a raster image, these are compared as a raster image. That is, if any one is a vector image, the comparison is performed after rasterizing the image. When the image sizes are different, the comparison is performed by aligning the image sizes. After creating a difference image between two raster images in order to absorb a shift in position when aligning the image size, for example, the ratio of the area occupied by the pixels whose difference pixel value is 0 or more is a predetermined ratio or more. In the case of.

ステップS1505におけるベクトル比較処理またはステップS1506におけるラスタ比較処理が終了すると、いずれもステップS1507に進み、その比較結果を検証する。すなわち、比較の結果、候補画像と登録対象画像が一致すると判定された場合には画像詳細比較処理を終了するが、一致しないと判定された場合にはステップS1501へ戻り、次候補となる類似画像との比較処理を実行する。   When the vector comparison process in step S1505 or the raster comparison process in step S1506 ends, the process proceeds to step S1507, and the comparison result is verified. In other words, as a result of the comparison, if it is determined that the candidate image matches the registration target image, the image detail comparison process ends. If it is determined that the candidate image does not match, the process returns to step S1501 to return to the next candidate similar image. The comparison process is executed.

このように画像登録処理において、既に登録されている候補画像と、新たに登録しようとする登録対象画像とにおける等価性を判定する際には、まず画像特徴での比較(S1405)を行った後に、さらに画像データによる詳細な比較(S1407)を行う。このような段階的な比較を行うことによって、高速かつ高精度な判定を行うことができる。   As described above, in the image registration process, when determining the equivalence between the already registered candidate image and the registration target image to be newly registered, first, after comparing the image characteristics (S1405). Further, a detailed comparison based on the image data is performed (S1407). By performing such stepwise comparison, it is possible to make a high-speed and high-precision determination.

・オリジナル更新判定処理
ここで図16を用いて、上述したステップ1409におけるオリジナル更新判定処理について、詳細に説明する。
Original Update Determination Process Here, the original update determination process in step 1409 described above will be described in detail with reference to FIG.

まずステップS1601において、登録対象画像に対してステップS504またはS508で設定された登録モードを判定する。すなわち、文書モードであればステップS1602へ進み、画像モードであればステップS1603へ進む。   First, in step S1601, the registration mode set in step S504 or S508 is determined for the registration target image. That is, if it is the document mode, the process proceeds to step S1602, and if it is the image mode, the process proceeds to step S1603.

ステップS1602では、被更新候補である登録済み画像について、その画像情報における「モード」を判定する。すなわち、文書モードで登録された画像であればステップS1603へ進むが、画像モードで登録された画像であればステップS1607へ進み、この登録済み画像は更新不可であるものとして、この判定処理を終了する。これにより、一旦画像モードで登録された画像については、文書モードで登録しようとしている画像では置き換えられないことになり、すなわち本実施形態では画像モードでの登録が優先される。   In step S1602, the “mode” in the image information of the registered image that is an update candidate is determined. That is, if it is an image registered in the document mode, the process proceeds to step S1603. If it is an image registered in the image mode, the process proceeds to step S1607, and this determination process is terminated, assuming that this registered image cannot be updated. To do. As a result, the image once registered in the image mode cannot be replaced by the image to be registered in the document mode. That is, in the present embodiment, priority is given to registration in the image mode.

ステップS1603では、被更新対象候補である登録済み画像がベクトル画像であるか否かを判定する。ベクトル画像でない、すなわちラスタ画像であればステップS1604へ進むが、ベクトル画像であればステップS1607へ進み、この登録済み画像は更新不可であるものとして、この判定処理を終了する。   In step S1603, it is determined whether or not the registered image that is the update target candidate is a vector image. If it is not a vector image, that is, if it is a raster image, the process proceeds to step S1604, but if it is a vector image, the process proceeds to step S1607, and this determination process ends, assuming that this registered image cannot be updated.

次にステップS1604では、登録対象画像がベクトル画像であるか否かを判定する。ベクトル画像でなければステップS1605へ進むが、ベクトル画像であればステップS1606へ進み、更新可としてこの判定処理を終了する。   In step S1604, it is determined whether the registration target image is a vector image. If the image is not a vector image, the process proceeds to step S1605. If the image is a vector image, the process proceeds to step S1606, and the determination process is ended as being updateable.

このステップS1603、S1604における判定処理により、登録済みのベクトル画像は更新されず、登録済みのラスタ画像については、ベクトル画像によって更新されることになり、すなわち本実施形態ではベクトル画像としての登録が優先される。   The registered vector image is not updated by the determination processing in steps S1603 and S1604, and the registered raster image is updated by the vector image. That is, in this embodiment, registration as a vector image has priority. Is done.

ステップS1605では、ラスタ画像をラスタ画像で更新するか否かの判定を行うが、ここでは、登録対象画像の方が登録済み画像よりも高画質であれば、更新可と判定する。例えば、登録対象画像の画素数の方が登録済み画像よりも多ければ、登録対象画像の方が高画質であると判断する。登録対象画像の方が高画質であると判定されるとステップS1606へ進んで更新可とし、高画質でないと判定されるとステップS1607へ進んで更新不可として、オリジナル更新判定処理を終了する。   In step S1605, it is determined whether or not to update the raster image with the raster image. Here, if the registration target image has a higher image quality than the registered image, it is determined that the raster image can be updated. For example, if the registration target image has more pixels than the registered image, it is determined that the registration target image has higher image quality. If it is determined that the registration target image has a higher image quality, the process proceeds to step S1606, where it can be updated. If it is determined that the image is not higher, the process proceeds to step S1607, where it cannot be updated, and the original update determination process ends.

本実施形態においては、詳しくは後述するが、スキャン画像から上述したように登録されたオリジナル画像と等価とみなせる部分画像を検出し、該部分画像を該オリジナル画像で置き換える処理を行う。したがって、上述したようにオリジナル画像としてラスタ画像よりもベクトル画像を優先して登録しておくことにより、スキャン画像をオリジナル画像への置き換えた結果として、よりコンパクトかつ高画質の画像を得ることができる。また同様に、文書中の画像よりも、画像として明示的にモード指定された画像のほうを優先して登録することにより、上記オリジナル画像への置き換えが発生した際に、より適切な画像への置き換えを行ってより高画質な画像を得ることができる。   In the present embodiment, as will be described in detail later, a partial image that can be regarded as equivalent to the original image registered as described above is detected from the scan image, and the partial image is replaced with the original image. Therefore, as described above, by registering a vector image with priority over a raster image as an original image, a more compact and high-quality image can be obtained as a result of replacing the scanned image with the original image. . Similarly, by registering an image that has been explicitly designated as an image in preference to an image in the document, when a replacement to the original image occurs, a more appropriate image can be obtained. A higher quality image can be obtained by performing replacement.

●文書登録処理(詳細)
以下、上述したステップS510における文書登録処理について、図17のフローチャートを用いてその詳細を説明する。
● Document registration process (details)
The details of the document registration process in step S510 described above will be described below with reference to the flowchart of FIG.

まずステップS1701において、ステップS509で選択されたアプリケーション文書のデータを、PostScriptやSVG等のPDL(Page Description Language)形式に変換する。この変換処理は、PDLに対応した仮想プリンタドライバを用いてアプリケーションから印刷処理を実行させることにより、可能となる。   First, in step S1701, the application document data selected in step S509 is converted into a PDL (Page Description Language) format such as PostScript or SVG. This conversion process can be performed by executing a print process from an application using a virtual printer driver compatible with PDL.

続いてステップS1702において、ステップS1701でPDL化した文書データを、600DPIでラスタライズしてラスタ画像を作成する。   In step S1702, the document data converted to PDL in step S1701 is rasterized with 600 DPI to create a raster image.

続いてステップS1703において、ステップS1702で得られたラスタ画像を像域分離し、各領域に細分化する(BS処理)。ここでBS処理の例を図18に示す。図18は、BS処理によって、1枚のイメージデータの属性を判定して複数のブロックに分割した様子を示す図であり、同図左側が分割前のラスタ画像、右側がそのブロック分割後の様子を示す。このようにBS処理によって、同図左側に示す1頁のラスタ画像を、同図右側に示すように各オブジェクト毎の塊(矩形ブロック)として認識し、それぞれを属性毎のブロックに分割する。ブロック属性としては、文字(TEXT)/図画(PICTURE)/写真(PHOTO)/線(LINE)/表(TABLE)等に判定される。なお、BS処理の方法については特開2004−265384等で公開されており、周知であるため、ここでは詳細な説明を省略する。なお、図18に示すBS処理例では、同図左側において細分化された領域自体は任意形状であるが、同図右側においては該任意形状に外接する矩形領域を矩形ブロックとして表示している。   Subsequently, in step S1703, the raster image obtained in step S1702 is subjected to image region separation and subdivided into regions (BS processing). An example of BS processing is shown in FIG. FIG. 18 is a diagram illustrating a state in which the attribute of one piece of image data is determined and divided into a plurality of blocks by BS processing. The left side of the drawing is a raster image before division, and the right side is a state after the block division. Indicates. In this way, by the BS processing, the raster image of one page shown on the left side of the figure is recognized as a block (rectangular block) for each object as shown on the right side of the figure, and each is divided into blocks for each attribute. The block attribute is determined as character (TEXT) / drawing (PICTURE) / photograph (PHOTO) / line (LINE) / table (TABLE). The BS processing method is disclosed in Japanese Patent Application Laid-Open No. 2004-265384 and is well known, and therefore detailed description thereof is omitted here. In the BS processing example shown in FIG. 18, the area itself subdivided on the left side of the figure has an arbitrary shape, but on the right side of the figure, a rectangular area circumscribing the arbitrary shape is displayed as a rectangular block.

続いてステップS1704において、文書IDを新たに発行し、ステップS509で選択したアプリケーション文書のファイルを、該文書IDをファイル名としたファイルとして、文書管理サーバ106のハードディスク上の所定のディレクトリにコピーする。このとき、ファイル名の拡張子としては元のファイルと同じものを使用する。   In step S1704, a document ID is newly issued, and the application document file selected in step S509 is copied to a predetermined directory on the hard disk of the document management server 106 as a file having the document ID as a file name. . At this time, the same file name extension as the original file is used.

続いてステップS1705において、ステップS1703で分割したブロックを順次取り出し、ステップS1706において、ブロックが取得できたか否かによって処理を分岐する。すなわち、ブロックを取り出せればステップS1707へ進み、全てのブロックを取り出し終えて、もう取り出すことができなければ文書登録処理を終了する。   Subsequently, in step S1705, the blocks divided in step S1703 are sequentially extracted, and in step S1706, the process branches depending on whether the block has been acquired. That is, if the block can be extracted, the process proceeds to step S1707. If all the blocks have been extracted, and the document cannot be extracted any more, the document registration process is terminated.

ステップS1707では、ステップS1705で取り出したブロックに関する情報を、データベース105内に登録文書ブロック情報として登録する。ここで図11に、登録文書ブロック情報の構成例を示す。同図に示されるように登録文書ブロック情報は、各ブロックに対して、「文書ID」、「ブロックID」、「位置」、「サイズ」、「属性」、「画像/テキストID」を対応付けて格納したテーブルとして構成される。具体的には、「文書ID」として、ステップS1704で発行した文書IDを格納し、「ブロックID」として、ステップS1705で取り出したブロックの順番を示す番号を格納する。「位置」には、ステップS1702でラスタライズされた文書画像の座標系における、矩形ブロックの左上の座標値を格納する。「サイズ」としては、ブロックの縦横のピクセル数を格納する。「属性」には、対象となるブロックが画像(図画/写真など)であれば「画像」を格納し、テキスト(文字)であれば「テキスト」を格納する。なお、「画像/テキストID」については、画像/テキストの登録時にセットされるため、詳細は後述する。   In step S1707, information regarding the block extracted in step S1705 is registered in the database 105 as registered document block information. FIG. 11 shows a configuration example of the registered document block information. As shown in the figure, the registered document block information associates “document ID”, “block ID”, “position”, “size”, “attribute”, and “image / text ID” with each block. Configured as a stored table. Specifically, the document ID issued in step S1704 is stored as “document ID”, and the number indicating the order of the blocks extracted in step S1705 is stored as “block ID”. In “position”, the upper left coordinate value of the rectangular block in the coordinate system of the document image rasterized in step S1702 is stored. As the “size”, the number of vertical and horizontal pixels of the block is stored. “Attribute” stores “image” if the target block is an image (drawings / photographs, etc.), and “text” if it is a text (character). The “image / text ID” is set when the image / text is registered, and will be described in detail later.

続いてステップS1708では、ステップS1705で取り出した処理対象ブロックが、画像であるかテキストであるかを判定し、画像であればステップS1709へ進み、テキストであればステップS1711へ進む。   In step S1708, it is determined whether the processing target block extracted in step S1705 is an image or text. If it is an image, the process proceeds to step S1709, and if it is a text, the process proceeds to step S1711.

ステップS1709では、ステップS1701でPDL化された文書データから、処理対象のブロックに対応する部分の画像データを抽出する。詳細には、登録文書ブロック情報として格納したブロックの領域の座標(位置およびサイズ)をPDLデータにおける座標系に変換することによって、PDLデータにおける当該ブロックの領域にレンダリングされるデータを容易に抽出することができる。抽出される画像としてはベクトル画像とラスタ画像があるが、それぞれ、画像ファイルとして必要な情報を付加し、場合によっては必要な変換を施して、一時的なファイルとして格納しておく。   In step S1709, image data of a part corresponding to the block to be processed is extracted from the document data converted into PDL in step S1701. Specifically, by converting the coordinates (position and size) of the block area stored as the registered document block information into a coordinate system in the PDL data, data rendered in the block area in the PDL data can be easily extracted. be able to. The extracted image includes a vector image and a raster image. Each of them is added with necessary information as an image file, and is subjected to necessary conversion in some cases and stored as a temporary file.

続いてステップS1710において、ステップS1709で抽出した画像データをデータベース105および文書管理サーバ106に登録する。この画像登録処理は、上述したステップS507の画像登録処理と同様であり、登録対象であるブロックの画像がそのまま新規登録される場合と、既に登録済みであるとして登録されない場合がある。新規登録された場合は、その際に得られる画像IDの値を登録文書ブロック情報の「画像/テキストID」に格納する。一方、登録されなかった場合には、既に登録済みである画像の画像IDが得られるので、その値を登録文書ブロック情報の「画像/テキストID」に格納する。そして画像登録処理を終えると、ステップS1705へ戻って次ブロックの処理を行う。   In step S1710, the image data extracted in step S1709 is registered in the database 105 and the document management server 106. This image registration process is the same as the image registration process in step S507 described above, and there are cases where an image of a block to be registered is newly registered as it is, or that it is not registered as already registered. When newly registered, the value of the image ID obtained at that time is stored in “image / text ID” of the registered document block information. On the other hand, if the image ID is not registered, the image ID of the already registered image is obtained, and the value is stored in “image / text ID” of the registered document block information. When the image registration process is completed, the process returns to step S1705 to process the next block.

一方、ステップS1711においては、ステップS1701でPDL化した文書データから、処理対象のブロックに対応する部分のテキストデータを抽出する。詳細には、上述したステップS1709と同様の方法によって、PDLデータからテキストデータを抽出する。   On the other hand, in step S1711, text data corresponding to the block to be processed is extracted from the document data converted to PDL in step S1701. Specifically, text data is extracted from PDL data by the same method as in step S1709 described above.

続いてステップS1712において、ステップS1711で抽出したテキストの情報を、データベース105内にテキスト情報として登録する。ここで図12に、テキスト情報の構成例を示す。同図に示されるようにテキスト情報としては、各テキストブロックに対応して、「テキストID」と「テキストデータ」が格納される。具体的には、テキストブロックを登録する毎に、テキストIDが新たに発行され、そのテキストIDに対応させて、ステップS1711で抽出したテキストデータを格納する。さらにこのとき、このテキストIDを、図11に示した登録文書ブロック情報の「画像/テキストID」に格納する。そしてテキスト登録処理を終えると、ステップS1705へ戻って次ブロックの処理を行う。   In step S 1712, the text information extracted in step S 1711 is registered as text information in the database 105. Here, FIG. 12 shows a configuration example of text information. As shown in the figure, “text ID” and “text data” are stored as text information corresponding to each text block. Specifically, each time a text block is registered, a new text ID is issued, and the text data extracted in step S1711 is stored in association with the text ID. Further, at this time, this text ID is stored in “image / text ID” of the registered document block information shown in FIG. When the text registration process is completed, the process returns to step S1705 to process the next block.

以上説明した、ステップS507およびステップS510で登録された画像データおよび文書データが、後述する各処理(コピー、送信、保存)において、原本または特定画像のオリジナルデータとして扱われる。   The image data and document data registered in steps S507 and S510 described above are handled as original data or original data of a specific image in each processing (copy, transmission, storage) described later.

●コピー処理(詳細)
以下、上述したステップS511におけるコピー処理について、図19のフローチャートを用いてその詳細を説明する。
● Copy processing (details)
Hereinafter, the details of the copy processing in step S511 described above will be described with reference to the flowchart of FIG.

まずステップS1901において、MFP100の画像読み取り部110から画像を読み取る。すなわち、MFP100の画像読み取り部110を動作させて、ADFから1枚の原稿をラスタ状に走査(スキャン)し、600DPIの画像信号を得る。以下、画像読み取り部110で原稿を読み取って得られる画像を、スキャン画像と称する。そして該画像信号に対し、データ処理部115で前処理(補正処理等の変換処理等)を施し、記憶装置111に1ページ分の画像データとして一時的に保存した後、その旨をマネージメントPC101に通知する。この通知を受けて、マネージメントPC101のCPU30は、MFP100の記憶装置111に格納された画像データを、LAN109を介してRAM32にロードする。なお、ステップS1901の画像読み込み処理においてはMFP100が介在したが、以降のステップでは、マネージメントPC101のCPU30によって実行される処理手順を示す。   First, in step S1901, an image is read from the image reading unit 110 of the MFP 100. That is, the image reading unit 110 of the MFP 100 is operated to scan a single document from the ADF in a raster shape to obtain a 600 DPI image signal. Hereinafter, an image obtained by reading an original with the image reading unit 110 is referred to as a scanned image. The image signal is subjected to preprocessing (conversion processing such as correction processing) by the data processing unit 115 and temporarily stored as one page of image data in the storage device 111. Notice. Upon receiving this notification, the CPU 30 of the management PC 101 loads image data stored in the storage device 111 of the MFP 100 into the RAM 32 via the LAN 109. Note that the MFP 100 is interposed in the image reading process in step S1901, but the following steps show the processing procedure executed by the CPU 30 of the management PC 101.

ステップS1902では、RAM32上にロードされたスキャン画像データに対して、矩形領域単位に領域を分離して各領域(ブロック)毎に属性を判定し、その結果をスキャン文書ブロック情報としてRAM32に格納する。なお、属性としては文字/図画/写真/線/表等が判定される。また、ラスタ画像に対して矩形領域にブロック分割する方法としては、上述したステップS1703と同様のBS処理を行えば良い。   In step S1902, the scan image data loaded on the RAM 32 is divided into rectangular areas, attributes are determined for each area (block), and the result is stored in the RAM 32 as scan document block information. . Note that characters / drawings / photos / lines / tables and the like are determined as attributes. In addition, as a method of dividing the raster image into blocks of rectangular areas, the BS process similar to step S1703 described above may be performed.

ここで図13に、スキャン文書ブロック情報の構成例を示す。同図に示されるようにスキャン文書ブロック情報は、領域分割された各ブロックに対して、「ブロックID」、「位置」、「サイズ」、「属性」、「画像特徴/テキスト情報」を対応付けて格納したテーブルとして構成される。具体的には、「ブロックID」、「位置」、「サイズ」、「属性」については、ステップS1707における登録文書ブロック情報の格納時と同様に格納される。また、「画像特徴/テキスト情報」については、属性が「画像」であれば、ステップS1404と同様にブロックの画像データから画像特徴を抽出して格納する。一方、属性が「テキスト」であれば、ブロックの画像に対して文字認識処理を施し、その結果として画像から抽出されたテキスト情報を格納する。   Here, FIG. 13 shows a configuration example of the scanned document block information. As shown in the figure, the scanned document block information associates “block ID”, “position”, “size”, “attribute”, and “image feature / text information” with each block obtained by dividing the area. Configured as a stored table. Specifically, “block ID”, “position”, “size”, and “attribute” are stored in the same manner as when the registered document block information is stored in step S1707. For “image feature / text information”, if the attribute is “image”, the image feature is extracted from the image data of the block and stored in the same manner as in step S1404. On the other hand, if the attribute is “text”, character recognition processing is performed on the image of the block, and as a result, text information extracted from the image is stored.

続いてステップS1903において、コピーが実行可能であるか否かを判定し、該判定結果に応じてステップS1904で処理を分岐する。すなわち、コピー可能であると判定された場合はステップS1905へ進み、コピー不可と判定された場合はコピー処理を終了する。この判定処理の詳細については図20を用いて後述するが、ここでその概要を説明する。基本的に、ステップS1902で領域分割された各ブロックの画像を、ステップS507で登録された画像から検索する。そして、登録された画像と一致するブロック画像があれば、その画像に対応付けられたデータベース105の画像情報中における、処理フラグの印刷可否の値と実行権限レベルに基づいて、コピーの可否を判定する。ここで例えば、図10Bに示すような、管理職以外のユーザによるコピーを禁止したい画像を登録する場合について考える。この場合、管理職以上の実行権限レベルを示す値が「3」以上であれば、ステップS507でこの画像を登録する際の画像情報として、印刷可否のフラグを「可」に設定し、実行権限レベルの値を「3」に設定しておく。これにより、ステップS501でログインしたユーザが実行権限レベル「2」以下の一般者である場合にはコピー不可となり、実行権限レベル「3」以上の管理職以上のユーザに対してのみ、コピー可と判定される。   Subsequently, in step S1903, it is determined whether copying can be executed, and the process branches in step S1904 according to the determination result. That is, if it is determined that copying is possible, the process proceeds to step S1905, and if it is determined that copying is not possible, the copying process is terminated. The details of this determination processing will be described later with reference to FIG. 20, but the outline thereof will be described here. Basically, the image of each block divided in step S1902 is searched from the image registered in step S507. If there is a block image that matches the registered image, it is determined whether or not copying is possible based on the print permission value and the execution authority level of the processing flag in the image information of the database 105 associated with the image. To do. Here, for example, consider the case of registering an image that is prohibited from being copied by a user other than the manager as shown in FIG. 10B. In this case, if the value indicating the execution authority level of the manager or higher is “3” or more, the print permission flag is set to “permitted” as image information when registering this image in step S507, and the execution authority is set. The level value is set to “3”. As a result, if the user who has logged in at step S501 is a general person with an execution authority level “2” or lower, copying is disabled, and only a user with a manager with an execution authority level “3” or higher can copy. Determined.

ステップS1905では、ステップS1901で読み込んだスキャン画像の原本であるアプリケーション文書が、データベース105および文書管理サーバ106に登録されているか否かを、該スキャン画像のブロック単位での検索を行うことによって判定する。そして該判定結果に応じて、ステップS1906で処理を分岐する。すなわち、原本が存在しなければステップS1907に進み、原本が存在すればステップS1909へ進む。なお、ステップS1905における原本検索処理の詳細については、図22を用いて後述する。   In step S1905, whether or not the application document that is the original scanned image read in step S1901 is registered in the database 105 and the document management server 106 is determined by performing a block-by-block search of the scanned image. . Then, according to the determination result, the process branches in step S1906. That is, if the original does not exist, the process proceeds to step S1907, and if the original exists, the process proceeds to step S1909. Details of the original document search process in step S1905 will be described later with reference to FIG.

ステップS1907では、原本そのものは登録されていないため、ステップS1902で分割された各ブロックに対するオリジナル画像が登録されていれば、ステップS1901で読み込んだスキャン画像に対して該オリジナル画像データによる部分置換を行う。この部分置換処理の詳細については、図23を用いて後述する。   In step S1907, since the original itself is not registered, if the original image for each block divided in step S1902 is registered, partial replacement with the original image data is performed on the scanned image read in step S1901. . Details of this partial replacement processing will be described later with reference to FIG.

続いてステップS1908において、ステップS1907で部分置換がなされた画像データを、MFP100の記録装置112より印刷出力する。すなわち、マネージメントPC101におけるRAM32上の画像データを、LAN109を介してMFP100の記憶装置111に転送し、該画像データを記録装置112より印刷出力させる。   In step S1908, the image data subjected to partial replacement in step S1907 is printed out from the recording device 112 of the MFP 100. That is, the image data on the RAM 32 in the management PC 101 is transferred to the storage device 111 of the MFP 100 via the LAN 109, and the image data is printed out from the recording device 112.

一方、ステップS1909においては、ステップS1905で検索された原本であるアプリケーション文書を、MFP100の記録装置112より印刷出力する。すなわち、文書管理サーバ106に格納されている文書ファイルに対して、ステップS1701、S1702と同様にPDL化、ラスタライズを施し、該処理後の画像データをステップS1908と同様にMFP100に転送して印刷出力する。   On the other hand, in step S 1909, the application document that is the original retrieved in step S 1905 is printed out from the recording device 112 of the MFP 100. That is, the document file stored in the document management server 106 is converted to PDL and rasterized in the same manner as in steps S1701 and S1702, and the processed image data is transferred to the MFP 100 and printed out in the same manner as in step S1908. To do.

ステップS1908における置換文書の印刷処理、またはステップS1909における原本印刷処理が終了すると、ステップS511のコピー処理を終了する。   When the replacement document printing process in step S1908 or the original document printing process in step S1909 ends, the copy process in step S511 ends.

このように本実施形態のコピー処理においては、図10Bに示されるような、ユーザにとって処理制御が明確に認識可能であるような画像をオリジナル画像としてその処理制御情報とともに登録しておくことにより、次のような効果が得られる。すなわち、図10Bの「管理職以外コピー禁止」を示す画像を含んで記録された紙文書であれば、管理職でないユーザは該紙文書のコピーが禁止されている旨を容易に認識することができ、無駄にコピーを試みてしまう可能性は減少する。もちろん、実際にコピーが試みられた場合でも、上述したように各フラグが設定されていれば、望まれないコピー処理は行われない。   As described above, in the copy processing of the present embodiment, by registering an image that can clearly recognize the processing control for the user as shown in FIG. 10B together with the processing control information as an original image, The following effects are obtained. That is, in the case of a paper document recorded including an image indicating “copy prohibition except manager” in FIG. 10B, a user who is not a manager can easily recognize that copying of the paper document is prohibited. This reduces the possibility of trying to copy in vain. Of course, even when copying is actually attempted, if each flag is set as described above, undesired copy processing is not performed.

・実行可否判定処理
ここで図20を用いて、上述したステップ1903におけるコピー処理の実行可否判定処理について、詳細に説明する。なお、この実行可否判定はコピー処理におけるステップS1903に限らず、後述する送信処理におけるステップS2404や、保存処理におけるステップ2703においても実行されるものである。したがって、以下ではこれら各処理に対する実行可否判定を行うものとして説明する。
Executability Determination Processing Here, the copy processing execution determination processing in step 1903 described above will be described in detail with reference to FIG. Note that this execution feasibility determination is executed not only in step S1903 in the copy process, but also in step S2404 in the transmission process described later and in step 2703 in the storage process. Therefore, in the following description, it is assumed that the execution possibility determination for each of these processes is performed.

まずステップS2001において、ステップS1902で矩形領域に分割されたブロックを順次取り出す。なおこのとき、画像ブロックとテキストブロックを区別せずに、両方を取り出す。   First, in step S2001, the blocks divided into rectangular areas in step S1902 are sequentially extracted. At this time, both the image block and the text block are extracted without distinguishing them.

そしてステップS2002においてブロックの取り出し結果を判定し、ブロックが取り出せればステップS2003へ進むが、全ブロックの取り出しを終えていれば、ステップS2011へ進む。   In step S2002, the block extraction result is determined. If a block can be extracted, the process proceeds to step S2003. If all the blocks have been extracted, the process proceeds to step S2011.

ステップS2003では、ステップS2001で取り出した画像ブロックの画像特徴を抽出し、ステップS2004では該抽出した画像特徴と類似する画像特徴を有する画像を、データベース105の画像情報から検索する。なお、ステップS2003,S2004における画像特徴抽出処理,画像検索処理は、上述したステップS1404,S1405と同様であるため、ここでは詳細な説明を省略する。   In step S2003, the image feature of the image block extracted in step S2001 is extracted. In step S2004, an image having an image feature similar to the extracted image feature is searched from the image information in the database 105. Note that the image feature extraction process and the image search process in steps S2003 and S2004 are the same as those in steps S1404 and S1405 described above, and thus detailed description thereof is omitted here.

そしてステップS2005において、ステップ2004の画像検索で候補が検出されたか否かに応じて処理を分岐する。すなわち、候補があればステップS2006へ進み、候補がなければステップS2001へ戻って次ブロックの処理を行う。このように、ステップS2001で取り出した、文字領域を含む全てのブロックに対して画像検索を行うことによって、以下のような効果が得られる。すなわち、例えば図10Cのような実質的には文字領域であるブロックについても、これをステップS507で画像モードで登録しておくことにより、該ブロックを実行可否判定に用いることができる。   In step S2005, the process branches depending on whether a candidate is detected in the image search in step 2004. That is, if there is a candidate, the process proceeds to step S2006, and if there is no candidate, the process returns to step S2001 to process the next block. As described above, the following effects can be obtained by performing the image search on all the blocks including the character area extracted in step S2001. That is, for example, a block that is substantially a character area as shown in FIG. 10C can be used to determine whether or not the block can be executed by registering it in the image mode in step S507.

ステップS2006では、ステップS2004で検出された候補を順次取り出し、ステップS2007で該取り出し結果に応じて処理を分岐する。すなわち、候補を取り出すことができればステップS2008へ進むが、全候補の取り出し終えていればステップS2001へ戻って次ブロックの処理を行う。   In step S2006, the candidates detected in step S2004 are sequentially extracted, and the process branches in accordance with the extraction result in step S2007. That is, if candidates can be extracted, the process proceeds to step S2008, but if extraction of all candidates has been completed, the process returns to step S2001 to process the next block.

ステップ2008では、ステップS2001で取り出したブロックの画像と、ステップS2006で取り出した候補画像とをそれぞれラスタ画像として比較することによって、これらが同じ画像であるか否かを判定する。このラスタ比較処理は上述したステップS1506と同様であるため、ここでは詳細な説明は省略する。   In step 2008, the image of the block extracted in step S2001 and the candidate image extracted in step S2006 are respectively compared as raster images to determine whether or not they are the same image. Since this raster comparison process is the same as step S1506 described above, detailed description thereof is omitted here.

ステップS2009では、ステップS2008におけるラスタ比較の判定結果に応じて処理を分岐する。すなわち、これらが同じ画像であると判定された場合はステップS2010へ進み、そうでなければステップS2006へ戻って次候補画像との比較を行う。   In step S2009, the process branches according to the determination result of the raster comparison in step S2008. That is, if it is determined that these are the same image, the process proceeds to step S2010, and if not, the process returns to step S2006 to compare with the next candidate image.

このように、スキャン画像とオリジナル画像とでその等価性を判定する際に、まず画像特徴での比較(S2004)を行った後にラスタ画像を比較(S2008)することによって、高速かつ高精度な判定を行うことができる。   As described above, when determining the equivalence between the scanned image and the original image, the comparison is first performed based on the image characteristics (S2004), and then the raster image is compared (S2008). It can be performed.

ステップS2010では、ステップS2008で同じであると判定された候補画像について、その情報をオリジナル画像情報としてRAM32に格納する。ここで図21に、オリジナル画像情報の構成例を示す。図21に示されるように、オリジナル画像情報は、ステップS2008で同じと判定された個々のラスタ画像に対して、「ブロックID」、「画像ID」、および「確信度」を有する。具体的に、「ブロックID」はステップS2001で取り出した画像のブロックIDであり、「画像ID」はステップS2006で取り出した候補画像の画像情報における「画像ID」である。また「確信度」は、ステップS2008で同一性を判定した際に算出される。ここで確信度としては、例えば、ステップS1506におけるラスタ比較処理でも用いた、差分の画素値が0近傍の画素の占める面積の割合を用いる。なお、図21においてブロックID=3の例として示されるように、ステップS2001で取り出した1ブロックに対して、複数のオリジナル画像が候補として検出され、オリジナル画像情報に格納される場合もある。   In step S2010, the candidate image determined to be the same in step S2008 is stored in the RAM 32 as original image information. FIG. 21 shows a configuration example of the original image information. As shown in FIG. 21, the original image information has “block ID”, “image ID”, and “confidence” for each raster image determined to be the same in step S2008. Specifically, “block ID” is the block ID of the image extracted in step S2001, and “image ID” is the “image ID” in the image information of the candidate image extracted in step S2006. The “certainty” is calculated when the identity is determined in step S2008. Here, as the certainty factor, for example, the ratio of the area occupied by the pixels whose difference pixel value is near 0, which is also used in the raster comparison processing in step S1506, is used. Note that, as shown in FIG. 21 as an example of block ID = 3, a plurality of original images may be detected as candidates for one block extracted in step S2001 and stored in the original image information.

オリジナル画像記録処理が終了すると、処理はステップS2006に戻って次候補の処理を行う。   When the original image recording process is completed, the process returns to step S2006 to perform the next candidate process.

ステップS2002において全てのブロックについての処理が終了すると、ステップ2011において、少なくとも1つのオリジナル画像情報が格納されているか否かを判定する。オリジナル画像情報が格納されていなければステップS2017へ進んで当該コピー処理が実行可能であると判定するが、格納されていればステップS2012へ進む。   When the processing for all the blocks is completed in step S2002, it is determined in step 2011 whether or not at least one original image information is stored. If the original image information is not stored, the process proceeds to step S2017 and it is determined that the copy process can be executed. If the original image information is stored, the process proceeds to step S2012.

ステップS2012では、ステップS2010でオリジナル画像情報に格納された全てのオリジナル画像について、データベース105内の画像情報中の処理フラグを集計する。すなわち、オリジナル画像情報に格納されている全ての画像IDによってデータベース105の画像情報を検索し、対応する処理フラグ(図9に例示)を全て抽出する。そして、該抽出された処理フラグのうち、印刷可否、送信可否、保存可否のそれぞれについて論理積をとり、履歴保存、履歴通知について論理和をとる。   In step S2012, the processing flags in the image information in the database 105 are totalized for all the original images stored in the original image information in step S2010. That is, the image information in the database 105 is searched with all the image IDs stored in the original image information, and all corresponding processing flags (illustrated in FIG. 9) are extracted. Then, among the extracted processing flags, a logical product is obtained for each of printability / non-transmission / transmission / saveability, and a logical sum is obtained for history storage and history notification.

続いてステップS2013では、ステップS2012で集計した処理フラグに基づき、履歴処理を実行するか否かを判定する。すなわち、履歴保存、履歴通知のいずれかのフラグが「1」であれば、履歴処理を実行するものとしてステップS2014へ進み、そうでなければステップS2015へ進む。   Subsequently, in step S2013, it is determined whether or not history processing is to be executed based on the processing flags tabulated in step S2012. That is, if either the history storage flag or the history notification flag is “1”, the history processing is executed and the process proceeds to step S2014. Otherwise, the process proceeds to step S2015.

ステップS2014では、履歴処理を実行する。すなわち、集計結果としての履歴通知フラグが「1」であれば、オリジナル画像情報に格納されている全ての画像IDによって、データベース105の画像情報を検索する。そして、履歴通知フラグの値が「1」である画像について、対応する管理者のメールアドレスを取得し、該メールアドレス宛に、電子メールを送付する。この場合のメールの内容としては少なくとも、その時点の時刻と、ステップS501でログインしたユーザのユーザ名、およびステップS2006で読み込んだ候補画像データが含まれる。また同様にして、所定のディレクトリ(例えば、画像IDをディレクトリ名とするディレクトリ)に、ステップS1901で読み込んだブロックの画像データと、該読み込み時刻と、ステップS501でログインしたユーザのユーザ名、等の履歴情報を格納する。   In step S2014, history processing is executed. That is, if the history notification flag as the total result is “1”, the image information in the database 105 is searched using all the image IDs stored in the original image information. For the image whose history notification flag value is “1”, the mail address of the corresponding administrator is acquired, and an e-mail is sent to the mail address. The contents of the mail in this case include at least the time at that time, the user name of the user who logged in in step S501, and the candidate image data read in step S2006. Similarly, in a predetermined directory (for example, a directory having an image ID as a directory name), the image data of the block read in step S1901, the read time, the user name of the user who has logged in in step S501, and the like. Stores history information.

ステップS2015では、ステップS2012で集計した処理フラグを用いて、現在の処理(コピー/送信/保存)が実行可能であるか否かを判定する。この判定は、実行中の処理がコピーであれば印刷可否フラグを、送信であれば送信フラグを、保存であれば保存フラグを、それぞれ用いて行われる。すなわち、集計したフラグの値が「0」であれば実行不可であると判定し、ステップS2016へ進んだ後、実行可否判定の処理を終了する。一方、集計したフラグの値が「1」であれば、オリジナル画像情報に格納されている全ての画像IDによってデータベース105の画像情報を検索して、対応する処理フラグ(印刷可否/送信可否/保存可否)の値が「1」である画像を抽出する。そして、該抽出された画像に対して、対応する実行権限レベルの値を求め、これをステップS501でログインしたユーザの実行権限レベルと比較する。該比較の結果、フラグの値が「1」である画像に対する実行権限レベルの要件を満たしていれば、ステップS2017へ進んで実行可と判定して、処理を終了する。なお、実行権限レベルの要件は、ユーザの実行権限レベルの値が、登録されている実行権限レベルよりも等しいまたは大きい場合に満たされる。一方、実行権限レベルが満たされない場合、ステップS2016へ進んで実行不可と判定すして、処理を終了する。   In step S2015, it is determined whether or not the current process (copy / send / save) can be executed using the process flags tabulated in step S2012. This determination is performed using a print permission flag if the process being executed is a copy, a transmission flag if it is a transmission, and a save flag if it is a save. That is, if the value of the totaled flag is “0”, it is determined that the execution is impossible, and the process proceeds to step S2016, and then the execution determination process is terminated. On the other hand, if the total flag value is “1”, the image information in the database 105 is searched using all the image IDs stored in the original image information, and the corresponding processing flag (printability / transmission / nontransmission / storage) is searched. An image having a value “1” is extracted. Then, a corresponding execution authority level value is obtained for the extracted image, and this value is compared with the execution authority level of the logged-in user in step S501. As a result of the comparison, if the execution authority level requirement for the image having the flag value “1” is satisfied, the process proceeds to step S2017 to determine that execution is possible, and the process ends. The requirement for the execution authority level is satisfied when the value of the execution authority level of the user is equal to or greater than the registered execution authority level. On the other hand, if the execution authority level is not satisfied, the process proceeds to step S2016, where it is determined that the execution is impossible, and the process ends.

・原本検索処理
次に図22を用いて、上述したステップ1905における原本検索処理について、詳細に説明する。本実施形態の原本検索処理においては、処理対象のスキャン文書についてそのブロック単位に、まず画像属性ブロックと原本画像との類似性を判定し、次いでテキスト属性ブロックの類似性を判定することによって、文書全体としての類似性を判定する。
Original Search Process Next, the original search process in step 1905 described above will be described in detail with reference to FIG. In the original document search processing of the present embodiment, the similarity between the image attribute block and the original image is first determined for each block of the scanned document to be processed, and then the similarity between the text attribute blocks is determined, thereby determining the document. Determine similarity as a whole.

まずステップS2201において、ステップS1902で作成したスキャン文書ブロック情報中の属性が「画像」である全ブロックに対して、そのオリジナルとなる画像がデータベース105に画像情報として登録されているか否かを判定する。すなわち、スキャン文書ブロック中の属性が「画像」である画像IDの全てが、上述したステップS2010(S1903)で作成したオリジナル画像情報に格納されていれば、オリジナル画像が登録されていると判定する。オリジナル画像が登録されていれば、ステップS2202へ進むが、登録されていなければステップS2209へ進んで、原本がないものとして原本検索処理を終了する。   First, in step S2201, it is determined whether or not the original image is registered as image information in the database 105 for all blocks whose attribute is “image” in the scanned document block information created in step S1902. . That is, if all of the image IDs whose attributes in the scanned document block are “image” are stored in the original image information created in step S2010 (S1903), it is determined that the original image is registered. . If the original image is registered, the process proceeds to step S2202, but if not registered, the process proceeds to step S2209, and the original search process is terminated assuming that there is no original.

ステップS2202では、データーベース105の登録文書ブロック情報を検索して、ステップS2201でオリジナルとされた画像IDの全てを含む文書IDを検出する。そしてステップS2203で該検出結果に基づき、原本の画像IDの全てを含む文書IDが存在すればステップS2204へ進むが、そうでなければステップS2209へ進んで、原本がないものとして原本検索処理を終了する。   In step S2202, the registered document block information in the database 105 is searched, and a document ID including all the image IDs that were original in step S2201 is detected. In step S2203, if there is a document ID that includes all of the original image IDs based on the detection result, the process proceeds to step S2204. If not, the process proceeds to step S2209, and the original search process is terminated assuming that there is no original. To do.

ステップS2204では、ステップS1902でBS化したブロックのレイアウトと、ステップS2202で検出された文書IDに対するブロックのレイアウトを比較し、これらが一致するか否かを判定する。すなわち、スキャン文書ブロック情報に格納されたブロックの位置とサイズ、および属性の各値が、ステップS2202で検出された文書IDに対する登録文書ブロック情報の値と一致していれば、レイアウトが一致するものとみなしてステップS2205へ進む。レイアウトが一致していなければステップS2209へ進み、原本がないものとして原本検索処理を終了する。   In step S2204, the block layout converted to BS in step S1902 is compared with the block layout corresponding to the document ID detected in step S2202, and it is determined whether or not they match. That is, if the position, size, and attribute values of the blocks stored in the scanned document block information match the registered document block information values for the document ID detected in step S2202, the layouts match. And the process proceeds to step S2205. If the layouts do not match, the process advances to step S2209, and the original search process is terminated assuming that there is no original.

ステップS2205では、ステップS1902でBS化したテキストブロックと、ステップS2202で検出された文書のテキストブロックとの間において、テキストの類似性を判定する。一般に、テキストブロックを検出する際に実行されるOCR等の文字認識処理においては、誤認識が発生する可能性があるため、たとえ同一文書であっても、そのテキスト認識結果は常に一致するとは限らない。したがって本実施形態では、例えば以下のような方法により、テキストの類似性を判定する。すなわち、ステップS1902でBS化した全てのテキストブロックについて、そのテキスト情報に格納されている文字数のうちの所定の割合以上が、ステップS2202で検出された文書のテキストブロックに対するテキスト情報に存在しているかを判定する。存在していれば、これらのテキストは類似しているものと判定して、ステップS2206へ進むが、そうでなければステップS2209へ進んで、原本がないものとして原本検索処理を終了する。   In step S2205, text similarity is determined between the text block converted to BS in step S1902 and the text block of the document detected in step S2202. In general, in character recognition processing such as OCR executed when detecting a text block, there is a possibility that misrecognition may occur. Therefore, even in the same document, the text recognition result does not always match. Absent. Therefore, in this embodiment, the similarity of text is determined by the following method, for example. That is, for all text blocks converted to BS in step S1902, whether or not a predetermined percentage or more of the number of characters stored in the text information exists in the text information for the text block of the document detected in step S2202. Determine. If it exists, it is determined that these texts are similar, and the process proceeds to step S2206. If not, the process proceeds to step S2209, and the original search process is terminated assuming that there is no original.

ステップS2206では、ステップS1901で読み込んだラスタ画像と、ステップS2202で検出された文書のラスタ画像を比較する。ここで、ステップS2202で検出された文書のラスタ画像は、そのオリジナル文書に対して、ステップS1701、S1702と同様にPDL化、ラスタライズを施すことによって得られる。なお、該オリジナル文書は、上述したように、文書IDのファイル名で所定のディレクトリに格納されている。また、ラスタ画像の詳細比較は、ステップS1506と同様の手法で行う。すなわち、差分の画素値が0近傍の画素の占める面積の割合が所定の割合以上である場合に、ステップS2207で両画像が一致するとみなしてステップS2208に進み、原本が存在するものとして原本検索処理を終了する。そうでなければ、ステップS2207で両画像は一致しないとみなしてステップS2209へ進み、原本がないものとして原本検索処理を終了する。   In step S2206, the raster image read in step S1901 is compared with the raster image of the document detected in step S2202. Here, the raster image of the document detected in step S2202 is obtained by performing PDL conversion and rasterization on the original document in the same manner as in steps S1701 and S1702. The original document is stored in a predetermined directory with the file name of the document ID as described above. Further, detailed comparison of raster images is performed by the same method as in step S1506. In other words, if the ratio of the area occupied by pixels near the difference pixel value of 0 is greater than or equal to a predetermined ratio, it is determined in step S2207 that both images match, and the process proceeds to step S2208, where the original search process assumes that the original exists. Exit. Otherwise, it is determined in step S2207 that the two images do not match, and the process advances to step S2209 to end the original search process assuming that there is no original.

このように、本実施形態の原本検索処理においては、原本となるオリジナル文書中の画像領域の画像と特定画像の情報とが共通の記憶装置(データベース105)に登録されているため、スキャン画像に対して原本を検索する際に、この記憶装置が検索される。このとき、該スキャン文書に対応するオリジナル画像も全て検出されるため、原本が存在しない場合であっても、再度オリジナル画像の検索を行う必要はなく、該検索に係る負荷が軽減される。   As described above, in the original search process of the present embodiment, the image of the image area in the original document serving as the original and the information of the specific image are registered in the common storage device (database 105). On the other hand, when searching for the original, this storage device is searched. At this time, since all the original images corresponding to the scanned document are also detected, it is not necessary to search for the original image again even when the original does not exist, and the load related to the search is reduced.

・部分置換処理
次に図23を用いて、上述したステップ1907における部分置換処理について、詳細に説明する。
Partial Replacement Processing Next, the partial replacement processing in step 1907 described above will be described in detail with reference to FIG.

まずステップS2301において、上述したステップS2010(S1903)で作成したオリジナル画像情報の中から、オリジナル画像を順次取り出す。そしてステップS2302においてオリジナル画像の取り出し結果を判定し、オリジナル画像が取り出せればステップS2303へ進むが、全画像の取り出しを終えていれば部分置換処理を終了する。   First, in step S2301, original images are sequentially extracted from the original image information created in step S2010 (S1903) described above. In step S2302, the result of extracting the original image is determined. If the original image can be extracted, the process proceeds to step S2303. If all the images have been extracted, the partial replacement process ends.

ステップS2303では、ステップS2301で取り出したオリジナル画像によって、対応するブロックの画像を置換することが可能であるか否かを判定する。すなわち、ステップS2301で取り出したオリジナル画像の画像IDによって、データベース501内の画像情報を検索し、対応する処理フラグの値を調べる。処理フラグにおける「置換可否」の値が「1」であれば。置換可能であるとしてステップS2304へ進むが、「置換可否」の値が「0」であれば置換不可であるとしてステップS2301へ戻り、次のオリジナル画像の処理に移行する。   In step S2303, it is determined whether the image of the corresponding block can be replaced with the original image extracted in step S2301. That is, the image information in the database 501 is searched based on the image ID of the original image extracted in step S2301, and the value of the corresponding processing flag is checked. If the value of “replaceability” in the processing flag is “1”. The process proceeds to step S2304 because it can be replaced, but if the value of “replaceability” is “0”, the process returns to step S2301 because it cannot be replaced, and the process proceeds to the next original image processing.

ステップS2304では、ステップS2301で取り出したオリジナル画像がベクトル画像であるか否かを判定し、ベクトル画像であればステップS2305へ進み、そうでなければステップS2306へ進む。   In step S2304, it is determined whether or not the original image extracted in step S2301 is a vector image. If it is a vector image, the process proceeds to step S2305; otherwise, the process proceeds to step S2306.

ステップS2305では、ステップS2301で取り出したベクトル画像に対するラスタライズを行って、置き換え用のラスタ画像を生成する。詳細には、ステップS2301で取り出したオリジナル画像に対するブロックIDに基づき、スキャン文書ブロック情報に格納されている置換対象ブロックのサイズを求め、そのサイズに合わせたラスタライズを行う。   In step S2305, the vector image extracted in step S2301 is rasterized to generate a replacement raster image. Specifically, the size of the replacement target block stored in the scanned document block information is obtained based on the block ID for the original image extracted in step S2301, and rasterization is performed according to the size.

一方、ステップS2306では、ステップS2301で取り出したオリジナルのラスタ画像を、置換対象ブロックのサイズに合わせて縮小する。   On the other hand, in step S2306, the original raster image extracted in step S2301 is reduced in accordance with the size of the replacement target block.

ステップS2305またはS2306によって置き換え用のラスタ画像が生成されると、次にステップS2307において、部分画像の置換処理を行う。すなわち、ステップS1901で読み込んだスキャン画像内において、ステップS2301で取り出したオリジナル画像に対応するブロックの部分画像を、ステップS2305もしくはステップS2306で作成したラスタ画像で置き換える。そして、ステップS2301へ戻って次のオリジナル画像に対する処理を行う。   When a replacement raster image is generated in step S2305 or S2306, in step S2307, partial image replacement processing is performed. In other words, in the scanned image read in step S1901, the partial image of the block corresponding to the original image extracted in step S2301 is replaced with the raster image created in step S2305 or step S2306. Then, the process returns to step S2301 to process the next original image.

以上説明したように本実施形態におけるスキャン画像のコピー時には、オリジナルに置き換えた画像データを用いた印刷を行うことにより、オリジナルとして登録済みの特定画像部分については高画質を保ったコピーを行うことができる。   As described above, at the time of copying the scanned image in the present embodiment, by performing printing using the image data replaced with the original, it is possible to perform a copy with high image quality for the specific image portion registered as the original. it can.

●送信処理(詳細)
以下、上述したステップS512における送信処理について、図24のフローチャートを用いてその詳細を説明する。
● Transmission processing (details)
Hereinafter, the details of the transmission processing in step S512 described above will be described with reference to the flowchart of FIG.

まずステップS2401において、送信先のe−mailアドレスを入力する。次にステップS2402において、MFP100の画像読み取り部110で原稿画像を読み取り、該読み取ったスキャン画像データをLAN109を介してRAM32にロードする。この画像読込み処理は、上述したステップS1901と同様であるため、ここでは詳細な説明を省略する。   First, in step S2401, the destination e-mail address is input. In step S 2402, the document image is read by the image reading unit 110 of the MFP 100, and the scanned image data thus read is loaded into the RAM 32 via the LAN 109. Since this image reading process is the same as step S1901 described above, detailed description thereof is omitted here.

続いてステップS2403において、RAM32上にロードされたスキャン画像データに対して、矩形領域単位に領域を分離し、各領域(ブロック)毎に属性を判定し、その結果を図13に示すスキャン文書ブロック情報としてRAM32に格納する。なお、属性としては文字/図画/写真/線/表等が判定される。このBS処理については上述したステップS1902と同様であるため、ここでは詳細な説明を省略する。   In step S2403, the scanned image data loaded on the RAM 32 is divided into rectangular areas, attributes are determined for each area (block), and the result is shown in FIG. The information is stored in the RAM 32 as information. Note that characters / drawings / photos / lines / tables and the like are determined as attributes. Since this BS processing is the same as step S1902 described above, detailed description thereof is omitted here.

続いてステップS2404において、送信が実行可能であるか否かを判定し、該判定結果に応じてステップS2405で処理を分岐する。すなわち、送信が可能と判定された場合はステップS2406へ進み、送信不可と判定された場合は送信処理を終了する。このステップS2404における送信処理の実行可否判定処理については、上述したステップS1903の説明の際に、既に図20を用いて詳述したため、ここでは説明を省略する。 ステップS2406では、ステップS2402で読み込んだスキャン画像の原本であるアプリケーション文書が、データベース105および文書管理サーバ106に登録されているか否かを、これを検索することによって判定する。そして該判定結果に応じて、ステップS2407で処理を分岐する。すなわち、原本が存在しなければステップS2408に進み、原本が存在すればステップS2409へ進む。なお、ステップS2406における原本検索処理は上述したコピー処理におけるステップS1905と同様であるため、ここでは説明を省略する。   Subsequently, in step S2404, it is determined whether or not transmission is possible, and the process branches in step S2405 according to the determination result. That is, if it is determined that transmission is possible, the process proceeds to step S2406. If it is determined that transmission is not possible, the transmission process ends. Since the execution determination process of the transmission process in step S2404 has already been described in detail with reference to FIG. 20 when the above-described step S1903 is described, the description thereof is omitted here. In step S2406, it is determined by searching whether or not the application document that is the original scanned image read in step S2402 is registered in the database 105 and the document management server 106. Then, according to the determination result, the process branches in step S2407. That is, if the original does not exist, the process proceeds to step S2408, and if the original exists, the process proceeds to step S2409. Note that the original document search process in step S2406 is the same as step S1905 in the copy process described above, and thus the description thereof is omitted here.

ステップS2408では、ステップS2406で検出された原本としてのアプリケーション文書を、ステップS2401で設定した送信先宛てに電子メールとして送信する。   In step S2408, the original application document detected in step S2406 is transmitted as an e-mail to the transmission destination set in step S2401.

一方、ステップS2409では、ステップS2402で読み込んだスキャン画像データに対してベクトル化を行う。このとき、スキャン画像内の画像ブロックを必要に応じてオリジナル画像に置き換える。このベクトル化処理の詳細については、図25を用いて詳述する。   On the other hand, in step S2409, the scan image data read in step S2402 is vectorized. At this time, the image block in the scanned image is replaced with the original image as necessary. Details of this vectorization processing will be described in detail with reference to FIG.

そしてステップS2410において、ステップS2409でベクトル化した画像データを、ステップS2401で設定した送信先宛てに電子メールとして送信する。   In step S2410, the image data vectorized in step S2409 is transmitted as an e-mail to the transmission destination set in step S2401.

以上のように、ステップS2408で原本画像を送信する、またはステップS2409でベクトル化したスキャン画像を送信することによって、送信処理を終了する。   As described above, the transmission process is completed by transmitting the original image in step S2408 or transmitting the scan image vectorized in step S2409.

・ベクトル化処理
次に図25を用いて、上述したステップ2409におけるベクトル化処理について、詳細に説明する。
-Vectorization process Next, the vectorization process in step 2409 mentioned above is demonstrated in detail using FIG.

まずステップS2501において、ステップ2402で読み込んだスキャン画像データの全体に対してベクトル化を行う。なお、ここでのベクトル化手法としては、ラスタ画像に対してBS化を行い、各ブロックの文字や線画などをベクトル化する方法があるが、このようなベクトル化方法は例えば特開2004−265384に開示されているため、詳細な説明は省略する。ベクトル化の結果として得られる画像データは、例えばSVGのような、ベクトル画像を格納可能な標準的なフォーマットに変換し、ハードディスク33上の所定のディレクトリに一時的に格納しておく。   First, in step S2501, vectorization is performed on the entire scanned image data read in step 2402. Here, as a vectorization method, there is a method in which a raster image is converted into a BS and a character or a line drawing of each block is vectorized. Such a vectorization method is disclosed in, for example, Japanese Patent Application Laid-Open No. 2004-265384. Therefore, detailed description thereof is omitted. Image data obtained as a result of vectorization is converted into a standard format capable of storing vector images, such as SVG, and temporarily stored in a predetermined directory on the hard disk 33.

続いてステップS2502において、ステップS2404の実行可否判定処理において作成されたオリジナル画像情報から、スキャン画像に含まれるオリジナル画像部分のブロックIDとそれに対応した画像IDを順次取り出す。そしてステップS2503において該取り出し結果を判定し、ブロックIDが取り出せればステップS2504へ進むが、全ブロックの取り出しを終えていればベクトル化処理を終了する。ここで図21に例示されているように、オリジナル画像情報には、ひとつのブロックに対して複数のオリジナル画像が格納されている場合がある。すなわち、ひとつのブロックに対するリジナル画像の候補が複数存在し、同じブロックIDが複数回登録されている場合がある。このような場合には、同じブロックIDに対応したオリジナル画像候補となる画像IDの全てを、一度の読み取りで取り出す。   In step S2502, the block ID of the original image portion included in the scan image and the corresponding image ID are sequentially extracted from the original image information created in the execution determination process in step S2404. In step S2503, the extraction result is determined. If the block ID can be extracted, the process proceeds to step S2504. If extraction of all the blocks has been completed, the vectorization process ends. Here, as illustrated in FIG. 21, the original image information may store a plurality of original images for one block. That is, there may be a plurality of candidates for the original image for one block, and the same block ID may be registered a plurality of times. In such a case, all the image IDs that are original image candidates corresponding to the same block ID are extracted by one reading.

ステップS2504では、ステップS2502で取り出した画像IDに基づくオリジナル画像がベクトル画像であるか否かを判定し、ベクトル画像であればステップS2505へ進み、ベクトル画像でなければステップS2507へ進む。この判定は、オリジナル画像の画像IDに基づいてデータベース105内の画像情報を検索し、対応する「種類」の情報を参照することによって行われる。なお、ステップS2502でひとつのブロックIDに対して複数の画像IDが取り出された場合には、その少なくとも1つがベクトル画像であれば、ステップS2505へ進む。   In step S2504, it is determined whether or not the original image based on the image ID extracted in step S2502 is a vector image. If it is a vector image, the process proceeds to step S2505. If not, the process proceeds to step S2507. This determination is performed by searching the image information in the database 105 based on the image ID of the original image and referring to the corresponding “type” information. If a plurality of image IDs are extracted for one block ID in step S2502, if at least one of them is a vector image, the process proceeds to step S2505.

ステップS2505では、ステップS2502で取り出した画像IDに基づくオリジナル画像が、ベクトル化可能であるか否かを判定する。この判定は、ステップS2502で取り出したオリジナル画像の画像IDによってデータベース105内の画像情報を検索し、対応する処理フラグにおける「ベクトル化可否」の値を参照することによって行われる。すなわち、ベクトル化可否の値が「1」であれば、ベクトル化が可能なものとしてステップS2508へ進み、「0」であればベクトル化が不可であるとしてステップS2506へ進む。なお、ステップS2502でひとつのブロックIDに対して複数の画像IDが取り出された場合には、その少なくともひとつの画像に対するベクトル化可否の値が「0」であれば、ベクトル化不可であるとしてステップS2506へ進む。   In step S2505, it is determined whether or not the original image based on the image ID extracted in step S2502 can be vectorized. This determination is performed by searching the image information in the database 105 based on the image ID of the original image extracted in step S2502, and referring to the value of “vectorization possibility” in the corresponding processing flag. In other words, if the value of whether or not vectorization is possible is “1”, it is determined that vectorization is possible, and the process proceeds to step S2508. If it is “0”, vectorization is impossible and the process proceeds to step S2506. If a plurality of image IDs are extracted for one block ID in step S2502, if the value of whether or not vectorization is possible for that at least one image is “0”, it is determined that vectorization is impossible. The process proceeds to S2506.

ステップS2506では、ステップS2502で取り出した画像IDに基づくオリジナルのベクトル画像をラスタライズし、これをラスタ画像ファイルとして文書管理サーバ106の所定のディレクトリに格納する。このとき、画像IDをファイル名として、拡張子をJPGやBMP等のラスタ画像を格納する際のファイルフォーマットに合わせて格納する。   In step S2506, the original vector image based on the image ID extracted in step S2502 is rasterized and stored as a raster image file in a predetermined directory of the document management server 106. At this time, the image ID is used as a file name, and the extension is stored in accordance with the file format used when storing raster images such as JPG and BMP.

続いてステップS2507では、ステップS2502で取り出した画像IDに基づくオリジナル画像への置き換えが可能であるか否かを判定する。この判定は、ステップS2502で取り出したオリジナル画像の画像IDによってデータベース105内の画像情報を検索し、対応する処理フラグの「置換可否」の値を参照することによって行われる。すなわち、置換可否の値が「1」であれば、置換えが可能なものとしてステップS2508へ進むが、「0」であれば置換え不可としてステップS2502へ戻り、次ブロックの処理に移行する。なお、ステップS2502でひとつのブロックIDに対して複数の画像IDが取り出された場合には、少なくともひとつの画像に対する置換可否の値が「0」であれば、置換え不可としてステップS2502へ戻る。   In step S2507, it is determined whether or not replacement with the original image based on the image ID extracted in step S2502 is possible. This determination is performed by searching the image information in the database 105 based on the image ID of the original image extracted in step S2502 and referring to the value of “replaceability” of the corresponding processing flag. That is, if the replaceability value is “1”, it is determined that replacement is possible, and the process proceeds to step S2508. If it is “0”, the process returns to step S2502 because replacement is not possible, and the process proceeds to the next block. When a plurality of image IDs are extracted for one block ID in step S2502, if the value of whether or not replacement is possible for at least one image is “0”, it is determined that replacement is not possible and the process returns to step S2502.

ステップS2508では、ステップS2501でベクトル化した1頁分のスキャン画像データにおいて、ステップS2502で取得したブロックIDに対応する画像データを置き換える。すなわち、ステップS2502で取得したブロックIDに対応するスキャン画像の部分画像データが、ステップ2502で取り出した画像IDに基づくオリジナル画像、もしくはステップS2506でラスタライズしたオリジナル画像によって置き換えられる。なお、このブロック画像置換処理においては、ステップS2502で取り出した画像IDに対応するオリジナル画像の確信度に応じて置換方法を切り替えるが、この処理の詳細については図26を用いて後述する。   In step S2508, the image data corresponding to the block ID acquired in step S2502 is replaced with the scanned image data for one page vectorized in step S2501. That is, the partial image data of the scanned image corresponding to the block ID acquired in step S2502 is replaced with the original image based on the image ID extracted in step 2502 or the original image rasterized in step S2506. In this block image replacement process, the replacement method is switched according to the certainty factor of the original image corresponding to the image ID extracted in step S2502, and details of this process will be described later with reference to FIG.

以上のように、送信処理時にベクトル化の可否を制御することによって、以下のような効果が得られる。   As described above, the following effects can be obtained by controlling whether or not vectorization is possible during transmission processing.

例えば、図10Aに示されるようなロゴマーク等の特定画像を送信する際に、著作権等の問題により該特定画像がベクトル化して再利用されることを回避したい場合が考えられる。このような場合、ステップS507で該特定画像を登録する際に、ベクトル化および置換を不可として登録しておけば良い。このように事前登録を行うことにより、ステップS2409でベクトル化処理を実行しても、実際にはベクトル化されることはなく、また、オリジナルのベクトル画像データをラスタライズした高画質な画像に置き換えられることもない。すなわち、ステップ2402で読み込んだスキャン画像がそのまま送信されるため、著作権等に関する問題を回避できる。   For example, when transmitting a specific image such as a logo mark as shown in FIG. 10A, there may be a case where it is desired to avoid the specific image being vectorized and reused due to problems such as copyright. In such a case, when the specific image is registered in step S507, vectorization and replacement may be registered as impossible. By performing pre-registration in this way, even if the vectorization process is executed in step S2409, it is not actually vectorized, and the original vector image data can be replaced with a rasterized high-quality image. There is nothing. That is, since the scanned image read in step 2402 is transmitted as it is, problems relating to copyright and the like can be avoided.

また同様に、特定画像をベクトル化することは回避したいものの、高画質な画像を送信したい場合には、ステップS507で該特定画像を登録する際に、ベクトル化を不可とし、置換を可として登録しておけばよい。このように事前登録を行うことにより、ステップS2409でベクトル化処理を実行しても、実際にはベクトル化されないものの、オリジナルの高画質画像への置き換えが行われる。   Similarly, if you want to avoid vectorizing a specific image, but want to send a high-quality image, when registering the specific image in step S507, vectorization is disabled and registration is allowed. You just have to. By performing pre-registration in this way, even if the vectorization process is executed in step S2409, it is not actually vectorized, but is replaced with the original high-quality image.

また、特定画像をベクトル化しても構わない場合には、ステップS507で該特定画像を登録する際に、ベクトル化を可として登録しておけばよい。このように事前登録を行うことにより、ステップS2409のベクトル化処理における置き換え用の特定画像として、スキャン画像をベクトル化したものでなく、予め登録しておいたオリジナル画像のベクトルデータが用いられる。したがって、オリジナル画像に対して印刷、スキャン、ベクトル化の各処理が施されることに起因する画質の劣化を避けることができる。   If the specific image may be vectorized, vectorization may be registered when the specific image is registered in step S507. By performing the pre-registration in this way, the original image vector data registered in advance is used as the replacement specific image in the vectorization processing in step S2409, instead of the scan image vectorized. Therefore, it is possible to avoid deterioration in image quality due to the printing, scanning, and vectorization processes performed on the original image.

また、特定画像が自然画等のベクトル化が難しい画像である場合についても、該特定画像の使用頻度が高いものであれば、そのラスタ画像をステップS507で登録し、置換可を設定しておけばよい。このような事前登録を行うことにより、ステップS2409のベクトル化処理においては、該特定画像部分がオリジナルのラスタ画像に置き換えられる。したがって、オリジナル画像に対して印刷、スキャン、ベクトル化の各処理が施されることに起因する画質の劣化を避けることができる。   Also, even when the specific image is an image that is difficult to vectorize, such as a natural image, if the specific image is frequently used, the raster image is registered in step S507 and replacement is allowed. That's fine. By performing such pre-registration, the specific image portion is replaced with the original raster image in the vectorization process in step S2409. Therefore, it is possible to avoid deterioration in image quality due to the printing, scanning, and vectorization processes performed on the original image.

・ブロック画像置換処理
次に図26を用いて、上述したステップ2508におけるブロック画像置換処理について、詳細に説明する。
Block Image Replacement Processing Next, the block image replacement processing in step 2508 described above will be described in detail using FIG.

まずステップS2601において、ステップS2502で取り出したオリジナル画像の確信度に基づき、対応するスキャン画像内のブロック画像部分(以下、元画像と称する)が不要であるか否かを判定する。すなわち、ステップS2502でオリジナル画像情報から取り出した画像IDに対応する確信度が所定値(例えば99)以上であれば、元画像をオリジナル画像で置き換えてもなんら問題がないと判断し、元画像を不要とみなす。元画像が不要であると判定されるとステップS2603へ進み、そうでなければステップS2602へ進む。なお、ステップS2502でひとつのブロックIDに対して複数の画像IDが取り出された場合には、該複数の画像IDに対応する複数の確信度のうちの、最大の値によって上記判定を行う。   First, in step S2601, it is determined based on the certainty factor of the original image extracted in step S2502 whether a block image portion (hereinafter referred to as an original image) in the corresponding scanned image is unnecessary. That is, if the certainty factor corresponding to the image ID extracted from the original image information in step S2502 is a predetermined value (for example, 99) or more, it is determined that there is no problem even if the original image is replaced with the original image. Consider it unnecessary. If it is determined that the original image is unnecessary, the process proceeds to step S2603; otherwise, the process proceeds to step S2602. When a plurality of image IDs are extracted for one block ID in step S2502, the above determination is performed based on the maximum value among a plurality of certainty factors corresponding to the plurality of image IDs.

ステップS2602では、ステップS2502で取り出したオリジナル画像の確信度に基づき、該オリジナル画像による置き換えの必要性を判定する。すなわち、上述したステップS2601と同様にオリジナル画像の確信度の値が所定値(ステップS2601よりも小さい値、例えば95)以下であれば、該オリジナル画像による置き換えは不要と判定し、ステップS2606へ進む。一方、置き換えが必要であると判定された場合には、ステップS2604に進む。   In step S2602, the necessity of replacement with the original image is determined based on the certainty factor of the original image extracted in step S2502. That is, if the value of the certainty factor of the original image is equal to or less than a predetermined value (a value smaller than step S2601, for example, 95) as in step S2601, it is determined that the replacement with the original image is unnecessary, and the process proceeds to step S2606. . On the other hand, if it is determined that replacement is necessary, the process proceeds to step S2604.

すなわち、ステップS2601とS2602での判定によって、オリジナル画像の確信度が十分に高い場合(例えば99以上)と、十分ではないが高い場合(例えば95以上99未満)、および高くない場合(例えば95未満)とで、処理が分岐される。確信度が十分に高い場合はステップS2603へ、十分ではないが高い場合にはステップS2604へ、高くない場合にはステップS2606へ進む。   That is, according to the determinations in steps S2601 and S2602, the certainty of the original image is sufficiently high (for example, 99 or more), not sufficient but high (for example, 95 or more and less than 99), and not high (for example, less than 95). ) And the process branches. If the certainty factor is sufficiently high, the process advances to step S2603; if not, the process advances to step S2604; otherwise, the process advances to step S2606.

ステップS2603では、元画像が不要であると判定されているため、これを削除する。すなわち、ステップS2501でベクトル化してハードディスク33に格納したベクトル画像データから、ステップS2502で取り出したブロックIDに対応した部分データを削除する。削除対象となるデータは、スキャン文書ブロック情報にブロックIDに対応して格納されている位置とサイズに基づいて容易に特定できる。   In step S2603, since it is determined that the original image is unnecessary, this is deleted. That is, the partial data corresponding to the block ID extracted in step S2502 is deleted from the vector image data vectorized in step S2501 and stored in the hard disk 33. The data to be deleted can be easily specified based on the position and size stored in the scanned document block information corresponding to the block ID.

ステップS2604では、元画像をオリジナル画像で置き換える必要があると判定されているため、元画像が無効となるように隠蔽する。すなわち、ステップS2501でベクトル化してハードディスク33に格納したベクトル画像データのうち、ステップS2502で取り出したブロックIDに対応した部分データについて、これが有効データとして扱われないように隠蔽する。例えばベクトル画像データがSVG形式であれば、隠蔽対象のベクトルデータをコメントアウトすることによって無効化する。その際、コメントアウトされたベクトルデータがスキャン画像であった旨を示すために、所定のスキャン画像マークを付与する。以下に、ベクトルデータをコメントアウトした例を示す。この例では、「@スキャン画像」がスキャン画像マークである。   In step S2604, since it is determined that the original image needs to be replaced with the original image, the original image is concealed so as to be invalid. That is, of the vector image data vectorized in step S2501 and stored in the hard disk 33, the partial data corresponding to the block ID extracted in step S2502 is concealed so that it is not treated as valid data. For example, if the vector image data is in the SVG format, it is invalidated by commenting out the vector data to be concealed. At this time, in order to indicate that the commented-out vector data is a scanned image, a predetermined scanned image mark is assigned. An example of commenting out vector data is shown below. In this example, “@scanned image” is a scanned image mark.

<!−− @スキャン画像
<rect ..... />
@スキャン画像 −−>
以上説明したステップS2603における元画像の削除処理、またはステップS2604における元画像の隠蔽処理が終了すると、ステップS2605に進む。
<! -@ Scanned image <rect. . . . . >>
@Scanned image --->
When the original image deletion process in step S2603 described above or the original image concealment process in step S2604 ends, the process proceeds to step S2605.

ステップS2605では、ステップS2502で取り出したオリジナル画像、もしくはステップS2506でこれをラスタライズした画像を、置き換え後の画像として、ステップS2501でベクトル化された1ページ分のベクトル画像データに追加する。このときの追加方法としては、文書管理サーバ106に格納されたオリジナル画像のファイルを参照可能とするように、外部ファイルのエンティティを参照する形式をとる。例えばベクトル画像データがSVG形式であれば、image要素を使用すればよい。またその際、追加された画像がオリジナル画像である旨を示すために、所定のオリジナル画像マークを付与する。以下に、ベクトルデータに対して置き換え後の画像を外部エンティティとして追加した例を示す。この例では、「@オリジナル画像」がオリジナル画像マークとしてコメントされ、image要素によって外部エンティティが参照されていることが分かる。   In step S2605, the original image extracted in step S2502 or the image rasterized in step S2506 is added to the vector image data for one page vectorized in step S2501 as the replaced image. As an additional method at this time, a format in which the entity of the external file is referred to so that the original image file stored in the document management server 106 can be referred to is used. For example, if the vector image data is in SVG format, an image element may be used. At that time, a predetermined original image mark is given to indicate that the added image is an original image. An example in which the replaced image is added as an external entity to the vector data is shown below. In this example, “@original image” is commented as an original image mark, and it can be seen that the external entity is referenced by the image element.

<!−− @オリジナル画像 −−>
<image x=”20” .....
xlink:href=”...”/image>
<!−− @オリジナル画像 −−>
なお、ステップS2502でひとつのブロックIDに対して複数の画像IDが取り出された場合には、確信度の一番高い画像のみを有効データとして追加する。そしてその他の画像については置き換えの候補として、ステップS2604と同様に隠蔽した形式で、外部エンティティとして追加する。この場合も、追加された画像がオリジナル画像である旨を示すために、所定のオリジナル画像マークを付与する。以下に、置き換え候補画像を隠蔽して追加する例を示す。この例では「@オリジナル画像」がオリジナル画像マークである。
<! --- @Original image --->
<Image x = “20”. . . . .
xlink: href = "" ... "/ image>
<! --- @Original image --->
If a plurality of image IDs are extracted for one block ID in step S2502, only the image with the highest certainty factor is added as valid data. Other images are added as external entities in a concealed format as in step S2604 as replacement candidates. Also in this case, a predetermined original image mark is given to indicate that the added image is an original image. An example of hiding and adding replacement candidate images is shown below. In this example, “@original image” is the original image mark.

<!−− @オリジナル画像
<image x=”20” .....
xlink:href=”...”/image>
@オリジナル画像 −−>
一方、ステップS2606では、ステップS2502で取り出したオリジナル画像、もしくはステップS2506でこれをラスタライズした画像を、置き換えの候補として、ステップS2605における置換えの候補と同様に、隠蔽した形式で追加する。
<! --- @Original image <image x = “20”. . . . .
xlink: href = "" ... "/ image>
@Original image --->
On the other hand, in step S2606, the original image extracted in step S2502 or the image rasterized in step S2506 is added as a replacement candidate in a concealed format, similar to the replacement candidate in step S2605.

このように、スキャン画像中の特定画像をオリジナルに置き換え、さらにオリジナルの置き換え候補も追加する場合に、オリジナルの画像データそのものをスキャン画像データ内に埋め込むのではなく、外部ファイルへのポインタを埋め込む。これにより、置換後のスキャン画像データのサイズを小さくすることができる。   In this way, when a specific image in a scanned image is replaced with an original and an original replacement candidate is added, the original image data itself is not embedded in the scanned image data, but a pointer to an external file is embedded. Thereby, the size of the scanned image data after replacement can be reduced.

上述したテップS2605の置換画像追加処理、またはステップS2606の置換候補追加処理を終えると、ブロック画像置換処理を終了する。   When the replacement image addition process in step S2605 or the replacement candidate addition process in step S2606 is completed, the block image replacement process ends.

以上のようにブロック画像置換処理においては、オリジナル画像の確信度が十分に高ければ元画像を削除してオリジナルの置換画像を追加し、該確信度が十分ではないものの高いのであれば元画像を隠蔽した状態でオリジナルの置換画像を追加する。また、オリジナル画像の確信度が高いとはいえないのであれば、オリジナル画像を単なる置換候補として追加する。   As described above, in the block image replacement process, if the certainty factor of the original image is sufficiently high, the original image is deleted and the original replacement image is added, and if the certainty factor is not sufficient, the original image is replaced. Add the original replacement image while hiding it. If the certainty of the original image is not high, the original image is added as a simple replacement candidate.

以上のように本実施形態の送信処理においては、スキャン画像中で置き換えられなかった部分の画像データについてはベクトル化されるため、スキャン画像のサイズを小さくすると共に、このような未登録の画像部分についても編集が容易となる。   As described above, in the transmission processing according to the present embodiment, the image data of the portion that has not been replaced in the scan image is vectorized, so that the size of the scan image is reduced and such an unregistered image portion. Editing is also easy.

●保存処理(詳細)
以下、上述したステップS513における保存処理について、図27のフローチャートを用いてその詳細を説明する。
● Save processing (details)
The details of the storage process in step S513 described above will be described below with reference to the flowchart of FIG.

まずステップS2701において、MFP100の画像読み取り部110から画像を読み取り、該読み取ったスキャン画像データをLAN109を介してRAM32にロードする。この画像読込み処理は、上述したステップS1901と同様であるため、ここでは詳細な説明を省略する。   First, in step S2701, an image is read from the image reading unit 110 of the MFP 100, and the scanned image data thus read is loaded into the RAM 32 via the LAN 109. Since this image reading process is the same as step S1901 described above, detailed description thereof is omitted here.

続いてステップS2702において、RAM32上にロードされたスキャン画像データに対して、矩形領域単位に領域を分離し、各領域(ブロック)毎に属性を判定し、その結果を図13に示すスキャン文書ブロック情報としてRAM32に格納する。なお、属性としては文字/図画/写真/線/表等が判定される。このBS処理については上述したステップS1902と同様であるため、ここでは詳細な説明を省略する。   Subsequently, in step S2702, the scanned image data loaded on the RAM 32 is divided into rectangular areas, attributes are determined for each area (block), and the result is shown in the scanned document block shown in FIG. The information is stored in the RAM 32 as information. Note that characters / drawings / photos / lines / tables and the like are determined as attributes. Since this BS processing is the same as step S1902 described above, detailed description thereof is omitted here.

続いてステップS2703において、該スキャンデータの保存が実行可能であるか否かを判定し、該判定結果に応じてステップS2704で処理を分岐する。すなわち、保存が可能と判定された場合はステップS2705へ進み、不可と判定された場合は保存処理を終了する。なお、ステップS2703における保存処理の実行可否判定処理については、上述したステップS1903の説明の際に図20を用いて詳述したが、基本的には以下のとおりである。すなわち、まずステップS2702で領域分割された各ブロックの画像を、登録済み画像から検索する。そして、スキャン画像内に登録画像と一致するブロックがあれば、その画像に対応するデータベース105内の画像情報において、その処理フラグの「保存可否」の値と、実行権限レベルに基づき、該画像が保存可能であるか否かを判定する。例えば、図10Cに示すような広く頒布される画像をステップS507で登録する際に、その画像情報中の保存可否のフラグを「可」に、実行権限レベルの値を「0」に設定しておくと、全てのユーザに対して保存可と判定される。   Subsequently, in step S2703, it is determined whether or not the scan data can be stored, and the process branches in step S2704 according to the determination result. That is, if it is determined that storage is possible, the process proceeds to step S2705. If it is determined that storage is not possible, the storage process is terminated. The storage process execution determination process in step S2703 has been described in detail with reference to FIG. 20 in the description of step S1903 described above, but is basically as follows. That is, first, an image of each block divided in step S2702 is searched from registered images. If there is a block that matches the registered image in the scanned image, the image information in the database 105 corresponding to the image is displayed on the basis of the value of the processing flag “saveability” and the execution authority level. It is determined whether it can be saved. For example, when an image to be widely distributed as shown in FIG. 10C is registered in step S507, a flag indicating whether or not storage is possible is set to “permitted” and an execution authority level value is set to “0”. In other words, it is determined that storage is possible for all users.

ステップS2705では、保存時の格納先が設定されているか否かを判定する。すなわち、ステップS2703で作成されたオリジナル画像情報に格納された画像IDでデータベース105の画像情報を検索し、画像IDに対応した「保存先」に情報が格納されているかを調べる。この保存先情報が格納されていなければステップS2706へ進み、格納されていればステップS2707へ進む。なお、オリジナル画像情報としてひとつのブロックIDに複数の画像IDが登録されている場合には、少なくとも1つの画像の「保存先」に情報が格納されていれば、格納先ありとしてステップS2707へ進む。   In step S2705, it is determined whether a storage destination at the time of saving is set. That is, the image information in the database 105 is searched with the image ID stored in the original image information created in step S2703, and it is checked whether the information is stored in the “save destination” corresponding to the image ID. If this storage destination information is not stored, the process proceeds to step S2706, and if it is stored, the process proceeds to step S2707. When a plurality of image IDs are registered in one block ID as original image information, if information is stored in the “save destination” of at least one image, the process proceeds to step S2707 because there is a storage destination. .

ステップS2706では、格納先が未設定であるため、表示装置35に格納先の設定画面を表示し、タッチパネル36によってユーザが入力した保存先の情報を取り込む。   In step S2706, since the storage destination is not set, the storage destination setting screen is displayed on the display device 35, and the storage destination information input by the user is captured by the touch panel 36.

そしてステップS2707では、ステップS2701で読み込んだスキャン画像データを、ステップS2705で登録が確認された保存先、あるいはステップS2706でユーザにより設定された保存先に、格納する。なお、保存先として複数を設定することが可能であり、この場合にはそれぞれの保存先にスキャン画像データを格納する。   In step S2707, the scanned image data read in step S2701 is stored in the storage destination whose registration is confirmed in step S2705 or the storage destination set by the user in step S2706. A plurality of storage destinations can be set. In this case, the scan image data is stored in each storage destination.

以上のように本実施形態のスキャン画像保存処理によれば、以下のような効果が得られる。例えば、アンケート用の帳票に図10Cに示す画像をマークとして付加するものとし、このマーク画像をステップS507で登録する際に、その画像情報における「保存先」情報として、該帳票を保存すべきディレクトリを設定しておく。これにより、アンケート回答が入力された帳票をステップS2701で読み込んだ際に、これを格納するディレクトリを設定しなくても、そのスキャン画像は事前に設定したディレクトリに自動保存される。   As described above, according to the scan image storing process of the present embodiment, the following effects can be obtained. For example, it is assumed that the image shown in FIG. 10C is added as a mark to a questionnaire form, and when this mark image is registered in step S507, the directory in which the form is to be saved as “save destination” information in the image information. Is set in advance. As a result, when a form in which a questionnaire response is input is read in step S2701, the scanned image is automatically saved in a preset directory without setting a directory for storing the form.

●受信画像における置換画像選択
以上、本実施形態におけるMFP100およびマネージメントPC101において実行される処理について説明した。
Replacement Image Selection in Received Image The processing executed in MFP 100 and management PC 101 in the present embodiment has been described above.

上述したように、ステップS512の送信処理においては、MFP100で読み取られたスキャン画像がベクトル化され、必要に応じてその一部がオリジナル画像に置き換えられた後、電子メールとしてマネージメントPC101から送信先に送信される。送信先において受信された画像は、送信先ユーザのクライアントPCで閲覧されることになる。ここで、該受信された画像においては、上述したような部分置換が行われたことによって実際にスキャンされた画像とは異なっている可能性がある。また、オリジナル画像の情報が置き換え候補として埋め込まれているだけで、実質的な置き換えは行われていない可能性もある。したがって、置き換えが行われた可能性のある画像を受信したクライアントPC102においては、適切な置換画像の選択を行う必要がある。   As described above, in the transmission process in step S512, the scanned image read by the MFP 100 is vectorized, and a part thereof is replaced with the original image as necessary, and then sent from the management PC 101 to the transmission destination as an e-mail. Sent. The image received at the transmission destination is viewed on the client PC of the transmission destination user. Here, the received image may be different from the actually scanned image due to the above-described partial replacement. Further, there is a possibility that the information of the original image is simply embedded as a replacement candidate and no substantial replacement is performed. Therefore, it is necessary for the client PC 102 that has received an image that may have been replaced to select an appropriate replacement image.

以下、クライアントPC102における置換画像の選択処理について、図28を用いて詳細に説明する。   Hereinafter, the replacement image selection process in the client PC 102 will be described in detail with reference to FIG.

図28は、ステップS512で送信され、クライアントPC102で受信された画像データについて、クライアントPC102のユーザが適切な置換画像を選択するためのUIとしての画面表示である。同図において、2801は受信した画像データを表示する受信画像領域である。   FIG. 28 is a screen display as a UI for the user of the client PC 102 to select an appropriate replacement image for the image data transmitted in step S512 and received by the client PC 102. In the figure, reference numeral 2801 denotes a received image area for displaying received image data.

受信画像領域2801内におけるブロック領域2802と2803は、受信画像内において置き換えられた可能性のあるブロックを、例えば点線で囲むことによって示している。すなわち、ステップS2508のブロック画像置換処理によって、オリジナル画像に置き換えられた、あるいは、置換え候補のオリジナル画像のデータが埋め込まれたブロックである旨をユーザに示す。ここで、受信した画像データには、図26を用いて説明したように、オリジナル画像のデータであればその旨を示すオリジナル画像マーク(例えば「@オリジナル画像」)が埋め込まれているため、置換が発生した箇所を容易に検出できる。また、例えばSVGの場合、外部エンティティを参照するためのimage要素におけるx,y,width,height属性により、置き換えられたブロック領域を容易に特定できる。また、既にオリジナル画像に置き換えられているのか、または置換え候補が追加されただけなのかについては、オリジナル画像のデータがコメントアウトされているか否かによって容易に判定できる。したがって、ブロック領域2802,2803としては、この判定結果をユーザに示すために、例えば領域を囲む点線の色を変えて表示する。なお、置換画像として追加されたオリジナル画像についは、その実データを外部エンティティからロードすることによって、表示される。   Block areas 2802 and 2803 in the received image area 2801 are shown by surrounding a block that may have been replaced in the received image with, for example, a dotted line. That is, it indicates to the user that the block has been replaced with the original image by the block image replacement processing in step S2508, or the data of the replacement candidate original image is embedded. Here, as described with reference to FIG. 26, the received image data is embedded with an original image mark (for example, “@original image”) indicating that it is an original image data. It is possible to easily detect the location where the occurrence occurs. In the case of SVG, for example, the replaced block area can be easily specified by the x, y, width, and height attributes in the image element for referring to the external entity. Whether the image has already been replaced with the original image or only a replacement candidate has been added can be easily determined based on whether or not the data of the original image has been commented out. Therefore, the block areas 2802 and 2803 are displayed by changing the color of the dotted line surrounding the area, for example, in order to show the determination result to the user. The original image added as a replacement image is displayed by loading the actual data from an external entity.

そして、ユーザがブロック領域2802,2803をマウス等でクリックすると、現在表示されている画像に代えて、隠蔽された画像データすなわちコメントアウトされている画像データがあれば、これを表示する。隠蔽された画像データが2つ以上ある場合には、表示するデータを循環的に切り替える。またこのとき、表示されている画像がスキャン画像であるかオリジナル画像であるかに応じて、領域を囲む点線の色も切り替える。   When the user clicks on the block areas 2802 and 2803 with a mouse or the like, any hidden image data, that is, commented-out image data is displayed instead of the currently displayed image. When there are two or more hidden image data, the data to be displayed is switched cyclically. At this time, the color of the dotted line surrounding the area is also switched depending on whether the displayed image is a scanned image or an original image.

2804はオリジナル選択ボタンであり、このボタンがクリックされると、ブロック領域2802,2803における置換画像の表示を、全てオリジナル画像のもの、すなわち置換済みの状態に一括して切り替える。また、2805はスキャン選択ボタンであり、このボタンがクリックされると、ブロック領域2802,2803における置換画像の表示を、全てスキャン画像のもの、すなわち置換なしの状態に一括して切り替える。   Reference numeral 2804 denotes an original selection button, and when this button is clicked, the display of the replacement image in the block areas 2802 and 2803 is collectively switched to that of the original image, that is, the replaced state. Reference numeral 2805 denotes a scan selection button, and when this button is clicked, the display of the replacement image in the block areas 2802 and 2803 is all switched to the scan image, that is, the state without replacement.

2806は保存ボタンであり、このボタンがクリックされると、その時点で受信画像領域2801に表示されている画像を、実データとしてファイルに保存する。   Reference numeral 2806 denotes a save button. When this button is clicked, the image currently displayed in the received image area 2801 is saved in a file as actual data.

このように本実施形態においては、クライアントPC102で受信した画像データについて、部分画像に対する置換えの発生状況が識別可能となるように表示されるため、ユーザが容易に、ブロック単位で置換画像を選択することができる。したがって、ユーザは受信した画像データを所望の形式で保存することができ、例えば該画像データの作成時とは異なるアプリケーションで利用すること等も可能となる。   As described above, in the present embodiment, the image data received by the client PC 102 is displayed so that the occurrence status of the replacement with respect to the partial image can be identified, so that the user can easily select the replacement image in units of blocks. be able to. Therefore, the user can save the received image data in a desired format, and for example, it can be used in an application different from that used when creating the image data.

●本実施形態による効果
以上説明したように本実施形態によれば、使用頻度の高い特定画像を予めオリジナル画像として登録しておき、スキャン画像の中から、オリジナル画像と等価とみなせる部分画像が検出されると、これをオリジナル画像で置き換える。これにより、スキャン画像内における特定画像については、印刷時およびスキャン時の画質劣化の影響を受けない高画質が得られる。
As described above, according to the present embodiment, a specific image that is frequently used is registered in advance as an original image, and a partial image that can be regarded as equivalent to the original image is detected from the scanned image. When this is done, it is replaced with the original image. As a result, a high quality image that is not affected by image quality deterioration during printing and scanning can be obtained for the specific image in the scanned image.

また、上記特定画像に加えて、再利用の可能性の高い文書もオリジナル画像として登録することにより、スキャン画像に対して、まず原本となるオリジナル文書画像を検索し、該原本がない場合に、オリジナル画像を検索して置き換えを行うことができる。これにより、オリジナル文書画像が登録されていた場合にはこれを利用することにより、確実に高画質が得られる。   In addition to the specific image, by registering a document that is highly likely to be reused as an original image, the original document image that is the original is first searched for the scanned image, and when there is no original, The original image can be searched and replaced. As a result, when an original document image is registered, high-quality images can be reliably obtained by using the original document image.

また、本実施形態によれば、特定の画像をオリジナル画像として処理制御情報とともに登録しておくことにより、該オリジナル画像を含んで記録された紙文書がスキャナ等で読み込まれた際に、その処理制御情報に基づく処理制御が行われる。したがって、例えば図10Bの画像登録によるコピー制御や、図10Cの画像登録による保存制御等が可能となり、紙文書中に、バーコード等のユーザにとって認識不可能な画像を付加することなく、特定画像検出による処理制御を行うことが可能となる。   Further, according to the present embodiment, by registering a specific image as an original image together with the processing control information, when a paper document recorded including the original image is read by a scanner or the like, the processing is performed. Processing control based on the control information is performed. Accordingly, for example, copy control by image registration in FIG. 10B and storage control by image registration in FIG. 10C can be performed, and a specific image can be added to a paper document without adding an image unrecognizable to the user such as a barcode. Processing control by detection can be performed.

また、オリジナル画像の登録時にその処理制御情報として任意に設定可能なパラメータが含まれるため、該オリジナル画像の処理時における実行権限の制御や紙文書の分類等、柔軟なシステム運用が可能になる。   In addition, since an arbitrarily settable parameter is included as processing control information at the time of registering the original image, flexible system operation such as execution authority control and paper document classification at the time of processing of the original image becomes possible.

<第2実施形態>
以下、本発明に係る第2実施形態について説明する。第2実施形態における画像処理システムおよび各装置の構成は上述した第1実施形態と同様である。
<Second Embodiment>
Hereinafter, a second embodiment according to the present invention will be described. The configurations of the image processing system and each device in the second embodiment are the same as those in the first embodiment described above.

上述した第1実施形態では、ステップS512の送信処理において図24に示されるように、原本の文書が見つからない場合には、ステップS2402で読み込んだスキャン画像をステップS2409でベクトル化し、該ベクトル化された画像を送信していた。第2実施形態では、スキャン画像に対する再編集を考慮しないことを前提として、読み込んだラスタ画像に対して高圧縮率な圧縮を施して、よりコンパクトな画像を送信することを特徴とする。   In the first embodiment described above, as shown in FIG. 24 in the transmission process of step S512, when the original document is not found, the scanned image read in step S2402 is vectorized in step S2409, and the vectorization is performed. Was sending an image. In the second embodiment, on the premise that re-editing on a scanned image is not considered, the read raster image is compressed at a high compression rate, and a more compact image is transmitted.

●送信処理
以下、第2実施形態における特徴的な送信処理について、図29を用いて詳細に説明する。
Transmission Processing Hereinafter, characteristic transmission processing in the second embodiment will be described in detail with reference to FIG.

図29のステップS2901〜S2908までの処理は、上述した第1実施形態における図24のステップS2401〜S2408までの処理と同様であるため、説明を省略する。   The processing from step S2901 to S2908 in FIG. 29 is the same as the processing from step S2401 to S2408 in FIG. 24 in the first embodiment described above, and a description thereof will be omitted.

第2実施形態においては、ステップS2907で原本画像が存在しない場合にはステップS2909において、ステップS2902で読み込んだスキャン画像を高圧縮率で圧縮する。この高圧縮処理の詳細については、図30を用いて後述する。続いてステップS2910において、ステップS2909で圧縮した画像を、ステップS2901で設定した送信先に送信する。   In the second embodiment, if no original image exists in step S2907, the scanned image read in step S2902 is compressed at a high compression rate in step S2909. Details of the high compression processing will be described later with reference to FIG. In step S2910, the image compressed in step S2909 is transmitted to the transmission destination set in step S2901.

・高圧縮処理
次に図30を用いて、上述したステップ2909における高圧縮処理について、詳細に説明する。
High Compression Processing Next, the high compression processing in step 2909 described above will be described in detail with reference to FIG.

まずステップS3001において、ステップS2903で作成されたスキャン文書ブロック情報から、順次ブロックの情報を取り出す。そしてステップS3002において該取り出し結果を判定し、ブロックの情報が取り出せればステップS3003へ進むが、全ブロックの取り出しを終えていれば高圧縮処理を終了する。   First, in step S3001, block information is sequentially extracted from the scanned document block information created in step S2903. In step S3002, the extraction result is determined, and if block information can be extracted, the process proceeds to step S3003. If extraction of all blocks has been completed, the high compression processing ends.

ステップS3003では、ステップS3001で取り出したブロックに対して、オリジナル画像が存在するか否かを判定する。すなわち、ステップS3001で取り出したブロックIDが、ステップS2904で作成したオリジナル画像情報に登録されていれば、オリジナル画像が存在するものとしてステップS3007へ進むが、そうでなければステップS3004へ進む。   In step S3003, it is determined whether or not an original image exists for the block extracted in step S3001. That is, if the block ID extracted in step S3001 is registered in the original image information created in step S2904, the process proceeds to step S3007 assuming that the original image exists, but if not, the process proceeds to step S3004.

ステップS3004〜S3006では、領域の属性によって最適な圧縮方式を切り替えるが、この処理については周知の技術によって実現される。例えば、特開2003−338935に開示された技術を適用すれば、ステップS3004で文字領域と判定された場合はステップS3005で2値のMMR圧縮を行い、画像領域と判定された場合はステップS3006で背景画像としてのJPEG圧縮を行う。   In steps S3004 to S3006, the optimum compression method is switched depending on the attribute of the area. This process is realized by a known technique. For example, if the technique disclosed in Japanese Patent Application Laid-Open No. 2003-338935 is applied, binary MMR compression is performed in step S3005 if it is determined as a character area in step S3004, and if it is determined as an image area in step S3006. Perform JPEG compression as a background image.

ステップS3007では、ステップS3001で取り出したブロックに対するオリジナル画像がベクトル画像であるか否かを判定する。すなわち、オリジナル画像情報中のブロックIDに対応した画像IDによってデータベース501の画像情報を検索し、検出された画像情報中の「種類」の値から、ベクトル画像であるか否かを判定することができる。ベクトル画像と判定された場合はステップS3008へ進み、そうでなければステップS3009へ進む。   In step S3007, it is determined whether or not the original image for the block extracted in step S3001 is a vector image. That is, the image information in the database 501 is searched with the image ID corresponding to the block ID in the original image information, and it is determined whether the image is a vector image from the “type” value in the detected image information. it can. If it is determined as a vector image, the process proceeds to step S3008; otherwise, the process proceeds to step S3009.

ステップS3008では、ブロックIDに対するオリジナルのベクトル画像を、対象とするブロックのサイズでラスタライズしてラスタ画像を求める。このラスタライズ処理については、上述した第1実施形態におけるステップS2305と同様であるため、詳細な説明を省略する。   In step S3008, the original vector image corresponding to the block ID is rasterized with the size of the target block to obtain a raster image. Since this rasterizing process is the same as step S2305 in the first embodiment described above, detailed description thereof is omitted.

ステップS3009では、ステップS3001で取り出したブロックに対するスキャン画像データが、オリジナル画像で置換え可能であるか否かを判定する。この判定は、ブロックIDに対応した画像IDによって画像データベース501の画像情報を検索し、該検索された画像情報における処理フラグに基づいて行われる。この置換の可否を判定する処理は、上述した第1実施形態におけるステップS2303と同様であるため、詳細な説明を省略する。置換可と判定された場合はステップS3011へ進み、置換不可と判定された場合はステップS3010へ進む。   In step S3009, it is determined whether the scanned image data for the block extracted in step S3001 can be replaced with the original image. This determination is performed based on the processing flag in the searched image information by searching the image information in the image database 501 with the image ID corresponding to the block ID. Since the process for determining whether or not this replacement is possible is the same as step S2303 in the first embodiment described above, detailed description thereof is omitted. If it is determined that replacement is possible, the process proceeds to step S3011. If it is determined that replacement is not possible, the process proceeds to step S3010.

ステップS3010では、ステップS3001で取り出したブロックの画像、すなわちスキャン画像に対するJPEG圧縮を行う。このとき、ステップS3006における背景画像に対するJPEG圧縮よりも高画質となるようなJPEG圧縮を行う。例えば、ステップS3006よりも圧縮率が小さくなるような量子化テーブルを用いた圧縮を行えばよい。   In step S3010, JPEG compression is performed on the image of the block extracted in step S3001, that is, the scanned image. At this time, JPEG compression is performed so that the image quality is higher than the JPEG compression for the background image in step S3006. For example, the compression may be performed using a quantization table such that the compression rate is smaller than that in step S3006.

一方、ステップS3011では、ステップS3001で取り出したブロックの画像を用いずに、該ブロックの対応するオリジナル画像に対するJPEG圧縮を行う。すなわち、ブロックIDに対応した画像がラスタ画像であれば該画像をそのまま圧縮し、ベクトル画像であれば、ステップS3008でラスタライズした画像を圧縮する。このとき、ステップS3010におけるスキャン画像に対するJPEG圧縮よりも高画質となるようなJPEG圧縮を行う。例えば、ステップS3010よりも圧縮率が小さくなるような量子化テーブルを用いた圧縮を行ったり、ロスレスの圧縮を行えばよい。   On the other hand, in step S3011, JPEG compression is performed on the corresponding original image of the block without using the image of the block extracted in step S3001. That is, if the image corresponding to the block ID is a raster image, the image is compressed as it is. If the image is a vector image, the image rasterized in step S3008 is compressed. At this time, JPEG compression is performed so that the image quality is higher than that of the JPEG compression for the scanned image in step S3010. For example, compression using a quantization table with a compression rate smaller than that in step S3010 or lossless compression may be performed.

上述したステップS3011,S3010,S3006,S3005のいずれかの圧縮処理を終えると、ステップS3001へ戻って次ブロックの処理を行う。   When the compression process of any of the above-described steps S3011, S3010, S3006, and S3005 is completed, the process returns to step S3001 and the next block is processed.

なお、第2実施形態ではステップS2909の高圧縮処理においてJPEG圧縮を行う例を示したが、本発明はこの例に限定されず、JPEG2000等の自然画像に適した圧縮方式を用いてもよい。また、ステップS3006,S3010,S3011のそれぞれにおけるJPEG圧縮の画質の差別化を、量子化テーブルの切り替えによって実現していたが、本発明はこの例に限定されず、他の方法によってこれを実現することも可能である。例えば、解像度を切り替える、すなわち圧縮前の画像を縮小してからJPEG圧縮を行うようにしてもよく、この場合、ステップS3006がより小さく、ステップS3011がより大きくなるように、画像サイズを調整する。   In the second embodiment, an example in which JPEG compression is performed in the high compression processing in step S2909 has been described. However, the present invention is not limited to this example, and a compression method suitable for natural images such as JPEG2000 may be used. Further, the JPEG compression image quality differentiation in each of steps S3006, S3010, and S3011 has been realized by switching the quantization table, but the present invention is not limited to this example, and this is realized by other methods. It is also possible. For example, the resolution may be switched, that is, the JPEG compression may be performed after the image before compression is reduced. In this case, the image size is adjusted so that step S3006 is smaller and step S3011 is larger.

以上説明したように第2実施形態によれば、スキャン画像における領域ブロック毎に、その属性に応じた圧縮を施す際にも、登録済みのオリジナル画像と等価なブロック画像については、オリジナル画像に置き換えてからより高圧縮率な圧縮を行う。この置き換えにより印刷およびスキャンによる画質劣化が解消され、さらにブロック単位で圧縮率を変えることにより圧縮による画質劣化も軽減される。   As described above, according to the second embodiment, a block image equivalent to a registered original image is replaced with the original image even when compression corresponding to the attribute is performed for each area block in the scanned image. After that, compress at a higher compression rate. This replacement eliminates image quality degradation due to printing and scanning, and further reduces image quality degradation due to compression by changing the compression rate in units of blocks.

<変形例>
以下、上述した各実施形態に対する変形例を列挙する。
<Modification>
Hereafter, the modification with respect to each embodiment mentioned above is enumerated.

上記実施形態では、ステップS2508のブロック画像置換処理において、スキャン画像内のブロックをオリジナルのベクトル画像やラスタ画像に置き換える際に、該スキャン画像データに対して外部エンティティを参照する形式で追加する例を示した。すなわち、置換えた画像の実体を、送信する画像データ内に埋め込んではいなかったが、これを、送信する画像データ内に埋め込むようにしても良い。例えば、送信する画像ファイルのフォーマットがSVGであれば、置き換える画像がベクトル画像ならSVGに変換して直接埋め込み、ラスタ画像ならBASE64などでテキストエンコードして埋め込むことができる。   In the above embodiment, in the block image replacement process in step S2508, when replacing a block in a scan image with an original vector image or raster image, an example of adding an external entity with reference to the scan image data is added. Indicated. In other words, the entity of the replaced image is not embedded in the image data to be transmitted, but may be embedded in the image data to be transmitted. For example, if the format of the image file to be transmitted is SVG, if the image to be replaced is a vector image, it can be converted into SVG and directly embedded, and if it is a raster image, it can be embedded by text encoding with BASE64 or the like.

また、上記実施形態では、画像読み取り部110から読み込んだスキャン画像を文書画像と仮定し、いったんBS化して文字領域や画像領域などのブロックに分割した後、各ブロック毎にオリジナル画像を検索する例を示した。これを、特開平03−174658に開示されているように、自然画の中からロゴ領域の候補を検出し、各候補毎にオリジナル画像を検索することもできる。これにより、読み込んだ画像が文書画像ではなく、ポスターなどの自然画像であった場合にも、本発明が適用可能となる。   In the above embodiment, an example in which a scanned image read from the image reading unit 110 is assumed to be a document image, once converted into a BS and divided into blocks such as a character area and an image area, and then an original image is searched for each block. showed that. As disclosed in Japanese Patent Laid-Open No. 03-174658, it is also possible to detect a logo region candidate from a natural image and retrieve an original image for each candidate. Thus, the present invention can be applied even when the read image is not a document image but a natural image such as a poster.

また、上記実施形態では、ステップS513の保存処理において、読み込んだスキャン画像に対してベクトル化を行わない例を示したが、ステップS512の送信処理と同様にベクトル化をした画像データを保存するようにしても良い。   In the above-described embodiment, an example in which vectorization is not performed on the scanned image that has been read in the storage process in step S513 has been described, but the vectorized image data is stored in the same manner as in the transmission process in step S512. Anyway.

また、画像情報において、画像IDに対応付けて保存先を記憶する例を示したが、保存先以外にも、ユーザが指定した送信先を記憶するようにしても良い。これにより、ステップS512の送信処理においても、画像情報中に記憶された送信先への送付を行うことができる。また、送信先として、電子メールアドレスだけでなくファクシミリ番号を登録できるようにしても良い。これにより、送信処理時に該ファクシミリ番号が指定された場合には、電子メール送信を行わず、ステップS2408でベクトル化された画像をラスタライズして、ファクシミリ送信することができる。   In the image information, the storage destination is stored in association with the image ID. However, in addition to the storage destination, a transmission destination designated by the user may be stored. Thereby, also in the transmission process of step S512, transmission to the transmission destination memorize | stored in image information can be performed. Further, not only an electronic mail address but also a facsimile number may be registered as a transmission destination. Thus, when the facsimile number is designated at the time of transmission processing, it is possible to rasterize the vectorized image in step S2408 and perform facsimile transmission without performing e-mail transmission.

また、上記実施形態では、文書に対するアクセス制限を行うためにアクセスレベルという概念を用い、該アクセスレベルの上下によってアクセス可能なオブジェクトが増減する例を示した。これをオブジェクトごとに、アクセス可能な個人、グループを記述するようにして、個人単位、所属するグループ単位で、個別にアクセス制御を行ってもよい。   In the above-described embodiment, the concept of the access level is used to restrict access to the document, and the example in which the accessible objects increase or decrease depending on the access level is shown. For each object, accessible individuals and groups may be described, and access control may be performed individually for each individual and for each group to which the user belongs.

また、上記実施形態では、スキャナとプリンタが一体型のMFP100を用いる例を示したが、スキャナとプリンタをそれぞれ個別の機器としてLAN、もしくは、PCに接続した構成としても良い。この場合、図2における画像読み取り部110がスキャナに、印刷装置112がプリンタにそれぞれ相当し、それ以外の構成要素は、PCに含まれることになる。スキャナやプリンタとPCとの接続は、ネットワークI/Fを介してLAN経由で行われることになる。また、同様に、画像読み取り部110としてスキャナの代わりにデジタルカメラを用いてもよい。   In the above-described embodiment, an example in which the MFP and the scanner and printer are integrated is shown. However, the scanner and the printer may be connected to a LAN or a PC as individual devices. In this case, the image reading unit 110 in FIG. 2 corresponds to the scanner, the printing device 112 corresponds to the printer, and other components are included in the PC. The scanner and printer are connected to the PC via the network I / F via the LAN. Similarly, a digital camera may be used as the image reading unit 110 instead of the scanner.

<他の実施形態>
以上、実施形態例を詳述したが、本発明は例えば、システム、装置、方法、プログラム若しくは記憶媒体(記録媒体)等としての実施態様をとることが可能である。具体的には、複数の機器(例えば、ホストコンピュータ、インタフェース機器、撮像装置、webアプリケーション等)から構成されるシステムに適用しても良いし、また、一つの機器からなる装置に適用しても良い。
<Other embodiments>
Although the embodiment has been described in detail above, the present invention can take an embodiment as a system, apparatus, method, program, storage medium (recording medium), or the like. Specifically, the present invention may be applied to a system composed of a plurality of devices (for example, a host computer, an interface device, an imaging device, a web application, etc.), or may be applied to a device composed of a single device. good.

尚本発明は、前述した実施形態の機能を実現するソフトウェアのプログラムを、システムあるいは装置に直接あるいは遠隔から供給し、そのシステムあるいは装置のコンピュータが該供給されたプログラムコードを読み出して実行することによっても達成される。なお、この場合のプログラムとは、実施形態において図に示したフローチャートに対応したプログラムである。   In the present invention, a software program for realizing the functions of the above-described embodiments is supplied directly or remotely to a system or apparatus, and the computer of the system or apparatus reads and executes the supplied program code. Is also achieved. The program in this case is a program corresponding to the flowchart shown in the drawing in the embodiment.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータにインストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明は、本発明の機能処理を実現するためのコンピュータプログラム自体も含まれる。   Accordingly, since the functions of the present invention are implemented by computer, the program code installed in the computer also implements the present invention. In other words, the present invention includes a computer program itself for realizing the functional processing of the present invention.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等の形態であっても良い。   In that case, as long as it has the function of a program, it may be in the form of object code, a program executed by an interpreter, script data supplied to the OS, or the like.

プログラムを供給するための記録媒体としては、以下に示す媒体がある。例えば、フロッピー(登録商標)ディスク、ハードディスク、光ディスク、光磁気ディスク、MO、CD-ROM、CD-R、CD-RW、磁気テープ、不揮発性のメモリカード、ROM、DVD(DVD-ROM,DVD-R)などである。   Recording media for supplying the program include the following media. For example, floppy disk, hard disk, optical disk, magneto-optical disk, MO, CD-ROM, CD-R, CD-RW, magnetic tape, nonvolatile memory card, ROM, DVD (DVD-ROM, DVD- R).

プログラムの供給方法としては、以下に示す方法も可能である。すなわち、クライアントコンピュータのブラウザからインターネットのホームページに接続し、そこから本発明のコンピュータプログラムそのもの(又は圧縮され自動インストール機能を含むファイル)をハードディスク等の記録媒体にダウンロードする。また、本発明のプログラムを構成するプログラムコードを複数のファイルに分割し、それぞれのファイルを異なるホームページからダウンロードすることによっても実現可能である。つまり、本発明の機能処理をコンピュータで実現するためのプログラムファイルを複数のユーザに対してダウンロードさせるWWWサーバも、本発明に含まれるものである。   As a program supply method, the following method is also possible. That is, the browser of the client computer is connected to a homepage on the Internet, and the computer program itself (or a compressed file including an automatic installation function) of the present invention is downloaded to a recording medium such as a hard disk. It can also be realized by dividing the program code constituting the program of the present invention into a plurality of files and downloading each file from a different homepage. That is, a WWW server that allows a plurality of users to download a program file for realizing the functional processing of the present invention on a computer is also included in the present invention.

また、本発明のプログラムを暗号化してCD-ROM等の記憶媒体に格納してユーザに配布し、所定の条件をクリアしたユーザに対し、インターネットを介してホームページから暗号化を解く鍵情報をダウンロードさせることも可能である。すなわち該ユーザは、その鍵情報を使用することによって暗号化されたプログラムを実行し、コンピュータにインストールさせることができる。   In addition, the program of the present invention is encrypted, stored in a storage medium such as a CD-ROM, distributed to users, and key information for decryption is downloaded from a homepage via the Internet to users who have cleared predetermined conditions. It is also possible to make it. That is, the user can execute the encrypted program by using the key information and install it on the computer.

また、コンピュータが、読み出したプログラムを実行することによって、前述した実施形態の機能が実現される。さらに、そのプログラムの指示に基づき、コンピュータ上で稼動しているOSなどが、実際の処理の一部または全部を行い、その処理によっても前述した実施形態の機能が実現され得る。   Further, the functions of the above-described embodiments are realized by the computer executing the read program. Furthermore, based on the instructions of the program, an OS or the like running on the computer performs part or all of the actual processing, and the functions of the above-described embodiments can also be realized by the processing.

さらに、記録媒体から読み出されたプログラムが、コンピュータに挿入された機能拡張ボードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、実行されることによっても、前述した実施形態の機能が実現される。すなわち、該プログラムの指示に基づき、その機能拡張ボードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行うことが可能である。   Further, the program read from the recording medium is written in a memory provided in a function expansion board inserted into the computer or a function expansion unit connected to the computer, and then executed, so that the program of the above-described embodiment can be obtained. Function is realized. That is, based on the instructions of the program, the CPU provided in the function expansion board or function expansion unit can perform part or all of the actual processing.

本発明に係る一実施形態における画像処理システムの構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing system according to an embodiment of the present invention. 本実施形態における複合機(MFP)の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a multifunction peripheral (MFP) in the present embodiment. 本実施形態におけるマネージメントPCの構成を示すブロック図である。It is a block diagram which shows the structure of management PC in this embodiment. 本実施形態におけるMFPの外観図である。1 is an external view of an MFP according to an embodiment. 本実施形態における全体処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the whole process in this embodiment. 本実施形態におけるユーザ情報の一例を示す図である。It is a figure which shows an example of the user information in this embodiment. 本実施形態における処理制御設定画面の一例を示す図である。It is a figure which shows an example of the process control setting screen in this embodiment. 本実施形態における画像情報の一例を示す図である。It is a figure which shows an example of the image information in this embodiment. 本実施形態における画像情報中の処理フラグの一例を示す図である。It is a figure which shows an example of the process flag in the image information in this embodiment. 本実施形態において登録されるオリジナル画像の一例を示す図である。It is a figure which shows an example of the original image registered in this embodiment. 本実施形態において登録されるオリジナル画像の一例を示す図である。It is a figure which shows an example of the original image registered in this embodiment. 本実施形態において登録されるオリジナル画像の一例を示す図である。It is a figure which shows an example of the original image registered in this embodiment. 本実施形態における登録文書ブロック情報の一例を示す図である。It is a figure which shows an example of the registration document block information in this embodiment. 本実施形態におけるテキスト情報の一例を示す図である。It is a figure which shows an example of the text information in this embodiment. 本実施形態におけるスキャン文書ブロック情報の一例を示す図である。It is a figure which shows an example of the scan document block information in this embodiment. 本実施形態における画像登録処理を示すフローチャートである。It is a flowchart which shows the image registration process in this embodiment. 本実施形態における画像詳細比較処理を示すフローチャートである。It is a flowchart which shows the image detailed comparison process in this embodiment. 本実施形態におけるオリジナル更新判定処理を示すフローチャートである。It is a flowchart which shows the original update determination process in this embodiment. 本実施形態における文書登録処理を示すフローチャートである。It is a flowchart which shows the document registration process in this embodiment. 本実施形態におけるブロックセグメント化を説明するための図である。It is a figure for demonstrating the block segmentation in this embodiment. 本実施形態におけるコピー処理を示すフローチャートである。It is a flowchart which shows the copy process in this embodiment. 本実施形態における実行可否判定処理を示すフローチャートである。It is a flowchart which shows the execution availability determination process in this embodiment. 本実施形態におけるオリジナル画像情報の一例を示す図である。It is a figure which shows an example of the original image information in this embodiment. 本実施形態における原本検索処理を示すフローチャートである。It is a flowchart which shows the original document search process in this embodiment. 本実施形態における部分置換処理を示すフローチャートである。It is a flowchart which shows the partial replacement process in this embodiment. 本実施形態における送信処理を示すフローチャートである。It is a flowchart which shows the transmission process in this embodiment. 本実施形態におけるベクトル化処理を示すフローチャートである。It is a flowchart which shows the vectorization process in this embodiment. 本実施形態におけるブロック画像置換処理を示すフローチャートである。It is a flowchart which shows the block image replacement process in this embodiment. 本実施形態における保存処理を示すフローチャートである。It is a flowchart which shows the preservation | save process in this embodiment. 本実施形態における置換画像の選択画面の一例を示す図である。It is a figure which shows an example of the selection screen of the replacement image in this embodiment. 第2実施形態における送信処理を示すフローチャートである。It is a flowchart which shows the transmission process in 2nd Embodiment. 第2実施形態における高圧縮処理を示すフローチャートである。It is a flowchart which shows the high compression process in 2nd Embodiment.

Claims (16)

複数のオリジナル画像が登録されたサーバにアクセス可能な画像処理装置における画像処理方法であって、
文書を読み込んでスキャン画像を得るスキャンステップと、
前記スキャン画像を、属性を有する部分画像に分割する分割ステップと、
前記複数のオリジナル画像の少なくともいずれかと前記部分画像が一致するか否かを判定する判定ステップと、
前記判定ステップでオリジナル画像と一致すると判定された部分画像を、オリジナル画像と一致しないと判定された部分画像よりも高画質な圧縮方法によって圧縮した該オリジナル画像に置換する置換ステップと、
を有することを特徴とする画像処理方法。
An image processing method in an image processing apparatus accessible to a server in which a plurality of original images are registered,
A scanning step of reading a document and obtaining a scanned image;
A division step of dividing the scanned image into partial images having attributes;
A determination step of determining whether or not the partial image matches at least one of the plurality of original images;
A replacement step of replacing the partial image determined to match the original image in the determination step with the original image compressed by a compression method with higher image quality than the partial image determined not to match the original image;
An image processing method comprising:
さらに、前記置換ステップにおいて置されたオリジナル画像を含む前記スキャン画像を解凍して印刷する印刷ステップを有することを特徴とする請求項1に記載の画像処理方法。 Further, the image processing method according to claim 1, characterized in that it comprises a printing step of printing by decompressing the scan image including an original image that has been substitution Te said replacement step smell. さらに、前記複数のオリジナル画像のそれぞれを前記サーバに処理条件と関連付けて登録する登録ステップを有することを特徴とする請求項1に記載の画像処理方法。   The image processing method according to claim 1, further comprising a registration step of registering each of the plurality of original images in association with a processing condition in the server. 前記置換ステップにおいては、前記判定ステップで前記部分画像と一致すると判定されたオリジナル画像に関連付けられている処理条件において置換が許可されている場合に、該部分画像を該オリジナル画像に置換することを特徴とする請求項3に記載の画像処理方法。   In the replacement step, the replacement of the partial image with the original image is permitted when the replacement is permitted in the processing conditions associated with the original image determined to match the partial image in the determination step. The image processing method according to claim 3. 前記置換ステップにおいては、前記判定ステップで前記部分画像と一致すると判定されたオリジナル画像に関連付けられている処理条件においてベクトル化が不許可であって置換が許可されている場合に、該部分画像を該オリジナル画像のラスタデータに置換することを特徴とする請求項3又は4に記載の画像処理方法。   In the replacement step, if the vectorization is not permitted and the replacement is permitted in the processing conditions associated with the original image determined to match the partial image in the determination step, the partial image is 5. The image processing method according to claim 3, wherein the original image is replaced with raster data of the original image. 前記判定ステップにおいては、前記部分画像と前記オリジナル画像との類似度を算出し、該類似度に基づいて、これらの画像が一致するか否かを判定することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理方法。   6. In the determination step, similarity between the partial image and the original image is calculated, and it is determined whether or not these images match based on the similarity. The image processing method according to any one of the above. 前記判定ステップにおいては、前記部分画像と前記オリジナル画像との類似度を算出し、
前記置換ステップにおいては、前記判定ステップで算出された前記部分画像と前記オリジナル画像の類似度に基づいて、該部分画像を該オリジナル画像に置換するか、該オリジナル画像を置換候補として追加するかを選択することを特徴とする請求項1乃至5のいずれか1項に記載の画像処理方法。
In the determination step, the similarity between the partial image and the original image is calculated,
In the replacement step, whether to replace the partial image with the original image or to add the original image as a replacement candidate based on the similarity between the partial image and the original image calculated in the determination step. The image processing method according to claim 1, wherein the image processing method is selected.
前記置換ステップにおいては、前記部分画像を前記判定ステップで一致すると判定された前記オリジナル画像に置換する際に、前記スキャン画像に対して、該部分画像のデータを削除して、該オリジナル画像のデータファイルへのポインタ情報を埋め込むことを特徴とする請求項1乃至7のいずれか1項に記載の画像処理方法。   In the replacement step, when replacing the partial image with the original image determined to match in the determination step, the partial image data is deleted from the scanned image, and the original image data is deleted. The image processing method according to claim 1, wherein pointer information to the file is embedded. 前記置換ステップにおいては、前記部分画像と一致すると判定された複数のオリジナル画像を置換候補とし、前記スキャン画像に該置換候補のデータファイルへのポインタ情報を埋め込むことを特徴とする請求項8に記載の画像処理方法。   9. The replacement step according to claim 8, wherein a plurality of original images determined to match the partial image are set as replacement candidates, and pointer information to the replacement candidate data file is embedded in the scan image. Image processing method. さらに、前記オリジナル画像に置換された部分画像が前記置換ステップにおいて識別可能となるように、前記スキャン画像を画像表示手段に表示する画像表示ステップを有することを特徴とする請求項1乃至9のいずれか1項に記載の画像処理方法。   The image display step of displaying the scanned image on an image display means so that the partial image replaced with the original image can be identified in the replacement step. The image processing method according to claim 1. 前記画像表示ステップにおいては、前記部分画像に対して置換候補が追加された旨が識別可能となるように、該部分画像の領域を表示することを特徴とする請求項10に記載の画像処理方法。   The image processing method according to claim 10, wherein, in the image display step, an area of the partial image is displayed so that it can be identified that a replacement candidate has been added to the partial image. . 前記画像表示ステップにおいては、前記部分画像に追加された置換候補を順次切り替えて表示することを特徴とする請求項11に記載の画像処理方法。   The image processing method according to claim 11, wherein in the image display step, replacement candidates added to the partial image are sequentially switched and displayed. さらに、前記画像表示手段に表示された前記部分画像について、置換する前記オリジナル画像をユーザの指示に基づいて選択する選択ステップを有することを特徴とする請求項10乃至12のいずれか1項に記載の画像処理方法。   13. The method according to claim 10, further comprising a selection step of selecting the original image to be replaced on the partial image displayed on the image display means based on a user instruction. Image processing method. オリジナル画像と一致しないと判定された部分画像を圧縮する圧縮ステップをさらに有することを特徴とする請求項1乃至13のいずれか1項に記載の画像処理方法。The image processing method according to claim 1, further comprising a compression step of compressing the partial image determined not to match the original image. 複数のオリジナル画像が登録されたサーバにアクセス可能な画像処理装置であって、
文書を読み込んでスキャン画像を得るスキャン手段と、
前記スキャン画像を、属性を有する部分画像に分割する分割手段と、
前記複数のオリジナル画像の少なくともいずれかと前記部分画像が一致するか否かを判定する判定手段と、
前記判定手段がオリジナル画像と一致すると判定した部分画像を、前記判定手段がオリジナル画像と一致しないと判定した部分画像よりも高画質な圧縮方法によって圧縮したオリジナル画像に置換する置換手段と、
を有することを特徴とする画像処理装置。
An image processing apparatus capable of accessing a server in which a plurality of original images are registered,
Scanning means for reading a document and obtaining a scanned image;
Dividing means for dividing the scanned image into partial images having attributes;
Determining means for determining whether or not the partial image matches at least one of the plurality of original images;
Replacement means for replacing the partial image determined by the determination means to match the original image with an original image compressed by a compression method with higher image quality than the partial image determined by the determination means not to match the original image;
An image processing apparatus comprising:
コンピュータに、請求項1乃至14のいずれか1項に記載された画像処理方法の各ステップを実行させることを特徴とするコンピュータ読み取り可能なプログラム。 A computer-readable program for causing a computer to execute each step of the image processing method according to any one of claims 1 to 14 .
JP2006064806A 2006-03-09 2006-03-09 Image processing apparatus, image processing method, and program Expired - Fee Related JP4630836B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006064806A JP4630836B2 (en) 2006-03-09 2006-03-09 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006064806A JP4630836B2 (en) 2006-03-09 2006-03-09 Image processing apparatus, image processing method, and program

Publications (3)

Publication Number Publication Date
JP2007243729A JP2007243729A (en) 2007-09-20
JP2007243729A5 JP2007243729A5 (en) 2009-03-12
JP4630836B2 true JP4630836B2 (en) 2011-02-09

Family

ID=38588784

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006064806A Expired - Fee Related JP4630836B2 (en) 2006-03-09 2006-03-09 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4630836B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5132698B2 (en) 2010-02-18 2013-01-30 株式会社東芝 Selective replication system and information management server device
US9152354B2 (en) * 2013-03-15 2015-10-06 Kyocera Document Solutions Inc. Pull copying using document-file identifiers
JP5920293B2 (en) 2013-08-23 2016-05-18 富士ゼロックス株式会社 Image processing apparatus and program

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002112000A (en) * 2000-09-28 2002-04-12 Minolta Co Ltd Image formation system
JP2002300408A (en) * 2001-03-30 2002-10-11 Toshiba Corp Unit and method for filing image, and unit and method for recovering the image
JP4227432B2 (en) * 2003-02-13 2009-02-18 キヤノン株式会社 Image processing method

Also Published As

Publication number Publication date
JP2007243729A (en) 2007-09-20

Similar Documents

Publication Publication Date Title
US7593120B2 (en) Image processing apparatus, control method therefor, and program
US8320019B2 (en) Image processing apparatus, image processing method, and computer program thereof
JP4681863B2 (en) Image processing apparatus and control method thereof
US7746507B2 (en) Image processing apparatus for image retrieval and control method therefor
US20060221357A1 (en) Information processing apparatus and method
US7933447B2 (en) Image processing apparatus and method thereof
US7551753B2 (en) Image processing apparatus and method therefor
JP2004265384A (en) Image processing system, information processing device, control method, computer program, and computer-readable storage medium
US20090293135A1 (en) Information processing apparatus and control method therefor
US20090016647A1 (en) Image processing apparatus and control method thereof
JP2009043262A (en) Network device for intelligent electronic document content processing
US20120250048A1 (en) Image processing apparatus and image processing method
US20130198173A1 (en) Image processing apparatus, image processing method, and computer-readable storage medium
JP2007243730A (en) Image processing unit and control method thereof, and image processing system
US20060010115A1 (en) Image processing system and image processing method
US20070127085A1 (en) Printing system, printing method and program thereof
JP2006025129A (en) System and method for image processing
US8539591B2 (en) Document management system, management device, recording medium storing document management program, document management method and data signal
US8755064B2 (en) Information processing apparatus, information processing method, and information processing program protecting security of an object in a document
JP4630836B2 (en) Image processing apparatus, image processing method, and program
JP2022092917A (en) Information processing apparatus, information processing method, and program
JP2006023944A (en) Image processing system and image processing method
US20090154763A1 (en) Image processing method for generating easily readable image
JP4541770B2 (en) Image processing apparatus, control method therefor, and program
CN100501728C (en) Image processing method, system, program, program storage medium and information processing apparatus

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090122

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090122

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100813

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100820

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20101018

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

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

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

Free format text: PAYMENT UNTIL: 20131119

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4630836

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees